{"task_id": "DerekYRC_mini-spring-main__3eb20ba_25e4834__DynamicProxyTest_9078649c", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "3eb20ba2acfa18d2b3883512f3bdf27144e8021b", "rev2": "25e4834b71bb54ae66969fa6895e60e11115bb25", "rev1_date": "2020-12-06T08:42:43Z", "rev2_date": "2020-12-06T09:35:21Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/3eb20ba2acfa18d2b3883512f3bdf27144e8021b...25e4834b71bb54ae66969fa6895e60e11115bb25", "test_file": "src/test/java/org/springframework/test/aop/DynamicProxyTest.java", "test_changes": [{"change_id": "165_DerekYRC_mini-spring-main_3eb20ba_25e4834_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testAdvisor:()V", "class": "DynamicProxyTest", "method": "testAdvisor", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testAdvisor", "old_test_code": null, "new_test_code": "@Test\npublic void testAdvisor() throws Exception {\n WorldService worldService = new WorldServiceImpl();\n String expression = \"execution(* org.springframework.test.service.WorldService.explode(..))\";\n AspectJExpressionPointcutAdvisor advisor = new AspectJExpressionPointcutAdvisor();\n advisor.setExpression(expression);\n MethodBeforeAdviceInterceptor methodInterceptor = new MethodBeforeAdviceInterceptor(new WorldServiceBeforeAdvice());\n advisor.setAdvice(methodInterceptor);\n ClassFilter classFilter = advisor.getPointcut().getClassFilter();\n if (classFilter.matches(worldService.getClass())) {\n AdvisedSupport advisedSupport = new AdvisedSupport();\n TargetSource targetSource = new TargetSource(worldService);\n advisedSupport.setTargetSource(targetSource);\n advisedSupport.setMethodInterceptor((MethodInterceptor) advisor.getAdvice());\n advisedSupport.setMethodMatcher(advisor.getPointcut().getMethodMatcher());\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-102"], "old_production_code": "", "new_production_code": "@Override\npublic Advice getAdvice() {\n return advice;\n}", "focal_file_path": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "focal_method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": 0.1368, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.3333, "class": 0.0, "tfidf": 0.0147}}, {"dep_id": 2, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "36-38", "dependency_updated": "inserted", "score": 0.1353, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.3333, "class": 0.0, "tfidf": 0.0085}}, {"dep_id": 1, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": 0.0769, "signal_scores": {"nc": 0.0, "lcs_u": 0.1538, "ed": 0.1538, "class": 0.0, "tfidf": 0.1038}}, {"dep_id": 0, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "26-29", "dependency_updated": "inserted", "score": 0.0379, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 0.0, "tfidf": 0.0294}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 1.9231, "method_coverage_gold": 20.8333, "line_coverage_gold": 12.3772, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/AdvisedSupport.setMethodMatcher:(Lorg/springframework/aop/MethodMatcher;)V", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "org/springframework/aop/aspectj/AspectJExpressionPointcut.getClassFilter:()Lorg/springframework/aop/ClassFilter", "org/springframework/aop/aspectj/AspectJExpressionPointcut.getMethodMatcher:()Lorg/springframework/aop/MethodMatcher", "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "org/springframework/aop/AdvisedSupport.setTargetSource:(Lorg/springframework/aop/TargetSource;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__408a37a_f90b1d2__AutowiredAnnotationTest_fdb1493f", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "408a37ac32d7d60fe01f6660cfca39a97babddee", "rev2": "f90b1d2e5f2cb34903b44853c6c6611947a56e4b", "rev1_date": "2020-12-27T07:06:06Z", "rev2_date": "2020-12-27T08:17:20Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/408a37ac32d7d60fe01f6660cfca39a97babddee...f90b1d2e5f2cb34903b44853c6c6611947a56e4b", "test_file": "src/test/java/org/springframework/test/ioc/AutowiredAnnotationTest.java", "test_changes": [{"change_id": "207_DerekYRC_mini-spring-main_408a37a_f90b1d2_AutowiredAnnotationTest", "test_sign": "org/springframework/test/ioc/AutowiredAnnotationTest.testAutowiredAnnotation:()V", "class": "AutowiredAnnotationTest", "method": "testAutowiredAnnotation", "module": "", "junit_selector": "org.springframework.test.ioc.AutowiredAnnotationTest#testAutowiredAnnotation", "old_test_code": null, "new_test_code": "@Test\npublic void testAutowiredAnnotation() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:autowired-annotation.xml\");\n Person person = applicationContext.getBean(Person.class);\n assertThat(person.getCar()).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-21"], "old_production_code": "", "new_production_code": "public T getBean(Class requiredType) throws BeansException {\n return getBeanFactory().getBean(requiredType);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "131-133", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 54.2553, "method_coverage_gold": 56.7961, "line_coverage_gold": 60.2878, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/test/bean/Person.getCar:()Lorg/springframework/test/bean/Car", "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/Class;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__994f76c_5839e17__PointcutExpressionTest_124a9fde", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "994f76ca775dcdcadc70c8b8b02a555ff40d14bf", "rev2": "5839e17a0c5df378fec28cd104de32db775345b6", "rev1_date": "2020-12-05T08:54:13Z", "rev2_date": "2020-12-05T13:52:45Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/994f76ca775dcdcadc70c8b8b02a555ff40d14bf...5839e17a0c5df378fec28cd104de32db775345b6", "test_file": "src/test/java/org/springframework/test/aop/PointcutExpressionTest.java", "test_changes": [{"change_id": "78_DerekYRC_mini-spring-main_994f76c_5839e17_PointcutExpressionTest", "test_sign": "org/springframework/test/aop/PointcutExpressionTest.testPointcutExpression:()V", "class": "PointcutExpressionTest", "method": "testPointcutExpression", "module": "", "junit_selector": "org.springframework.test.aop.PointcutExpressionTest#testPointcutExpression", "old_test_code": null, "new_test_code": "@Test\npublic void testPointcutExpression() throws Exception {\n AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut(\"execution(* org.springframework.test.service.HelloService.*(..))\");\n Class clazz = HelloService.class;\n Method method = clazz.getDeclaredMethod(\"sayHello\");\n assertThat(pointcut.matches(clazz)).isTrue();\n assertThat(pointcut.matches(method, clazz)).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-25"], "old_production_code": "", "new_production_code": "@Override\npublic boolean matches(Class clazz) {\n return pointcutExpression.couldMatchJoinPointsInType(clazz);\n}", "focal_file_path": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "focal_method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.2054, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.2887}}, {"dep_id": 0, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "38-41", "dependency_updated": "inserted", "score": 0.1919, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.2316}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 3.1008, "line_coverage_gold": 2.0979, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__b39a490_3eb20ba__DynamicProxyTest_c3da5129", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "b39a490d1d9ac77e68cf81bd2b94632ffc8062cb", "rev2": "3eb20ba2acfa18d2b3883512f3bdf27144e8021b", "rev1_date": "2020-12-06T04:41:26Z", "rev2_date": "2020-12-06T08:42:43Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/b39a490d1d9ac77e68cf81bd2b94632ffc8062cb...3eb20ba2acfa18d2b3883512f3bdf27144e8021b", "test_file": "src/test/java/org/springframework/test/aop/DynamicProxyTest.java", "test_changes": [{"change_id": "125_DerekYRC_mini-spring-main_b39a490_3eb20ba_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testBeforeAdvice:()V", "class": "DynamicProxyTest", "method": "testBeforeAdvice", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testBeforeAdvice", "old_test_code": null, "new_test_code": "@Test\npublic void testBeforeAdvice() throws Exception {\n WorldServiceBeforeAdvice beforeAdvice = new WorldServiceBeforeAdvice();\n MethodBeforeAdviceInterceptor methodInterceptor = new MethodBeforeAdviceInterceptor(beforeAdvice);\n advisedSupport.setMethodInterceptor(methodInterceptor);\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-73"], "old_production_code": "", "new_production_code": "public Object getProxy() {\n return createAopProxy().getProxy();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "focal_method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "line_nums_new": "17-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 1.9231, "method_coverage_gold": 17.3913, "line_coverage_gold": 10.664, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7d7f53176e8a65ad455154bebc01e55c22cb1de6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__b39a490_7d7f531__DynamicProxyTest_bafa6679", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "b39a490d1d9ac77e68cf81bd2b94632ffc8062cb", "rev2": "7d7f53176e8a65ad455154bebc01e55c22cb1de6", "rev1_date": "2020-12-06T04:41:26Z", "rev2_date": "2020-12-06T08:13:17Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/b39a490d1d9ac77e68cf81bd2b94632ffc8062cb...7d7f53176e8a65ad455154bebc01e55c22cb1de6", "test_file": "src/test/java/org/springframework/test/aop/DynamicProxyTest.java", "test_changes": [{"change_id": "216_DerekYRC_mini-spring-main_b39a490_7d7f531_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testProxyFactory:()V", "class": "DynamicProxyTest", "method": "testProxyFactory", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testProxyFactory", "old_test_code": null, "new_test_code": "@Test\npublic void testProxyFactory() throws Exception {\n advisedSupport.setProxyTargetClass(false);\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n advisedSupport.setProxyTargetClass(true);\n proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-60"], "old_production_code": "", "new_production_code": "public Object getProxy() {\n return createAopProxy().getProxy();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "focal_method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "line_nums_new": "17-19", "dependency_updated": "inserted", "score": 0.172, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1667, "class": 0.0, "tfidf": 0.1456}}, {"dep_id": 1, "method_sign": "org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "24-26", "dependency_updated": "inserted", "score": 0.1368, "signal_scores": {"nc": 0.0, "lcs_u": 0.3684, "ed": 0.3684, "class": 0.0, "tfidf": 0.0474}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 3.8462, "method_coverage_gold": 18.8679, "line_coverage_gold": 13.4146, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V", "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__AutoProxyTest_3a1716d0", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/aop/AutoProxyTest.java", "test_changes": [{"change_id": "166_DerekYRC_mini-spring-main_be8f86f_8ed8a83_AutoProxyTest", "test_sign": "org/springframework/test/aop/AutoProxyTest.testAutoProxy:()V", "class": "AutoProxyTest", "method": "testAutoProxy", "module": "", "junit_selector": "org.springframework.test.aop.AutoProxyTest#testAutoProxy", "old_test_code": null, "new_test_code": "@Test\npublic void testAutoProxy() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:auto-proxy.xml\");\n WorldService worldService = applicationContext.getBean(\"worldService\", WorldService.class);\n worldService.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-22"], "old_production_code": "", "new_production_code": "@Override\npublic Object intercept(Object o, Method method, Object[] objects, MethodProxy methodProxy) throws Throwable {\n CglibMethodInvocation methodInvocation = new CglibMethodInvocation(advised.getTargetSource().getTarget(), method, objects, methodProxy);\n if (advised.getMethodMatcher().matches(method, advised.getTargetSource().getTarget().getClass())) {\n return advised.getMethodInterceptor().invoke(methodInvocation);\n }\n return methodInvocation.proceed();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "focal_method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.0575, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "142-145", "dependency_updated": "inserted", "score": 0.053, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1111, "class": 0.0, "tfidf": 0.0405}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 38.0597, "method_coverage_gold": 56.8627, "line_coverage_gold": 50.1136, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "189_DerekYRC_mini-spring-main_be8f86f_8ed8a83_AutoProxyTest", "test_sign": "org/springframework/test/aop/AutoProxyTest.testPopulateProxyBeanWithPropertyValues:()V", "class": "AutoProxyTest", "method": "testPopulateProxyBeanWithPropertyValues", "module": "", "junit_selector": "org.springframework.test.aop.AutoProxyTest#testPopulateProxyBeanWithPropertyValues", "old_test_code": null, "new_test_code": "@Test\npublic void testPopulateProxyBeanWithPropertyValues() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:populate-proxy-bean-with-property-values.xml\");\n WorldService worldService = applicationContext.getBean(\"worldService\", WorldService.class);\n worldService.explode();\n assertThat(worldService.getName()).isEqualTo(\"earth\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-32"], "old_production_code": "", "new_production_code": "@Override\npublic T getBean(String name, Class requiredType) throws BeansException {\n return getBeanFactory().getBean(name, requiredType);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "142-145", "dependency_updated": "inserted", "score": 0.1575, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1429, "class": 0.0, "tfidf": 0.0336}}, {"dep_id": 1, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.1459, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 38.4328, "method_coverage_gold": 56.8627, "line_coverage_gold": 50.2273, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__DynamicProxyTest_1c3b0051", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/aop/DynamicProxyTest.java", "test_changes": [{"change_id": "169_DerekYRC_mini-spring-main_be8f86f_8ed8a83_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testAdvisor:()V", "class": "DynamicProxyTest", "method": "testAdvisor", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testAdvisor", "old_test_code": null, "new_test_code": "@Test\npublic void testAdvisor() throws Exception {\n WorldService worldService = new WorldServiceImpl();\n String expression = \"execution(* org.springframework.test.service.WorldService.explode(..))\";\n AspectJExpressionPointcutAdvisor advisor = new AspectJExpressionPointcutAdvisor();\n advisor.setExpression(expression);\n MethodBeforeAdviceInterceptor methodInterceptor = new MethodBeforeAdviceInterceptor(new WorldServiceBeforeAdvice());\n advisor.setAdvice(methodInterceptor);\n ClassFilter classFilter = advisor.getPointcut().getClassFilter();\n if (classFilter.matches(worldService.getClass())) {\n AdvisedSupport advisedSupport = new AdvisedSupport();\n TargetSource targetSource = new TargetSource(worldService);\n advisedSupport.setTargetSource(targetSource);\n advisedSupport.setMethodInterceptor((MethodInterceptor) advisor.getAdvice());\n advisedSupport.setMethodMatcher(advisor.getPointcut().getMethodMatcher());\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-102"], "old_production_code": "", "new_production_code": "public void setTargetSource(TargetSource targetSource) {\n this.targetSource = targetSource;\n}", "focal_file_path": "src/main/java/org/springframework/aop/AdvisedSupport.java", "focal_method_sign": "org/springframework/aop/AdvisedSupport.setTargetSource:(Lorg/springframework/aop/TargetSource;)V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/springframework/aop/AdvisedSupport.setTargetSource:(Lorg/springframework/aop/TargetSource;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": 0.1388, "signal_scores": {"nc": 0.0, "lcs_u": 0.2667, "ed": 0.2667, "class": 0.0, "tfidf": 0.2031}}, {"dep_id": 9, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.1368, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.3333, "class": 0.0, "tfidf": 0.0147}}, {"dep_id": 5, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "38-40", "dependency_updated": "inserted", "score": 0.1353, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.3333, "class": 0.0, "tfidf": 0.0085}}, {"dep_id": 11, "method_sign": "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.0963, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.15, "class": 0.0, "tfidf": 0.1541}}, {"dep_id": 2, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.getClassFilter:()Lorg/springframework/aop/ClassFilter", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "43-46", "dependency_updated": "inserted", "score": 0.0962, "signal_scores": {"nc": 0.0, "lcs_u": 0.2143, "ed": 0.2143, "class": 0.0, "tfidf": 0.098}}, {"dep_id": 1, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "21-23", "dependency_updated": "inserted", "score": 0.0801, "signal_scores": {"nc": 0.0, "lcs_u": 0.1538, "ed": 0.1538, "class": 0.0, "tfidf": 0.1173}}, {"dep_id": 4, "method_sign": "org/springframework/aop/AdvisedSupport.setMethodMatcher:(Lorg/springframework/aop/MethodMatcher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.0557, "signal_scores": {"nc": 0.0, "lcs_u": 0.1875, "ed": 0.125, "class": 0.0, "tfidf": 0.0085}}, {"dep_id": 7, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.0532, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0, "class": 0.0, "tfidf": 0.0118}}, {"dep_id": 6, "method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "line_nums_new": "17-19", "dependency_updated": "inserted", "score": 0.0507, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 0.0, "tfidf": 0.0343}}, {"dep_id": 10, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.getMethodMatcher:()Lorg/springframework/aop/MethodMatcher", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": 0.0478, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 0.0, "tfidf": 0.0217}}, {"dep_id": 8, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.0419, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0, "class": 0.0, "tfidf": 0.0114}}, {"dep_id": 0, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "line_nums_new": "25-31", "dependency_updated": "inserted", "score": 0.0383, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 0.0, "tfidf": 0.031}}], "coverage_gold": 0.9615384615384616, "branch_coverage_gold": 1.4925, "method_coverage_gold": 14.5098, "line_coverage_gold": 8.4091, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/AdvisedSupport.setTargetSource:(Lorg/springframework/aop/TargetSource;)V", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "org/springframework/aop/aspectj/AspectJExpressionPointcut.getMethodMatcher:()Lorg/springframework/aop/MethodMatcher", "org/springframework/aop/aspectj/AspectJExpressionPointcut.getClassFilter:()Lorg/springframework/aop/ClassFilter", "org/springframework/aop/AdvisedSupport.setMethodMatcher:(Lorg/springframework/aop/MethodMatcher;)V", "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getPointcut:()Lorg/springframework/aop/Pointcut", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setExpression:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.getClassFilter:()Lorg/springframework/aop/ClassFilter", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setTargetSource:(Lorg/springframework/aop/TargetSource;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setMethodMatcher:(Lorg/springframework/aop/MethodMatcher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.setAdvice:(Lorg/aopalliance/aop/Advice;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.getAdvice:()Lorg/aopalliance/aop/Advice", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcutAdvisor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.getMethodMatcher:()Lorg/springframework/aop/MethodMatcher", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "172_DerekYRC_mini-spring-main_be8f86f_8ed8a83_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testBeforeAdvice:()V", "class": "DynamicProxyTest", "method": "testBeforeAdvice", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testBeforeAdvice", "old_test_code": null, "new_test_code": "@Test\npublic void testBeforeAdvice() throws Exception {\n WorldServiceBeforeAdvice beforeAdvice = new WorldServiceBeforeAdvice();\n MethodBeforeAdviceInterceptor methodInterceptor = new MethodBeforeAdviceInterceptor(beforeAdvice);\n advisedSupport.setMethodInterceptor(methodInterceptor);\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-76"], "old_production_code": "", "new_production_code": "public void setMethodInterceptor(MethodInterceptor methodInterceptor) {\n this.methodInterceptor = methodInterceptor;\n}", "focal_file_path": "src/main/java/org/springframework/aop/AdvisedSupport.java", "focal_method_sign": "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.15, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.2, "class": 0.0, "tfidf": 0.2723}}, {"dep_id": 2, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.0921, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.0833, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "line_nums_new": "17-19", "dependency_updated": "inserted", "score": 0.0918, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1667, "class": 0.0, "tfidf": 0.0859}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 0.7463, "method_coverage_gold": 11.7647, "line_coverage_gold": 7.1591, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setMethodInterceptor:(Lorg/aopalliance/intercept/MethodInterceptor;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "175_DerekYRC_mini-spring-main_be8f86f_8ed8a83_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testProxyFactory:()V", "class": "DynamicProxyTest", "method": "testProxyFactory", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testProxyFactory", "old_test_code": null, "new_test_code": "@Test\npublic void testProxyFactory() throws Exception {\n advisedSupport.setProxyTargetClass(false);\n WorldService proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n advisedSupport.setProxyTargetClass(true);\n proxy = (WorldService) new ProxyFactory(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-65"], "old_production_code": "", "new_production_code": "public Object getProxy() {\n return createAopProxy().getProxy();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "focal_method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "line_nums_new": "17-19", "dependency_updated": "inserted", "score": 0.172, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1667, "class": 0.0, "tfidf": 0.1456}}, {"dep_id": 1, "method_sign": "org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "line_nums_new": "24-26", "dependency_updated": "inserted", "score": 0.1368, "signal_scores": {"nc": 0.0, "lcs_u": 0.3684, "ed": 0.3684, "class": 0.0, "tfidf": 0.0474}}, {"dep_id": 3, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.0725, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0833, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "line_nums_new": "34-42", "dependency_updated": "inserted", "score": 0.0481, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.0833, "class": 0.0, "tfidf": 0.0213}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 1.4925, "method_coverage_gold": 11.7647, "line_coverage_gold": 7.5, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/ProxyFactory.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/ProxyFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/AdvisedSupport.setProxyTargetClass:(Z)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/AdvisedSupport.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "188_DerekYRC_mini-spring-main_be8f86f_8ed8a83_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testJdkDynamicProxy:()V", "class": "DynamicProxyTest", "method": "testJdkDynamicProxy", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testJdkDynamicProxy", "old_test_code": null, "new_test_code": "@Test\npublic void testJdkDynamicProxy() throws Exception {\n WorldService proxy = (WorldService) new JdkDynamicAopProxy(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-46"], "old_production_code": "", "new_production_code": "@Override\npublic Object getProxy() {\n return Proxy.newProxyInstance(getClass().getClassLoader(), advised.getTargetSource().getTargetClass(), this);\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "focal_method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "line_nums_new": "29-32", "dependency_updated": "inserted", "score": 0.1988, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.3333, "class": 0.0, "tfidf": 0.1429}}, {"dep_id": 0, "method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "line_nums_new": "34-42", "dependency_updated": "inserted", "score": 0.087, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1333, "class": 0.0, "tfidf": 0.0266}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.3731, "method_coverage_gold": 7.451, "line_coverage_gold": 4.3182, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "org/springframework/aop/framework/JdkDynamicAopProxy.getProxy:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/JdkDynamicAopProxy.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/JdkDynamicAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "193_DerekYRC_mini-spring-main_be8f86f_8ed8a83_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testCglibDynamicProxy:()V", "class": "DynamicProxyTest", "method": "testCglibDynamicProxy", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testCglibDynamicProxy", "old_test_code": null, "new_test_code": "@Test\npublic void testCglibDynamicProxy() throws Exception {\n WorldService proxy = (WorldService) new CglibAopProxy(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-52"], "old_production_code": "", "new_production_code": "@Override\npublic Object getProxy() {\n Enhancer enhancer = new Enhancer();\n enhancer.setSuperclass(advised.getTargetSource().getTarget().getClass());\n enhancer.setInterfaces(advised.getTargetSource().getTargetClass());\n enhancer.setCallback(new DynamicAdvisedInterceptor(advised));\n return enhancer.create();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "focal_method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "25-32", "dependency_updated": "inserted", "score": 0.1941, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.3529, "class": 0.0, "tfidf": 0.0156}}, {"dep_id": 1, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.1075, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1765, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9375, "branch_coverage_gold": 0.3731, "method_coverage_gold": 8.2353, "line_coverage_gold": 5.4545, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__PointcutExpressionTest_124a9fde", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/aop/PointcutExpressionTest.java", "test_changes": [{"change_id": "173_DerekYRC_mini-spring-main_be8f86f_8ed8a83_PointcutExpressionTest", "test_sign": "org/springframework/test/aop/PointcutExpressionTest.testPointcutExpression:()V", "class": "PointcutExpressionTest", "method": "testPointcutExpression", "module": "", "junit_selector": "org.springframework.test.aop.PointcutExpressionTest#testPointcutExpression", "old_test_code": null, "new_test_code": "@Test\npublic void testPointcutExpression() throws Exception {\n AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut(\"execution(* org.springframework.test.service.HelloService.*(..))\");\n Class clazz = HelloService.class;\n Method method = clazz.getDeclaredMethod(\"sayHello\");\n assertThat(pointcut.matches(clazz)).isTrue();\n assertThat(pointcut.matches(method, clazz)).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-25"], "old_production_code": "", "new_production_code": "@Override\npublic boolean matches(Class clazz) {\n return pointcutExpression.couldMatchJoinPointsInType(clazz);\n}", "focal_file_path": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "focal_method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.2054, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.2887}}, {"dep_id": 0, "method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "line_nums_new": "38-41", "dependency_updated": "inserted", "score": 0.1919, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.2316}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.5686, "line_coverage_gold": 1.0227, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z", "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/reflect/Method;Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/aspectj/AspectJExpressionPointcut.matches:(Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/aspectj/AspectJExpressionPointcut.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__EventAndEventListenerTest_59227d77", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/EventAndEventListenerTest.java", "test_changes": [{"change_id": "170_DerekYRC_mini-spring-main_be8f86f_8ed8a83_EventAndEventListenerTest", "test_sign": "org/springframework/test/ioc/EventAndEventListenerTest.testEventListener:()V", "class": "EventAndEventListenerTest", "method": "testEventListener", "module": "", "junit_selector": "org.springframework.test.ioc.EventAndEventListenerTest#testEventListener", "old_test_code": null, "new_test_code": "@Test\npublic void testEventListener() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:event-and-event-listener.xml\");\n applicationContext.publishEvent(new CustomEvent(applicationContext));\n applicationContext.registerShutdownHook();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-19"], "old_production_code": "", "new_production_code": "@Override\npublic void publishEvent(ApplicationEvent event) {\n applicationEventMulticaster.multicastEvent(event);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.publishEvent:(Lorg/springframework/context/ApplicationEvent;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/context/support/AbstractApplicationContext.publishEvent:(Lorg/springframework/context/ApplicationEvent;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "132-135", "dependency_updated": "inserted", "score": 0.1657, "signal_scores": {"nc": 0.0, "lcs_u": 0.4167, "ed": 0.3077, "class": 0.0, "tfidf": 0.1764}}, {"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "171-179", "dependency_updated": "inserted", "score": 0.0997, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.25, "class": 0.0, "tfidf": 0.0238}}], "coverage_gold": 1.0, "branch_coverage_gold": 25.0, "method_coverage_gold": 39.2157, "line_coverage_gold": 36.3636, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.publishEvent:(Lorg/springframework/context/ApplicationEvent;)V", "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/context/support/AbstractApplicationContext.publishEvent:(Lorg/springframework/context/ApplicationEvent;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__InitAndDestoryMethodTest_01afcd29", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/InitAndDestoryMethodTest.java", "test_changes": [{"change_id": "177_DerekYRC_mini-spring-main_be8f86f_8ed8a83_InitAndDestoryMethodTest", "test_sign": "org/springframework/test/ioc/InitAndDestoryMethodTest.testInitAndDestroyMethod:()V", "class": "InitAndDestoryMethodTest", "method": "testInitAndDestroyMethod", "module": "", "junit_selector": "org.springframework.test.ioc.InitAndDestoryMethodTest#testInitAndDestroyMethod", "old_test_code": null, "new_test_code": "@Test\npublic void testInitAndDestroyMethod() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:init-and-destroy-method.xml\");\n applicationContext.registerShutdownHook();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-16"], "old_production_code": "", "new_production_code": "public void registerShutdownHook() {\n Thread shutdownHook = new Thread() {\n\n public void run() {\n doClose();\n }\n };\n Runtime.getRuntime().addShutdownHook(shutdownHook);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "171-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 28.3582, "method_coverage_gold": 40.0, "line_coverage_gold": 38.75, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.registerShutdownHook:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__PackageScanTest_20920c0d", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/PackageScanTest.java", "test_changes": [{"change_id": "184_DerekYRC_mini-spring-main_be8f86f_8ed8a83_PackageScanTest", "test_sign": "org/springframework/test/ioc/PackageScanTest.testScanPackage:()V", "class": "PackageScanTest", "method": "testScanPackage", "module": "", "junit_selector": "org.springframework.test.ioc.PackageScanTest#testScanPackage", "old_test_code": null, "new_test_code": "@Test\npublic void testScanPackage() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:package-scan.xml\");\n Car car = applicationContext.getBean(\"car\", Car.class);\n assertThat(car).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-21"], "old_production_code": "", "new_production_code": "@Override\npublic T getBean(String name, Class requiredType) throws BeansException {\n return getBeanFactory().getBean(name, requiredType);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "142-145", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.194, "method_coverage_gold": 43.9216, "line_coverage_gold": 42.5, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__PrototypeBeanTest_e789a76f", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/PrototypeBeanTest.java", "test_changes": [{"change_id": "179_DerekYRC_mini-spring-main_be8f86f_8ed8a83_PrototypeBeanTest", "test_sign": "org/springframework/test/ioc/PrototypeBeanTest.testPrototype:()V", "class": "PrototypeBeanTest", "method": "testPrototype", "module": "", "junit_selector": "org.springframework.test.ioc.PrototypeBeanTest#testPrototype", "old_test_code": null, "new_test_code": "@Test\npublic void testPrototype() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:prototype-bean.xml\");\n Car car1 = applicationContext.getBean(\"car\", Car.class);\n Car car2 = applicationContext.getBean(\"car\", Car.class);\n assertThat(car1 != car2).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-22"], "old_production_code": "", "new_production_code": "@Override\npublic T getBean(String name, Class requiredType) throws BeansException {\n return getBeanFactory().getBean(name, requiredType);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "142-145", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 22.3881, "method_coverage_gold": 36.8627, "line_coverage_gold": 34.5455, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__ResourceAndResourceLoaderTest_2d2c9385", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/ResourceAndResourceLoaderTest.java", "test_changes": [{"change_id": "176_DerekYRC_mini-spring-main_be8f86f_8ed8a83_ResourceAndResourceLoaderTest", "test_sign": "org/springframework/test/ioc/ResourceAndResourceLoaderTest.testResourceLoader:()V", "class": "ResourceAndResourceLoaderTest", "method": "testResourceLoader", "module": "", "junit_selector": "org.springframework.test.ioc.ResourceAndResourceLoaderTest#testResourceLoader", "old_test_code": null, "new_test_code": "@Test\npublic void testResourceLoader() throws Exception {\n DefaultResourceLoader resourceLoader = new DefaultResourceLoader();\n Resource resource = resourceLoader.getResource(\"classpath:hello.txt\");\n InputStream inputStream = resource.getInputStream();\n String content = IoUtil.readUtf8(inputStream);\n System.out.println(content);\n assertThat(content).isEqualTo(\"hello world\");\n resource = resourceLoader.getResource(\"src/test/resources/hello.txt\");\n assertThat(resource instanceof FileSystemResource).isTrue();\n inputStream = resource.getInputStream();\n content = IoUtil.readUtf8(inputStream);\n System.out.println(content);\n assertThat(content).isEqualTo(\"hello world\");\n resource = resourceLoader.getResource(\"https://github.com/DerekYRC/mini-spring/blob/main/README.md\");\n assertThat(resource instanceof UrlResource).isTrue();\n inputStream = resource.getInputStream();\n content = IoUtil.readUtf8(inputStream);\n System.out.println(content);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-42"], "old_production_code": "", "new_production_code": "@Override\npublic Resource getResource(String location) {\n if (location.startsWith(CLASSPATH_URL_PREFIX)) {\n return new ClassPathResource(location.substring(CLASSPATH_URL_PREFIX.length()));\n } else {\n try {\n URL url = new URL(location);\n return new UrlResource(url);\n } catch (MalformedURLException ex) {\n return new FileSystemResource(location);\n }\n }\n}", "focal_file_path": "src/main/java/org/springframework/core/io/DefaultResourceLoader.java", "focal_method_sign": "org/springframework/core/io/DefaultResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/springframework/core/io/DefaultResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/io/DefaultResourceLoader.java", "line_nums_new": "14-29", "dependency_updated": "inserted", "score": 0.2049, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.3571, "class": 0.0, "tfidf": 0.0755}}, {"dep_id": 2, "method_sign": "org/springframework/core/io/ClassPathResource.getInputStream:()Ljava/io/InputStream", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/io/ClassPathResource.java", "line_nums_new": "21-28", "dependency_updated": "inserted", "score": 0.0938, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.0714, "class": 0.0, "tfidf": 0.0809}}, {"dep_id": 3, "method_sign": "org/springframework/core/io/UrlResource.getInputStream:()Ljava/io/InputStream", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/io/UrlResource.java", "line_nums_new": "20-28", "dependency_updated": "inserted", "score": 0.0931, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.0714, "class": 0.0, "tfidf": 0.0779}}, {"dep_id": 0, "method_sign": "org/springframework/core/io/FileSystemResource.getInputStream:()Ljava/io/InputStream", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/io/FileSystemResource.java", "line_nums_new": "23-32", "dependency_updated": "inserted", "score": 0.0873, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.0714, "class": 0.0, "tfidf": 0.0532}}], "coverage_gold": 0.7222222222222222, "branch_coverage_gold": 1.1194, "method_coverage_gold": 3.1373, "line_coverage_gold": 2.6136, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/core/io/ClassPathResource.getInputStream:()Ljava/io/InputStream", "org/springframework/core/io/UrlResource.getInputStream:()Ljava/io/InputStream", "org/springframework/core/io/FileSystemResource.getInputStream:()Ljava/io/InputStream", "org/springframework/core/io/DefaultResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/core/io/FileSystemResource.getInputStream:()Ljava/io/InputStream", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/io/FileSystemResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/io/DefaultResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/io/DefaultResourceLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/io/ClassPathResource.getInputStream:()Ljava/io/InputStream", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/io/ClassPathResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/io/UrlResource.getInputStream:()Ljava/io/InputStream", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/io/UrlResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__be8f86f_8ed8a83__TypeConversionFirstPartTest_8646244e", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "be8f86f32b308662ff1709e3c85375266f3050af", "rev2": "8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "rev1_date": "2022-06-23T08:33:55Z", "rev2_date": "2022-06-23T08:37:55Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/be8f86f32b308662ff1709e3c85375266f3050af...8ed8a83e51dbba81fb08647a6e261bd7f8bcd149", "test_file": "src/test/java/org/springframework/test/ioc/TypeConversionFirstPartTest.java", "test_changes": [{"change_id": "183_DerekYRC_mini-spring-main_be8f86f_8ed8a83_TypeConversionFirstPartTest", "test_sign": "org/springframework/test/ioc/TypeConversionFirstPartTest.testGenericConversionService:()V", "class": "TypeConversionFirstPartTest", "method": "testGenericConversionService", "module": "", "junit_selector": "org.springframework.test.ioc.TypeConversionFirstPartTest#testGenericConversionService", "old_test_code": null, "new_test_code": "@Test\npublic void testGenericConversionService() throws Exception {\n GenericConversionService conversionService = new GenericConversionService();\n conversionService.addConverter(new StringToIntegerConverter());\n Integer intNum = conversionService.convert(\"8888\", Integer.class);\n assertThat(conversionService.canConvert(String.class, Integer.class)).isTrue();\n assertThat(intNum).isEqualTo(8888);\n conversionService.addConverterFactory(new StringToNumberConverterFactory());\n assertThat(conversionService.canConvert(String.class, Long.class)).isTrue();\n Long longNum = conversionService.convert(\"8888\", Long.class);\n assertThat(longNum).isEqualTo(8888L);\n conversionService.addConverter(new StringToBooleanConverter());\n assertThat(conversionService.canConvert(String.class, Boolean.class)).isTrue();\n Boolean flag = conversionService.convert(\"true\", Boolean.class);\n assertThat(flag).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-65"], "old_production_code": "", "new_production_code": "@Override\npublic T convert(Object source, Class targetType) {\n Class sourceType = source.getClass();\n targetType = (Class) BasicType.wrap(targetType);\n GenericConverter converter = getConverter(sourceType, targetType);\n return (T) converter.convert(source, sourceType, targetType);\n}", "focal_file_path": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "focal_method_sign": "org/springframework/core/convert/support/GenericConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/springframework/core/convert/support/GenericConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "line_nums_new": "29-35", "dependency_updated": "inserted", "score": 0.1981, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.25, "class": 0.0, "tfidf": 0.0241}}, {"dep_id": 2, "method_sign": "org/springframework/core/convert/support/GenericConversionService.canConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "line_nums_new": "23-27", "dependency_updated": "inserted", "score": 0.1766, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.2917, "class": 0.0, "tfidf": 0.0215}}, {"dep_id": 1, "method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/GenericConverter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "line_nums_new": "55-60", "dependency_updated": "inserted", "score": 0.176, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.3333, "class": 0.0, "tfidf": 0.0146}}, {"dep_id": 4, "method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/Converter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "line_nums_new": "37-44", "dependency_updated": "inserted", "score": 0.1745, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.3333, "class": 0.0, "tfidf": 0.0084}}, {"dep_id": 0, "method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverterFactory:(Lorg/springframework/core/convert/converter/ConverterFactory;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "line_nums_new": "46-53", "dependency_updated": "inserted", "score": 0.1258, "signal_scores": {"nc": 0.0, "lcs_u": 0.4737, "ed": 0.25, "class": 0.0, "tfidf": 0.0042}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.8358, "method_coverage_gold": 8.6275, "line_coverage_gold": 8.5227, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/Converter;)V", "org/springframework/core/convert/support/GenericConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object", "org/springframework/core/convert/support/GenericConversionService.canConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z", "org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/GenericConverter;)V", "org/springframework/core/convert/support/GenericConversionService.addConverterFactory:(Lorg/springframework/core/convert/converter/ConverterFactory;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverterFactory:(Lorg/springframework/core/convert/converter/ConverterFactory;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/GenericConverter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/convert/support/GenericConversionService.canConvert:(Ljava/lang/Class;Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/convert/support/GenericConversionService.convert:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/core/convert/support/GenericConversionService.addConverter:(Lorg/springframework/core/convert/converter/Converter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/GenericConversionService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "186_DerekYRC_mini-spring-main_be8f86f_8ed8a83_TypeConversionFirstPartTest", "test_sign": "org/springframework/test/ioc/TypeConversionFirstPartTest.testStringToNumberConverterFactory:()V", "class": "TypeConversionFirstPartTest", "method": "testStringToNumberConverterFactory", "module": "", "junit_selector": "org.springframework.test.ioc.TypeConversionFirstPartTest#testStringToNumberConverterFactory", "old_test_code": null, "new_test_code": "@Test\npublic void testStringToNumberConverterFactory() throws Exception {\n StringToNumberConverterFactory converterFactory = new StringToNumberConverterFactory();\n Converter stringToIntegerConverter = converterFactory.getConverter(Integer.class);\n Integer intNum = stringToIntegerConverter.convert(\"8888\");\n assertThat(intNum).isEqualTo(8888);\n Converter stringToLongConverter = converterFactory.getConverter(Long.class);\n Long longNum = stringToLongConverter.convert(\"8888\");\n assertThat(longNum).isEqualTo(8888L);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-37"], "old_production_code": "", "new_production_code": "@Override\npublic Converter getConverter(Class targetType) {\n return new StringToNumber(targetType);\n}", "focal_file_path": "src/main/java/org/springframework/core/convert/support/StringToNumberConverterFactory.java", "focal_method_sign": "org/springframework/core/convert/support/StringToNumberConverterFactory.getConverter:(Ljava/lang/Class;)Lorg/springframework/core/convert/converter/Converter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/core/convert/support/StringToNumberConverterFactory.getConverter:(Ljava/lang/Class;)Lorg/springframework/core/convert/converter/Converter", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/StringToNumberConverterFactory.java", "line_nums_new": "12-15", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.4925, "method_coverage_gold": 1.5686, "line_coverage_gold": 1.1364, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/core/convert/support/StringToNumberConverterFactory.getConverter:(Ljava/lang/Class;)Lorg/springframework/core/convert/converter/Converter"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/core/convert/support/StringToNumberConverterFactory.getConverter:(Ljava/lang/Class;)Lorg/springframework/core/convert/converter/Converter", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/core/convert/support/StringToNumberConverterFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__c9720c3_b39a490__DynamicProxyTest_de052025", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "c9720c34b751efa2ca5c7f920606bbd2942deda8", "rev2": "b39a490d1d9ac77e68cf81bd2b94632ffc8062cb", "rev1_date": "2020-12-06T03:35:43Z", "rev2_date": "2020-12-06T04:41:26Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/c9720c34b751efa2ca5c7f920606bbd2942deda8...b39a490d1d9ac77e68cf81bd2b94632ffc8062cb", "test_file": "src/test/java/org/springframework/test/aop/DynamicProxyTest.java", "test_changes": [{"change_id": "197_DerekYRC_mini-spring-main_c9720c3_b39a490_DynamicProxyTest", "test_sign": "org/springframework/test/aop/DynamicProxyTest.testCglibDynamicProxy:()V", "class": "DynamicProxyTest", "method": "testCglibDynamicProxy", "module": "", "junit_selector": "org.springframework.test.aop.DynamicProxyTest#testCglibDynamicProxy", "old_test_code": null, "new_test_code": "@Test\npublic void testCglibDynamicProxy() throws Exception {\n WorldService proxy = (WorldService) new CglibAopProxy(advisedSupport).getProxy();\n proxy.explode();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-46"], "old_production_code": "", "new_production_code": "@Override\npublic Object getProxy() {\n Enhancer enhancer = new Enhancer();\n enhancer.setSuperclass(advised.getTargetSource().getTarget().getClass());\n enhancer.setInterfaces(advised.getTargetSource().getTargetClass());\n enhancer.setCallback(new DynamicAdvisedInterceptor(advised));\n return enhancer.create();\n}", "focal_file_path": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "focal_method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "25-32", "dependency_updated": "inserted", "score": 0.1941, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.3529, "class": 0.0, "tfidf": 0.0156}}, {"dep_id": 1, "method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "line_nums_new": "45-53", "dependency_updated": "inserted", "score": 0.1075, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1765, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9375, "branch_coverage_gold": 0.9804, "method_coverage_gold": 13.6364, "line_coverage_gold": 9.7713, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/aop/framework/CglibAopProxy.getProxy:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/springframework/aop/framework/CglibAopProxy$DynamicAdvisedInterceptor.intercept:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;Lnet/sf/cglib/proxy/MethodProxy;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/aop/framework/CglibAopProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__eb1be02_59f7318__BeanFactoryProcessorAndBeanPostProcessorTest_d83265d5", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "eb1be0213cb7cd8afb7afe31ef0a178f15479320", "rev2": "59f73181ed65a43bd2590632e9d218ae6092e754", "rev1_date": "2020-11-28T07:26:44Z", "rev2_date": "2020-11-28T09:57:43Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/eb1be0213cb7cd8afb7afe31ef0a178f15479320...59f73181ed65a43bd2590632e9d218ae6092e754", "test_file": "src/test/java/org/springframework/test/ioc/BeanFactoryProcessorAndBeanPostProcessorTest.java", "test_changes": [{"change_id": "162_DerekYRC_mini-spring-main_eb1be02_59f7318_BeanFactoryProcessorAndBeanPostProcessorTest", "test_sign": "org/springframework/test/ioc/BeanFactoryProcessorAndBeanPostProcessorTest.testBeanPostProcessor:()V", "class": "BeanFactoryProcessorAndBeanPostProcessorTest", "method": "testBeanPostProcessor", "module": "", "junit_selector": "org.springframework.test.ioc.BeanFactoryProcessorAndBeanPostProcessorTest#testBeanPostProcessor", "old_test_code": null, "new_test_code": "@Test\npublic void testBeanPostProcessor() throws Exception {\n DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();\n XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(beanFactory);\n beanDefinitionReader.loadBeanDefinitions(\"classpath:spring.xml\");\n CustomerBeanPostProcessor customerBeanPostProcessor = new CustomerBeanPostProcessor();\n beanFactory.addBeanPostProcessor(customerBeanPostProcessor);\n Car car = (Car) beanFactory.getBean(\"car\");\n System.out.println(car);\n assertThat(car.getBrand()).isEqualTo(\"lamborghini\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-49"], "old_production_code": "", "new_production_code": "@Override\npublic void addBeanPostProcessor(BeanPostProcessor beanPostProcessor) {\n this.beanPostProcessors.remove(beanPostProcessor);\n this.beanPostProcessors.add(beanPostProcessor);\n}", "focal_file_path": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "focal_method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "line_nums_new": "37-42", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 58.9286, "method_coverage_gold": 69.697, "line_coverage_gold": 66.2281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/test/ioc/bean/Car.toString:()Ljava/lang/String", "org/springframework/beans/factory/support/AbstractBeanFactory.getBean:(Ljava/lang/String;)Ljava/lang/Object", "org/springframework/beans/factory/xml/XmlBeanDefinitionReader.loadBeanDefinitions:(Ljava/lang/String;)V", "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "org/springframework/test/ioc/bean/Car.getBrand:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__eb1be02_f6febc4__BeanFactoryPostProcessorAndBeanPostProcessorTest_d83265d5", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "eb1be0213cb7cd8afb7afe31ef0a178f15479320", "rev2": "f6febc48eb7a296007ac02b3ac18c9545655ed05", "rev1_date": "2020-11-28T07:26:44Z", "rev2_date": "2020-11-28T10:22:04Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/eb1be0213cb7cd8afb7afe31ef0a178f15479320...f6febc48eb7a296007ac02b3ac18c9545655ed05", "test_file": "src/test/java/org/springframework/test/ioc/BeanFactoryPostProcessorAndBeanPostProcessorTest.java", "test_changes": [{"change_id": "201_DerekYRC_mini-spring-main_eb1be02_f6febc4_BeanFactoryPostProcessorAndBeanPostProcessorTest", "test_sign": "org/springframework/test/ioc/BeanFactoryPostProcessorAndBeanPostProcessorTest.testBeanPostProcessor:()V", "class": "BeanFactoryPostProcessorAndBeanPostProcessorTest", "method": "testBeanPostProcessor", "module": "", "junit_selector": "org.springframework.test.ioc.BeanFactoryPostProcessorAndBeanPostProcessorTest#testBeanPostProcessor", "old_test_code": null, "new_test_code": "@Test\npublic void testBeanPostProcessor() throws Exception {\n DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory();\n XmlBeanDefinitionReader beanDefinitionReader = new XmlBeanDefinitionReader(beanFactory);\n beanDefinitionReader.loadBeanDefinitions(\"classpath:spring.xml\");\n CustomerBeanPostProcessor customerBeanPostProcessor = new CustomerBeanPostProcessor();\n beanFactory.addBeanPostProcessor(customerBeanPostProcessor);\n Car car = (Car) beanFactory.getBean(\"car\");\n System.out.println(car);\n assertThat(car.getBrand()).isEqualTo(\"lamborghini\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-49"], "old_production_code": "", "new_production_code": "@Override\npublic void addBeanPostProcessor(BeanPostProcessor beanPostProcessor) {\n this.beanPostProcessors.remove(beanPostProcessor);\n this.beanPostProcessors.add(beanPostProcessor);\n}", "focal_file_path": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "focal_method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "line_nums_new": "37-42", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 58.9286, "method_coverage_gold": 69.697, "line_coverage_gold": 66.2281, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["59f73181ed65a43bd2590632e9d218ae6092e754"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/test/ioc/bean/Car.toString:()Ljava/lang/String", "org/springframework/beans/factory/support/AbstractBeanFactory.getBean:(Ljava/lang/String;)Ljava/lang/Object", "org/springframework/beans/factory/xml/XmlBeanDefinitionReader.loadBeanDefinitions:(Ljava/lang/String;)V", "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "org/springframework/test/ioc/bean/Car.getBrand:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/beans/factory/support/AbstractBeanFactory.addBeanPostProcessor:(Lorg/springframework/beans/factory/config/BeanPostProcessor;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "DerekYRC_mini-spring-main__f6febc4_ce9af9e__ApplicationContextTest_a807a6e4", "project_name": "DerekYRC_mini-spring-main", "git_clone_url": "https://github.com/DerekYRC/mini-spring.git", "rev1": "f6febc48eb7a296007ac02b3ac18c9545655ed05", "rev2": "ce9af9e133bee6dd3c68910f8569141e51cda41c", "rev1_date": "2020-11-28T10:22:04Z", "rev2_date": "2020-11-28T15:07:35Z", "git_diff_url": "https://github.com/DerekYRC/mini-spring/compare/f6febc48eb7a296007ac02b3ac18c9545655ed05...ce9af9e133bee6dd3c68910f8569141e51cda41c", "test_file": "src/test/java/org/springframework/test/ioc/ApplicationContextTest.java", "test_changes": [{"change_id": "206_DerekYRC_mini-spring-main_f6febc4_ce9af9e_ApplicationContextTest", "test_sign": "org/springframework/test/ioc/ApplicationContextTest.testApplicationContext:()V", "class": "ApplicationContextTest", "method": "testApplicationContext", "module": "", "junit_selector": "org.springframework.test.ioc.ApplicationContextTest#testApplicationContext", "old_test_code": null, "new_test_code": "@Test\npublic void testApplicationContext() throws Exception {\n ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(\"classpath:spring.xml\");\n Person person = applicationContext.getBean(\"person\", Person.class);\n System.out.println(person);\n assertThat(person.getName()).isEqualTo(\"ivy\");\n Car car = applicationContext.getBean(\"car\", Car.class);\n System.out.println(car);\n assertThat(car.getBrand()).isEqualTo(\"lamborghini\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-29"], "old_production_code": "", "new_production_code": "@Override\npublic T getBean(String name, Class requiredType) throws BeansException {\n return getBeanFactory().getBean(name, requiredType);\n}", "focal_file_path": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "focal_method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 75.8065, "method_coverage_gold": 75.5814, "line_coverage_gold": 75.8242, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "org/springframework/test/ioc/bean/Car.toString:()Ljava/lang/String", "org/springframework/test/ioc/bean/Person.toString:()Ljava/lang/String", "org/springframework/test/ioc/bean/Person.getName:()Ljava/lang/String", "org/springframework/test/ioc/bean/Car.getBrand:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/springframework/context/support/AbstractApplicationContext.getBean:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/springframework/context/support/AbstractApplicationContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "main", "java_version": 8} {"task_id": "Esri_geometry-api-java-v2.2.4__bfd52be_0be866c__TestPoint_019a34f4", "project_name": "Esri_geometry-api-java-v2.2.4", "git_clone_url": "https://github.com/Esri/geometry-api-java.git", "rev1": "bfd52befa434b57d3502835cba533cfe49b47a91", "rev2": "0be866c0d8be44dc610be41e40229e99bc2ef062", "rev1_date": "2015-02-06T22:17:51Z", "rev2_date": "2015-02-06T22:52:12Z", "git_diff_url": "https://github.com/Esri/geometry-api-java/compare/bfd52befa434b57d3502835cba533cfe49b47a91...0be866c0d8be44dc610be41e40229e99bc2ef062", "test_file": "src/test/java/com/esri/core/geometry/TestPoint.java", "test_changes": [{"change_id": "896_Esri_geometry-api-java-v2.2.4_bfd52be_0be866c_TestPoint", "test_sign": "com/esri/core/geometry/TestPoint.testReplaceNaNs:()V", "class": "TestPoint", "method": "testReplaceNaNs", "module": "", "junit_selector": "com.esri.core.geometry.TestPoint#testReplaceNaNs", "old_test_code": null, "new_test_code": "@Test\npublic void testReplaceNaNs() {\n Envelope env = new Envelope();\n Point pt = new Point();\n pt.setXY(1, 2);\n pt.setZ(Double.NaN);\n pt.queryEnvelope(env);\n pt.replaceNaNs(VertexDescription.Semantics.Z, 5);\n assertTrue(pt.equals(new Point(1, 2, 5)));\n assertTrue(env.hasZ());\n assertTrue(env.queryInterval(VertexDescription.Semantics.Z, 0).isEmpty());\n env.replaceNaNs(VertexDescription.Semantics.Z, 5);\n assertTrue(env.queryInterval(VertexDescription.Semantics.Z, 0).equals(new Envelope1D(5, 5)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["172-186"], "old_production_code": "", "new_production_code": "@Override\npublic void replaceNaNs(int semantics, double value) {\n addAttribute(semantics);\n if (isEmpty())\n return;\n int ncomps = VertexDescription.getComponentCount(semantics);\n for (int i = 0; i < ncomps; i++) {\n double v = getAttributeAsDbl(semantics, i);\n if (Double.isNaN(v))\n setAttribute(semantics, i, value);\n }\n}", "focal_file_path": "src/main/java/com/esri/core/geometry/Point.java", "focal_method_sign": "com/esri/core/geometry/Point.replaceNaNs:(ID)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/esri/core/geometry/Point.replaceNaNs:(ID)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Point.java", "line_nums_new": "627-639", "dependency_updated": "inserted", "score": 0.8181, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2268}}, {"dep_id": 1, "method_sign": "com/esri/core/geometry/Envelope.replaceNaNs:(ID)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Envelope.java", "line_nums_new": "1117-1132", "dependency_updated": "inserted", "score": 0.6174, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.1738}}], "coverage_gold": 0.796875, "branch_coverage_gold": 0.5969, "method_coverage_gold": 2.2256, "line_coverage_gold": 1.0629, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/esri/core/geometry/Point.replaceNaNs:(ID)V", "com/esri/core/geometry/Point.setZ:(D)V", "com/esri/core/geometry/Geometry.hasZ:()Z", "com/esri/core/geometry/Envelope1D.equals:(Ljava/lang/Object;)Z", "com/esri/core/geometry/Envelope1D.isEmpty:()Z", "com/esri/core/geometry/TestPoint.tearDown:()V", "com/esri/core/geometry/Point.equals:(Ljava/lang/Object;)Z", "com/esri/core/geometry/Point.queryEnvelope:(Lcom/esri/core/geometry/Envelope;)V", "com/esri/core/geometry/Envelope.queryInterval:(II)Lcom/esri/core/geometry/Envelope1D", "com/esri/core/geometry/Envelope.replaceNaNs:(ID)V", "com/esri/core/geometry/Point.setXY:(DD)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/esri/core/geometry/Point.replaceNaNs:(ID)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Point.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/esri/core/geometry/Envelope.replaceNaNs:(ID)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Envelope.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.2.4", "java_version": 11} {"task_id": "Esri_geometry-api-java-v2.2.4__bfd52be_0be866c__TestPolygon_019a34f4", "project_name": "Esri_geometry-api-java-v2.2.4", "git_clone_url": "https://github.com/Esri/geometry-api-java.git", "rev1": "bfd52befa434b57d3502835cba533cfe49b47a91", "rev2": "0be866c0d8be44dc610be41e40229e99bc2ef062", "rev1_date": "2015-02-06T22:17:51Z", "rev2_date": "2015-02-06T22:52:12Z", "git_diff_url": "https://github.com/Esri/geometry-api-java/compare/bfd52befa434b57d3502835cba533cfe49b47a91...0be866c0d8be44dc610be41e40229e99bc2ef062", "test_file": "src/test/java/com/esri/core/geometry/TestPolygon.java", "test_changes": [{"change_id": "894_Esri_geometry-api-java-v2.2.4_bfd52be_0be866c_TestPolygon", "test_sign": "com/esri/core/geometry/TestPolygon.testReplaceNaNs:()V", "class": "TestPolygon", "method": "testReplaceNaNs", "module": "", "junit_selector": "com.esri.core.geometry.TestPolygon#testReplaceNaNs", "old_test_code": null, "new_test_code": "@Test\npublic void testReplaceNaNs() {\n {\n MultiPoint mp = new MultiPoint();\n Point pt = new Point();\n pt.setXY(1, 2);\n pt.setZ(Double.NaN);\n mp.add(pt);\n pt = new Point();\n pt.setXY(11, 12);\n pt.setZ(3);\n mp.add(pt);\n mp.replaceNaNs(VertexDescription.Semantics.Z, 5);\n assertTrue(mp.getPoint(0).equals(new Point(1, 2, 5)));\n assertTrue(mp.getPoint(1).equals(new Point(11, 12, 3)));\n }\n {\n Polygon mp = new Polygon();\n Point pt = new Point();\n pt.setXY(1, 2);\n pt.setZ(Double.NaN);\n mp.startPath(pt);\n pt = new Point();\n pt.setXY(11, 12);\n pt.setZ(3);\n mp.lineTo(pt);\n mp.replaceNaNs(VertexDescription.Semantics.Z, 5);\n assertTrue(mp.getPoint(0).equals(new Point(1, 2, 5)));\n assertTrue(mp.getPoint(1).equals(new Point(11, 12, 3)));\n }\n {\n Polygon mp = new Polygon();\n Point pt = new Point();\n pt.setXY(1, 2);\n pt.setM(Double.NaN);\n mp.startPath(pt);\n pt = new Point();\n pt.setXY(11, 12);\n pt.setM(3);\n mp.lineTo(pt);\n mp.replaceNaNs(VertexDescription.Semantics.M, 5);\n Point p = new Point(1, 2);\n p.setM(5);\n boolean b = mp.getPoint(0).equals(p);\n assertTrue(b);\n p = new Point(11, 12);\n p.setM(3);\n b = mp.getPoint(1).equals(p);\n assertTrue(b);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1148-1202"], "old_production_code": "", "new_production_code": "@Override\npublic void replaceNaNs(int semantics, double value) {\n m_impl.replaceNaNs(semantics, value);\n}", "focal_file_path": "src/main/java/com/esri/core/geometry/MultiPath.java", "focal_method_sign": "com/esri/core/geometry/MultiPath.replaceNaNs:(ID)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/esri/core/geometry/MultiPath.replaceNaNs:(ID)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/MultiPath.java", "line_nums_new": "741-744", "dependency_updated": "inserted", "score": 0.5912, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.0625}}, {"dep_id": 1, "method_sign": "com/esri/core/geometry/MultiPoint.replaceNaNs:(ID)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/MultiPoint.java", "line_nums_new": "368-371", "dependency_updated": "inserted", "score": 0.5912, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.0625}}], "coverage_gold": 0.8108108108108109, "branch_coverage_gold": 0.9324, "method_coverage_gold": 3.4024, "line_coverage_gold": 1.65, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/esri/core/geometry/MultiPath.replaceNaNs:(ID)V", "com/esri/core/geometry/Point.setXY:(DD)V", "com/esri/core/geometry/MultiPoint.getPoint:(I)Lcom/esri/core/geometry/Point", "com/esri/core/geometry/TestPolygon.tearDown:()V", "com/esri/core/geometry/MultiPoint.add:(Lcom/esri/core/geometry/Point;)V", "com/esri/core/geometry/Point.setZ:(D)V", "com/esri/core/geometry/MultiPath.lineTo:(Lcom/esri/core/geometry/Point;)V", "com/esri/core/geometry/Point.setM:(D)V", "com/esri/core/geometry/Point.equals:(Ljava/lang/Object;)Z", "com/esri/core/geometry/MultiPoint.replaceNaNs:(ID)V", "com/esri/core/geometry/MultiPath.startPath:(Lcom/esri/core/geometry/Point;)V", "com/esri/core/geometry/MultiPath.getPoint:(I)Lcom/esri/core/geometry/Point"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/esri/core/geometry/MultiPath.replaceNaNs:(ID)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/MultiPath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/esri/core/geometry/MultiPoint.replaceNaNs:(ID)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/MultiPoint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.2.4", "java_version": 11} {"task_id": "Esri_geometry-api-java-v2.2.4__bfd52be_0be866c__TestSimplify_ac73f7f5", "project_name": "Esri_geometry-api-java-v2.2.4", "git_clone_url": "https://github.com/Esri/geometry-api-java.git", "rev1": "bfd52befa434b57d3502835cba533cfe49b47a91", "rev2": "0be866c0d8be44dc610be41e40229e99bc2ef062", "rev1_date": "2015-02-06T22:17:51Z", "rev2_date": "2015-02-06T22:52:12Z", "git_diff_url": "https://github.com/Esri/geometry-api-java/compare/bfd52befa434b57d3502835cba533cfe49b47a91...0be866c0d8be44dc610be41e40229e99bc2ef062", "test_file": "src/test/java/com/esri/core/geometry/TestSimplify.java", "test_changes": [{"change_id": "895_Esri_geometry-api-java-v2.2.4_bfd52be_0be866c_TestSimplify", "test_sign": "com/esri/core/geometry/TestSimplify.testFillRule:()V", "class": "TestSimplify", "method": "testFillRule", "module": "", "junit_selector": "com.esri.core.geometry.TestSimplify#testFillRule", "old_test_code": null, "new_test_code": "@Test\npublic void testFillRule() throws JsonParseException, IOException {\n MapGeometry mg = OperatorImportFromJson.local().execute(Geometry.Type.Unknown, \"{\\\"rings\\\":[[[0,0], [5,10], [10, 0], [0, 7], [10, 7], [0, 0]]]}\");\n Polygon poly = (Polygon) mg.getGeometry();\n assertTrue(poly.getFillRule() == Polygon.FillRule.enumFillRuleOddEven);\n poly.setFillRule(Polygon.FillRule.enumFillRuleWinding);\n assertTrue(poly.getFillRule() == Polygon.FillRule.enumFillRuleWinding);\n Geometry simpleResult = OperatorSimplify.local().execute(poly, null, true, null);\n assertTrue(((Polygon) simpleResult).getFillRule() == Polygon.FillRule.enumFillRuleOddEven);\n MapGeometry mg1 = OperatorImportFromJson.local().execute(Geometry.Type.Unknown, \"{\\\"rings\\\":[[[0,0],[2.5925925925925926,5.185185185185185],[0,7],[3.5,7],[5,10],[6.5,7],[10,7],[7.407407407407407,5.185185185185185],[10,0],[5,3.5],[0,0]]]}\");\n boolean equals = OperatorEquals.local().execute(mg1.getGeometry(), simpleResult, null, null);\n assertTrue(equals);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1331-1345"], "old_production_code": "", "new_production_code": "public int getFillRule() {\n return m_impl.getFillRule();\n}", "focal_file_path": "src/main/java/com/esri/core/geometry/Polygon.java", "focal_method_sign": "com/esri/core/geometry/Polygon.getFillRule:()I", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/esri/core/geometry/Polygon.getFillRule:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Polygon.java", "line_nums_new": "172-174", "dependency_updated": "inserted", "score": 0.2732, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.7273, "class": 0.0, "tfidf": 0.1064}}, {"dep_id": 1, "method_sign": "com/esri/core/geometry/Polygon.setFillRule:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Polygon.java", "line_nums_new": "162-164", "dependency_updated": "inserted", "score": 0.2536, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.7273, "class": 0.0, "tfidf": 0.0231}}, {"dep_id": 0, "method_sign": "com/esri/core/geometry/OperatorSimplify.local:()Lcom/esri/core/geometry/OperatorSimplify", "file_path_old": "src/main/java/com/esri/core/geometry/OperatorSimplify.java", "line_nums_old": "103-106", "file_path_new": null, "line_nums_new": null, "dependency_updated": "deleted", "score": 0.1339, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.25, "class": 0.0, "tfidf": 0.094}}, {"dep_id": 3, "method_sign": "com/esri/core/geometry/OperatorSimplifyLocal.execute:(Lcom/esri/core/geometry/Geometry;Lcom/esri/core/geometry/SpatialReference;ZLcom/esri/core/geometry/ProgressTracker;)Lcom/esri/core/geometry/Geometry", "file_path_old": "src/main/java/com/esri/core/geometry/OperatorSimplifyLocal.java", "line_nums_old": "48-56", "file_path_new": null, "line_nums_new": null, "dependency_updated": "deleted", "score": 0.1077, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.25, "class": 0.0, "tfidf": 0.0684}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.5379, "method_coverage_gold": 21.7703, "line_coverage_gold": 13.0046, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/esri/core/geometry/OperatorImportFromJsonLocal.execute:(Lcom/esri/core/geometry/Geometry$Type;Ljava/lang/String;)Lcom/esri/core/geometry/MapGeometry", "com/esri/core/geometry/MapGeometry.getGeometry:()Lcom/esri/core/geometry/Geometry", "com/esri/core/geometry/OperatorEquals.local:()Lcom/esri/core/geometry/OperatorEquals", "com/esri/core/geometry/Polygon.getFillRule:()I", "com/esri/core/geometry/OperatorEqualsLocal.execute:(Lcom/esri/core/geometry/Geometry;Lcom/esri/core/geometry/Geometry;Lcom/esri/core/geometry/SpatialReference;Lcom/esri/core/geometry/ProgressTracker;)Z", "com/esri/core/geometry/Polygon.setFillRule:(I)V", "com/esri/core/geometry/TestSimplify.tearDown:()V", "com/esri/core/geometry/OperatorImportFromJson.local:()Lcom/esri/core/geometry/OperatorImportFromJson"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/esri/core/geometry/OperatorSimplify.local:()Lcom/esri/core/geometry/OperatorSimplify", "change_type": "DELETE", "file_path_old": "src/main/java/com/esri/core/geometry/OperatorSimplify.java", "file_path_new": null, "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/esri/core/geometry/Polygon.setFillRule:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Polygon.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/esri/core/geometry/Polygon.getFillRule:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/Polygon.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/esri/core/geometry/OperatorSimplifyLocal.execute:(Lcom/esri/core/geometry/Geometry;Lcom/esri/core/geometry/SpatialReference;ZLcom/esri/core/geometry/ProgressTracker;)Lcom/esri/core/geometry/Geometry", "change_type": "DELETE", "file_path_old": "src/main/java/com/esri/core/geometry/OperatorSimplifyLocal.java", "file_path_new": null, "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.2.4", "java_version": 11} {"task_id": "Esri_geometry-api-java-v2.2.4__f2468d5_ca64269__TestGeomToGeoJson_3a787632", "project_name": "Esri_geometry-api-java-v2.2.4", "git_clone_url": "https://github.com/Esri/geometry-api-java.git", "rev1": "f2468d50ad05e8ab2a790355d1342f2d829ffa82", "rev2": "ca6426936796e85c738d9bded8612d8851de5b5e", "rev1_date": "2016-01-07T18:12:17Z", "rev2_date": "2016-01-07T18:58:56Z", "git_diff_url": "https://github.com/Esri/geometry-api-java/compare/f2468d50ad05e8ab2a790355d1342f2d829ffa82...ca6426936796e85c738d9bded8612d8851de5b5e", "test_file": "src/test/java/com/esri/core/geometry/TestGeomToGeoJson.java", "test_changes": [{"change_id": "529_Esri_geometry-api-java-v2.2.4_f2468d5_ca64269_TestGeomToGeoJson", "test_sign": "com/esri/core/geometry/TestGeomToGeoJson.testEmptyGeometryCollection:()V", "class": "TestGeomToGeoJson", "method": "testEmptyGeometryCollection", "module": "", "junit_selector": "com.esri.core.geometry.TestGeomToGeoJson#testEmptyGeometryCollection", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyGeometryCollection() {\n SpatialReference sr = SpatialReference.create(4326);\n OGCConcreteGeometryCollection collection = new OGCConcreteGeometryCollection(new ArrayList(), sr);\n assertEquals(\"{\\\"type\\\" : \\\"GeometryCollection\\\", \\\"geometries\\\" : []}\", collection.asGeoJson());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["400-405"], "old_production_code": "", "new_production_code": "@Override\npublic String asGeoJson() {\n StringBuilder sb = new StringBuilder();\n OperatorExportToGeoJson op = (OperatorExportToGeoJson) OperatorFactoryLocal.getInstance().getOperator(Operator.Type.ExportToGeoJson);\n JsonCursor cursor = op.execute(this.esriSR, getEsriGeometryCursor());\n sb.append(\"{\\\"type\\\" : \\\"GeometryCollection\\\", \\\"geometries\\\" : \");\n String shape = cursor.next();\n if (shape == null) {\n sb.append(\"[]}\");\n return sb.toString();\n }\n sb.append(\"[\");\n sb.append(shape);\n while (true) {\n shape = cursor.next();\n if (shape == null)\n break;\n sb.append(\", \").append(shape);\n }\n sb.append(\"]}\");\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "focal_method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "line_nums_new": "332-360", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.1183, "method_coverage_gold": 3.0435, "line_coverage_gold": 0.7623, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/esri/core/geometry/SpatialReference.create:(I)Lcom/esri/core/geometry/SpatialReference", "com/esri/core/geometry/TestGeomToGeoJson.tearDown:()V", "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "530_Esri_geometry-api-java-v2.2.4_f2468d5_ca64269_TestGeomToGeoJson", "test_sign": "com/esri/core/geometry/TestGeomToGeoJson.testGeometryCollection:()V", "class": "TestGeomToGeoJson", "method": "testGeometryCollection", "module": "", "junit_selector": "com.esri.core.geometry.TestGeomToGeoJson#testGeometryCollection", "old_test_code": null, "new_test_code": "@Test\npublic void testGeometryCollection() {\n SpatialReference sr = SpatialReference.create(4326);\n StringBuilder geometrySb = new StringBuilder();\n geometrySb.append(\"{\\\"type\\\" : \\\"GeometryCollection\\\", \\\"geometries\\\" : [\");\n OGCPoint point = new OGCPoint(new Point(1.0, 1.0), sr);\n assertEquals(\"{\\\"x\\\":1,\\\"y\\\":1,\\\"spatialReference\\\":{\\\"wkid\\\":4326}}\", point.asJson());\n assertEquals(\"{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[1.0,1.0]}\", point.asGeoJson());\n geometrySb.append(point.asGeoJson()).append(\", \");\n OGCLineString line = new OGCLineString(new Polyline(new Point(1.0, 1.0), new Point(2.0, 2.0)), 0, sr);\n assertEquals(\"{\\\"paths\\\":[[[1,1],[2,2]]],\\\"spatialReference\\\":{\\\"wkid\\\":4326}}\", line.asJson());\n assertEquals(\"{\\\"type\\\":\\\"LineString\\\",\\\"coordinates\\\":[[1.0,1.0],[2.0,2.0]]}\", line.asGeoJson());\n geometrySb.append(line.asGeoJson()).append(\", \");\n Polygon p = new Polygon();\n p.startPath(1.0, 1.0);\n p.lineTo(2.0, 2.0);\n p.lineTo(3.0, 1.0);\n p.lineTo(2.0, 0.0);\n OGCPolygon polygon = new OGCPolygon(p, sr);\n assertEquals(\"{\\\"rings\\\":[[[1,1],[2,2],[3,1],[2,0],[1,1]]],\\\"spatialReference\\\":{\\\"wkid\\\":4326}}\", polygon.asJson());\n assertEquals(\"{\\\"type\\\":\\\"Polygon\\\",\\\"coordinates\\\":[[[1.0,1.0],[2.0,2.0],[3.0,1.0],[2.0,0.0],[1.0,1.0]]]}\", polygon.asGeoJson());\n geometrySb.append(polygon.asGeoJson()).append(\"]}\");\n List geoms = new ArrayList(3);\n geoms.add(point);\n geoms.add(line);\n geoms.add(polygon);\n OGCConcreteGeometryCollection collection = new OGCConcreteGeometryCollection(geoms, sr);\n assertEquals(geometrySb.toString(), collection.asGeoJson());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["364-398"], "old_production_code": "", "new_production_code": "@Override\npublic String asGeoJson() {\n StringBuilder sb = new StringBuilder();\n OperatorExportToGeoJson op = (OperatorExportToGeoJson) OperatorFactoryLocal.getInstance().getOperator(Operator.Type.ExportToGeoJson);\n JsonCursor cursor = op.execute(this.esriSR, getEsriGeometryCursor());\n sb.append(\"{\\\"type\\\" : \\\"GeometryCollection\\\", \\\"geometries\\\" : \");\n String shape = cursor.next();\n if (shape == null) {\n sb.append(\"[]}\");\n return sb.toString();\n }\n sb.append(\"[\");\n sb.append(shape);\n while (true) {\n shape = cursor.next();\n if (shape == null)\n break;\n sb.append(\", \").append(shape);\n }\n sb.append(\"]}\");\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "focal_method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "line_nums_new": "332-360", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.92, "branch_coverage_gold": 1.7006, "method_coverage_gold": 9.0793, "line_coverage_gold": 3.7951, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/esri/core/geometry/SpatialReference.create:(I)Lcom/esri/core/geometry/SpatialReference", "com/esri/core/geometry/ogc/OGCGeometry.asJson:()Ljava/lang/String", "com/esri/core/geometry/ogc/OGCGeometry.asGeoJson:()Ljava/lang/String", "com/esri/core/geometry/MultiPath.startPath:(DD)V", "com/esri/core/geometry/TestGeomToGeoJson.tearDown:()V", "com/esri/core/geometry/MultiPath.lineTo:(DD)V", "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.asGeoJson:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/esri/core/geometry/ogc/OGCConcreteGeometryCollection.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.2.4", "java_version": 11} {"task_id": "Hakky54_ayza-v10.0.3__10d831a_186ee7d__TrustManagerParametersShould_82578f5a", "project_name": "Hakky54_ayza-v10.0.3", "git_clone_url": "https://github.com/Hakky54/ayza.git", "rev1": "10d831a31c35e2a8212d5554575c3a4d53ab6bbd", "rev2": "186ee7d399619a4342a5eecac5107466bde20cd8", "rev1_date": "2024-05-06T08:51:57Z", "rev2_date": "2024-05-06T08:55:57Z", "git_diff_url": "https://github.com/Hakky54/ayza/compare/10d831a31c35e2a8212d5554575c3a4d53ab6bbd...186ee7d399619a4342a5eecac5107466bde20cd8", "test_file": "sslcontext-kickstart/src/test/java/nl/altindag/ssl/model/TrustManagerParametersShould.java", "test_changes": [{"change_id": "256_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent:()V", "class": "TrustManagerParametersShould", "method": "getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent() {\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, null);\n assertThat(trustManagerParameters.getHostname()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-60"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.5966, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "257_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent:()V", "class": "TrustManagerParametersShould", "method": "getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent", "old_test_code": null, "new_test_code": "@Test\nvoid getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent() {\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, null);\n assertThat(trustManagerParameters.getPort()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-84"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.5966, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "258_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameFromSslEngineIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getHostnameFromSslEngineIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameFromSslEngineIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameFromSslEngineIfAvailable() {\n SSLEngine sslEngine = mock(SSLEngine.class);\n when(sslEngine.getPeerHost()).thenReturn(\"localhost\");\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, sslEngine);\n assertThat(trustManagerParameters.getHostname()).hasValue(\"localhost\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-42"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6352, "line_coverage_gold": 0.5593, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "259_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortFromSocketIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getPortFromSocketIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortFromSocketIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getPortFromSocketIfAvailable() {\n SSLSocket socket = mock(SSLSocket.class);\n when(socket.getPort()).thenReturn(8443);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, socket, null);\n assertThat(trustManagerParameters.getPort()).hasValue(8443);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-78"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.5966, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "260_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortFromSslEngineIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getPortFromSslEngineIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortFromSslEngineIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getPortFromSslEngineIfAvailable() {\n SSLEngine sslEngine = mock(SSLEngine.class);\n when(sslEngine.getPeerPort()).thenReturn(8443);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, sslEngine);\n assertThat(trustManagerParameters.getPort()).hasValue(8443);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-69"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6352, "line_coverage_gold": 0.5593, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "261_Hakky54_ayza-v10.0.3_10d831a_186ee7d_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameFromSocketIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getHostnameFromSocketIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameFromSocketIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameFromSocketIfAvailable() {\n SSLSocket socket = mock(SSLSocket.class);\n InetAddress inetAddress = mock(Inet4Address.class);\n when(inetAddress.getHostName()).thenReturn(\"localhost\");\n when(socket.getInetAddress()).thenReturn(inetAddress);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, socket, null);\n assertThat(trustManagerParameters.getHostname()).hasValue(\"localhost\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-54"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9074, "line_coverage_gold": 0.5966, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v10.0.3", "java_version": 11} {"task_id": "Hakky54_ayza-v10.0.3__804448b_cb8acf5__SSLFactoryShould_942cfdc4", "project_name": "Hakky54_ayza-v10.0.3", "git_clone_url": "https://github.com/Hakky54/ayza.git", "rev1": "804448b287156011cf8ad30276b713379de6c89e", "rev2": "cb8acf5fe3c20c5d9fa46fef34a19570668e7c67", "rev1_date": "2024-12-09T01:01:40Z", "rev2_date": "2024-12-09T06:41:50Z", "git_diff_url": "https://github.com/Hakky54/ayza/compare/804448b287156011cf8ad30276b713379de6c89e...cb8acf5fe3c20c5d9fa46fef34a19570668e7c67", "test_file": "sslcontext-kickstart/src/test/java/nl/altindag/ssl/SSLFactoryShould.java", "test_changes": [{"change_id": "189_Hakky54_ayza-v10.0.3_804448b_cb8acf5_SSLFactoryShould", "test_sign": "nl/altindag/ssl/SSLFactoryShould.mapSslFactoryInternalsInFunctionalWay:()V", "class": "SSLFactoryShould", "method": "mapSslFactoryInternalsInFunctionalWay", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.SSLFactoryShould#mapSslFactoryInternalsInFunctionalWay", "old_test_code": null, "new_test_code": "@Test\nvoid mapSslFactoryInternalsInFunctionalWay() {\n SSLParameters sslParameters = SSLFactory.builder().withDefaultTrustMaterial().build().map(SSLFactory::getSSLEngine).map(SSLEngine::getSSLParameters).get();\n assertThat(sslParameters).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1952-1962"], "old_production_code": "", "new_production_code": "public Box map(Function mapper) {\n return Box.of(this).map(mapper);\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/SSLFactory.java", "focal_method_sign": "nl/altindag/ssl/SSLFactory.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "nl/altindag/ssl/SSLFactory.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/SSLFactory.java", "line_nums_new": "165-167", "dependency_updated": "inserted", "score": 0.4192, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0811, "class": 1.0, "tfidf": 0.175}}, {"dep_id": 0, "method_sign": "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "line_nums_new": "34-44", "dependency_updated": "inserted", "score": 0.206, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0811, "class": 0.0, "tfidf": 0.0689}}, {"dep_id": 2, "method_sign": "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.1527, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0541, "class": 0.0, "tfidf": 0.111}}], "coverage_gold": 0.2760942760942761, "branch_coverage_gold": 7.9279, "method_coverage_gold": 7.2146, "line_coverage_gold": 8.953, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/SSLFactory$Builder.build:()Lnl/altindag/ssl/SSLFactory", "nl/altindag/ssl/SSLFactory.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "nl/altindag/ssl/SSLFactory.builder:()Lnl/altindag/ssl/SSLFactory$Builder", "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "nl/altindag/ssl/SSLFactory$Builder.withDefaultTrustMaterial:()Lnl/altindag/ssl/SSLFactory$Builder", "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "nl/altindag/ssl/SSLFactory.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/SSLFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v10.0.3", "java_version": 11} {"task_id": "Hakky54_ayza-v10.0.3__804448b_cb8acf5__BoxShould_00bd9903", "project_name": "Hakky54_ayza-v10.0.3", "git_clone_url": "https://github.com/Hakky54/ayza.git", "rev1": "804448b287156011cf8ad30276b713379de6c89e", "rev2": "cb8acf5fe3c20c5d9fa46fef34a19570668e7c67", "rev1_date": "2024-12-09T01:01:40Z", "rev2_date": "2024-12-09T06:41:50Z", "git_diff_url": "https://github.com/Hakky54/ayza/compare/804448b287156011cf8ad30276b713379de6c89e...cb8acf5fe3c20c5d9fa46fef34a19570668e7c67", "test_file": "sslcontext-kickstart/src/test/java/nl/altindag/ssl/util/BoxShould.java", "test_changes": [{"change_id": "188_Hakky54_ayza-v10.0.3_804448b_cb8acf5_BoxShould", "test_sign": "nl/altindag/ssl/util/BoxShould.wrapAnyExceptionInGenericException:()V", "class": "BoxShould", "method": "wrapAnyExceptionInGenericException", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.util.BoxShould#wrapAnyExceptionInGenericException", "old_test_code": null, "new_test_code": "@Test\nvoid wrapAnyExceptionInGenericException() {\n Box stringBox = Box.of(\"\").map(value -> {\n throw new RuntimeException(\"KABOOM\");\n });\n assertThatThrownBy(stringBox::get).isInstanceOf(GenericException.class).hasRootCauseMessage(\"KABOOM\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-38"], "old_production_code": "", "new_production_code": "default T get() {\n return valueHolder().get();\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "focal_method_sign": "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.4075, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0882, "class": 1.0, "tfidf": 0.1201}}, {"dep_id": 1, "method_sign": "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "line_nums_new": "34-44", "dependency_updated": "inserted", "score": 0.362, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0588, "class": 1.0, "tfidf": 0.1975}}, {"dep_id": 0, "method_sign": "nl/altindag/ssl/util/Box.of:(Ljava/lang/Object;)Lnl/altindag/ssl/util/Box", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.3392, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0294, "class": 1.0, "tfidf": 0.2459}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9132, "line_coverage_gold": 0.3414, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/util/Box.of:(Ljava/lang/Object;)Lnl/altindag/ssl/util/Box", "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/util/Box.of:(Ljava/lang/Object;)Lnl/altindag/ssl/util/Box", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "nl/altindag/ssl/util/Box.map:(Lnl/altindag/ssl/util/Function;)Lnl/altindag/ssl/util/Box", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "nl/altindag/ssl/util/Box.get:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/util/Box.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v10.0.3", "java_version": 11} {"task_id": "Hakky54_ayza-v10.0.3__b81821e_f730c80__TrustManagerParametersShould_82578f5a", "project_name": "Hakky54_ayza-v10.0.3", "git_clone_url": "https://github.com/Hakky54/ayza.git", "rev1": "b81821e706e5666282e58e456994217b433f9a33", "rev2": "f730c80d38d8a5a3e6126caedbdbc41075456cd8", "rev1_date": "2024-05-06T09:11:29Z", "rev2_date": "2024-05-06T09:26:10Z", "git_diff_url": "https://github.com/Hakky54/ayza/compare/b81821e706e5666282e58e456994217b433f9a33...f730c80d38d8a5a3e6126caedbdbc41075456cd8", "test_file": "sslcontext-kickstart/src/test/java/nl/altindag/ssl/model/TrustManagerParametersShould.java", "test_changes": [{"change_id": "277_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent:()V", "class": "TrustManagerParametersShould", "method": "getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameIsAbsentWhenNoSSLEngineAndSocketIsPresent() {\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, null);\n assertThat(trustManagerParameters.getHostname()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-60"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "278_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent:()V", "class": "TrustManagerParametersShould", "method": "getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent", "old_test_code": null, "new_test_code": "@Test\nvoid getPortIsAbsentWhenNoSSLEngineAndSocketIsPresent() {\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, null);\n assertThat(trustManagerParameters.getPort()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-84"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "279_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameFromSslEngineIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getHostnameFromSslEngineIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameFromSslEngineIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameFromSslEngineIfAvailable() {\n SSLEngine sslEngine = mock(SSLEngine.class);\n when(sslEngine.getPeerHost()).thenReturn(\"localhost\");\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, sslEngine);\n assertThat(trustManagerParameters.getHostname()).hasValue(\"localhost\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-42"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6352, "line_coverage_gold": 0.5597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "280_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortFromSocketIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getPortFromSocketIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortFromSocketIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getPortFromSocketIfAvailable() {\n SSLSocket socket = mock(SSLSocket.class);\n when(socket.getPort()).thenReturn(8443);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, socket, null);\n assertThat(trustManagerParameters.getPort()).hasValue(8443);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-78"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8167, "line_coverage_gold": 0.597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "281_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getPortFromSslEngineIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getPortFromSslEngineIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getPortFromSslEngineIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getPortFromSslEngineIfAvailable() {\n SSLEngine sslEngine = mock(SSLEngine.class);\n when(sslEngine.getPeerPort()).thenReturn(8443);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, null, sslEngine);\n assertThat(trustManagerParameters.getPort()).hasValue(8443);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-69"], "old_production_code": "", "new_production_code": "public Optional getPort() {\n return findFirst(getPortFromSslEngine(), getPortFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6352, "line_coverage_gold": 0.5597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getPort:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "282_Hakky54_ayza-v10.0.3_b81821e_f730c80_TrustManagerParametersShould", "test_sign": "nl/altindag/ssl/model/TrustManagerParametersShould.getHostnameFromSocketIfAvailable:()V", "class": "TrustManagerParametersShould", "method": "getHostnameFromSocketIfAvailable", "module": "sslcontext-kickstart", "junit_selector": "nl.altindag.ssl.model.TrustManagerParametersShould#getHostnameFromSocketIfAvailable", "old_test_code": null, "new_test_code": "@Test\nvoid getHostnameFromSocketIfAvailable() {\n SSLSocket socket = mock(SSLSocket.class);\n InetAddress inetAddress = mock(Inet4Address.class);\n when(inetAddress.getHostName()).thenReturn(\"localhost\");\n when(socket.getInetAddress()).thenReturn(inetAddress);\n TrustManagerParameters trustManagerParameters = new TrustManagerParameters(null, null, socket, null);\n assertThat(trustManagerParameters.getHostname()).hasValue(\"localhost\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-54"], "old_production_code": "", "new_production_code": "public Optional getHostname() {\n return findFirst(getHostnameFromSslEngine(), getHostnameFromSocket());\n}", "focal_file_path": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "focal_method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9074, "line_coverage_gold": 0.597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "nl/altindag/ssl/model/TrustManagerParameters.getHostname:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "sslcontext-kickstart/src/main/java/nl/altindag/ssl/model/TrustManagerParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v10.0.3", "java_version": 11} {"task_id": "JamesZBL_java_design_patterns-master__ef6fdaa_21f885b__AbstractFactoryTest_e09892fd", "project_name": "JamesZBL_java_design_patterns-master", "git_clone_url": "https://github.com/JamesZBL/java_design_patterns.git", "rev1": "ef6fdaab61b8f03b95b953778f0d9d9010f2ebc7", "rev2": "21f885bbe73992813642cc25d084d5a411b87ff8", "rev1_date": "2017-11-12T06:20:34Z", "rev2_date": "2017-11-12T07:06:50Z", "git_diff_url": "https://github.com/JamesZBL/java_design_patterns/compare/ef6fdaab61b8f03b95b953778f0d9d9010f2ebc7...21f885bbe73992813642cc25d084d5a411b87ff8", "test_file": "abstract-factory/src/test/java/me/zbl/abstractFactory/AbstractFactoryTest.java", "test_changes": [{"change_id": "12_JamesZBL_java_design_patterns-master_ef6fdaa_21f885b_AbstractFactoryTest", "test_sign": "me/zbl/abstractFactory/AbstractFactoryTest.testApplication:()V", "class": "AbstractFactoryTest", "method": "testApplication", "module": "abstract-factory", "junit_selector": "me.zbl.abstractFactory.AbstractFactoryTest#testApplication", "old_test_code": null, "new_test_code": "@Test\npublic void testApplication() {\n String[] args = {};\n Application.main(args);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-68"], "old_production_code": "", "new_production_code": "public static void main(String[] args) {\n Application app = new Application();\n app.createTeam(new YoungTeamFactory());\n LOGGER.info(\"正在创建一支年轻的队伍...\");\n LOGGER.info(\"-->\" + app.getmCaptain().getDescription());\n LOGGER.info(\"-->\" + app.getmShip().getDescription());\n LOGGER.info(\"-->\" + app.getmSailor().getDescription());\n app.createTeam(new PermanentTeamFactory());\n LOGGER.info(\"正在创建一支久经考验的队伍...\");\n LOGGER.info(\"-->\" + app.getmCaptain().getDescription());\n LOGGER.info(\"-->\" + app.getmShip().getDescription());\n LOGGER.info(\"-->\" + app.getmSailor().getDescription());\n}", "focal_file_path": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "focal_method_sign": "me/zbl/abstractFactory/Application.main:([Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "me/zbl/abstractFactory/Application.main:([Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 100.0, "line_coverage_gold": 100.0, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["4dc265ec9adb772df8d5ce7fdd40fb1c1a6d0e34", "f6f306c134ceef8c02343a1be2d4010f9fc003fb", "71afe54edd8541d90b0f90edfbd7a1c873d2ee33", "f79f634725c6e8e4adf90c7cd2f0fe7d55fa7a80"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["me/zbl/abstractFactory/Application.main:([Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "me/zbl/abstractFactory/Application.main:([Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "JamesZBL_java_design_patterns-master__ef6fdaa_f6f306c__AbstractFactoryTest_8c634c45", "project_name": "JamesZBL_java_design_patterns-master", "git_clone_url": "https://github.com/JamesZBL/java_design_patterns.git", "rev1": "ef6fdaab61b8f03b95b953778f0d9d9010f2ebc7", "rev2": "f6f306c134ceef8c02343a1be2d4010f9fc003fb", "rev1_date": "2017-11-12T06:20:34Z", "rev2_date": "2017-11-12T06:46:31Z", "git_diff_url": "https://github.com/JamesZBL/java_design_patterns/compare/ef6fdaab61b8f03b95b953778f0d9d9010f2ebc7...f6f306c134ceef8c02343a1be2d4010f9fc003fb", "test_file": "abstract-factory/src/test/java/me/zbl/abstractFactory/AbstractFactoryTest.java", "test_changes": [{"change_id": "7_JamesZBL_java_design_patterns-master_ef6fdaa_f6f306c_AbstractFactoryTest", "test_sign": "me/zbl/abstractFactory/AbstractFactoryTest.testCreateYoungTeam:()V", "class": "AbstractFactoryTest", "method": "testCreateYoungTeam", "module": "abstract-factory", "junit_selector": "me.zbl.abstractFactory.AbstractFactoryTest#testCreateYoungTeam", "old_test_code": null, "new_test_code": "@Test\npublic void testCreateYoungTeam() {\n mApplication.createTeam(mYoungTeamFactory);\n final Ship ship = mApplication.getmShip();\n final Captain captain = mApplication.getmCaptain();\n final Sailor sailor = mApplication.getmSailor();\n assertTrue(ship instanceof NewShip);\n assertTrue(captain instanceof YoungCaptain);\n assertTrue(sailor instanceof YoungSailor);\n assertEquals(ship.getDescription(), NewShip.DESCRIPTION);\n assertEquals(captain.getDescription(), YoungCaptain.DESCRIPTION);\n assertEquals(sailor.getDescription(), YoungSailor.DESCRIPTION);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-61"], "old_production_code": "", "new_production_code": "public void createTeam(final TeamFactory factory) {\n setmCaptain(factory.createCaptain());\n setmShip(factory.createShip());\n setmSailor(factory.createSailor());\n}", "focal_file_path": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "focal_method_sign": "me/zbl/abstractFactory/Application.createTeam:(Lme/zbl/abstractFactory/TeamFactory;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "me/zbl/abstractFactory/Application.createTeam:(Lme/zbl/abstractFactory/TeamFactory;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "line_nums_new": "39-43", "dependency_updated": "inserted", "score": 0.2885, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6667, "class": 0.0, "tfidf": 0.0096}}, {"dep_id": 2, "method_sign": "me/zbl/abstractFactory/NewShip.getDescription:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/NewShip.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.2, "class": 0.0, "tfidf": 0.204}}, {"dep_id": 5, "method_sign": "me/zbl/abstractFactory/YoungCaptain.getDescription:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/YoungCaptain.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.2, "class": 0.0, "tfidf": 0.204}}, {"dep_id": 6, "method_sign": "me/zbl/abstractFactory/YoungSailor.getDescription:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/YoungSailor.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.2, "class": 0.0, "tfidf": 0.204}}, {"dep_id": 3, "method_sign": "me/zbl/abstractFactory/Application.getmCaptain:()Lme/zbl/abstractFactory/Captain", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": 0.137, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2, "class": 0.0, "tfidf": 0.1697}}, {"dep_id": 4, "method_sign": "me/zbl/abstractFactory/Application.getmShip:()Lme/zbl/abstractFactory/Ship", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.1281, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1333, "class": 0.0, "tfidf": 0.1697}}, {"dep_id": 1, "method_sign": "me/zbl/abstractFactory/Application.getmSailor:()Lme/zbl/abstractFactory/Sailor", "file_path_old": null, "line_nums_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "line_nums_new": "78-80", "dependency_updated": "inserted", "score": 0.1148, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1333, "class": 0.0, "tfidf": 0.1697}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 66.6667, "line_coverage_gold": 55.3191, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["71afe54edd8541d90b0f90edfbd7a1c873d2ee33", "f79f634725c6e8e4adf90c7cd2f0fe7d55fa7a80"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["me/zbl/abstractFactory/Application.getmSailor:()Lme/zbl/abstractFactory/Sailor", "me/zbl/abstractFactory/Application.getmCaptain:()Lme/zbl/abstractFactory/Captain", "me/zbl/abstractFactory/NewShip.getDescription:()Ljava/lang/String", "me/zbl/abstractFactory/YoungSailor.getDescription:()Ljava/lang/String", "me/zbl/abstractFactory/Application.getmShip:()Lme/zbl/abstractFactory/Ship", "me/zbl/abstractFactory/Application.createTeam:(Lme/zbl/abstractFactory/TeamFactory;)V", "me/zbl/abstractFactory/YoungCaptain.getDescription:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "me/zbl/abstractFactory/Application.createTeam:(Lme/zbl/abstractFactory/TeamFactory;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/Application.getmSailor:()Lme/zbl/abstractFactory/Sailor", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/NewShip.getDescription:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/NewShip.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/Application.getmCaptain:()Lme/zbl/abstractFactory/Captain", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/Application.getmShip:()Lme/zbl/abstractFactory/Ship", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/Application.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/YoungCaptain.getDescription:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/YoungCaptain.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "me/zbl/abstractFactory/YoungSailor.getDescription:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "abstract-factory/src/main/java/me/zbl/abstractFactory/YoungSailor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "Javen205_IJPay-v2.8.4__ceafd24_996582e__WxPayKitTest_8649b344", "project_name": "Javen205_IJPay-v2.8.4", "git_clone_url": "https://github.com/Javen205/IJPay.git", "rev1": "ceafd245bef465d703c7530111626de905893657", "rev2": "996582e5028204b7ba2938ccaf009a3715ed204b", "rev1_date": "2019-12-08T06:45:32Z", "rev2_date": "2019-12-08T07:49:34Z", "git_diff_url": "https://github.com/Javen205/IJPay/compare/ceafd245bef465d703c7530111626de905893657...996582e5028204b7ba2938ccaf009a3715ed204b", "test_file": "IJPay-WxPay/src/test/java/com/ijpay/wxpay/WxPayKitTest.java", "test_changes": [{"change_id": "5_Javen205_IJPay-v2.8.4_ceafd24_996582e_WxPayKitTest", "test_sign": "com/ijpay/wxpay/WxPayKitTest.userServiceState:()V", "class": "WxPayKitTest", "method": "userServiceState", "module": "IJPay-WxPay", "junit_selector": "com.ijpay.wxpay.WxPayKitTest#userServiceState", "old_test_code": null, "new_test_code": "@Test\npublic void userServiceState() {\n try {\n Map params = new HashMap<>();\n params.put(\"service_id\", \"500001\");\n params.put(\"appid\", \"wxd678efh567hg6787\");\n params.put(\"openid\", \"oUpF8uMuAJO_M2pxb1Q9zNjWeS6o\");\n String result = WxPayApi.v3Execution(RequestMethod.GET, WxDomain.CHINA.toString(), WxApiType.USER_SERVICE_STATE.toString(), mchId, serialNo, keyPath, body, params);\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-76"], "old_production_code": "", "new_production_code": "public static String v3Execution(RequestMethod method, String urlPrefix, String urlSuffix, String mchId, String serialNo, String keyPath, String body, Map params) throws Exception {\n long timestamp = System.currentTimeMillis() / 1000;\n String authType = \"WECHATPAY2-SHA256-RSA2048\";\n String nonceStr = PayKit.generateStr();\n urlSuffix = urlSuffix.concat(\"?\").concat(PayKit.createLinkString(params, true));\n return v3Execution(method, urlPrefix, urlSuffix, mchId, serialNo, keyPath, body, nonceStr, timestamp, authType);\n}", "focal_file_path": "IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java", "focal_method_sign": "com/ijpay/wxpay/WxPayApi.v3Execution:(Lcom/ijpay/core/enums/RequestMethod;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/ijpay/wxpay/WxPayApi.v3Execution:(Lcom/ijpay/core/enums/RequestMethod;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java", "line_nums_new": "197-203", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0811, "line_coverage_gold": 17.0819, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/ijpay/wxpay/WxPayApi.v3Execution:(Lcom/ijpay/core/enums/RequestMethod;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "com/ijpay/wxpay/enums/WxDomain.toString:()Ljava/lang/String", "com/ijpay/wxpay/enums/WxApiType.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/ijpay/wxpay/WxPayApi.v3Execution:(Lcom/ijpay/core/enums/RequestMethod;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "IJPay-WxPay/src/main/java/com/ijpay/wxpay/WxPayApi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.8.4", "java_version": 11} {"task_id": "OpenAPITools_openapi-diff-2.1.7__86a4453_1987575__RenderTest_b81866d1", "project_name": "OpenAPITools_openapi-diff-2.1.7", "git_clone_url": "https://github.com/OpenAPITools/openapi-diff.git", "rev1": "86a4453b018995c05396aa2d54f7dd3dd99c4951", "rev2": "19875753ed4242f1502e2c0b98ea3caa680e92ea", "rev1_date": "2025-02-07T09:44:30Z", "rev2_date": "2025-02-07T14:40:18Z", "git_diff_url": "https://github.com/OpenAPITools/openapi-diff/compare/86a4453b018995c05396aa2d54f7dd3dd99c4951...19875753ed4242f1502e2c0b98ea3caa680e92ea", "test_file": "core/src/test/java/org/openapitools/openapidiff/core/output/RenderTest.java", "test_changes": [{"change_id": "174_OpenAPITools_openapi-diff-2.1.7_86a4453_1987575_RenderTest", "test_sign": "org/openapitools/openapidiff/core/output/RenderTest.testDefaultRenderMethod:()V", "class": "RenderTest", "method": "testDefaultRenderMethod", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.output.RenderTest#testDefaultRenderMethod", "old_test_code": null, "new_test_code": "@Test\nvoid testDefaultRenderMethod() {\n ChangedOpenApi diff = new ChangedOpenApi(null);\n assertThat(testRenderImpl.render(diff)).isEqualTo(\"Output\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-26"], "old_production_code": "", "new_production_code": "@Deprecated\ndefault String render(ChangedOpenApi diff) throws RendererException {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(byteArrayOutputStream);\n render(diff, outputStreamWriter);\n String result = byteArrayOutputStream.toString();\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n return result;\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/Render.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/Render.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/Render.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/Render.java", "line_nums_new": "28-42", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1723, "line_coverage_gold": 0.2147, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/output/Render.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/Render.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/Render.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.1.7", "java_version": 8} {"task_id": "OpenAPITools_openapi-diff-2.1.7__a3cb2c3_6f79b10__AsciidocRenderTest_3dad884a", "project_name": "OpenAPITools_openapi-diff-2.1.7", "git_clone_url": "https://github.com/OpenAPITools/openapi-diff.git", "rev1": "a3cb2c319d20af54a89763e4138af6653ce447a2", "rev2": "6f79b10a7014cd5995c7d615acfce7bce8aec988", "rev1_date": "2023-12-16T22:25:33Z", "rev2_date": "2023-12-16T22:29:12Z", "git_diff_url": "https://github.com/OpenAPITools/openapi-diff/compare/a3cb2c319d20af54a89763e4138af6653ce447a2...6f79b10a7014cd5995c7d615acfce7bce8aec988", "test_file": "core/src/test/java/org/openapitools/openapidiff/core/AsciidocRenderTest.java", "test_changes": [{"change_id": "100_OpenAPITools_openapi-diff-2.1.7_a3cb2c3_6f79b10_AsciidocRenderTest", "test_sign": "org/openapitools/openapidiff/core/AsciidocRenderTest.renderDoesNotCauseStackOverflowWithRecursiveDefinitions:()V", "class": "AsciidocRenderTest", "method": "renderDoesNotCauseStackOverflowWithRecursiveDefinitions", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.AsciidocRenderTest#renderDoesNotCauseStackOverflowWithRecursiveDefinitions", "old_test_code": null, "new_test_code": "@Test\npublic void renderDoesNotCauseStackOverflowWithRecursiveDefinitions() {\n AsciidocRender render = new AsciidocRender();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n ChangedOpenApi diff = OpenApiCompare.fromLocations(\"recursive_old.yaml\", \"recursive_new.yaml\");\n render.render(diff, outputStreamWriter);\n assertThat(outputStream.toString()).isNotBlank();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-31"], "old_production_code": "", "new_production_code": "@Override\npublic void render(ChangedOpenApi diff, OutputStreamWriter outputStreamWriter) {\n this.diff = diff;\n if (diff.isUnchanged()) {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \"NOTE: No differences. Specifications are equivalents\");\n } else {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \":reproducible:\\n:sectlinks:\\n:toc:\\n\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n List newEndpoints = diff.getNewEndpoints();\n listEndpoints(newEndpoints, \"What's New\", outputStreamWriter);\n List missingEndpoints = diff.getMissingEndpoints();\n listEndpoints(missingEndpoints, \"What's Deleted\", outputStreamWriter);\n List deprecatedEndpoints = diff.getDeprecatedEndpoints();\n listEndpoints(deprecatedEndpoints, \"What's Deprecated\", outputStreamWriter);\n List changedOperations = diff.getChangedOperations();\n ol_changed(changedOperations, outputStreamWriter);\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, diff.isCompatible() ? \"NOTE: API changes are backward compatible\" : \"WARNING: API changes broke backward compatibility\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n }\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "line_nums_new": "26-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7352941176470589, "branch_coverage_gold": 11.9582, "method_coverage_gold": 31.9483, "line_coverage_gold": 32.0291, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/OpenApiCompare.fromLocations:(Ljava/lang/String;Ljava/lang/String;)Lorg/openapitools/openapidiff/core/model/ChangedOpenApi", "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "101_OpenAPITools_openapi-diff-2.1.7_a3cb2c3_6f79b10_AsciidocRenderTest", "test_sign": "org/openapitools/openapidiff/core/AsciidocRenderTest.renderDoesNotFailWhenPropertyHasBeenRemoved:()V", "class": "AsciidocRenderTest", "method": "renderDoesNotFailWhenPropertyHasBeenRemoved", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.AsciidocRenderTest#renderDoesNotFailWhenPropertyHasBeenRemoved", "old_test_code": null, "new_test_code": "@Test\npublic void renderDoesNotFailWhenPropertyHasBeenRemoved() {\n AsciidocRender render = new AsciidocRender();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n ChangedOpenApi diff = OpenApiCompare.fromLocations(\"missing_property_1.yaml\", \"missing_property_2.yaml\");\n render.render(diff, outputStreamWriter);\n assertThat(outputStream.toString()).isNotBlank();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic void render(ChangedOpenApi diff, OutputStreamWriter outputStreamWriter) {\n this.diff = diff;\n if (diff.isUnchanged()) {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \"NOTE: No differences. Specifications are equivalents\");\n } else {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \":reproducible:\\n:sectlinks:\\n:toc:\\n\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n List newEndpoints = diff.getNewEndpoints();\n listEndpoints(newEndpoints, \"What's New\", outputStreamWriter);\n List missingEndpoints = diff.getMissingEndpoints();\n listEndpoints(missingEndpoints, \"What's Deleted\", outputStreamWriter);\n List deprecatedEndpoints = diff.getDeprecatedEndpoints();\n listEndpoints(deprecatedEndpoints, \"What's Deprecated\", outputStreamWriter);\n List changedOperations = diff.getChangedOperations();\n ol_changed(changedOperations, outputStreamWriter);\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, diff.isCompatible() ? \"NOTE: API changes are backward compatible\" : \"WARNING: API changes broke backward compatibility\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n }\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "line_nums_new": "26-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7352941176470589, "branch_coverage_gold": 12.376, "method_coverage_gold": 31.856, "line_coverage_gold": 31.2559, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/OpenApiCompare.fromLocations:(Ljava/lang/String;Ljava/lang/String;)Lorg/openapitools/openapidiff/core/model/ChangedOpenApi", "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "102_OpenAPITools_openapi-diff-2.1.7_a3cb2c3_6f79b10_AsciidocRenderTest", "test_sign": "org/openapitools/openapidiff/core/AsciidocRenderTest.validateAsciiDocRangeStatus:()V", "class": "AsciidocRenderTest", "method": "validateAsciiDocRangeStatus", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.AsciidocRenderTest#validateAsciiDocRangeStatus", "old_test_code": null, "new_test_code": "@Test\npublic void validateAsciiDocRangeStatus() {\n AsciidocRender render = new AsciidocRender();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n ChangedOpenApi diff = OpenApiCompare.fromLocations(\"range_statuscode_1.yaml\", \"range_statuscode_2.yaml\");\n render.render(diff, outputStreamWriter);\n assertThat(outputStream.toString()).isEqualTo(\"= PROJECTS API (v 1.0.0)\\n\" + \":reproducible:\\n\" + \":sectlinks:\\n\" + \":toc:\\n\" + \"\\n\" + \"== What's Changed\\n\" + \"=== GET /pet/\\n\" + \"* Return Type:\\n\" + \"** Add 4XX \\n\" + \"** Deleted 405 Method Not Allowed\\n\" + \"\\n\" + \"\\n\" + \"WARNING: API changes broke backward compatibility\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["72-95"], "old_production_code": "", "new_production_code": "@Override\npublic void render(ChangedOpenApi diff, OutputStreamWriter outputStreamWriter) {\n this.diff = diff;\n if (diff.isUnchanged()) {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \"NOTE: No differences. Specifications are equivalents\");\n } else {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \":reproducible:\\n:sectlinks:\\n:toc:\\n\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n List newEndpoints = diff.getNewEndpoints();\n listEndpoints(newEndpoints, \"What's New\", outputStreamWriter);\n List missingEndpoints = diff.getMissingEndpoints();\n listEndpoints(missingEndpoints, \"What's Deleted\", outputStreamWriter);\n List deprecatedEndpoints = diff.getDeprecatedEndpoints();\n listEndpoints(deprecatedEndpoints, \"What's Deprecated\", outputStreamWriter);\n List changedOperations = diff.getChangedOperations();\n ol_changed(changedOperations, outputStreamWriter);\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, diff.isCompatible() ? \"NOTE: API changes are backward compatible\" : \"WARNING: API changes broke backward compatibility\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n }\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "line_nums_new": "26-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 6.2663, "method_coverage_gold": 19.7599, "line_coverage_gold": 20.0797, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "103_OpenAPITools_openapi-diff-2.1.7_a3cb2c3_6f79b10_AsciidocRenderTest", "test_sign": "org/openapitools/openapidiff/core/AsciidocRenderTest.validateAsciiDocChangeFile:()V", "class": "AsciidocRenderTest", "method": "validateAsciiDocChangeFile", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.AsciidocRenderTest#validateAsciiDocChangeFile", "old_test_code": null, "new_test_code": "@Test\npublic void validateAsciiDocChangeFile() {\n AsciidocRender render = new AsciidocRender();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n ChangedOpenApi diff = OpenApiCompare.fromLocations(\"missing_property_1.yaml\", \"missing_property_2.yaml\");\n render.render(diff, outputStreamWriter);\n assertThat(outputStream.toString()).isEqualTo(\"= TITLE (v 1.0.0)\\n\" + \":reproducible:\\n\" + \":sectlinks:\\n\" + \":toc:\\n\" + \"\\n\" + \"== What's Changed\\n\" + \"=== GET /\\n\" + \"* Return Type:\\n\" + \"** Changed default \\n\" + \"** Media types:\\n\" + \"*** Changed application/json\\n\" + \"*** Schema:\\n\" + \"Backward compatible\\n\" + \"\\n\" + \"\\n\" + \"NOTE: API changes are backward compatible\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-70"], "old_production_code": "", "new_production_code": "@Override\npublic void render(ChangedOpenApi diff, OutputStreamWriter outputStreamWriter) {\n this.diff = diff;\n if (diff.isUnchanged()) {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \"NOTE: No differences. Specifications are equivalents\");\n } else {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \":reproducible:\\n:sectlinks:\\n:toc:\\n\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n List newEndpoints = diff.getNewEndpoints();\n listEndpoints(newEndpoints, \"What's New\", outputStreamWriter);\n List missingEndpoints = diff.getMissingEndpoints();\n listEndpoints(missingEndpoints, \"What's Deleted\", outputStreamWriter);\n List deprecatedEndpoints = diff.getDeprecatedEndpoints();\n listEndpoints(deprecatedEndpoints, \"What's Deprecated\", outputStreamWriter);\n List changedOperations = diff.getChangedOperations();\n ol_changed(changedOperations, outputStreamWriter);\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, diff.isCompatible() ? \"NOTE: API changes are backward compatible\" : \"WARNING: API changes broke backward compatibility\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n }\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "line_nums_new": "26-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7352941176470589, "branch_coverage_gold": 12.376, "method_coverage_gold": 31.856, "line_coverage_gold": 31.2559, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/OpenApiCompare.fromLocations:(Ljava/lang/String;Ljava/lang/String;)Lorg/openapitools/openapidiff/core/model/ChangedOpenApi", "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "104_OpenAPITools_openapi-diff-2.1.7_a3cb2c3_6f79b10_AsciidocRenderTest", "test_sign": "org/openapitools/openapidiff/core/AsciidocRenderTest.renderDoesNotFailWhenHTTPStatusCodeIsRange:()V", "class": "AsciidocRenderTest", "method": "renderDoesNotFailWhenHTTPStatusCodeIsRange", "module": "core", "junit_selector": "org.openapitools.openapidiff.core.AsciidocRenderTest#renderDoesNotFailWhenHTTPStatusCodeIsRange", "old_test_code": null, "new_test_code": "@Test\npublic void renderDoesNotFailWhenHTTPStatusCodeIsRange() {\n AsciidocRender render = new AsciidocRender();\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(outputStream);\n ChangedOpenApi diff = OpenApiCompare.fromLocations(\"range_statuscode_1.yaml\", \"range_statuscode_2.yaml\");\n render.render(diff, outputStreamWriter);\n assertThat(outputStream.toString()).isNotBlank();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-42"], "old_production_code": "", "new_production_code": "@Override\npublic void render(ChangedOpenApi diff, OutputStreamWriter outputStreamWriter) {\n this.diff = diff;\n if (diff.isUnchanged()) {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \"NOTE: No differences. Specifications are equivalents\");\n } else {\n safelyAppend(outputStreamWriter, bigTitle(diff.getNewSpecOpenApi().getInfo().getTitle(), diff.getNewSpecOpenApi().getInfo().getVersion()));\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, \":reproducible:\\n:sectlinks:\\n:toc:\\n\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n List newEndpoints = diff.getNewEndpoints();\n listEndpoints(newEndpoints, \"What's New\", outputStreamWriter);\n List missingEndpoints = diff.getMissingEndpoints();\n listEndpoints(missingEndpoints, \"What's Deleted\", outputStreamWriter);\n List deprecatedEndpoints = diff.getDeprecatedEndpoints();\n listEndpoints(deprecatedEndpoints, \"What's Deprecated\", outputStreamWriter);\n List changedOperations = diff.getChangedOperations();\n ol_changed(changedOperations, outputStreamWriter);\n safelyAppend(outputStreamWriter, System.lineSeparator());\n safelyAppend(outputStreamWriter, diff.isCompatible() ? \"NOTE: API changes are backward compatible\" : \"WARNING: API changes broke backward compatibility\");\n safelyAppend(outputStreamWriter, System.lineSeparator());\n }\n try {\n outputStreamWriter.close();\n } catch (IOException e) {\n throw new RendererException(e);\n }\n}", "focal_file_path": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "focal_method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "line_nums_new": "26-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7352941176470589, "branch_coverage_gold": 6.2663, "method_coverage_gold": 19.7599, "line_coverage_gold": 20.0797, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openapitools/openapidiff/core/OpenApiCompare.fromLocations:(Ljava/lang/String;Ljava/lang/String;)Lorg/openapitools/openapidiff/core/model/ChangedOpenApi", "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openapitools/openapidiff/core/output/AsciidocRender.render:(Lorg/openapitools/openapidiff/core/model/ChangedOpenApi;Ljava/io/OutputStreamWriter;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/openapitools/openapidiff/core/output/AsciidocRender.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.1.7", "java_version": 8} {"task_id": "Project-Books_book-project-v0.1.0__0edd23c_fee7439__PredefinedShelfServiceTest_15774386", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "0edd23cc3afa2ed9f56e64543747a53d93ac2df4", "rev2": "fee7439f28c4ed2cd5e15253a4a37f36ae46fea0", "rev1_date": "2020-12-19T09:04:12Z", "rev2_date": "2020-12-19T09:42:25Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/0edd23cc3afa2ed9f56e64543747a53d93ac2df4...fee7439f28c4ed2cd5e15253a4a37f36ae46fea0", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.java", "test_changes": [{"change_id": "946_Project-Books_book-project-v0.1.0_0edd23c_fee7439_PredefinedShelfServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.returnEmptySetForNonExistentShelf:()V", "class": "PredefinedShelfServiceTest", "method": "returnEmptySetForNonExistentShelf", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PredefinedShelfServiceTest#returnEmptySetForNonExistentShelf", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"return an empty set of books for a non-existent predefined shelf\")\nvoid returnEmptySetForNonExistentShelf() {\n String nonExistentShelf = \"not a predefined shelf\";\n Set actual = predefinedShelfService.getBooksInChosenPredefinedShelf(nonExistentShelf);\n assertThat(actual).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-133"], "old_production_code": "public Set getBooksInChosenPredefinedShelf(String chosenShelf) {\n Set books;\n if (isAllBooksShelf(chosenShelf)) {\n return getBooksInAllPredefinedShelves();\n }\n PredefinedShelf.ShelfName predefinedShelfName = getPredefinedShelfName(chosenShelf);\n PredefinedShelf predefinedShelf = findByPredefinedShelfNameAndLoggedInUser(predefinedShelfName);\n if (predefinedShelf == null) {\n books = new HashSet<>();\n } else {\n books = predefinedShelf.getBooks();\n }\n return books;\n}", "new_production_code": "public Set getBooksInChosenPredefinedShelf(String chosenShelf) {\n if (isAllBooksShelf(chosenShelf)) {\n return getBooksInAllPredefinedShelves();\n }\n PredefinedShelf.ShelfName predefinedShelfName = getPredefinedShelfName(chosenShelf);\n PredefinedShelf predefinedShelf = findByPredefinedShelfNameAndLoggedInUser(predefinedShelfName);\n Set books;\n if (predefinedShelf == null) {\n books = new HashSet<>();\n } else {\n books = predefinedShelf.getBooks();\n }\n return books;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getBooksInChosenPredefinedShelf:(Ljava/lang/String;)Ljava/util/Set", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getBooksInChosenPredefinedShelf:(Ljava/lang/String;)Ljava/util/Set", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_old": "188-203", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_new": "198-213", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 14.7368, "method_coverage_gold": 18.134, "line_coverage_gold": 15.3879, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PredefinedShelfService.getBooksInChosenPredefinedShelf:(Ljava/lang/String;)Ljava/util/Set"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getBooksInChosenPredefinedShelf:(Ljava/lang/String;)Ljava/util/Set", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__2374625_8e22171__ReadingGoalCalculatorTest_23697d9d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "2374625a1b6934e3cea885b7017d12a513106086", "rev2": "8e22171214a3d07f9e7bc01f1eb3c43537ed1353", "rev1_date": "2020-10-28T08:16:20Z", "rev2_date": "2020-10-28T13:48:35Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/2374625a1b6934e3cea885b7017d12a513106086...8e22171214a3d07f9e7bc01f1eb3c43537ed1353", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.java", "test_changes": [{"change_id": "1404_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testNoProgressMadeTowardsGoal:()V", "class": "ReadingGoalCalculatorTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1406_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.shouldNotThrowExceptionOnZeroDivision:()V", "class": "ReadingGoalCalculatorTest", "method": "shouldNotThrowExceptionOnZeroDivision", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#shouldNotThrowExceptionOnZeroDivision", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Ensure 0, and not an arithmetic exception, is returned\")\nvoid shouldNotThrowExceptionOnZeroDivision() {\n int toRead = 5;\n int read = 0;\n SoftAssertions softly = new SoftAssertions();\n softly.assertThatCode(() -> calculateProgressTowardsReadingGoal(toRead, read)).doesNotThrowAnyException();\n softly.assertThat(calculateProgressTowardsReadingGoal(toRead, read)).isZero();\n softly.assertAll();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1410_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testBooksToReadFromStartOfYear:()V", "class": "ReadingGoalCalculatorTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(26);\n assertThat(booksToReadFromStartOfYear).isEqualTo(0.5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-167"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0484, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1411_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1415_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValue:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1417_Project-Books_book-project-v0.1.0_2374625_8e22171_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 0.1577, "line_coverage_gold": 0.0967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__2a13d63_a4d6871__BookFormTest_530da82a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "2a13d63938d3738fcb251d279e3a098515271222", "rev2": "a4d6871ae05b55998b2cba77c7ea920a89ad69ff", "rev1_date": "2020-12-09T07:35:38Z", "rev2_date": "2020-12-09T08:37:47Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/2a13d63938d3738fcb251d279e3a098515271222...a4d6871ae05b55998b2cba77c7ea920a89ad69ff", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "1180_Project-Books_book-project-v0.1.0_2a13d63_a4d6871_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.useUsersCustomShelf_whenCustomShelfIsNull:()V", "class": "BookFormTest", "method": "useUsersCustomShelf_whenCustomShelfIsNull", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#useUsersCustomShelf_whenCustomShelfIsNull", "old_test_code": null, "new_test_code": "@Test\nvoid useUsersCustomShelf_whenCustomShelfIsNull() {\n Book book = createBook(READ, true, \"title\");\n book.setCustomShelf(null);\n bookForm.setBook(book);\n assertThat(customShelfService.findAllForLoggedInUser().get(0)).isEqualTo(book.getCustomShelf());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["811-823"], "old_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n CustomShelf customShelf = customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "new_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n List usersShelves = customShelfService.findAllForLoggedInUser();\n CustomShelf customShelf = !usersShelves.isEmpty() ? usersShelves.get(0) : customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "468-486", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "469-489", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 19.6629, "method_coverage_gold": 41.2587, "line_coverage_gold": 44.0089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookFormTest.createBook:(Lcom/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName;ZLjava/lang/String;)Lcom/karankumar/bookproject/backend/entity/Book", "com/karankumar/bookproject/backend/entity/BaseEntity.equals:(Ljava/lang/Object;)Z", "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/backend/service/CustomShelfService.findAllForLoggedInUser:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "1181_Project-Books_book-project-v0.1.0_2a13d63_a4d6871_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.dontResetBinder_whenOpeningFormForExistingBook:()V", "class": "BookFormTest", "method": "dontResetBinder_whenOpeningFormForExistingBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#dontResetBinder_whenOpeningFormForExistingBook", "old_test_code": null, "new_test_code": "@Test\nvoid dontResetBinder_whenOpeningFormForExistingBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.openForm();\n assertThat(bookForm.binder).isEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["591-601"], "old_production_code": "public void openForm() {\n clearErrors();\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "new_production_code": "public void openForm() {\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "236-241", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "238-242", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.6629, "method_coverage_gold": 41.958, "line_coverage_gold": 44.588, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1182_Project-Books_book-project-v0.1.0_2a13d63_a4d6871_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.createNewBinder_whenOpeningFormForNewBook:()V", "class": "BookFormTest", "method": "createNewBinder_whenOpeningFormForNewBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#createNewBinder_whenOpeningFormForNewBook", "old_test_code": null, "new_test_code": "@Test\nvoid createNewBinder_whenOpeningFormForNewBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.addBook();\n assertThat(bookForm.binder).isNotEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["603-613"], "old_production_code": "public void addBook() {\n clearFormFields();\n openForm();\n}", "new_production_code": "public void addBook() {\n clearFormFields();\n clearErrors();\n openForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "658-661", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "661-665", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.3652, "method_coverage_gold": 42.5175, "line_coverage_gold": 45.8352, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__2d7897f_eef6154__BookTest_d156af44", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev2": "eef61540f68aac1d78c3be9c968510cd472f69f7", "rev1_date": "2020-11-24T20:31:18Z", "rev2_date": "2020-11-24T20:41:04Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/2d7897f6edf7963d868b9303f6d12252f468cff0...eef61540f68aac1d78c3be9c968510cd472f69f7", "test_file": "src/test/java/com/karankumar/bookproject/backend/entity/BookTest.java", "test_changes": [{"change_id": "1147_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn1:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn1", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn1", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'st' suffix\")\n@Transactional\nvoid correctlyConvertEditionEndingIn1() {\n int firstEdition = 1;\n int twentyFirstEdition = 21;\n String actualFirst = Book.convertToBookEdition(firstEdition);\n String actualTwentyFirst = Book.convertToBookEdition(twentyFirstEdition);\n assertSoftly(softly -> {\n assertThat(actualFirst).isEqualTo(\"1st edition\");\n assertThat(actualTwentyFirst).isEqualTo(\"21st edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-115"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.2893, "method_coverage_gold": 18.3311, "line_coverage_gold": 15.9756, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1168_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn3:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn3", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn3", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition wth the 'rd' suffix\")\nvoid correctlyConvertEditionEndingIn3() {\n int thirdEdition = 3;\n int twentyThirdEdition = 23;\n String actualThirdEdition = Book.convertToBookEdition(thirdEdition);\n String actualTwentyThirdEdition = Book.convertToBookEdition(twentyThirdEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualThirdEdition).isEqualTo(\"3rd edition\");\n softly.assertThat(actualTwentyThirdEdition).isEqualTo(\"23rd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["135-151"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 15.5647, "method_coverage_gold": 18.3311, "line_coverage_gold": 16.0629, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1171_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertNthEdition:()V", "class": "BookTest", "method": "correctlyConvertNthEdition", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertNthEdition", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'th' suffix\")\nvoid correctlyConvertNthEdition() {\n int fourthEdition = 4;\n int eleventhEdition = 11;\n String actualFourthEdition = Book.convertToBookEdition(fourthEdition);\n String actualEleventhEdition = Book.convertToBookEdition(eleventhEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualFourthEdition).isEqualTo(\"4th edition\");\n softly.assertThat(actualEleventhEdition).isEqualTo(\"11th edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-169"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 15.7025, "method_coverage_gold": 18.3311, "line_coverage_gold": 16.0629, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1172_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn2:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn2", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn2", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'nd' suffix\")\nvoid correctlyConvertEditionEndingIn2() {\n int secondEdition = 2;\n int twentySecondEdition = 22;\n String actualSecondEdition = Book.convertToBookEdition(secondEdition);\n String actualTwentySecondEdition = Book.convertToBookEdition(twentySecondEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualSecondEdition).isEqualTo(\"2nd edition\");\n softly.assertThat(actualTwentySecondEdition).isEqualTo(\"22nd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-133"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 15.427, "method_coverage_gold": 18.3311, "line_coverage_gold": 16.0192, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__2d7897f_eef6154__PredefinedShelfServiceTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev2": "eef61540f68aac1d78c3be9c968510cd472f69f7", "rev1_date": "2020-11-24T20:31:18Z", "rev2_date": "2020-11-24T20:41:04Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/2d7897f6edf7963d868b9303f6d12252f468cff0...eef61540f68aac1d78c3be9c968510cd472f69f7", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.java", "test_changes": [{"change_id": "1157_Project-Books_book-project-v0.1.0_2d7897f_eef6154_PredefinedShelfServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfServiceTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PredefinedShelfServiceTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfService.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(PredefinedShelf.ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-119"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_new": "158-162", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 13.7741, "method_coverage_gold": 16.9631, "line_coverage_gold": 14.4915, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__2d7897f_eef6154__BookFormTest_ce1bcb85", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev2": "eef61540f68aac1d78c3be9c968510cd472f69f7", "rev1_date": "2020-11-24T20:31:18Z", "rev2_date": "2020-11-24T20:41:04Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/2d7897f6edf7963d868b9303f6d12252f468cff0...eef61540f68aac1d78c3be9c968510cd472f69f7", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "1146_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForDidNotFinishShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForDidNotFinishShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForDidNotFinishShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForDidNotFinishShelf() {\n bookForm.predefinedShelfField.getField().setValue(DID_NOT_FINISH);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isTrue();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["327-337"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.9725, "method_coverage_gold": 40.6293, "line_coverage_gold": 43.5618, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1150_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.notAllowFutureStartDate:()V", "class": "BookFormTest", "method": "notAllowFutureStartDate", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#notAllowFutureStartDate", "old_test_code": null, "new_test_code": "@Test\nvoid notAllowFutureStartDate() {\n bookForm.dateStartedReading.getField().setValue(LocalDate.now().plusDays(5));\n bookForm.saveButton.click();\n BinderValidationStatus validationStatus = bookForm.binder.validate();\n List> fieldValidationErrors = validationStatus.getFieldValidationErrors();\n assertSoftly(softly -> {\n softly.assertThat(validationStatus.hasErrors()).isTrue();\n softly.assertThat(fieldValidationErrors).hasSize(1);\n softly.assertThat(fieldValidationErrors.get(0).getMessage().orElseThrow()).isEqualTo(String.format(BookFormErrors.AFTER_TODAY_ERROR, \"started\"));\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["503-521"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.2837, "method_coverage_gold": 40.6293, "line_coverage_gold": 43.0816, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1158_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForReadingShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForReadingShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForReadingShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForReadingShelf() {\n bookForm.predefinedShelfField.getField().setValue(READING);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isFalse();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["303-313"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.8347, "method_coverage_gold": 40.6293, "line_coverage_gold": 43.4745, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1166_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForReadShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForReadShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForReadShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForReadShelf() {\n bookForm.predefinedShelfField.getField().setValue(READ);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isFalse();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["315-325"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0083, "method_coverage_gold": 40.3557, "line_coverage_gold": 42.9507, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1170_Project-Books_book-project-v0.1.0_2d7897f_eef6154_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.displaySeriesPositionWhenIsInSeriesChecked:()V", "class": "BookFormTest", "method": "displaySeriesPositionWhenIsInSeriesChecked", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#displaySeriesPositionWhenIsInSeriesChecked", "old_test_code": null, "new_test_code": "@Test\nvoid displaySeriesPositionWhenIsInSeriesChecked() {\n bookForm.inSeriesCheckbox.getField().setValue(true);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.seriesPositionFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.seriesPosition.getField().isVisible()).isTrue();\n softly.assertThat(SERIES_POSITION).isEqualTo(bookForm.seriesPosition.getValue());\n softly.assertAll();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["523-536"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0083, "method_coverage_gold": 40.6293, "line_coverage_gold": 43.1253, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__38dea5c_2d7897f__ReadingGoalServiceTest_f344724f", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd", "rev2": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev1_date": "2020-11-24T19:31:07Z", "rev2_date": "2020-11-24T20:31:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd...2d7897f6edf7963d868b9303f6d12252f468cff0", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.java", "test_changes": [{"change_id": "1328_Project-Books_book-project-v0.1.0_38dea5c_2d7897f_ReadingGoalServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.notSaveANullGoal:()V", "class": "ReadingGoalServiceTest", "method": "notSaveANullGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ReadingGoalServiceTest#notSaveANullGoal", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullGoal() {\n assumeThat(goalService.count()).isOne();\n goalService.save(null);\n assertThat(goalService.count()).isOne();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-90"], "old_production_code": "public void save(@NonNull ReadingGoal goal) {\n overwritePreviouslySetGoal(goal);\n}", "new_production_code": "public void save(ReadingGoal goal) {\n if (goal != null) {\n overwritePreviouslySetGoals(goal);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_new": "44-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.3454, "method_coverage_gold": 19.5385, "line_coverage_gold": 16.0681, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "com/karankumar/bookproject/backend/service/ReadingGoalService.count:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__38dea5c_2d7897f__YearStatisticsTest_f21298ab", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd", "rev2": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev1_date": "2020-11-24T19:31:07Z", "rev2_date": "2020-11-24T20:31:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd...2d7897f6edf7963d868b9303f6d12252f468cff0", "test_file": "src/test/java/com/karankumar/bookproject/backend/statistics/YearStatisticsTest.java", "test_changes": [{"change_id": "1301_Project-Books_book-project-v0.1.0_38dea5c_2d7897f_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.lowestRatedBookThisYearIsFound:()V", "class": "YearStatisticsTest", "method": "lowestRatedBookThisYearIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#lowestRatedBookThisYearIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid lowestRatedBookThisYearIsFound() {\n assertThat(yearStatistic.findLeastLikedBookThisYear().get().getTitle()).isEqualTo(bookWithLowestRatingThisYear.getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-65"], "old_production_code": "", "new_production_code": "public Optional findLeastLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(0));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "53-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.2953, "method_coverage_gold": 21.3846, "line_coverage_gold": 18.0529, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1325_Project-Books_book-project-v0.1.0_38dea5c_2d7897f_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.highestRatedBookExistsAndIsFound:()V", "class": "YearStatisticsTest", "method": "highestRatedBookExistsAndIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#highestRatedBookExistsAndIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid highestRatedBookExistsAndIsFound() {\n assertThat(yearStatistic.findMostLikedBookThisYear().get().getTitle()).isEqualTo(bookWithHighestRatingThisYear.getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-76"], "old_production_code": "", "new_production_code": "public Optional findMostLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(readBooksThisYear.size() - 1));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "61-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.156, "method_coverage_gold": 21.3846, "line_coverage_gold": 17.8639, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__38dea5c_2d7897f__PredefinedShelfUtilsTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd", "rev2": "2d7897f6edf7963d868b9303f6d12252f468cff0", "rev1_date": "2020-11-24T19:31:07Z", "rev2_date": "2020-11-24T20:31:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd...2d7897f6edf7963d868b9303f6d12252f468cff0", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.java", "test_changes": [{"change_id": "1308_Project-Books_book-project-v0.1.0_38dea5c_2d7897f_PredefinedShelfUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfUtilsTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.PredefinedShelfUtilsTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfUtils.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["252-265"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return predefinedShelfService.findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "line_nums_new": "59-63", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.2061, "method_coverage_gold": 20.4615, "line_coverage_gold": 16.2098, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__AuthorTest_61f091ba", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/entity/AuthorTest.java", "test_changes": [{"change_id": "873_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_AuthorTest", "test_sign": "com/karankumar/bookproject/backend/entity/AuthorTest.notRemoveNonOrphans:()V", "class": "AuthorTest", "method": "notRemoveNonOrphans", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.AuthorTest#notRemoveNonOrphans", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Non-orphan authors shouldn't be removed when one of their books is deleted\")\nvoid notRemoveNonOrphans() {\n Author nonOrphan = new Author(\"Jostein\", \"Gaarder\");\n Book book = new Book(\"Sophie's World\", nonOrphan, toRead);\n bookService.save(book);\n bookService.save(new Book(\"The Other World\", nonOrphan, toRead));\n bookService.delete(book);\n assumeThat(bookService.count()).isOne();\n assertThat(authorService.count()).isOne();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-116"], "old_production_code": "public void delete(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Cannot delete an null book.\");\n return;\n }\n LOGGER.log(Level.INFO, \"Deleting book. Book repository size = \" + bookRepository.count());\n bookRepository.delete(book);\n List books = bookRepository.findAll();\n if (books.contains(book)) {\n LOGGER.log(Level.SEVERE, book.getTitle() + \" not deleted\");\n } else {\n LOGGER.log(Level.INFO, book.getTitle() + \" deleted. Book repository size = \" + bookRepository.count());\n }\n}", "new_production_code": "public void delete(@NonNull Book book) {\n LOGGER.log(Level.INFO, \"Deleting book. Book repository size = \" + bookRepository.count());\n bookRepository.delete(book);\n List books = bookRepository.findAll();\n if (books.contains(book)) {\n LOGGER.log(Level.SEVERE, book.getTitle() + \" not deleted\");\n } else {\n LOGGER.log(Level.INFO, book.getTitle() + \" deleted. Book repository size = \" + bookRepository.count());\n Author author = book.getAuthor();\n removeBookFromAuthor(book, author);\n removeAuthorWithoutBooks(author);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/BookService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/BookService.delete:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/BookService.delete:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/BookService.java", "line_nums_old": "83-99", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/BookService.java", "line_nums_new": "84-100", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9473684210526315, "branch_coverage_gold": 18.2073, "method_coverage_gold": 19.4093, "line_coverage_gold": 16.9879, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/BookService.save:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/backend/service/BookService.delete:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/backend/service/AuthorService.count:()Ljava/lang/Long", "com/karankumar/bookproject/backend/service/BookService.count:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/BookService.delete:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/BookService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/BookService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__BookTest_d156af44", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/entity/BookTest.java", "test_changes": [{"change_id": "825_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn1:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn1", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn1", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'st' suffix\")\n@Transactional\nvoid correctlyConvertEditionEndingIn1() {\n int firstEdition = 1;\n int twentyFirstEdition = 21;\n String actualFirst = Book.convertToBookEdition(firstEdition);\n String actualTwentyFirst = Book.convertToBookEdition(twentyFirstEdition);\n assertSoftly(softly -> {\n assertThat(actualFirst).isEqualTo(\"1st edition\");\n assertThat(actualTwentyFirst).isEqualTo(\"21st edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-105"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.5462, "method_coverage_gold": 18.8467, "line_coverage_gold": 16.4052, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "861_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn3:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn3", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn3", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition wth the 'rd' suffix\")\nvoid correctlyConvertEditionEndingIn3() {\n int thirdEdition = 3;\n int twentyThirdEdition = 23;\n String actualThirdEdition = Book.convertToBookEdition(thirdEdition);\n String actualTwentyThirdEdition = Book.convertToBookEdition(twentyThirdEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualThirdEdition).isEqualTo(\"3rd edition\");\n softly.assertThat(actualTwentyThirdEdition).isEqualTo(\"23rd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["125-141"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 15.8263, "method_coverage_gold": 18.8467, "line_coverage_gold": 16.4948, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "865_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertNthEdition:()V", "class": "BookTest", "method": "correctlyConvertNthEdition", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertNthEdition", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'th' suffix\")\nvoid correctlyConvertNthEdition() {\n int fourthEdition = 4;\n int eleventhEdition = 11;\n String actualFourthEdition = Book.convertToBookEdition(fourthEdition);\n String actualEleventhEdition = Book.convertToBookEdition(eleventhEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualFourthEdition).isEqualTo(\"4th edition\");\n softly.assertThat(actualEleventhEdition).isEqualTo(\"11th edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-159"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 15.9664, "method_coverage_gold": 18.8467, "line_coverage_gold": 16.4948, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "867_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn2:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn2", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn2", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'nd' suffix\")\nvoid correctlyConvertEditionEndingIn2() {\n int secondEdition = 2;\n int twentySecondEdition = 22;\n String actualSecondEdition = Book.convertToBookEdition(secondEdition);\n String actualTwentySecondEdition = Book.convertToBookEdition(twentySecondEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualSecondEdition).isEqualTo(\"2nd edition\");\n softly.assertThat(actualTwentySecondEdition).isEqualTo(\"22nd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-123"], "old_production_code": "", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 15.6863, "method_coverage_gold": 18.8467, "line_coverage_gold": 16.45, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__ReadingGoalCalculatorTest_d496c84d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.java", "test_changes": [{"change_id": "826_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testNoProgressMadeTowardsGoal:()V", "class": "ReadingGoalCalculatorTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "98-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1401, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0896, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "833_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.returnFalseInBookHasFinishDateThisYearIfBookIsNull:()V", "class": "ReadingGoalCalculatorTest", "method": "returnFalseInBookHasFinishDateThisYearIfBookIsNull", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#returnFalseInBookHasFinishDateThisYearIfBookIsNull", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"return false if the book in book has finish date this year is null\")\nvoid returnFalseInBookHasFinishDateThisYearIfBookIsNull() {\n boolean actual = ReadingGoalCalculator.bookHasFinishDateInThisYear(null);\n assertThat(actual).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["264-272"], "old_production_code": "", "new_production_code": "@VisibleForTesting\nstatic boolean bookHasFinishDateInThisYear(Book book) {\n return book != null && book.getDateFinishedReading() != null && DateUtils.dateIsInCurrentYear(book.getDateFinishedReading());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.bookHasFinishDateInThisYear:(Lcom/karankumar/bookproject/backend/entity/Book;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.bookHasFinishDateInThisYear:(Lcom/karankumar/bookproject/backend/entity/Book;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "79-83", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1401, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0896, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.bookHasFinishDateInThisYear:(Lcom/karankumar/bookproject/backend/entity/Book;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.bookHasFinishDateInThisYear:(Lcom/karankumar/bookproject/backend/entity/Book;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "860_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testBooksToReadFromStartOfYear:()V", "class": "ReadingGoalCalculatorTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n int booksToReadThisYear = 26;\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(booksToReadThisYear);\n double expected = 0.5;\n assertThat(booksToReadFromStartOfYear).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["251-262"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "55-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0448, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "863_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-71"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "98-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1401, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0896, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "875_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValue:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "98-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1401, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0896, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "878_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-78"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "98-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1401, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0896, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__AuthorServiceTest_8d63337e", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/AuthorServiceTest.java", "test_changes": [{"change_id": "879_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_AuthorServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/AuthorServiceTest.deleteAuthorWithoutBooks:()V", "class": "AuthorServiceTest", "method": "deleteAuthorWithoutBooks", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.AuthorServiceTest#deleteAuthorWithoutBooks", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"be able to delete an author without any books\")\nvoid deleteAuthorWithoutBooks() {\n assumeThat(authorService.count()).isZero();\n Author authorWithoutBooks = new Author(\"First\", \"Last\");\n authorService.save(authorWithoutBooks);\n authorService.delete(authorWithoutBooks);\n assertThat(authorService.count()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-115"], "old_production_code": "public void delete(Author author) {\n authorRepository.delete(author);\n}", "new_production_code": "public void delete(@NonNull Author author) {\n authorRepository.delete(author);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/AuthorService.delete:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/karankumar/bookproject/backend/service/AuthorService.delete:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "line_nums_old": "58-60", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "line_nums_new": "49-51", "dependency_updated": "updated", "score": 0.4832, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.25, "class": 1.0, "tfidf": 0.3287}}, {"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/AuthorService.save:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "line_nums_old": "46-56", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "line_nums_new": "45-47", "dependency_updated": "updated", "score": 0.2837, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 1.0, "tfidf": 0.1892}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.5658, "method_coverage_gold": 17.5809, "line_coverage_gold": 15.3294, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/AuthorService.delete:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "com/karankumar/bookproject/backend/service/AuthorService.count:()Ljava/lang/Long", "com/karankumar/bookproject/backend/service/AuthorService.save:(Lcom/karankumar/bookproject/backend/entity/Author;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/AuthorService.save:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/karankumar/bookproject/backend/service/AuthorService.delete:(Lcom/karankumar/bookproject/backend/entity/Author;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/AuthorService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__PredefinedShelfServiceTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.java", "test_changes": [{"change_id": "845_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_PredefinedShelfServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfServiceTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PredefinedShelfServiceTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfService.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(PredefinedShelf.ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-119"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_new": "158-162", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 13.8655, "method_coverage_gold": 17.4402, "line_coverage_gold": 14.7019, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__DateUtilsTest_46bc7419", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/DateUtilsTest.java", "test_changes": [{"change_id": "842_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_DateUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/DateUtilsTest.correctlyCheckIfDateIsInCurrentYear:()V", "class": "DateUtilsTest", "method": "correctlyCheckIfDateIsInCurrentYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.DateUtilsTest#correctlyCheckIfDateIsInCurrentYear", "old_test_code": null, "new_test_code": "@Test\nvoid correctlyCheckIfDateIsInCurrentYear() {\n LocalDate lastDayOfYear = LocalDate.of(MOCK_CURRENT_DATE.getYear(), 12, 31);\n assertThat(DateUtils.dateIsInCurrentYear(MOCK_CURRENT_DATE)).isTrue();\n assertThat(DateUtils.dateIsInCurrentYear(MOCK_CURRENT_DATE.minusDays(1))).isTrue();\n assertThat(DateUtils.dateIsInCurrentYear(lastDayOfYear)).isTrue();\n assertThat(DateUtils.dateIsInCurrentYear(MOCK_CURRENT_DATE.minusYears(1))).isFalse();\n assertThat(DateUtils.dateIsInCurrentYear(MOCK_CURRENT_DATE.plusYears(1))).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-100"], "old_production_code": "public static boolean dateIsInCurrentYear(@NotNull LocalDate date) {\n return date.getYear() == LocalDate.now().getYear();\n}", "new_production_code": "public static boolean dateIsInCurrentYear(@NotNull LocalDate date) {\n return date.getYear() == TimeUtils.currentDate().getYear();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/DateUtils.dateIsInCurrentYear:(Ljava/time/LocalDate;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/DateUtils.dateIsInCurrentYear:(Ljava/time/LocalDate;)Z", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "line_nums_old": "44-46", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "line_nums_new": "44-46", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2801, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0448, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/util/DateUtils.dateIsInCurrentYear:(Ljava/time/LocalDate;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/DateUtils.dateIsInCurrentYear:(Ljava/time/LocalDate;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "855_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_DateUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/DateUtilsTest.correctlyCheckIfDateIsInFuture:()V", "class": "DateUtilsTest", "method": "correctlyCheckIfDateIsInFuture", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.DateUtilsTest#correctlyCheckIfDateIsInFuture", "old_test_code": null, "new_test_code": "@Test\nvoid correctlyCheckIfDateIsInFuture() {\n assertThat(DateUtils.isDateInFuture(MOCK_CURRENT_DATE.plusYears(1))).isTrue();\n assertThat(DateUtils.isDateInFuture(MOCK_CURRENT_DATE.plusDays(1))).isTrue();\n assertThat(DateUtils.isDateInFuture(MOCK_CURRENT_DATE)).isFalse();\n assertThat(DateUtils.isDateInFuture(MOCK_CURRENT_DATE.minusDays(1))).isFalse();\n assertThat(DateUtils.isDateInFuture(MOCK_CURRENT_DATE.minusMonths(1))).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-110"], "old_production_code": "", "new_production_code": "public static boolean isDateInFuture(LocalDate date) {\n return date.isAfter(TimeUtils.currentDate());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/DateUtils.isDateInFuture:(Ljava/time/LocalDate;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/DateUtils.isDateInFuture:(Ljava/time/LocalDate;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1406, "line_coverage_gold": 0.0448, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/util/DateUtils.isDateInFuture:(Ljava/time/LocalDate;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/DateUtils.isDateInFuture:(Ljava/time/LocalDate;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/DateUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__BookFormTest_ce1bcb85", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "824_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForDidNotFinishShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForDidNotFinishShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForDidNotFinishShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForDidNotFinishShelf() {\n bookForm.predefinedShelfField.getField().setValue(DID_NOT_FINISH);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isTrue();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["327-337"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.3081, "method_coverage_gold": 41.7722, "line_coverage_gold": 44.6885, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "832_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.notAllowFutureStartDate:()V", "class": "BookFormTest", "method": "notAllowFutureStartDate", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#notAllowFutureStartDate", "old_test_code": null, "new_test_code": "@Test\nvoid notAllowFutureStartDate() {\n bookForm.dateStartedReading.getField().setValue(LocalDate.now().plusDays(5));\n bookForm.saveButton.click();\n BinderValidationStatus validationStatus = bookForm.binder.validate();\n List> fieldValidationErrors = validationStatus.getFieldValidationErrors();\n assertSoftly(softly -> {\n softly.assertThat(validationStatus.hasErrors()).isTrue();\n softly.assertThat(fieldValidationErrors).hasSize(1);\n softly.assertThat(fieldValidationErrors.get(0).getMessage().orElseThrow()).isEqualTo(String.format(BookFormErrors.AFTER_TODAY_ERROR, \"started\"));\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["503-521"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.4678, "method_coverage_gold": 41.7722, "line_coverage_gold": 44.1954, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "846_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForReadingShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForReadingShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForReadingShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForReadingShelf() {\n bookForm.predefinedShelfField.getField().setValue(READING);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isFalse();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isFalse();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["303-313"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.1681, "method_coverage_gold": 41.7722, "line_coverage_gold": 44.5988, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "857_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.showCorrectFormFieldsForReadShelf:()V", "class": "BookFormTest", "method": "showCorrectFormFieldsForReadShelf", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#showCorrectFormFieldsForReadShelf", "old_test_code": null, "new_test_code": "@Test\nvoid showCorrectFormFieldsForReadShelf() {\n bookForm.predefinedShelfField.getField().setValue(READ);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.dateStartedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.dateFinishedReadingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.ratingFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.bookReviewFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.pagesReadFormItem.isVisible()).isFalse();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["315-325"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.1877, "method_coverage_gold": 41.4909, "line_coverage_gold": 44.061, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "864_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.displaySeriesPositionWhenIsInSeriesChecked:()V", "class": "BookFormTest", "method": "displaySeriesPositionWhenIsInSeriesChecked", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#displaySeriesPositionWhenIsInSeriesChecked", "old_test_code": null, "new_test_code": "@Test\nvoid displaySeriesPositionWhenIsInSeriesChecked() {\n bookForm.inSeriesCheckbox.getField().setValue(true);\n assertSoftly(softly -> {\n softly.assertThat(bookForm.seriesPositionFormItem.isVisible()).isTrue();\n softly.assertThat(bookForm.seriesPosition.getField().isVisible()).isTrue();\n softly.assertThat(SERIES_POSITION).isEqualTo(bookForm.seriesPosition.getValue());\n softly.assertAll();\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["523-536"], "old_production_code": "", "new_production_code": "public T getField() {\n return field;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.3277, "method_coverage_gold": 41.7722, "line_coverage_gold": 44.2403, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/components/FormItem.getField:()Lcom/vaadin/flow/component/Component", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/components/FormItem.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__44cdecd_ae5cf05__StatisticsViewTest_69613294", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "44cdecdaaf583e5d1894a57858a5e690ce1f8a6e", "rev2": "ae5cf0546272da64385340fdfe54e313a0010be9", "rev1_date": "2020-11-13T17:10:15Z", "rev2_date": "2020-11-14T01:51:54Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/44cdecdaaf583e5d1894a57858a5e690ce1f8a6e...ae5cf0546272da64385340fdfe54e313a0010be9", "test_file": "src/test/java/com/karankumar/bookproject/ui/statistics/StatisticsViewTest.java", "test_changes": [{"change_id": "838_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_StatisticsViewTest", "test_sign": "com/karankumar/bookproject/ui/statistics/StatisticsViewTest.onlyDisplayRatingUnitOnce:()V", "class": "StatisticsViewTest", "method": "onlyDisplayRatingUnitOnce", "module": "", "junit_selector": "com.karankumar.bookproject.ui.statistics.StatisticsViewTest#onlyDisplayRatingUnitOnce", "old_test_code": null, "new_test_code": "@Test\nvoid onlyDisplayRatingUnitOnce() {\n String title = \"Harry Potter and the Chamber of Secrets\";\n RatingScale rating = RatingScale.NO_RATING;\n String actual = StatisticsView.formatStatistic(title, rating.toString(), \"rating\");\n String expected = String.format(\"%s (%s)\", title, rating.toString());\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["240-252"], "old_production_code": "private static String formatStatistic(String bookTitle, String statistic, String unit) {\n return String.format(\"%s (%s %s)\", bookTitle, statistic, unit);\n}", "new_production_code": "@VisibleForTesting\nstatic String formatStatistic(String bookTitle, String statistic, String unit) {\n if (statistic.endsWith(unit)) {\n return String.format(\"%s (%s)\", bookTitle, statistic);\n } else {\n return String.format(\"%s (%s %s)\", bookTitle, statistic, unit);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "focal_method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "line_nums_old": "64-66", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "line_nums_new": "65-72", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.057692307692307696, "branch_coverage_gold": 14.4258, "method_coverage_gold": 17.5809, "line_coverage_gold": 15.195, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "com/karankumar/bookproject/backend/entity/RatingScale.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "843_Project-Books_book-project-v0.1.0_44cdecd_ae5cf05_StatisticsViewTest", "test_sign": "com/karankumar/bookproject/ui/statistics/StatisticsViewTest.includePagesUnitWhenFormatted:()V", "class": "StatisticsViewTest", "method": "includePagesUnitWhenFormatted", "module": "", "junit_selector": "com.karankumar.bookproject.ui.statistics.StatisticsViewTest#includePagesUnitWhenFormatted", "old_test_code": null, "new_test_code": "@Test\nvoid includePagesUnitWhenFormatted() {\n String title = \"Harry Potter and the Chamber of Secrets\";\n int pages = 500;\n String unit = \"pages\";\n String actual = StatisticsView.formatStatistic(title, String.valueOf(pages), unit);\n String expected = String.format(\"%s (%s %s)\", title, pages, unit);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["254-267"], "old_production_code": "private static String formatStatistic(String bookTitle, String statistic, String unit) {\n return String.format(\"%s (%s %s)\", bookTitle, statistic, unit);\n}", "new_production_code": "@VisibleForTesting\nstatic String formatStatistic(String bookTitle, String statistic, String unit) {\n if (statistic.endsWith(unit)) {\n return String.format(\"%s (%s)\", bookTitle, statistic);\n } else {\n return String.format(\"%s (%s %s)\", bookTitle, statistic, unit);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "focal_method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "line_nums_old": "64-66", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "line_nums_new": "65-72", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0392156862745098, "branch_coverage_gold": 14.4258, "method_coverage_gold": 17.4402, "line_coverage_gold": 15.1502, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["34561397806bb51c0ebc454fa38a1c7650412d72"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/statistics/StatisticsView.formatStatistic:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/statistics/StatisticsView.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__4a85f8a_21dde88__BookFormTest_530da82a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "4a85f8a5876de2c9babb56f81e94a758739ba6ad", "rev2": "21dde88862f5fb94e39ea57ca5081e8bd35be2ce", "rev1_date": "2020-12-10T18:30:16Z", "rev2_date": "2020-12-10T18:32:15Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/4a85f8a5876de2c9babb56f81e94a758739ba6ad...21dde88862f5fb94e39ea57ca5081e8bd35be2ce", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "1468_Project-Books_book-project-v0.1.0_4a85f8a_21dde88_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.useUsersCustomShelf_whenCustomShelfIsNull:()V", "class": "BookFormTest", "method": "useUsersCustomShelf_whenCustomShelfIsNull", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#useUsersCustomShelf_whenCustomShelfIsNull", "old_test_code": null, "new_test_code": "@Test\nvoid useUsersCustomShelf_whenCustomShelfIsNull() {\n Book book = createBook(READ, true, \"title\");\n book.setCustomShelf(null);\n bookForm.setBook(book);\n assertThat(customShelfService.findAllForLoggedInUser().get(0)).isEqualTo(book.getCustomShelf());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["811-823"], "old_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n CustomShelf customShelf = customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "new_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n List usersShelves = customShelfService.findAllForLoggedInUser();\n CustomShelf customShelf = !usersShelves.isEmpty() ? usersShelves.get(0) : customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "468-486", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "469-489", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 19.8925, "method_coverage_gold": 41.4536, "line_coverage_gold": 44.1215, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/backend/entity/BaseEntity.equals:(Ljava/lang/Object;)Z", "com/karankumar/bookproject/backend/service/CustomShelfService.findAllForLoggedInUser:()Ljava/util/List", "com/karankumar/bookproject/ui/book/form/BookFormTest.createBook:(Lcom/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName;ZLjava/lang/String;)Lcom/karankumar/bookproject/backend/entity/Book"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "1469_Project-Books_book-project-v0.1.0_4a85f8a_21dde88_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.dontResetBinder_whenOpeningFormForExistingBook:()V", "class": "BookFormTest", "method": "dontResetBinder_whenOpeningFormForExistingBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#dontResetBinder_whenOpeningFormForExistingBook", "old_test_code": null, "new_test_code": "@Test\nvoid dontResetBinder_whenOpeningFormForExistingBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.openForm();\n assertThat(bookForm.binder).isEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["591-601"], "old_production_code": "public void openForm() {\n clearErrors();\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "new_production_code": "public void openForm() {\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "236-241", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "238-242", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.0269, "method_coverage_gold": 42.1265, "line_coverage_gold": 44.6855, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1470_Project-Books_book-project-v0.1.0_4a85f8a_21dde88_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.createNewBinder_whenOpeningFormForNewBook:()V", "class": "BookFormTest", "method": "createNewBinder_whenOpeningFormForNewBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#createNewBinder_whenOpeningFormForNewBook", "old_test_code": null, "new_test_code": "@Test\nvoid createNewBinder_whenOpeningFormForNewBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.addBook();\n assertThat(bookForm.binder).isNotEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["603-613"], "old_production_code": "public void addBook() {\n clearFormFields();\n openForm();\n}", "new_production_code": "public void addBook() {\n clearFormFields();\n clearErrors();\n openForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "658-661", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "661-665", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.4301, "method_coverage_gold": 42.6649, "line_coverage_gold": 45.9002, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V", "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__6cd7f08_540edcc__BookTest_d156af44", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "6cd7f08c6f0d1bb5cadb66c0fcd8b08ed6db5e31", "rev2": "540edccc2c13f4596758db49d3b21eebce7b1abd", "rev1_date": "2020-11-04T15:34:40Z", "rev2_date": "2020-11-04T16:18:51Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/6cd7f08c6f0d1bb5cadb66c0fcd8b08ed6db5e31...540edccc2c13f4596758db49d3b21eebce7b1abd", "test_file": "src/test/java/com/karankumar/bookproject/backend/entity/BookTest.java", "test_changes": [{"change_id": "906_Project-Books_book-project-v0.1.0_6cd7f08_540edcc_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn1:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn1", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn1", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'st' suffix\")\n@Transactional\nvoid correctlyConvertEditionEndingIn1() {\n int firstEdition = 1;\n int twentyFirstEdition = 21;\n String actualFirst = Book.convertToBookEdition(firstEdition);\n String actualTwentyFirst = Book.convertToBookEdition(twentyFirstEdition);\n assertSoftly(softly -> {\n assertThat(actualFirst).isEqualTo(\"1st edition\");\n assertThat(actualTwentyFirst).isEqualTo(\"21st edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-105"], "old_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition = \"\";\n int lastDigit = edition % 10;\n switch(lastDigit) {\n case 1:\n bookEdition = edition + \"st edition\";\n break;\n case 2:\n bookEdition = edition + \"nd edition\";\n break;\n case 3:\n bookEdition = edition + \"rd edition\";\n break;\n default:\n bookEdition = edition + \"th edition\";\n break;\n }\n return bookEdition;\n}", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_old": "119-137", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.6338, "method_coverage_gold": 19.1549, "line_coverage_gold": 16.5171, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "907_Project-Books_book-project-v0.1.0_6cd7f08_540edcc_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn3:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn3", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn3", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition wth the 'rd' suffix\")\nvoid correctlyConvertEditionEndingIn3() {\n int thirdEdition = 3;\n int twentyThirdEdition = 23;\n String actualThirdEdition = Book.convertToBookEdition(thirdEdition);\n String actualTwentyThirdEdition = Book.convertToBookEdition(twentyThirdEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualThirdEdition).isEqualTo(\"3rd edition\");\n softly.assertThat(actualTwentyThirdEdition).isEqualTo(\"23rd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["125-141"], "old_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition = \"\";\n int lastDigit = edition % 10;\n switch(lastDigit) {\n case 1:\n bookEdition = edition + \"st edition\";\n break;\n case 2:\n bookEdition = edition + \"nd edition\";\n break;\n case 3:\n bookEdition = edition + \"rd edition\";\n break;\n default:\n bookEdition = edition + \"th edition\";\n break;\n }\n return bookEdition;\n}", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_old": "119-137", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 15.9155, "method_coverage_gold": 19.1549, "line_coverage_gold": 16.6068, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "908_Project-Books_book-project-v0.1.0_6cd7f08_540edcc_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertNthEdition:()V", "class": "BookTest", "method": "correctlyConvertNthEdition", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertNthEdition", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'th' suffix\")\nvoid correctlyConvertNthEdition() {\n int fourthEdition = 4;\n int eleventhEdition = 11;\n String actualFourthEdition = Book.convertToBookEdition(fourthEdition);\n String actualEleventhEdition = Book.convertToBookEdition(eleventhEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualFourthEdition).isEqualTo(\"4th edition\");\n softly.assertThat(actualEleventhEdition).isEqualTo(\"11th edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-159"], "old_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition = \"\";\n int lastDigit = edition % 10;\n switch(lastDigit) {\n case 1:\n bookEdition = edition + \"st edition\";\n break;\n case 2:\n bookEdition = edition + \"nd edition\";\n break;\n case 3:\n bookEdition = edition + \"rd edition\";\n break;\n default:\n bookEdition = edition + \"th edition\";\n break;\n }\n return bookEdition;\n}", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_old": "119-137", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 16.0563, "method_coverage_gold": 19.1549, "line_coverage_gold": 16.6068, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "909_Project-Books_book-project-v0.1.0_6cd7f08_540edcc_BookTest", "test_sign": "com/karankumar/bookproject/backend/entity/BookTest.correctlyConvertEditionEndingIn2:()V", "class": "BookTest", "method": "correctlyConvertEditionEndingIn2", "module": "", "junit_selector": "com.karankumar.bookproject.backend.entity.BookTest#correctlyConvertEditionEndingIn2", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"correctly convert into an edition with the 'nd' suffix\")\nvoid correctlyConvertEditionEndingIn2() {\n int secondEdition = 2;\n int twentySecondEdition = 22;\n String actualSecondEdition = Book.convertToBookEdition(secondEdition);\n String actualTwentySecondEdition = Book.convertToBookEdition(twentySecondEdition);\n assertSoftly(softly -> {\n softly.assertThat(actualSecondEdition).isEqualTo(\"2nd edition\");\n softly.assertThat(actualTwentySecondEdition).isEqualTo(\"22nd edition\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-123"], "old_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition = \"\";\n int lastDigit = edition % 10;\n switch(lastDigit) {\n case 1:\n bookEdition = edition + \"st edition\";\n break;\n case 2:\n bookEdition = edition + \"nd edition\";\n break;\n case 3:\n bookEdition = edition + \"rd edition\";\n break;\n default:\n bookEdition = edition + \"th edition\";\n break;\n }\n return bookEdition;\n}", "new_production_code": "public static String convertToBookEdition(int edition) {\n String bookEdition;\n int lastDigit = edition % 10;\n int lastTwoDigits = edition % 100;\n if (lastDigit == 1 && lastTwoDigits != 11) {\n bookEdition = edition + \"st edition\";\n } else if (lastDigit == 2 && lastTwoDigits != 12) {\n bookEdition = edition + \"nd edition\";\n } else if (lastDigit == 3 && lastTwoDigits != 13) {\n bookEdition = edition + \"rd edition\";\n } else {\n bookEdition = edition + \"th edition\";\n }\n return bookEdition;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "focal_method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_old": "119-137", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "line_nums_new": "119-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 15.7746, "method_coverage_gold": 19.1549, "line_coverage_gold": 16.5619, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/entity/Book.convertToBookEdition:(I)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/entity/Book.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__6e4ba3d_79093d4__CalculateReadingGoalTest_23697d9d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "6e4ba3de89b1caf6a767e1ef7be6a79e8a09b7b3", "rev2": "79093d4c41d71ef03df18bfd747ed66763f9253e", "rev1_date": "2020-10-29T08:20:05Z", "rev2_date": "2020-10-29T16:17:57Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/6e4ba3de89b1caf6a767e1ef7be6a79e8a09b7b3...79093d4c41d71ef03df18bfd747ed66763f9253e", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.java", "test_changes": [{"change_id": "1424_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.shouldNotThrowExceptionOnZeroDivision:()V", "class": "CalculateReadingGoalTest", "method": "shouldNotThrowExceptionOnZeroDivision", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#shouldNotThrowExceptionOnZeroDivision", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Ensure 0, and not an arithmetic exception, is returned\")\nvoid shouldNotThrowExceptionOnZeroDivision() {\n int toRead = 5;\n int read = 0;\n SoftAssertions softly = new SoftAssertions();\n softly.assertThatCode(() -> calculateProgressTowardsReadingGoal(toRead, read)).doesNotThrowAnyException();\n softly.assertThat(calculateProgressTowardsReadingGoal(toRead, read)).isZero();\n softly.assertAll();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1428_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1431_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1434_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValue:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1435_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testNoProgressMadeTowardsGoal:()V", "class": "CalculateReadingGoalTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1437_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testBooksToReadFromStartOfYear:()V", "class": "CalculateReadingGoalTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(26);\n assertThat(booksToReadFromStartOfYear).isEqualTo(0.5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-167"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0491, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__6e4ba3d_79093d4__TagServiceTest_f471e1c0", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "6e4ba3de89b1caf6a767e1ef7be6a79e8a09b7b3", "rev2": "79093d4c41d71ef03df18bfd747ed66763f9253e", "rev1_date": "2020-10-29T08:20:05Z", "rev2_date": "2020-10-29T16:17:57Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/6e4ba3de89b1caf6a767e1ef7be6a79e8a09b7b3...79093d4c41d71ef03df18bfd747ed66763f9253e", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/TagServiceTest.java", "test_changes": [{"change_id": "1426_Project-Books_book-project-v0.1.0_6e4ba3d_79093d4_TagServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/TagServiceTest.notSaveANullTag:()V", "class": "TagServiceTest", "method": "notSaveANullTag", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.TagServiceTest#notSaveANullTag", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullTag() {\n assumeThat(tagService.count()).isZero();\n tagService.save(null);\n assertThat(tagService.count()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-53"], "old_production_code": "public void save(@NonNull Tag tag) {\n tagRepository.save(tag);\n}", "new_production_code": "public void save(Tag tag) {\n if (tag != null) {\n tagRepository.save(tag);\n } else {\n LOGGER.log(Level.SEVERE, \"Null tag\");\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_new": "42-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 14.3713, "method_coverage_gold": 19.5477, "line_coverage_gold": 16.2083, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8841d84e611afd07bb71cb9b32aa4c01998eeb52"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "com/karankumar/bookproject/backend/service/TagService.count:()Ljava/lang/Long", "com/karankumar/bookproject/backend/service/TagServiceTest.tearDown:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__85642b6_3c3cd31__ImportServiceTest_b4eb7dc4", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "85642b6dc7f09ff34ef178f6dee2c10efc31bae7", "rev2": "3c3cd3126ca6c368c43d94e713e3bf818e21c137", "rev1_date": "2020-11-22T13:48:09Z", "rev2_date": "2020-11-22T16:05:02Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/85642b6dc7f09ff34ef178f6dee2c10efc31bae7...3c3cd3126ca6c368c43d94e713e3bf818e21c137", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ImportServiceTest.java", "test_changes": [{"change_id": "1109_Project-Books_book-project-v0.1.0_85642b6_3c3cd31_ImportServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ImportServiceTest.goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty:()V", "class": "ImportServiceTest", "method": "goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ImportServiceTest#goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "old_test_code": null, "new_test_code": "@Test\nvoid goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty() {\n GoodreadsBookImport goodreadsBookImport = new GoodreadsBookImport();\n goodreadsBookImport.setTitle(\"Blink: The Power of Thinking Without Thinking\");\n goodreadsBookImport.setAuthor(\"Malcolm Gladwell\");\n goodreadsBookImport.setBookshelves(\"Reading\");\n List savedBooks = importService.importGoodreadsBooks(Collections.singletonList(goodreadsBookImport));\n int expected = 1;\n assertThat(savedBooks.size()).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-70"], "old_production_code": "", "new_production_code": "public List importGoodreadsBooks(Collection goodreadsBookImports) {\n List books = toBooks(goodreadsBookImports);\n List savedBooks = books.stream().map(bookService::save).filter(Optional::isPresent).map(Optional::get).collect(Collectors.toList());\n savedBooks.forEach(b -> LOGGER.info(\"Book: \" + b + \" saved successfully\"));\n return savedBooks;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "line_nums_new": "62-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.0259, "method_coverage_gold": 20.7219, "line_coverage_gold": 18.0615, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__8e22171_4be6ad2__YearStatisticTest_9f6be2fd", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "8e22171214a3d07f9e7bc01f1eb3c43537ed1353", "rev2": "4be6ad2d0587539e517ab0f8ad962d3e8df3d675", "rev1_date": "2020-10-28T13:48:35Z", "rev2_date": "2020-10-28T13:48:56Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/8e22171214a3d07f9e7bc01f1eb3c43537ed1353...4be6ad2d0587539e517ab0f8ad962d3e8df3d675", "test_file": "src/test/java/com/karankumar/bookproject/backend/statistics/YearStatisticTest.java", "test_changes": [{"change_id": "920_Project-Books_book-project-v0.1.0_8e22171_4be6ad2_YearStatisticTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticTest.highestRatedBookExistsAndIsFound:()V", "class": "YearStatisticTest", "method": "highestRatedBookExistsAndIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticTest#highestRatedBookExistsAndIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid highestRatedBookExistsAndIsFound() {\n assertEquals(bookWithHighestRatingThisYear.getTitle(), yearStatistic.findMostLikedBookThisYear().getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-74"], "old_production_code": "", "new_production_code": "public Book findMostLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return null;\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return readBooksThisYear.get(readBooksThisYear.size() - 1);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findMostLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findMostLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "line_nums_new": "61-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.156, "method_coverage_gold": 21.5054, "line_coverage_gold": 18.0916, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["fc6a39ee260e391f9fc617977efc0dec94b7fe66"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistic.findMostLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findMostLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "921_Project-Books_book-project-v0.1.0_8e22171_4be6ad2_YearStatisticTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticTest.lowestRatedThisYearBookExistsAndIsFound:()V", "class": "YearStatisticTest", "method": "lowestRatedThisYearBookExistsAndIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticTest#lowestRatedThisYearBookExistsAndIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid lowestRatedThisYearBookExistsAndIsFound() {\n assertEquals(bookWithLowestRatingThisYear.getTitle(), yearStatistic.findLeastLikedBookThisYear().getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-62"], "old_production_code": "", "new_production_code": "public Book findLeastLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return null;\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return readBooksThisYear.get(0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findLeastLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findLeastLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "line_nums_new": "53-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.156, "method_coverage_gold": 21.5054, "line_coverage_gold": 18.0916, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["fc6a39ee260e391f9fc617977efc0dec94b7fe66"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistic.findLeastLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistic.findLeastLikedBookThisYear:()Lcom/karankumar/bookproject/backend/entity/Book", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistic.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__a660b55_b61e749__PredefinedShelfServiceTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "a660b55bdd327a264058a0852531c6900a6c98cc", "rev2": "b61e749455b60dd3fa8a8f405a7fd7af5a8c19aa", "rev1_date": "2020-11-10T19:46:33Z", "rev2_date": "2020-11-10T20:33:43Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/a660b55bdd327a264058a0852531c6900a6c98cc...b61e749455b60dd3fa8a8f405a7fd7af5a8c19aa", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.java", "test_changes": [{"change_id": "1265_Project-Books_book-project-v0.1.0_a660b55_b61e749_PredefinedShelfServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfServiceTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PredefinedShelfServiceTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfService.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(PredefinedShelf.ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-119"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_new": "158-162", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.2254, "method_coverage_gold": 17.7966, "line_coverage_gold": 15.0247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__af7cdbd_2374625__CalculateReadingGoalTest_23697d9d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "af7cdbd147be7165781d7aa4d2246a93e41da7fe", "rev2": "2374625a1b6934e3cea885b7017d12a513106086", "rev1_date": "2020-10-28T07:04:36Z", "rev2_date": "2020-10-28T08:16:20Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/af7cdbd147be7165781d7aa4d2246a93e41da7fe...2374625a1b6934e3cea885b7017d12a513106086", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.java", "test_changes": [{"change_id": "1479_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.shouldNotThrowExceptionOnZeroDivision:()V", "class": "CalculateReadingGoalTest", "method": "shouldNotThrowExceptionOnZeroDivision", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#shouldNotThrowExceptionOnZeroDivision", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Ensure 0, and not an arithmetic exception, is returned\")\nvoid shouldNotThrowExceptionOnZeroDivision() {\n int toRead = 5;\n int read = 0;\n SoftAssertions softly = new SoftAssertions();\n softly.assertThatCode(() -> calculateProgressTowardsReadingGoal(toRead, read)).doesNotThrowAnyException();\n softly.assertThat(calculateProgressTowardsReadingGoal(toRead, read)).isZero();\n softly.assertAll();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1483_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1486_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1489_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValue:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1490_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testNoProgressMadeTowardsGoal:()V", "class": "CalculateReadingGoalTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1493_Project-Books_book-project-v0.1.0_af7cdbd_2374625_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testBooksToReadFromStartOfYear:()V", "class": "CalculateReadingGoalTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(26);\n assertThat(booksToReadFromStartOfYear).isEqualTo(0.5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-167"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.157, "line_coverage_gold": 0.0481, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__af7cdbd_2374625__TagServiceTest_f471e1c0", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "af7cdbd147be7165781d7aa4d2246a93e41da7fe", "rev2": "2374625a1b6934e3cea885b7017d12a513106086", "rev1_date": "2020-10-28T07:04:36Z", "rev2_date": "2020-10-28T08:16:20Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/af7cdbd147be7165781d7aa4d2246a93e41da7fe...2374625a1b6934e3cea885b7017d12a513106086", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/TagServiceTest.java", "test_changes": [{"change_id": "1481_Project-Books_book-project-v0.1.0_af7cdbd_2374625_TagServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/TagServiceTest.notSaveANullTag:()V", "class": "TagServiceTest", "method": "notSaveANullTag", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.TagServiceTest#notSaveANullTag", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullTag() {\n assumeThat(tagService.count()).isZero();\n tagService.save(null);\n assertThat(tagService.count()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-53"], "old_production_code": "public void save(@NonNull Tag tag) {\n tagRepository.save(tag);\n}", "new_production_code": "public void save(Tag tag) {\n if (tag != null) {\n tagRepository.save(tag);\n } else {\n LOGGER.log(Level.SEVERE, \"Null tag\");\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_new": "42-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 14.121, "method_coverage_gold": 19.4662, "line_coverage_gold": 16.2735, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "com/karankumar/bookproject/backend/service/TagServiceTest.tearDown:()V", "com/karankumar/bookproject/backend/service/TagService.count:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__af7cdbd_2374625__PredefinedShelfUtilsTest_6325d10a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "af7cdbd147be7165781d7aa4d2246a93e41da7fe", "rev2": "2374625a1b6934e3cea885b7017d12a513106086", "rev1_date": "2020-10-28T07:04:36Z", "rev2_date": "2020-10-28T08:16:20Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/af7cdbd147be7165781d7aa4d2246a93e41da7fe...2374625a1b6934e3cea885b7017d12a513106086", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.java", "test_changes": [{"change_id": "1492_Project-Books_book-project-v0.1.0_af7cdbd_2374625_PredefinedShelfUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.getPredefinedShelfByStringName:()V", "class": "PredefinedShelfUtilsTest", "method": "getPredefinedShelfByStringName", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.PredefinedShelfUtilsTest#getPredefinedShelfByStringName", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfByStringName() {\n assertThat(predefinedShelfUtils.findPredefinedShelf(\"To read\")).isNotNull();\n assertThat(predefinedShelfUtils.findPredefinedShelf(\"Reading\")).isNotNull();\n assertThat(predefinedShelfUtils.findPredefinedShelf(\"Read\")).isNotNull();\n assertThat(predefinedShelfUtils.findPredefinedShelf(\"Did not finish\")).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["267-275"], "old_production_code": "", "new_production_code": "public PredefinedShelf findPredefinedShelf(String shelfName) {\n return predefinedShelfService.findAllForLoggedInUser().stream().filter(shelf -> shelf.getPredefinedShelfName().toString().equals(shelfName)).collect(Collectors.toList()).get(0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.findPredefinedShelf:(Ljava/lang/String;)Lcom/karankumar/bookproject/backend/entity/PredefinedShelf", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.findPredefinedShelf:(Ljava/lang/String;)Lcom/karankumar/bookproject/backend/entity/PredefinedShelf", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.121, "method_coverage_gold": 20.7221, "line_coverage_gold": 16.5623, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/util/PredefinedShelfUtils.findPredefinedShelf:(Ljava/lang/String;)Lcom/karankumar/bookproject/backend/entity/PredefinedShelf"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.findPredefinedShelf:(Ljava/lang/String;)Lcom/karankumar/bookproject/backend/entity/PredefinedShelf", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__b61e749_ee38797__PredefinedShelfUtilsTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "b61e749455b60dd3fa8a8f405a7fd7af5a8c19aa", "rev2": "ee38797d2310d924aa18f7d6f50990f45d424847", "rev1_date": "2020-11-10T20:33:43Z", "rev2_date": "2020-11-11T01:18:19Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/b61e749455b60dd3fa8a8f405a7fd7af5a8c19aa...ee38797d2310d924aa18f7d6f50990f45d424847", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.java", "test_changes": [{"change_id": "1188_Project-Books_book-project-v0.1.0_b61e749_ee38797_PredefinedShelfUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfUtilsTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.PredefinedShelfUtilsTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfUtils.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["251-262"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return predefinedShelfService.findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "line_nums_new": "59-63", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.3662, "method_coverage_gold": 18.6536, "line_coverage_gold": 15.3536, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__b9cec0a_eb55c98__PredefinedShelfServiceTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "b9cec0a92b0ba4a7667b8148db90f45bc2e0433a", "rev2": "eb55c987beb37a5329bb4769a1cc31b492c5b4f5", "rev1_date": "2020-11-11T23:16:27Z", "rev2_date": "2020-11-12T00:43:43Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/b9cec0a92b0ba4a7667b8148db90f45bc2e0433a...eb55c987beb37a5329bb4769a1cc31b492c5b4f5", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.java", "test_changes": [{"change_id": "1183_Project-Books_book-project-v0.1.0_b9cec0a_eb55c98_PredefinedShelfServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfServiceTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfServiceTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PredefinedShelfServiceTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfService.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(PredefinedShelf.ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-119"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "line_nums_new": "158-162", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 13.9118, "method_coverage_gold": 17.2702, "line_coverage_gold": 14.7556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PredefinedShelfService.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PredefinedShelfService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__c0aebb8_a180d1b__PublisherServiceTest_e4bc59a4", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "c0aebb89a6bd317c723da5f5ca7352c57f1b9ec4", "rev2": "a180d1b43b4bdf2651abdc652bb34f27bb005f52", "rev1_date": "2020-12-11T08:17:43Z", "rev2_date": "2020-12-11T08:24:26Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/c0aebb89a6bd317c723da5f5ca7352c57f1b9ec4...a180d1b43b4bdf2651abdc652bb34f27bb005f52", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/PublisherServiceTest.java", "test_changes": [{"change_id": "1269_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_PublisherServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PublisherServiceTest.throwExceptionWhileSavingDuplicatePublisher:()V", "class": "PublisherServiceTest", "method": "throwExceptionWhileSavingDuplicatePublisher", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PublisherServiceTest#throwExceptionWhileSavingDuplicatePublisher", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Throw exception when saving a new Publisher with existing name\")\nvoid throwExceptionWhileSavingDuplicatePublisher() {\n Publisher publisher1 = new Publisher(\"Test DuplicatePublisher\");\n Publisher publisher2 = new Publisher(\"Test DuplicatePublisher\");\n publisherService.save(publisher1);\n assertThatThrownBy(() -> publisherService.save(publisher2)).isInstanceOf(DataIntegrityViolationException.class);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["120-133"], "old_production_code": "", "new_production_code": "public void save(@NonNull Publisher publisher) {\n if (StringUtils.isNotEmpty(publisher.getName())) {\n publisherRepository.save(publisher);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "58-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7368, "method_coverage_gold": 17.9183, "line_coverage_gold": 15.5121, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1270_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_PublisherServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PublisherServiceTest.deleteExistingPublisher:()V", "class": "PublisherServiceTest", "method": "deleteExistingPublisher", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PublisherServiceTest#deleteExistingPublisher", "old_test_code": null, "new_test_code": "@Test\n@Transactional\n@DisplayName(\"Delete a Publisher\")\nvoid deleteExistingPublisher() {\n Publisher publisher = new Publisher(\"Test DeletePublisher\");\n publisherService.save(publisher);\n Long publisherId = publisher.getId();\n publisherService.delete(publisher);\n Optional deletedPublisher = publisherService.findById(publisherId);\n assertThat(deletedPublisher).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-103"], "old_production_code": "", "new_production_code": "public void delete(@NonNull Publisher publisher) {\n publisherRepository.delete(publisher);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PublisherService.delete:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.delete:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "68-70", "dependency_updated": "inserted", "score": 0.5474, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2609, "class": 1.0, "tfidf": 0.5937}}, {"dep_id": 2, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "58-62", "dependency_updated": "inserted", "score": 0.4172, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.087, "class": 1.0, "tfidf": 0.5371}}, {"dep_id": 1, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.3649, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1739, "class": 1.0, "tfidf": 0.2541}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.8684, "method_coverage_gold": 18.1818, "line_coverage_gold": 15.6821, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "com/karankumar/bookproject/backend/service/PublisherService.delete:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.delete:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1271_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_PublisherServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PublisherServiceTest.saveValidPublisher:()V", "class": "PublisherServiceTest", "method": "saveValidPublisher", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PublisherServiceTest#saveValidPublisher", "old_test_code": null, "new_test_code": "@Test\nvoid saveValidPublisher() {\n Publisher publisher = new Publisher(\"Test SavePublisher \");\n publisherService.save(publisher);\n assertThat(publisherService.findById(publisher.getId())).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-72"], "old_production_code": "", "new_production_code": "public void save(@NonNull Publisher publisher) {\n if (StringUtils.isNotEmpty(publisher.getName())) {\n publisherRepository.save(publisher);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "58-62", "dependency_updated": "inserted", "score": 0.5306, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.5495}}, {"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.3557, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 1.0, "tfidf": 0.2202}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7368, "method_coverage_gold": 18.0501, "line_coverage_gold": 15.5546, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findById:(Ljava/lang/Long;)Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1274_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_PublisherServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/PublisherServiceTest.findAllSavedPublishers:()V", "class": "PublisherServiceTest", "method": "findAllSavedPublishers", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.PublisherServiceTest#findAllSavedPublishers", "old_test_code": null, "new_test_code": "@Test\nvoid findAllSavedPublishers() {\n Publisher publisher1 = new Publisher(\"Test SavePublisher1\");\n Publisher publisher2 = new Publisher(\"Test SavePublisher2\");\n publisherService.save(publisher1);\n publisherService.save(publisher2);\n List allPublishers = publisherService.findAll();\n assertThat(allPublishers).contains(publisher1, publisher2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["105-118"], "old_production_code": "", "new_production_code": "public void save(@NonNull Publisher publisher) {\n if (StringUtils.isNotEmpty(publisher.getName())) {\n publisherRepository.save(publisher);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "58-62", "dependency_updated": "inserted", "score": 0.4882, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1818, "class": 1.0, "tfidf": 0.3978}}, {"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findAll:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "line_nums_new": "64-66", "dependency_updated": "inserted", "score": 0.477, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3182, "class": 1.0, "tfidf": 0.2546}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7368, "method_coverage_gold": 18.0501, "line_coverage_gold": 15.5546, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "com/karankumar/bookproject/backend/service/PublisherService.findAll:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.findAll:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/karankumar/bookproject/backend/service/PublisherService.save:(Lcom/karankumar/bookproject/backend/entity/Publisher;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/PublisherService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__c0aebb8_a180d1b__BookFormTest_530da82a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "c0aebb89a6bd317c723da5f5ca7352c57f1b9ec4", "rev2": "a180d1b43b4bdf2651abdc652bb34f27bb005f52", "rev1_date": "2020-12-11T08:17:43Z", "rev2_date": "2020-12-11T08:24:26Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/c0aebb89a6bd317c723da5f5ca7352c57f1b9ec4...a180d1b43b4bdf2651abdc652bb34f27bb005f52", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "1273_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.useUsersCustomShelf_whenCustomShelfIsNull:()V", "class": "BookFormTest", "method": "useUsersCustomShelf_whenCustomShelfIsNull", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#useUsersCustomShelf_whenCustomShelfIsNull", "old_test_code": null, "new_test_code": "@Test\nvoid useUsersCustomShelf_whenCustomShelfIsNull() {\n Book book = createBook(READ, true, \"title\");\n book.setCustomShelf(null);\n bookForm.setBook(book);\n assertThat(customShelfService.findAllForLoggedInUser().get(0)).isEqualTo(book.getCustomShelf());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["811-823"], "old_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n CustomShelf customShelf = customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "new_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n List usersShelves = customShelfService.findAllForLoggedInUser();\n CustomShelf customShelf = !usersShelves.isEmpty() ? usersShelves.get(0) : customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "468-486", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "469-489", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 19.4737, "method_coverage_gold": 40.5797, "line_coverage_gold": 43.2214, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/ui/book/form/BookFormTest.createBook:(Lcom/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName;ZLjava/lang/String;)Lcom/karankumar/bookproject/backend/entity/Book", "com/karankumar/bookproject/backend/service/CustomShelfService.findAllForLoggedInUser:()Ljava/util/List", "com/karankumar/bookproject/backend/entity/BaseEntity.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "1275_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.dontResetBinder_whenOpeningFormForExistingBook:()V", "class": "BookFormTest", "method": "dontResetBinder_whenOpeningFormForExistingBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#dontResetBinder_whenOpeningFormForExistingBook", "old_test_code": null, "new_test_code": "@Test\nvoid dontResetBinder_whenOpeningFormForExistingBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.openForm();\n assertThat(bookForm.binder).isEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["591-601"], "old_production_code": "public void openForm() {\n clearErrors();\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "new_production_code": "public void openForm() {\n formDialog.open();\n showSeriesPositionFormIfSeriesPositionAvailable();\n addClassNameToForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "236-241", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "238-242", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.4737, "method_coverage_gold": 41.2385, "line_coverage_gold": 43.7739, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.openForm:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1276_Project-Books_book-project-v0.1.0_c0aebb8_a180d1b_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.createNewBinder_whenOpeningFormForNewBook:()V", "class": "BookFormTest", "method": "createNewBinder_whenOpeningFormForNewBook", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#createNewBinder_whenOpeningFormForNewBook", "old_test_code": null, "new_test_code": "@Test\nvoid createNewBinder_whenOpeningFormForNewBook() {\n Binder originalBinder = bookForm.binder;\n bookForm.addBook();\n assertThat(bookForm.binder).isNotEqualTo(originalBinder);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["603-613"], "old_production_code": "public void addBook() {\n clearFormFields();\n openForm();\n}", "new_production_code": "public void addBook() {\n clearFormFields();\n clearErrors();\n openForm();\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "658-661", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "661-665", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.1316, "method_coverage_gold": 41.7655, "line_coverage_gold": 44.9639, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookFormTest.tearDown:()V", "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.addBook:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__c8f5ed8_124ee3b__ReadingGoalCalculatorTest_23697d9d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "c8f5ed88bbe09e1ea21eed5937677828f8c039ee", "rev2": "124ee3b74d685ae59516c29d3268a5583b7707ed", "rev1_date": "2020-10-27T08:46:20Z", "rev2_date": "2020-10-27T18:31:01Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/c8f5ed88bbe09e1ea21eed5937677828f8c039ee...124ee3b74d685ae59516c29d3268a5583b7707ed", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.java", "test_changes": [{"change_id": "1384_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testNoProgressMadeTowardsGoal:()V", "class": "ReadingGoalCalculatorTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1386_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.shouldNotThrowExceptionOnZeroDivision:()V", "class": "ReadingGoalCalculatorTest", "method": "shouldNotThrowExceptionOnZeroDivision", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#shouldNotThrowExceptionOnZeroDivision", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Ensure 0, and not an arithmetic exception, is returned\")\nvoid shouldNotThrowExceptionOnZeroDivision() {\n int toRead = 5;\n int read = 0;\n SoftAssertions softly = new SoftAssertions();\n softly.assertThatCode(() -> calculateProgressTowardsReadingGoal(toRead, read)).doesNotThrowAnyException();\n softly.assertThat(calculateProgressTowardsReadingGoal(toRead, read)).isZero();\n softly.assertAll();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1390_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.testBooksToReadFromStartOfYear:()V", "class": "ReadingGoalCalculatorTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(26);\n assertThat(booksToReadFromStartOfYear).isEqualTo(0.5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-167"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0485, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1391_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1395_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValue:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1397_Project-Books_book-project-v0.1.0_c8f5ed8_124ee3b_ReadingGoalCalculatorTest", "test_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculatorTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "ReadingGoalCalculatorTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.ReadingGoalCalculatorTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1441, "method_coverage_gold": 0.1587, "line_coverage_gold": 0.0969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/ReadingGoalCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__d05fb97_f8d2ead__YearStatisticsTest_e534f507", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "d05fb97136b1e580c7bec8d8abd7f9423db101f5", "rev2": "f8d2ead837d95efcef1a94a1753c250820953d2e", "rev1_date": "2020-12-11T07:14:23Z", "rev2_date": "2020-12-11T08:12:02Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/d05fb97136b1e580c7bec8d8abd7f9423db101f5...f8d2ead837d95efcef1a94a1753c250820953d2e", "test_file": "src/test/java/com/karankumar/bookproject/backend/statistics/YearStatisticsTest.java", "test_changes": [{"change_id": "915_Project-Books_book-project-v0.1.0_d05fb97_f8d2ead_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.findLowestRatedBookThisYear:()V", "class": "YearStatisticsTest", "method": "findLowestRatedBookThisYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#findLowestRatedBookThisYear", "old_test_code": null, "new_test_code": "@Test\nvoid findLowestRatedBookThisYear() {\n String actualTitle = yearStatistic.findLeastLikedBookThisYear().get().getTitle();\n String expectedTitle = bookWithLowestRatingThisYear.getTitle();\n assertThat(actualTitle).isEqualTo(expectedTitle);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-63"], "old_production_code": "", "new_production_code": "public Optional findLeastLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(0));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "53-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.1157, "method_coverage_gold": 18.7415, "line_coverage_gold": 16.5866, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "916_Project-Books_book-project-v0.1.0_d05fb97_f8d2ead_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.highestRatedBookExistsAndIsFound:()V", "class": "YearStatisticsTest", "method": "highestRatedBookExistsAndIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#highestRatedBookExistsAndIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid highestRatedBookExistsAndIsFound() {\n String actualTitle = yearStatistic.findMostLikedBookThisYear().get().getTitle();\n String expectedTitle = bookWithHighestRatingThisYear.getTitle();\n assertThat(actualTitle).isEqualTo(expectedTitle);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-76"], "old_production_code": "", "new_production_code": "public Optional findMostLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(readBooksThisYear.size() - 1));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "61-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.1157, "method_coverage_gold": 18.7415, "line_coverage_gold": 16.5866, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__d4e2605_bc71c03__BookFormTest_922f2837", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "d4e2605974339f56afe367cea4ef02b3dfe26465", "rev2": "bc71c03a2d780a5d4c60c8c6470462cd6d2eda12", "rev1_date": "2020-11-29T20:35:19Z", "rev2_date": "2020-11-29T20:40:44Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/d4e2605974339f56afe367cea4ef02b3dfe26465...bc71c03a2d780a5d4c60c8c6470462cd6d2eda12", "test_file": "src/test/java/com/karankumar/bookproject/ui/book/form/BookFormTest.java", "test_changes": [{"change_id": "1461_Project-Books_book-project-v0.1.0_d4e2605_bc71c03_BookFormTest", "test_sign": "com/karankumar/bookproject/ui/book/form/BookFormTest.useUsersCustomShelf_whenCustomShelfIsNull:()V", "class": "BookFormTest", "method": "useUsersCustomShelf_whenCustomShelfIsNull", "module": "", "junit_selector": "com.karankumar.bookproject.ui.book.form.BookFormTest#useUsersCustomShelf_whenCustomShelfIsNull", "old_test_code": null, "new_test_code": "@Test\nvoid useUsersCustomShelf_whenCustomShelfIsNull() {\n Book book = createBook(READ, true, \"title\");\n book.setCustomShelf(null);\n bookForm.setBook(book);\n assertThat(customShelfService.findAllForLoggedInUser().get(0)).isEqualTo(book.getCustomShelf());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["811-823"], "old_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n CustomShelf customShelf = customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "new_production_code": "public void setBook(Book book) {\n if (book == null) {\n LOGGER.log(Level.SEVERE, \"Book is null\");\n return;\n }\n saveButton.setText(LABEL_UPDATE_BOOK);\n if (binder == null) {\n LOGGER.log(Level.SEVERE, \"Null binder\");\n return;\n }\n if (book.getCustomShelf() == null) {\n List usersShelves = customShelfService.findAllForLoggedInUser();\n CustomShelf customShelf = !usersShelves.isEmpty() ? usersShelves.get(0) : customShelfService.createCustomShelf(\"ShelfName\");\n book.setCustomShelf(customShelf);\n }\n binder.setBean(book);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "focal_method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_old": "467-485", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "line_nums_new": "469-489", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 19.6629, "method_coverage_gold": 41.2587, "line_coverage_gold": 44.0089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "com/karankumar/bookproject/backend/entity/BaseEntity.equals:(Ljava/lang/Object;)Z", "com/karankumar/bookproject/backend/service/CustomShelfService.findAllForLoggedInUser:()Ljava/util/List", "com/karankumar/bookproject/ui/book/form/BookFormTest.createBook:(Lcom/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName;ZLjava/lang/String;)Lcom/karankumar/bookproject/backend/entity/Book"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/ui/book/form/BookForm.setBook:(Lcom/karankumar/bookproject/backend/entity/Book;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "file_path_new": "src/main/java/com/karankumar/bookproject/ui/book/form/BookForm.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__d652eb3_38dea5c__ImportServiceTest_b4eb7dc4", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "d652eb3db019d50b46165dac4e5e7622f56dc58c", "rev2": "38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd", "rev1_date": "2020-11-24T17:22:41Z", "rev2_date": "2020-11-24T19:31:07Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/d652eb3db019d50b46165dac4e5e7622f56dc58c...38dea5c9b7113f1c6c0761f9d9755b8ec06e88bd", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ImportServiceTest.java", "test_changes": [{"change_id": "1267_Project-Books_book-project-v0.1.0_d652eb3_38dea5c_ImportServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ImportServiceTest.goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty:()V", "class": "ImportServiceTest", "method": "goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ImportServiceTest#goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "old_test_code": null, "new_test_code": "@Test\nvoid goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty() {\n GoodreadsBookImport goodreadsBookImport = new GoodreadsBookImport();\n goodreadsBookImport.setTitle(\"Blink: The Power of Thinking Without Thinking\");\n goodreadsBookImport.setAuthor(\"Malcolm Gladwell\");\n goodreadsBookImport.setBookshelves(\"Reading\");\n List savedBooks = importService.importGoodreadsBooks(Collections.singletonList(goodreadsBookImport));\n int expected = 1;\n assertThat(savedBooks.size()).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-70"], "old_production_code": "", "new_production_code": "public List importGoodreadsBooks(Collection goodreadsBookImports) {\n List books = toBooks(goodreadsBookImports);\n List savedBooks = books.stream().map(bookService::save).filter(Optional::isPresent).map(Optional::get).collect(Collectors.toList());\n savedBooks.forEach(b -> LOGGER.info(\"Book: \" + b + \" saved successfully\"));\n return savedBooks;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "line_nums_new": "63-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.0259, "method_coverage_gold": 20.7219, "line_coverage_gold": 18.0615, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__da78727_58877b4__CalculateReadingGoalTest_23697d9d", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "da787278013e9cd0d152e249915a355feb3880f9", "rev2": "58877b4ed9b268bc67dc9702a4d9e2f040fd5057", "rev1_date": "2020-10-31T06:53:08Z", "rev2_date": "2020-10-31T17:52:51Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/da787278013e9cd0d152e249915a355feb3880f9...58877b4ed9b268bc67dc9702a4d9e2f040fd5057", "test_file": "src/test/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.java", "test_changes": [{"change_id": "1444_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.shouldNotThrowExceptionOnZeroDivision:()V", "class": "CalculateReadingGoalTest", "method": "shouldNotThrowExceptionOnZeroDivision", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#shouldNotThrowExceptionOnZeroDivision", "old_test_code": null, "new_test_code": "@Test\n@DisplayName(\"Ensure 0, and not an arithmetic exception, is returned\")\nvoid shouldNotThrowExceptionOnZeroDivision() {\n int toRead = 5;\n int read = 0;\n SoftAssertions softly = new SoftAssertions();\n softly.assertThatCode(() -> calculateProgressTowardsReadingGoal(toRead, read)).doesNotThrowAnyException();\n softly.assertThat(calculateProgressTowardsReadingGoal(toRead, read)).isZero();\n softly.assertAll();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-83"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1448_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalMet:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalMet", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalMet", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalMet() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, BOOKS_TO_READ);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1451_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValueWhenGoalExceeded:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValueWhenGoalExceeded", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValueWhenGoalExceeded", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValueWhenGoalExceeded() {\n double expected = 1.0;\n double actual = calculateProgressTowardsReadingGoal(BOOKS_TO_READ, (BOOKS_TO_READ + 1));\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1454_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.calculateCorrectProgressValue:()V", "class": "CalculateReadingGoalTest", "method": "calculateCorrectProgressValue", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#calculateCorrectProgressValue", "old_test_code": null, "new_test_code": "@Test\nvoid calculateCorrectProgressValue() {\n int toRead = 25;\n int read = 5;\n double expected = 0.2;\n double actual = calculateProgressTowardsReadingGoal(toRead, read);\n assertThat(actual).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1455_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testNoProgressMadeTowardsGoal:()V", "class": "CalculateReadingGoalTest", "method": "testNoProgressMadeTowardsGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testNoProgressMadeTowardsGoal", "old_test_code": null, "new_test_code": "@Test\nvoid testNoProgressMadeTowardsGoal() {\n assertThat(calculateProgressTowardsReadingGoal(5, 0)).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "public static double calculateProgressTowardsReadingGoal(int toRead, int read) {\n double progress = (toRead == 0) ? 0 : ((double) read / toRead);\n return Math.min(progress, 1.0);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1497, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0982, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.calculateProgressTowardsReadingGoal:(II)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1457_Project-Books_book-project-v0.1.0_da78727_58877b4_CalculateReadingGoalTest", "test_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoalTest.testBooksToReadFromStartOfYear:()V", "class": "CalculateReadingGoalTest", "method": "testBooksToReadFromStartOfYear", "module": "", "junit_selector": "com.karankumar.bookproject.backend.goal.CalculateReadingGoalTest#testBooksToReadFromStartOfYear", "old_test_code": null, "new_test_code": "@Test\nvoid testBooksToReadFromStartOfYear() {\n double booksToReadFromStartOfYear = booksToReadFromStartOfYear(26);\n assertThat(booksToReadFromStartOfYear).isEqualTo(0.5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-167"], "old_production_code": "", "new_production_code": "public static double booksToReadFromStartOfYear(int booksToReadThisYear) {\n return ((double) booksToReadThisYear / WEEKS_IN_YEAR);\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "focal_method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1616, "line_coverage_gold": 0.0491, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/goal/CalculateReadingGoal.booksToReadFromStartOfYear:(I)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/goal/CalculateReadingGoal.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__da78727_58877b4__TagServiceTest_f471e1c0", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "da787278013e9cd0d152e249915a355feb3880f9", "rev2": "58877b4ed9b268bc67dc9702a4d9e2f040fd5057", "rev1_date": "2020-10-31T06:53:08Z", "rev2_date": "2020-10-31T17:52:51Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/da787278013e9cd0d152e249915a355feb3880f9...58877b4ed9b268bc67dc9702a4d9e2f040fd5057", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/TagServiceTest.java", "test_changes": [{"change_id": "1446_Project-Books_book-project-v0.1.0_da78727_58877b4_TagServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/TagServiceTest.notSaveANullTag:()V", "class": "TagServiceTest", "method": "notSaveANullTag", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.TagServiceTest#notSaveANullTag", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullTag() {\n assumeThat(tagService.count()).isZero();\n tagService.save(null);\n assertThat(tagService.count()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-53"], "old_production_code": "public void save(@NonNull Tag tag) {\n tagRepository.save(tag);\n}", "new_production_code": "public void save(Tag tag) {\n if (tag != null) {\n tagRepository.save(tag);\n } else {\n LOGGER.log(Level.SEVERE, \"Null tag\");\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "line_nums_new": "42-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 14.3713, "method_coverage_gold": 19.5477, "line_coverage_gold": 16.2083, "is_traceback": false, "commit_gap": {"count": 7, "skipped_commits": ["75ca874a5210f964da88b4b4a87296209fbffe33", "308de9f34dc95b77772e746cbe8b390053319a56", "76a1ee65c8a25efd4ef99f81c7ed4c2414ab3e99", "149681d59ff97d71a353da1985628be58d98ac1c", "36e3a0a88c265c3a31bd9dade53d5f4c240e5223", "63ee5ccd728ae4822cbd65cf9bffc871d98de273", "1a492c1923e9924d295ea41c788756da13112731"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/TagServiceTest.tearDown:()V", "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "com/karankumar/bookproject/backend/service/TagService.count:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/TagService.save:(Lcom/karankumar/bookproject/backend/entity/Tag;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/TagService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__dfbe6ba_d760cbc__ImportServiceTest_b4eb7dc4", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "dfbe6ba7ecfd2251bb1e0c0fcb7767daa51518f4", "rev2": "d760cbc26acab9075a921c0d4038258373a78d69", "rev1_date": "2020-11-25T11:12:41Z", "rev2_date": "2020-11-25T21:22:17Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/dfbe6ba7ecfd2251bb1e0c0fcb7767daa51518f4...d760cbc26acab9075a921c0d4038258373a78d69", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ImportServiceTest.java", "test_changes": [{"change_id": "817_Project-Books_book-project-v0.1.0_dfbe6ba_d760cbc_ImportServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ImportServiceTest.goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty:()V", "class": "ImportServiceTest", "method": "goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ImportServiceTest#goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty", "old_test_code": null, "new_test_code": "@Test\nvoid goodreadsBookImportIsSavedWhenAuthorAndPredefinedShelfIsNotEmpty() {\n GoodreadsBookImport goodreadsBookImport = new GoodreadsBookImport();\n goodreadsBookImport.setTitle(\"Blink: The Power of Thinking Without Thinking\");\n goodreadsBookImport.setAuthor(\"Malcolm Gladwell\");\n goodreadsBookImport.setBookshelves(\"Reading\");\n List savedBooks = importService.importGoodreadsBooks(Collections.singletonList(goodreadsBookImport));\n int expected = 1;\n assertThat(savedBooks.size()).isEqualTo(expected);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-70"], "old_production_code": "", "new_production_code": "public List importGoodreadsBooks(Collection goodreadsBookImports) {\n List books = toBooks(goodreadsBookImports);\n List savedBooks = books.stream().map(bookService::save).filter(Optional::isPresent).map(Optional::get).collect(Collectors.toList());\n savedBooks.forEach(b -> LOGGER.info(\"Book: \" + b + \" saved successfully\"));\n return savedBooks;\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "line_nums_new": "63-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.1163, "method_coverage_gold": 20.7219, "line_coverage_gold": 18.0965, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ImportService.importGoodreadsBooks:(Ljava/util/Collection;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ImportService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__ede2c54_30b8e4d__ReadingGoalServiceTest_f344724f", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0", "rev2": "30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "rev1_date": "2020-11-21T09:06:34Z", "rev2_date": "2020-11-21T16:58:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0...30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.java", "test_changes": [{"change_id": "1137_Project-Books_book-project-v0.1.0_ede2c54_30b8e4d_ReadingGoalServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.notSaveANullGoal:()V", "class": "ReadingGoalServiceTest", "method": "notSaveANullGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ReadingGoalServiceTest#notSaveANullGoal", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullGoal() {\n assumeThat(goalService.count()).isOne();\n goalService.save(null);\n assertThat(goalService.count()).isOne();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-90"], "old_production_code": "public void save(@NonNull ReadingGoal goal) {\n overwritePreviouslySetGoal(goal);\n}", "new_production_code": "public void save(ReadingGoal goal) {\n if (goal != null) {\n overwritePreviouslySetGoals(goal);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_new": "44-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.3454, "method_coverage_gold": 19.5385, "line_coverage_gold": 16.0681, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ReadingGoalService.count:()Ljava/lang/Long", "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__ede2c54_30b8e4d__YearStatisticsTest_f21298ab", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0", "rev2": "30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "rev1_date": "2020-11-21T09:06:34Z", "rev2_date": "2020-11-21T16:58:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0...30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "test_file": "src/test/java/com/karankumar/bookproject/backend/statistics/YearStatisticsTest.java", "test_changes": [{"change_id": "1110_Project-Books_book-project-v0.1.0_ede2c54_30b8e4d_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.lowestRatedBookThisYearIsFound:()V", "class": "YearStatisticsTest", "method": "lowestRatedBookThisYearIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#lowestRatedBookThisYearIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid lowestRatedBookThisYearIsFound() {\n assertThat(yearStatistic.findLeastLikedBookThisYear().get().getTitle()).isEqualTo(bookWithLowestRatingThisYear.getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-65"], "old_production_code": "", "new_production_code": "public Optional findLeastLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(0));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "53-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.2953, "method_coverage_gold": 21.3846, "line_coverage_gold": 18.0529, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findLeastLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1134_Project-Books_book-project-v0.1.0_ede2c54_30b8e4d_YearStatisticsTest", "test_sign": "com/karankumar/bookproject/backend/statistics/YearStatisticsTest.highestRatedBookExistsAndIsFound:()V", "class": "YearStatisticsTest", "method": "highestRatedBookExistsAndIsFound", "module": "", "junit_selector": "com.karankumar.bookproject.backend.statistics.YearStatisticsTest#highestRatedBookExistsAndIsFound", "old_test_code": null, "new_test_code": "@Test\nvoid highestRatedBookExistsAndIsFound() {\n assertThat(yearStatistic.findMostLikedBookThisYear().get().getTitle()).isEqualTo(bookWithHighestRatingThisYear.getTitle());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-76"], "old_production_code": "", "new_production_code": "public Optional findMostLikedBookThisYear() {\n if (readBooksThisYear.isEmpty()) {\n return Optional.empty();\n }\n readBooksThisYear.sort(Comparator.comparing(Book::getRating));\n return Optional.of(readBooksThisYear.get(readBooksThisYear.size() - 1));\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "focal_method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "line_nums_new": "61-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 16.2953, "method_coverage_gold": 21.3846, "line_coverage_gold": 18.0529, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/statistics/YearStatistics.findMostLikedBookThisYear:()Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/statistics/YearStatistics.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__ede2c54_30b8e4d__PredefinedShelfUtilsTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0", "rev2": "30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "rev1_date": "2020-11-21T09:06:34Z", "rev2_date": "2020-11-21T16:58:18Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/ede2c54e2fd2fcdab1fa35ad8120b9a77e7cf7f0...30b8e4dafd17a29c5596d38cdaf3726b38ebd2c6", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.java", "test_changes": [{"change_id": "1117_Project-Books_book-project-v0.1.0_ede2c54_30b8e4d_PredefinedShelfUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfUtilsTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.PredefinedShelfUtilsTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfUtils.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["252-265"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return predefinedShelfService.findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "line_nums_new": "59-63", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.2061, "method_coverage_gold": 20.4615, "line_coverage_gold": 16.2098, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__f419f05_b9cec0a__ReadingGoalServiceTest_f344724f", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "f419f05667c6b775cc25d08fd82eac81e6f5b197", "rev2": "b9cec0a92b0ba4a7667b8148db90f45bc2e0433a", "rev1_date": "2020-11-11T16:53:56Z", "rev2_date": "2020-11-11T23:16:27Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/f419f05667c6b775cc25d08fd82eac81e6f5b197...b9cec0a92b0ba4a7667b8148db90f45bc2e0433a", "test_file": "src/test/java/com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.java", "test_changes": [{"change_id": "1421_Project-Books_book-project-v0.1.0_f419f05_b9cec0a_ReadingGoalServiceTest", "test_sign": "com/karankumar/bookproject/backend/service/ReadingGoalServiceTest.notSaveANullGoal:()V", "class": "ReadingGoalServiceTest", "method": "notSaveANullGoal", "module": "", "junit_selector": "com.karankumar.bookproject.backend.service.ReadingGoalServiceTest#notSaveANullGoal", "old_test_code": null, "new_test_code": "@Test\nvoid notSaveANullGoal() {\n assumeThat(goalService.count()).isOne();\n goalService.save(null);\n assertThat(goalService.count()).isOne();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-93"], "old_production_code": "public void save(@NonNull ReadingGoal goal) {\n overwritePreviouslySetGoal(goal);\n}", "new_production_code": "public void save(ReadingGoal goal) {\n if (goal != null) {\n overwritePreviouslySetGoals(goal);\n }\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "focal_method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_old": "43-45", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "line_nums_new": "44-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.2659, "method_coverage_gold": 17.7127, "line_coverage_gold": 15.138, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "com/karankumar/bookproject/backend/service/ReadingGoalService.count:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/service/ReadingGoalService.save:(Lcom/karankumar/bookproject/backend/entity/ReadingGoal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "file_path_new": "src/main/java/com/karankumar/bookproject/backend/service/ReadingGoalService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Project-Books_book-project-v0.1.0__f419f05_b9cec0a__PredefinedShelfUtilsTest_a124f46a", "project_name": "Project-Books_book-project-v0.1.0", "git_clone_url": "https://github.com/Project-Books/book-project.git", "rev1": "f419f05667c6b775cc25d08fd82eac81e6f5b197", "rev2": "b9cec0a92b0ba4a7667b8148db90f45bc2e0433a", "rev1_date": "2020-11-11T16:53:56Z", "rev2_date": "2020-11-11T23:16:27Z", "git_diff_url": "https://github.com/Project-Books/book-project/compare/f419f05667c6b775cc25d08fd82eac81e6f5b197...b9cec0a92b0ba4a7667b8148db90f45bc2e0433a", "test_file": "src/test/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.java", "test_changes": [{"change_id": "1420_Project-Books_book-project-v0.1.0_f419f05_b9cec0a_PredefinedShelfUtilsTest", "test_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtilsTest.getPredefinedShelfNamesCorrectlyAsStrings:()V", "class": "PredefinedShelfUtilsTest", "method": "getPredefinedShelfNamesCorrectlyAsStrings", "module": "", "junit_selector": "com.karankumar.bookproject.backend.util.PredefinedShelfUtilsTest#getPredefinedShelfNamesCorrectlyAsStrings", "old_test_code": null, "new_test_code": "@Test\nvoid getPredefinedShelfNamesCorrectlyAsStrings() {\n List actualShelfNames = predefinedShelfUtils.getPredefinedShelfNamesAsStrings();\n List expectedShelfNames = Stream.of(ShelfName.values()).map(Enum::toString).collect(Collectors.toList());\n assertSoftly(softly -> {\n softly.assertThat(actualShelfNames).hasSize(expectedShelfNames.size());\n softly.assertThat(expectedShelfNames).containsAll(actualShelfNames);\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["251-262"], "old_production_code": "", "new_production_code": "public List getPredefinedShelfNamesAsStrings() {\n return predefinedShelfService.findAllForLoggedInUser().stream().map(Shelf::getShelfName).collect(Collectors.toList());\n}", "focal_file_path": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "focal_method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "line_nums_new": "68-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.1274, "method_coverage_gold": 18.5495, "line_coverage_gold": 15.2716, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/karankumar/bookproject/backend/entity/PredefinedShelf$ShelfName.toString:()Ljava/lang/String", "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/karankumar/bookproject/backend/util/PredefinedShelfUtils.getPredefinedShelfNamesAsStrings:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/karankumar/bookproject/backend/util/PredefinedShelfUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.0", "java_version": 11} {"task_id": "Samuel-Oliveira_Java_NFe-v4.00.42__2cf41ed_22c8927__XmlNfeUtilTest_55f485fc", "project_name": "Samuel-Oliveira_Java_NFe-v4.00.42", "git_clone_url": "https://github.com/Samuel-Oliveira/Java_NFe.git", "rev1": "2cf41eda6e473e743dd3c1398ede47076819b1c2", "rev2": "22c89273db0de142df2c48b04e7a090f20ef6cd7", "rev1_date": "2025-06-26T16:52:47Z", "rev2_date": "2025-06-26T17:01:14Z", "git_diff_url": "https://github.com/Samuel-Oliveira/Java_NFe/compare/2cf41eda6e473e743dd3c1398ede47076819b1c2...22c89273db0de142df2c48b04e7a090f20ef6cd7", "test_file": "src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java", "test_changes": [{"change_id": "11_Samuel-Oliveira_Java_NFe-v4.00.42_2cf41ed_22c8927_XmlNfeUtilTest", "test_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtilTest.deveExtrairPrimeiraOcorrenciaDaTag:()V", "class": "XmlNfeUtilTest", "method": "deveExtrairPrimeiraOcorrenciaDaTag", "module": "", "junit_selector": "br.com.swconsultoria.nfe.util.XmlNfeUtilTest#deveExtrairPrimeiraOcorrenciaDaTag", "old_test_code": null, "new_test_code": "@Test\nvoid deveExtrairPrimeiraOcorrenciaDaTag() throws Exception {\n String xml = \"PrimeiroSegundo\";\n String resultado = XmlNfeUtil.getTag(xml, \"item\");\n assertEquals(\"Primeiro\", resultado);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-72"], "old_production_code": "", "new_production_code": "public static String getTag(String xml, String tag) throws NfeException {\n if (xml == null || xml.isEmpty()) {\n throw new NfeException(\"XML de entrada está vazio.\");\n }\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n dbf.setFeature(\"http://apache.org/xml/features/disallow-doctype-decl\", true);\n dbf.setFeature(\"http://xml.org/sax/features/external-general-entities\", false);\n dbf.setFeature(\"http://xml.org/sax/features/external-parameter-entities\", false);\n dbf.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n Document doc = dbf.newDocumentBuilder().parse(new InputSource(new StringReader(xml)));\n doc.getDocumentElement().normalize();\n XPath xPath = XPathFactory.newInstance().newXPath();\n Node node = (Node) xPath.evaluate(\"//*[local-name()='\" + tag + \"']\", doc, XPathConstants.NODE);\n if (node == null) {\n throw new NfeException(\"Tag '\" + tag + \"' não encontrada no XML.\");\n }\n return nodeToString(node);\n } catch (Exception e) {\n throw new NfeException(\"Erro ao extrair a tag '\" + tag + \"' do XML.\\nErro: \" + e.getMessage(), e);\n }\n}", "focal_file_path": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "focal_method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "line_nums_new": "539-567", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7647058823529411, "branch_coverage_gold": 0.073, "method_coverage_gold": 0.0156, "line_coverage_gold": 0.0502, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "12_Samuel-Oliveira_Java_NFe-v4.00.42_2cf41ed_22c8927_XmlNfeUtilTest", "test_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtilTest.deveExtrairTagCorretamente:()V", "class": "XmlNfeUtilTest", "method": "deveExtrairTagCorretamente", "module": "", "junit_selector": "br.com.swconsultoria.nfe.util.XmlNfeUtilTest#deveExtrairTagCorretamente", "old_test_code": null, "new_test_code": "@Test\nvoid deveExtrairTagCorretamente() throws Exception {\n String xml = \"123Teste\";\n String resultado = XmlNfeUtil.getTag(xml, \"id\");\n assertEquals(\"123\", resultado);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-65"], "old_production_code": "", "new_production_code": "public static String getTag(String xml, String tag) throws NfeException {\n if (xml == null || xml.isEmpty()) {\n throw new NfeException(\"XML de entrada está vazio.\");\n }\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n dbf.setFeature(\"http://apache.org/xml/features/disallow-doctype-decl\", true);\n dbf.setFeature(\"http://xml.org/sax/features/external-general-entities\", false);\n dbf.setFeature(\"http://xml.org/sax/features/external-parameter-entities\", false);\n dbf.setFeature(\"http://apache.org/xml/features/nonvalidating/load-external-dtd\", false);\n Document doc = dbf.newDocumentBuilder().parse(new InputSource(new StringReader(xml)));\n doc.getDocumentElement().normalize();\n XPath xPath = XPathFactory.newInstance().newXPath();\n Node node = (Node) xPath.evaluate(\"//*[local-name()='\" + tag + \"']\", doc, XPathConstants.NODE);\n if (node == null) {\n throw new NfeException(\"Tag '\" + tag + \"' não encontrada no XML.\");\n }\n return nodeToString(node);\n } catch (Exception e) {\n throw new NfeException(\"Erro ao extrair a tag '\" + tag + \"' do XML.\\nErro: \" + e.getMessage(), e);\n }\n}", "focal_file_path": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "focal_method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "line_nums_new": "539-567", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7647058823529411, "branch_coverage_gold": 0.073, "method_coverage_gold": 0.0156, "line_coverage_gold": 0.0502, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtil.getTag:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/util/XmlNfeUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v4.00.42", "java_version": 8} {"task_id": "Samuel-Oliveira_Java_NFe-v4.00.42__a7075a8_d7d267c__XmlNfeUtilTest_192d5ba5", "project_name": "Samuel-Oliveira_Java_NFe-v4.00.42", "git_clone_url": "https://github.com/Samuel-Oliveira/Java_NFe.git", "rev1": "a7075a8a9f1c2f361b0225ae2707f405d97223eb", "rev2": "d7d267c5a0dd0ca04220e5074c89abaf2851eb14", "rev1_date": "2023-04-25T05:22:04Z", "rev2_date": "2023-04-25T05:28:05Z", "git_diff_url": "https://github.com/Samuel-Oliveira/Java_NFe/compare/a7075a8a9f1c2f361b0225ae2707f405d97223eb...d7d267c5a0dd0ca04220e5074c89abaf2851eb14", "test_file": "src/test/java/br/com/swconsultoria/nfe/util/XmlNfeUtilTest.java", "test_changes": [{"change_id": "15_Samuel-Oliveira_Java_NFe-v4.00.42_a7075a8_d7d267c_XmlNfeUtilTest", "test_sign": "br/com/swconsultoria/nfe/util/XmlNfeUtilTest.validarXmlNfeProc:()V", "class": "XmlNfeUtilTest", "method": "validarXmlNfeProc", "module": "", "junit_selector": "br.com.swconsultoria.nfe.util.XmlNfeUtilTest#validarXmlNfeProc", "old_test_code": null, "new_test_code": "@Test\npublic void validarXmlNfeProc() {\n final String xml1 = \"5256781234Venda de Comb. Congenere551731792023-03-21T11:30:57-03:002023-03-21T11:30:00-03:00115220454115110009.21.509158456000159PHOENIX DIST DE COMBUSTIVEIS LTDAPHOENIX DIST DE COMBUSTIVEIS LTDAAV TROPICAL S/NR QD. MOD, LT. 8, BLC. B, SL. 040DISTR IND BRASIL CENTRAL5220454SENADOR CANEDOGO752517221058BRASIL6235124426104282215308944957000360PETROWORLD COMBUSTIVEIS S/AAV. TROPICAL, LT. 05/06 A, SALA 250DISTR INDL BR CENTRAL5220454SENADOR CANEDOGO752517221058BRASIL623622807711076803353301SEM GTINOLEO DIESEL A S-5002710192106006005655L47878.00005.0139000000240055.50SEM GTINL47878.00005.01390000001420102004OLEO DIESEL A S-50047878.0000GO0600.000.00322990.3045218.64999530404- Produto Retirado na DINAMICA TERMINAIS CANEDO S/A - AV TROPICAL SNR MODULO 06B - DISTR INDL BR CENTRAL - SENADOR CANEDO - GO - CNPJ: 33.047.181/0001-60 - Pedido = 5664401 - Qtde 20 graus: 47.821 litros; - Formulario seguranca:5664401; - Numero Boletim de Conformidade = 67/2023; - Base ICMS Origem = 322.990,30 - Valor = 45.218,64;0.000.000.000.000.000.000.000.00240055.500.000.000.000.000.000.000.000.000.00240055.50109158456000310PROPRIO107780828AV TROPICAL MODULO 6B , BLOCO A SALA 16SENADOR CANEDOGOAAA0000GO47878PHOENIX140170.00040170.0000086434073179240055.500.00240055.500012023-03-21240055.5015240055.50- Declaramos que os Produtos estao adequadamente acondicionados para as Normas de Carregamento, Descarregamento, Transbordo e Transporte, conforme Regulamentacao em Vigor. - Produto Retirado na DINAMICA TERMINAIS CANEDO S/A - AV TROPICAL SNR MODULO 06B - DISTR INDL BR CENTRAL - SENADOR CANEDO - GO - CNPJ: 33.047.181/0001-60 - Nome Motorista: VENDA CONGENERE PHOENIX - PETROWORLD - Placas: GO AAA-0000 - Pedido = 5664401 - Lacres = Azul 0086434; - Numero Boletim de Conformidade = 67/2023;18406978000113Ubaltino Faleiroubaltino@sistemainteligente.com62992887101prmbdxKA/lyJ5RkjcliNkqY14nA=YLElEQYakJPKh4oChHkSkfqFtRro2l2y3kN4wPiQbncv1EVFIn/PPrD/mi9GPF9U2g1SoHzYeNHR20QvhdyjcUF+DkgmHwT/SCvx89d0Q6ui3Gm5rggaCXw2MY7H99oxXMfT3OMKDCgCskiiHlTf9cCNF985BHs8y+j6yeDrZltAlrThq47xhET4I3xyBXlMlYWqvlnem/LN4eaVXAxCvkryzJCaFS+wtPJTEASWMz0mb1JT3VpYNvvcjFTH2PymY8x0wfvlP/bhlzPadiJ+BGKZ1971z3m+svJzX3wCZgw0Log/hjTyiRRQwqnwBbM+BHc8YDnuOY7ZqiHznbE/RA==MIIHjjCCBXagAwIBAgIIVCegZAmcBk0wDQYJKoZIhvcNAQELBQAwczELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEXMBUGA1UEAxMOQUMgQ05ETCBSRkIgdjMwHhcNMjIwNTEyMTM1NzE4WhcNMjMwNTEyMTM1NzE4WjCCAQoxCzAJBgNVBAYTAkJSMRMwEQYDVQQKEwpJQ1AtQnJhc2lsMQswCQYDVQQIEwJHTzEXMBUGA1UEBxMOU0VOQURPUiBDQU5FRE8xFzAVBgNVBAsTDjM0MTczNjgyMDAwMzE4MTYwNAYDVQQLEy1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxFjAUBgNVBAsTDVJGQiBlLUNOUEogQTExEzARBgNVBAsTCnByZXNlbmNpYWwxQjBABgNVBAMTOVBIT0VOSVggRElTVFJJQlVJRE9SQSBERSBDT01CVVNUSVZFSVMgTFREQTowOTE1ODQ1NjAwMDE1OTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMyJ2rzR12+HudEntD5N1+SYuLcLslway8q4V1jQXV+pkO4Er5vxSh4YamZvufpaPAGEYizjOwru1vw1DEPf4NVyGpvvysLG7K2Q1U1w3zuIkPXEMwwSTanrXTgreSKwj6VBmEtOSyN6r2cNZYp/r97Z4hZWWHDgVmg71KN4AxSOjRidXdtcFtFZePor0voEP9n4ztEZcNSfklyikJDkHH+lqQto+CkKH/982IvsUNVNYX/K8RstSR55Zm34yBojf5T8JihZusjZ4ffNgO1zUlmitTkai6EB9N1V1O3Ej9HVC6pBnH/iz8YlzBJa9mZLUea5oJokd4mW1vpGEoJtpTUCAwEAAaOCAoswggKHMB8GA1UdIwQYMBaAFGsfNBVBGuqbHsoi0s7d77vpMsqJMA4GA1UdDwEB/wQEAwIF4DBpBgNVHSAEYjBgMF4GBmBMAQIBNDBUMFIGCCsGAQUFBwIBFkZodHRwOi8vcmVwb3NpdG9yaW8uYWNzcGNicmFzaWwub3JnLmJyL2FjLWNuZGxyZmIvYWMtY25kbC1yZmItcGMtYTEucGRmMIGmBgNVHR8EgZ4wgZswS6BJoEeGRWh0dHA6Ly9yZXBvc2l0b3Jpby5hY3NwY2JyYXNpbC5vcmcuYnIvYWMtY25kbHJmYi9sY3ItYWMtY25kbHJmYnY1LmNybDBMoEqgSIZGaHR0cDovL3JlcG9zaXRvcmlvMi5hY3NwY2JyYXNpbC5vcmcuYnIvYWMtY25kbHJmYi9sY3ItYWMtY25kbHJmYnY1LmNybDBdBggrBgEFBQcBAQRRME8wTQYIKwYBBQUHMAKGQWh0dHA6Ly9yZXBvc2l0b3Jpby5hY3NwY2JyYXNpbC5vcmcuYnIvYWMtY25kbHJmYi9hYy1jbmRscmZidjUucDdiMIG2BgNVHREEga4wgauBFVBFUkVTQllURUBIT1RNQUlMLkNPTaAkBgVgTAEDAqAbExlBTEVYQU5EUkUgQ1VSU0lOTyBDQVVEVVJPoBkGBWBMAQMDoBATDjA5MTU4NDU2MDAwMTU5oDgGBWBMAQMEoC8TLTIzMTAxOTczMTI4Njc4MDQ4OTIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMKAXBgVgTAEDB6AOEwwwMDAwMDAwMDAwMDAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMEMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggIBAGSqy3KLbXE9RUjjn4Fn6pmWb/k04JyfWWoCV1uqVHEgUM4mmpo0cpY/BfK1UnPQ7gBD6Z/Hv8fNLqxhEU4AS4WLAvC7hCSjELkmXgZmFeJLnQqgJC2tNto2bW+J/jCPnVpebrwQz2orbYqHdaRJuuEanhTEencwe4DssxV3T85yQR0zZr/7DB8sLGPPpGaOB4/JJeYOAY6Pt2B+pilKOBqCBsDlT0D9R5kMiB0e3mK1CUip3Uid6/X1YV5nckTTNS+iKr5q9YxheIGn2KwXqOvXwa7jzI0KRzqxkuWmZ5jzI/5TPK6+SYAhj1PQf9AFcOaivXn59SvI6tCgxEhSRASEJa05sQM5CpFsMdONClYHvXiu8eeCohb0FVagsBKQti9mxCuM5xHsZKL0kemFpyufKDxN5jRUA+6w2Ca9wbAvDEejIg16Vg6Ula2rDcINm7XJjbT7dceTww/NYjAirOgCKIfWO0qcebErHv5bRqhEofaV6EiYqVfHAACHSozZ0qZuGGlGqjZ1bS01YrOYjhp18kvnzfkl+FBamFvq0z71lJhsp+18+7/wgcaMtr5lPUciWekJ95N8sze/Zm56IeYHP3qb304+889DHJJgPk/H7NqwWRgdepQNX6+SX0ePNYu/dUfTtEgvBKOD/SDWOHzV0NIprczQ2V2Uag968bbn1GO4.0522303091584560001595500100007317915678123452023-03-21T11:31:00-03:00152236109643154prmbdxKA/lyJ5RkjcliNkqY14nA=100Autorizado o uso da NF-e\";\n final String xml2 = \"4317611923Venda55104329572023-04-12T10:59:49-03:001143187051111109004.0089548523000180ALISUL ALIMENTOS S.A. - SAO LEOPOLDOALISUL ALIMENTOS S.A.AV JOAO CARLOS HOHENDORFFNR 900ARROIO DA MANTEIGA4318705SAO LEOPOLDORS931354001058BRASIL51212314001240047077318863437000114EVERTON PAULO ALVES AGROPECRUA DJALMO HAACKNR 748ALEXANDRIA4314050PAROBERS956300001058BRASIL513543402712410071133EVERTON@EVERTON.COM.BR987E10.17896803078888SAPECA PEQUENAS RACAS SC 10,1KG230990102200100015401SC20.000059.76630000001195.337896803078888SC20.000059.766300000031.911453.6501011227.2417.0000208.63472.28002114.2917.0000150.80999501195.330.00000.00011018.601.650016.81011018.607.600077.41Valor Aproximado dos Tributos - R$453.65.986E10.17896803077522SAPECA ADULTOS SC 10.1KG230990102200100015401SC15.000053.0301000000795.457896803077522SC15.000053.030100000023.931302.890101819.3817.0000139.29472.28001411.6317.0000100.6999950795.450.00000.0001680.091.650011.2201680.097.600051.69(1*) Valor Aproximado dos Tributos - R$302.89. Desconto Promocional - R$ 50,23.985E10.17896803077478SAPECA FILHOTES SC 10.1KG230990102200100015401SC15.000063.8116000000957.177896803077478SC15.000063.811600000023.931362.670101981.1017.0000166.79472.28001690.2417.0000120.5599950957.170.00000.0001814.311.650013.4401814.317.600061.89(1*) Valor Aproximado dos Tributos - R$362.67.3027.72514.710.000.005216.16372.040.000.002947.9579.770.000.000.000.000.0041.47190.990.003399.761119.21024792638000170TRANSPORTADORA DE CARGAS SAO JOAO LTDA0780107713EST. MAURICIO CARDOSO,SN - KM 08 - PASSO DA SERRAMONTENEGRORSIKB0F64RS50SCSUPRA505.000511.3004329573399.760.003399.760012023-04-19849.970022023-04-26849.930032023-05-03849.930042023-05-10849.931153399.76VENDA PET - ICMS RETIDO DE ACORDO COM PROTOCOLO 26/2004 - COMBINADO COM LIVRO III, ART. 177 - RICMS/RS // OPERACAO SUJEITA A NAO-INCIDENCIA DO IPI, PARA AS EMBALAGENS SUPERIORES A 10KG, EM FACE DE DECISAO TRANSITADA EM JULGADO NOS AUTOS DA ACAO DECLARATORIA NUMERO 2002.71.08.004673-4/RS / IPI NAO CALCULADO SOBRE O VALOR DO FRETE EM RAZAO DA DECISAO MANDADO DE SEGURANCA n. 500305287.2017.4.04.7108/RS. (1*) - Produto isento de registro junto ao Ministerio da Agricultura, Pecuaria e Abastecimento.5Pn0xv9AzYUyaW+Sd/sKNgTOdW4=Zb9fmJW+hkG2he/NJ2lV5T9EyupVeY1pcqPpQxtvV/967RYcOn16gblGtn0IsG9sEuWGVXu6BR6dK2ITmuzAu/1+/gGEAFVt8KRvNOmT/4GlVU2YMGkix+dw1YIQ87/fexyBt0CrcRsO45R4dbFC031G7RgRxXWGh2u4g1GigHwQGsff4ayDjlHNfWRY2wrFy853Ku2glFI7Zy920Mu0EDvR7LrAx+fHp/WQKPrvty0t9Z1mWYOvGFldRVOfOPIhZHMwawQIr6NHALrhHMFi+0c8ZAYBqP4z/5F3ckjHQjQ+XeBCdHceX7subS89pk+UJMUxses2OGYH3lrRn2ddZg==MIIH5zCCBc+gAwIBAgIIbPpY+mrkO98wDQYJKoZIhvcNAQELBQAwdjELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEaMBgGA1UEAxMRQUMgU0FGRVdFQiBSRkIgdjUwHhcNMjMwMjEzMTc1NzMxWhcNMjQwMjEzMTc1NzMxWjCB9zELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxCzAJBgNVBAgTAlJTMRUwEwYDVQQHEwxTQU8gTEVPUE9MRE8xNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEWMBQGA1UECxMNUkZCIGUtQ05QSiBBMTEXMBUGA1UECxMOMTg5Mjk5MjAwMDAxNTQxGTAXBgNVBAsTEHZpZGVvY29uZmVyZW5jaWExKzApBgNVBAMTIkFMSVNVTCBBTElNRU5UT1MgU0E6ODk1NDg1MjMwMDAxODAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC4hWNEvke1u4ipVBmo53QsKrBgfJx3r8JL9wONeBGl4vV1+YaL8CNi0U9+jvFRRBpH4Rqn5F1tLFLqUfHzaACqeDwU7QmokS19p7GlF3gKftP59fX8q3zIGJJYLvk/YLnqLYm3Tl94OabXulX6JvNHcejokusEPh06anGmd8JkmdZ4XGV3lNxyBId91OYucqZZUNsvo1xbG+g2hzBpNENzYI2Rz4ydWfiRZwaYATERHSd+rEHO5xf6BmFATIv0YeGFZkENaBYIkSh1d5Es058azQ6f/1YmYRKgDA4gAW6Y50Vjme55p5OLjOG1rQOcvE7MxvNZ1zpqjJ8jz97uJ8pZAgMBAAGjggL1MIIC8TAfBgNVHSMEGDAWgBQpXkvVRky7/hanY8EdxCby3djzBTAOBgNVHQ8BAf8EBAMCBeAwaQYDVR0gBGIwYDBeBgZgTAECATMwVDBSBggrBgEFBQcCARZGaHR0cDovL3JlcG9zaXRvcmlvLmFjc2FmZXdlYi5jb20uYnIvYWMtc2FmZXdlYnJmYi9kcGMtYWNzYWZld2VicmZiLnBkZjCBrgYDVR0fBIGmMIGjME+gTaBLhklodHRwOi8vcmVwb3NpdG9yaW8uYWNzYWZld2ViLmNvbS5ici9hYy1zYWZld2VicmZiL2xjci1hYy1zYWZld2VicmZidjUuY3JsMFCgTqBMhkpodHRwOi8vcmVwb3NpdG9yaW8yLmFjc2FmZXdlYi5jb20uYnIvYWMtc2FmZXdlYnJmYi9sY3ItYWMtc2FmZXdlYnJmYnY1LmNybDCBtwYIKwYBBQUHAQEEgaowgacwUQYIKwYBBQUHMAKGRWh0dHA6Ly9yZXBvc2l0b3Jpby5hY3NhZmV3ZWIuY29tLmJyL2FjLXNhZmV3ZWJyZmIvYWMtc2FmZXdlYnJmYnY1LnA3YjBSBggrBgEFBQcwAoZGaHR0cDovL3JlcG9zaXRvcmlvMi5hY3NhZmV3ZWIuY29tLmJyL2FjLXNhZmV3ZWJyZmIvYWMtc2FmZXdlYnJmYnY1LnA3YjCBvQYDVR0RBIG1MIGygRtTVVNBTkEuR0VXRUhSQEFMSVNVTC5DT00uQlKgJQYFYEwBAwKgHBMaU1VTQU5BIExVQ0UgU0NITUlUWiBHRVdFSFKgGQYFYEwBAwOgEBMOODk1NDg1MjMwMDAxODCgOAYFYEwBAwSgLxMtMjUwMzE5NzA1ODMwNTc4NTA2ODAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwoBcGBWBMAQMHoA4TDDAwMDAwMDAwMDAwMDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAgEAYmXJdFEjeGPqrlLQVF05LEW0k8bk/xIw6TRwlVjCIRlHazUVCSb/ABVxXHzmZOoBIPbq3TRkn/v1tzb04Kg2k/dxVv2tby3aKHpzjnfADW/N8Y8afUF34r9vGEIgLrtVZ/qp4ACMAQkw/A3ljSfTSA927np3kK95ncTH3jUXK4IBbZ6fotVeJaIQUe1xmxrr6PakWIUwMwS4ghGW1xdl1SF2E3JxE8eheTbctc1Q+zRYPfibvvJoSngZIS5tI93ZJCnS1+2HLcijIo0i6ikyLshDf9iRpb4mTZLHp320M5TnZ/grgzylMwvAU5fmb4qRcetHF63Catsu+UrrF1sBxtbjE8m54Z3rVhM9faa+c+Z4AHZWE7XXylyshGZq/5ULA8mLtZ3G2cZTiqvDP6uqVKdnluMRw9vnklw//jl9eNamgkWxMnemxr7GM+FDm3l9syTJm/J0qVUeqZJJQLFPO36NBppg+0yVpgXGfN2uT8a7uqn912RnHTSc9A0hJN4pKgM9WOBgqaZzDqL4eKaohkpLi02XP6JD2+tsvWJtBYNi5RZcKeZDTkGONU1nvZ6HxdMfSyVMcFOXBpexx5hc6VAuxDswvL5jColN0gfe5eOh2JVtOiFUxC/LdNsfNkwXwDp7tvCR2GdPVtEwoSgztZri5llSl+ldmcG/ya+f4n0=1RS202303091530432304895485230001805501000043295711761192312023-04-12T10:59:51-03:001432300805680745Pn0xv9AzYUyaW+Sd/sKNgTOdW4=100Autorizado o uso da NF-e\";\n final String xml3 = \"5200117912RETORNO COMB REC P/ ARMAZENAGEM551671842023-03-31T13:10:48-03:002023-03-31T13:10:48-03:00115220454112110100petrow.com.br522303442973670002755500100000918218015333855223034429736700027555001000009224169876081933047181000160DINAMICA TERMINAIS CANEDO S/ADTCAVENIDA TROPICAL0QUADRAMODULO 6-BDISTRITO INDUSTRIAL BRASIL CENTRAL5220454SENADOR CANEDOGO752517221058BRASIL6235122932107550547344297367000275WK PRODUTOS DE PETROLEO LTDAAVENIDA TROPICAL0DISTRITO INDUSTRIAL BRASIL CENTRAL5220454SENADOR CANEDOGO752517221058BRASIL62330715951109208153wkcombustiveis@gropowk.net.br58/S10 ASEM GTINS10 A 420105001271019215664L22494.921800800411069.13SEM GTINL22494.92180080041420105001OLEO DIESEL A S10GO041004540909NFE52230344297367000275550010000092241698760819 9.224/1 28/03/2023 TA: 21,0 DA: 0,8345 D20: 0,8352 FC: 0,999268/B100SEM GTINBIODIESEL 820101001382600005664L2504.63824000001159.56SEM GTINL2504.63824000001820101001BIODIESEL B100GO041004540909NFE52230344297367000275550010000091821801533385 9.182/1 27/03/2023 TA: 21,0 DA: 0,8776 D20: 0,8781 FC: 0,99920.000.000.000.000.000.000.000.000.000.000.0012228.690.000.000.000.000.000.000.000.000.0012228.690.00444297367000275WK PRODUTOS DE PETROLEO LTDA109208153AVENIDA TROPICAL, S/N DISTRITO INDUSTRIAL BRASIL CENTRALSENADOR CANEDOGOFRI3C572499GRANELDTC2097.8902097.8900900.00DECLARAMOS QUE OS PRODUTOS ESTAO ADEQUADAMENTE EMBALADOS/ACONDICIONADOS P/ SUPORTAR OS RISCOS DE CARREGAMENTO, DESCARREGAMENTO, TRANSBORDO E TRANSPORTE, CONFORME REGULAMENTACAO EM VIGOR. NAO INCIDENCIA DE ICMS, CONF. DEC. 4852/97, ART. 79, INC. I, ALINEA I RCTE-SEFAZ-GO.|002.515-03 FRI3C57 ERONICE 31/03/2325337354000157EVERTON ANTONIO RAMOSeverton@txfuel.com.br41991341456Gl2d7APkqcG4yWb3DNE8/biib7I=M5oNfVMhNTv7iGf9XZ78IQHGPKqluwzm02aF46Lu/TNSEkmDf/f++Hq3OOkzuHoKnIpViGYn7WZ7c5fGg8xGa4HEd/dU20bjDIrGmLX5VjknNeUD+0Vrv5gnokDl/T3GCa029R4jkAaaFBlD56uKdvAuc4UdoY7naMfXKyshfrTK3ojQIf5rh4lk8ocn73Ak4mfkvmIX4UhHQ8GDACRBTzYogvRiYdNprTq/U24h+xAjkuG2TMasZoit8sEKlfPVYVKIjeLgrVMk3r1lqLhHez419H6ULpAxi2zHLpIO/O8TyEDHbwpuhcjzdKWciEBcX9X1tqNi9qTxa/WX1/eWWw==MIIHhzCCBW+gAwIBAgIIZgGgHulU/BUwDQYJKoZIhvcNAQELBQAwczELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEXMBUGA1UEAxMOQUMgQ05ETCBSRkIgdjMwHhcNMjMwMzAxMjA1MjA2WhcNMjQwMzAxMjA1MjA2WjCB/TELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxCzAJBgNVBAgTAkdPMRcwFQYDVQQHEw5TRU5BRE9SIENBTkVETzEXMBUGA1UECxMOMzQxNzM2ODIwMDAzMTgxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEWMBQGA1UECxMNUkZCIGUtQ05QSiBBMTETMBEGA1UECxMKcHJlc2VuY2lhbDE1MDMGA1UEAxMsRElOQU1JQ0EgVEVSTUlOQUlTIENBTkVETyBTIEE6MzMwNDcxODEwMDAxNjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVgQZWNCYFXmIop9ib+Ir+lzkiVseJmr51p6vkEqIe1+e6u4f/UZhrolyA/BPdOv2DL+bLTppg+YF2OfRAidTmjxI3w8/9boSDCQOnSVZQ8n/MqESa/6Piyqk41O5W1m1yKABH5mm61GGbRpKP2n3XTcj0glys0MWqJBADN48Vky/0wQDSlePuxdgJ5i6IRkNTt9NKYS7M+lQUovcuO7EJ8aZeb5nhDSTeqyVT413g76GYJqU85+A5DQylHXmJC5/pNLHAt5agWhJPULob/XxO2ykWZg3/wqEZduzcD2v4o+ZNWYm6eooGW5XWfn8WAOPWFoZkyqr8XV8AWicQXothAgMBAAGjggKSMIICjjAfBgNVHSMEGDAWgBRrHzQVQRrqmx7KItLO3e+76TLKiTAOBgNVHQ8BAf8EBAMCBeAwZwYDVR0gBGAwXjBcBgZgTAECATQwUjBQBggrBgEFBQcCARZEaHR0cDovL3JlcG9zaXRvcmlvLmFjc3BjYnJhc2lsLm9yZy5ici9hYy1jbmRscmZiL2FjLWNuZGwtcmZiLWRwYy5wZGYwgaYGA1UdHwSBnjCBmzBLoEmgR4ZFaHR0cDovL3JlcG9zaXRvcmlvLmFjc3BjYnJhc2lsLm9yZy5ici9hYy1jbmRscmZiL2xjci1hYy1jbmRscmZidjUuY3JsMEygSqBIhkZodHRwOi8vcmVwb3NpdG9yaW8yLmFjc3BjYnJhc2lsLm9yZy5ici9hYy1jbmRscmZiL2xjci1hYy1jbmRscmZidjUuY3JsMF0GCCsGAQUFBwEBBFEwTzBNBggrBgEFBQcwAoZBaHR0cDovL3JlcG9zaXRvcmlvLmFjc3BjYnJhc2lsLm9yZy5ici9hYy1jbmRscmZiL2FjLWNuZGxyZmJ2NS5wN2Iwgb8GA1UdEQSBtzCBtIEcTUFVUklDSU9ARFRDVEVSTUlOQUlTLkNPTS5CUqAmBgVgTAEDAqAdExtNQVVSSUNJTyBDQU5ERUxBUklBIE1JWklBUkGgGQYFYEwBAwOgEBMOMzMwNDcxODEwMDAxNjCgOAYFYEwBAwSgLxMtMTQwNzE5OTQzOTg5MjUwMTgzNzAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwoBcGBWBMAQMHoA4TDDAwMDAwMDAwMDAwMDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwCQYDVR0TBAIwADANBgkqhkiG9w0BAQsFAAOCAgEAEJ4GQ94EPheH1zwtbzt54yKyS2QDiijNBomuY/5Vzoyv+BM6LTD8huJMBh8cglNo4XnVyMY7hyynJuYsWkoWF5bEM8xDiH/e5YJ8CdgRFSFffdPKNJQLCKYwYCT56JLAMSnr9GTV7pp0nrcUk/ALB5eljU3ZHS7NRi511nutB54NZsCVztWgytNcQfKzzQDn9KZfQ092P3sh9WmqFMfJKt1bU9OvODhntU+zRWbnTk581iWzTgcdw4Mm5Tf0HtL8JtInvMfX3g92CpqddPFT5DBVbYpl08frEX6kvsAkSwNrf2EKsfWDNFwR6ooh79LBvHE+N/em2HCZsJuCTrm1sxa2gzimHtzPlVJ0MKHJO1TedetlNG0PSlga5z/PfO5nERNHblIIO8lciFhM3EHfMbU3U+Fondv5qDukDM+GXSOHvHKe2RNT49q4XG1xlF20T2Sr+PXJ6TaNqHC2c8cJoJKNSSFiP61BRls9coKDTK8lRKwjbn5fDtd2RRmWvqiRR5MZZPY+eqY0jxYUPgKHHCg/k8ytSDDcvILMY0PUjckl18Q221W/A8RT1+igT8yMjtfDCvtCjwvjGHP3hIGkhFRgTf1f4QYiYdBJXFOFvjAhubcmDgT95mhDXvVo1ZEyteah/NHeQzVG5l9VzN6RgKXMqqMR/RvU2vx501aiyFo=1GO4.0522303330471810001605500100006718410011791222023-03-31T13:10:51-03:00152236143080702Gl2d7APkqcG4yWb3DNE8/biib7I=100Autorizado o uso da NF-e\";\n final Validar validar = new Validar();\n assertEquals(true, validar.isValidXml(\"schemas\", xml1, ServicosEnum.PROC));\n assertEquals(true, validar.isValidXml(\"schemas\", xml2, ServicosEnum.PROC));\n assertEquals(true, validar.isValidXml(\"schemas\", xml3, ServicosEnum.PROC));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-30"], "old_production_code": "", "new_production_code": "public boolean isValidXml(String pastaSchemas, String xml, ServicosEnum servico) {\n return isValidXml(pastaSchemas + System.getProperty(\"file.separator\") + servico.getXsd(), xml);\n}", "focal_file_path": "src/main/java/br/com/swconsultoria/nfe/Validar.java", "focal_method_sign": "br/com/swconsultoria/nfe/Validar.isValidXml:(Ljava/lang/String;Ljava/lang/String;Lbr/com/swconsultoria/nfe/dom/enuns/ServicosEnum;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "br/com/swconsultoria/nfe/Validar.isValidXml:(Ljava/lang/String;Ljava/lang/String;Lbr/com/swconsultoria/nfe/dom/enuns/ServicosEnum;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/Validar.java", "line_nums_new": "22-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1407, "method_coverage_gold": 0.0738, "line_coverage_gold": 0.1713, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["br/com/swconsultoria/nfe/Validar.isValidXml:(Ljava/lang/String;Ljava/lang/String;Lbr/com/swconsultoria/nfe/dom/enuns/ServicosEnum;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "br/com/swconsultoria/nfe/Validar.isValidXml:(Ljava/lang/String;Ljava/lang/String;Lbr/com/swconsultoria/nfe/dom/enuns/ServicosEnum;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/br/com/swconsultoria/nfe/Validar.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v4.00.42", "java_version": 8} {"task_id": "Stratio_cassandra-lucene-index-3.11.3.0__143e96a_447a7e3__DateParserTest_b00025b3", "project_name": "Stratio_cassandra-lucene-index-3.11.3.0", "git_clone_url": "https://github.com/Stratio/cassandra-lucene-index.git", "rev1": "143e96a95a4a772e265f853d25f30c15e6caa32f", "rev2": "447a7e3925b44c31c735fbe70e7396aaffc6ce4b", "rev1_date": "2016-06-30T13:13:56Z", "rev2_date": "2016-06-30T15:59:45Z", "git_diff_url": "https://github.com/Stratio/cassandra-lucene-index/compare/143e96a95a4a772e265f853d25f30c15e6caa32f...447a7e3925b44c31c735fbe70e7396aaffc6ce4b", "test_file": "plugin/src/test/java/com/stratio/cassandra/lucene/util/DateParserTest.java", "test_changes": [{"change_id": "2544_Stratio_cassandra-lucene-index-3.11.3.0_143e96a_447a7e3_DateParserTest", "test_sign": "com/stratio/cassandra/lucene/util/DateParserTest.testParseColumnSimpleDateTimestampPattern:()V", "class": "DateParserTest", "method": "testParseColumnSimpleDateTimestampPattern", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.DateParserTest#testParseColumnSimpleDateTimestampPattern", "old_test_code": null, "new_test_code": "@Test\npublic void testParseColumnSimpleDateTimestampPattern() {\n String pattern = \"timestamp\";\n DateParser parser = new DateParser(pattern);\n ByteBuffer bb = SimpleDateType.instance.fromString(\"2015-10-10\");\n Column column = Column.builder(\"date\").buildWithDecomposed(bb, SimpleDateType.instance);\n Date actualDate = parser.parse(column);\n Date expectedDate = parser.parse(1444435200000L);\n assertEquals(\"Date parser fails with SimpleDateType and timestamp pattern\", expectedDate, actualDate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["189-198"], "old_production_code": "", "new_production_code": "public Date parse(Column column) {\n if (column.getType() instanceof SimpleDateType) {\n long timestamp = SimpleDateType.instance.toTimeInMillis(column.getDecomposedValue());\n if (concurrentDateFormat == null) {\n return new Date(timestamp);\n } else {\n int offset = concurrentDateFormat.get().getTimeZone().getOffset(timestamp);\n return new Date(timestamp - offset);\n }\n } else {\n return parse(column.getComposedValue());\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "line_nums_new": "82-94", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4482758620689655, "branch_coverage_gold": 0.656, "method_coverage_gold": 1.0554, "line_coverage_gold": 1.0132, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "com/stratio/cassandra/lucene/column/Column.builder:(Ljava/lang/String;)Lcom/stratio/cassandra/lucene/column/ColumnBuilder", "com/stratio/cassandra/lucene/util/DateParser.parse:(Ljava/lang/Object;)Ljava/util/Date", "com/stratio/cassandra/lucene/column/ColumnBuilder.buildWithDecomposed:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lcom/stratio/cassandra/lucene/column/Column"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2545_Stratio_cassandra-lucene-index-3.11.3.0_143e96a_447a7e3_DateParserTest", "test_sign": "com/stratio/cassandra/lucene/util/DateParserTest.testParseColumnSimpleDateDifferentPattern:()V", "class": "DateParserTest", "method": "testParseColumnSimpleDateDifferentPattern", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.DateParserTest#testParseColumnSimpleDateDifferentPattern", "old_test_code": null, "new_test_code": "@Test\npublic void testParseColumnSimpleDateDifferentPattern() {\n String pattern = \"yyyy/MM/dd\";\n DateParser parser = new DateParser(pattern);\n ByteBuffer bb = SimpleDateType.instance.fromString(\"2015-10-10\");\n Column column = Column.builder(\"date\").buildWithDecomposed(bb, SimpleDateType.instance);\n Date actualDate = parser.parse(column);\n Date expectedDate = parser.parse(\"2015/10/10\");\n assertEquals(\"Date parser fails with SimpleDateType and different pattern\", expectedDate, actualDate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["178-187"], "old_production_code": "", "new_production_code": "public Date parse(Column column) {\n if (column.getType() instanceof SimpleDateType) {\n long timestamp = SimpleDateType.instance.toTimeInMillis(column.getDecomposedValue());\n if (concurrentDateFormat == null) {\n return new Date(timestamp);\n } else {\n int offset = concurrentDateFormat.get().getTimeZone().getOffset(timestamp);\n return new Date(timestamp - offset);\n }\n } else {\n return parse(column.getComposedValue());\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "line_nums_new": "82-94", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5172413793103449, "branch_coverage_gold": 0.7289, "method_coverage_gold": 1.3193, "line_coverage_gold": 1.1651, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "com/stratio/cassandra/lucene/column/Column.builder:(Ljava/lang/String;)Lcom/stratio/cassandra/lucene/column/ColumnBuilder", "com/stratio/cassandra/lucene/util/DateParser.parse:(Ljava/lang/Object;)Ljava/util/Date", "com/stratio/cassandra/lucene/column/ColumnBuilder.buildWithDecomposed:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lcom/stratio/cassandra/lucene/column/Column"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2546_Stratio_cassandra-lucene-index-3.11.3.0_143e96a_447a7e3_DateParserTest", "test_sign": "com/stratio/cassandra/lucene/util/DateParserTest.testParseColumnSimpleDateSamePattern:()V", "class": "DateParserTest", "method": "testParseColumnSimpleDateSamePattern", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.DateParserTest#testParseColumnSimpleDateSamePattern", "old_test_code": null, "new_test_code": "@Test\npublic void testParseColumnSimpleDateSamePattern() {\n String pattern = \"yyyy-MM-dd\";\n DateParser parser = new DateParser(pattern);\n ByteBuffer bb = SimpleDateType.instance.fromString(\"2015-10-10\");\n Column column = Column.builder(\"date\").buildWithDecomposed(bb, SimpleDateType.instance);\n Date actualDate = parser.parse(column);\n Date expectedDate = parser.parse(\"2015-10-10\");\n assertEquals(\"Date parser fails with SimpleDateType and default pattern\", expectedDate, actualDate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["167-176"], "old_production_code": "", "new_production_code": "public Date parse(Column column) {\n if (column.getType() instanceof SimpleDateType) {\n long timestamp = SimpleDateType.instance.toTimeInMillis(column.getDecomposedValue());\n if (concurrentDateFormat == null) {\n return new Date(timestamp);\n } else {\n int offset = concurrentDateFormat.get().getTimeZone().getOffset(timestamp);\n return new Date(timestamp - offset);\n }\n } else {\n return parse(column.getComposedValue());\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "line_nums_new": "82-94", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.7289, "method_coverage_gold": 1.3193, "line_coverage_gold": 1.1651, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "com/stratio/cassandra/lucene/util/DateParser.parse:(Ljava/lang/Object;)Ljava/util/Date", "com/stratio/cassandra/lucene/column/ColumnBuilder.buildWithDecomposed:(Ljava/nio/ByteBuffer;Lorg/apache/cassandra/db/marshal/AbstractType;)Lcom/stratio/cassandra/lucene/column/Column"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/DateParser.parse:(Lcom/stratio/cassandra/lucene/column/Column;)Ljava/util/Date", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/DateParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.11.3.0", "java_version": 8} {"task_id": "Stratio_cassandra-lucene-index-3.11.3.0__5b87cd7_0c8a247__GeoTransformationConvexHullTest_01f3ea72", "project_name": "Stratio_cassandra-lucene-index-3.11.3.0", "git_clone_url": "https://github.com/Stratio/cassandra-lucene-index.git", "rev1": "5b87cd77b64c660269357c85a916be4d7d692c1d", "rev2": "0c8a247878843bf84a89488aad9a5bedcb483b23", "rev1_date": "2016-05-09T12:07:44Z", "rev2_date": "2016-05-09T15:16:45Z", "git_diff_url": "https://github.com/Stratio/cassandra-lucene-index/compare/5b87cd77b64c660269357c85a916be4d7d692c1d...0c8a247878843bf84a89488aad9a5bedcb483b23", "test_file": "plugin/src/test/java/com/stratio/cassandra/lucene/search/condition/GeoTransformationConvexHullTest.java", "test_changes": [{"change_id": "2548_Stratio_cassandra-lucene-index-3.11.3.0_5b87cd7_0c8a247_GeoTransformationConvexHullTest", "test_sign": "com/stratio/cassandra/lucene/search/condition/GeoTransformationConvexHullTest.testConvexHullTransformationToString:()V", "class": "GeoTransformationConvexHullTest", "method": "testConvexHullTransformationToString", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.search.condition.GeoTransformationConvexHullTest#testConvexHullTransformationToString", "old_test_code": null, "new_test_code": "@Test\npublic void testConvexHullTransformationToString() {\n GeoTransformation transformation = new ConvexHull();\n assertEquals(\"ConvexHull{}\", transformation.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["97-101"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return MoreObjects.toStringHelper(this).toString();\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/common/GeoTransformation.java", "focal_method_sign": "com/stratio/cassandra/lucene/common/GeoTransformation$ConvexHull.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/common/GeoTransformation$ConvexHull.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/common/GeoTransformation.java", "line_nums_new": "181-184", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.045454545454545456, "branch_coverage_gold": 0.0, "method_coverage_gold": 4.4204, "line_coverage_gold": 1.3549, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/common/GeoTransformation$ConvexHull.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/common/GeoTransformation$ConvexHull.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/common/GeoTransformation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.11.3.0", "java_version": 8} {"task_id": "Stratio_cassandra-lucene-index-3.11.3.0__625262a_1fc1e6a__ByteBufferUtilsTest_1a244a03", "project_name": "Stratio_cassandra-lucene-index-3.11.3.0", "git_clone_url": "https://github.com/Stratio/cassandra-lucene-index.git", "rev1": "625262aed7771b6a8204c3e6a63ce1d99ee4255b", "rev2": "1fc1e6a4aa8584b544b0d67613b439be7913f8c0", "rev1_date": "2016-06-02T10:13:19Z", "rev2_date": "2016-06-02T19:41:42Z", "git_diff_url": "https://github.com/Stratio/cassandra-lucene-index/compare/625262aed7771b6a8204c3e6a63ce1d99ee4255b...1fc1e6a4aa8584b544b0d67613b439be7913f8c0", "test_file": "plugin/src/test/java/com/stratio/cassandra/lucene/util/ByteBufferUtilsTest.java", "test_changes": [{"change_id": "2536_Stratio_cassandra-lucene-index-3.11.3.0_625262a_1fc1e6a_ByteBufferUtilsTest", "test_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtilsTest.testComposeDecomposeEmpty:()V", "class": "ByteBufferUtilsTest", "method": "testComposeDecomposeEmpty", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.ByteBufferUtilsTest#testComposeDecomposeEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void testComposeDecomposeEmpty() {\n ByteBuffer[] bbs = ByteBufferUtils.decompose(ByteBufferUtils.compose());\n assertEquals(\"Compose-decompose with empty components is wrong\", 0, bbs.length);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-104"], "old_production_code": "", "new_production_code": "public static ByteBuffer[] decompose(ByteBuffer bb) {\n int countComponents = ByteBufferUtil.readShortLength(bb);\n ByteBuffer[] components = new ByteBuffer[countComponents];\n for (int i = 0; i < countComponents; i++) {\n int length = ByteBufferUtil.readShortLength(bb);\n components[i] = ByteBufferUtil.readBytes(bb, length);\n }\n return components;\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "line_nums_new": "203-214", "dependency_updated": "inserted", "score": 0.4728, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4286, "class": 1.0, "tfidf": 0.1593}}, {"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "line_nums_new": "181-195", "dependency_updated": "inserted", "score": 0.4568, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1583}}], "coverage_gold": 0.7, "branch_coverage_gold": 0.2304, "method_coverage_gold": 0.1813, "line_coverage_gold": 0.2863, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2537_Stratio_cassandra-lucene-index-3.11.3.0_625262a_1fc1e6a_ByteBufferUtilsTest", "test_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtilsTest.testComposeDecompose:()V", "class": "ByteBufferUtilsTest", "method": "testComposeDecompose", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.ByteBufferUtilsTest#testComposeDecompose", "old_test_code": null, "new_test_code": "@Test\npublic void testComposeDecompose() {\n ByteBuffer[] bbs = ByteBufferUtils.decompose(ByteBufferUtils.compose(UTF8Type.instance.decompose(\"test\"), Int32Type.instance.decompose(999), BooleanType.instance.decompose(true)));\n assertEquals(\"Compose-decompose is wrong\", 3, bbs.length);\n assertEquals(\"Compose-decompose is wrong\", \"test\", UTF8Type.instance.compose(bbs[0]));\n assertEquals(\"Compose-decompose is wrong\", 999, Int32Type.instance.compose(bbs[1]), 0);\n assertEquals(\"Compose-decompose is wrong\", true, BooleanType.instance.compose(bbs[2]));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-98"], "old_production_code": "", "new_production_code": "public static ByteBuffer[] decompose(ByteBuffer bb) {\n int countComponents = ByteBufferUtil.readShortLength(bb);\n ByteBuffer[] components = new ByteBuffer[countComponents];\n for (int i = 0; i < countComponents; i++) {\n int length = ByteBufferUtil.readShortLength(bb);\n components[i] = ByteBufferUtil.readBytes(bb, length);\n }\n return components;\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "line_nums_new": "203-214", "dependency_updated": "inserted", "score": 0.4715, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5625, "class": 1.0, "tfidf": 0.0602}}, {"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "line_nums_new": "181-195", "dependency_updated": "inserted", "score": 0.4604, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4375, "class": 1.0, "tfidf": 0.1005}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4608, "method_coverage_gold": 0.1813, "line_coverage_gold": 0.4164, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.compose:([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/stratio/cassandra/lucene/util/ByteBufferUtils.decompose:(Ljava/nio/ByteBuffer;)[Ljava/nio/ByteBuffer", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/ByteBufferUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.11.3.0", "java_version": 8} {"task_id": "Stratio_cassandra-lucene-index-3.11.3.0__6a2ce63_d74ffde__GeospatialUtilsJTSTest_584fc2c0", "project_name": "Stratio_cassandra-lucene-index-3.11.3.0", "git_clone_url": "https://github.com/Stratio/cassandra-lucene-index.git", "rev1": "6a2ce630d1ea5a1370d4bb0f6f561ee46c84c000", "rev2": "d74ffdea3c2455b450d3c0415b95dd69ab6c998d", "rev1_date": "2016-05-06T14:01:20Z", "rev2_date": "2016-05-06T16:22:02Z", "git_diff_url": "https://github.com/Stratio/cassandra-lucene-index/compare/6a2ce630d1ea5a1370d4bb0f6f561ee46c84c000...d74ffdea3c2455b450d3c0415b95dd69ab6c998d", "test_file": "plugin/src/test/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.java", "test_changes": [{"change_id": "2557_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTPolygon:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTPolygon", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTPolygon", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTPolygon() throws Exception {\n String wkt = \"LINESTRING (30 10, 10 30, 40 40)\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT polygon\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-53"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2558_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTPoint:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTPoint", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTPoint", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTPoint() throws Exception {\n String wkt = \"POINT (30.01 -10.7)\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT point\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-39"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2559_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTSelfIntersectingPolygon:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTSelfIntersectingPolygon", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTSelfIntersectingPolygon", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTSelfIntersectingPolygon() throws Exception {\n String wkt = \"POLYGON((5 0, 10 0, 10 10, 0 10, 0 0, 5 0, 3 3, 5 6, 7 3, 5 0))\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse invalid WKT shape\", \"POLYGON ((5 0, 0 0, 0 10, 10 10, 10 0, 5 0), (5 0, 7 3, 5 6, 3 3, 5 0))\", geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-83"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.2072, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2560_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTMultipolygon:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTMultipolygon", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTMultipolygon", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTMultipolygon() throws Exception {\n String wkt = \"MULTIPOLYGON (((30 20, 45 40, 10 40, 30 20)), ((15 5, 40 10, 10 20, 5 10, 15 5)))\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT multipolygon\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-74"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2561_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTLine:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTLine", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTLine", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTLine() throws Exception {\n String wkt = \"LINESTRING (30 10, 10 30, 40 40)\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT line\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-46"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2562_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTMultiline:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTMultiline", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTMultiline", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTMultiline() throws Exception {\n String wkt = \"MULTILINESTRING ((10 10, 20 20, 10 40), (40 40, 30 30, 40 20, 30 10))\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT multiline\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-67"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2563_Stratio_cassandra-lucene-index-3.11.3.0_6a2ce63_d74ffde_GeospatialUtilsJTSTest", "test_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTSTest.testParseWKTMultipoint:()V", "class": "GeospatialUtilsJTSTest", "method": "testParseWKTMultipoint", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.util.GeospatialUtilsJTSTest#testParseWKTMultipoint", "old_test_code": null, "new_test_code": "@Test\npublic void testParseWKTMultipoint() throws Exception {\n String wkt = \"MULTIPOINT ((10 40), (40 30), (20 20), (30 10))\";\n JtsGeometry geometry = geometryFromWKT(CONTEXT, wkt);\n assertEquals(\"Unable to parse WKT multipoint\", wkt, geometry.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-60"], "old_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "new_production_code": "public static JtsGeometry geometryFromWKT(JtsSpatialContext context, String string) {\n if (StringUtils.isBlank(string)) {\n throw new IndexException(\"Shape shouldn't be blank\");\n }\n try {\n GeometryFactory geometryFactory = context.getGeometryFactory();\n WKTReader reader = new WKTReader(geometryFactory);\n Geometry geometry = reader.read(string);\n if (!geometry.isValid()) {\n geometry = geometry.buffer(0);\n }\n return context.makeShape(geometry);\n } catch (ParseException | IllegalArgumentException e) {\n throw new IndexException(e, \"Shape '%s' is not parseable\", string);\n }\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "focal_method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_old": "46-58", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "line_nums_new": "46-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.1876, "method_coverage_gold": 0.0982, "line_coverage_gold": 0.1776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.geometryFromWKT:(Lcom/spatial4j/core/context/jts/JtsSpatialContext;Ljava/lang/String;)Lcom/spatial4j/core/shape/jts/JtsGeometry", "change_type": "UPDATE", "file_path_old": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/util/GeospatialUtilsJTS.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.11.3.0", "java_version": 8} {"task_id": "Stratio_cassandra-lucene-index-3.11.3.0__8a48b5b_3f3c14e__LuceneConditionTest_8f0d372c", "project_name": "Stratio_cassandra-lucene-index-3.11.3.0", "git_clone_url": "https://github.com/Stratio/cassandra-lucene-index.git", "rev1": "8a48b5bc6b3e94e21b7213b0c90394abf35d3754", "rev2": "3f3c14ec7f1b8846e73623ad5b98ff6e1aeaa395", "rev1_date": "2016-06-03T09:07:34Z", "rev2_date": "2016-06-03T12:17:46Z", "git_diff_url": "https://github.com/Stratio/cassandra-lucene-index/compare/8a48b5bc6b3e94e21b7213b0c90394abf35d3754...3f3c14ec7f1b8846e73623ad5b98ff6e1aeaa395", "test_file": "plugin/src/test/java/com/stratio/cassandra/lucene/search/condition/LuceneConditionTest.java", "test_changes": [{"change_id": "2540_Stratio_cassandra-lucene-index-3.11.3.0_8a48b5b_3f3c14e_LuceneConditionTest", "test_sign": "com/stratio/cassandra/lucene/search/condition/LuceneConditionTest.testInvolvedFields:()V", "class": "LuceneConditionTest", "method": "testInvolvedFields", "module": "plugin", "junit_selector": "com.stratio.cassandra.lucene.search.condition.LuceneConditionTest#testInvolvedFields", "old_test_code": null, "new_test_code": "@Test\npublic void testInvolvedFields() {\n assertEquals(\"Involved fields is wrong\", Sets.newHashSet(\"f0\", \"f1\", \"f2\"), lucene(\"f1:3 \\t AND f2:\").defaultField(\"f0\").build().involvedFields());\n assertEquals(\"Involved fields is wrong with default field\", Sets.newHashSet(LuceneCondition.DEFAULT_FIELD), lucene(\"f1 f2\").build().involvedFields());\n assertEquals(\"Involved fields is wrong with complex expressions\", Sets.newHashSet(LuceneCondition.DEFAULT_FIELD, \"date\"), lucene(\"\\\"jakarta apache\\\"^4 date:[20020101 TO 20030101]\").build().involvedFields());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-105"], "old_production_code": "", "new_production_code": "public Set involvedFields() {\n Set fields = new LinkedHashSet<>();\n if (!StringUtils.isBlank(defaultField)) {\n fields.add(defaultField);\n }\n for (String term : query.split(\"[ ]\")) {\n if (term.contains(\":\")) {\n fields.add(term.split(\":\")[0]);\n }\n }\n return fields;\n}", "focal_file_path": "plugin/src/main/java/com/stratio/cassandra/lucene/search/condition/LuceneCondition.java", "focal_method_sign": "com/stratio/cassandra/lucene/search/condition/LuceneCondition.involvedFields:()Ljava/util/Set", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/stratio/cassandra/lucene/search/condition/LuceneCondition.involvedFields:()Ljava/util/Set", "file_path_old": null, "line_nums_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/search/condition/LuceneCondition.java", "line_nums_new": "70-81", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6051, "method_coverage_gold": 0.8029, "line_coverage_gold": 0.6187, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/stratio/cassandra/lucene/search/condition/builder/LuceneConditionBuilder.build:()Lcom/stratio/cassandra/lucene/search/condition/LuceneCondition", "com/stratio/cassandra/lucene/search/condition/LuceneCondition.involvedFields:()Ljava/util/Set", "com/stratio/cassandra/lucene/search/SearchBuilders.lucene:(Ljava/lang/String;)Lcom/stratio/cassandra/lucene/search/condition/builder/LuceneConditionBuilder", "com/stratio/cassandra/lucene/search/condition/builder/LuceneConditionBuilder.defaultField:(Ljava/lang/String;)Lcom/stratio/cassandra/lucene/search/condition/builder/LuceneConditionBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/stratio/cassandra/lucene/search/condition/LuceneCondition.involvedFields:()Ljava/util/Set", "change_type": "ADD", "file_path_old": null, "file_path_new": "plugin/src/main/java/com/stratio/cassandra/lucene/search/condition/LuceneCondition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.11.3.0", "java_version": 8} {"task_id": "actiontech_dble-3.22.01.7-tag__e8351ec_be39201__RouterUtilTest_5a2e025a", "project_name": "actiontech_dble-3.22.01.7-tag", "git_clone_url": "https://github.com/actiontech/dble.git", "rev1": "e8351ec9cf0843d103573ba2bf8c22bb3e0695ae", "rev2": "be392018102f14225d3a730800362962353533a6", "rev1_date": "2022-03-29T01:43:15Z", "rev2_date": "2022-03-29T05:18:58Z", "git_diff_url": "https://github.com/actiontech/dble/compare/e8351ec9cf0843d103573ba2bf8c22bb3e0695ae...be392018102f14225d3a730800362962353533a6", "test_file": "src/test/java/com/actiontech/dble/route/util/RouterUtilTest.java", "test_changes": [{"change_id": "661_actiontech_dble-3.22.01.7-tag_e8351ec_be39201_RouterUtilTest", "test_sign": "com/actiontech/dble/route/util/RouterUtilTest.testRemoveSchema14:()V", "class": "RouterUtilTest", "method": "testRemoveSchema14", "module": "", "junit_selector": "com.actiontech.dble.route.util.RouterUtilTest#testRemoveSchema14", "old_test_code": null, "new_test_code": "@Test\npublic void testRemoveSchema14() {\n String sql = \"select `t_order`.`brand`,DATE_FORMAT(order_date, '%H:%i') as `time`,count(1) as `_$COUNT$_rpda_0`,\" + \"DATE_FORMAT(t_order.order_date, '%H:%i') as `rpda_1` from `t_order` where ( `t_order`.`brand` = 'hjh' \" + \"AND `t_order`.`order_date` > '2022-03-26 11:30:00' AND `t_order`.`order_date` < '2022-03-26:11:40:00') \" + \"GROUP BY `t_order`.`brand`,DATE_FORMAT(order_date, '%H:%i') ORDER BY `t_order`.`brand` ASC,rpda_1 ASC\";\n String afterAql = RouterUtil.removeSchema(sql, \"order\", true);\n Assert.assertEquals(sql, afterAql);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["139-147"], "old_production_code": "public static String removeSchema(String stmt, String schema, boolean isLowerCase) {\n final String forCmpStmt = isLowerCase ? stmt.toLowerCase() : stmt;\n final String maySchema1 = schema + \".\";\n final String maySchema2 = \"`\" + schema + \"`.\";\n int index1 = forCmpStmt.indexOf(maySchema1);\n int index2 = forCmpStmt.indexOf(maySchema2);\n if (index1 < 0 && index2 < 0) {\n return stmt;\n }\n int startPos = 0;\n boolean flag;\n int firstE = forCmpStmt.indexOf(\"'\");\n int endE = forCmpStmt.lastIndexOf(\"'\");\n StringBuilder result = new StringBuilder();\n while (index1 >= 0 || index2 >= 0) {\n if (index1 < 0) {\n flag = true;\n } else if (index2 < 0) {\n flag = false;\n } else {\n flag = index2 < index1;\n }\n if (flag) {\n result.append(stmt, startPos, index2);\n startPos = index2 + maySchema2.length();\n if (index2 > firstE && index2 < endE && countChar(stmt, index2) % 2 != 0) {\n result.append(stmt, index2, startPos);\n }\n index2 = forCmpStmt.indexOf(maySchema2, startPos);\n } else {\n result.append(stmt, startPos, index1);\n startPos = index1 + maySchema1.length();\n if (index1 > firstE && index1 < endE && countChar(stmt, index1) % 2 != 0) {\n result.append(stmt, index1, startPos);\n }\n index1 = forCmpStmt.indexOf(maySchema1, startPos);\n }\n }\n result.append(stmt.substring(startPos));\n return result.toString();\n}", "new_production_code": "public static String removeSchema(String stmt, String schema, boolean isLowerCase) {\n final String forCmpStmt = isLowerCase ? stmt.toLowerCase() : stmt;\n final String maySchema1 = schema + \".\";\n final String maySchema2 = \"`\" + schema + \"`.\";\n int index1 = forCmpStmt.indexOf(maySchema1);\n int index2 = forCmpStmt.indexOf(maySchema2);\n if (index1 < 0 && index2 < 0) {\n return stmt;\n }\n if (!checkPrefix(forCmpStmt, index1)) {\n index1 = -1;\n }\n if (!checkPrefix(forCmpStmt, index2)) {\n index2 = -1;\n }\n int startPos = 0;\n boolean flag;\n int firstE = forCmpStmt.indexOf(\"'\");\n int endE = forCmpStmt.lastIndexOf(\"'\");\n StringBuilder result = new StringBuilder();\n while (index1 >= 0 || index2 >= 0) {\n if (index1 < 0) {\n flag = true;\n } else if (index2 < 0) {\n flag = false;\n } else {\n flag = index2 < index1;\n }\n if (flag) {\n result.append(stmt, startPos, index2);\n startPos = index2 + maySchema2.length();\n if (index2 > firstE && index2 < endE && countChar(stmt, index2) % 2 != 0) {\n result.append(stmt, index2, startPos);\n }\n index2 = recursionIndexOf(forCmpStmt, maySchema2, startPos);\n } else {\n result.append(stmt, startPos, index1);\n startPos = index1 + maySchema1.length();\n if (index1 > firstE && index1 < endE && countChar(stmt, index1) % 2 != 0) {\n result.append(stmt, index1, startPos);\n }\n index1 = recursionIndexOf(forCmpStmt, maySchema1, startPos);\n }\n }\n result.append(stmt.substring(startPos));\n return result.toString();\n}", "focal_file_path": "src/main/java/com/actiontech/dble/route/util/RouterUtil.java", "focal_method_sign": "com/actiontech/dble/route/util/RouterUtil.removeSchema:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/actiontech/dble/route/util/RouterUtil.removeSchema:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": "src/main/java/com/actiontech/dble/route/util/RouterUtil.java", "line_nums_old": "82-123", "file_path_new": "src/main/java/com/actiontech/dble/route/util/RouterUtil.java", "line_nums_new": "82-132", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.0227, "method_coverage_gold": 0.016, "line_coverage_gold": 0.0236, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/actiontech/dble/route/util/RouterUtil.removeSchema:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/actiontech/dble/route/util/RouterUtil.removeSchema:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/actiontech/dble/route/util/RouterUtil.java", "file_path_new": "src/main/java/com/actiontech/dble/route/util/RouterUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "3.22.01.7/tag", "java_version": 11} {"task_id": "aleksandr-m_gitflow-maven-plugin-v1.21.0__866c731_6687f44__GitFlowVersionInfoTest_b4115413", "project_name": "aleksandr-m_gitflow-maven-plugin-v1.21.0", "git_clone_url": "https://github.com/aleksandr-m/gitflow-maven-plugin.git", "rev1": "866c731615f9e07857111511bf187791071cb210", "rev2": "6687f4415e93a6cbee5fb91312a60366283ec65e", "rev1_date": "2017-06-26T16:57:54Z", "rev2_date": "2017-06-26T17:06:25Z", "git_diff_url": "https://github.com/aleksandr-m/gitflow-maven-plugin/compare/866c731615f9e07857111511bf187791071cb210...6687f4415e93a6cbee5fb91312a60366283ec65e", "test_file": "src/test/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.java", "test_changes": [{"change_id": "22_aleksandr-m_gitflow-maven-plugin-v1.21.0_866c731_6687f44_GitFlowVersionInfoTest", "test_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.testDigitsVersionInfo2:()V", "class": "GitFlowVersionInfoTest", "method": "testDigitsVersionInfo2", "module": "", "junit_selector": "com.amashchenko.maven.plugin.gitflow.GitFlowVersionInfoTest#testDigitsVersionInfo2", "old_test_code": null, "new_test_code": "@Test\npublic void testDigitsVersionInfo2() throws Exception {\n GitFlowVersionInfo info = new GitFlowVersionInfo(\"0.9-RC3-feature-SNAPSHOT\");\n Assert.assertNotNull(info);\n info = info.digitsVersionInfo();\n Assert.assertNotNull(info);\n Assert.assertEquals(new GitFlowVersionInfo(\"0.9\"), info);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["87-95"], "old_production_code": "", "new_production_code": "public GitFlowVersionInfo digitsVersionInfo() throws VersionParseException {\n return new GitFlowVersionInfo(joinDigitString(getDigits()));\n}", "focal_file_path": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "focal_method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.6949, "line_coverage_gold": 0.3003, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "23_aleksandr-m_gitflow-maven-plugin-v1.21.0_866c731_6687f44_GitFlowVersionInfoTest", "test_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.testDigitsVersionInfo:()V", "class": "GitFlowVersionInfoTest", "method": "testDigitsVersionInfo", "module": "", "junit_selector": "com.amashchenko.maven.plugin.gitflow.GitFlowVersionInfoTest#testDigitsVersionInfo", "old_test_code": null, "new_test_code": "@Test\npublic void testDigitsVersionInfo() throws Exception {\n GitFlowVersionInfo info = new GitFlowVersionInfo(\"0.9\");\n Assert.assertNotNull(info);\n info = info.digitsVersionInfo();\n Assert.assertNotNull(info);\n Assert.assertEquals(new GitFlowVersionInfo(\"0.9\"), info);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-85"], "old_production_code": "", "new_production_code": "public GitFlowVersionInfo digitsVersionInfo() throws VersionParseException {\n return new GitFlowVersionInfo(joinDigitString(getDigits()));\n}", "focal_file_path": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "focal_method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.6949, "line_coverage_gold": 0.3003, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.digitsVersionInfo:()Lcom/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.21.0", "java_version": 8} {"task_id": "aleksandr-m_gitflow-maven-plugin-v1.21.0__d2dfaeb_7482fdb__GitFlowVersionInfoTest_dedca2b9", "project_name": "aleksandr-m_gitflow-maven-plugin-v1.21.0", "git_clone_url": "https://github.com/aleksandr-m/gitflow-maven-plugin.git", "rev1": "d2dfaebb57d6ace09903ff8c7e9cd9c6af27100f", "rev2": "7482fdb5b64c2210fb5eadb5f90fb30c9163e517", "rev1_date": "2022-01-08T07:40:19Z", "rev2_date": "2022-01-08T12:31:29Z", "git_diff_url": "https://github.com/aleksandr-m/gitflow-maven-plugin/compare/d2dfaebb57d6ace09903ff8c7e9cd9c6af27100f...7482fdb5b64c2210fb5eadb5f90fb30c9163e517", "test_file": "src/test/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.java", "test_changes": [{"change_id": "24_aleksandr-m_gitflow-maven-plugin-v1.21.0_d2dfaeb_7482fdb_GitFlowVersionInfoTest", "test_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.testWithoutVersionPolicy:()V", "class": "GitFlowVersionInfoTest", "method": "testWithoutVersionPolicy", "module": "", "junit_selector": "com.amashchenko.maven.plugin.gitflow.GitFlowVersionInfoTest#testWithoutVersionPolicy", "old_test_code": null, "new_test_code": "@Test\npublic void testWithoutVersionPolicy() throws Exception {\n GitFlowVersionInfo info1 = new GitFlowVersionInfo(\"1.0.0-SNAPSHOT\", null);\n Assert.assertEquals(\"1.0.0\", info1.getReleaseVersionString());\n Assert.assertEquals(\"1.0.1-SNAPSHOT\", info1.nextSnapshotVersion());\n GitFlowVersionInfo info2 = new GitFlowVersionInfo(\"1.0.1-SNAPSHOT\", null);\n Assert.assertEquals(\"1.0.1\", info2.getReleaseVersionString());\n Assert.assertEquals(\"1.0.2-SNAPSHOT\", info2.nextSnapshotVersion());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-107"], "old_production_code": "", "new_production_code": "@Override\npublic String getReleaseVersionString() {\n if (versionPolicy != null) {\n try {\n VersionPolicyRequest request = new VersionPolicyRequest().setVersion(this.toString());\n return versionPolicy.getReleaseVersion(request).getVersion();\n } catch (PolicyException | VersionParseException ex) {\n throw new RuntimeException(\"Unable to get release version from policy.\", ex);\n }\n }\n return super.getReleaseVersionString();\n}", "focal_file_path": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "focal_method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "line_nums_new": "67-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.42857142857142855, "branch_coverage_gold": 0.6443, "method_coverage_gold": 2.8249, "line_coverage_gold": 0.9485, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.nextSnapshotVersion:()Ljava/lang/String", "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "25_aleksandr-m_gitflow-maven-plugin-v1.21.0_d2dfaeb_7482fdb_GitFlowVersionInfoTest", "test_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfoTest.testWithVersionPolicy:()V", "class": "GitFlowVersionInfoTest", "method": "testWithVersionPolicy", "module": "", "junit_selector": "com.amashchenko.maven.plugin.gitflow.GitFlowVersionInfoTest#testWithVersionPolicy", "old_test_code": null, "new_test_code": "@Test\npublic void testWithVersionPolicy() throws Exception {\n GitFlowVersionInfo info1 = new GitFlowVersionInfo(\"1.0.0-SNAPSHOT\", new OddEvenVersionPolicy());\n Assert.assertEquals(\"1.0.0\", info1.getReleaseVersionString());\n Assert.assertEquals(\"1.0.1-SNAPSHOT\", info1.nextSnapshotVersion());\n GitFlowVersionInfo info2 = new GitFlowVersionInfo(\"1.0.1-SNAPSHOT\", new OddEvenVersionPolicy());\n Assert.assertEquals(\"1.0.2\", info2.getReleaseVersionString());\n Assert.assertEquals(\"1.0.3-SNAPSHOT\", info2.nextSnapshotVersion());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-119"], "old_production_code": "", "new_production_code": "@Override\npublic String getReleaseVersionString() {\n if (versionPolicy != null) {\n try {\n VersionPolicyRequest request = new VersionPolicyRequest().setVersion(this.toString());\n return versionPolicy.getReleaseVersion(request).getVersion();\n } catch (PolicyException | VersionParseException ex) {\n throw new RuntimeException(\"Unable to get release version from policy.\", ex);\n }\n }\n return super.getReleaseVersionString();\n}", "focal_file_path": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "focal_method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "line_nums_new": "67-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.3866, "method_coverage_gold": 2.8249, "line_coverage_gold": 0.813, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.nextSnapshotVersion:()Ljava/lang/String", "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.getReleaseVersionString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowVersionInfo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.21.0", "java_version": 8} {"task_id": "amazon-archives_realworld-serverless-application-1.0.1__15954e4_db7ecf2__EventBridgePublisherTest_5d84ad71", "project_name": "amazon-archives_realworld-serverless-application-1.0.1", "git_clone_url": "https://github.com/amazon-archives/realworld-serverless-application.git", "rev1": "15954e46d737fe835f6b31b267940f63a7f8816e", "rev2": "db7ecf26a44a265b5b3a57c39606cd5c393eb6d1", "rev1_date": "2019-10-01T20:25:20Z", "rev2_date": "2019-10-01T21:36:38Z", "git_diff_url": "https://github.com/amazon-archives/realworld-serverless-application/compare/15954e46d737fe835f6b31b267940f63a7f8816e...db7ecf26a44a265b5b3a57c39606cd5c393eb6d1", "test_file": "aws-dynamodb-stream-fanout/src/test/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisherTest.java", "test_changes": [{"change_id": "19_amazon-archives_realworld-serverless-application-1.0.1_15954e4_db7ecf2_EventBridgePublisherTest", "test_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisherTest.handleRetry:()V", "class": "EventBridgePublisherTest", "method": "handleRetry", "module": "aws-dynamodb-stream-fanout", "junit_selector": "com.amazonaws.dynamodb.stream.fanout.EventBridgePublisherTest#handleRetry", "old_test_code": null, "new_test_code": "@Test\npublic void handleRetry() {\n DynamodbEvent normal_event = new DynamodbEvent();\n List normalRecords = new ArrayList<>();\n normalRecords.add(new DynamodbEvent.DynamodbStreamRecord());\n normal_event.setRecords(normalRecords);\n List putEventsResultEntryList = new ArrayList<>();\n putEventsResultEntryList.add(PutEventsResultEntry.builder().errorCode(\"formatError\").errorMessage(\"request format error\").build());\n PutEventsResponse putEventsResponse = PutEventsResponse.builder().failedEntryCount(1).entries(putEventsResultEntryList).build();\n when(awsEventClient.putEvents(any(PutEventsRequest.class))).thenReturn(putEventsResponse);\n eventBridgePublisher.publish(normal_event);\n verify(awsEventClient, times(4)).putEvents(any(PutEventsRequest.class));\n verify(awsSqsClient).sendMessage(any(SendMessageRequest.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-95"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic void publish(DynamodbEvent event) {\n final List ddbStreamRecords = event.getRecords();\n List putEventsRequestEntryList = new ArrayList<>();\n String eventBusName = System.getenv(\"EventBusName\");\n for (DynamodbEvent.DynamodbStreamRecord ddbStreamRecord : ddbStreamRecords) {\n String strRecordJSON = objectMapper.writeValueAsString(ddbStreamRecord);\n putEventsRequestEntryList.add(PutEventsRequestEntry.builder().eventBusName(eventBusName).time(Instant.now()).source(\"com.amazonaws.dynamodb.stream.fanout\").detailType(\"ddb_stream\").detail(strRecordJSON).build());\n }\n PutEventsRequest putEventsRequest = PutEventsRequest.builder().entries(putEventsRequestEntryList).build();\n PutEventsResponse putEventsResult = awsEventsClient.putEvents(putEventsRequest);\n int EBRetryLimit = Integer.parseInt(System.getenv(\"EBRetryLimit\"));\n int retryCount = 0;\n while (putEventsResult.failedEntryCount() > 0) {\n List failedEntriesList = new ArrayList<>();\n List PutEventsResultEntryList = putEventsResult.entries();\n for (int i = 0; i < PutEventsResultEntryList.size(); i++) {\n PutEventsRequestEntry putEventsRequestEntry = putEventsRequestEntryList.get(i);\n PutEventsResultEntry putEventsResultEntry = PutEventsResultEntryList.get(i);\n if (putEventsResultEntry.errorCode() != null) {\n log.info(putEventsResultEntry.errorCode() + \": \" + putEventsResultEntry.errorMessage());\n failedEntriesList.add(putEventsRequestEntry);\n }\n }\n if (retryCount < EBRetryLimit) {\n log.info(putEventsResult.failedEntryCount() + \" failed entry. \" + \"retry count: \" + retryCount);\n putEventsRequestEntryList = failedEntriesList;\n putEventsRequest.toBuilder().entries(putEventsRequestEntryList).build();\n putEventsResult = awsEventsClient.putEvents(putEventsRequest);\n retryCount++;\n } else {\n log.info(\"send failed records to SQS DLQ after \" + EBRetryLimit + \"retry.\");\n for (PutEventsRequestEntry failedEntry : failedEntriesList) {\n String queueUrl = System.getenv(\"SqsQueueURL\");\n awsSQSClient.sendMessage(SendMessageRequest.builder().queueUrl(queueUrl).messageBody(failedEntry.detail()).build());\n }\n return;\n }\n }\n}", "focal_file_path": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "focal_method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "line_nums_new": "38-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9565217391304348, "branch_coverage_gold": 66.6667, "method_coverage_gold": 10.7143, "line_coverage_gold": 39.5161, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "20_amazon-archives_realworld-serverless-application-1.0.1_15954e4_db7ecf2_EventBridgePublisherTest", "test_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisherTest.handleNormalStream:()V", "class": "EventBridgePublisherTest", "method": "handleNormalStream", "module": "aws-dynamodb-stream-fanout", "junit_selector": "com.amazonaws.dynamodb.stream.fanout.EventBridgePublisherTest#handleNormalStream", "old_test_code": null, "new_test_code": "@Test\npublic void handleNormalStream() {\n DynamodbEvent normal_event = new DynamodbEvent();\n List normalRecords = new ArrayList<>();\n normalRecords.add(new DynamodbEvent.DynamodbStreamRecord());\n normal_event.setRecords(normalRecords);\n PutEventsResponse putEventsResponse = PutEventsResponse.builder().failedEntryCount(0).build();\n when(awsEventClient.putEvents(any(PutEventsRequest.class))).thenReturn(putEventsResponse);\n eventBridgePublisher.publish(normal_event);\n verify(awsEventClient).putEvents(any(PutEventsRequest.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-69"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic void publish(DynamodbEvent event) {\n final List ddbStreamRecords = event.getRecords();\n List putEventsRequestEntryList = new ArrayList<>();\n String eventBusName = System.getenv(\"EventBusName\");\n for (DynamodbEvent.DynamodbStreamRecord ddbStreamRecord : ddbStreamRecords) {\n String strRecordJSON = objectMapper.writeValueAsString(ddbStreamRecord);\n putEventsRequestEntryList.add(PutEventsRequestEntry.builder().eventBusName(eventBusName).time(Instant.now()).source(\"com.amazonaws.dynamodb.stream.fanout\").detailType(\"ddb_stream\").detail(strRecordJSON).build());\n }\n PutEventsRequest putEventsRequest = PutEventsRequest.builder().entries(putEventsRequestEntryList).build();\n PutEventsResponse putEventsResult = awsEventsClient.putEvents(putEventsRequest);\n int EBRetryLimit = Integer.parseInt(System.getenv(\"EBRetryLimit\"));\n int retryCount = 0;\n while (putEventsResult.failedEntryCount() > 0) {\n List failedEntriesList = new ArrayList<>();\n List PutEventsResultEntryList = putEventsResult.entries();\n for (int i = 0; i < PutEventsResultEntryList.size(); i++) {\n PutEventsRequestEntry putEventsRequestEntry = putEventsRequestEntryList.get(i);\n PutEventsResultEntry putEventsResultEntry = PutEventsResultEntryList.get(i);\n if (putEventsResultEntry.errorCode() != null) {\n log.info(putEventsResultEntry.errorCode() + \": \" + putEventsResultEntry.errorMessage());\n failedEntriesList.add(putEventsRequestEntry);\n }\n }\n if (retryCount < EBRetryLimit) {\n log.info(putEventsResult.failedEntryCount() + \" failed entry. \" + \"retry count: \" + retryCount);\n putEventsRequestEntryList = failedEntriesList;\n putEventsRequest.toBuilder().entries(putEventsRequestEntryList).build();\n putEventsResult = awsEventsClient.putEvents(putEventsRequest);\n retryCount++;\n } else {\n log.info(\"send failed records to SQS DLQ after \" + EBRetryLimit + \"retry.\");\n for (PutEventsRequestEntry failedEntry : failedEntriesList) {\n String queueUrl = System.getenv(\"SqsQueueURL\");\n awsSQSClient.sendMessage(SendMessageRequest.builder().queueUrl(queueUrl).messageBody(failedEntry.detail()).build());\n }\n return;\n }\n }\n}", "focal_file_path": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "focal_method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "line_nums_new": "38-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4782608695652174, "branch_coverage_gold": 27.7778, "method_coverage_gold": 10.7143, "line_coverage_gold": 21.7742, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.publish:(Lcom/amazonaws/services/lambda/runtime/events/DynamodbEvent;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-dynamodb-stream-fanout/src/main/java/com/amazonaws/dynamodb/stream/fanout/EventBridgePublisher.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "1.0.1", "java_version": 8} {"task_id": "amazon-archives_realworld-serverless-application-1.0.1__6d0e385_c0e5397__ApiExceptionMapperTest_618c837e", "project_name": "amazon-archives_realworld-serverless-application-1.0.1", "git_clone_url": "https://github.com/amazon-archives/realworld-serverless-application.git", "rev1": "6d0e3850b3da966ff0c953e18701847efbebe4d1", "rev2": "c0e5397e252522da055d50d7da8b892f1bb10d36", "rev1_date": "2019-10-11T17:59:05Z", "rev2_date": "2019-10-11T21:00:35Z", "git_diff_url": "https://github.com/amazon-archives/realworld-serverless-application/compare/6d0e3850b3da966ff0c953e18701847efbebe4d1...c0e5397e252522da055d50d7da8b892f1bb10d36", "test_file": "backend/src/test/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapperTest.java", "test_changes": [{"change_id": "32_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_ApiExceptionMapperTest", "test_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapperTest.toResponse_apiException:()V", "class": "ApiExceptionMapperTest", "method": "toResponse_apiException", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.exception.ApiExceptionMapperTest#toResponse_apiException", "old_test_code": null, "new_test_code": "@Test\npublic void toResponse_apiException() {\n NotFoundException exception = new NotFoundException();\n Response response = exceptionMapper.toResponse(new NotFoundApiException(exception));\n assertThat(response.getStatus()).isEqualTo(404);\n assertThat(response.getMediaType()).isEqualTo(MediaType.APPLICATION_JSON_TYPE);\n assertThat(response.getEntity()).isEqualTo(exception);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-29"], "old_production_code": "", "new_production_code": "@Override\npublic Response toResponse(final Throwable throwable) {\n if (throwable instanceof ApiException) {\n log.info(\"4xx exception is thrown\", throwable);\n ApiException apiException = (ApiException) throwable;\n return apiException.getResponse();\n } else {\n log.error(\"5xx exception is thrown\", throwable);\n return new InternalServerApiException().getResponse();\n }\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "line_nums_new": "16-26", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.5882, "method_coverage_gold": 3.0075, "line_coverage_gold": 2.1789, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "40_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_ApiExceptionMapperTest", "test_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapperTest.toResponse_otherException:()V", "class": "ApiExceptionMapperTest", "method": "toResponse_otherException", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.exception.ApiExceptionMapperTest#toResponse_otherException", "old_test_code": null, "new_test_code": "@Test\npublic void toResponse_otherException() {\n InternalServerErrorException exception = new InternalServerErrorException().errorCode(\"InternalError\").message(\"Internal Server Error.\");\n Response response = exceptionMapper.toResponse(new IllegalArgumentException());\n assertThat(response.getStatus()).isEqualTo(500);\n assertThat(response.getMediaType()).isEqualTo(MediaType.APPLICATION_JSON_TYPE);\n assertThat(response.getEntity()).isEqualTo(exception);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-40"], "old_production_code": "", "new_production_code": "@Override\npublic Response toResponse(final Throwable throwable) {\n if (throwable instanceof ApiException) {\n log.info(\"4xx exception is thrown\", throwable);\n ApiException apiException = (ApiException) throwable;\n return apiException.getResponse();\n } else {\n log.error(\"5xx exception is thrown\", throwable);\n return new InternalServerApiException().getResponse();\n }\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "line_nums_new": "16-26", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.7647, "method_coverage_gold": 3.7594, "line_coverage_gold": 3.0963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.toResponse:(Ljava/lang/Throwable;)Ljavax/ws/rs/core/Response", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/exception/ApiExceptionMapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "1.0.1", "java_version": 8} {"task_id": "amazon-archives_realworld-serverless-application-1.0.1__6d0e385_c0e5397__DynamoDbStartKeySerializerTest_55ab2d64", "project_name": "amazon-archives_realworld-serverless-application-1.0.1", "git_clone_url": "https://github.com/amazon-archives/realworld-serverless-application.git", "rev1": "6d0e3850b3da966ff0c953e18701847efbebe4d1", "rev2": "c0e5397e252522da055d50d7da8b892f1bb10d36", "rev1_date": "2019-10-11T17:59:05Z", "rev2_date": "2019-10-11T21:00:35Z", "git_diff_url": "https://github.com/amazon-archives/realworld-serverless-application/compare/6d0e3850b3da966ff0c953e18701847efbebe4d1...c0e5397e252522da055d50d7da8b892f1bb10d36", "test_file": "backend/src/test/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.java", "test_changes": [{"change_id": "21_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testStringList:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testStringList", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testStringList", "old_test_code": null, "new_test_code": "@Test\npublic void testStringList() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"StringList\", AttributeValue.builder().ss(\"test\").build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-56"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.4661, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.5, "class": 1.0, "tfidf": 0.4143}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.3617, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.3636, "class": 1.0, "tfidf": 0.1417}}], "coverage_gold": 0.5, "branch_coverage_gold": 2.9412, "method_coverage_gold": 4.8872, "line_coverage_gold": 5.0459, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "23_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testMap:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testMap", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testMap", "old_test_code": null, "new_test_code": "@Test\npublic void testMap() throws Exception {\n Map startKey = new HashMap<>();\n Map nested = new HashMap<>();\n nested.put(\"Map\", AttributeValue.builder().s(\"test\").build());\n startKey.put(\"AttributeList\", AttributeValue.builder().m(nested).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["85-94"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.3233, "signal_scores": {"nc": 0.0, "lcs_u": 0.1111, "ed": 0.1111, "class": 1.0, "tfidf": 0.413}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.2635, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 1.0, "tfidf": 0.1879}}], "coverage_gold": 0.5, "branch_coverage_gold": 6.7647, "method_coverage_gold": 4.8872, "line_coverage_gold": 7.6835, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "25_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testNumberList:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testNumberList", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testNumberList", "old_test_code": null, "new_test_code": "@Test\npublic void testNumberList() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"NumberList\", AttributeValue.builder().ns(\"100\").build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-65"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.3999, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.2, "class": 1.0, "tfidf": 0.4263}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.3314, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.145}}], "coverage_gold": 0.5, "branch_coverage_gold": 3.8235, "method_coverage_gold": 4.8872, "line_coverage_gold": 5.5046, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "26_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testByteList:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testByteList", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testByteList", "old_test_code": null, "new_test_code": "@Test\npublic void testByteList() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"ByteList\", AttributeValue.builder().bs(SdkBytes.fromUtf8String(\"test\")).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-74"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.3785, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2222, "class": 1.0, "tfidf": 0.4033}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.3139, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.2727, "class": 1.0, "tfidf": 0.1386}}], "coverage_gold": 0.5, "branch_coverage_gold": 5.2941, "method_coverage_gold": 5.6391, "line_coverage_gold": 6.7661, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "28_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testNul:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testNul", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testNul", "old_test_code": null, "new_test_code": "@Test\npublic void testNul() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"AttributeList\", AttributeValue.builder().nul(false).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["105-112"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.328, "signal_scores": {"nc": 0.0, "lcs_u": 0.1111, "ed": 0.1111, "class": 1.0, "tfidf": 0.4327}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.2538, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 1.0, "tfidf": 0.1468}}], "coverage_gold": 0.5, "branch_coverage_gold": 7.6471, "method_coverage_gold": 4.8872, "line_coverage_gold": 7.5688, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "29_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testNumber:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testNumber", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testNumber", "old_test_code": null, "new_test_code": "@Test\npublic void testNumber() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"Number\", AttributeValue.builder().n(\"100\").build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-38"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.3293, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0, "class": 1.0, "tfidf": 0.4327}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.2698, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.0909, "class": 1.0, "tfidf": 0.1468}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.4706, "method_coverage_gold": 4.8872, "line_coverage_gold": 4.2431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "34_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testString:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testString", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testString", "old_test_code": null, "new_test_code": "@Test\npublic void testString() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"String\", AttributeValue.builder().s(\"1.0.0\").build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-29"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.4156, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.3333, "class": 1.0, "tfidf": 0.4829}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.3242, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.2727, "class": 1.0, "tfidf": 0.1823}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.8824, "method_coverage_gold": 4.8872, "line_coverage_gold": 3.8991, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "36_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testBool:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testBool", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testBool", "old_test_code": null, "new_test_code": "@Test\npublic void testBool() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"AttributeList\", AttributeValue.builder().bool(true).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-103"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.328, "signal_scores": {"nc": 0.0, "lcs_u": 0.1111, "ed": 0.1111, "class": 1.0, "tfidf": 0.4327}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.2538, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 1.0, "tfidf": 0.1468}}], "coverage_gold": 0.5, "branch_coverage_gold": 7.0588, "method_coverage_gold": 4.8872, "line_coverage_gold": 7.2248, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "37_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testAttributeList:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testAttributeList", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testAttributeList", "old_test_code": null, "new_test_code": "@Test\npublic void testAttributeList() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"AttributeList\", AttributeValue.builder().l(AttributeValue.builder().s(\"test\").build()).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-83"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.4116, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.3077, "class": 1.0, "tfidf": 0.4005}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.3251, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2308, "class": 1.0, "tfidf": 0.1473}}], "coverage_gold": 0.5, "branch_coverage_gold": 8.2353, "method_coverage_gold": 4.8872, "line_coverage_gold": 8.3716, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "41_amazon-archives_realworld-serverless-application-1.0.1_6d0e385_c0e5397_DynamoDbStartKeySerializerTest", "test_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializerTest.testByte:()V", "class": "DynamoDbStartKeySerializerTest", "method": "testByte", "module": "backend", "junit_selector": "software.amazon.serverless.apprepo.api.impl.pagination.DynamoDbStartKeySerializerTest#testByte", "old_test_code": null, "new_test_code": "@Test\npublic void testByte() throws Exception {\n Map startKey = new HashMap<>();\n startKey.put(\"Byte\", AttributeValue.builder().b(SdkBytes.fromUtf8String(\"test\")).build());\n String startKeyString = serializer.serialize(startKey);\n assertThat(serializer.deserialize(startKeyString)).isEqualTo(startKey);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-47"], "old_production_code": "", "new_production_code": "@Override\n@SneakyThrows(JsonProcessingException.class)\npublic String serialize(final Map startKey) {\n return OBJECT_MAPPER.writeValueAsString(startKey);\n}", "focal_file_path": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "focal_method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "62-66", "dependency_updated": "inserted", "score": 0.3223, "signal_scores": {"nc": 0.0, "lcs_u": 0.1111, "ed": 0.1111, "class": 1.0, "tfidf": 0.4087}}, {"dep_id": 0, "method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "line_nums_new": "45-60", "dependency_updated": "inserted", "score": 0.2522, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0909, "class": 1.0, "tfidf": 0.1401}}], "coverage_gold": 0.5, "branch_coverage_gold": 2.0588, "method_coverage_gold": 4.8872, "line_coverage_gold": 4.5872, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.deserialize:(Ljava/lang/String;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.serialize:(Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "backend/src/main/java/software/amazon/serverless/apprepo/api/impl/pagination/DynamoDbStartKeySerializer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "1.0.1", "java_version": 8} {"task_id": "amazon-archives_realworld-serverless-application-1.0.1__84c7f96_8ad1b26__SsmParameterCachingClientTest_661c007f", "project_name": "amazon-archives_realworld-serverless-application-1.0.1", "git_clone_url": "https://github.com/amazon-archives/realworld-serverless-application.git", "rev1": "84c7f96e15487101efdaaf56219670637e1f6716", "rev2": "8ad1b26bb2b6414c4deef71093bedbc4bf1fc77f", "rev1_date": "2019-10-11T21:30:45Z", "rev2_date": "2019-10-11T21:39:09Z", "git_diff_url": "https://github.com/amazon-archives/realworld-serverless-application/compare/84c7f96e15487101efdaaf56219670637e1f6716...8ad1b26bb2b6414c4deef71093bedbc4bf1fc77f", "test_file": "aws-ssm-caching-client/src/test/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.java", "test_changes": [{"change_id": "1_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_staleCache_ssmSuccess:()V", "class": "SsmParameterCachingClientTest", "method": "get_staleCache_ssmSuccess", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_staleCache_ssmSuccess", "old_test_code": null, "new_test_code": "@Test\npublic void get_staleCache_ssmSuccess() throws Exception {\n Clock clock = mock(Clock.class);\n client = new SsmParameterCachingClient(ssm, TTL, PATH_PREFIX, true, true, clock);\n Instant now = Instant.now();\n when(clock.instant()).thenReturn(now);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n when(clock.instant()).thenReturn(now.plus(Duration.ofSeconds(TTL.getSeconds() + 1)));\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n GetParametersByPathRequest expected = GetParametersByPathRequest.builder().path(PATH_PREFIX).recursive(true).withDecryption(true).build();\n verify(ssm, times(2)).getParametersByPathPaginator(expected);\n verifyNoMoreInteractions(ssm);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["214-235"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 27.2727, "method_coverage_gold": 68.1818, "line_coverage_gold": 66.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_staleCache_ssmOtherException_noAllowStaleValues:()V", "class": "SsmParameterCachingClientTest", "method": "get_staleCache_ssmOtherException_noAllowStaleValues", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_staleCache_ssmOtherException_noAllowStaleValues", "old_test_code": null, "new_test_code": "@Test\npublic void get_staleCache_ssmOtherException_noAllowStaleValues() throws Exception {\n Clock clock = mock(Clock.class);\n client = new SsmParameterCachingClient(ssm, TTL, PATH_PREFIX, false, false, clock);\n Instant now = Instant.now();\n when(clock.instant()).thenReturn(now);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n when(clock.instant()).thenReturn(now.plus(Duration.ofSeconds(TTL.getSeconds() + 1)));\n when(ssm.getParameter(GetParameterRequest.builder().name(STRING_PARAMETER_KEY).withDecryption(true).build())).thenThrow(new RuntimeException(\"boom!\"));\n assertThatThrownBy(() -> client.get(STRING_PARAMETER_KEY_SUFFIX)).isInstanceOf(RuntimeException.class).hasMessage(\"boom!\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["276-296"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 20.4545, "method_coverage_gold": 54.5455, "line_coverage_gold": 57.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_staleCache_ssmParameterNotFound:()V", "class": "SsmParameterCachingClientTest", "method": "get_staleCache_ssmParameterNotFound", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_staleCache_ssmParameterNotFound", "old_test_code": null, "new_test_code": "@Test\npublic void get_staleCache_ssmParameterNotFound() throws Exception {\n Clock clock = mock(Clock.class);\n client = new SsmParameterCachingClient(ssm, TTL, PATH_PREFIX, true, false, clock);\n Instant now = Instant.now();\n when(clock.instant()).thenReturn(now);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n when(clock.instant()).thenReturn(now.plus(Duration.ofSeconds(TTL.getSeconds() + 1)));\n when(ssm.getParameter(GetParameterRequest.builder().name(STRING_PARAMETER_KEY).withDecryption(true).build())).thenThrow(ParameterNotFoundException.class);\n assertThatThrownBy(() -> client.get(STRING_PARAMETER_KEY_SUFFIX)).isInstanceOf(ParameterNotFoundException.class);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["237-254"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 18.1818, "method_coverage_gold": 54.5455, "line_coverage_gold": 56.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.getAsStringList:()V", "class": "SsmParameterCachingClientTest", "method": "getAsStringList", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#getAsStringList", "old_test_code": null, "new_test_code": "@Test\npublic void getAsStringList() throws Exception {\n assertThat(client.getAsStringList(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(Arrays.asList(\"a\", \"b\", \"c\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["304-307"], "old_production_code": "", "new_production_code": "public List getAsStringList(final String name) {\n Parameter parameter = get(name);\n if (parameter.type() != ParameterType.STRING_LIST) {\n throw new IllegalArgumentException(String.format(\"Parameter %s is of type %s, expected StringList\", parameter.name(), parameter.type()));\n }\n return Arrays.asList(parameter.value().split(\",\"));\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsStringList:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsStringList:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "259-266", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 18.1818, "method_coverage_gold": 63.6364, "line_coverage_gold": 61.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsStringList:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsStringList:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "5_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_bulkLoad:()V", "class": "SsmParameterCachingClientTest", "method": "get_bulkLoad", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_bulkLoad", "old_test_code": null, "new_test_code": "@Test\npublic void get_bulkLoad() throws Exception {\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_LIST_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_LIST_PARAMETER);\n GetParametersByPathRequest expected = GetParametersByPathRequest.builder().path(PATH_PREFIX).recursive(true).withDecryption(true).build();\n verify(ssm, times(1)).getParametersByPathPaginator(expected);\n verifyNoMoreInteractions(ssm);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-131"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 22.7273, "method_coverage_gold": 63.6364, "line_coverage_gold": 60.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "6_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_bulkLoad_noPathPrefix:()V", "class": "SsmParameterCachingClientTest", "method": "get_bulkLoad_noPathPrefix", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_bulkLoad_noPathPrefix", "old_test_code": null, "new_test_code": "@Test\npublic void get_bulkLoad_noPathPrefix() throws Exception {\n client = new SsmParameterCachingClient(ssm, TTL);\n assertThat(client.get(STRING_PARAMETER_KEY)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_PARAMETER_KEY)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY)).isEqualTo(STRING_LIST_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY)).isEqualTo(STRING_LIST_PARAMETER);\n GetParameterRequest expectedStringParameterRequest = GetParameterRequest.builder().name(STRING_PARAMETER_KEY).withDecryption(true).build();\n verify(ssm, times(1)).getParameter(expectedStringParameterRequest);\n GetParameterRequest expectedStringListParameterRequest = GetParameterRequest.builder().name(STRING_LIST_PARAMETER_KEY).withDecryption(true).build();\n verify(ssm, times(1)).getParameter(expectedStringListParameterRequest);\n verifyNoMoreInteractions(ssm);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-174"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 20.4545, "method_coverage_gold": 59.0909, "line_coverage_gold": 56.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "7_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_staleCache_ssmOtherException_allowStaleValues:()V", "class": "SsmParameterCachingClientTest", "method": "get_staleCache_ssmOtherException_allowStaleValues", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_staleCache_ssmOtherException_allowStaleValues", "old_test_code": null, "new_test_code": "@Test\npublic void get_staleCache_ssmOtherException_allowStaleValues() throws Exception {\n Clock clock = mock(Clock.class);\n client = new SsmParameterCachingClient(ssm, TTL, PATH_PREFIX, true, false, clock);\n Instant now = Instant.now();\n when(clock.instant()).thenReturn(now);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n when(clock.instant()).thenReturn(now.plus(Duration.ofSeconds(TTL.getSeconds() + 1)));\n when(ssm.getParameter(GetParameterRequest.builder().name(STRING_PARAMETER_KEY).withDecryption(true).build())).thenThrow(AwsServiceException.class);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["256-274"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 22.7273, "method_coverage_gold": 59.0909, "line_coverage_gold": 60.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "8_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.getAsString:()V", "class": "SsmParameterCachingClientTest", "method": "getAsString", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#getAsString", "old_test_code": null, "new_test_code": "@Test\npublic void getAsString() throws Exception {\n assertThat(client.getAsString(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER_VALUE);\n assertThat(client.getAsString(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_LIST_PARAMETER_VALUE);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["298-302"], "old_production_code": "", "new_production_code": "public String getAsString(final String name) {\n return get(name).value();\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsString:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsString:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "248-250", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 22.7273, "method_coverage_gold": 68.1818, "line_coverage_gold": 61.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsString:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.getAsString:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "9_amazon-archives_realworld-serverless-application-1.0.1_84c7f96_8ad1b26_SsmParameterCachingClientTest", "test_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClientTest.get_noBulkLoad:()V", "class": "SsmParameterCachingClientTest", "method": "get_noBulkLoad", "module": "aws-ssm-caching-client", "junit_selector": "software.amazon.serverless.ssmcachingclient.SsmParameterCachingClientTest#get_noBulkLoad", "old_test_code": null, "new_test_code": "@Test\npublic void get_noBulkLoad() throws Exception {\n client = new SsmParameterCachingClient(ssm, TTL, PATH_PREFIX, true, false);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_LIST_PARAMETER);\n assertThat(client.get(STRING_LIST_PARAMETER_KEY_SUFFIX)).isEqualTo(STRING_LIST_PARAMETER);\n GetParameterRequest expectedStringParameterRequest = GetParameterRequest.builder().name(STRING_PARAMETER_KEY).withDecryption(true).build();\n verify(ssm, times(1)).getParameter(expectedStringParameterRequest);\n GetParameterRequest expectedStringListParameterRequest = GetParameterRequest.builder().name(STRING_LIST_PARAMETER_KEY).withDecryption(true).build();\n verify(ssm, times(1)).getParameter(expectedStringListParameterRequest);\n verifyNoMoreInteractions(ssm);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["176-197"], "old_production_code": "", "new_production_code": "public Parameter get(final String name) {\n CachedParameter cached = getCachedParameter(name);\n if (isStale(cached)) {\n log.debug(\"SSM Parameter cache miss for pathPrefix={}, name={}. Attempting to load value from SSM.\", pathPrefix, name);\n try {\n cached = load(name);\n } catch (Exception e) {\n if (e instanceof ParameterNotFoundException) {\n throw e;\n }\n if (allowStaleValues && cached != null) {\n log.warn(String.format(\"Failed to update cache from SSM for pathPrefix=%s, name=%s. Returning stale value instead.\", pathPrefix, name), e);\n return cached.getParameter();\n }\n throw e;\n }\n } else {\n log.debug(\"SSM Parameter cache hit for pathPrefix={}, name={}. Returning cached value.\", pathPrefix, name);\n }\n return cached.parameter;\n}", "focal_file_path": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "focal_method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "file_path_old": null, "line_nums_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "line_nums_new": "146-169", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 18.1818, "method_coverage_gold": 54.5455, "line_coverage_gold": 53.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.get:(Ljava/lang/String;)Lsoftware/amazon/awssdk/services/ssm/model/Parameter", "change_type": "ADD", "file_path_old": null, "file_path_new": "aws-ssm-caching-client/src/main/java/software/amazon/serverless/ssmcachingclient/SsmParameterCachingClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "1.0.1", "java_version": 8} {"task_id": "apache_incubator-baremaps-v0.8.2__41229c1_b06833d__ExpressionsTest_b7a2e03a", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "41229c1a2abd5790cdd6e103cf5080e3c6bd2702", "rev2": "b06833d27c992ed8d78bb2f13387fcebf2e7332b", "rev1_date": "2023-05-07T10:40:28Z", "rev2_date": "2023-05-07T11:24:27Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/41229c1a2abd5790cdd6e103cf5080e3c6bd2702...b06833d27c992ed8d78bb2f13387fcebf2e7332b", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/vectortile/ExpressionsTest.java", "test_changes": [{"change_id": "269_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.less:()V", "class": "ExpressionsTest", "method": "less", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#less", "old_test_code": null, "new_test_code": "@Test\npublic void less() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\"<\\\", 1, 2]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"<\\\", 1, 1]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"<\\\", 1, 0]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["155-160"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "270_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.not:()V", "class": "ExpressionsTest", "method": "not", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#not", "old_test_code": null, "new_test_code": "@Test\npublic void not() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\"!\\\", false]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"!\\\", true]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-147"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1261, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "271_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.greater:()V", "class": "ExpressionsTest", "method": "greater", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#greater", "old_test_code": null, "new_test_code": "@Test\npublic void greater() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\">\\\", 1, 0]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\">\\\", 1, 1]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\">\\\", 1, 2]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["175-180"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "272_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.greaterOrEqual:()V", "class": "ExpressionsTest", "method": "greaterOrEqual", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#greaterOrEqual", "old_test_code": null, "new_test_code": "@Test\npublic void greaterOrEqual() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\">=\\\", 1, 0]\").evaluate(null));\n assertEquals(true, Expressions.read(\"[\\\">=\\\", 1, 1]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\">=\\\", 1, 2]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["182-187"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "273_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.match:()V", "class": "ExpressionsTest", "method": "match", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#match", "old_test_code": null, "new_test_code": "@Test\npublic void match() throws IOException {\n assertEquals(\"foo\", Expressions.read(\"[\\\"match\\\", \\\"foo\\\", \\\"foo\\\", \\\"foo\\\", \\\"bar\\\", \\\"bar\\\", \\\"baz\\\"]\").evaluate(null));\n assertEquals(\"bar\", Expressions.read(\"[\\\"match\\\", \\\"bar\\\", \\\"foo\\\", \\\"foo\\\", \\\"bar\\\", \\\"bar\\\", \\\"baz\\\"]\").evaluate(null));\n assertEquals(\"baz\", Expressions.read(\"[\\\"match\\\", \\\"baz\\\", \\\"foo\\\", \\\"foo\\\", \\\"bar\\\", \\\"bar\\\", \\\"baz\\\"]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["223-231"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1452, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1892, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "274_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.lessOrEqual:()V", "class": "ExpressionsTest", "method": "lessOrEqual", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#lessOrEqual", "old_test_code": null, "new_test_code": "@Test\npublic void lessOrEqual() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\"<=\\\", 1, 2]\").evaluate(null));\n assertEquals(true, Expressions.read(\"[\\\"<=\\\", 1, 1]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"<=\\\", 1, 0]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["162-167"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "275_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.equal:()V", "class": "ExpressionsTest", "method": "equal", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#equal", "old_test_code": null, "new_test_code": "@Test\npublic void equal() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\"==\\\", 1, 1]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"==\\\", 1, 2]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["169-173"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0544, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "276_apache_incubator-baremaps-v0.8.2_41229c1_b06833d_ExpressionsTest", "test_sign": "org/apache/baremaps/vectortile/ExpressionsTest.notEqual:()V", "class": "ExpressionsTest", "method": "notEqual", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.ExpressionsTest#notEqual", "old_test_code": null, "new_test_code": "@Test\npublic void notEqual() throws IOException {\n assertEquals(true, Expressions.read(\"[\\\"!=\\\", 1, 2]\").evaluate(null));\n assertEquals(false, Expressions.read(\"[\\\"!=\\\", 1, 1]\").evaluate(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["149-153"], "old_production_code": "", "new_production_code": "static Expression read(String json) throws IOException {\n var mapper = new ObjectMapper();\n var simpleModule = new SimpleModule(\"SimpleModule\", new Version(1, 0, 0, null));\n simpleModule.addDeserializer(Expression.class, new ExpressionDeserializer());\n mapper.registerModule(simpleModule);\n return mapper.readValue(new StringReader(json), Expression.class);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "focal_method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "line_nums_new": "505-511", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0907, "method_coverage_gold": 0.3495, "line_coverage_gold": 0.1576, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/expression/Expressions.read:(Ljava/lang/String;)Lorg/apache/baremaps/vectortile/expression/Expressions$Expression", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/expression/Expressions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__533480f_75d8093__TileBatcherTest_0dc546dc", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev2": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev1_date": "2023-05-07T12:48:39Z", "rev2_date": "2023-05-07T13:13:52Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/533480f89ce03fd77e36c3b2c6be5682b535d28b...75d8093e097992444e6b6a3eb703df0e8d907b65", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/tilestore/TileBatcherTest.java", "test_changes": [{"change_id": "329_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileBatcherTest", "test_sign": "org/apache/baremaps/tilestore/TileBatcherTest.testFiltering:()V", "class": "TileBatcherTest", "method": "testFiltering", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileBatcherTest#testFiltering", "old_test_code": null, "new_test_code": "@Test\nvoid testFiltering() {\n final int streamSize = 85;\n final List tileCoords = new ArrayList<>();\n for (int z = 0; z <= 3; z++) {\n for (int x = 0; x < IntMath.pow(2, z); x++) {\n for (int y = 0; y < IntMath.pow(2, z); y++) {\n tileCoords.add(new TileCoord(x, y, z));\n }\n }\n }\n assertEquals(streamSize, tileCoords.size());\n final int batchArraySize = 5;\n for (int batchArrayIndex = 0; batchArrayIndex < batchArraySize; batchArrayIndex++) {\n List batch = tileCoords.stream().filter(new TileBatchPredicate(batchArraySize, batchArrayIndex)).sorted(Comparator.comparingLong(TileCoord::index)).toList();\n assertEquals(streamSize / batchArraySize, batch.size());\n int tileIndex = batchArrayIndex;\n for (TileCoord tileCoord : batch) {\n assertEquals(tileIndex, tileCoord.index());\n tileIndex += batchArraySize;\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-52"], "old_production_code": "", "new_production_code": "public long index() {\n long x = this.x;\n long y = this.y;\n long offset = offsets[z];\n long position = x + y * sides[z];\n return offset + position;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoord.index:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.index:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "144-150", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0544, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1324, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.index:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.index:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__533480f_75d8093__TileCoordIteratorTest_ff2228f5", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev2": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev1_date": "2023-05-07T12:48:39Z", "rev2_date": "2023-05-07T13:13:52Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/533480f89ce03fd77e36c3b2c6be5682b535d28b...75d8093e097992444e6b6a3eb703df0e8d907b65", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/tilestore/TileCoordIteratorTest.java", "test_changes": [{"change_id": "326_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileCoordIteratorTest", "test_sign": "org/apache/baremaps/tilestore/TileCoordIteratorTest.partial:()V", "class": "TileCoordIteratorTest", "method": "partial", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileCoordIteratorTest#partial", "old_test_code": null, "new_test_code": "@Test\nvoid partial() {\n Envelope e0 = new TileCoord(0, 0, 1).envelope();\n TileCoordIterator i0 = new TileCoordIterator(e0, 2, 2);\n List l0 = ImmutableList.copyOf(i0);\n assertEquals(l0.size(), 4);\n Envelope e1 = new TileCoord(1, 1, 1).envelope();\n TileCoordIterator i1 = new TileCoordIterator(e1, 2, 2);\n List l1 = ImmutableList.copyOf(i1);\n assertEquals(l1.size(), 4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-52"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n TileCoord max = max(envelope, this.z);\n return x <= max.x() && y <= max.y() && z <= maxZoom;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "line_nums_new": "56-60", "dependency_updated": "inserted", "score": 0.2863, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.1024}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.0509, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 0.0, "tfidf": 0.1225}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1633, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "333_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileCoordIteratorTest", "test_sign": "org/apache/baremaps/tilestore/TileCoordIteratorTest.iterator:()V", "class": "TileCoordIteratorTest", "method": "iterator", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileCoordIteratorTest#iterator", "old_test_code": null, "new_test_code": "@Test\nvoid iterator() {\n Envelope e = new TileCoord(0, 0, 0).envelope();\n TileCoordIterator i0 = new TileCoordIterator(e, 0, 0);\n List l0 = ImmutableList.copyOf(i0);\n assertEquals(l0.size(), 1);\n TileCoordIterator i1 = new TileCoordIterator(e, 1, 1);\n List l1 = ImmutableList.copyOf(i1);\n assertEquals(l1.size(), 4);\n TileCoordIterator i2 = new TileCoordIterator(e, 2, 2);\n List l2 = ImmutableList.copyOf(i2);\n assertEquals(l2.size(), 16);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-39"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n TileCoord max = max(envelope, this.z);\n return x <= max.x() && y <= max.y() && z <= maxZoom;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "line_nums_new": "56-60", "dependency_updated": "inserted", "score": 0.2534, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0, "class": 1.0, "tfidf": 0.0625}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.056, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0506}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1633, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoordIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoordIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__533480f_75d8093__TileCoordTest_1e7e6f79", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev2": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev1_date": "2023-05-07T12:48:39Z", "rev2_date": "2023-05-07T13:13:52Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/533480f89ce03fd77e36c3b2c6be5682b535d28b...75d8093e097992444e6b6a3eb703df0e8d907b65", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/tilestore/TileCoordTest.java", "test_changes": [{"change_id": "328_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileCoordTest", "test_sign": "org/apache/baremaps/tilestore/TileCoordTest.count:()V", "class": "TileCoordTest", "method": "count", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileCoordTest#count", "old_test_code": null, "new_test_code": "@Test\nvoid count() {\n Envelope envelope = new TileCoord(0, 0, 0).envelope();\n assertEquals(TileCoord.count(envelope, 0, 2), TileCoord.list(envelope, 0, 2).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "public static long count(Envelope envelope, int minzoom, int maxzoom) {\n int count = 0;\n for (int zoom = minzoom; zoom <= maxzoom; zoom++) {\n TileCoord min = min(envelope, zoom);\n TileCoord max = max(envelope, zoom);\n count += (max.x() - min.x() + 1) * (max.y() - min.y() + 1);\n }\n return count;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "113-121", "dependency_updated": "inserted", "score": 0.8568, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3914}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.378, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.2, "class": 1.0, "tfidf": 0.4788}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.2717, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 1.0, "tfidf": 0.2609}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1996, "method_coverage_gold": 0.5645, "line_coverage_gold": 0.3909, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "335_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileCoordTest", "test_sign": "org/apache/baremaps/tilestore/TileCoordTest.countLiechtenstein:()V", "class": "TileCoordTest", "method": "countLiechtenstein", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileCoordTest#countLiechtenstein", "old_test_code": null, "new_test_code": "@Test\nvoid countLiechtenstein() {\n double minLon = 9.471078;\n double maxLon = 9.636217;\n double minLat = 47.04774;\n double maxLat = 47.27128;\n int minZoom = 12;\n int maxZoom = 14;\n Envelope envelope = new Envelope(minLon, maxLon, minLat, maxLat);\n assertEquals(TileCoord.count(envelope, minZoom, maxZoom), TileCoord.list(envelope, minZoom, maxZoom).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-50"], "old_production_code": "", "new_production_code": "public static List list(Envelope envelope, int minzoom, int maxzoom) {\n return ImmutableList.copyOf(iterator(envelope, minzoom, maxzoom));\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.5334, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.5613}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "113-121", "dependency_updated": "inserted", "score": 0.4824, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 1.0, "tfidf": 0.3058}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1996, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "339_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileCoordTest", "test_sign": "org/apache/baremaps/tilestore/TileCoordTest.getTile:()V", "class": "TileCoordTest", "method": "getTile", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileCoordTest#getTile", "old_test_code": null, "new_test_code": "@Test\nvoid getTile() {\n double lon = 0, lat = 0;\n for (int z = 0; z <= 14; z += 1) {\n TileCoord tileCoord = TileCoord.fromLonLat(lon, lat, z);\n int value = (int) Math.pow(2, z - 1);\n assertEquals(value, tileCoord.x());\n assertEquals(value, tileCoord.y());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-31"], "old_production_code": "", "new_production_code": "public static TileCoord fromLonLat(double lon, double lat, int z) {\n int x = (int) ((lon + 180.0) / 360.0 * (1 << z));\n int y = (int) ((1 - Math.log(Math.tan(Math.toRadians(lat)) + 1 / Math.cos(Math.toRadians(lat))) / Math.PI) / 2.0 * (1 << z));\n return new TileCoord(x, y, z);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "focal_method_sign": "org/apache/baremaps/tilestore/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/tilestore/TileCoord", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/tilestore/TileCoord", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "131-137", "dependency_updated": "inserted", "score": 0.3117, "signal_scores": {"nc": 0.0, "lcs_u": 0.1, "ed": 0.1, "class": 1.0, "tfidf": 0.3796}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/TileCoord.x:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "157-159", "dependency_updated": "inserted", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/tilestore/TileCoord.y:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "line_nums_new": "166-168", "dependency_updated": "inserted", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1072, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/TileCoord.y:()I", "org/apache/baremaps/tilestore/TileCoord.x:()I", "org/apache/baremaps/tilestore/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/tilestore/TileCoord"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/TileCoord.x:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/tilestore/TileCoord", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/TileCoord.y:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__533480f_75d8093__TileStoreTest_35afe2cc", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev2": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev1_date": "2023-05-07T12:48:39Z", "rev2_date": "2023-05-07T13:13:52Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/533480f89ce03fd77e36c3b2c6be5682b535d28b...75d8093e097992444e6b6a3eb703df0e8d907b65", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/tilestore/TileStoreTest.java", "test_changes": [{"change_id": "321_apache_incubator-baremaps-v0.8.2_533480f_75d8093_TileStoreTest", "test_sign": "org/apache/baremaps/tilestore/TileStoreTest.readWriteDeleteTile:()V", "class": "TileStoreTest", "method": "readWriteDeleteTile", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.TileStoreTest#readWriteDeleteTile", "old_test_code": null, "new_test_code": "@Test\n@Tag(\"integration\")\nvoid readWriteDeleteTile() throws Exception {\n TileStore tileStore = createTileStore();\n TileCoord tileCoord = new TileCoord(1, 2, 3);\n ByteBuffer blob = ByteBuffer.wrap(\"tile_content\".getBytes());\n tileStore.write(tileCoord, blob);\n ByteBuffer inputStream = tileStore.read(tileCoord);\n assertArrayEquals(blob.array(), inputStream.array());\n tileStore.delete(tileCoord);\n assertThrows(TileStoreException.class, () -> tileStore.read(tileCoord));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-43"], "old_production_code": "", "new_production_code": "@Override\npublic void write(TileCoord tileCoord, ByteBuffer blob) throws TileStoreException {\n try (Connection connection = dataSource.getConnection();\n PreparedStatement statement = connection.prepareStatement(INSERT_TILE)) {\n statement.setInt(1, tileCoord.z());\n statement.setInt(2, tileCoord.x());\n statement.setInt(3, reverseY(tileCoord.y(), tileCoord.z()));\n statement.setBytes(4, blob.array());\n statement.executeUpdate();\n } catch (SQLException e) {\n throw new TileStoreException(e);\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "focal_method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.write:(Lorg/apache/baremaps/tilestore/TileCoord;Ljava/nio/ByteBuffer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.write:(Lorg/apache/baremaps/tilestore/TileCoord;Ljava/nio/ByteBuffer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "line_nums_new": "93-105", "dependency_updated": "inserted", "score": 0.2937, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2632, "class": 0.0, "tfidf": 0.3138}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.delete:(Lorg/apache/baremaps/tilestore/TileCoord;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "line_nums_new": "108-119", "dependency_updated": "inserted", "score": 0.2902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3158, "class": 0.0, "tfidf": 0.2621}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.read:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/nio/ByteBuffer", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "line_nums_new": "73-90", "dependency_updated": "inserted", "score": 0.2759, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2105, "class": 0.0, "tfidf": 0.2752}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/mbtiles/MBTiles.read:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/nio/ByteBuffer", "org/apache/baremaps/tilestore/mbtiles/MBTiles.delete:(Lorg/apache/baremaps/tilestore/TileCoord;)V", "org/apache/baremaps/tilestore/mbtiles/MBTiles.write:(Lorg/apache/baremaps/tilestore/TileCoord;Ljava/nio/ByteBuffer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.write:(Lorg/apache/baremaps/tilestore/TileCoord;Ljava/nio/ByteBuffer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.delete:(Lorg/apache/baremaps/tilestore/TileCoord;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/tilestore/mbtiles/MBTiles.read:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/nio/ByteBuffer", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/mbtiles/MBTiles.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__533480f_75d8093__PostgresTileStoreTest_805507cd", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev2": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev1_date": "2023-05-07T12:48:39Z", "rev2_date": "2023-05-07T13:13:52Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/533480f89ce03fd77e36c3b2c6be5682b535d28b...75d8093e097992444e6b6a3eb703df0e8d907b65", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/tilestore/postgres/PostgresTileStoreTest.java", "test_changes": [{"change_id": "322_apache_incubator-baremaps-v0.8.2_533480f_75d8093_PostgresTileStoreTest", "test_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStoreTest.sameQueries:()V", "class": "PostgresTileStoreTest", "method": "sameQueries", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.postgres.PostgresTileStoreTest#sameQueries", "old_test_code": null, "new_test_code": "@Test\nvoid sameQueries() {\n List queries = Arrays.asList(new PostgresQuery(\"a\", 0, 20, \"SELECT id, tags, geom FROM table\"), new PostgresQuery(\"b\", 0, 20, \"SELECT id, tags, geom FROM table\"));\n PostgresTileStore tileStore = new PostgresTileStore(null, queries);\n String query = tileStore.withQuery(new TileCoord(0, 0, 10));\n assertEquals(\"with ha14cb45b as (select * from table where ((true) OR (true)) and st_intersects(geom, st_tileenvelope(10, 0, 0))) select st_asmvt(target, 'a', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b ) as target union all select st_asmvt(target, 'b', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b ) as target\", query);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-34"], "old_production_code": "", "new_production_code": "protected String withQuery(TileCoord tileCoord) {\n int zoom = tileCoord.z();\n String sourceQueries = ctes(queries, zoom);\n String targetQueries = statements(queries, zoom);\n String withQuery = String.format(WITH_QUERY, sourceQueries, targetQueries);\n Map variables = Map.of(\"envelope\", tileEnvelope(tileCoord), \"zoom\", String.valueOf(zoom));\n return VariableUtils.interpolate(variables, withQuery);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "focal_method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "line_nums_new": "137-145", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1815, "method_coverage_gold": 1.1828, "line_coverage_gold": 0.6368, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "325_apache_incubator-baremaps-v0.8.2_533480f_75d8093_PostgresTileStoreTest", "test_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStoreTest.differentConditions2:()V", "class": "PostgresTileStoreTest", "method": "differentConditions2", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.postgres.PostgresTileStoreTest#differentConditions2", "old_test_code": null, "new_test_code": "@Test\nvoid differentConditions2() {\n List queries = Arrays.asList(new PostgresQuery(\"a\", 0, 20, \"SELECT id, tags, geom FROM table WHERE condition = 1\"), new PostgresQuery(\"b\", 0, 20, \"SELECT id, tags, geom FROM table WHERE condition = 2\"));\n PostgresTileStore tileStore = new PostgresTileStore(null, queries);\n String query = tileStore.withQuery(new TileCoord(0, 0, 10));\n assertEquals(\"with ha14cb45b as (select * from table where ((condition = 1) OR (condition = 2)) and st_intersects(geom, st_tileenvelope(10, 0, 0))) select st_asmvt(target, 'a', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b where condition = 1) as target union all select st_asmvt(target, 'b', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b where condition = 2) as target\", query);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-58"], "old_production_code": "", "new_production_code": "protected String withQuery(TileCoord tileCoord) {\n int zoom = tileCoord.z();\n String sourceQueries = ctes(queries, zoom);\n String targetQueries = statements(queries, zoom);\n String withQuery = String.format(WITH_QUERY, sourceQueries, targetQueries);\n Map variables = Map.of(\"envelope\", tileEnvelope(tileCoord), \"zoom\", String.valueOf(zoom));\n return VariableUtils.interpolate(variables, withQuery);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "focal_method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "line_nums_new": "137-145", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1815, "method_coverage_gold": 1.2097, "line_coverage_gold": 0.6368, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "337_apache_incubator-baremaps-v0.8.2_533480f_75d8093_PostgresTileStoreTest", "test_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStoreTest.differentConditions1:()V", "class": "PostgresTileStoreTest", "method": "differentConditions1", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.tilestore.postgres.PostgresTileStoreTest#differentConditions1", "old_test_code": null, "new_test_code": "@Test\nvoid differentConditions1() {\n List queries = Arrays.asList(new PostgresQuery(\"a\", 0, 20, \"SELECT id, tags, geom FROM table\"), new PostgresQuery(\"b\", 0, 20, \"SELECT id, tags, geom FROM table WHERE condition = 1\"));\n PostgresTileStore tileStore = new PostgresTileStore(null, queries);\n String query = tileStore.withQuery(new TileCoord(0, 0, 10));\n assertEquals(\"with ha14cb45b as (select * from table where ((true) OR (condition = 1)) and st_intersects(geom, st_tileenvelope(10, 0, 0))) select st_asmvt(target, 'a', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b ) as target union all select st_asmvt(target, 'b', 4096, 'geom', 'id') from (select id as id, (tags || jsonb_build_object('geometry', lower(replace(st_geometrytype(geom), 'ST_', '')))) as tags, st_asmvtgeom(geom, st_tileenvelope(10, 0, 0), 4096, 256, true) as geom from ha14cb45b where condition = 1) as target\", query);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-46"], "old_production_code": "", "new_production_code": "protected String withQuery(TileCoord tileCoord) {\n int zoom = tileCoord.z();\n String sourceQueries = ctes(queries, zoom);\n String targetQueries = statements(queries, zoom);\n String withQuery = String.format(WITH_QUERY, sourceQueries, targetQueries);\n Map variables = Map.of(\"envelope\", tileEnvelope(tileCoord), \"zoom\", String.valueOf(zoom));\n return VariableUtils.interpolate(variables, withQuery);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "focal_method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "line_nums_new": "137-145", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1815, "method_coverage_gold": 1.2097, "line_coverage_gold": 0.6368, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/tilestore/postgres/PostgresTileStore.withQuery:(Lorg/apache/baremaps/tilestore/TileCoord;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/tilestore/postgres/PostgresTileStore.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__75d8093_cfbbe99__ProjectionTransformerTest_20a086b8", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "75d8093e097992444e6b6a3eb703df0e8d907b65", "rev2": "cfbbe996488924fce452a097bd5fe0df05af7365", "rev1_date": "2023-05-07T13:13:52Z", "rev2_date": "2023-05-07T18:10:21Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/75d8093e097992444e6b6a3eb703df0e8d907b65...cfbbe996488924fce452a097bd5fe0df05af7365", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/utils/ProjectionTransformerTest.java", "test_changes": [{"change_id": "125_apache_incubator-baremaps-v0.8.2_75d8093_cfbbe99_ProjectionTransformerTest", "test_sign": "org/apache/baremaps/utils/ProjectionTransformerTest.testPoint:()V", "class": "ProjectionTransformerTest", "method": "testPoint", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.utils.ProjectionTransformerTest#testPoint", "old_test_code": null, "new_test_code": "@Test\npublic void testPoint() {\n var inputGeom = new GeometryFactory(new PrecisionModel(), 4326).createPoint(new Coordinate(1, 1));\n var outputGeom = (Point) new ProjectionTransformer(4326, 3857).transform(inputGeom);\n assertEquals(3857, outputGeom.getSRID());\n assertEquals(111319.49079327357, outputGeom.getX());\n assertEquals(111325.14286638486, outputGeom.getY());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-33"], "old_production_code": "", "new_production_code": "protected Geometry transformPoint(Point geom, Geometry parent) {\n try {\n var geometry = super.transformPoint(geom, parent);\n return withTargetSRID(geometry);\n } catch (Exception e) {\n logger.error(\"Point cannot be reprojected\", e);\n return parent.getFactory().createEmpty(0);\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/utils/ProjectionTransformer.java", "focal_method_sign": "org/apache/baremaps/utils/ProjectionTransformer.transformPoint:(Lorg/locationtech/jts/geom/Point;Lorg/locationtech/jts/geom/Geometry;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/utils/ProjectionTransformer.transformPoint:(Lorg/locationtech/jts/geom/Point;Lorg/locationtech/jts/geom/Geometry;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/utils/ProjectionTransformer.java", "line_nums_new": "92-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.0182, "method_coverage_gold": 0.2427, "line_coverage_gold": 0.2213, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/utils/ProjectionTransformer.transformPoint:(Lorg/locationtech/jts/geom/Point;Lorg/locationtech/jts/geom/Geometry;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/utils/ProjectionTransformer.transformPoint:(Lorg/locationtech/jts/geom/Point;Lorg/locationtech/jts/geom/Geometry;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/utils/ProjectionTransformer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__b06833d_533480f__TileCoordIteratorTest_ff2228f5", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "b06833d27c992ed8d78bb2f13387fcebf2e7332b", "rev2": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev1_date": "2023-05-07T11:24:27Z", "rev2_date": "2023-05-07T12:48:39Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/b06833d27c992ed8d78bb2f13387fcebf2e7332b...533480f89ce03fd77e36c3b2c6be5682b535d28b", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/database/tile/TileCoordIteratorTest.java", "test_changes": [{"change_id": "121_apache_incubator-baremaps-v0.8.2_b06833d_533480f_TileCoordIteratorTest", "test_sign": "org/apache/baremaps/database/tile/TileCoordIteratorTest.partial:()V", "class": "TileCoordIteratorTest", "method": "partial", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.database.tile.TileCoordIteratorTest#partial", "old_test_code": null, "new_test_code": "@Test\nvoid partial() {\n Envelope e0 = new TileCoord(0, 0, 1).envelope();\n TileCoordIterator i0 = new TileCoordIterator(e0, 2, 2);\n List l0 = ImmutableList.copyOf(i0);\n assertEquals(l0.size(), 4);\n Envelope e1 = new TileCoord(1, 1, 1).envelope();\n TileCoordIterator i1 = new TileCoordIterator(e1, 2, 2);\n List l1 = ImmutableList.copyOf(i1);\n assertEquals(l1.size(), 4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-52"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n TileCoord max = max(envelope, this.z);\n return x <= max.x() && y <= max.y() && z <= maxZoom;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "focal_method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "line_nums_new": "56-60", "dependency_updated": "inserted", "score": 0.2863, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.1024}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.0509, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 0.0, "tfidf": 0.1225}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1633, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "124_apache_incubator-baremaps-v0.8.2_b06833d_533480f_TileCoordIteratorTest", "test_sign": "org/apache/baremaps/database/tile/TileCoordIteratorTest.iterator:()V", "class": "TileCoordIteratorTest", "method": "iterator", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.database.tile.TileCoordIteratorTest#iterator", "old_test_code": null, "new_test_code": "@Test\nvoid iterator() {\n Envelope e = new TileCoord(0, 0, 0).envelope();\n TileCoordIterator i0 = new TileCoordIterator(e, 0, 0);\n List l0 = ImmutableList.copyOf(i0);\n assertEquals(l0.size(), 1);\n TileCoordIterator i1 = new TileCoordIterator(e, 1, 1);\n List l1 = ImmutableList.copyOf(i1);\n assertEquals(l1.size(), 4);\n TileCoordIterator i2 = new TileCoordIterator(e, 2, 2);\n List l2 = ImmutableList.copyOf(i2);\n assertEquals(l2.size(), 16);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-39"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n TileCoord max = max(envelope, this.z);\n return x <= max.x() && y <= max.y() && z <= maxZoom;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "focal_method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "line_nums_new": "56-60", "dependency_updated": "inserted", "score": 0.2534, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0, "class": 1.0, "tfidf": 0.0625}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.056, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0506}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1633, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/database/tile/TileCoordIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoordIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__b06833d_533480f__TileCoordTest_1e7e6f79", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "b06833d27c992ed8d78bb2f13387fcebf2e7332b", "rev2": "533480f89ce03fd77e36c3b2c6be5682b535d28b", "rev1_date": "2023-05-07T11:24:27Z", "rev2_date": "2023-05-07T12:48:39Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/b06833d27c992ed8d78bb2f13387fcebf2e7332b...533480f89ce03fd77e36c3b2c6be5682b535d28b", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/database/tile/TileCoordTest.java", "test_changes": [{"change_id": "120_apache_incubator-baremaps-v0.8.2_b06833d_533480f_TileCoordTest", "test_sign": "org/apache/baremaps/database/tile/TileCoordTest.getTile:()V", "class": "TileCoordTest", "method": "getTile", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.database.tile.TileCoordTest#getTile", "old_test_code": null, "new_test_code": "@Test\nvoid getTile() {\n double lon = 0, lat = 0;\n for (int z = 0; z <= 14; z += 1) {\n TileCoord tileCoord = TileCoord.fromLonLat(lon, lat, z);\n int value = (int) Math.pow(2, z - 1);\n assertEquals(value, tileCoord.x());\n assertEquals(value, tileCoord.y());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-31"], "old_production_code": "", "new_production_code": "public static TileCoord fromLonLat(double lon, double lat, int z) {\n int x = (int) ((lon + 180.0) / 360.0 * (1 << z));\n int y = (int) ((1 - Math.log(Math.tan(Math.toRadians(lat)) + 1 / Math.cos(Math.toRadians(lat))) / Math.PI) / 2.0 * (1 << z));\n return new TileCoord(x, y, z);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "focal_method_sign": "org/apache/baremaps/database/tile/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/database/tile/TileCoord", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/database/tile/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/database/tile/TileCoord", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "131-137", "dependency_updated": "inserted", "score": 0.3117, "signal_scores": {"nc": 0.0, "lcs_u": 0.1, "ed": 0.1, "class": 1.0, "tfidf": 0.3796}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/database/tile/TileCoord.x:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "157-159", "dependency_updated": "inserted", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/database/tile/TileCoord.y:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "166-168", "dependency_updated": "inserted", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2419, "line_coverage_gold": 0.1072, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/database/tile/TileCoord.y:()I", "org/apache/baremaps/database/tile/TileCoord.x:()I", "org/apache/baremaps/database/tile/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/database/tile/TileCoord"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/database/tile/TileCoord.x:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.fromLonLat:(DDI)Lorg/apache/baremaps/database/tile/TileCoord", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.y:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "122_apache_incubator-baremaps-v0.8.2_b06833d_533480f_TileCoordTest", "test_sign": "org/apache/baremaps/database/tile/TileCoordTest.countLiechtenstein:()V", "class": "TileCoordTest", "method": "countLiechtenstein", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.database.tile.TileCoordTest#countLiechtenstein", "old_test_code": null, "new_test_code": "@Test\nvoid countLiechtenstein() {\n double minLon = 9.471078;\n double maxLon = 9.636217;\n double minLat = 47.04774;\n double maxLat = 47.27128;\n int minZoom = 12;\n int maxZoom = 14;\n Envelope envelope = new Envelope(minLon, maxLon, minLat, maxLat);\n assertEquals(TileCoord.count(envelope, minZoom, maxZoom), TileCoord.list(envelope, minZoom, maxZoom).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-50"], "old_production_code": "", "new_production_code": "public static List list(Envelope envelope, int minzoom, int maxzoom) {\n return ImmutableList.copyOf(iterator(envelope, minzoom, maxzoom));\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "focal_method_sign": "org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.5334, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.5613}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "113-121", "dependency_updated": "inserted", "score": 0.4824, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 1.0, "tfidf": 0.3058}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1996, "method_coverage_gold": 0.4839, "line_coverage_gold": 0.3405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "123_apache_incubator-baremaps-v0.8.2_b06833d_533480f_TileCoordTest", "test_sign": "org/apache/baremaps/database/tile/TileCoordTest.count:()V", "class": "TileCoordTest", "method": "count", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.database.tile.TileCoordTest#count", "old_test_code": null, "new_test_code": "@Test\nvoid count() {\n Envelope envelope = new TileCoord(0, 0, 0).envelope();\n assertEquals(TileCoord.count(envelope, 0, 2), TileCoord.list(envelope, 0, 2).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "public static long count(Envelope envelope, int minzoom, int maxzoom) {\n int count = 0;\n for (int zoom = minzoom; zoom <= maxzoom; zoom++) {\n TileCoord min = min(envelope, zoom);\n TileCoord max = max(envelope, zoom);\n count += (max.x() - min.x() + 1) * (max.y() - min.y() + 1);\n }\n return count;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "focal_method_sign": "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "113-121", "dependency_updated": "inserted", "score": 0.8568, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3914}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.378, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.2, "class": 1.0, "tfidf": 0.4788}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "line_nums_new": "193-199", "dependency_updated": "inserted", "score": 0.2717, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 1.0, "tfidf": 0.2609}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1996, "method_coverage_gold": 0.5645, "line_coverage_gold": 0.3909, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/database/tile/TileCoord.envelope:()Lorg/locationtech/jts/geom/Envelope", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.count:(Lorg/locationtech/jts/geom/Envelope;II)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/database/tile/TileCoord.list:(Lorg/locationtech/jts/geom/Envelope;II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/database/tile/TileCoord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__dceae80_572a155__NicObjectTest_27683289", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "dceae80716673faa41e52952dfea3d2de24be7e2", "rev2": "572a1557904d8290e2afa08eff04b5f3208f3990", "rev1_date": "2023-05-12T15:49:22Z", "rev2_date": "2023-05-12T21:43:10Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/dceae80716673faa41e52952dfea3d2de24be7e2...572a1557904d8290e2afa08eff04b5f3208f3990", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/iploc/NicObjectTest.java", "test_changes": [{"change_id": "165_apache_incubator-baremaps-v0.8.2_dceae80_572a155_NicObjectTest", "test_sign": "org/apache/baremaps/iploc/NicObjectTest.all:()V", "class": "NicObjectTest", "method": "all", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.iploc.NicObjectTest#all", "old_test_code": null, "new_test_code": "@Test\nvoid all() {\n NicObject nicObject = nicObjects.get(0);\n assertEquals(2, nicObject.all(\"mnt-by\").size());\n assertEquals(7, nicObject.all(\"remarks\").size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-67"], "old_production_code": "", "new_production_code": "public List all(String name) {\n return attributes.stream().filter(attribute -> attribute.name().equals(name)).map(NicAttribute::value).toList();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "focal_method_sign": "org/apache/baremaps/iploc/NicObject.all:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/iploc/NicObject.all:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "line_nums_new": "86-91", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2728, "method_coverage_gold": 0.3545, "line_coverage_gold": 0.298, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/iploc/NicObject.all:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/iploc/NicObject.all:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "166_apache_incubator-baremaps-v0.8.2_dceae80_572a155_NicObjectTest", "test_sign": "org/apache/baremaps/iploc/NicObjectTest.attributes:()V", "class": "NicObjectTest", "method": "attributes", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.iploc.NicObjectTest#attributes", "old_test_code": null, "new_test_code": "@Test\nvoid attributes() {\n assertEquals(21, nicObjects.get(0).attributes().size());\n assertEquals(15, nicObjects.get(1).attributes().size());\n assertEquals(18, nicObjects.get(2).attributes().size());\n assertEquals(23, nicObjects.get(3).attributes().size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "", "new_production_code": "public List attributes() {\n return Collections.unmodifiableList(attributes);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "focal_method_sign": "org/apache/baremaps/iploc/NicObject.attributes:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/iploc/NicObject.attributes:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2728, "method_coverage_gold": 0.2727, "line_coverage_gold": 0.2663, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/iploc/NicObject.attributes:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/iploc/NicObject.attributes:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "168_apache_incubator-baremaps-v0.8.2_dceae80_572a155_NicObjectTest", "test_sign": "org/apache/baremaps/iploc/NicObjectTest.type:()V", "class": "NicObjectTest", "method": "type", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.iploc.NicObjectTest#type", "old_test_code": null, "new_test_code": "@Test\nvoid type() {\n assertEquals(\"organisation\", nicObjects.get(0).type());\n assertEquals(\"mntner\", nicObjects.get(1).type());\n assertEquals(\"organisation\", nicObjects.get(2).type());\n assertEquals(\"inetnum\", nicObjects.get(3).type());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-37"], "old_production_code": "", "new_production_code": "public String type() {\n return attributes.get(0).name();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "focal_method_sign": "org/apache/baremaps/iploc/NicObject.type:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/iploc/NicObject.type:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "line_nums_new": "45-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2728, "method_coverage_gold": 0.3, "line_coverage_gold": 0.2727, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/iploc/NicObject.type:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/iploc/NicObject.type:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "170_apache_incubator-baremaps-v0.8.2_dceae80_572a155_NicObjectTest", "test_sign": "org/apache/baremaps/iploc/NicObjectTest.first:()V", "class": "NicObjectTest", "method": "first", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.iploc.NicObjectTest#first", "old_test_code": null, "new_test_code": "@Test\nvoid first() {\n NicObject nicObject = nicObjects.get(0);\n assertEquals(\"RIPE-NCC-HM-MNT\", nicObject.first(\"mnt-by\").get());\n assertEquals(\"****************************\", nicObject.first(\"remarks\").get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-60"], "old_production_code": "", "new_production_code": "public Optional first(String name) {\n return attributes.stream().filter(attribute -> attribute.name().equals(name)).map(NicAttribute::value).findFirst();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "focal_method_sign": "org/apache/baremaps/iploc/NicObject.first:(Ljava/lang/String;)Ljava/util/Optional", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/iploc/NicObject.first:(Ljava/lang/String;)Ljava/util/Optional", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "line_nums_new": "73-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2728, "method_coverage_gold": 0.3545, "line_coverage_gold": 0.298, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/iploc/NicObject.first:(Ljava/lang/String;)Ljava/util/Optional"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/iploc/NicObject.first:(Ljava/lang/String;)Ljava/util/Optional", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "171_apache_incubator-baremaps-v0.8.2_dceae80_572a155_NicObjectTest", "test_sign": "org/apache/baremaps/iploc/NicObjectTest.id:()V", "class": "NicObjectTest", "method": "id", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.iploc.NicObjectTest#id", "old_test_code": null, "new_test_code": "@Test\nvoid id() {\n assertEquals(\"ORG-HEDI1-RIPE\", nicObjects.get(0).id());\n assertEquals(\"ch-heig-vd-1-mnt\", nicObjects.get(1).id());\n assertEquals(\"ORG-VA29373-RIPE\", nicObjects.get(2).id());\n assertEquals(\"193.135.138.0 - 193.135.138.255\", nicObjects.get(3).id());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-45"], "old_production_code": "", "new_production_code": "public String id() {\n return attributes.get(0).value();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "focal_method_sign": "org/apache/baremaps/iploc/NicObject.id:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/iploc/NicObject.id:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "line_nums_new": "54-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2728, "method_coverage_gold": 0.3, "line_coverage_gold": 0.2727, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/iploc/NicObject.id:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/iploc/NicObject.id:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/iploc/NicObject.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__e0eecf4_d10756b__VectorTileDecoderTest_590e8a28", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "e0eecf451dfc68490fdb785449c01c0e5cbfa71c", "rev2": "d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "rev1_date": "2023-03-31T08:32:04Z", "rev2_date": "2023-03-31T16:12:57Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/e0eecf451dfc68490fdb785449c01c0e5cbfa71c...d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/vectortile/VectorTileDecoderTest.java", "test_changes": [{"change_id": "145_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodeMultiPoint:()V", "class": "VectorTileDecoderTest", "method": "decodeMultiPoint", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodeMultiPoint", "old_test_code": null, "new_test_code": "@Test\npublic void decodeMultiPoint() {\n var coordinates = new Coordinate[] { new Coordinate(5, 7), new Coordinate(3, 2) };\n var multiPoint = geometryFactory.createMultiPoint(coordinates);\n var decoder = new VectorTileDecoder();\n var encoding = List.of(17, 10, 14, 3, 9);\n assertEquals(multiPoint, decoder.decodePoint(encoding));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-56"], "old_production_code": "", "new_production_code": "protected Geometry decodePoint(List encoding) {\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n i += length;\n }\n if (coordinates.size() == 1) {\n return GEOMETRY_FACTORY.createPoint(coordinates.get(0));\n } else if (coordinates.size() > 1) {\n return GEOMETRY_FACTORY.createMultiPointFromCoords(coordinates.toArray(new Coordinate[0]));\n } else {\n throw new IllegalStateException(\"No coordinates found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "206-244", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.1319, "method_coverage_gold": 0.1672, "line_coverage_gold": 0.1781, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "146_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodePolygon:()V", "class": "VectorTileDecoderTest", "method": "decodePolygon", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodePolygon", "old_test_code": null, "new_test_code": "@Test\npublic void decodePolygon() {\n var polygon = geometryFactory.createPolygon(new Coordinate[] { new Coordinate(3, 6), new Coordinate(8, 12), new Coordinate(20, 34), new Coordinate(3, 6) });\n var decoder = new VectorTileDecoder();\n var encoding = List.of(9, 6, 12, 18, 10, 12, 24, 44, 15);\n assertEquals(polygon, decoder.decodePolygon(encoding));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-119"], "old_production_code": "", "new_production_code": "protected Geometry decodePolygon(List encoding) {\n List polygons = new ArrayList<>();\n Optional shell = Optional.empty();\n List holes = new ArrayList<>();\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n if (command == MOVE_TO || command == LINE_TO) {\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.clear();\n coordinates.add(new Coordinate(cx, cy));\n } else if (command == LINE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n i += length;\n }\n if (command == CLOSE_PATH) {\n coordinates.add(coordinates.get(0));\n LinearRing linearRing = GEOMETRY_FACTORY.createLinearRing(coordinates.toArray(new Coordinate[0]));\n boolean isShell = isClockWise(linearRing);\n if (isShell && shell.isPresent()) {\n polygons.add(GEOMETRY_FACTORY.createPolygon(shell.get(), holes.toArray(new LinearRing[0])));\n holes.clear();\n }\n if (isShell) {\n shell = Optional.of(linearRing);\n } else {\n holes.add(linearRing);\n }\n coordinates.clear();\n i++;\n }\n }\n if (shell.isPresent()) {\n polygons.add(GEOMETRY_FACTORY.createPolygon(shell.get(), holes.toArray(new LinearRing[0])));\n holes.clear();\n }\n if (polygons.size() == 1) {\n return polygons.get(0);\n } else if (polygons.size() > 1) {\n return GEOMETRY_FACTORY.createMultiPolygon(polygons.toArray(new Polygon[0]));\n } else {\n throw new IllegalStateException(\"No polygons found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "310-394", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8409090909090909, "branch_coverage_gold": 0.339, "method_coverage_gold": 0.1951, "line_coverage_gold": 0.31, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "149_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodeMultiPolygon:()V", "class": "VectorTileDecoderTest", "method": "decodeMultiPolygon", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodeMultiPolygon", "old_test_code": null, "new_test_code": "@Test\npublic void decodeMultiPolygon() {\n var multiPolygon = geometryFactory.createMultiPolygon(new Polygon[] { geometryFactory.createPolygon(new Coordinate[] { new Coordinate(0, 0), new Coordinate(10, 0), new Coordinate(10, 10), new Coordinate(0, 10), new Coordinate(0, 0) }), geometryFactory.createPolygon(geometryFactory.createLinearRing(new Coordinate[] { new Coordinate(11, 11), new Coordinate(20, 11), new Coordinate(20, 20), new Coordinate(11, 20), new Coordinate(11, 11) }), new LinearRing[] { geometryFactory.createLinearRing(new Coordinate[] { new Coordinate(13, 13), new Coordinate(13, 17), new Coordinate(17, 17), new Coordinate(17, 13), new Coordinate(13, 13) }) }) });\n var decoder = new VectorTileDecoder();\n var encoding = List.of(9, 0, 0, 26, 20, 0, 0, 20, 19, 0, 15, 9, 22, 2, 26, 18, 0, 0, 18, 17, 0, 15, 9, 4, 13, 26, 0, 8, 8, 0, 0, 7, 15);\n assertEquals(multiPolygon, decoder.decodePolygon(encoding));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-169"], "old_production_code": "", "new_production_code": "protected Geometry decodePolygon(List encoding) {\n List polygons = new ArrayList<>();\n Optional shell = Optional.empty();\n List holes = new ArrayList<>();\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n if (command == MOVE_TO || command == LINE_TO) {\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.clear();\n coordinates.add(new Coordinate(cx, cy));\n } else if (command == LINE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n i += length;\n }\n if (command == CLOSE_PATH) {\n coordinates.add(coordinates.get(0));\n LinearRing linearRing = GEOMETRY_FACTORY.createLinearRing(coordinates.toArray(new Coordinate[0]));\n boolean isShell = isClockWise(linearRing);\n if (isShell && shell.isPresent()) {\n polygons.add(GEOMETRY_FACTORY.createPolygon(shell.get(), holes.toArray(new LinearRing[0])));\n holes.clear();\n }\n if (isShell) {\n shell = Optional.of(linearRing);\n } else {\n holes.add(linearRing);\n }\n coordinates.clear();\n i++;\n }\n }\n if (shell.isPresent()) {\n polygons.add(GEOMETRY_FACTORY.createPolygon(shell.get(), holes.toArray(new LinearRing[0])));\n holes.clear();\n }\n if (polygons.size() == 1) {\n return polygons.get(0);\n } else if (polygons.size() > 1) {\n return GEOMETRY_FACTORY.createMultiPolygon(polygons.toArray(new Polygon[0]));\n } else {\n throw new IllegalStateException(\"No polygons found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "310-394", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9545454545454546, "branch_coverage_gold": 0.4144, "method_coverage_gold": 0.1951, "line_coverage_gold": 0.3429, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePolygon:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "150_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodePoint:()V", "class": "VectorTileDecoderTest", "method": "decodePoint", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodePoint", "old_test_code": null, "new_test_code": "@Test\npublic void decodePoint() {\n var coordinate = new Coordinate(25, 17);\n var point = geometryFactory.createPoint(coordinate);\n var decoder = new VectorTileDecoder();\n var encoding = List.of(9, 50, 34);\n assertEquals(point, decoder.decodePoint(encoding));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-37"], "old_production_code": "", "new_production_code": "protected Geometry decodePoint(List encoding) {\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n i += length;\n }\n if (coordinates.size() == 1) {\n return GEOMETRY_FACTORY.createPoint(coordinates.get(0));\n } else if (coordinates.size() > 1) {\n return GEOMETRY_FACTORY.createMultiPointFromCoords(coordinates.toArray(new Coordinate[0]));\n } else {\n throw new IllegalStateException(\"No coordinates found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "206-244", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.85, "branch_coverage_gold": 0.113, "method_coverage_gold": 0.1672, "line_coverage_gold": 0.1715, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodePoint:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "153_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodeLineString:()V", "class": "VectorTileDecoderTest", "method": "decodeLineString", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodeLineString", "old_test_code": null, "new_test_code": "@Test\npublic void decodeLineString() {\n var lineString = geometryFactory.createLineString(new Coordinate[] { new Coordinate(2, 2), new Coordinate(2, 10), new Coordinate(10, 10) });\n var decoder = new VectorTileDecoder();\n assertEquals(lineString, decoder.decodeLineString(List.of(9, 4, 4, 18, 0, 16, 16, 0)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-74"], "old_production_code": "", "new_production_code": "protected Geometry decodeLineString(List encoding) {\n List lineStrings = new ArrayList<>();\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.clear();\n coordinates.add(new Coordinate(cx, cy));\n } else if (command == LINE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n if (coordinates.size() > 1) {\n lineStrings.add(GEOMETRY_FACTORY.createLineString(coordinates.toArray(new Coordinate[0])));\n }\n i += length;\n }\n if (lineStrings.size() == 1) {\n return lineStrings.get(0);\n } else if (lineStrings.size() > 1) {\n return GEOMETRY_FACTORY.createMultiLineString(lineStrings.toArray(new LineString[0]));\n } else {\n throw new IllegalStateException(\"No linestrings found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "252-302", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8846153846153846, "branch_coverage_gold": 0.1884, "method_coverage_gold": 0.1672, "line_coverage_gold": 0.211, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "155_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileDecoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileDecoderTest.decodeMultiLineString:()V", "class": "VectorTileDecoderTest", "method": "decodeMultiLineString", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileDecoderTest#decodeMultiLineString", "old_test_code": null, "new_test_code": "@Test\npublic void decodeMultiLineString() {\n var lineString1 = geometryFactory.createLineString(new Coordinate[] { new Coordinate(2, 2), new Coordinate(2, 10), new Coordinate(10, 10) });\n ;\n var lineString2 = geometryFactory.createLineString(new Coordinate[] { new Coordinate(1, 1), new Coordinate(3, 5) });\n var multiLineString = geometryFactory.createMultiLineString(new LineString[] { lineString1, lineString2 });\n var decoder = new VectorTileDecoder();\n var encoding = List.of(9, 4, 4, 18, 0, 16, 16, 0, 9, 17, 17, 10, 4, 8);\n assertEquals(multiLineString, decoder.decodeLineString(encoding));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-99"], "old_production_code": "", "new_production_code": "protected Geometry decodeLineString(List encoding) {\n List lineStrings = new ArrayList<>();\n List coordinates = new ArrayList<>();\n int i = 0;\n while (i < encoding.size()) {\n int value = encoding.get(i);\n int command = command(value);\n int count = count(value);\n i++;\n int length = count * 2;\n for (int j = 0; j < length; j += 2) {\n cx += parameter(encoding.get(i + j));\n cy += parameter(encoding.get(i + j + 1));\n if (command == MOVE_TO) {\n coordinates.clear();\n coordinates.add(new Coordinate(cx, cy));\n } else if (command == LINE_TO) {\n coordinates.add(new Coordinate(cx, cy));\n }\n }\n if (coordinates.size() > 1) {\n lineStrings.add(GEOMETRY_FACTORY.createLineString(coordinates.toArray(new Coordinate[0])));\n }\n i += length;\n }\n if (lineStrings.size() == 1) {\n return lineStrings.get(0);\n } else if (lineStrings.size() > 1) {\n return GEOMETRY_FACTORY.createMultiLineString(lineStrings.toArray(new LineString[0]));\n } else {\n throw new IllegalStateException(\"No linestrings found.\");\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "252-302", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 0.2072, "method_coverage_gold": 0.1672, "line_coverage_gold": 0.2176, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeLineString:(Ljava/util/List;)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__e0eecf4_d10756b__VectorTileEncoderTest_ac22c168", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "e0eecf451dfc68490fdb785449c01c0e5cbfa71c", "rev2": "d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "rev1_date": "2023-03-31T08:32:04Z", "rev2_date": "2023-03-31T16:12:57Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/e0eecf451dfc68490fdb785449c01c0e5cbfa71c...d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/vectortile/VectorTileEncoderTest.java", "test_changes": [{"change_id": "142_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodeMultiPoint:()V", "class": "VectorTileEncoderTest", "method": "encodeMultiPoint", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodeMultiPoint", "old_test_code": null, "new_test_code": "@Test\npublic void encodeMultiPoint() {\n var coordinates = new Coordinate[] { new Coordinate(5, 7), new Coordinate(3, 2) };\n var multiPoint = geometryFactory.createMultiPoint(coordinates);\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodeMultiPoint(multiPoint, encoding::add);\n assertEquals(List.of(17, 10, 14, 3, 9), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-59"], "old_production_code": "", "new_production_code": "protected void encodeMultiPoint(MultiPoint multiPoint, Consumer encoding) {\n List coordinates = List.of(multiPoint.getCoordinates());\n encoding.accept(command(MOVE_TO, coordinates.size()));\n encodeCoordinates(coordinates, encoding);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPoint:(Lorg/locationtech/jts/geom/MultiPoint;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPoint:(Lorg/locationtech/jts/geom/MultiPoint;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "221-225", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0377, "method_coverage_gold": 0.1394, "line_coverage_gold": 0.1385, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPoint:(Lorg/locationtech/jts/geom/MultiPoint;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPoint:(Lorg/locationtech/jts/geom/MultiPoint;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "143_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodeLineString:()V", "class": "VectorTileEncoderTest", "method": "encodeLineString", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodeLineString", "old_test_code": null, "new_test_code": "@Test\npublic void encodeLineString() {\n var lineString = geometryFactory.createLineString(new Coordinate[] { new Coordinate(2, 2), new Coordinate(2, 10), new Coordinate(10, 10) });\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodeLineString(lineString, encoding::add);\n assertEquals(List.of(9, 4, 4, 18, 0, 16, 16, 0), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-79"], "old_production_code": "", "new_production_code": "protected void encodeLineString(LineString lineString, Consumer encoding) {\n List coordinates = List.of(lineString.getCoordinates());\n encoding.accept(command(MOVE_TO, 1));\n encodeCoordinates(coordinates.subList(0, 1), encoding);\n encoding.accept(command(LINE_TO, coordinates.size() - 1));\n encodeCoordinates(coordinates.subList(1, coordinates.size()), encoding);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeLineString:(Lorg/locationtech/jts/geom/LineString;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeLineString:(Lorg/locationtech/jts/geom/LineString;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "233-239", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0377, "method_coverage_gold": 0.1394, "line_coverage_gold": 0.1517, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodeLineString:(Lorg/locationtech/jts/geom/LineString;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeLineString:(Lorg/locationtech/jts/geom/LineString;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "144_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodePolygon:()V", "class": "VectorTileEncoderTest", "method": "encodePolygon", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodePolygon", "old_test_code": null, "new_test_code": "@Test\npublic void encodePolygon() {\n var polygon = geometryFactory.createPolygon(new Coordinate[] { new Coordinate(3, 6), new Coordinate(8, 12), new Coordinate(20, 34), new Coordinate(3, 6) });\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodePolygon(polygon, encoding::add);\n assertEquals(List.of(9, 6, 12, 18, 10, 12, 24, 44, 15), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-126"], "old_production_code": "", "new_production_code": "protected void encodePolygon(Polygon polygon, Consumer encoding) {\n LinearRing exteriorRing = polygon.getExteriorRing();\n List exteriorRingCoordinates = List.of(exteriorRing.getCoordinates());\n if (!isClockWise(exteriorRing)) {\n exteriorRingCoordinates = Lists.reverse(exteriorRingCoordinates);\n }\n encodeRing(exteriorRingCoordinates, encoding);\n for (int i = 0; i < polygon.getNumInteriorRing(); i++) {\n LinearRing interiorRing = polygon.getInteriorRingN(i);\n List interiorRingCoordinates = List.of(interiorRing.getCoordinates());\n if (isClockWise(interiorRing)) {\n interiorRingCoordinates = Lists.reverse(exteriorRingCoordinates);\n }\n encodeRing(interiorRingCoordinates, encoding);\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePolygon:(Lorg/locationtech/jts/geom/Polygon;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePolygon:(Lorg/locationtech/jts/geom/Polygon;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "263-285", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.0753, "method_coverage_gold": 0.1951, "line_coverage_gold": 0.211, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodePolygon:(Lorg/locationtech/jts/geom/Polygon;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePolygon:(Lorg/locationtech/jts/geom/Polygon;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "148_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodePoint:()V", "class": "VectorTileEncoderTest", "method": "encodePoint", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodePoint", "old_test_code": null, "new_test_code": "@Test\npublic void encodePoint() {\n var coordinate = new Coordinate(25, 17);\n var point = geometryFactory.createPoint(coordinate);\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodePoint(point, encoding::add);\n assertEquals(List.of(9, 50, 34), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-39"], "old_production_code": "", "new_production_code": "protected void encodePoint(Point point, Consumer encoding) {\n encoding.accept(command(MOVE_TO, 1));\n Coordinate coordinate = point.getCoordinate();\n int dx = (int) Math.round(coordinate.getX()) - cx;\n int dy = (int) Math.round(coordinate.getY()) - cy;\n encoding.accept(parameter(dx));\n encoding.accept(parameter(dy));\n cx += dx;\n cy += dy;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePoint:(Lorg/locationtech/jts/geom/Point;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePoint:(Lorg/locationtech/jts/geom/Point;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "204-213", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1115, "line_coverage_gold": 0.1121, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodePoint:(Lorg/locationtech/jts/geom/Point;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodePoint:(Lorg/locationtech/jts/geom/Point;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "152_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodeMultiPolygon:()V", "class": "VectorTileEncoderTest", "method": "encodeMultiPolygon", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodeMultiPolygon", "old_test_code": null, "new_test_code": "@Test\npublic void encodeMultiPolygon() {\n var multiPolygon = geometryFactory.createMultiPolygon(new Polygon[] { geometryFactory.createPolygon(new Coordinate[] { new Coordinate(0, 0), new Coordinate(10, 0), new Coordinate(10, 10), new Coordinate(0, 10), new Coordinate(0, 0) }), geometryFactory.createPolygon(geometryFactory.createLinearRing(new Coordinate[] { new Coordinate(11, 11), new Coordinate(20, 11), new Coordinate(20, 20), new Coordinate(11, 20), new Coordinate(11, 11) }), new LinearRing[] { geometryFactory.createLinearRing(new Coordinate[] { new Coordinate(13, 13), new Coordinate(13, 17), new Coordinate(17, 17), new Coordinate(17, 13), new Coordinate(13, 13) }) }) });\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodeMultiPolygon(multiPolygon, encoding::add);\n assertEquals(List.of(9, 0, 0, 26, 20, 0, 0, 20, 19, 0, 15, 9, 22, 2, 26, 18, 0, 0, 18, 17, 0, 15, 9, 4, 13, 26, 0, 8, 8, 0, 0, 7, 15), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["138-177"], "old_production_code": "", "new_production_code": "protected void encodeMultiPolygon(MultiPolygon multiPolygon, Consumer encoding) {\n for (int i = 0; i < multiPolygon.getNumGeometries(); i++) {\n Geometry geometry = multiPolygon.getGeometryN(i);\n if (geometry instanceof Polygon polygon) {\n encodePolygon(polygon, encoding);\n }\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPolygon:(Lorg/locationtech/jts/geom/MultiPolygon;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPolygon:(Lorg/locationtech/jts/geom/MultiPolygon;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "314-321", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1695, "method_coverage_gold": 0.223, "line_coverage_gold": 0.2704, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPolygon:(Lorg/locationtech/jts/geom/MultiPolygon;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiPolygon:(Lorg/locationtech/jts/geom/MultiPolygon;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "156_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileEncoderTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileEncoderTest.encodeMultiLineString:()V", "class": "VectorTileEncoderTest", "method": "encodeMultiLineString", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileEncoderTest#encodeMultiLineString", "old_test_code": null, "new_test_code": "@Test\npublic void encodeMultiLineString() {\n var lineString1 = geometryFactory.createLineString(new Coordinate[] { new Coordinate(2, 2), new Coordinate(2, 10), new Coordinate(10, 10) });\n ;\n var lineString2 = geometryFactory.createLineString(new Coordinate[] { new Coordinate(1, 1), new Coordinate(3, 5) });\n var multiLineString = geometryFactory.createMultiLineString(new LineString[] { lineString1, lineString2 });\n var encoder = new VectorTileEncoder();\n var encoding = new ArrayList();\n encoder.encodeMultiLineString(multiLineString, encoding::add);\n assertEquals(List.of(9, 4, 4, 18, 0, 16, 16, 0, 9, 17, 17, 10, 4, 8), encoding);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-105"], "old_production_code": "", "new_production_code": "protected void encodeMultiLineString(MultiLineString multiLineString, Consumer encoding) {\n for (int i = 0; i < multiLineString.getNumGeometries(); i++) {\n Geometry geometry = multiLineString.getGeometryN(i);\n if (geometry instanceof LineString lineString) {\n encodeLineString(lineString, encoding);\n }\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiLineString:(Lorg/locationtech/jts/geom/MultiLineString;Ljava/util/function/Consumer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiLineString:(Lorg/locationtech/jts/geom/MultiLineString;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "247-255", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0942, "method_coverage_gold": 0.1672, "line_coverage_gold": 0.1847, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiLineString:(Lorg/locationtech/jts/geom/MultiLineString;Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeMultiLineString:(Lorg/locationtech/jts/geom/MultiLineString;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__e0eecf4_d10756b__VectorTileTest_74886aef", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "e0eecf451dfc68490fdb785449c01c0e5cbfa71c", "rev2": "d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "rev1_date": "2023-03-31T08:32:04Z", "rev2_date": "2023-03-31T16:12:57Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/e0eecf451dfc68490fdb785449c01c0e5cbfa71c...d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/vectortile/VectorTileTest.java", "test_changes": [{"change_id": "147_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileTest.file:()V", "class": "VectorTileTest", "method": "file", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileTest#file", "old_test_code": null, "new_test_code": "@Test\npublic void file() throws IOException {\n var path = Path.of(\"src/test/resources/vectortile/14-8493-5795.mvt\");\n try (var input = new GZIPInputStream(Files.newInputStream(path))) {\n var buffer = ByteBuffer.wrap(input.readAllBytes());\n var parsed = org.apache.baremaps.mvt.binary.VectorTile.Tile.parseFrom(buffer);\n var tile = new VectorTileDecoder().decodeTile(parsed);\n assertNotNull(tile);\n assertEquals(13, tile.getLayers().size());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-60"], "old_production_code": "", "new_production_code": "public Tile decodeTile(VectorTile.Tile tile) {\n List layers = tile.getLayersList().stream().map(this::decodeLayer).collect(Collectors.toList());\n return new Tile(layers);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "70-75", "dependency_updated": "inserted", "score": 0.1584, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.3, "class": 0.0, "tfidf": 0.2382}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/Tile.getLayers:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/Tile.java", "line_nums_new": "37-39", "dependency_updated": "inserted", "score": 0.0822, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.2222, "class": 0.0, "tfidf": 0.0271}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.3357, "method_coverage_gold": 1.8395, "line_coverage_gold": 2.5457, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/Tile.getLayers:()Ljava/util/List", "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/Tile.getLayers:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/Tile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "151_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileTest.endToEnd:()V", "class": "VectorTileTest", "method": "endToEnd", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileTest#endToEnd", "old_test_code": null, "new_test_code": "@Test\npublic void endToEnd() {\n var tile = new Tile(List.of(new Layer(\"layer\", 256, List.of(new Feature(1, Map.of(\"a\", 1.0, \"b\", \"2\"), GEOMETRY_FACTORY.createPoint(new Coordinate(1, 2))), new Feature(2, Map.of(\"c\", 3.0, \"d\", \"4\"), GEOMETRY_FACTORY.createPoint(new Coordinate(2, 3)))))));\n var encoded = new VectorTileEncoder().encodeTile(tile);\n var decoded = new VectorTileDecoder().decodeTile(encoded);\n assertEquals(tile, decoded);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-48"], "old_production_code": "", "new_production_code": "public VectorTile.Tile encodeTile(Tile tile) {\n VectorTile.Tile.Builder builder = VectorTile.Tile.newBuilder();\n tile.getLayers().forEach(layer -> builder.addLayers(encodeLayer(layer)));\n return builder.build();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeTile:(Lorg/apache/baremaps/vectortile/Tile;)Lorg/apache/baremaps/mvt/binary/VectorTile$Tile", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeTile:(Lorg/apache/baremaps/vectortile/Tile;)Lorg/apache/baremaps/mvt/binary/VectorTile$Tile", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "line_nums_new": "54-58", "dependency_updated": "inserted", "score": 0.1932, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.3, "class": 0.0, "tfidf": 0.2362}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "line_nums_new": "70-75", "dependency_updated": "inserted", "score": 0.179, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.2, "class": 0.0, "tfidf": 0.3208}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/Tile.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/Tile.java", "line_nums_new": "50-58", "dependency_updated": "inserted", "score": 0.0962, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.125, "class": 0.0, "tfidf": 0.1962}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 2.2791, "method_coverage_gold": 3.5674, "line_coverage_gold": 3.2513, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileEncoder.encodeTile:(Lorg/apache/baremaps/vectortile/Tile;)Lorg/apache/baremaps/mvt/binary/VectorTile$Tile", "org/apache/baremaps/vectortile/Tile.equals:(Ljava/lang/Object;)Z", "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/Tile.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/Tile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/vectortile/VectorTileDecoder.decodeTile:(Lorg/apache/baremaps/mvt/binary/VectorTile$Tile;)Lorg/apache/baremaps/vectortile/Tile", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileDecoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/vectortile/VectorTileEncoder.encodeTile:(Lorg/apache/baremaps/vectortile/Tile;)Lorg/apache/baremaps/mvt/binary/VectorTile$Tile", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileEncoder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__e0eecf4_d10756b__VectorTileUtilsTest_0ef69329", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "e0eecf451dfc68490fdb785449c01c0e5cbfa71c", "rev2": "d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "rev1_date": "2023-03-31T08:32:04Z", "rev2_date": "2023-03-31T16:12:57Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/e0eecf451dfc68490fdb785449c01c0e5cbfa71c...d10756b3581e46d4003650d2d1ab2ecbd5c3a3cd", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/vectortile/VectorTileUtilsTest.java", "test_changes": [{"change_id": "154_apache_incubator-baremaps-v0.8.2_e0eecf4_d10756b_VectorTileUtilsTest", "test_sign": "org/apache/baremaps/vectortile/VectorTileUtilsTest.vectorTileGeom:()V", "class": "VectorTileUtilsTest", "method": "vectorTileGeom", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.vectortile.VectorTileUtilsTest#vectorTileGeom", "old_test_code": null, "new_test_code": "@Test\nvoid vectorTileGeom() {\n var coordinates = new Coordinate[] { new Coordinate(1, 1), new Coordinate(5, 9), new Coordinate(9, 1), new Coordinate(1, 1) };\n var geometryFactory = new GeometryFactory();\n var inputGeom = geometryFactory.createPolygon(coordinates);\n var envelope = new Envelope(0, 10, 0, 10);\n var extent = 100;\n var buffer = 10;\n var clipGeom = true;\n var outputGeom = VectorTileUtils.asVectorTileGeom(inputGeom, envelope, extent, buffer, clipGeom);\n assertNotNull(outputGeom);\n assertTrue(outputGeom.isValid());\n Coordinate[] expectedCoordinates = new Coordinate[] { new Coordinate(10, 90), new Coordinate(90, 90), new Coordinate(50, 10), new Coordinate(10, 90) };\n LinearRing expectedShell = geometryFactory.createLinearRing(expectedCoordinates);\n Polygon expectedGeom = geometryFactory.createPolygon(expectedShell);\n assertTrue(outputGeom.equalsTopo(expectedGeom));\n var backToInputGeom = VectorTileUtils.fromVectorTileGeom(outputGeom, envelope, extent);\n assertTrue(backToInputGeom.equalsTopo(inputGeom));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-68"], "old_production_code": "", "new_production_code": "public static Geometry asVectorTileGeom(Geometry geometry, Envelope envelope, int extent, int buffer, boolean clipGeom) {\n double scaleX = extent / envelope.getWidth();\n double scaleY = extent / envelope.getHeight();\n AffineTransformation affineTransformation = new AffineTransformation();\n affineTransformation.translate(-envelope.getMinX(), -envelope.getMinY());\n affineTransformation.scale(scaleX, -scaleY);\n affineTransformation.translate(0, extent);\n Geometry scaledGeometry = affineTransformation.transform(geometry);\n if (clipGeom) {\n return clipToTile(scaledGeometry, extent, buffer);\n } else {\n return scaledGeometry;\n }\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileUtils.java", "focal_method_sign": "org/apache/baremaps/vectortile/VectorTileUtils.asVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;IIZ)Lorg/locationtech/jts/geom/Geometry", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/vectortile/VectorTileUtils.asVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;IIZ)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileUtils.java", "line_nums_new": "43-60", "dependency_updated": "inserted", "score": 0.5118, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.875, "class": 1.0, "tfidf": 0.1062}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/vectortile/VectorTileUtils.fromVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;I)Lorg/locationtech/jts/geom/Geometry", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileUtils.java", "line_nums_new": "70-82", "dependency_updated": "inserted", "score": 0.4739, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.7778, "class": 1.0, "tfidf": 0.0861}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 0.0188, "method_coverage_gold": 0.0836, "line_coverage_gold": 0.1385, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/vectortile/VectorTileUtils.asVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;IIZ)Lorg/locationtech/jts/geom/Geometry", "org/apache/baremaps/vectortile/VectorTileUtils.fromVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;I)Lorg/locationtech/jts/geom/Geometry"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/vectortile/VectorTileUtils.fromVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;I)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/vectortile/VectorTileUtils.asVectorTileGeom:(Lorg/locationtech/jts/geom/Geometry;Lorg/locationtech/jts/geom/Envelope;IIZ)Lorg/locationtech/jts/geom/Geometry", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/vectortile/VectorTileUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__f2fb634_de8f562__DataTableIndexTest_6612e7cf", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4", "rev2": "de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "rev1_date": "2024-11-05T20:54:41Z", "rev2_date": "2024-11-06T08:08:56Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4...de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/geocoder/DataTableIndexTest.java", "test_changes": [{"change_id": "346_apache_incubator-baremaps-v0.8.2_f2fb634_de8f562_DataTableIndexTest", "test_sign": "org/apache/baremaps/geocoder/DataTableIndexTest.testQueryNoHits:()V", "class": "DataTableIndexTest", "method": "testQueryNoHits", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.geocoder.DataTableIndexTest#testQueryNoHits", "old_test_code": null, "new_test_code": "@Test\nvoid testQueryNoHits() throws Exception {\n var geonamesQuery = new DataTableQueryBuilder().column(\"continent\", 1.0f).query(\"test\").build();\n var topDocs = searcher.search(geonamesQuery, 1);\n assertEquals(0, topDocs.totalHits.value);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-81"], "old_production_code": "", "new_production_code": "public DataTableQueryBuilder query(String query) {\n this.query = query;\n return this;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "focal_method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.query:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.query:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "line_nums_new": "112-115", "dependency_updated": "inserted", "score": 0.2876, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4545, "class": 0.0, "tfidf": 0.1543}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.build:()Lorg/apache/lucene/search/Query", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "line_nums_new": "122-132", "dependency_updated": "inserted", "score": 0.1397, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1818, "class": 0.0, "tfidf": 0.1665}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.column:(Ljava/lang/String;F)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "line_nums_new": "101-104", "dependency_updated": "inserted", "score": 0.0997, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0909, "class": 0.0, "tfidf": 0.1102}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.6534, "method_coverage_gold": 2.4546, "line_coverage_gold": 2.4274, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/geocoder/DataTableQueryBuilder.query:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "org/apache/baremaps/geocoder/DataTableQueryBuilder.build:()Lorg/apache/lucene/search/Query", "org/apache/baremaps/geocoder/DataTableQueryBuilder.column:(Ljava/lang/String;F)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.query:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.column:(Ljava/lang/String;F)Lorg/apache/baremaps/geocoder/DataTableQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/DataTableQueryBuilder.build:()Lorg/apache/lucene/search/Query", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/DataTableQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__f2fb634_de8f562__GeonamesIndexTest_f9ca923e", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4", "rev2": "de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "rev1_date": "2024-11-05T20:54:41Z", "rev2_date": "2024-11-06T08:08:56Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4...de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/geocoder/geonames/GeonamesIndexTest.java", "test_changes": [{"change_id": "345_apache_incubator-baremaps-v0.8.2_f2fb634_de8f562_GeonamesIndexTest", "test_sign": "org/apache/baremaps/geocoder/geonames/GeonamesIndexTest.testOrQuery:()V", "class": "GeonamesIndexTest", "method": "testOrQuery", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.geocoder.geonames.GeonamesIndexTest#testOrQuery", "old_test_code": null, "new_test_code": "@Test\nvoid testOrQuery() throws Exception {\n var geonamesQuery = new GeonamesQueryBuilder().queryText(\"bains cheseaux\").countryCode(\"CH\").build();\n var topDocs = searcher.search(geonamesQuery, 2);\n assertEquals(2, topDocs.totalHits.value);\n var doc0 = searcher.doc(topDocs.scoreDocs[0].doc);\n assertEquals(\"Yverdon-les-bains\", doc0.getField(\"name\").stringValue());\n var doc1 = searcher.doc(topDocs.scoreDocs[1].doc);\n assertEquals(\"Route de Cheseaux 1\", doc1.getField(\"name\").stringValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-85"], "old_production_code": "", "new_production_code": "public GeonamesQueryBuilder queryText(String queryText) {\n this.queryText = queryText;\n return this;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "focal_method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "65-68", "dependency_updated": "inserted", "score": 0.1708, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.3333, "class": 0.0, "tfidf": 0.0758}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "70-73", "dependency_updated": "inserted", "score": 0.1119, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.1818, "class": 0.0, "tfidf": 0.0758}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "96-143", "dependency_updated": "inserted", "score": 0.0905, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1429, "class": 0.0, "tfidf": 0.1345}}], "coverage_gold": 0.6774193548387096, "branch_coverage_gold": 1.1482, "method_coverage_gold": 5.9765, "line_coverage_gold": 3.6307, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "347_apache_incubator-baremaps-v0.8.2_f2fb634_de8f562_GeonamesIndexTest", "test_sign": "org/apache/baremaps/geocoder/geonames/GeonamesIndexTest.testCreateIndex:()V", "class": "GeonamesIndexTest", "method": "testCreateIndex", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.geocoder.geonames.GeonamesIndexTest#testCreateIndex", "old_test_code": null, "new_test_code": "@Test\nvoid testCreateIndex() throws Exception {\n var geonamesQuery = new GeonamesQueryBuilder().queryText(\"yverdon\").countryCode(\"CH\").build();\n var topDocs = searcher.search(geonamesQuery, 1);\n var doc = searcher.doc(Arrays.stream(topDocs.scoreDocs).findFirst().get().doc);\n assertEquals(\"Yverdon-les-bains\", doc.getField(\"name\").stringValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-71"], "old_production_code": "", "new_production_code": "public Query build() throws ParseException {\n var builder = new BooleanQuery.Builder();\n if (queryText != null) {\n var queryTextEsc = QueryParserBase.escape(queryText);\n if (!queryTextEsc.isBlank()) {\n var fieldWeights = Map.of(\"name\", 1f, \"asciiname\", 1f, \"country\", 1f, \"countryCode\", 1f);\n var parser = new SimpleQueryParser(analyzer, fieldWeights);\n if (andOperator) {\n parser.setDefaultOperator(BooleanClause.Occur.MUST);\n }\n var termsQuery = parser.parse(queryTextEsc);\n builder.add(termsQuery, BooleanClause.Occur.MUST);\n }\n }\n if (countryCode != null) {\n var countryCodeEsc = QueryParserBase.escape(countryCode);\n if (!countryCodeEsc.isBlank()) {\n var countryCodeQuery = new TermQuery(new Term(\"countryCode\", countryCodeEsc));\n builder.add(countryCodeQuery, BooleanClause.Occur.MUST);\n }\n }\n if (!Strings.isNullOrEmpty(featureCode)) {\n var featureCodeQuery = new TermQuery(new Term(\"featureCode\", featureCode));\n builder.add(featureCodeQuery, BooleanClause.Occur.MUST);\n }\n if (scoringByPopulation) {\n var query = builder.build();\n Expression expr = JavascriptCompiler.compile(\"_score + ln(1+population)\");\n var bindings = new SimpleBindings();\n bindings.add(\"_score\", DoubleValuesSource.SCORES);\n bindings.add(\"population\", DoubleValuesSource.fromIntField(\"population\"));\n return new FunctionScoreQuery(query, expr.getDoubleValuesSource(bindings));\n }\n return builder.build();\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "focal_method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "96-143", "dependency_updated": "inserted", "score": 0.1351, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1818, "class": 0.0, "tfidf": 0.1468}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "70-73", "dependency_updated": "inserted", "score": 0.1339, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 0.0, "tfidf": 0.1054}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "65-68", "dependency_updated": "inserted", "score": 0.1332, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1818, "class": 0.0, "tfidf": 0.1054}}], "coverage_gold": 0.6774193548387096, "branch_coverage_gold": 1.1482, "method_coverage_gold": 5.9765, "line_coverage_gold": 3.6307, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "351_apache_incubator-baremaps-v0.8.2_f2fb634_de8f562_GeonamesIndexTest", "test_sign": "org/apache/baremaps/geocoder/geonames/GeonamesIndexTest.testAndQueryNoHits:()V", "class": "GeonamesIndexTest", "method": "testAndQueryNoHits", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.geocoder.geonames.GeonamesIndexTest#testAndQueryNoHits", "old_test_code": null, "new_test_code": "@Test\nvoid testAndQueryNoHits() throws Exception {\n var geonamesQuery = new GeonamesQueryBuilder().queryText(\"bains cheseaux\").andOperator().countryCode(\"CH\").build();\n var topDocs = searcher.search(geonamesQuery, 1);\n assertEquals(0, topDocs.totalHits.value);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["87-96"], "old_production_code": "", "new_production_code": "public GeonamesQueryBuilder queryText(String queryText) {\n this.queryText = queryText;\n return this;\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "focal_method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "65-68", "dependency_updated": "inserted", "score": 0.2252, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.4286, "class": 0.0, "tfidf": 0.1571}}, {"dep_id": 2, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.andOperator:()Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.2101, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.4286, "class": 0.0, "tfidf": 0.1837}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "70-73", "dependency_updated": "inserted", "score": 0.1364, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2143, "class": 0.0, "tfidf": 0.1571}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "line_nums_new": "96-143", "dependency_updated": "inserted", "score": 0.1331, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1429, "class": 0.0, "tfidf": 0.1658}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 1.1482, "method_coverage_gold": 6.0832, "line_coverage_gold": 3.6929, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.andOperator:()Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.countryCode:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.build:()Lorg/apache/lucene/search/Query", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.andOperator:()Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.queryText:(Ljava/lang/String;)Lorg/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesQueryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apache_incubator-baremaps-v0.8.2__f2fb634_de8f562__GeonamesReaderTest_ecae1311", "project_name": "apache_incubator-baremaps-v0.8.2", "git_clone_url": "https://github.com/apache/incubator-baremaps.git", "rev1": "f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4", "rev2": "de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "rev1_date": "2024-11-05T20:54:41Z", "rev2_date": "2024-11-06T08:08:56Z", "git_diff_url": "https://github.com/apache/incubator-baremaps/compare/f2fb634fb0a7f1c5398d6c7df9b0b9f2b938e8f4...de8f5629039a7ea7dc6ec93aed7a43bb26809ebb", "test_file": "baremaps-core/src/test/java/org/apache/baremaps/geocoder/geonames/GeonamesReaderTest.java", "test_changes": [{"change_id": "348_apache_incubator-baremaps-v0.8.2_f2fb634_de8f562_GeonamesReaderTest", "test_sign": "org/apache/baremaps/geocoder/geonames/GeonamesReaderTest.read:()V", "class": "GeonamesReaderTest", "method": "read", "module": "baremaps-core", "junit_selector": "org.apache.baremaps.geocoder.geonames.GeonamesReaderTest#read", "old_test_code": null, "new_test_code": "@Test\nvoid read() throws IOException {\n var data = TestFiles.resolve(\"baremaps-testing/data/geonames/sample.txt\");\n try (var inputStream = Files.newInputStream(data)) {\n var reader = new GeonamesReader();\n var stream = reader.stream(inputStream);\n var list = stream.toList();\n assertEquals(5, list.size());\n var entry = list.get(0);\n assertEquals(1, entry.getGeonameid());\n assertEquals(\"HEIG\", entry.getAsciiname());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-43"], "old_production_code": "", "new_production_code": "public Stream stream(InputStream inputStream) throws IOException {\n CsvMapper mapper = new CsvMapper();\n CsvSchema schema = CsvSchema.builder().addColumn(\"geonameid\").addColumn(\"name\").addColumn(\"asciiname\").addColumn(\"alternatenames\").addColumn(\"latitude\").addColumn(\"longitude\").addColumn(\"featureClass\").addColumn(\"featureCode\").addColumn(\"countryCode\").addColumn(\"cc2\").addColumn(\"admin1Code\").addColumn(\"admin2Code\").addColumn(\"admin3Code\").addColumn(\"admin4Code\").addColumn(\"population\").addColumn(\"elevation\").addColumn(\"dem\").addColumn(\"timezone\").addColumn(\"modificationDate\").build().withColumnSeparator('\\t').withoutQuoteChar();\n var reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));\n MappingIterator recordIterator = mapper.readerFor(GeonamesEntry.class).with(schema).readValues(reader);\n Spliterator recordSpliterator = Spliterators.spliteratorUnknownSize(recordIterator, 0);\n return StreamSupport.stream(recordSpliterator, false);\n}", "focal_file_path": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesReader.java", "focal_method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesReader.stream:(Ljava/io/InputStream;)Ljava/util/stream/Stream", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesReader.stream:(Ljava/io/InputStream;)Ljava/util/stream/Stream", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesReader.java", "line_nums_new": "40-76", "dependency_updated": "inserted", "score": 0.375, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.0689}}, {"dep_id": 1, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesEntry.getGeonameid:()Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesEntry.java", "line_nums_new": "91-93", "dependency_updated": "inserted", "score": 0.0925, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.25, "class": 0.0, "tfidf": 0.0308}}, {"dep_id": 0, "method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesEntry.getAsciiname:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesEntry.java", "line_nums_new": "107-109", "dependency_updated": "inserted", "score": 0.0641, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.1667, "class": 0.0, "tfidf": 0.0308}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.5614, "line_coverage_gold": 1.556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apache/baremaps/geocoder/geonames/GeonamesEntry.getGeonameid:()Ljava/lang/Integer", "org/apache/baremaps/geocoder/geonames/GeonamesReader.stream:(Ljava/io/InputStream;)Ljava/util/stream/Stream", "org/apache/baremaps/geocoder/geonames/GeonamesEntry.getAsciiname:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesEntry.getAsciiname:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesEntry.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesEntry.getGeonameid:()Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesEntry.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/apache/baremaps/geocoder/geonames/GeonamesReader.stream:(Ljava/io/InputStream;)Ljava/util/stream/Stream", "change_type": "ADD", "file_path_old": null, "file_path_new": "baremaps-core/src/main/java/org/apache/baremaps/geocoder/geonames/GeonamesReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2", "java_version": 17} {"task_id": "apilayer_restcountries-2.0.5__bd4708f_92f75e4__CountryServiceTest_26f34282", "project_name": "apilayer_restcountries-2.0.5", "git_clone_url": "https://github.com/apilayer/restcountries.git", "rev1": "bd4708fe5c33fa8d4c71cb0639fdf94a091a99c9", "rev2": "92f75e472737a078f0efc1421ca4bb63a468f2d5", "rev1_date": "2016-06-26T11:12:54Z", "rev2_date": "2016-06-26T11:42:27Z", "git_diff_url": "https://github.com/apilayer/restcountries/compare/bd4708fe5c33fa8d4c71cb0639fdf94a091a99c9...92f75e472737a078f0efc1421ca4bb63a468f2d5", "test_file": "src/test/java/vaeke/restcountries/v2/CountryServiceTest.java", "test_changes": [{"change_id": "186_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameAlt:()V", "class": "CountryServiceTest", "method": "getByNameAlt", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameAlt", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameAlt() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norge\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-86"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.5018, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.0577}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.2844, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5833, "class": 0.0, "tfidf": 0.0502}}], "coverage_gold": 0.75, "branch_coverage_gold": 7.3684, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "187_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByRegion:()V", "class": "CountryServiceTest", "method": "getByRegion", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByRegion", "old_test_code": null, "new_test_code": "@Test\npublic void getByRegion() throws Exception {\n List countries = CountryService.getInstance().getByRegion(\"Europe\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertEquals(\"Europe\", country.getRegion());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-130"], "old_production_code": "", "new_production_code": "public List getByRegion(String region) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getRegion().toLowerCase().equals(region.toLowerCase())) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "152-160", "dependency_updated": "inserted", "score": 0.8636, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4203}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3314, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2727, "class": 1.0, "tfidf": 0.0766}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "112-114", "dependency_updated": "inserted", "score": 0.3211, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8182, "class": 0.0, "tfidf": 0.0418}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.1579, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.4196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "188_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByLanguageCode:()V", "class": "CountryServiceTest", "method": "getByLanguageCode", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByLanguageCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByLanguageCode() throws Exception {\n List countries = CountryService.getInstance().getByLanguage(\"es\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n for (Language language : country.getLanguages()) {\n if (language.getIso639_1().equals(\"es\")) {\n return;\n }\n }\n }\n Assert.fail();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["132-145"], "old_production_code": "", "new_production_code": "public List getByLanguage(String language) {\n List result = new ArrayList();\n if (language.length() == 2) {\n for (Country country : countries) {\n for (Language lang : country.getLanguages()) {\n if (language.toLowerCase().equals(lang.getIso639_1())) {\n result.add(country);\n }\n }\n }\n } else if (language.length() == 3) {\n for (Country country : countries) {\n for (Language lang : country.getLanguages()) {\n if (language.toLowerCase().equals(lang.getIso639_2())) {\n result.add(country);\n }\n }\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "162-182", "dependency_updated": "inserted", "score": 0.6041, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7647, "class": 1.0, "tfidf": 0.4821}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3851, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.4118, "class": 1.0, "tfidf": 0.0713}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "216-218", "dependency_updated": "inserted", "score": 0.3158, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.6471, "class": 0.0, "tfidf": 0.2016}}, {"dep_id": 3, "method_sign": "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Language.java", "line_nums_new": "13-15", "dependency_updated": "inserted", "score": 0.1024, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.1765, "class": 0.0, "tfidf": 0.0389}}], "coverage_gold": 0.631578947368421, "branch_coverage_gold": 4.7368, "method_coverage_gold": 6.383, "line_coverage_gold": 6.1189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Language.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "189_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCodeList:()V", "class": "CountryServiceTest", "method": "getByCodeList", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCodeList", "old_test_code": null, "new_test_code": "@Test\npublic void getByCodeList() throws Exception {\n List countries = CountryService.getInstance().getByCodeList(\"CO;NOR;EE\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(3, countries.size());\n for (Country country : countries) {\n Assert.assertTrue(country.getAlpha2Code().equals(\"CO\") || country.getAlpha2Code().equals(\"NO\") || country.getAlpha2Code().equals(\"EE\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-45"], "old_production_code": "", "new_production_code": "public List getByCodeList(String codelist) {\n List result = new ArrayList();\n if (codelist == null)\n return result;\n List codes = Arrays.asList(codelist.split(ICountryRestSymbols.SEMICOLON));\n for (String code : codes) {\n Country country = this.getByAlpha(code);\n if (!result.contains(country))\n result.add(country);\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "59-70", "dependency_updated": "inserted", "score": 0.8235, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2499}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3351, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 1.0, "tfidf": 0.0535}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.154, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2308, "class": 0.0, "tfidf": 0.0892}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.3684, "method_coverage_gold": 6.9149, "line_coverage_gold": 7.6923, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "190_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByAlpha2:()V", "class": "CountryServiceTest", "method": "getByAlpha2", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByAlpha2", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha2() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"CO\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"CO\", country.getAlpha2Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-26"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getAlpha2Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getAlpha3Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3216, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1031}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.2241, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5385, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.1579, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.4196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "191_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByName:()V", "class": "CountryServiceTest", "method": "getByName", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByName", "old_test_code": null, "new_test_code": "@Test\npublic void getByName() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norway\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-65"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.7823, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0746}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.38, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.4545, "class": 1.0, "tfidf": 0.0879}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.3158, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7778, "class": 0.0, "tfidf": 0.0479}}], "coverage_gold": 0.8, "branch_coverage_gold": 7.3684, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "192_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getAll:()V", "class": "CountryServiceTest", "method": "getAll", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getAll", "old_test_code": null, "new_test_code": "@Test\npublic void getAll() throws Exception {\n List countries = CountryService.getInstance().getAll();\n Assert.assertFalse(countries.isEmpty());\n System.out.println(\"TOTAL Countries \" + countries.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-19"], "old_production_code": "", "new_production_code": "public List getAll() {\n return countries;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": 0.9039, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5917}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3362, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.3636, "class": 1.0, "tfidf": 0.1015}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0526, "method_coverage_gold": 5.3191, "line_coverage_gold": 4.3706, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "193_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByAlpha3:()V", "class": "CountryServiceTest", "method": "getByAlpha3", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByAlpha3", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha3() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"COL\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"COL\", country.getAlpha3Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-33"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getAlpha2Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getAlpha3Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3216, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1031}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "80-82", "dependency_updated": "inserted", "score": 0.2241, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5385, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.75, "branch_coverage_gold": 3.6842, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.5944, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "194_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCapital:()V", "class": "CountryServiceTest", "method": "getByCapital", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCapital", "old_test_code": null, "new_test_code": "@Test\npublic void getByCapital() throws Exception {\n List countries = CountryService.getInstance().getByCapital(\"Tallinn\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"EE\", countries.get(0).getAlpha2Code());\n Assert.assertEquals(\"Eesti\", countries.get(0).getNativeName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-120"], "old_production_code": "", "new_production_code": "public List getByCapital(String capital) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (normalize(country.getCapital().toLowerCase()).contains(normalize(capital.toLowerCase()))) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "142-150", "dependency_updated": "inserted", "score": 0.7972, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.138}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.34, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.25, "class": 1.0, "tfidf": 0.0608}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "192-194", "dependency_updated": "inserted", "score": 0.1399, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.3077, "class": 0.0, "tfidf": 0.0332}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.1399, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.3077, "class": 0.0, "tfidf": 0.0332}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.1579, "method_coverage_gold": 7.4468, "line_coverage_gold": 6.1189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "195_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCurrency:()V", "class": "CountryServiceTest", "method": "getByCurrency", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCurrency", "old_test_code": null, "new_test_code": "@Test\npublic void getByCurrency() throws Exception {\n List countries = CountryService.getInstance().getByCurrency(\"EUR\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n for (Currency currency : country.getCurrencies()) {\n currency.getCode().equals(\"EUR\");\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-57"], "old_production_code": "", "new_production_code": "public List getByCurrency(String currency) {\n List result = new ArrayList();\n for (Country country : countries) {\n for (Currency curr : country.getCurrencies()) {\n if (curr.getCode() != null && currency.toLowerCase().equals(curr.getCode().toLowerCase())) {\n result.add(country);\n }\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "72-82", "dependency_updated": "inserted", "score": 0.8827, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5016}}, {"dep_id": 3, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3491, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.3846, "class": 1.0, "tfidf": 0.0735}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "200-202", "dependency_updated": "inserted", "score": 0.2861, "signal_scores": {"nc": 0.0, "lcs_u": 0.7692, "ed": 0.6154, "class": 0.0, "tfidf": 0.2084}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Currency.java", "line_nums_new": "12-14", "dependency_updated": "inserted", "score": 0.1988, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.3846, "class": 0.0, "tfidf": 0.0401}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2632, "method_coverage_gold": 6.383, "line_coverage_gold": 5.9441, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Currency.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "196_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameFullText:()V", "class": "CountryServiceTest", "method": "getByNameFullText", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameFullText", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameFullText() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Russian Federation\", true);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Russia\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-94"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4653, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5294, "class": 1.0, "tfidf": 0.057}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3544, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2941, "class": 1.0, "tfidf": 0.0911}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.256, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 0.0, "tfidf": 0.0496}}], "coverage_gold": 0.8, "branch_coverage_gold": 6.8421, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "197_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameFullTextNotFound:()V", "class": "CountryServiceTest", "method": "getByNameFullTextNotFound", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameFullTextNotFound", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameFullTextNotFound() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Russian Fed\", true);\n Assert.assertNotNull(countries);\n Assert.assertTrue(countries.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-101"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4412, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.36, "class": 1.0, "tfidf": 0.0733}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3515, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.24, "class": 1.0, "tfidf": 0.1166}}], "coverage_gold": 0.75, "branch_coverage_gold": 5.7895, "method_coverage_gold": 7.4468, "line_coverage_gold": 6.993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "198_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNamePriority:()V", "class": "CountryServiceTest", "method": "getByNamePriority", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNamePriority", "old_test_code": null, "new_test_code": "@Test\npublic void getByNamePriority() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Iran\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Iran\", countries.get(0).getName());\n countries = CountryService.getInstance().getByName(\"United\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"United States Minor Outlying Islands\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-78"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4637, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5294, "class": 1.0, "tfidf": 0.0502}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3519, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2353, "class": 1.0, "tfidf": 0.1216}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.2598, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 0.0, "tfidf": 0.066}}], "coverage_gold": 0.8, "branch_coverage_gold": 7.8947, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.5175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "199_apilayer_restcountries-2.0.5_bd4708f_92f75e4_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCallingCode:()V", "class": "CountryServiceTest", "method": "getByCallingCode", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCallingCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByCallingCode() throws Exception {\n List countries = CountryService.getInstance().getByCallingCode(\"57\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"CO\", countries.get(0).getAlpha2Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-110"], "old_production_code": "", "new_production_code": "public List getByCallingCode(String callingcode) {\n List result = new ArrayList();\n for (Country country : countries) {\n for (String callingCode : country.getCallingCodes()) {\n if (callingCode.equals(callingcode))\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "131-140", "dependency_updated": "inserted", "score": 0.8001, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1504}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3797, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.375, "class": 1.0, "tfidf": 0.0741}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.2243, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5625, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2105, "method_coverage_gold": 6.383, "line_coverage_gold": 5.9441, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.0.5", "java_version": 8} {"task_id": "apilayer_restcountries-2.0.5__d214619_a8044c6__CountryServiceTest_26f34282", "project_name": "apilayer_restcountries-2.0.5", "git_clone_url": "https://github.com/apilayer/restcountries.git", "rev1": "d2146193e4746925165cf8bce373f396c8fbfb6f", "rev2": "a8044c601fbcd89c606f49e1f01ec88492080a29", "rev1_date": "2016-06-26T10:19:34Z", "rev2_date": "2016-06-26T11:06:04Z", "git_diff_url": "https://github.com/apilayer/restcountries/compare/d2146193e4746925165cf8bce373f396c8fbfb6f...a8044c601fbcd89c606f49e1f01ec88492080a29", "test_file": "src/test/java/vaeke/restcountries/v2/CountryServiceTest.java", "test_changes": [{"change_id": "241_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameAlt:()V", "class": "CountryServiceTest", "method": "getByNameAlt", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameAlt", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameAlt() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norge\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-86"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.5018, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.0577}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.2844, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5833, "class": 0.0, "tfidf": 0.0502}}], "coverage_gold": 0.75, "branch_coverage_gold": 7.3684, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "242_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByRegion:()V", "class": "CountryServiceTest", "method": "getByRegion", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByRegion", "old_test_code": null, "new_test_code": "@Test\npublic void getByRegion() throws Exception {\n List countries = CountryService.getInstance().getByRegion(\"Europe\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertEquals(\"Europe\", country.getRegion());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-130"], "old_production_code": "", "new_production_code": "public List getByRegion(String region) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getRegion().toLowerCase().equals(region.toLowerCase())) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "152-160", "dependency_updated": "inserted", "score": 0.8636, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4203}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3314, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2727, "class": 1.0, "tfidf": 0.0766}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "112-114", "dependency_updated": "inserted", "score": 0.3211, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8182, "class": 0.0, "tfidf": 0.0418}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.1579, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.4196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getRegion:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "243_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByLanguageCode:()V", "class": "CountryServiceTest", "method": "getByLanguageCode", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByLanguageCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByLanguageCode() throws Exception {\n List countries = CountryService.getInstance().getByLanguage(\"es\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n for (Language language : country.getLanguages()) {\n if (language.getIso639_1().equals(\"es\")) {\n return;\n }\n }\n }\n Assert.fail();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["132-145"], "old_production_code": "", "new_production_code": "public List getByLanguage(String language) {\n List result = new ArrayList();\n if (language.length() == 2) {\n for (Country country : countries) {\n for (Language lang : country.getLanguages()) {\n if (language.toLowerCase().equals(lang.getIso639_1())) {\n result.add(country);\n }\n }\n }\n } else if (language.length() == 3) {\n for (Country country : countries) {\n for (Language lang : country.getLanguages()) {\n if (language.toLowerCase().equals(lang.getIso639_2())) {\n result.add(country);\n }\n }\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "162-182", "dependency_updated": "inserted", "score": 0.6041, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7647, "class": 1.0, "tfidf": 0.4821}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3851, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.4118, "class": 1.0, "tfidf": 0.0713}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "216-218", "dependency_updated": "inserted", "score": 0.3158, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.6471, "class": 0.0, "tfidf": 0.2016}}, {"dep_id": 3, "method_sign": "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Language.java", "line_nums_new": "13-15", "dependency_updated": "inserted", "score": 0.1024, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.1765, "class": 0.0, "tfidf": 0.0389}}], "coverage_gold": 0.631578947368421, "branch_coverage_gold": 4.7368, "method_coverage_gold": 6.383, "line_coverage_gold": 6.1189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getLanguages:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Language.getIso639_1:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Language.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "244_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCodeList:()V", "class": "CountryServiceTest", "method": "getByCodeList", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCodeList", "old_test_code": null, "new_test_code": "@Test\npublic void getByCodeList() throws Exception {\n List countries = CountryService.getInstance().getByCodeList(\"CO;NOR;EE\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(3, countries.size());\n for (Country country : countries) {\n Assert.assertTrue(country.getAlpha2Code().equals(\"CO\") || country.getAlpha2Code().equals(\"NO\") || country.getAlpha2Code().equals(\"EE\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-45"], "old_production_code": "", "new_production_code": "public List getByCodeList(String codelist) {\n List result = new ArrayList();\n if (codelist == null)\n return result;\n List codes = Arrays.asList(codelist.split(ICountryRestSymbols.SEMICOLON));\n for (String code : codes) {\n Country country = this.getByAlpha(code);\n if (!result.contains(country))\n result.add(country);\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "59-70", "dependency_updated": "inserted", "score": 0.8235, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2499}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3351, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 1.0, "tfidf": 0.0535}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.154, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2308, "class": 0.0, "tfidf": 0.0892}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.3684, "method_coverage_gold": 6.9149, "line_coverage_gold": 7.6923, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "245_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByAlpha2:()V", "class": "CountryServiceTest", "method": "getByAlpha2", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByAlpha2", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha2() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"CO\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"CO\", country.getAlpha2Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-26"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getAlpha2Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getAlpha3Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3216, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1031}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.2241, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5385, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.1579, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.4196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "246_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByName:()V", "class": "CountryServiceTest", "method": "getByName", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByName", "old_test_code": null, "new_test_code": "@Test\npublic void getByName() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norway\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-65"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.7823, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0746}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.38, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.4545, "class": 1.0, "tfidf": 0.0879}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.3158, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7778, "class": 0.0, "tfidf": 0.0479}}], "coverage_gold": 0.8, "branch_coverage_gold": 7.3684, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "247_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getAll:()V", "class": "CountryServiceTest", "method": "getAll", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getAll", "old_test_code": null, "new_test_code": "@Test\npublic void getAll() throws Exception {\n List countries = CountryService.getInstance().getAll();\n Assert.assertFalse(countries.isEmpty());\n System.out.println(\"TOTAL Countries \" + countries.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-19"], "old_production_code": "", "new_production_code": "public List getAll() {\n return countries;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": 0.9039, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5917}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3362, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.3636, "class": 1.0, "tfidf": 0.1015}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0526, "method_coverage_gold": 5.3191, "line_coverage_gold": 4.3706, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getAll:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "248_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByAlpha3:()V", "class": "CountryServiceTest", "method": "getByAlpha3", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByAlpha3", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha3() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"COL\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"COL\", country.getAlpha3Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-33"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getAlpha2Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getAlpha3Code().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3216, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1031}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "80-82", "dependency_updated": "inserted", "score": 0.2241, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5385, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.75, "branch_coverage_gold": 3.6842, "method_coverage_gold": 5.8511, "line_coverage_gold": 5.5944, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v2/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha3Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "249_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCapital:()V", "class": "CountryServiceTest", "method": "getByCapital", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCapital", "old_test_code": null, "new_test_code": "@Test\npublic void getByCapital() throws Exception {\n List countries = CountryService.getInstance().getByCapital(\"Tallinn\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"EE\", countries.get(0).getAlpha2Code());\n Assert.assertEquals(\"Eesti\", countries.get(0).getNativeName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-120"], "old_production_code": "", "new_production_code": "public List getByCapital(String capital) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (normalize(country.getCapital().toLowerCase()).contains(normalize(capital.toLowerCase()))) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "142-150", "dependency_updated": "inserted", "score": 0.7972, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.138}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.34, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.25, "class": 1.0, "tfidf": 0.0608}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "192-194", "dependency_updated": "inserted", "score": 0.1399, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.3077, "class": 0.0, "tfidf": 0.0332}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.1399, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.3077, "class": 0.0, "tfidf": 0.0332}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.1579, "method_coverage_gold": 7.4468, "line_coverage_gold": 6.1189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getNativeName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "250_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCurrency:()V", "class": "CountryServiceTest", "method": "getByCurrency", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCurrency", "old_test_code": null, "new_test_code": "@Test\npublic void getByCurrency() throws Exception {\n List countries = CountryService.getInstance().getByCurrency(\"EUR\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n for (Currency currency : country.getCurrencies()) {\n currency.getCode().equals(\"EUR\");\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-57"], "old_production_code": "", "new_production_code": "public List getByCurrency(String currency) {\n List result = new ArrayList();\n for (Country country : countries) {\n for (Currency curr : country.getCurrencies()) {\n if (curr.getCode() != null && currency.toLowerCase().equals(curr.getCode().toLowerCase())) {\n result.add(country);\n }\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "72-82", "dependency_updated": "inserted", "score": 0.8827, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5016}}, {"dep_id": 3, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3491, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.3846, "class": 1.0, "tfidf": 0.0735}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "200-202", "dependency_updated": "inserted", "score": 0.2861, "signal_scores": {"nc": 0.0, "lcs_u": 0.7692, "ed": 0.6154, "class": 0.0, "tfidf": 0.2084}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Currency.java", "line_nums_new": "12-14", "dependency_updated": "inserted", "score": 0.1988, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.3846, "class": 0.0, "tfidf": 0.0401}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2632, "method_coverage_gold": 6.383, "line_coverage_gold": 5.9441, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Currency.getCode:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Currency.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getCurrencies:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "251_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameFullText:()V", "class": "CountryServiceTest", "method": "getByNameFullText", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameFullText", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameFullText() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Russian Federation\", true);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Russia\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-94"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4653, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5294, "class": 1.0, "tfidf": 0.057}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3544, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2941, "class": 1.0, "tfidf": 0.0911}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.256, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 0.0, "tfidf": 0.0496}}], "coverage_gold": 0.8, "branch_coverage_gold": 6.8421, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.3427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "252_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNameFullTextNotFound:()V", "class": "CountryServiceTest", "method": "getByNameFullTextNotFound", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNameFullTextNotFound", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameFullTextNotFound() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Russian Fed\", true);\n Assert.assertNotNull(countries);\n Assert.assertTrue(countries.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-101"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4412, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.36, "class": 1.0, "tfidf": 0.0733}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3515, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.24, "class": 1.0, "tfidf": 0.1166}}], "coverage_gold": 0.75, "branch_coverage_gold": 5.7895, "method_coverage_gold": 7.4468, "line_coverage_gold": 6.993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "253_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByNamePriority:()V", "class": "CountryServiceTest", "method": "getByNamePriority", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByNamePriority", "old_test_code": null, "new_test_code": "@Test\npublic void getByNamePriority() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Iran\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Iran\", countries.get(0).getName());\n countries = CountryService.getInstance().getByName(\"United\", false);\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"United States Minor Outlying Islands\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-78"], "old_production_code": "", "new_production_code": "public List getByName(String name, boolean fullText) {\n if (fullText) {\n return fulltextSearch(name);\n } else {\n return substringSearch(name);\n }\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "84-91", "dependency_updated": "inserted", "score": 0.4637, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5294, "class": 1.0, "tfidf": 0.0502}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3519, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2353, "class": 1.0, "tfidf": 0.1216}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.2598, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 0.0, "tfidf": 0.066}}], "coverage_gold": 0.8, "branch_coverage_gold": 7.8947, "method_coverage_gold": 7.4468, "line_coverage_gold": 7.5175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByName:(Ljava/lang/String;Z)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "254_apilayer_restcountries-2.0.5_d214619_a8044c6_CountryServiceTest", "test_sign": "vaeke/restcountries/v2/CountryServiceTest.getByCallingCode:()V", "class": "CountryServiceTest", "method": "getByCallingCode", "module": "", "junit_selector": "vaeke.restcountries.v2.CountryServiceTest#getByCallingCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByCallingCode() throws Exception {\n List countries = CountryService.getInstance().getByCallingCode(\"57\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"CO\", countries.get(0).getAlpha2Code());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-110"], "old_production_code": "", "new_production_code": "public List getByCallingCode(String callingcode) {\n List result = new ArrayList();\n for (Country country : countries) {\n for (String callingCode : country.getCallingCodes()) {\n if (callingCode.equals(callingcode))\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "131-140", "dependency_updated": "inserted", "score": 0.8001, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1504}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3797, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.375, "class": 1.0, "tfidf": 0.0741}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": 0.2243, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.5625, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2105, "method_coverage_gold": 6.383, "line_coverage_gold": 5.9441, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v2/domain/Country.getAlpha2Code:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getByCallingCode:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v2/rest/CountryService.getInstance:()Lvaeke/restcountries/v2/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v2/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.0.5", "java_version": 8} {"task_id": "apilayer_restcountries-2.0.5__d59aed1_bd4708f__CountryServiceTest_7b31eb27", "project_name": "apilayer_restcountries-2.0.5", "git_clone_url": "https://github.com/apilayer/restcountries.git", "rev1": "d59aed1cfe539edd8dcfba7753f2c4663695a9c8", "rev2": "bd4708fe5c33fa8d4c71cb0639fdf94a091a99c9", "rev1_date": "2016-06-26T11:09:29Z", "rev2_date": "2016-06-26T11:12:54Z", "git_diff_url": "https://github.com/apilayer/restcountries/compare/d59aed1cfe539edd8dcfba7753f2c4663695a9c8...bd4708fe5c33fa8d4c71cb0639fdf94a091a99c9", "test_file": "src/test/java/vaeke/restcountries/v0/CountryServiceTest.java", "test_changes": [{"change_id": "112_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByCurrency:()V", "class": "CountryServiceTest", "method": "getByCurrency", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByCurrency", "old_test_code": null, "new_test_code": "@Test\npublic void getByCurrency() throws Exception {\n List countries = CountryService.getInstance().getByCurrency(\"EUR\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertTrue(country.getCurrency().contains(\"EUR\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-59"], "old_production_code": "", "new_production_code": "public List getByCurrency(String currency) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getCurrency().toLowerCase().contains(currency.toLowerCase())) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "74-82", "dependency_updated": "inserted", "score": 0.8662, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4312}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3557, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.3846, "class": 1.0, "tfidf": 0.1015}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/domain/Country.getCurrency:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "67-69", "dependency_updated": "inserted", "score": 0.3256, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8462, "class": 0.0, "tfidf": 0.0415}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2683, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.3016, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v0/domain/Country.getCurrency:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/domain/Country.getCurrency:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCurrency:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "113_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByCallingCode:()V", "class": "CountryServiceTest", "method": "getByCallingCode", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByCallingCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByCallingCode() throws Exception {\n List countries = CountryService.getInstance().getByCallingcode(\"57\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"CO\", countries.get(0).getCca2());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-84"], "old_production_code": "", "new_production_code": "public List getByCallingcode(String callingcode) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getCallingCode().equals(callingcode))\n result.add(country);\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCallingcode:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCallingcode:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "99-106", "dependency_updated": "inserted", "score": 0.8055, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1732}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3856, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.375, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "83-85", "dependency_updated": "inserted", "score": 0.187, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.3125, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2683, "method_coverage_gold": 5.0279, "line_coverage_gold": 5.4845, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "vaeke/restcountries/v0/rest/CountryService.getByCallingcode:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCallingcode:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "114_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByLanguageCode:()V", "class": "CountryServiceTest", "method": "getByLanguageCode", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByLanguageCode", "old_test_code": null, "new_test_code": "@Test\npublic void getByLanguageCode() throws Exception {\n List countries = CountryService.getInstance().getByLanguage(\"en\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertTrue(country.getLanguages().contains(\"en\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["115-123"], "old_production_code": "", "new_production_code": "public List getByLanguage(String language) {\n List result = new ArrayList();\n for (Country country : countries) {\n for (String lang : country.getLanguages()) {\n if (lang.toLowerCase().equals(language.toLowerCase())) {\n result.add(country);\n }\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "138-148", "dependency_updated": "inserted", "score": 0.5802, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7647, "class": 1.0, "tfidf": 0.3805}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3927, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.4118, "class": 1.0, "tfidf": 0.1033}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/domain/Country.getLanguages:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "171-173", "dependency_updated": "inserted", "score": 0.2865, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.6471, "class": 0.0, "tfidf": 0.0773}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.4878, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.6673, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/domain/Country.getLanguages:()Ljava/util/List", "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getLanguages:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByLanguage:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "115_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByRegion:()V", "class": "CountryServiceTest", "method": "getByRegion", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByRegion", "old_test_code": null, "new_test_code": "@Test\npublic void getByRegion() throws Exception {\n List countries = CountryService.getInstance().getByRegion(\"Europe\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertEquals(\"Europe\", country.getRegion());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-103"], "old_production_code": "", "new_production_code": "public List getByRegion(String region) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getRegion().toLowerCase().equals(region.toLowerCase())) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "118-126", "dependency_updated": "inserted", "score": 0.8636, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4203}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3375, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2727, "class": 1.0, "tfidf": 0.1024}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v0/domain/Country.getRegion:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "123-125", "dependency_updated": "inserted", "score": 0.3211, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8182, "class": 0.0, "tfidf": 0.0418}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2683, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.3016, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v0/domain/Country.getRegion:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByRegion:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getRegion:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "116_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getBySubregion:()V", "class": "CountryServiceTest", "method": "getBySubregion", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getBySubregion", "old_test_code": null, "new_test_code": "@Test\npublic void getBySubregion() throws Exception {\n List countries = CountryService.getInstance().getBySubregion(\"Northern Europe\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n for (Country country : countries) {\n Assert.assertEquals(\"Northern Europe\", country.getSubregion());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["105-113"], "old_production_code": "", "new_production_code": "public List getBySubregion(String subregion) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (country.getSubregion().toLowerCase().equals(subregion.toLowerCase())) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getBySubregion:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getBySubregion:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "128-136", "dependency_updated": "inserted", "score": 0.859, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4009}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3388, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2857, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v0/domain/Country.getSubregion:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "131-133", "dependency_updated": "inserted", "score": 0.3271, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8571, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2683, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.3016, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getBySubregion:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v0/domain/Country.getSubregion:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getBySubregion:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getSubregion:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "117_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByCapital:()V", "class": "CountryServiceTest", "method": "getByCapital", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByCapital", "old_test_code": null, "new_test_code": "@Test\npublic void getByCapital() throws Exception {\n List countries = CountryService.getInstance().getByCapital(\"Tallinn\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(1, countries.size());\n Assert.assertEquals(\"EE\", countries.get(0).getCca2());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-93"], "old_production_code": "", "new_production_code": "public List getByCapital(String capital) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (normalize(country.getCapital().toLowerCase()).contains(normalize(capital.toLowerCase()))) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "108-116", "dependency_updated": "inserted", "score": 0.8023, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1598}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.349, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.25, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "83-85", "dependency_updated": "inserted", "score": 0.2042, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4167, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2683, "method_coverage_gold": 5.5866, "line_coverage_gold": 5.8501, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCapital:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "118_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getAll:()V", "class": "CountryServiceTest", "method": "getAll", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getAll", "old_test_code": null, "new_test_code": "@Test\npublic void getAll() throws Exception {\n List countries = CountryService.getInstance().getAll();\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertTrue(countries.size() >= 250);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-23"], "old_production_code": "", "new_production_code": "public List getAll() {\n return countries;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getAll:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getAll:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.8867, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5184}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3413, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.3636, "class": 1.0, "tfidf": 0.1233}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.8293, "method_coverage_gold": 3.9106, "line_coverage_gold": 4.2048, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getAll:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getAll:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "119_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByName:()V", "class": "CountryServiceTest", "method": "getByName", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByName", "old_test_code": null, "new_test_code": "@Test\npublic void getByName() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norway\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-67"], "old_production_code": "", "new_production_code": "public List getByName(String name) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (normalize(country.getName().toLowerCase()).contains(normalize(name.toLowerCase()))) {\n result.add(country);\n }\n if (normalize(country.getAltSpellings().toLowerCase()).contains(normalize(name.toLowerCase())) && !result.contains(country)) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "84-97", "dependency_updated": "inserted", "score": 0.7992, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1468}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.387, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.4545, "class": 1.0, "tfidf": 0.1176}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "59-61", "dependency_updated": "inserted", "score": 0.3158, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7778, "class": 0.0, "tfidf": 0.0479}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 4.878, "method_coverage_gold": 5.5866, "line_coverage_gold": 6.2157, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "120_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByNameAlt:()V", "class": "CountryServiceTest", "method": "getByNameAlt", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByNameAlt", "old_test_code": null, "new_test_code": "@Test\npublic void getByNameAlt() throws Exception {\n List countries = CountryService.getInstance().getByName(\"Norge\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(\"Norway\", countries.get(0).getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-75"], "old_production_code": "", "new_production_code": "public List getByName(String name) {\n List result = new ArrayList();\n for (Country country : countries) {\n if (normalize(country.getName().toLowerCase()).contains(normalize(name.toLowerCase()))) {\n result.add(country);\n }\n if (normalize(country.getAltSpellings().toLowerCase()).contains(normalize(name.toLowerCase())) && !result.contains(country)) {\n result.add(country);\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "84-97", "dependency_updated": "inserted", "score": 0.5221, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.1441}}, {"dep_id": 1, "method_sign": "vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "59-61", "dependency_updated": "inserted", "score": 0.2844, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5833, "class": 0.0, "tfidf": 0.0502}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 5.4878, "method_coverage_gold": 5.5866, "line_coverage_gold": 6.3985, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByName:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "121_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByAlpha2:()V", "class": "CountryServiceTest", "method": "getByAlpha2", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByAlpha2", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha2() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"CO\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"CO\", country.getCca2());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-30"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getCca2().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getCca3().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "45-59", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3298, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1379}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "83-85", "dependency_updated": "inserted", "score": 0.2141, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4545, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 4.2683, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.3016, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "122_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByAlpha3:()V", "class": "CountryServiceTest", "method": "getByAlpha3", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByAlpha3", "old_test_code": null, "new_test_code": "@Test\npublic void getByAlpha3() throws Exception {\n Country country = CountryService.getInstance().getByAlpha(\"COL\");\n Assert.assertNotNull(country);\n Assert.assertEquals(\"COL\", country.getCca3());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-37"], "old_production_code": "", "new_production_code": "public Country getByAlpha(String alpha) {\n int alphaLength = alpha.length();\n for (Country country : countries) {\n if (alphaLength == 2) {\n if (country.getCca2().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n } else if (alphaLength == 3) {\n if (country.getCca3().toLowerCase().equals(alpha.toLowerCase())) {\n return country;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "45-59", "dependency_updated": "inserted", "score": 0.5902, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9091, "class": 1.0, "tfidf": 0.3221}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3298, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2727, "class": 1.0, "tfidf": 0.1379}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v0/domain/Country.getCca3:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "91-93", "dependency_updated": "inserted", "score": 0.2141, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4545, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 4.878, "method_coverage_gold": 4.4693, "line_coverage_gold": 5.4845, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "vaeke/restcountries/v0/domain/Country.getCca3:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByAlpha:(Ljava/lang/String;)Lvaeke/restcountries/v0/domain/Country", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getCca3:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "123_apilayer_restcountries-2.0.5_d59aed1_bd4708f_CountryServiceTest", "test_sign": "vaeke/restcountries/v0/CountryServiceTest.getByCodeList:()V", "class": "CountryServiceTest", "method": "getByCodeList", "module": "", "junit_selector": "vaeke.restcountries.v0.CountryServiceTest#getByCodeList", "old_test_code": null, "new_test_code": "@Test\npublic void getByCodeList() throws Exception {\n List countries = CountryService.getInstance().getByCodeList(\"CO;NOR;EE\");\n Assert.assertNotNull(countries);\n Assert.assertFalse(countries.isEmpty());\n Assert.assertEquals(3, countries.size());\n for (Country country : countries) {\n Assert.assertTrue(country.getCca2().equals(\"CO\") || country.getCca2().equals(\"NO\") || country.getCca2().equals(\"EE\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-49"], "old_production_code": "", "new_production_code": "public List getByCodeList(String codelist) {\n List result = new ArrayList();\n if (codelist == null)\n return result;\n List codes = Arrays.asList(codelist.split(ICountryRestSymbols.SEMICOLON));\n for (String code : codes) {\n Country country = this.getByAlpha(code);\n if (!result.contains(country))\n result.add(country);\n }\n return result;\n}", "focal_file_path": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "focal_method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "61-72", "dependency_updated": "inserted", "score": 0.8235, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2499}}, {"dep_id": 0, "method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3393, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 1.0, "tfidf": 0.0715}}, {"dep_id": 2, "method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "line_nums_new": "83-85", "dependency_updated": "inserted", "score": 0.1725, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.3077, "class": 0.0, "tfidf": 0.0892}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.1463, "method_coverage_gold": 5.5866, "line_coverage_gold": 7.6782, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "vaeke/restcountries/v0/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "vaeke/restcountries/v0/rest/CountryService.getInstance:()Lvaeke/restcountries/v0/rest/CountryService", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/rest/CountryService.getByCodeList:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/rest/CountryService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "vaeke/restcountries/v0/domain/Country.getCca2:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/vaeke/restcountries/v0/domain/Country.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.0.5", "java_version": 8} {"task_id": "awaitility_awaitility-awaitility-4.3.0__d39c00d_fc45eb7__FailFastTest_b22246c4", "project_name": "awaitility_awaitility-awaitility-4.3.0", "git_clone_url": "https://github.com/awaitility/awaitility.git", "rev1": "d39c00d76af752cfede573453aa904c761c5f6f6", "rev2": "fc45eb743e7f3a2aec2d57f6d3efd11165c9de44", "rev1_date": "2022-03-04T12:21:13Z", "rev2_date": "2022-03-04T13:36:57Z", "git_diff_url": "https://github.com/awaitility/awaitility/compare/d39c00d76af752cfede573453aa904c761c5f6f6...fc45eb743e7f3a2aec2d57f6d3efd11165c9de44", "test_file": "awaitility/src/test/java/org/awaitility/FailFastTest.java", "test_changes": [{"change_id": "206_awaitility_awaitility-awaitility-4.3.0_d39c00d_fc45eb7_FailFastTest", "test_sign": "org/awaitility/FailFastTest.fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_without_explicit_reason:()V", "class": "FailFastTest", "method": "fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_without_explicit_reason", "module": "awaitility", "junit_selector": "org.awaitility.FailFastTest#fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_without_explicit_reason", "old_test_code": null, "new_test_code": "@Test\npublic void fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_without_explicit_reason() {\n exception.expect(TerminalFailureException.class);\n exception.expectMessage(containsString(\"was less than <10>\"));\n AtomicInteger ai = new AtomicInteger(0);\n new Thread(() -> {\n while (true) {\n ai.incrementAndGet();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n ThrowingRunnable failFastAssertion = () -> assertThat(ai.get(), greaterThan(10));\n Awaitility.setDefaultFailFastCondition(failFastAssertion);\n await().timeout(Duration.ofSeconds(5)).until(ai::get, equalTo(-1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["183-207"], "old_production_code": "", "new_production_code": "public static void setDefaultFailFastCondition(ThrowingRunnable defaultFailFastAssertion) {\n setDefaultFailFastCondition(null, defaultFailFastAssertion);\n}", "focal_file_path": "awaitility/src/main/java/org/awaitility/Awaitility.java", "focal_method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Lorg/awaitility/core/ThrowingRunnable;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Lorg/awaitility/core/ThrowingRunnable;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/Awaitility.java", "line_nums_new": "498-500", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 9.2342, "method_coverage_gold": 14.9289, "line_coverage_gold": 18.4641, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/awaitility/Awaitility.await:()Lorg/awaitility/core/ConditionFactory", "org/awaitility/Awaitility.setDefaultFailFastCondition:(Lorg/awaitility/core/ThrowingRunnable;)V", "org/awaitility/core/ConditionFactory.timeout:(Ljava/time/Duration;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.until:(Ljava/util/concurrent/Callable;Lorg/hamcrest/Matcher;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Lorg/awaitility/core/ThrowingRunnable;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/Awaitility.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "207_awaitility_awaitility-awaitility-4.3.0_d39c00d_fc45eb7_FailFastTest", "test_sign": "org/awaitility/FailFastTest.fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_with_explicit_reason:()V", "class": "FailFastTest", "method": "fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_with_explicit_reason", "module": "awaitility", "junit_selector": "org.awaitility.FailFastTest#fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_with_explicit_reason", "old_test_code": null, "new_test_code": "@Test\npublic void fail_fast_throws_terminal_failure_exception_without_reason_when_using_default_assertions_with_explicit_reason() {\n exception.expect(TerminalFailureException.class);\n exception.expectMessage(\"fail fast reason\");\n exception.expectCause(instanceOf(AssertionError.class));\n AtomicInteger ai = new AtomicInteger(0);\n new Thread(() -> {\n while (true) {\n ai.incrementAndGet();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n ThrowingRunnable failFastAssertion = () -> assertThat(ai.get(), greaterThan(10));\n Awaitility.setDefaultFailFastCondition(\"fail fast reason\", failFastAssertion);\n await().timeout(Duration.ofSeconds(5)).until(ai::get, equalTo(-1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["236-261"], "old_production_code": "", "new_production_code": "public static void setDefaultFailFastCondition(String failFastFailureReason, ThrowingRunnable defaultFailFastAssertion) {\n Awaitility.defaultFailFastCondition = new FailFastAssertion(failFastFailureReason, defaultFailFastAssertion);\n}", "focal_file_path": "awaitility/src/main/java/org/awaitility/Awaitility.java", "focal_method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/Awaitility.java", "line_nums_new": "512-514", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 9.2342, "method_coverage_gold": 14.6919, "line_coverage_gold": 18.3007, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/awaitility/Awaitility.await:()Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.timeout:(Ljava/time/Duration;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/Awaitility.setDefaultFailFastCondition:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)V", "org/awaitility/core/ConditionFactory.until:(Ljava/util/concurrent/Callable;Lorg/hamcrest/Matcher;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/awaitility/Awaitility.setDefaultFailFastCondition:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/Awaitility.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "208_awaitility_awaitility-awaitility-4.3.0_d39c00d_fc45eb7_FailFastTest", "test_sign": "org/awaitility/FailFastTest.fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_with_explicit_reason:()V", "class": "FailFastTest", "method": "fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_with_explicit_reason", "module": "awaitility", "junit_selector": "org.awaitility.FailFastTest#fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_with_explicit_reason", "old_test_code": null, "new_test_code": "@Test\npublic void fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_with_explicit_reason() {\n exception.expect(TerminalFailureException.class);\n exception.expectMessage(\"fail fast reason\");\n exception.expectCause(instanceOf(AssertionError.class));\n AtomicInteger ai = new AtomicInteger(0);\n new Thread(() -> {\n while (true) {\n ai.incrementAndGet();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n ThrowingRunnable failFastAssertion = () -> assertThat(ai.get(), greaterThan(10));\n await().timeout(Duration.ofSeconds(5)).failFast(\"fail fast reason\", failFastAssertion).until(ai::get, equalTo(-1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["209-234"], "old_production_code": "", "new_production_code": "public ConditionFactory failFast(String failFastFailureReason, final ThrowingRunnable failFastAssertion) {\n if (failFastAssertion == null) {\n throw new IllegalArgumentException(\"failFastAssertion cannot be null\");\n }\n return new ConditionFactory(alias, timeoutConstraint, pollInterval, pollDelay, catchUncaughtExceptions, exceptionsIgnorer, conditionEvaluationListener, executorLifecycle, new FailFastAssertion(failFastFailureReason, failFastAssertion));\n}", "focal_file_path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "focal_method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "line_nums_new": "645-651", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 9.4595, "method_coverage_gold": 14.6919, "line_coverage_gold": 18.3007, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/awaitility/core/ConditionFactory.timeout:(Ljava/time/Duration;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.failFast:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.until:(Ljava/util/concurrent/Callable;Lorg/hamcrest/Matcher;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/lang/String;Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "209_awaitility_awaitility-awaitility-4.3.0_d39c00d_fc45eb7_FailFastTest", "test_sign": "org/awaitility/FailFastTest.fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_without_explicit_reason:()V", "class": "FailFastTest", "method": "fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_without_explicit_reason", "module": "awaitility", "junit_selector": "org.awaitility.FailFastTest#fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_without_explicit_reason", "old_test_code": null, "new_test_code": "@Test\npublic void fail_fast_throws_terminal_failure_exception_without_reason_when_using_assertions_without_explicit_reason() {\n exception.expect(TerminalFailureException.class);\n exception.expectMessage(containsString(\"was less than <10>\"));\n AtomicInteger ai = new AtomicInteger(0);\n new Thread(() -> {\n while (true) {\n ai.incrementAndGet();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n ThrowingRunnable failFastAssertion = () -> assertThat(ai.get(), greaterThan(10));\n await().timeout(Duration.ofSeconds(5)).failFast(failFastAssertion).until(ai::get, equalTo(-1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["157-181"], "old_production_code": "", "new_production_code": "public ConditionFactory failFast(final ThrowingRunnable failFastAssertion) {\n return failFast(null, failFastAssertion);\n}", "focal_file_path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "focal_method_sign": "org/awaitility/core/ConditionFactory.failFast:(Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/awaitility/core/ConditionFactory.failFast:(Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "line_nums_new": "624-626", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 9.4595, "method_coverage_gold": 14.9289, "line_coverage_gold": 18.3824, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/awaitility/Awaitility.await:()Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.timeout:(Ljava/time/Duration;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.failFast:(Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.until:(Ljava/util/concurrent/Callable;Lorg/hamcrest/Matcher;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/awaitility/core/ConditionFactory.failFast:(Lorg/awaitility/core/ThrowingRunnable;)Lorg/awaitility/core/ConditionFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "awaitility-4.3.0", "java_version": 8} {"task_id": "awaitility_awaitility-awaitility-4.3.0__fd5d3ed_88f0d0f__FailFastTest_c5e5a110", "project_name": "awaitility_awaitility-awaitility-4.3.0", "git_clone_url": "https://github.com/awaitility/awaitility.git", "rev1": "fd5d3ed55061b714b9e1d4c9a76c7182acdfa514", "rev2": "88f0d0f2fc039651188907a6b3435b7258f46e0f", "rev1_date": "2021-05-07T08:51:11Z", "rev2_date": "2021-05-07T09:46:32Z", "git_diff_url": "https://github.com/awaitility/awaitility/compare/fd5d3ed55061b714b9e1d4c9a76c7182acdfa514...88f0d0f2fc039651188907a6b3435b7258f46e0f", "test_file": "awaitility/src/test/java/org/awaitility/FailFastTest.java", "test_changes": [{"change_id": "201_awaitility_awaitility-awaitility-4.3.0_fd5d3ed_88f0d0f_FailFastTest", "test_sign": "org/awaitility/FailFastTest.fail_fast:()V", "class": "FailFastTest", "method": "fail_fast", "module": "awaitility", "junit_selector": "org.awaitility.FailFastTest#fail_fast", "old_test_code": null, "new_test_code": "@Test(expected = TerminalFailureException.class)\npublic void fail_fast() {\n AtomicInteger ai = new AtomicInteger(0);\n new Thread(() -> {\n while (true) {\n ai.incrementAndGet();\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }).start();\n Callable failFastCondition = () -> ai.get() >= 10;\n await().timeout(Duration.ofSeconds(5)).failFast(failFastCondition, () -> new Exception(\"System crash\")).until(() -> ai.get(), equalTo(-1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-45"], "old_production_code": "", "new_production_code": "public ConditionFactory failFast(final Callable failFastCondition, final Callable failureReason) {\n if (failFastCondition == null) {\n throw new IllegalArgumentException(\"failFastCondition cannot be null\");\n }\n return new ConditionFactory(alias, timeoutConstraint, pollInterval, pollDelay, catchUncaughtExceptions, exceptionsIgnorer, conditionEvaluationListener, executorLifecycle, new FailFastCondition(failFastCondition, failureReason));\n}", "focal_file_path": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "focal_method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;)Lorg/awaitility/core/ConditionFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;)Lorg/awaitility/core/ConditionFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "line_nums_new": "576-582", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 16.7464, "method_coverage_gold": 20.3431, "line_coverage_gold": 25.6367, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/awaitility/core/ConditionFactory.timeout:(Ljava/time/Duration;)Lorg/awaitility/core/ConditionFactory", "org/awaitility/core/ConditionFactory.until:(Ljava/util/concurrent/Callable;Lorg/hamcrest/Matcher;)Ljava/lang/Object", "org/awaitility/core/ConditionFactory.failFast:(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;)Lorg/awaitility/core/ConditionFactory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/awaitility/core/ConditionFactory.failFast:(Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;)Lorg/awaitility/core/ConditionFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "awaitility/src/main/java/org/awaitility/core/ConditionFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "awaitility-4.3.0", "java_version": 8} {"task_id": "blockchain_thunder-v0.1.2-alpha__3e082ed_2a141cf__LNEstablishHandlerTest_729b2e05", "project_name": "blockchain_thunder-v0.1.2-alpha", "git_clone_url": "https://github.com/blockchain/thunder.git", "rev1": "3e082edcfa6d147ccb8e9cc14a5036fced95d934", "rev2": "2a141cffad7190327a978017f9234857ebde2761", "rev1_date": "2016-03-04T10:58:41Z", "rev2_date": "2016-03-04T14:06:14Z", "git_diff_url": "https://github.com/blockchain/thunder/compare/3e082edcfa6d147ccb8e9cc14a5036fced95d934...2a141cffad7190327a978017f9234857ebde2761", "test_file": "thunder-core/src/test/java/network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.java", "test_changes": [{"change_id": "290_blockchain_thunder-v0.1.2-alpha_3e082ed_2a141cf_LNEstablishHandlerTest", "test_sign": "network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.shouldNotMessageInWrongOrder:()V", "class": "LNEstablishHandlerTest", "method": "shouldNotMessageInWrongOrder", "module": "thunder-core", "junit_selector": "network.thunder.core.communication.nio.handler.high.LNEstablishHandlerTest#shouldNotMessageInWrongOrder", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotMessageInWrongOrder() {\n Message c1 = (Message) channel1.readOutbound();\n channel2.writeInbound(c1);\n Message c2 = (Message) channel2.readOutbound();\n channel1.writeInbound(c2);\n channel2.writeInbound(c1);\n assertTrue(channel2.readOutbound() instanceof FailureMessage);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["172-180"], "old_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "new_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (LNException e1) {\n if (e1.shouldDisconnect()) {\n ctx.close();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "focal_file_path": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "focal_method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_old": "36-56", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_new": "37-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.811, "method_coverage_gold": 14.7091, "line_coverage_gold": 14.0778, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["f885b85ffd6df28e325751de43c7dfe0e4f61d55", "143498fa2d79b820a4ba6064a549bbef9fe7e509"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.after:()V", "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.2-alpha", "java_version": 8} {"task_id": "blockchain_thunder-v0.1.2-alpha__6f1b834_3ce1667__LNEstablishHandlerTest_e77580d3", "project_name": "blockchain_thunder-v0.1.2-alpha", "git_clone_url": "https://github.com/blockchain/thunder.git", "rev1": "6f1b834231bafd3a4c6916d7c562ee4a3e02db4a", "rev2": "3ce1667eae13727bdb6cb3428ea8d18326504091", "rev1_date": "2016-02-01T08:47:46Z", "rev2_date": "2016-02-01T18:43:43Z", "git_diff_url": "https://github.com/blockchain/thunder/compare/6f1b834231bafd3a4c6916d7c562ee4a3e02db4a...3ce1667eae13727bdb6cb3428ea8d18326504091", "test_file": "thunder-core/src/test/java/network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.java", "test_changes": [{"change_id": "297_blockchain_thunder-v0.1.2-alpha_6f1b834_3ce1667_LNEstablishHandlerTest", "test_sign": "network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.shouldSendMessageC:()V", "class": "LNEstablishHandlerTest", "method": "shouldSendMessageC", "module": "thunder-core", "junit_selector": "network.thunder.core.communication.nio.handler.high.LNEstablishHandlerTest#shouldSendMessageC", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSendMessageC() {\n channel2.writeInbound(channel1.readOutbound());\n channel1.writeInbound(channel2.readOutbound());\n LNEstablishCMessage message = (LNEstablishCMessage) channel1.readOutbound();\n Channel channel1 = processor1.channel;\n Channel channel2 = processor2.channel;\n assertTrue(Arrays.equals(message.anchorHash, channel1.getAnchorTransactionServer(walletHelper2).getHash().getBytes()));\n Transaction escape = channel2.getEscapeTransactionServer();\n Transaction fastEscape = channel2.getFastEscapeTransactionServer();\n Sha256Hash hashEscape = escape.hashForSignature(0, channel2.getScriptAnchorOutputServer(), Transaction.SigHash.ALL, false);\n Sha256Hash hashFastEscape = fastEscape.hashForSignature(0, channel2.getScriptAnchorOutputServer(), Transaction.SigHash.ALL, false);\n assertTrue(channel2.getKeyClientA().verify(hashEscape, TransactionSignature.decodeFromBitcoin(message.signatureEscape, true)));\n assertTrue(channel2.getKeyClientA().verify(hashFastEscape, TransactionSignature.decodeFromBitcoin(message.signatureFastEscape, true)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-146"], "old_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n System.out.println(layerName + \" I: \" + msg);\n Message message = (Message) msg;\n message.verify();\n processor.onInboundMessage(message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "new_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "focal_file_path": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "focal_method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_old": "34-49", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_new": "37-57", "dependency_updated": "updated", "score": 0.1236, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2222, "class": 0.0, "tfidf": 0.0971}}, {"dep_id": 1, "method_sign": "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "file_path_old": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "line_nums_old": "224-248", "file_path_new": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "line_nums_new": "225-249", "dependency_updated": "updated", "score": 0.0754, "signal_scores": {"nc": 0.0, "lcs_u": 0.2333, "ed": 0.1667, "class": 0.0, "tfidf": 0.0289}}], "coverage_gold": 0.5517241379310345, "branch_coverage_gold": 5.0351, "method_coverage_gold": 14.6175, "line_coverage_gold": 12.8677, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["network/thunder/core/database/objects/Channel.getKeyClientA:()Lorg/bitcoinj/core/ECKey", "network/thunder/core/database/objects/Channel.getEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "network/thunder/core/database/objects/Channel.getScriptAnchorOutputServer:()Lorg/bitcoinj/script/Script", "network/thunder/core/database/objects/Channel.getAnchorTransactionServer:(Lnetwork/thunder/core/communication/objects/messages/interfaces/helper/WalletHelper;)Lorg/bitcoinj/core/Transaction", "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "298_blockchain_thunder-v0.1.2-alpha_6f1b834_3ce1667_LNEstablishHandlerTest", "test_sign": "network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.shouldSendMessageD:()V", "class": "LNEstablishHandlerTest", "method": "shouldSendMessageD", "module": "thunder-core", "junit_selector": "network.thunder.core.communication.nio.handler.high.LNEstablishHandlerTest#shouldSendMessageD", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSendMessageD() {\n channel2.writeInbound(channel1.readOutbound());\n channel1.writeInbound(channel2.readOutbound());\n channel2.writeInbound(channel1.readOutbound());\n Channel channel = processor1.channel;\n LNEstablishDMessage message = (LNEstablishDMessage) channel2.readOutbound();\n Transaction escape = channel.getEscapeTransactionServer();\n Transaction fastEscape = channel.getFastEscapeTransactionServer();\n Sha256Hash hashEscape = escape.hashForSignature(0, channel.getScriptAnchorOutputServer(), Transaction.SigHash.ALL, false);\n Sha256Hash hashFastEscape = fastEscape.hashForSignature(0, channel.getScriptAnchorOutputServer(), Transaction.SigHash.ALL, false);\n assertTrue(channel.getKeyClientA().verify(hashEscape, TransactionSignature.decodeFromBitcoin(message.signatureEscape, true)));\n assertTrue(channel.getKeyClientA().verify(hashFastEscape, TransactionSignature.decodeFromBitcoin(message.signatureFastEscape, true)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["148-167"], "old_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n System.out.println(layerName + \" I: \" + msg);\n Message message = (Message) msg;\n message.verify();\n processor.onInboundMessage(message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "new_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "focal_file_path": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "focal_method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_old": "34-49", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_new": "37-57", "dependency_updated": "updated", "score": 0.1449, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2778, "class": 0.0, "tfidf": 0.0807}}, {"dep_id": 1, "method_sign": "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "file_path_old": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "line_nums_old": "224-248", "file_path_new": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "line_nums_new": "225-249", "dependency_updated": "updated", "score": 0.0762, "signal_scores": {"nc": 0.0, "lcs_u": 0.2333, "ed": 0.1667, "class": 0.0, "tfidf": 0.0322}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 6.089, "method_coverage_gold": 16.3934, "line_coverage_gold": 15.1498, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["network/thunder/core/database/objects/Channel.getKeyClientA:()Lorg/bitcoinj/core/ECKey", "network/thunder/core/database/objects/Channel.getEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "network/thunder/core/database/objects/Channel.getScriptAnchorOutputServer:()Lorg/bitcoinj/script/Script", "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "network/thunder/core/database/objects/Channel.getFastEscapeTransactionServer:()Lorg/bitcoinj/core/Transaction", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/database/objects/Channel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "299_blockchain_thunder-v0.1.2-alpha_6f1b834_3ce1667_LNEstablishHandlerTest", "test_sign": "network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.shouldNotAcceptSignature:()V", "class": "LNEstablishHandlerTest", "method": "shouldNotAcceptSignature", "module": "thunder-core", "junit_selector": "network.thunder.core.communication.nio.handler.high.LNEstablishHandlerTest#shouldNotAcceptSignature", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotAcceptSignature() {\n channel2.writeInbound(channel1.readOutbound());\n channel1.writeInbound(channel2.readOutbound());\n LNEstablishCMessage message = (LNEstablishCMessage) channel1.readOutbound();\n LNEstablishCMessage messageSwappedSign = new LNEstablishCMessage(message.signatureFastEscape, message.signatureEscape, message.anchorHash);\n channel2.writeInbound(messageSwappedSign);\n System.out.println(channel2.readOutbound());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["169-179"], "old_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n System.out.println(layerName + \" I: \" + msg);\n Message message = (Message) msg;\n message.verify();\n processor.onInboundMessage(message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "new_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "focal_file_path": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "focal_method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_old": "34-49", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_new": "37-57", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 5.7377, "method_coverage_gold": 15.5738, "line_coverage_gold": 14.1875, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "300_blockchain_thunder-v0.1.2-alpha_6f1b834_3ce1667_LNEstablishHandlerTest", "test_sign": "network/thunder/core/communication/nio/handler/high/LNEstablishHandlerTest.shouldSendMessageB:()V", "class": "LNEstablishHandlerTest", "method": "shouldSendMessageB", "module": "thunder-core", "junit_selector": "network.thunder.core.communication.nio.handler.high.LNEstablishHandlerTest#shouldSendMessageB", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSendMessageB() {\n channel2.writeInbound(channel1.readOutbound());\n LNEstablishBMessage message = (LNEstablishBMessage) channel2.readOutbound();\n Channel channel = processor2.channel;\n assertTrue(Arrays.equals(message.pubKeyEscape, channel.getKeyServer().getPubKey()));\n assertTrue(Arrays.equals(message.pubKeyFastEscape, channel.getKeyServerA().getPubKey()));\n assertTrue(Arrays.equals(message.secretHashFastEscape, channel.getAnchorSecretHashServer()));\n assertTrue(Arrays.equals(message.anchorHash, channel.getAnchorTransactionServer(walletHelper1).getHash().getBytes()));\n assertEquals(message.serverAmount, channel.getAmountServer());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-122"], "old_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n System.out.println(layerName + \" I: \" + msg);\n Message message = (Message) msg;\n message.verify();\n processor.onInboundMessage(message);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "new_production_code": "@Override\npublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n try {\n checkIfMessage(msg);\n if (msg instanceof FailureMessage) {\n System.out.println(\"In Failure: \" + ((FailureMessage) msg).getFailure());\n } else {\n Message message = (Message) msg;\n message.verify();\n if (processor.consumesInboundMessage(message)) {\n processor.onInboundMessage(message);\n } else {\n messageExecutor.sendMessageDownwards(message);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n}", "focal_file_path": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "focal_method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_old": "34-49", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "line_nums_new": "37-57", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 4.5667, "method_coverage_gold": 11.4754, "line_coverage_gold": 10.6956, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["network/thunder/core/database/objects/Channel.getAmountServer:()J", "network/thunder/core/database/objects/Channel.getKeyServer:()Lorg/bitcoinj/core/ECKey", "network/thunder/core/database/objects/Channel.getAnchorSecretHashServer:()[B", "network/thunder/core/database/objects/Channel.getAnchorTransactionServer:(Lnetwork/thunder/core/communication/objects/messages/interfaces/helper/WalletHelper;)Lorg/bitcoinj/core/Transaction", "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "network/thunder/core/database/objects/Channel.getKeyServerA:()Lorg/bitcoinj/core/ECKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "network/thunder/core/communication/nio/handler/ProcessorHandler.channelRead:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "file_path_new": "thunder-core/src/main/java/network/thunder/core/communication/nio/handler/ProcessorHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.1.2-alpha", "java_version": 8} {"task_id": "cardillo_joinery-v1.10__4fd69fc_46488a0__DataFrameConversionTest_94a5d44f", "project_name": "cardillo_joinery-v1.10", "git_clone_url": "https://github.com/cardillo/joinery.git", "rev1": "4fd69fc6e5d0aecb0e4204504bf3bd4304df6e25", "rev2": "46488a069b68211d23f249e5f316cc1c25a09bb3", "rev1_date": "2014-11-24T20:31:42Z", "rev2_date": "2014-11-24T22:28:02Z", "git_diff_url": "https://github.com/cardillo/joinery/compare/4fd69fc6e5d0aecb0e4204504bf3bd4304df6e25...46488a069b68211d23f249e5f316cc1c25a09bb3", "test_file": "src/test/java/joinery/DataFrameConversionTest.java", "test_changes": [{"change_id": "68_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testConvertColumns:()V", "class": "DataFrameConversionTest", "method": "testConvertColumns", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testConvertColumns", "old_test_code": null, "new_test_code": "@Test\npublic void testConvertColumns() {\n df.convert(null, Long.class, Number.class);\n assertEquals(String.class, df.get(\"row1\", \"string\").getClass());\n assertEquals(Long.class, df.get(\"row1\", \"long\").getClass());\n assertEquals(Double.class, df.get(\"row1\", \"double\").getClass());\n assertEquals(String.class, df.get(\"row1\", \"date\").getClass());\n assertEquals(String.class, df.get(\"row1\", \"bool\").getClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["132-155"], "old_production_code": "", "new_production_code": "@SafeVarargs\npublic final DataFrame convert(final Class... columnTypes) {\n Conversion.convert(this, columnTypes);\n return this;\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.convert:([Ljava/lang/Class;)Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.convert:([Ljava/lang/Class;)Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "251-255", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 13.9785, "method_coverage_gold": 16.9231, "line_coverage_gold": 16.1435, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.convert:([Ljava/lang/Class;)Ljoinery/DataFrame", "joinery/DataFrame.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.convert:([Ljava/lang/Class;)Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "69_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testConvertFails:()V", "class": "DataFrameConversionTest", "method": "testConvertFails", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testConvertFails", "old_test_code": null, "new_test_code": "@Test(expected = ClassCastException.class)\npublic void testConvertFails() {\n final DataFrame bad = new DataFrame<>(Arrays.asList(\"row1\", \"row2\", \"row3\", \"row4\", \"row5\", \"row6\"), Arrays.asList(\"string\", \"long\", \"double\", \"date\"), Arrays.>asList(Arrays.asList(\"one\", \"two\", \"three\", \"four\", \"five\", \"six\"), Arrays.asList(\"1\", \"2\", \"3\", \"4\", \"5\", \"6\"), Arrays.asList(\"1.1\", \"2.2\", \"3.3\", \"4.4\", \"5.5\", \"6.6\"), Arrays.asList(\"2014-01-01\", \"2014-01-02\", \"2014-01-03\", \"2014-01-04\", \"2014-01-05\", \"2014-01-06\")));\n bad.convert();\n @SuppressWarnings(\"unused\")\n final String tmp = bad.get(\"row1\", \"long\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-96"], "old_production_code": "", "new_production_code": "public DataFrame convert() {\n Conversion.convert(this);\n return this;\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "246-249", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.129, "method_coverage_gold": 19.2308, "line_coverage_gold": 20.1794, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object", "joinery/DataFrame.convert:()Ljoinery/DataFrame"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "70_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testNotNull:()V", "class": "DataFrameConversionTest", "method": "testNotNull", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testNotNull", "old_test_code": null, "new_test_code": "@Test\npublic void testNotNull() {\n final DataFrame nonnulls = df.notnull();\n final Object[] expected = new Boolean[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false };\n assertArrayEquals(expected, nonnulls.toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["115-130"], "old_production_code": "", "new_production_code": "public DataFrame notnull() {\n return Conversion.notnull(this);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "261-263", "dependency_updated": "inserted", "score": 0.6483, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.3052}}, {"dep_id": 0, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "265-267", "dependency_updated": "inserted", "score": 0.0932, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 0.0, "tfidf": 0.1888}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.1398, "method_coverage_gold": 23.0769, "line_coverage_gold": 15.6951, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.notnull:()Ljoinery/DataFrame", "joinery/DataFrame.toArray:()[Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "71_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testConvert:()V", "class": "DataFrameConversionTest", "method": "testConvert", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testConvert", "old_test_code": null, "new_test_code": "@Test\npublic void testConvert() {\n df.convert();\n assertEquals(String.class, df.get(\"row1\", \"string\").getClass());\n assertEquals(Long.class, df.get(\"row1\", \"long\").getClass());\n assertEquals(Double.class, df.get(\"row1\", \"double\").getClass());\n assertEquals(Date.class, df.get(\"row1\", \"date\").getClass());\n assertEquals(Boolean.class, df.get(\"row1\", \"bool\").getClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-79"], "old_production_code": "", "new_production_code": "public DataFrame convert() {\n Conversion.convert(this);\n return this;\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "246-249", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.2043, "method_coverage_gold": 19.2308, "line_coverage_gold": 20.6278, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object", "joinery/DataFrame.convert:()Ljoinery/DataFrame"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.convert:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "72_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testIsNull:()V", "class": "DataFrameConversionTest", "method": "testIsNull", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testIsNull", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNull() {\n final DataFrame nulls = df.isnull();\n final Object[] expected = new Boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true };\n assertArrayEquals(expected, nulls.toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-113"], "old_production_code": "", "new_production_code": "public DataFrame isnull() {\n return Conversion.isnull(this);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "257-259", "dependency_updated": "inserted", "score": 0.6483, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.3052}}, {"dep_id": 1, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "265-267", "dependency_updated": "inserted", "score": 0.0444, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.1888}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.1398, "method_coverage_gold": 23.0769, "line_coverage_gold": 15.6951, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.isnull:()Ljoinery/DataFrame", "joinery/DataFrame.toArray:()[Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "73_cardillo_joinery-v1.10_4fd69fc_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testCast:()V", "class": "DataFrameConversionTest", "method": "testCast", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testCast", "old_test_code": null, "new_test_code": "@Test\npublic void testCast() {\n final DataFrame strings = df.cast(String.class);\n assertArrayEquals(new String[] { \"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"1.1\", \"2.2\", \"3.3\", \"4.4\", \"5.5\", \"6.6\", \"2014-01-01\", \"2014-01-02\", \"2014-01-03\", \"2014-01-04\", \"2014-01-05\", \"2014-01-06\", \"t\", \"true\", \"f\", \"false\", \"yes\", \"no\", null, null, null, null, null, null }, strings.transpose().toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-47"], "old_production_code": "", "new_production_code": "public DataFrame transpose() {\n return new DataFrame<>(index.names(), columns.names(), new Views.ListView<>(this, true));\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "230-236", "dependency_updated": "inserted", "score": 0.0846, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.2222, "class": 0.0, "tfidf": 0.0375}}, {"dep_id": 0, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "265-267", "dependency_updated": "inserted", "score": 0.0555, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 0.0, "tfidf": 0.0286}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.0645, "method_coverage_gold": 20.7692, "line_coverage_gold": 14.574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.transpose:()Ljoinery/DataFrame", "joinery/DataFrame.cast:(Ljava/lang/Class;)Ljoinery/DataFrame", "joinery/DataFrame.toArray:()[Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.10", "java_version": 8} {"task_id": "cardillo_joinery-v1.10__4fd69fc_eedddb9__DataFrameConversionTest_128d83a5", "project_name": "cardillo_joinery-v1.10", "git_clone_url": "https://github.com/cardillo/joinery.git", "rev1": "4fd69fc6e5d0aecb0e4204504bf3bd4304df6e25", "rev2": "eedddb92126b9690f893ed034390b39da740bacd", "rev1_date": "2014-11-24T20:31:42Z", "rev2_date": "2014-11-25T03:09:18Z", "git_diff_url": "https://github.com/cardillo/joinery/compare/4fd69fc6e5d0aecb0e4204504bf3bd4304df6e25...eedddb92126b9690f893ed034390b39da740bacd", "test_file": "src/test/java/joinery/DataFrameConversionTest.java", "test_changes": [{"change_id": "84_cardillo_joinery-v1.10_4fd69fc_eedddb9_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testNotNull:()V", "class": "DataFrameConversionTest", "method": "testNotNull", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testNotNull", "old_test_code": null, "new_test_code": "@Test\npublic void testNotNull() {\n final DataFrame nonnulls = df.notnull();\n final Object[] expected = new Boolean[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, false, false, false, false, false };\n assertArrayEquals(expected, nonnulls.transpose().toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["115-130"], "old_production_code": "", "new_production_code": "public DataFrame notnull() {\n return Conversion.notnull(this);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "262-264", "dependency_updated": "inserted", "score": 0.6463, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.2966}}, {"dep_id": 0, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "266-268", "dependency_updated": "inserted", "score": 0.092, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 0.0, "tfidf": 0.184}}, {"dep_id": 2, "method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "231-237", "dependency_updated": "inserted", "score": 0.0821, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 0.0, "tfidf": 0.1046}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.9375, "method_coverage_gold": 24.3421, "line_coverage_gold": 17.3737, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["8d62f63e2c17baca6baf506fbe7287043752fce3", "46488a069b68211d23f249e5f316cc1c25a09bb3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.toArray:()[Ljava/lang/Object", "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "joinery/DataFrame.transpose:()Ljoinery/DataFrame"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.notnull:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "85_cardillo_joinery-v1.10_4fd69fc_eedddb9_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testIsNull:()V", "class": "DataFrameConversionTest", "method": "testIsNull", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testIsNull", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNull() {\n final DataFrame nulls = df.isnull();\n final Object[] expected = new Boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, true, true, true, true, true, true };\n assertArrayEquals(expected, nulls.transpose().toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-113"], "old_production_code": "", "new_production_code": "public DataFrame isnull() {\n return Conversion.isnull(this);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "258-260", "dependency_updated": "inserted", "score": 0.6463, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.2966}}, {"dep_id": 2, "method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "231-237", "dependency_updated": "inserted", "score": 0.0625, "signal_scores": {"nc": 0.0, "lcs_u": 0.1111, "ed": 0.1111, "class": 0.0, "tfidf": 0.1046}}, {"dep_id": 1, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "266-268", "dependency_updated": "inserted", "score": 0.0433, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.184}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.9375, "method_coverage_gold": 24.3421, "line_coverage_gold": 17.3737, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["8d62f63e2c17baca6baf506fbe7287043752fce3", "46488a069b68211d23f249e5f316cc1c25a09bb3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.isnull:()Ljoinery/DataFrame", "joinery/DataFrame.toArray:()[Ljava/lang/Object", "joinery/DataFrame.transpose:()Ljoinery/DataFrame"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.isnull:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.transpose:()Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "86_cardillo_joinery-v1.10_4fd69fc_eedddb9_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testCast:()V", "class": "DataFrameConversionTest", "method": "testCast", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testCast", "old_test_code": null, "new_test_code": "@Test\npublic void testCast() {\n final DataFrame strings = df.cast(String.class);\n assertArrayEquals(new String[] { \"one\", \"two\", \"three\", \"four\", \"five\", \"six\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"1.1\", \"2.2\", \"3.3\", \"4.4\", \"5.5\", \"6.6\", \"2014-01-01\", \"2014-01-02\", \"2014-01-03\", \"2014-01-04\", \"2014-01-05\", \"2014-01-06\", \"t\", \"true\", \"f\", \"false\", \"yes\", \"no\", null, null, null, null, null, null }, strings.toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-47"], "old_production_code": "", "new_production_code": "public Object[] toArray() {\n return toArray(new Object[size() * length()]);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "266-268", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.7292, "method_coverage_gold": 12.5, "line_coverage_gold": 9.697, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["8d62f63e2c17baca6baf506fbe7287043752fce3", "46488a069b68211d23f249e5f316cc1c25a09bb3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.toArray:()[Ljava/lang/Object", "joinery/DataFrame.cast:(Ljava/lang/Class;)Ljoinery/DataFrame"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.toArray:()[Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.10", "java_version": 8} {"task_id": "cardillo_joinery-v1.10__625d895_70fd222__DataFrameSelectionTest_eb59c965", "project_name": "cardillo_joinery-v1.10", "git_clone_url": "https://github.com/cardillo/joinery.git", "rev1": "625d895801ef1556bfe3d285f2f05c1129e691da", "rev2": "70fd2220ae90217f66af237dc4885f3891458e65", "rev1_date": "2014-11-24T13:59:31Z", "rev2_date": "2014-11-24T17:55:59Z", "git_diff_url": "https://github.com/cardillo/joinery/compare/625d895801ef1556bfe3d285f2f05c1129e691da...70fd2220ae90217f66af237dc4885f3891458e65", "test_file": "src/test/java/joinery/DataFrameSelectionTest.java", "test_changes": [{"change_id": "81_cardillo_joinery-v1.10_625d895_70fd222_DataFrameSelectionTest", "test_sign": "joinery/DataFrameSelectionTest.testSelectNoMatch:()V", "class": "DataFrameSelectionTest", "method": "testSelectNoMatch", "module": "", "junit_selector": "joinery.DataFrameSelectionTest#testSelectNoMatch", "old_test_code": null, "new_test_code": "@Test\npublic void testSelectNoMatch() {\n assertEquals(0, df.select(new DataFrame.Predicate() {\n\n @Override\n public Boolean apply(final List row) {\n return false;\n }\n }).length());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-61"], "old_production_code": "", "new_production_code": "public DataFrame select(final Predicate predicate) {\n final BitSet selected = Selection.select(this, predicate);\n return new DataFrame(Selection.select(index, selected), columns, Selection.select(data, selected), new Grouping());\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "210-218", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.4179, "method_coverage_gold": 25.6098, "line_coverage_gold": 25.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "joinery/DataFrame.length:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "82_cardillo_joinery-v1.10_625d895_70fd222_DataFrameSelectionTest", "test_sign": "joinery/DataFrameSelectionTest.testSelectIndex:()V", "class": "DataFrameSelectionTest", "method": "testSelectIndex", "module": "", "junit_selector": "joinery.DataFrameSelectionTest#testSelectIndex", "old_test_code": null, "new_test_code": "@Test\npublic void testSelectIndex() {\n assertArrayEquals(new String[] { \"row15\" }, df.select(new DataFrame.Predicate() {\n\n @Override\n public Boolean apply(final List row) {\n return new Integer(150).equals(row.get(1));\n }\n }).index().toArray());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-74"], "old_production_code": "", "new_production_code": "public DataFrame select(final Predicate predicate) {\n final BitSet selected = Selection.select(this, predicate);\n return new DataFrame(Selection.select(index, selected), columns, Selection.select(data, selected), new Grouping());\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "210-218", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.403, "method_coverage_gold": 31.7073, "line_coverage_gold": 27.9221, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "joinery/DataFrame.index:()Ljava/util/Set"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "83_cardillo_joinery-v1.10_625d895_70fd222_DataFrameSelectionTest", "test_sign": "joinery/DataFrameSelectionTest.testSelectMatch:()V", "class": "DataFrameSelectionTest", "method": "testSelectMatch", "module": "", "junit_selector": "joinery.DataFrameSelectionTest#testSelectMatch", "old_test_code": null, "new_test_code": "@Test\npublic void testSelectMatch() {\n assertEquals(1, df.select(new DataFrame.Predicate() {\n\n @Override\n public Boolean apply(final List row) {\n return new Integer(150).equals(row.get(1));\n }\n }).length());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-48"], "old_production_code": "", "new_production_code": "public DataFrame select(final Predicate predicate) {\n final BitSet selected = Selection.select(this, predicate);\n return new DataFrame(Selection.select(index, selected), columns, Selection.select(data, selected), new Grouping());\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "210-218", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.403, "method_coverage_gold": 30.4878, "line_coverage_gold": 27.5974, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "joinery/DataFrame.length:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.select:(Ljoinery/DataFrame$Predicate;)Ljoinery/DataFrame", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.10", "java_version": 8} {"task_id": "cardillo_joinery-v1.10__7227951_46488a0__DataFrameConversionTest_863d4f23", "project_name": "cardillo_joinery-v1.10", "git_clone_url": "https://github.com/cardillo/joinery.git", "rev1": "72279516a3f7e814d8898c37a28b2ae8714fd352", "rev2": "46488a069b68211d23f249e5f316cc1c25a09bb3", "rev1_date": "2014-11-24T12:32:44Z", "rev2_date": "2014-11-24T22:28:02Z", "git_diff_url": "https://github.com/cardillo/joinery/compare/72279516a3f7e814d8898c37a28b2ae8714fd352...46488a069b68211d23f249e5f316cc1c25a09bb3", "test_file": "src/test/java/joinery/DataFrameConversionTest.java", "test_changes": [{"change_id": "74_cardillo_joinery-v1.10_7227951_46488a0_DataFrameConversionTest", "test_sign": "joinery/DataFrameConversionTest.testCastFails:()V", "class": "DataFrameConversionTest", "method": "testCastFails", "module": "", "junit_selector": "joinery.DataFrameConversionTest#testCastFails", "old_test_code": null, "new_test_code": "@Test(expected = ClassCastException.class)\npublic void testCastFails() {\n final DataFrame dates = df.cast(Date.class);\n @SuppressWarnings(\"unused\")\n final Date dt = dates.get(0, 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-54"], "old_production_code": "", "new_production_code": "public V get(final int row, final int col) {\n return data.get(col, row);\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.get:(II)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.get:(II)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "192-194", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.914, "method_coverage_gold": 9.2308, "line_coverage_gold": 8.7444, "is_traceback": true, "commit_gap": {"count": 5, "skipped_commits": ["4fd69fc6e5d0aecb0e4204504bf3bd4304df6e25", "15eeb3b1b6684e035889a4f8a15d5a369a1a8fdd", "2d6c066f023d4092acffbdb823f07328031ee83d", "70fd2220ae90217f66af237dc4885f3891458e65", "625d895801ef1556bfe3d285f2f05c1129e691da"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.cast:(Ljava/lang/Class;)Ljoinery/DataFrame", "joinery/DataFrame.get:(II)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.get:(II)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.10", "java_version": 8} {"task_id": "cardillo_joinery-v1.10__7a058c8_7567235__DataFrameIterationTest_8459f34f", "project_name": "cardillo_joinery-v1.10", "git_clone_url": "https://github.com/cardillo/joinery.git", "rev1": "7a058c89afe51a802ec6ab8504ed1c71530e8694", "rev2": "7567235b4b3d80ebfc202118194d5724c271cfb1", "rev1_date": "2014-11-25T15:43:51Z", "rev2_date": "2014-11-25T17:05:54Z", "git_diff_url": "https://github.com/cardillo/joinery/compare/7a058c89afe51a802ec6ab8504ed1c71530e8694...7567235b4b3d80ebfc202118194d5724c271cfb1", "test_file": "src/test/java/joinery/DataFrameIterationTest.java", "test_changes": [{"change_id": "75_cardillo_joinery-v1.10_7a058c8_7567235_DataFrameIterationTest", "test_sign": "joinery/DataFrameIterationTest.testIterRows:()V", "class": "DataFrameIterationTest", "method": "testIterRows", "module": "", "junit_selector": "joinery.DataFrameIterationTest#testIterRows", "old_test_code": null, "new_test_code": "@Test\npublic void testIterRows() {\n int i = 0;\n final ListIterator> it = df.iterrows();\n while (it.hasNext()) {\n final List row = it.next();\n assertEquals(i % 2 == 0 ? \"alpha\" : \"beta\", row.get(0));\n assertEquals(String.valueOf(i + 1), row.get(1));\n i++;\n }\n assertEquals(df.length(), i);\n while (it.hasPrevious()) {\n i--;\n final List row = it.previous();\n assertEquals(i % 2 == 0 ? \"alpha\" : \"beta\", row.get(0));\n assertEquals(String.valueOf(i + 1), row.get(1));\n }\n assertEquals(0, i);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-72"], "old_production_code": "", "new_production_code": "public ListIterator> iterrows() {\n return new Views.ListView<>(this, true).listIterator();\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.iterrows:()Ljava/util/ListIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.iterrows:()Ljava/util/ListIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "448-450", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15517241379310345, "branch_coverage_gold": 7.619, "method_coverage_gold": 10.6145, "line_coverage_gold": 9.872, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/impl/Views$SeriesListView.get:(I)Ljava/lang/Object", "joinery/DataFrame.length:()I", "joinery/DataFrame.iterrows:()Ljava/util/ListIterator", "joinery/impl/Views$ListView.size:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.iterrows:()Ljava/util/ListIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "76_cardillo_joinery-v1.10_7a058c8_7567235_DataFrameIterationTest", "test_sign": "joinery/DataFrameIterationTest.testIterValues:()V", "class": "DataFrameIterationTest", "method": "testIterValues", "module": "", "junit_selector": "joinery.DataFrameIterationTest#testIterValues", "old_test_code": null, "new_test_code": "@Test\npublic void testIterValues() {\n int i = 0;\n final ListIterator it = df.itervalues();\n while (it.hasNext()) {\n it.next();\n i++;\n }\n assertEquals(df.size() * df.length(), i);\n while (it.hasPrevious()) {\n i--;\n it.previous();\n }\n assertEquals(0, i);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-120"], "old_production_code": "", "new_production_code": "public ListIterator itervalues() {\n return new Views.FlatView<>(this).listIterator();\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.itervalues:()Ljava/util/ListIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.itervalues:()Ljava/util/ListIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "460-462", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.1905, "method_coverage_gold": 10.0559, "line_coverage_gold": 8.7751, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/impl/Views$FlatView.size:()I", "joinery/DataFrame.size:()I", "joinery/DataFrame.itervalues:()Ljava/util/ListIterator", "joinery/impl/Views$FlatView.get:(I)Ljava/lang/Object", "joinery/DataFrame.length:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.itervalues:()Ljava/util/ListIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "78_cardillo_joinery-v1.10_7a058c8_7567235_DataFrameIterationTest", "test_sign": "joinery/DataFrameIterationTest.testIterMap:()V", "class": "DataFrameIterationTest", "method": "testIterMap", "module": "", "junit_selector": "joinery.DataFrameIterationTest#testIterMap", "old_test_code": null, "new_test_code": "@Test\npublic void testIterMap() {\n int i = 0;\n final ListIterator> it = df.itermap();\n while (it.hasNext()) {\n final Map row = it.next();\n assertEquals(i % 2 == 0 ? \"alpha\" : \"beta\", row.get(\"name\"));\n assertEquals(String.valueOf(i + 1), row.get(\"value\"));\n i++;\n }\n assertEquals(df.length(), i);\n while (it.hasPrevious()) {\n i--;\n final Map row = it.previous();\n assertEquals(i % 2 == 0 ? \"alpha\" : \"beta\", row.get(\"name\"));\n assertEquals(String.valueOf(i + 1), row.get(\"value\"));\n }\n assertEquals(0, i);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-92"], "old_production_code": "", "new_production_code": "public ListIterator> itermap() {\n return new Views.MapView<>(this, true).listIterator();\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.itermap:()Ljava/util/ListIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "joinery/DataFrame.itermap:()Ljava/util/ListIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "456-458", "dependency_updated": "inserted", "score": 0.6272, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.2154}}, {"dep_id": 0, "method_sign": "joinery/impl/Views$SeriesMapView.entrySet:()Ljava/util/Set", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/impl/Views.java", "line_nums_new": "111-163", "dependency_updated": "inserted", "score": 0.1497, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 0.0, "tfidf": 0.3612}}, {"dep_id": 2, "method_sign": "joinery/impl/Views$MapView.size:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/impl/Views.java", "line_nums_new": "93-96", "dependency_updated": "inserted", "score": 0.1312, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 0.0, "tfidf": 0.0824}}], "coverage_gold": 0.4666666666666667, "branch_coverage_gold": 8.0952, "method_coverage_gold": 16.2011, "line_coverage_gold": 12.4314, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.itermap:()Ljava/util/ListIterator", "joinery/impl/Views$MapView.size:()I", "joinery/impl/Views$SeriesMapView.entrySet:()Ljava/util/Set", "joinery/DataFrame.length:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/impl/Views$SeriesMapView.entrySet:()Ljava/util/Set", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/impl/Views.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/DataFrame.itermap:()Ljava/util/ListIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "joinery/impl/Views$MapView.size:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/impl/Views.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "79_cardillo_joinery-v1.10_7a058c8_7567235_DataFrameIterationTest", "test_sign": "joinery/DataFrameIterationTest.testIterCols:()V", "class": "DataFrameIterationTest", "method": "testIterCols", "module": "", "junit_selector": "joinery.DataFrameIterationTest#testIterCols", "old_test_code": null, "new_test_code": "@Test\npublic void testIterCols() {\n int i = 0;\n final Iterator> it = df.itercols();\n while (it.hasNext()) {\n final List col = it.next();\n assertEquals(4, col.size());\n i++;\n }\n assertEquals(i, df.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-104"], "old_production_code": "", "new_production_code": "public ListIterator> itercols() {\n return new Views.ListView<>(this, false).listIterator();\n}", "focal_file_path": "src/main/java/joinery/DataFrame.java", "focal_method_sign": "joinery/DataFrame.itercols:()Ljava/util/ListIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "joinery/DataFrame.itercols:()Ljava/util/ListIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "line_nums_new": "452-454", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15517241379310345, "branch_coverage_gold": 7.619, "method_coverage_gold": 10.0559, "line_coverage_gold": 9.6892, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["joinery/DataFrame.size:()I", "joinery/DataFrame.itercols:()Ljava/util/ListIterator", "joinery/impl/Views$SeriesListView.size:()I", "joinery/impl/Views$ListView.size:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "joinery/DataFrame.itercols:()Ljava/util/ListIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/joinery/DataFrame.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.10", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__3603d6f_a69db93__FilteredAdapterTest_ccc9d9e4", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "3603d6ff00e7bf1d4d3bb8b59ceb1f2887533160", "rev2": "a69db939567061ac25f415bb722d1cbd76effb44", "rev1_date": "2020-06-08T02:10:13Z", "rev2_date": "2020-06-08T12:51:30Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/3603d6ff00e7bf1d4d3bb8b59ceb1f2887533160...a69db939567061ac25f415bb722d1cbd76effb44", "test_file": "src/test/java/org/casbin/jcasbin/main/FilteredAdapterTest.java", "test_changes": [{"change_id": "591_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testLoadFilteredPolicy:()V", "class": "FilteredAdapterTest", "method": "testLoadFilteredPolicy", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testLoadFilteredPolicy", "old_test_code": null, "new_test_code": "@Test\npublic void testLoadFilteredPolicy() {\n Adapter adapter = new FilteredAdapter(\"examples/rbac_with_domains_policy.csv\");\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\", \"examples/rbac_with_domains_policy.csv\", true);\n enforcer.setAdapter(adapter);\n testHasPolicy(enforcer, asList(\"admin\", \"domain1\", \"data1\", \"read\"), true);\n testHasPolicy(enforcer, asList(\"admin\", \"domain2\", \"data2\", \"read\"), true);\n FilteredAdapter.Filter f = new FilteredAdapter.Filter();\n f.g = new String[] { \"\", \"\", \"domain1\" };\n f.p = new String[] { \"\", \"domain1\" };\n enforcer.loadFilteredPolicy(f);\n testHasPolicy(enforcer, asList(\"admin\", \"domain1\", \"data1\", \"read\"), true);\n testHasPolicy(enforcer, asList(\"admin\", \"domain2\", \"data2\", \"read\"), false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-41"], "old_production_code": "public void loadFilteredPolicy(Object filter) {\n}", "new_production_code": "public void loadFilteredPolicy(Object filter) {\n model.clearPolicy();\n FilteredAdapter filteredAdapter;\n if (adapter instanceof FilteredAdapter) {\n filteredAdapter = (FilteredAdapter) adapter;\n } else {\n throw new CasbinAdapterException(\"Filtered policies are not supported by this adapter.\");\n }\n try {\n filteredAdapter.loadFilteredPolicy(model, filter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.printPolicy();\n if (autoBuildRoleLinks) {\n buildRoleLinks();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 25.4902, "method_coverage_gold": 21.988, "line_coverage_gold": 26.0212, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.setAdapter:(Lorg/casbin/jcasbin/persist/Adapter;)V", "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "org/casbin/jcasbin/main/TestUtil.testHasPolicy:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/util/List;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "592_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testFilteredAdapterEmptyFilepath:()V", "class": "FilteredAdapterTest", "method": "testFilteredAdapterEmptyFilepath", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testFilteredAdapterEmptyFilepath", "old_test_code": null, "new_test_code": "@Test\npublic void testFilteredAdapterEmptyFilepath() {\n Adapter adapter = new FilteredAdapter(\"\");\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\");\n enforcer.setAdapter(adapter);\n enforcer.loadFilteredPolicy(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-107"], "old_production_code": "public void loadFilteredPolicy(Object filter) {\n}", "new_production_code": "public void loadFilteredPolicy(Object filter) {\n model.clearPolicy();\n FilteredAdapter filteredAdapter;\n if (adapter instanceof FilteredAdapter) {\n filteredAdapter = (FilteredAdapter) adapter;\n } else {\n throw new CasbinAdapterException(\"Filtered policies are not supported by this adapter.\");\n }\n try {\n filteredAdapter.loadFilteredPolicy(model, filter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.printPolicy();\n if (autoBuildRoleLinks) {\n buildRoleLinks();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 16.122, "method_coverage_gold": 16.8675, "line_coverage_gold": 18.8351, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.setAdapter:(Lorg/casbin/jcasbin/persist/Adapter;)V", "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "593_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testFilteredAdapterInvalidFilepath:()V", "class": "FilteredAdapterTest", "method": "testFilteredAdapterInvalidFilepath", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testFilteredAdapterInvalidFilepath", "old_test_code": null, "new_test_code": "@Test\npublic void testFilteredAdapterInvalidFilepath() {\n Adapter adapter = new FilteredAdapter(\"examples/does_not_exist_policy.csv\");\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\");\n enforcer.setAdapter(adapter);\n try {\n enforcer.loadFilteredPolicy(null);\n } catch (CasbinAdapterException e) {\n e.printStackTrace();\n assert true;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-121"], "old_production_code": "public void loadFilteredPolicy(Object filter) {\n}", "new_production_code": "public void loadFilteredPolicy(Object filter) {\n model.clearPolicy();\n FilteredAdapter filteredAdapter;\n if (adapter instanceof FilteredAdapter) {\n filteredAdapter = (FilteredAdapter) adapter;\n } else {\n throw new CasbinAdapterException(\"Filtered policies are not supported by this adapter.\");\n }\n try {\n filteredAdapter.loadFilteredPolicy(model, filter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.printPolicy();\n if (autoBuildRoleLinks) {\n buildRoleLinks();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 16.5577, "method_coverage_gold": 16.8675, "line_coverage_gold": 18.9864, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.setAdapter:(Lorg/casbin/jcasbin/persist/Adapter;)V", "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "594_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testFilteredPolicyEmptyFilter:()V", "class": "FilteredAdapterTest", "method": "testFilteredPolicyEmptyFilter", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testFilteredPolicyEmptyFilter", "old_test_code": null, "new_test_code": "@Test\npublic void testFilteredPolicyEmptyFilter() {\n Adapter adapter = new FilteredAdapter(\"examples/rbac_with_domains_policy.csv\");\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\");\n enforcer.setAdapter(adapter);\n enforcer.loadFilteredPolicy(null);\n Util.logPrint(\"Is adapter filtered:\" + enforcer.isFiltered());\n assert !enforcer.isFiltered();\n enforcer.savePolicy();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-79"], "old_production_code": "public boolean isFiltered() {\n return false;\n}", "new_production_code": "public boolean isFiltered() {\n if (adapter instanceof FilteredAdapter) {\n return ((FilteredAdapter) adapter).isFiltered();\n }\n return false;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.isFiltered:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.isFiltered:()Z", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "220-222", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "238-243", "dependency_updated": "updated", "score": 0.2503, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.24, "class": 0.0, "tfidf": 0.2957}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": 0.2391, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.4, "class": 0.0, "tfidf": 0.153}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 21.1329, "method_coverage_gold": 22.2892, "line_coverage_gold": 24.5083, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.isFiltered:()Z", "org/casbin/jcasbin/util/Util.logPrint:(Ljava/lang/String;)V", "org/casbin/jcasbin/main/CoreEnforcer.setAdapter:(Lorg/casbin/jcasbin/persist/Adapter;)V", "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "org/casbin/jcasbin/main/CoreEnforcer.savePolicy:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.isFiltered:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "595_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testUnsupportedFilteredPolicy:()V", "class": "FilteredAdapterTest", "method": "testUnsupportedFilteredPolicy", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testUnsupportedFilteredPolicy", "old_test_code": null, "new_test_code": "@Test\npublic void testUnsupportedFilteredPolicy() {\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\", \"examples/rbac_with_domains_policy.csv\", true);\n FilteredAdapter.Filter f = new FilteredAdapter.Filter();\n f.g = new String[] { \"\", \"\", \"domain1\" };\n f.p = new String[] { \"\", \"domain1\" };\n try {\n enforcer.loadFilteredPolicy(f);\n } catch (CasbinAdapterException e) {\n e.printStackTrace();\n assert true;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-98"], "old_production_code": "public void loadFilteredPolicy(Object filter) {\n}", "new_production_code": "public void loadFilteredPolicy(Object filter) {\n model.clearPolicy();\n FilteredAdapter filteredAdapter;\n if (adapter instanceof FilteredAdapter) {\n filteredAdapter = (FilteredAdapter) adapter;\n } else {\n throw new CasbinAdapterException(\"Filtered policies are not supported by this adapter.\");\n }\n try {\n filteredAdapter.loadFilteredPolicy(model, filter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.printPolicy();\n if (autoBuildRoleLinks) {\n buildRoleLinks();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 18.7364, "method_coverage_gold": 18.9759, "line_coverage_gold": 21.407, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "596_casbin_jcasbin-v1.99.0_3603d6f_a69db93_FilteredAdapterTest", "test_sign": "org/casbin/jcasbin/main/FilteredAdapterTest.testFilteredPolicyInvalidFilte:()V", "class": "FilteredAdapterTest", "method": "testFilteredPolicyInvalidFilte", "module": "", "junit_selector": "org.casbin.jcasbin.main.FilteredAdapterTest#testFilteredPolicyInvalidFilte", "old_test_code": null, "new_test_code": "@Test\npublic void testFilteredPolicyInvalidFilte() {\n Adapter adapter = new FilteredAdapter(\"examples/rbac_with_domains_policy.csv\");\n Enforcer enforcer = new Enforcer(\"examples/rbac_with_domains_model.conf\");\n enforcer.setAdapter(adapter);\n try {\n enforcer.loadFilteredPolicy(new String[] { \"\", \"domain1\" });\n } catch (CasbinAdapterException e) {\n e.printStackTrace();\n assert true;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-66"], "old_production_code": "public void loadFilteredPolicy(Object filter) {\n}", "new_production_code": "public void loadFilteredPolicy(Object filter) {\n model.clearPolicy();\n FilteredAdapter filteredAdapter;\n if (adapter instanceof FilteredAdapter) {\n filteredAdapter = (FilteredAdapter) adapter;\n } else {\n throw new CasbinAdapterException(\"Filtered policies are not supported by this adapter.\");\n }\n try {\n filteredAdapter.loadFilteredPolicy(model, filter);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.printPolicy();\n if (autoBuildRoleLinks) {\n buildRoleLinks();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_old": "212-213", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "214-231", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 16.5577, "method_coverage_gold": 16.8675, "line_coverage_gold": 18.9864, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.setAdapter:(Lorg/casbin/jcasbin/persist/Adapter;)V", "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.loadFilteredPolicy:(Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__6bf268e_24d039c__SyncedManagementAPIUnitTest_4cefd72c", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "6bf268e019da4fcfc85d51ae85472f71ec05a2db", "rev2": "24d039c42064fe407fb524ddc354cd47d12d1c6d", "rev1_date": "2020-05-06T07:16:02Z", "rev2_date": "2020-05-06T07:24:20Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/6bf268e019da4fcfc85d51ae85472f71ec05a2db...24d039c42064fe407fb524ddc354cd47d12d1c6d", "test_file": "src/test/java/org/casbin/jcasbin/main/SyncedManagementAPIUnitTest.java", "test_changes": [{"change_id": "643_casbin_jcasbin-v1.99.0_6bf268e_24d039c_SyncedManagementAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedManagementAPIUnitTest.testModifyPolicyAPI:()V", "class": "SyncedManagementAPIUnitTest", "method": "testModifyPolicyAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedManagementAPIUnitTest#testModifyPolicyAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testModifyPolicyAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_policy.csv\");\n testGetPolicy(e, asList(asList(\"alice\", \"data1\", \"read\"), asList(\"bob\", \"data2\", \"write\"), asList(\"data2_admin\", \"data2\", \"read\"), asList(\"data2_admin\", \"data2\", \"write\")));\n e.removePolicy(\"alice\", \"data1\", \"read\");\n e.removePolicy(\"bob\", \"data2\", \"write\");\n e.removePolicy(\"alice\", \"data1\", \"read\");\n e.addPolicy(\"eve\", \"data3\", \"read\");\n e.addPolicy(\"eve\", \"data3\", \"read\");\n List namedPolicy = asList(\"eve\", \"data3\", \"read\");\n e.removeNamedPolicy(\"p\", namedPolicy);\n e.addNamedPolicy(\"p\", namedPolicy);\n testGetPolicy(e, asList(asList(\"data2_admin\", \"data2\", \"read\"), asList(\"data2_admin\", \"data2\", \"write\"), asList(\"eve\", \"data3\", \"read\")));\n e.removeFilteredPolicy(1, \"data2\");\n testGetPolicy(e, asList(asList(\"eve\", \"data3\", \"read\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-94"], "old_production_code": "", "new_production_code": "public boolean addPolicy(String... params) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addPolicy(params);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPolicy:([Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPolicy:([Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "541-548", "dependency_updated": "inserted", "score": 0.2187, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.4667, "class": 0.0, "tfidf": 0.0194}}, {"dep_id": 4, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removePolicy:([Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "607-614", "dependency_updated": "inserted", "score": 0.1911, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.4, "class": 0.0, "tfidf": 0.0323}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "559-566", "dependency_updated": "inserted", "score": 0.1622, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.3333, "class": 0.0, "tfidf": 0.0277}}, {"dep_id": 3, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "640-647", "dependency_updated": "inserted", "score": 0.1484, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2941, "class": 0.0, "tfidf": 0.0277}}, {"dep_id": 2, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredPolicy:(I[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "624-631", "dependency_updated": "inserted", "score": 0.1329, "signal_scores": {"nc": 0.0, "lcs_u": 0.45, "ed": 0.3, "class": 0.0, "tfidf": 0.0174}}], "coverage_gold": 1.0, "branch_coverage_gold": 29.9528, "method_coverage_gold": 29.7806, "line_coverage_gold": 30.9486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/TestUtil.testGetPolicy:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/util/List;)V", "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addPolicy:([Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredPolicy:(I[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.removePolicy:([Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPolicy:([Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredPolicy:(I[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removePolicy:([Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "644_casbin_jcasbin-v1.99.0_6bf268e_24d039c_SyncedManagementAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedManagementAPIUnitTest.testModifyGroupingPolicyAPI:()V", "class": "SyncedManagementAPIUnitTest", "method": "testModifyGroupingPolicyAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedManagementAPIUnitTest#testModifyGroupingPolicyAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testModifyGroupingPolicyAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_policy.csv\");\n testGetRoles(e, \"alice\", asList(\"data2_admin\"));\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"eve\", asList());\n testGetRoles(e, \"non_exist\", asList());\n e.removeGroupingPolicy(\"alice\", \"data2_admin\");\n e.addGroupingPolicy(\"bob\", \"data1_admin\");\n e.addGroupingPolicy(\"eve\", \"data3_admin\");\n List namedGroupingPolicy = asList(\"alice\", \"data2_admin\");\n testGetRoles(e, \"alice\", asList());\n e.addNamedGroupingPolicy(\"g\", namedGroupingPolicy);\n testGetRoles(e, \"alice\", asList(\"data2_admin\"));\n e.removeNamedGroupingPolicy(\"g\", namedGroupingPolicy);\n testGetRoles(e, \"alice\", asList());\n testGetRoles(e, \"bob\", asList(\"data1_admin\"));\n testGetRoles(e, \"eve\", asList(\"data3_admin\"));\n testGetRoles(e, \"non_exist\", asList());\n testGetUsers(e, \"data1_admin\", asList(\"bob\"));\n testGetUsers(e, \"data2_admin\", asList());\n testGetUsers(e, \"data3_admin\", asList(\"eve\"));\n e.removeFilteredGroupingPolicy(0, \"bob\");\n testGetRoles(e, \"alice\", asList());\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"eve\", asList(\"data3_admin\"));\n testGetRoles(e, \"non_exist\", asList());\n testGetUsers(e, \"data1_admin\", asList());\n testGetUsers(e, \"data2_admin\", asList());\n testGetUsers(e, \"data3_admin\", asList(\"eve\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-134"], "old_production_code": "", "new_production_code": "public boolean addGroupingPolicy(String... params) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addGroupingPolicy(params);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addGroupingPolicy:([Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addGroupingPolicy:([Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "770-777", "dependency_updated": "inserted", "score": 0.2711, "signal_scores": {"nc": 0.0, "lcs_u": 0.8824, "ed": 0.6522, "class": 0.0, "tfidf": 0.0339}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeGroupingPolicy:([Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "836-843", "dependency_updated": "inserted", "score": 0.2462, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.6087, "class": 0.0, "tfidf": 0.0203}}, {"dep_id": 2, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "788-795", "dependency_updated": "inserted", "score": 0.2283, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.5652, "class": 0.0, "tfidf": 0.029}}, {"dep_id": 4, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "869-876", "dependency_updated": "inserted", "score": 0.2125, "signal_scores": {"nc": 0.0, "lcs_u": 0.68, "ed": 0.52, "class": 0.0, "tfidf": 0.029}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredGroupingPolicy:(I[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "853-860", "dependency_updated": "inserted", "score": 0.1938, "signal_scores": {"nc": 0.0, "lcs_u": 0.6071, "ed": 0.5, "class": 0.0, "tfidf": 0.0182}}], "coverage_gold": 1.0, "branch_coverage_gold": 34.9057, "method_coverage_gold": 30.721, "line_coverage_gold": 34.164, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.addGroupingPolicy:([Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.removeGroupingPolicy:([Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "org/casbin/jcasbin/main/TestUtil.testGetRoles:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/util/List;)V", "org/casbin/jcasbin/main/TestUtil.testGetUsers:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/util/List;)V", "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredGroupingPolicy:(I[Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeGroupingPolicy:([Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeFilteredGroupingPolicy:(I[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addGroupingPolicy:([Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.removeNamedGroupingPolicy:(Ljava/lang/String;Ljava/util/List;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__820f8ab_e5d1d27__SyncedEnforcerUnitTest_5dda2d81", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "820f8ab9f7e8f20d26b8ec57776d24ec13687258", "rev2": "e5d1d27bd781e8f697f83a402569320516735ce3", "rev1_date": "2019-06-18T13:54:36Z", "rev2_date": "2019-06-18T14:03:50Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/820f8ab9f7e8f20d26b8ec57776d24ec13687258...e5d1d27bd781e8f697f83a402569320516735ce3", "test_file": "src/test/java/org/casbin/jcasbin/main/SyncedEnforcerUnitTest.java", "test_changes": [{"change_id": "600_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedEnforcerUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedEnforcerUnitTest.testRBACModelInMemory2:()V", "class": "SyncedEnforcerUnitTest", "method": "testRBACModelInMemory2", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedEnforcerUnitTest#testRBACModelInMemory2", "old_test_code": null, "new_test_code": "@Test\npublic void testRBACModelInMemory2() {\n String text = \"[request_definition]\\n\" + \"r = sub, obj, act\\n\" + \"\\n\" + \"[policy_definition]\\n\" + \"p = sub, obj, act\\n\" + \"\\n\" + \"[role_definition]\\n\" + \"g = _, _\\n\" + \"\\n\" + \"[policy_effect]\\n\" + \"e = some(where (p.eft == allow))\\n\" + \"\\n\" + \"[matchers]\\n\" + \"m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act\\n\";\n Model m = newModel(text);\n Enforcer e = new SyncedEnforcer(m);\n e.addPermissionForUser(\"alice\", \"data1\", \"read\");\n e.addPermissionForUser(\"bob\", \"data2\", \"write\");\n e.addPermissionForUser(\"data2_admin\", \"data2\", \"read\");\n e.addPermissionForUser(\"data2_admin\", \"data2\", \"write\");\n e.addRoleForUser(\"alice\", \"data2_admin\");\n testEnforce(e, \"alice\", \"data1\", \"read\", true);\n testEnforce(e, \"alice\", \"data1\", \"write\", false);\n testEnforce(e, \"alice\", \"data2\", \"read\", true);\n testEnforce(e, \"alice\", \"data2\", \"write\", true);\n testEnforce(e, \"bob\", \"data1\", \"read\", false);\n testEnforce(e, \"bob\", \"data1\", \"write\", false);\n testEnforce(e, \"bob\", \"data2\", \"read\", false);\n testEnforce(e, \"bob\", \"data2\", \"write\", true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["149-188"], "old_production_code": "", "new_production_code": "@Override\npublic boolean addRoleForUser(String user, String role) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addRoleForUser(user, role);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "155-163", "dependency_updated": "inserted", "score": 0.1083, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1667, "class": 0.0, "tfidf": 0.0221}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "274-282", "dependency_updated": "inserted", "score": 0.0914, "signal_scores": {"nc": 0.0, "lcs_u": 0.35, "ed": 0.1, "class": 0.0, "tfidf": 0.0558}}], "coverage_gold": 1.0, "branch_coverage_gold": 30.5556, "method_coverage_gold": 29.4574, "line_coverage_gold": 32.4853, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/CoreEnforcer.newModel:(Ljava/lang/String;)Lorg/casbin/jcasbin/model/Model", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "603_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedEnforcerUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedEnforcerUnitTest.testRBACModelInMemory:()V", "class": "SyncedEnforcerUnitTest", "method": "testRBACModelInMemory", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedEnforcerUnitTest#testRBACModelInMemory", "old_test_code": null, "new_test_code": "@Test\npublic void testRBACModelInMemory() {\n Model m = newModel();\n m.addDef(\"r\", \"r\", \"sub, obj, act\");\n m.addDef(\"p\", \"p\", \"sub, obj, act\");\n m.addDef(\"g\", \"g\", \"_, _\");\n m.addDef(\"e\", \"e\", \"some(where (p.eft == allow))\");\n m.addDef(\"m\", \"m\", \"g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act\");\n Enforcer e = new SyncedEnforcer(m);\n e.addPermissionForUser(\"alice\", \"data1\", \"read\");\n e.addPermissionForUser(\"bob\", \"data2\", \"write\");\n e.addPermissionForUser(\"data2_admin\", \"data2\", \"read\");\n e.addPermissionForUser(\"data2_admin\", \"data2\", \"write\");\n e.addRoleForUser(\"alice\", \"data2_admin\");\n testEnforce(e, \"alice\", \"data1\", \"read\", true);\n testEnforce(e, \"alice\", \"data1\", \"write\", false);\n testEnforce(e, \"alice\", \"data2\", \"read\", true);\n testEnforce(e, \"alice\", \"data2\", \"write\", true);\n testEnforce(e, \"bob\", \"data1\", \"read\", false);\n testEnforce(e, \"bob\", \"data1\", \"write\", false);\n testEnforce(e, \"bob\", \"data2\", \"read\", false);\n testEnforce(e, \"bob\", \"data2\", \"write\", true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-147"], "old_production_code": "", "new_production_code": "@Override\npublic boolean addRoleForUser(String user, String role) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addRoleForUser(user, role);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "155-163", "dependency_updated": "inserted", "score": 0.1072, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1765, "class": 0.0, "tfidf": 0.0104}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "274-282", "dependency_updated": "inserted", "score": 0.0881, "signal_scores": {"nc": 0.0, "lcs_u": 0.35, "ed": 0.1, "class": 0.0, "tfidf": 0.042}}], "coverage_gold": 0.9545454545454546, "branch_coverage_gold": 24.4949, "method_coverage_gold": 25.5814, "line_coverage_gold": 26.6145, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.addDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/CoreEnforcer.newModel:()Lorg/casbin/jcasbin/model/Model", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "605_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedEnforcerUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedEnforcerUnitTest.testRBACModelInMemoryIndeterminate:()V", "class": "SyncedEnforcerUnitTest", "method": "testRBACModelInMemoryIndeterminate", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedEnforcerUnitTest#testRBACModelInMemoryIndeterminate", "old_test_code": null, "new_test_code": "@Test\npublic void testRBACModelInMemoryIndeterminate() {\n Model m = newModel();\n m.addDef(\"r\", \"r\", \"sub, obj, act\");\n m.addDef(\"p\", \"p\", \"sub, obj, act\");\n m.addDef(\"g\", \"g\", \"_, _\");\n m.addDef(\"e\", \"e\", \"some(where (p.eft == allow))\");\n m.addDef(\"m\", \"m\", \"g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act\");\n Enforcer e = new SyncedEnforcer(m);\n e.addPermissionForUser(\"alice\", \"data1\", \"invalid\");\n testEnforce(e, \"alice\", \"data1\", \"read\", false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-120"], "old_production_code": "", "new_production_code": "@Override\npublic boolean addPermissionForUser(String user, String... permission) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addPermissionForUser(user, permission);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "274-282", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9473684210526315, "branch_coverage_gold": 12.3737, "method_coverage_gold": 18.2171, "line_coverage_gold": 17.7104, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.addDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/CoreEnforcer.newModel:()Lorg/casbin/jcasbin/model/Model", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "608_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedEnforcerUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedEnforcerUnitTest.testNotUsedRBACModelInMemory:()V", "class": "SyncedEnforcerUnitTest", "method": "testNotUsedRBACModelInMemory", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedEnforcerUnitTest#testNotUsedRBACModelInMemory", "old_test_code": null, "new_test_code": "@Test\npublic void testNotUsedRBACModelInMemory() {\n Model m = newModel();\n m.addDef(\"r\", \"r\", \"sub, obj, act\");\n m.addDef(\"p\", \"p\", \"sub, obj, act\");\n m.addDef(\"g\", \"g\", \"_, _\");\n m.addDef(\"e\", \"e\", \"some(where (p.eft == allow))\");\n m.addDef(\"m\", \"m\", \"g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act\");\n Enforcer e = new SyncedEnforcer(m);\n e.addPermissionForUser(\"alice\", \"data1\", \"read\");\n e.addPermissionForUser(\"bob\", \"data2\", \"write\");\n testEnforce(e, \"alice\", \"data1\", \"read\", true);\n testEnforce(e, \"alice\", \"data1\", \"write\", false);\n testEnforce(e, \"alice\", \"data2\", \"read\", false);\n testEnforce(e, \"alice\", \"data2\", \"write\", false);\n testEnforce(e, \"bob\", \"data1\", \"read\", false);\n testEnforce(e, \"bob\", \"data1\", \"write\", false);\n testEnforce(e, \"bob\", \"data2\", \"read\", false);\n testEnforce(e, \"bob\", \"data2\", \"write\", true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["190-212"], "old_production_code": "", "new_production_code": "@Override\npublic boolean addPermissionForUser(String user, String... permission) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addPermissionForUser(user, permission);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "274-282", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9473684210526315, "branch_coverage_gold": 15.1515, "method_coverage_gold": 18.6047, "line_coverage_gold": 18.9824, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.addDef:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/CoreEnforcer.newModel:()Lorg/casbin/jcasbin/model/Model", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__820f8ab_e5d1d27__SyncedRbacAPIUnitTest_b080f5d4", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "820f8ab9f7e8f20d26b8ec57776d24ec13687258", "rev2": "e5d1d27bd781e8f697f83a402569320516735ce3", "rev1_date": "2019-06-18T13:54:36Z", "rev2_date": "2019-06-18T14:03:50Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/820f8ab9f7e8f20d26b8ec57776d24ec13687258...e5d1d27bd781e8f697f83a402569320516735ce3", "test_file": "src/test/java/org/casbin/jcasbin/main/SyncedRbacAPIUnitTest.java", "test_changes": [{"change_id": "601_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedRbacAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedRbacAPIUnitTest.testRoleAPI:()V", "class": "SyncedRbacAPIUnitTest", "method": "testRoleAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedRbacAPIUnitTest#testRoleAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testRoleAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_policy.csv\");\n testGetRoles(e, \"alice\", asList(\"data2_admin\"));\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"data2_admin\", asList());\n testGetRoles(e, \"non_exist\", asList());\n testHasRole(e, \"alice\", \"data1_admin\", false);\n testHasRole(e, \"alice\", \"data2_admin\", true);\n e.addRoleForUser(\"alice\", \"data1_admin\");\n testGetRoles(e, \"alice\", asList(\"data1_admin\", \"data2_admin\"));\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"data2_admin\", asList());\n e.deleteRoleForUser(\"alice\", \"data1_admin\");\n testGetRoles(e, \"alice\", asList(\"data2_admin\"));\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"data2_admin\", asList());\n e.deleteRolesForUser(\"alice\");\n testGetRoles(e, \"alice\", asList());\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"data2_admin\", asList());\n e.addRoleForUser(\"alice\", \"data1_admin\");\n e.deleteUser(\"alice\");\n testGetRoles(e, \"alice\", asList());\n testGetRoles(e, \"bob\", asList());\n testGetRoles(e, \"data2_admin\", asList());\n e.addRoleForUser(\"alice\", \"data2_admin\");\n testEnforce(e, \"alice\", \"data1\", \"read\", true);\n testEnforce(e, \"alice\", \"data1\", \"write\", false);\n testEnforce(e, \"alice\", \"data2\", \"read\", true);\n testEnforce(e, \"alice\", \"data2\", \"write\", true);\n testEnforce(e, \"bob\", \"data1\", \"read\", false);\n testEnforce(e, \"bob\", \"data1\", \"write\", false);\n testEnforce(e, \"bob\", \"data2\", \"read\", false);\n testEnforce(e, \"bob\", \"data2\", \"write\", true);\n e.deleteRole(\"data2_admin\");\n testEnforce(e, \"alice\", \"data1\", \"read\", true);\n testEnforce(e, \"alice\", \"data1\", \"write\", false);\n testEnforce(e, \"alice\", \"data2\", \"read\", false);\n testEnforce(e, \"alice\", \"data2\", \"write\", false);\n testEnforce(e, \"bob\", \"data1\", \"read\", false);\n testEnforce(e, \"bob\", \"data1\", \"write\", false);\n testEnforce(e, \"bob\", \"data2\", \"read\", false);\n testEnforce(e, \"bob\", \"data2\", \"write\", true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-82"], "old_production_code": "", "new_production_code": "@Override\npublic void deleteRole(String role) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n super.deleteRole(role);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRole:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRole:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "222-230", "dependency_updated": "inserted", "score": 0.1058, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.2, "class": 0.0, "tfidf": 0.0095}}, {"dep_id": 3, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "155-163", "dependency_updated": "inserted", "score": 0.1013, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.2857, "class": 0.0, "tfidf": 0.0161}}, {"dep_id": 2, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "173-181", "dependency_updated": "inserted", "score": 0.0822, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.2353, "class": 0.0, "tfidf": 0.0081}}, {"dep_id": 4, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRolesForUser:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "190-198", "dependency_updated": "inserted", "score": 0.078, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.2222, "class": 0.0, "tfidf": 0.0095}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteUser:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "207-215", "dependency_updated": "inserted", "score": 0.0705, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.2, "class": 0.0, "tfidf": 0.0095}}], "coverage_gold": 1.0, "branch_coverage_gold": 46.7172, "method_coverage_gold": 43.0233, "line_coverage_gold": 48.3366, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/TestUtil.testGetRoles:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/util/List;)V", "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.deleteUser:(Ljava/lang/String;)Z", "org/casbin/jcasbin/main/TestUtil.testHasRole:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/String;Z)V", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Z)V", "org/casbin/jcasbin/main/SyncedEnforcer.deleteRolesForUser:(Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.deleteRole:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteUser:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRole:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUser:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRolesForUser:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "602_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedRbacAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedRbacAPIUnitTest.testImplicitPermissionAPI:()V", "class": "SyncedRbacAPIUnitTest", "method": "testImplicitPermissionAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedRbacAPIUnitTest#testImplicitPermissionAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testImplicitPermissionAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_with_hierarchy_policy.csv\");\n assertEquals(e.getImplicitPermissionsForUser(\"alice\"), asList(asList(\"alice\", \"data1\", \"read\"), asList(\"data1_admin\", \"data1\", \"read\"), asList(\"data1_admin\", \"data1\", \"write\"), asList(\"data2_admin\", \"data2\", \"read\"), asList(\"data2_admin\", \"data2\", \"write\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-150"], "old_production_code": "", "new_production_code": "@Override\npublic List> getImplicitPermissionsForUser(String user) {\n try {\n READ_WRITE_LOCK.readLock().lock();\n return super.getImplicitPermissionsForUser(user);\n } finally {\n READ_WRITE_LOCK.readLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitPermissionsForUser:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitPermissionsForUser:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "515-523", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 27.2727, "method_coverage_gold": 27.5194, "line_coverage_gold": 31.9961, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.getImplicitPermissionsForUser:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitPermissionsForUser:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "606_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedRbacAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedRbacAPIUnitTest.testImplicitRoleAPI:()V", "class": "SyncedRbacAPIUnitTest", "method": "testImplicitRoleAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedRbacAPIUnitTest#testImplicitRoleAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testImplicitRoleAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_with_hierarchy_policy.csv\");\n assertEquals(e.getImplicitRolesForUser(\"alice\"), asList(\"admin\", \"data1_admin\", \"data2_admin\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["130-134"], "old_production_code": "", "new_production_code": "@Override\npublic List getImplicitRolesForUser(String name, String... domain) {\n try {\n READ_WRITE_LOCK.readLock().lock();\n return super.getImplicitRolesForUser(name, domain);\n } finally {\n READ_WRITE_LOCK.readLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitRolesForUser:(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitRolesForUser:(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "491-499", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 24.4949, "method_coverage_gold": 24.8062, "line_coverage_gold": 29.1585, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.getImplicitRolesForUser:(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.getImplicitRolesForUser:(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "607_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedRbacAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedRbacAPIUnitTest.testPermissionAPI:()V", "class": "SyncedRbacAPIUnitTest", "method": "testPermissionAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedRbacAPIUnitTest#testPermissionAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testPermissionAPI() {\n Enforcer e = new SyncedEnforcer(\"examples/basic_without_resources_model.conf\", \"examples/basic_without_resources_policy.csv\");\n testEnforceWithoutUsers(e, \"alice\", \"read\", true);\n testEnforceWithoutUsers(e, \"alice\", \"write\", false);\n testEnforceWithoutUsers(e, \"bob\", \"read\", false);\n testEnforceWithoutUsers(e, \"bob\", \"write\", true);\n testGetPermissions(e, \"alice\", asList(asList(\"alice\", \"read\")));\n testGetPermissions(e, \"bob\", asList(asList(\"bob\", \"write\")));\n testHasPermission(e, \"alice\", asList(\"read\"), true);\n testHasPermission(e, \"alice\", asList(\"write\"), false);\n testHasPermission(e, \"bob\", asList(\"read\"), false);\n testHasPermission(e, \"bob\", asList(\"write\"), true);\n e.deletePermission(\"read\");\n testEnforceWithoutUsers(e, \"alice\", \"read\", false);\n testEnforceWithoutUsers(e, \"alice\", \"write\", false);\n testEnforceWithoutUsers(e, \"bob\", \"read\", false);\n testEnforceWithoutUsers(e, \"bob\", \"write\", true);\n e.addPermissionForUser(\"bob\", \"read\");\n testEnforceWithoutUsers(e, \"alice\", \"read\", false);\n testEnforceWithoutUsers(e, \"alice\", \"write\", false);\n testEnforceWithoutUsers(e, \"bob\", \"read\", true);\n testEnforceWithoutUsers(e, \"bob\", \"write\", true);\n e.deletePermissionForUser(\"bob\", \"read\");\n testEnforceWithoutUsers(e, \"alice\", \"read\", false);\n testEnforceWithoutUsers(e, \"alice\", \"write\", false);\n testEnforceWithoutUsers(e, \"bob\", \"read\", false);\n testEnforceWithoutUsers(e, \"bob\", \"write\", true);\n e.deletePermissionsForUser(\"bob\");\n testEnforceWithoutUsers(e, \"alice\", \"read\", false);\n testEnforceWithoutUsers(e, \"alice\", \"write\", false);\n testEnforceWithoutUsers(e, \"bob\", \"read\", false);\n testEnforceWithoutUsers(e, \"bob\", \"write\", false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-128"], "old_production_code": "", "new_production_code": "@Override\npublic boolean deletePermission(String... permission) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.deletePermission(permission);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermission:([Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermission:([Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "239-247", "dependency_updated": "inserted", "score": 0.185, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.4375, "class": 0.0, "tfidf": 0.0112}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "274-282", "dependency_updated": "inserted", "score": 0.1728, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 0.0, "tfidf": 0.0095}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "310-318", "dependency_updated": "inserted", "score": 0.1506, "signal_scores": {"nc": 0.0, "lcs_u": 0.4348, "ed": 0.4348, "class": 0.0, "tfidf": 0.0095}}, {"dep_id": 3, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionsForUser:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "345-353", "dependency_updated": "inserted", "score": 0.1448, "signal_scores": {"nc": 0.0, "lcs_u": 0.4167, "ed": 0.4167, "class": 0.0, "tfidf": 0.0112}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.1111, "method_coverage_gold": 37.5969, "line_coverage_gold": 40.0196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/TestUtil.testGetPermissions:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/util/List;)V", "org/casbin/jcasbin/main/SyncedEnforcer.deletePermission:([Ljava/lang/String;)Z", "org/casbin/jcasbin/main/TestUtil.testHasPermission:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/util/List;Z)V", "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/TestUtil.testEnforceWithoutUsers:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/String;Z)V", "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionsForUser:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addPermissionForUser:(Ljava/lang/String;[Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermission:([Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deletePermissionsForUser:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__820f8ab_e5d1d27__SyncedRbacAPIWithDomainsUnitTest_3711828b", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "820f8ab9f7e8f20d26b8ec57776d24ec13687258", "rev2": "e5d1d27bd781e8f697f83a402569320516735ce3", "rev1_date": "2019-06-18T13:54:36Z", "rev2_date": "2019-06-18T14:03:50Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/820f8ab9f7e8f20d26b8ec57776d24ec13687258...e5d1d27bd781e8f697f83a402569320516735ce3", "test_file": "src/test/java/org/casbin/jcasbin/main/SyncedRbacAPIWithDomainsUnitTest.java", "test_changes": [{"change_id": "604_casbin_jcasbin-v1.99.0_820f8ab_e5d1d27_SyncedRbacAPIWithDomainsUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedRbacAPIWithDomainsUnitTest.testRoleAPIWithDomains:()V", "class": "SyncedRbacAPIWithDomainsUnitTest", "method": "testRoleAPIWithDomains", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedRbacAPIWithDomainsUnitTest#testRoleAPIWithDomains", "old_test_code": null, "new_test_code": "@Test\npublic void testRoleAPIWithDomains() {\n Enforcer e = new SyncedEnforcer(\"examples/rbac_with_domains_model.conf\", \"examples/rbac_with_domains_policy.csv\");\n testGetRolesInDomain(e, \"alice\", \"domain1\", asList(\"admin\"));\n testGetRolesInDomain(e, \"bob\", \"domain1\", asList());\n testGetRolesInDomain(e, \"admin\", \"domain1\", asList());\n testGetRolesInDomain(e, \"non_exist\", \"domain1\", asList());\n testGetRolesInDomain(e, \"alice\", \"domain2\", asList());\n testGetRolesInDomain(e, \"bob\", \"domain2\", asList(\"admin\"));\n testGetRolesInDomain(e, \"admin\", \"domain2\", asList());\n testGetRolesInDomain(e, \"non_exist\", \"domain2\", asList());\n e.deleteRoleForUserInDomain(\"alice\", \"admin\", \"domain1\");\n e.addRoleForUserInDomain(\"bob\", \"admin\", \"domain1\");\n testGetRolesInDomain(e, \"alice\", \"domain1\", asList());\n testGetRolesInDomain(e, \"bob\", \"domain1\", asList(\"admin\"));\n testGetRolesInDomain(e, \"admin\", \"domain1\", asList());\n testGetRolesInDomain(e, \"non_exist\", \"domain1\", asList());\n testGetRolesInDomain(e, \"alice\", \"domain2\", asList());\n testGetRolesInDomain(e, \"bob\", \"domain2\", asList(\"admin\"));\n testGetRolesInDomain(e, \"admin\", \"domain2\", asList());\n testGetRolesInDomain(e, \"non_exist\", \"domain2\", asList());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-50"], "old_production_code": "", "new_production_code": "@Override\npublic boolean addRoleForUserInDomain(String user, String role, String domain) {\n try {\n READ_WRITE_LOCK.writeLock().lock();\n return super.addRoleForUserInDomain(user, role, domain);\n } finally {\n READ_WRITE_LOCK.writeLock().unlock();\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "448-456", "dependency_updated": "inserted", "score": 0.1577, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.4091, "class": 0.0, "tfidf": 0.0089}}, {"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "line_nums_new": "467-475", "dependency_updated": "inserted", "score": 0.139, "signal_scores": {"nc": 0.0, "lcs_u": 0.44, "ed": 0.36, "class": 0.0, "tfidf": 0.0089}}], "coverage_gold": 1.0, "branch_coverage_gold": 30.8081, "method_coverage_gold": 32.1705, "line_coverage_gold": 34.9315, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "org/casbin/jcasbin/main/TestUtil.testGetRolesInDomain:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V", "org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.addRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/SyncedEnforcer.deleteRoleForUserInDomain:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/SyncedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__855841a_483f864__EnforcerUnitTest_6ec917c4", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "855841ade4beb56da97746fcbed02829533726d5", "rev2": "483f8649bfad98fc05ba44ba0d882c30a8d624fc", "rev1_date": "2020-06-12T05:44:07Z", "rev2_date": "2020-06-12T14:35:06Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/855841ade4beb56da97746fcbed02829533726d5...483f8649bfad98fc05ba44ba0d882c30a8d624fc", "test_file": "src/test/java/org/casbin/jcasbin/main/EnforcerUnitTest.java", "test_changes": [{"change_id": "653_casbin_jcasbin-v1.99.0_855841a_483f864_EnforcerUnitTest", "test_sign": "org/casbin/jcasbin/main/EnforcerUnitTest.testGetPermittedActions:()V", "class": "EnforcerUnitTest", "method": "testGetPermittedActions", "module": "", "junit_selector": "org.casbin.jcasbin.main.EnforcerUnitTest#testGetPermittedActions", "old_test_code": null, "new_test_code": "@Test\npublic void testGetPermittedActions() {\n Enforcer e = new Enforcer(\"examples/rbac_with_deny_model.conf\", \"examples/rbac_with_deny_policy.csv\", true);\n String sub = \"alice\";\n String obj = \"data1\";\n Set actions = e.getPermittedActions(sub, obj);\n Util.logPrint(sub + \" has permissions to access \" + obj + \" with following actions:\");\n for (String action : actions) {\n Util.logPrint(action);\n }\n obj = \"data2\";\n actions = e.getPermittedActions(sub, obj);\n Util.logPrint(sub + \" has permissions to access \" + obj + \" with following actions:\");\n for (String action : actions) {\n Util.logPrint(action);\n }\n e = new Enforcer(\"examples/abac_model.conf\", \"\", true);\n ModelUnitTest.TestResource data1 = new ModelUnitTest.TestResource(\"data1\", \"alice\");\n actions = e.getPermittedActions(sub, data1);\n Util.logPrint(sub + \" has permissions to access \" + data1.name + \" with following actions:\");\n for (String action : actions) {\n Util.logPrint(action);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["444-476"], "old_production_code": "", "new_production_code": "public Set getPermittedActions(Object sub, Object obj) {\n Assertion ast = model.model.get(\"p\").get(\"p\");\n List> relations;\n if (model.model.get(\"g\") != null) {\n relations = model.model.get(\"g\").get(\"g\").policy;\n } else {\n relations = Collections.emptyList();\n }\n int actIndex = getElementIndex(ast, \"act\");\n int objIndex = getElementIndex(ast, \"obj\");\n int subIndex = getElementIndex(ast, \"sub\");\n int eftIndex = getElementIndex(ast, \"eft\");\n Set users = new HashSet() {\n\n @Override\n public boolean contains(Object o) {\n if (super.contains(o))\n return true;\n if (o == null)\n return super.contains(null);\n for (String s : this) {\n if (s.equals(o))\n return true;\n }\n return false;\n }\n };\n users.add((String) sub);\n int size;\n do {\n size = users.size();\n for (List relation : relations) {\n if (users.contains(relation.get(0))) {\n users.add(relation.get(1));\n }\n }\n } while (size != users.size());\n List> policy = getPolicy();\n Set actionSet = new HashSet<>();\n for (List role : policy) {\n boolean isThisUser = false;\n for (String user : users) {\n if (role.get(subIndex).equals(user)) {\n isThisUser = true;\n break;\n }\n }\n if (isThisUser && role.get(objIndex).equals(obj)) {\n if (eftIndex == -1 || role.get(eftIndex).equalsIgnoreCase(Effect.Allow.toString())) {\n actionSet.add(role.get(actIndex));\n }\n }\n }\n return actionSet;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/ManagementEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/ManagementEnforcer.getPermittedActions:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/ManagementEnforcer.getPermittedActions:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/ManagementEnforcer.java", "line_nums_new": "567-620", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8717948717948718, "branch_coverage_gold": 23.7323, "method_coverage_gold": 20.2381, "line_coverage_gold": 23.4432, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/util/Util.logPrint:(Ljava/lang/String;)V", "org/casbin/jcasbin/main/ManagementEnforcer.getPermittedActions:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/ManagementEnforcer.getPermittedActions:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Set", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/ManagementEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__a0d5d7e_9220fb2__SyncedDistributedAPIUnitTest_8d80eb70", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "a0d5d7ea9d7c6ed5d02c40b6b655b69bf846e7ce", "rev2": "9220fb23272949425c5d5c977689f2fcd6f9361d", "rev1_date": "2021-01-08T03:50:54Z", "rev2_date": "2021-01-08T14:32:32Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/a0d5d7ea9d7c6ed5d02c40b6b655b69bf846e7ce...9220fb23272949425c5d5c977689f2fcd6f9361d", "test_file": "src/test/java/org/casbin/jcasbin/main/SyncedDistributedAPIUnitTest.java", "test_changes": [{"change_id": "613_casbin_jcasbin-v1.99.0_a0d5d7e_9220fb2_SyncedDistributedAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/SyncedDistributedAPIUnitTest.testDistributedAPI:()V", "class": "SyncedDistributedAPIUnitTest", "method": "testDistributedAPI", "module": "", "junit_selector": "org.casbin.jcasbin.main.SyncedDistributedAPIUnitTest#testDistributedAPI", "old_test_code": null, "new_test_code": "@Test\npublic void testDistributedAPI() {\n DistributedEnforcer de = new DistributedEnforcer(\"examples/rbac_model.conf\", \"examples/rbac_policy.csv\");\n de.addPolicySelf(() -> false, \"p\", \"p\", asList(asList(\"alice\", \"data1\", \"read\"), asList(\"bob\", \"data2\", \"write\"), asList(\"data2_admin\", \"data2\", \"read\"), asList(\"data2_admin\", \"data2\", \"write\")));\n de.addPolicySelf(() -> false, \"g\", \"g\", asList(asList(\"alice\", \"data2_admin\")));\n testEnforce(de, \"alice\", \"data1\", \"read\", true);\n testEnforce(de, \"alice\", \"data1\", \"write\", false);\n testEnforce(de, \"bob\", \"data2\", \"read\", false);\n testEnforce(de, \"bob\", \"data2\", \"write\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"read\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"write\", true);\n testEnforce(de, \"alice\", \"data2\", \"read\", true);\n testEnforce(de, \"alice\", \"data2\", \"write\", true);\n de.updatePolicySelf(() -> false, \"p\", \"p\", asList(\"alice\", \"data1\", \"read\"), asList(\"alice\", \"data1\", \"write\"));\n de.updatePolicySelf(() -> false, \"g\", \"g\", asList(\"alice\", \"data2_admin\"), asList(\"tom\", \"alice\"));\n testEnforce(de, \"alice\", \"data1\", \"read\", false);\n testEnforce(de, \"alice\", \"data1\", \"write\", true);\n testEnforce(de, \"bob\", \"data2\", \"read\", false);\n testEnforce(de, \"bob\", \"data2\", \"write\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"read\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"write\", true);\n testEnforce(de, \"tom\", \"data1\", \"read\", false);\n testEnforce(de, \"tom\", \"data1\", \"write\", true);\n de.removePolicySelf(() -> false, \"p\", \"p\", asList(asList(\"alice\", \"data1\", \"write\")));\n de.removePolicySelf(() -> false, \"g\", \"g\", asList(asList(\"alice\", \"data2_admin\")));\n testEnforce(de, \"alice\", \"data1\", \"read\", false);\n testEnforce(de, \"alice\", \"data1\", \"write\", false);\n testEnforce(de, \"bob\", \"data2\", \"read\", false);\n testEnforce(de, \"bob\", \"data2\", \"write\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"read\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"write\", true);\n testEnforce(de, \"alice\", \"data2\", \"read\", false);\n testEnforce(de, \"alice\", \"data2\", \"write\", false);\n de.removeFilteredPolicySelf(() -> false, \"p\", \"p\", 0, \"bob\", \"data2\", \"write\");\n de.removeFilteredPolicySelf(() -> false, \"g\", \"g\", 0, \"tom\", \"data2_admin\");\n testEnforce(de, \"alice\", \"data1\", \"read\", false);\n testEnforce(de, \"alice\", \"data1\", \"write\", false);\n testEnforce(de, \"bob\", \"data2\", \"read\", false);\n testEnforce(de, \"bob\", \"data2\", \"write\", false);\n testEnforce(de, \"data2_admin\", \"data2\", \"read\", true);\n testEnforce(de, \"data2_admin\", \"data2\", \"write\", true);\n testEnforce(de, \"tom\", \"data1\", \"read\", false);\n testEnforce(de, \"tom\", \"data1\", \"write\", false);\n de.clearPolicySelf(() -> false);\n testEnforce(de, \"alice\", \"data1\", \"read\", false);\n testEnforce(de, \"alice\", \"data1\", \"write\", false);\n testEnforce(de, \"bob\", \"data2\", \"read\", false);\n testEnforce(de, \"bob\", \"data2\", \"write\", false);\n testEnforce(de, \"data2_admin\", \"data2\", \"read\", false);\n testEnforce(de, \"data2_admin\", \"data2\", \"write\", false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-88"], "old_production_code": "", "new_production_code": "public List> removeFilteredPolicySelf(BooleanSupplier shouldPersist, String sec, String ptype, int fieldIndex, String... fieldValues) {\n if (shouldPersist.getAsBoolean()) {\n try {\n adapter.removeFilteredPolicy(sec, ptype, fieldIndex, fieldValues);\n } catch (UnsupportedOperationException ignored) {\n Util.logPrintf(\"Method not implemented\");\n } catch (Exception e) {\n Util.logPrint(\"An exception occurred:\" + e.getMessage());\n return null;\n }\n }\n List> effects = this.model.removeFilteredPolicyReturnsEffects(sec, ptype, fieldIndex, fieldValues);\n if (sec.equals(\"g\")) {\n try {\n this.buildIncrementalRoleLinks(Model.PolicyOperations.POLICY_REMOVE, ptype, effects);\n } catch (Exception e) {\n Util.logPrint(\"An exception occurred:\" + e.getMessage());\n return effects;\n }\n }\n return effects;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.removeFilteredPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.removeFilteredPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "line_nums_new": "195-218", "dependency_updated": "inserted", "score": 0.0793, "signal_scores": {"nc": 0.0, "lcs_u": 0.2917, "ed": 0.1667, "class": 0.0, "tfidf": 0.0017}}, {"dep_id": 2, "method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.addPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "line_nums_new": "110-143", "dependency_updated": "inserted", "score": 0.0781, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.1429, "class": 0.0, "tfidf": 0.0013}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.updatePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "line_nums_new": "249-284", "dependency_updated": "inserted", "score": 0.0658, "signal_scores": {"nc": 0.0, "lcs_u": 0.3125, "ed": 0.0625, "class": 0.0, "tfidf": 0.0014}}, {"dep_id": 4, "method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.clearPolicySelf:(Ljava/util/function/BooleanSupplier;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "line_nums_new": "225-237", "dependency_updated": "inserted", "score": 0.0585, "signal_scores": {"nc": 0.0, "lcs_u": 0.2667, "ed": 0.0667, "class": 0.0, "tfidf": 0.0019}}, {"dep_id": 3, "method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.removePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "line_nums_new": "155-180", "dependency_updated": "inserted", "score": 0.0445, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0017}}], "coverage_gold": 0.42857142857142855, "branch_coverage_gold": 30.0283, "method_coverage_gold": 28.1928, "line_coverage_gold": 30.765, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/DistributedEnforcer.addPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "org/casbin/jcasbin/main/DistributedEnforcer.removePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "org/casbin/jcasbin/main/DistributedEnforcer.updatePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Z", "org/casbin/jcasbin/main/TestUtil.testEnforce:(Lorg/casbin/jcasbin/main/Enforcer;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;Z)V", "org/casbin/jcasbin/main/DistributedEnforcer.clearPolicySelf:(Ljava/util/function/BooleanSupplier;)V", "org/casbin/jcasbin/main/DistributedEnforcer.removeFilteredPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.updatePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.removeFilteredPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.addPolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.removePolicySelf:(Ljava/util/function/BooleanSupplier;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/DistributedEnforcer.clearPolicySelf:(Ljava/util/function/BooleanSupplier;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/DistributedEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__a2067cc_7297b01__ManagementAPIUnitTest_08c08795", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "a2067ccbc1f732e90ac7e8f8ad4fec5ff4a55736", "rev2": "7297b01949b6a1eea11c76ce25348ab9ee109898", "rev1_date": "2023-09-17T13:44:16Z", "rev2_date": "2023-09-17T17:59:14Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/a2067ccbc1f732e90ac7e8f8ad4fec5ff4a55736...7297b01949b6a1eea11c76ce25348ab9ee109898", "test_file": "src/test/java/org/casbin/jcasbin/main/ManagementAPIUnitTest.java", "test_changes": [{"change_id": "581_casbin_jcasbin-v1.99.0_a2067cc_7297b01_ManagementAPIUnitTest", "test_sign": "org/casbin/jcasbin/main/ManagementAPIUnitTest.should_true_when_setAviatorEvaluator_given_customInstance:()V", "class": "ManagementAPIUnitTest", "method": "should_true_when_setAviatorEvaluator_given_customInstance", "module": "", "junit_selector": "org.casbin.jcasbin.main.ManagementAPIUnitTest#should_true_when_setAviatorEvaluator_given_customInstance", "old_test_code": null, "new_test_code": "@Test\npublic void should_true_when_setAviatorEvaluator_given_customInstance() {\n AviatorEvaluatorInstance instance = AviatorEvaluator.newInstance();\n Enforcer enforcer = new Enforcer();\n enforcer.setAviatorEvaluator(instance);\n Assert.assertEquals(instance, enforcer.getAviatorEval());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["220-229"], "old_production_code": "", "new_production_code": "public void setAviatorEvaluator(AviatorEvaluatorInstance evaluator) {\n this.aviatorEval = Objects.requireNonNull(evaluator, \"The aviator evaluator cannot be null.\");\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "focal_method_sign": "org/casbin/jcasbin/main/CoreEnforcer.setAviatorEvaluator:(Lcom/googlecode/aviator/AviatorEvaluatorInstance;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.setAviatorEvaluator:(Lcom/googlecode/aviator/AviatorEvaluatorInstance;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "157-159", "dependency_updated": "inserted", "score": 0.24, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 0.0, "tfidf": 0.0368}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/main/CoreEnforcer.getAviatorEval:()Lcom/googlecode/aviator/AviatorEvaluatorInstance", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "line_nums_new": "166-168", "dependency_updated": "inserted", "score": 0.2273, "signal_scores": {"nc": 0.0, "lcs_u": 0.9286, "ed": 0.2281, "class": 0.0, "tfidf": 0.1101}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.6777, "method_coverage_gold": 8.4672, "line_coverage_gold": 6.5519, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/main/CoreEnforcer.setAviatorEvaluator:(Lcom/googlecode/aviator/AviatorEvaluatorInstance;)V", "org/casbin/jcasbin/main/CoreEnforcer.getAviatorEval:()Lcom/googlecode/aviator/AviatorEvaluatorInstance"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.getAviatorEval:()Lcom/googlecode/aviator/AviatorEvaluatorInstance", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/main/CoreEnforcer.setAviatorEvaluator:(Lcom/googlecode/aviator/AviatorEvaluatorInstance;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/main/CoreEnforcer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__cc09162_899dc83__ModelTest_25689827", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "cc0916261a481634b56668103a7125e8edf3047c", "rev2": "899dc83948dd8f15e74466c7cbde69f96f48a271", "rev1_date": "2024-01-18T10:06:06Z", "rev2_date": "2024-01-18T10:18:39Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/cc0916261a481634b56668103a7125e8edf3047c...899dc83948dd8f15e74466c7cbde69f96f48a271", "test_file": "src/test/java/org/casbin/jcasbin/main/ModelTest.java", "test_changes": [{"change_id": "574_casbin_jcasbin-v1.99.0_cc09162_899dc83_ModelTest", "test_sign": "org/casbin/jcasbin/main/ModelTest.testHasSection:()V", "class": "ModelTest", "method": "testHasSection", "module": "", "junit_selector": "org.casbin.jcasbin.main.ModelTest#testHasSection", "old_test_code": null, "new_test_code": "@Test\npublic void testHasSection() {\n Model m = new Model();\n m.loadModelFromConfig(basicConfig);\n for (String sec : requiredSections) {\n assertTrue(sec + \" section was expected in model\", m.hasSection(sec));\n }\n m = new Model();\n try {\n m.loadModelFromConfig(new MockConfig());\n } catch (RuntimeException e) {\n } finally {\n for (String sec : requiredSections) {\n assertFalse(sec + \" section was not expected in model\", m.hasSection(sec));\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["104-121"], "old_production_code": "", "new_production_code": "public boolean hasSection(String sec) {\n Map section = model.get(sec);\n return section != null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/model/Model.java", "focal_method_sign": "org/casbin/jcasbin/model/Model.hasSection:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/casbin/jcasbin/model/Model.hasSection:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "line_nums_new": "228-231", "dependency_updated": "inserted", "score": 0.8845, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5093}}, {"dep_id": 0, "method_sign": "org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "line_nums_new": "210-223", "dependency_updated": "inserted", "score": 0.2944, "signal_scores": {"nc": 0.0, "lcs_u": 0.2632, "ed": 0.2105, "class": 1.0, "tfidf": 0.1063}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.9326, "method_coverage_gold": 2.2161, "line_coverage_gold": 3.4113, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "org/casbin/jcasbin/model/Model.hasSection:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/casbin/jcasbin/model/Model.hasSection:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "575_casbin_jcasbin-v1.99.0_cc09162_899dc83_ModelTest", "test_sign": "org/casbin/jcasbin/main/ModelTest.testNewModelFromFile:()V", "class": "ModelTest", "method": "testNewModelFromFile", "module": "", "junit_selector": "org.casbin.jcasbin.main.ModelTest#testNewModelFromFile", "old_test_code": null, "new_test_code": "@Test\npublic void testNewModelFromFile() {\n Model m = Model.newModelFromFile(basicExample);\n assertNotNull(m);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-73"], "old_production_code": "", "new_production_code": "public static Model newModelFromFile(String path) {\n Model model = new Model();\n model.loadModel(path);\n return model;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/model/Model.java", "focal_method_sign": "org/casbin/jcasbin/model/Model.newModelFromFile:(Ljava/lang/String;)Lorg/casbin/jcasbin/model/Model", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/model/Model.newModelFromFile:(Ljava/lang/String;)Lorg/casbin/jcasbin/model/Model", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "line_nums_new": "166-170", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.0078, "method_coverage_gold": 3.1856, "line_coverage_gold": 5.117, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.newModelFromFile:(Ljava/lang/String;)Lorg/casbin/jcasbin/model/Model"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/model/Model.newModelFromFile:(Ljava/lang/String;)Lorg/casbin/jcasbin/model/Model", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "576_casbin_jcasbin-v1.99.0_cc09162_899dc83_ModelTest", "test_sign": "org/casbin/jcasbin/main/ModelTest.testNewModel:()V", "class": "ModelTest", "method": "testNewModel", "module": "", "junit_selector": "org.casbin.jcasbin.main.ModelTest#testNewModel", "old_test_code": null, "new_test_code": "@Test\npublic void testNewModel() {\n Model m = Model.newModel();\n assertNotNull(m);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-67"], "old_production_code": "", "new_production_code": "public static Model newModel() {\n Model model = new Model();\n model.setLogger(new DefaultLogger());\n return model;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/model/Model.java", "focal_method_sign": "org/casbin/jcasbin/model/Model.newModel:()Lorg/casbin/jcasbin/model/Model", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/model/Model.newModel:()Lorg/casbin/jcasbin/model/Model", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "line_nums_new": "155-159", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0978, "method_coverage_gold": 1.2465, "line_coverage_gold": 1.2693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.newModel:()Lorg/casbin/jcasbin/model/Model"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/model/Model.newModel:()Lorg/casbin/jcasbin/model/Model", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "577_casbin_jcasbin-v1.99.0_cc09162_899dc83_ModelTest", "test_sign": "org/casbin/jcasbin/main/ModelTest.testLoadModelFromConfig:()V", "class": "ModelTest", "method": "testLoadModelFromConfig", "module": "", "junit_selector": "org.casbin.jcasbin.main.ModelTest#testLoadModelFromConfig", "old_test_code": null, "new_test_code": "@Test\npublic void testLoadModelFromConfig() {\n Model m = new Model();\n try {\n m.loadModelFromConfig(basicConfig);\n } catch (Exception e) {\n fail(\"basic config should not return an error\");\n }\n m = new Model();\n try {\n m.loadModelFromConfig(new MockConfig());\n fail(\"empty config should return error\");\n } catch (RuntimeException e) {\n for (String rs : requiredSections) {\n assertTrue(\"section name: \" + sectionNameMap.get(rs) + \" should be in message\", e.getMessage().contains(sectionNameMap.get(rs)));\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-102"], "old_production_code": "", "new_production_code": "public void loadModelFromConfig(Config cfg) {\n for (String s : sectionNameMap.keySet()) {\n loadSection(this, cfg, s);\n }\n List ms = new ArrayList<>();\n for (String rs : requiredSections) {\n if (!hasSection(rs)) {\n ms.add(sectionNameMap.get(rs));\n }\n }\n if (!ms.isEmpty()) {\n throw new RuntimeException(\"missing required sections: \" + String.join(\",\", ms));\n }\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/model/Model.java", "focal_method_sign": "org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "line_nums_new": "210-223", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.9326, "method_coverage_gold": 2.2161, "line_coverage_gold": 3.4113, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/model/Model.loadModelFromConfig:(Lorg/casbin/jcasbin/config/Config;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/model/Model.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "casbin_jcasbin-v1.99.0__feedfc9_979755b__DefaultDetectorTest_1089c835", "project_name": "casbin_jcasbin-v1.99.0", "git_clone_url": "https://github.com/casbin/jcasbin.git", "rev1": "feedfc9ce5f4476883489b7a3001f46eeb1a59a5", "rev2": "979755b31e84f0af5807dd82b3883720c5ad0165", "rev1_date": "2025-12-28T11:12:25Z", "rev2_date": "2025-12-28T18:05:56Z", "git_diff_url": "https://github.com/casbin/jcasbin/compare/feedfc9ce5f4476883489b7a3001f46eeb1a59a5...979755b31e84f0af5807dd82b3883720c5ad0165", "test_file": "src/test/java/org/casbin/jcasbin/main/DefaultDetectorTest.java", "test_changes": [{"change_id": "627_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testUnsupportedRoleManager:()V", "class": "DefaultDetectorTest", "method": "testUnsupportedRoleManager", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testUnsupportedRoleManager", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testUnsupportedRoleManager() {\n RoleManager rm = new RoleManager() {\n\n @Override\n public void clear() {\n }\n\n @Override\n public void addLink(String name1, String name2, String... domain) {\n }\n\n @Override\n public void deleteLink(String name1, String name2, String... domain) {\n }\n\n @Override\n public boolean hasLink(String name1, String name2, String... domain) {\n return false;\n }\n\n @Override\n public java.util.List getRoles(String name, String... domain) {\n return null;\n }\n\n @Override\n public java.util.List getUsers(String name, String... domain) {\n return null;\n }\n\n @Override\n public void printRoles() {\n }\n };\n Detector detector = new DefaultDetector();\n detector.check(rm);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["217-251"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.14285714285714285, "branch_coverage_gold": 0.0708, "method_coverage_gold": 0.2283, "line_coverage_gold": 0.0915, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "628_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testCycleAfterClear:()V", "class": "DefaultDetectorTest", "method": "testCycleAfterClear", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testCycleAfterClear", "old_test_code": null, "new_test_code": "@Test\npublic void testCycleAfterClear() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"A\", \"B\");\n rm.addLink(\"B\", \"C\");\n rm.addLink(\"C\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle before clear\", result);\n rm.clear();\n result = detector.check(rm);\n assertNull(\"Expected no cycle after clear\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["253-268"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 1.4873, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1736, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V", "org/casbin/jcasbin/rbac/DefaultRoleManager.clear:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "629_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testTwoNodeCycle:()V", "class": "DefaultDetectorTest", "method": "testTwoNodeCycle", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testTwoNodeCycle", "old_test_code": null, "new_test_code": "@Test\npublic void testTwoNodeCycle() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"A\", \"B\");\n rm.addLink(\"B\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-90"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.4164, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "630_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testSimpleCycle:()V", "class": "DefaultDetectorTest", "method": "testSimpleCycle", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testSimpleCycle", "old_test_code": null, "new_test_code": "@Test\npublic void testSimpleCycle() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"A\", \"B\");\n rm.addLink(\"B\", \"C\");\n rm.addLink(\"C\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n assertTrue(\"Result should contain role A\", result.contains(\"A\"));\n assertTrue(\"Result should contain role B\", result.contains(\"B\"));\n assertTrue(\"Result should contain role C\", result.contains(\"C\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-62"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.4164, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "631_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testSingleNode:()V", "class": "DefaultDetectorTest", "method": "testSingleNode", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testSingleNode", "old_test_code": null, "new_test_code": "@Test\npublic void testSingleNode() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.getRoles(\"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNull(\"Expected no cycle with single isolated node\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["164-175"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6842105263157895, "branch_coverage_gold": 0.6374, "method_coverage_gold": 1.8265, "line_coverage_gold": 2.014, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/rbac/DefaultRoleManager.getRoles:(Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List", "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "632_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testLargeGraphWithCycle:()V", "class": "DefaultDetectorTest", "method": "testLargeGraphWithCycle", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testLargeGraphWithCycle", "old_test_code": null, "new_test_code": "@Test\npublic void testLargeGraphWithCycle() {\n RoleManager rm = new DefaultRoleManager(10000);\n for (int i = 0; i < 9999; i++) {\n rm.addLink(\"r\" + i, \"r\" + (i + 1));\n }\n rm.addLink(\"r9999\", \"r0\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected in large graph\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["199-215"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.4164, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "633_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testComplexGraph:()V", "class": "DefaultDetectorTest", "method": "testComplexGraph", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testComplexGraph", "old_test_code": null, "new_test_code": "@Test\npublic void testComplexGraph() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"u1\", \"g1\");\n rm.addLink(\"u2\", \"g1\");\n rm.addLink(\"g1\", \"g3\");\n rm.addLink(\"u4\", \"g2\");\n rm.addLink(\"u4\", \"g3\");\n rm.addLink(\"g2\", \"g3\");\n rm.addLink(\"g3\", \"u4\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["128-151"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.4164, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "634_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testLargeGraph:()V", "class": "DefaultDetectorTest", "method": "testLargeGraph", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testLargeGraph", "old_test_code": null, "new_test_code": "@Test\npublic void testLargeGraph() {\n RoleManager rm = new DefaultRoleManager(10000);\n long startTime = System.currentTimeMillis();\n for (int i = 0; i < 9999; i++) {\n rm.addLink(\"r\" + i, \"r\" + (i + 1));\n }\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n long endTime = System.currentTimeMillis();\n long duration = endTime - startTime;\n assertNull(\"Expected no cycle in large chain\", result);\n assertTrue(\"Detection should complete in reasonable time (< 5 seconds)\", duration < 5000);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["177-197"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.4873, "method_coverage_gold": 2.1689, "line_coverage_gold": 2.9905, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "635_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testSelfLoop:()V", "class": "DefaultDetectorTest", "method": "testSelfLoop", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testSelfLoop", "old_test_code": null, "new_test_code": "@Test\npublic void testSelfLoop() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"A\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n assertTrue(\"Result should contain role A\", result.contains(\"A\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-76"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.2748, "method_coverage_gold": 2.2831, "line_coverage_gold": 2.9295, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "636_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testCycleDetectionAfterDelete:()V", "class": "DefaultDetectorTest", "method": "testCycleDetectionAfterDelete", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testCycleDetectionAfterDelete", "old_test_code": null, "new_test_code": "@Test\npublic void testCycleDetectionAfterDelete() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"A\", \"B\");\n rm.addLink(\"B\", \"C\");\n rm.addLink(\"C\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle before delete\", result);\n rm.deleteLink(\"C\", \"A\");\n result = detector.check(rm);\n assertNull(\"Expected no cycle after breaking the cycle\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["270-285"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9545454545454546, "branch_coverage_gold": 1.7705, "method_coverage_gold": 2.6256, "line_coverage_gold": 3.6009, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/rbac/DefaultRoleManager.deleteLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V", "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "637_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testMultipleDisconnectedComponents:()V", "class": "DefaultDetectorTest", "method": "testMultipleDisconnectedComponents", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testMultipleDisconnectedComponents", "old_test_code": null, "new_test_code": "@Test\npublic void testMultipleDisconnectedComponents() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"u1\", \"g1\");\n rm.addLink(\"g1\", \"g2\");\n rm.addLink(\"u2\", \"g3\");\n rm.addLink(\"g3\", \"g4\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNull(\"Expected no cycle to be detected\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["92-107"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.4873, "method_coverage_gold": 2.1689, "line_coverage_gold": 2.9905, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "638_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testEmptyRoleManager:()V", "class": "DefaultDetectorTest", "method": "testEmptyRoleManager", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testEmptyRoleManager", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyRoleManager() {\n RoleManager rm = new DefaultRoleManager(10);\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNull(\"Expected no cycle in empty graph\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-162"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.2125, "method_coverage_gold": 0.9132, "line_coverage_gold": 0.9765, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "639_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testCycleInOneComponent:()V", "class": "DefaultDetectorTest", "method": "testCycleInOneComponent", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testCycleInOneComponent", "old_test_code": null, "new_test_code": "@Test\npublic void testCycleInOneComponent() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"u1\", \"g1\");\n rm.addLink(\"g1\", \"g2\");\n rm.addLink(\"A\", \"B\");\n rm.addLink(\"B\", \"C\");\n rm.addLink(\"C\", \"A\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNotNull(\"Expected a cycle to be detected\", result);\n assertTrue(\"Result should contain 'Cycle detected'\", result.contains(\"Cycle detected:\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-126"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.4164, "method_coverage_gold": 2.2831, "line_coverage_gold": 3.1431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "640_casbin_jcasbin-v1.99.0_feedfc9_979755b_DefaultDetectorTest", "test_sign": "org/casbin/jcasbin/main/DefaultDetectorTest.testNoCycle:()V", "class": "DefaultDetectorTest", "method": "testNoCycle", "module": "", "junit_selector": "org.casbin.jcasbin.main.DefaultDetectorTest#testNoCycle", "old_test_code": null, "new_test_code": "@Test\npublic void testNoCycle() {\n RoleManager rm = new DefaultRoleManager(10);\n rm.addLink(\"u1\", \"g1\");\n rm.addLink(\"u2\", \"g1\");\n rm.addLink(\"g1\", \"g2\");\n Detector detector = new DefaultDetector();\n String result = detector.check(rm);\n assertNull(\"Expected no cycle to be detected\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-44"], "old_production_code": "", "new_production_code": "@Override\npublic String check(RoleManager rm) {\n if (!(rm instanceof DefaultRoleManager)) {\n throw new IllegalArgumentException(\"DefaultDetector only supports DefaultRoleManager\");\n }\n DefaultRoleManager drm = (DefaultRoleManager) rm;\n Map> graph = buildGraph(drm);\n Set visited = new HashSet<>();\n Set recursionStack = new HashSet<>();\n Map parent = new HashMap<>();\n for (String node : graph.keySet()) {\n if (!visited.contains(node)) {\n String cycle = dfs(node, graph, visited, recursionStack, parent);\n if (cycle != null) {\n return cycle;\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "focal_method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "line_nums_new": "33-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.4873, "method_coverage_gold": 2.1689, "line_coverage_gold": 2.9905, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "org/casbin/jcasbin/rbac/DefaultRoleManager.addLink:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/casbin/jcasbin/detector/DefaultDetector.check:(Lorg/casbin/jcasbin/rbac/RoleManager;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/casbin/jcasbin/detector/DefaultDetector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.99.0", "java_version": 8} {"task_id": "cdimascio_dotenv-java-v3.2.0__7efa1bc_f43b283__BasicTests_d02ca76f", "project_name": "cdimascio_dotenv-java-v3.2.0", "git_clone_url": "https://github.com/cdimascio/dotenv-java.git", "rev1": "7efa1bc42908926f441b14cdf6291c82f0504081", "rev2": "f43b283a6862ddf0306c643e19b433056984688f", "rev1_date": "2020-09-19T19:00:52Z", "rev2_date": "2020-09-19T22:57:22Z", "git_diff_url": "https://github.com/cdimascio/dotenv-java/compare/7efa1bc42908926f441b14cdf6291c82f0504081...f43b283a6862ddf0306c643e19b433056984688f", "test_file": "src/test/java/tests/BasicTests.java", "test_changes": [{"change_id": "84_cdimascio_dotenv-java-v3.2.0_7efa1bc_f43b283_BasicTests", "test_sign": "tests/BasicTests.iterateOverDotenv:()V", "class": "BasicTests", "method": "iterateOverDotenv", "module": "", "junit_selector": "tests.BasicTests#iterateOverDotenv", "old_test_code": null, "new_test_code": "@Test\npublic void iterateOverDotenv() {\n var dotenv = Dotenv.configure().ignoreIfMalformed().load();\n for (var e : dotenv.entries()) {\n assertEquals(dotenv.get(e.getKey()), e.getValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-112"], "old_production_code": "@Override\npublic String get(String key) {\n var value = System.getenv(key);\n return value != null ? value : map.get(key);\n}", "new_production_code": "@Override\npublic String get(String key) {\n var value = System.getenv(key);\n return value != null ? value : envVars.get(key);\n}", "focal_file_path": "src/main/java/io/github/cdimascio/dotenv/DotenvBuilder.java", "focal_method_sign": "io/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl.get:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl.get:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": "src/main/java/io/github/cdimascio/dotenv/DotenvBuilder.java", "line_nums_old": "99-103", "file_path_new": "src/main/java/io/github/cdimascio/dotenv/DotenvBuilder.java", "line_nums_new": "107-111", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 61.5385, "method_coverage_gold": 67.5676, "line_coverage_gold": 70.9924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/cdimascio/dotenv/DotenvEntry.getKey:()Ljava/lang/String", "io/github/cdimascio/dotenv/Dotenv.configure:()Lio/github/cdimascio/dotenv/DotenvBuilder", "io/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl.get:(Ljava/lang/String;)Ljava/lang/String", "io/github/cdimascio/dotenv/DotenvBuilder.load:()Lio/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl", "io/github/cdimascio/dotenv/DotenvBuilder.ignoreIfMalformed:()Lio/github/cdimascio/dotenv/DotenvBuilder", "io/github/cdimascio/dotenv/DotenvEntry.getValue:()Ljava/lang/String", "io/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl.entries:()Ljava/util/Set"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/cdimascio/dotenv/DotenvBuilder$DotenvImpl.get:(Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/io/github/cdimascio/dotenv/DotenvBuilder.java", "file_path_new": "src/main/java/io/github/cdimascio/dotenv/DotenvBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v3.2.0", "java_version": 11} {"task_id": "code4craft_webmagic-WebMagic-1.0.3__0dc852e_a81c4e7__RequestTest_744f803a", "project_name": "code4craft_webmagic-WebMagic-1.0.3", "git_clone_url": "https://github.com/code4craft/webmagic.git", "rev1": "0dc852e2192621d5d8a6bb18a45bb969ef71e237", "rev2": "a81c4e7627853623c8e1661f7fd1c7e47e8321bf", "rev1_date": "2024-04-23T13:46:28Z", "rev2_date": "2024-04-23T13:46:35Z", "git_diff_url": "https://github.com/code4craft/webmagic/compare/0dc852e2192621d5d8a6bb18a45bb969ef71e237...a81c4e7627853623c8e1661f7fd1c7e47e8321bf", "test_file": "webmagic-core/src/test/java/us/codecraft/webmagic/RequestTest.java", "test_changes": [{"change_id": "194_code4craft_webmagic-WebMagic-1.0.3_0dc852e_a81c4e7_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testGetExtrasShouldBeUnmodifiable:()V", "class": "RequestTest", "method": "testGetExtrasShouldBeUnmodifiable", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testGetExtrasShouldBeUnmodifiable", "old_test_code": null, "new_test_code": "@Test(expected = UnsupportedOperationException.class)\npublic void testGetExtrasShouldBeUnmodifiable() {\n Request request = new Request();\n request.getExtras().put(\"a\", \"1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-51"], "old_production_code": "public Map getExtras() {\n return extras;\n}", "new_production_code": "public Map getExtras() {\n return Collections.unmodifiableMap(extras);\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "107-109", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "105-107", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.4175, "line_coverage_gold": 0.4292, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "195_code4craft_webmagic-WebMagic-1.0.3_0dc852e_a81c4e7_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testSetExtras:()V", "class": "RequestTest", "method": "testSetExtras", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testSetExtras", "old_test_code": null, "new_test_code": "@Test\npublic void testSetExtras() {\n Request request = new Request();\n Map extras = Collections.singletonMap(\"a\", \"1\");\n request.setExtras(extras);\n request.putExtra(\"b\", \"2\");\n assertThat(request.getExtra(\"a\")).isEqualTo(\"1\");\n assertThat(request.getExtra(\"b\")).isEqualTo(\"2\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-38"], "old_production_code": "public Request setExtras(Map extras) {\n this.extras = extras;\n return this;\n}", "new_production_code": "public Request setExtras(Map extras) {\n this.extras.putAll(extras);\n return this;\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "111-114", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "109-112", "dependency_updated": "updated", "score": 0.8, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1501}}, {"dep_id": 1, "method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "95-101", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "96-99", "dependency_updated": "updated", "score": 0.4794, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.6667, "class": 1.0, "tfidf": 0.2082}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.1592, "method_coverage_gold": 0.8351, "line_coverage_gold": 0.7357, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "us/codecraft/webmagic/Request.getExtra:(Ljava/lang/String;)Ljava/lang/Object", "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "WebMagic-1.0.3", "java_version": 11} {"task_id": "code4craft_webmagic-WebMagic-1.0.3__2994716_884f51b__RequestTest_744f803a", "project_name": "code4craft_webmagic-WebMagic-1.0.3", "git_clone_url": "https://github.com/code4craft/webmagic.git", "rev1": "2994716ba5d92aed06c3e1fed3ed043cb3fed10b", "rev2": "884f51ba3bf336cc79b1487ca4faef644fe4bd76", "rev1_date": "2024-04-23T12:37:56Z", "rev2_date": "2024-04-23T12:38:03Z", "git_diff_url": "https://github.com/code4craft/webmagic/compare/2994716ba5d92aed06c3e1fed3ed043cb3fed10b...884f51ba3bf336cc79b1487ca4faef644fe4bd76", "test_file": "webmagic-core/src/test/java/us/codecraft/webmagic/RequestTest.java", "test_changes": [{"change_id": "187_code4craft_webmagic-WebMagic-1.0.3_2994716_884f51b_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testGetExtrasShouldBeUnmodifiable:()V", "class": "RequestTest", "method": "testGetExtrasShouldBeUnmodifiable", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testGetExtrasShouldBeUnmodifiable", "old_test_code": null, "new_test_code": "@Test(expected = UnsupportedOperationException.class)\npublic void testGetExtrasShouldBeUnmodifiable() {\n Request request = new Request();\n request.getExtras().put(\"a\", \"1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-51"], "old_production_code": "public Map getExtras() {\n return extras;\n}", "new_production_code": "public Map getExtras() {\n return Collections.unmodifiableMap(extras);\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "107-109", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "105-107", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.4175, "line_coverage_gold": 0.4294, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "188_code4craft_webmagic-WebMagic-1.0.3_2994716_884f51b_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testSetExtras:()V", "class": "RequestTest", "method": "testSetExtras", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testSetExtras", "old_test_code": null, "new_test_code": "@Test\npublic void testSetExtras() {\n Request request = new Request();\n Map extras = Collections.singletonMap(\"a\", \"1\");\n request.setExtras(extras);\n request.putExtra(\"b\", \"2\");\n assertThat(request.getExtra(\"a\")).isEqualTo(\"1\");\n assertThat(request.getExtra(\"b\")).isEqualTo(\"2\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-38"], "old_production_code": "public Request setExtras(Map extras) {\n this.extras = extras;\n return this;\n}", "new_production_code": "public Request setExtras(Map extras) {\n this.extras.putAll(extras);\n return this;\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "111-114", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "109-112", "dependency_updated": "updated", "score": 0.8, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1501}}, {"dep_id": 1, "method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "95-101", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "96-99", "dependency_updated": "updated", "score": 0.4794, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.6667, "class": 1.0, "tfidf": 0.2082}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.1597, "method_coverage_gold": 0.8351, "line_coverage_gold": 0.7362, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "us/codecraft/webmagic/Request.getExtra:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "WebMagic-1.0.3", "java_version": 11} {"task_id": "code4craft_webmagic-WebMagic-1.0.3__f7fdcd0_38f240c__RequestTest_744f803a", "project_name": "code4craft_webmagic-WebMagic-1.0.3", "git_clone_url": "https://github.com/code4craft/webmagic.git", "rev1": "f7fdcd025f3a44a0cfc749e8612de4379f2e54d3", "rev2": "38f240c42e341da0a11ce2c04f35cba7f654e142", "rev1_date": "2024-04-23T15:39:16Z", "rev2_date": "2024-04-23T15:39:23Z", "git_diff_url": "https://github.com/code4craft/webmagic/compare/f7fdcd025f3a44a0cfc749e8612de4379f2e54d3...38f240c42e341da0a11ce2c04f35cba7f654e142", "test_file": "webmagic-core/src/test/java/us/codecraft/webmagic/RequestTest.java", "test_changes": [{"change_id": "197_code4craft_webmagic-WebMagic-1.0.3_f7fdcd0_38f240c_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testGetExtrasShouldBeUnmodifiable:()V", "class": "RequestTest", "method": "testGetExtrasShouldBeUnmodifiable", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testGetExtrasShouldBeUnmodifiable", "old_test_code": null, "new_test_code": "@Test(expected = UnsupportedOperationException.class)\npublic void testGetExtrasShouldBeUnmodifiable() {\n Request request = new Request();\n request.getExtras().put(\"a\", \"1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-51"], "old_production_code": "public Map getExtras() {\n return extras;\n}", "new_production_code": "public Map getExtras() {\n return Collections.unmodifiableMap(extras);\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "107-109", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "105-107", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.4175, "line_coverage_gold": 0.4302, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.getExtras:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "198_code4craft_webmagic-WebMagic-1.0.3_f7fdcd0_38f240c_RequestTest", "test_sign": "us/codecraft/webmagic/RequestTest.testSetExtras:()V", "class": "RequestTest", "method": "testSetExtras", "module": "webmagic-core", "junit_selector": "us.codecraft.webmagic.RequestTest#testSetExtras", "old_test_code": null, "new_test_code": "@Test\npublic void testSetExtras() {\n Request request = new Request();\n Map extras = Collections.singletonMap(\"a\", \"1\");\n request.setExtras(extras);\n request.putExtra(\"b\", \"2\");\n assertThat(request.getExtra(\"a\")).isEqualTo(\"1\");\n assertThat(request.getExtra(\"b\")).isEqualTo(\"2\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-38"], "old_production_code": "public Request setExtras(Map extras) {\n this.extras = extras;\n return this;\n}", "new_production_code": "public Request setExtras(Map extras) {\n this.extras.putAll(extras);\n return this;\n}", "focal_file_path": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "focal_method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "111-114", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "109-112", "dependency_updated": "updated", "score": 0.8, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1501}}, {"dep_id": 1, "method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_old": "95-101", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "line_nums_new": "96-99", "dependency_updated": "updated", "score": 0.4794, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.6667, "class": 1.0, "tfidf": 0.2082}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.1592, "method_coverage_gold": 0.8351, "line_coverage_gold": 0.7376, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "us/codecraft/webmagic/Request.getExtra:(Ljava/lang/String;)Ljava/lang/Object", "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request"], "all_deps_old": [], "deps_changes": [{"method_sign": "us/codecraft/webmagic/Request.setExtras:(Ljava/util/Map;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "us/codecraft/webmagic/Request.putExtra:(Ljava/lang/String;Ljava/lang/Object;)Lus/codecraft/webmagic/Request", "change_type": "UPDATE", "file_path_old": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "file_path_new": "webmagic-core/src/main/java/us/codecraft/webmagic/Request.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "WebMagic-1.0.3", "java_version": 11} {"task_id": "crossoverJie_JCSprout-0__18842e2_b00a1df__ReverseNodeTest_af708beb", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "18842e2b73138480b6d3cfad3eb5c536ccf1e74d", "rev2": "b00a1df0705cdbdb0e97dae325cf4b05fc5b037c", "rev1_date": "2018-02-11T03:37:12Z", "rev2_date": "2018-02-11T06:49:00Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/18842e2b73138480b6d3cfad3eb5c536ccf1e74d...b00a1df0705cdbdb0e97dae325cf4b05fc5b037c", "test_file": "src/test/java/com/crossoverjie/algorithm/ReverseNodeTest.java", "test_changes": [{"change_id": "29_crossoverJie_JCSprout-0_18842e2_b00a1df_ReverseNodeTest", "test_sign": "com/crossoverjie/algorithm/ReverseNodeTest.reverseNode1:()V", "class": "ReverseNodeTest", "method": "reverseNode1", "module": "", "junit_selector": "com.crossoverjie.algorithm.ReverseNodeTest#reverseNode1", "old_test_code": null, "new_test_code": "@Test\npublic void reverseNode1() throws Exception {\n ReverseNode.Node node4 = new Node<>(\"4\", null);\n Node node3 = new Node<>(\"3\", node4);\n Node node2 = new Node<>(\"2\", node3);\n Node node1 = new Node(\"1\", node2);\n ReverseNode reverseNode = new ReverseNode();\n reverseNode.reverseNode1(node1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-17"], "old_production_code": "", "new_production_code": "public void reverseNode1(Node node) {\n System.out.println(\"====翻转之前====\");\n Stack stack = new Stack<>();\n while (node != null) {\n System.out.print(node.value + \"===>\");\n stack.push(node);\n node = node.next;\n }\n System.out.println(\"\");\n System.out.println(\"====翻转之后====\");\n while (!stack.isEmpty()) {\n System.out.print(stack.pop().value + \"===>\");\n }\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "focal_method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "line_nums_new": "19-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.8169, "method_coverage_gold": 2.5, "line_coverage_gold": 2.9851, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8e6412a84f0f8e6a4a53d7bb7b66908bdd30a8e9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "30_crossoverJie_JCSprout-0_18842e2_b00a1df_ReverseNodeTest", "test_sign": "com/crossoverjie/algorithm/ReverseNodeTest.recNodeTest31:()V", "class": "ReverseNodeTest", "method": "recNodeTest31", "module": "", "junit_selector": "com.crossoverjie.algorithm.ReverseNodeTest#recNodeTest31", "old_test_code": null, "new_test_code": "@Test\npublic void recNodeTest31() {\n Node node4 = new Node<>(\"4\", null);\n Node node3 = new Node<>(\"3\", node4);\n Node node2 = new Node<>(\"2\", node3);\n Node node1 = new Node(\"1\", node2);\n ReverseNode reverseNode = new ReverseNode();\n reverseNode.recNode(node1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-64"], "old_production_code": "", "new_production_code": "public void recNode(Node node) {\n if (node == null) {\n return;\n }\n if (node.next != null) {\n recNode(node.next);\n }\n System.out.print(node.value + \"===>\");\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "focal_method_sign": "com/crossoverjie/algorithm/ReverseNode.recNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/ReverseNode.recNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "line_nums_new": "81-91", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 2.1127, "method_coverage_gold": 2.5, "line_coverage_gold": 1.8657, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8e6412a84f0f8e6a4a53d7bb7b66908bdd30a8e9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/ReverseNode.recNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/ReverseNode.recNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "31_crossoverJie_JCSprout-0_18842e2_b00a1df_ReverseNodeTest", "test_sign": "com/crossoverjie/algorithm/ReverseNodeTest.reverseNode13:()V", "class": "ReverseNodeTest", "method": "reverseNode13", "module": "", "junit_selector": "com.crossoverjie.algorithm.ReverseNodeTest#reverseNode13", "old_test_code": null, "new_test_code": "@Test\npublic void reverseNode13() throws Exception {\n Node node1 = null;\n ReverseNode reverseNode = new ReverseNode();\n reverseNode.reverseNode1(node1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-35"], "old_production_code": "", "new_production_code": "public void reverseNode1(Node node) {\n System.out.println(\"====翻转之前====\");\n Stack stack = new Stack<>();\n while (node != null) {\n System.out.print(node.value + \"===>\");\n stack.push(node);\n node = node.next;\n }\n System.out.println(\"\");\n System.out.println(\"====翻转之后====\");\n while (!stack.isEmpty()) {\n System.out.print(stack.pop().value + \"===>\");\n }\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "focal_method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "line_nums_new": "19-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 1.4085, "method_coverage_gold": 1.6667, "line_coverage_gold": 1.4925, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8e6412a84f0f8e6a4a53d7bb7b66908bdd30a8e9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "32_crossoverJie_JCSprout-0_18842e2_b00a1df_ReverseNodeTest", "test_sign": "com/crossoverjie/algorithm/ReverseNodeTest.reverseHead21:()V", "class": "ReverseNodeTest", "method": "reverseHead21", "module": "", "junit_selector": "com.crossoverjie.algorithm.ReverseNodeTest#reverseHead21", "old_test_code": null, "new_test_code": "@Test\npublic void reverseHead21() throws Exception {\n Node node4 = new Node<>(\"4\", null);\n Node node3 = new Node<>(\"3\", node4);\n Node node2 = new Node<>(\"2\", node3);\n Node node1 = new Node(\"1\", node2);\n ReverseNode reverseNode = new ReverseNode();\n reverseNode.reverseNode(node1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-52"], "old_production_code": "", "new_production_code": "public void reverseNode(Node head) {\n if (head == null) {\n return;\n }\n Node node;\n Node pre = head;\n Node cur = head.next;\n Node next;\n while (cur != null) {\n next = cur.next;\n cur.next = pre;\n pre = cur;\n cur = next;\n }\n head.next = null;\n node = pre;\n while (node != null) {\n System.out.println(node.value);\n node = node.next;\n }\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "focal_method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "line_nums_new": "46-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 3.5211, "method_coverage_gold": 2.5, "line_coverage_gold": 3.5448, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8e6412a84f0f8e6a4a53d7bb7b66908bdd30a8e9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/ReverseNode.reverseNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "33_crossoverJie_JCSprout-0_18842e2_b00a1df_ReverseNodeTest", "test_sign": "com/crossoverjie/algorithm/ReverseNodeTest.reverseNode12:()V", "class": "ReverseNodeTest", "method": "reverseNode12", "module": "", "junit_selector": "com.crossoverjie.algorithm.ReverseNodeTest#reverseNode12", "old_test_code": null, "new_test_code": "@Test\npublic void reverseNode12() throws Exception {\n Node node1 = new Node(\"1\", null);\n ReverseNode reverseNode = new ReverseNode();\n reverseNode.reverseNode1(node1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-26"], "old_production_code": "", "new_production_code": "public void reverseNode1(Node node) {\n System.out.println(\"====翻转之前====\");\n Stack stack = new Stack<>();\n while (node != null) {\n System.out.print(node.value + \"===>\");\n stack.push(node);\n node = node.next;\n }\n System.out.println(\"\");\n System.out.println(\"====翻转之后====\");\n while (!stack.isEmpty()) {\n System.out.print(stack.pop().value + \"===>\");\n }\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "focal_method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "line_nums_new": "19-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.8169, "method_coverage_gold": 2.5, "line_coverage_gold": 2.9851, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8e6412a84f0f8e6a4a53d7bb7b66908bdd30a8e9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/ReverseNode.reverseNode1:(Lcom/crossoverjie/algorithm/ReverseNode$Node;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/ReverseNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__1ad3907_1fc46aa__HappyNumTest_302675fd", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "1ad39074527de2fa2e39c4dd417919a85109ad18", "rev2": "1fc46aacbcc8b158271b512a34260f25c4becdf6", "rev1_date": "2018-01-04T05:54:41Z", "rev2_date": "2018-01-04T09:34:42Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/1ad39074527de2fa2e39c4dd417919a85109ad18...1fc46aacbcc8b158271b512a34260f25c4becdf6", "test_file": "src/test/java/com/crossoverjie/algorithm/HappyNumTest.java", "test_changes": [{"change_id": "34_crossoverJie_JCSprout-0_1ad3907_1fc46aa_HappyNumTest", "test_sign": "com/crossoverjie/algorithm/HappyNumTest.isHappy:()V", "class": "HappyNumTest", "method": "isHappy", "module": "", "junit_selector": "com.crossoverjie.algorithm.HappyNumTest#isHappy", "old_test_code": null, "new_test_code": "@Test\npublic void isHappy() throws Exception {\n HappyNum happyNum = new HappyNum();\n boolean happy = happyNum.isHappy(19);\n Assert.assertEquals(happy, true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["7-12"], "old_production_code": "", "new_production_code": "public boolean isHappy(int number) {\n Set set = new HashSet<>(30);\n while (number != 1) {\n int sum = 0;\n while (number > 0) {\n sum += (number % 10) * (number % 10);\n number = number / 10;\n }\n if (set.contains(sum)) {\n return false;\n } else {\n set.add(sum);\n }\n number = sum;\n }\n return true;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "focal_method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "line_nums_new": "15-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 10.8696, "method_coverage_gold": 5.4054, "line_coverage_gold": 7.8947, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "35_crossoverJie_JCSprout-0_1ad3907_1fc46aa_HappyNumTest", "test_sign": "com/crossoverjie/algorithm/HappyNumTest.isHappy2:()V", "class": "HappyNumTest", "method": "isHappy2", "module": "", "junit_selector": "com.crossoverjie.algorithm.HappyNumTest#isHappy2", "old_test_code": null, "new_test_code": "@Test\npublic void isHappy2() throws Exception {\n HappyNum happyNum = new HappyNum();\n boolean happy = happyNum.isHappy(11);\n Assert.assertEquals(happy, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-19"], "old_production_code": "", "new_production_code": "public boolean isHappy(int number) {\n Set set = new HashSet<>(30);\n while (number != 1) {\n int sum = 0;\n while (number > 0) {\n sum += (number % 10) * (number % 10);\n number = number / 10;\n }\n if (set.contains(sum)) {\n return false;\n } else {\n set.add(sum);\n }\n number = sum;\n }\n return true;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "focal_method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "line_nums_new": "15-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 10.8696, "method_coverage_gold": 5.4054, "line_coverage_gold": 7.8947, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "36_crossoverJie_JCSprout-0_1ad3907_1fc46aa_HappyNumTest", "test_sign": "com/crossoverjie/algorithm/HappyNumTest.isHappy3:()V", "class": "HappyNumTest", "method": "isHappy3", "module": "", "junit_selector": "com.crossoverjie.algorithm.HappyNumTest#isHappy3", "old_test_code": null, "new_test_code": "@Test\npublic void isHappy3() throws Exception {\n HappyNum happyNum = new HappyNum();\n boolean happy = happyNum.isHappy(100);\n System.out.println(happy);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-26"], "old_production_code": "", "new_production_code": "public boolean isHappy(int number) {\n Set set = new HashSet<>(30);\n while (number != 1) {\n int sum = 0;\n while (number > 0) {\n sum += (number % 10) * (number % 10);\n number = number / 10;\n }\n if (set.contains(sum)) {\n return false;\n } else {\n set.add(sum);\n }\n number = sum;\n }\n return true;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "focal_method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "line_nums_new": "15-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 10.8696, "method_coverage_gold": 5.4054, "line_coverage_gold": 7.8947, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/HappyNum.isHappy:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/HappyNum.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__1fc46aa_4368fbf__BinaryNodeTest_5a105e8b", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "1fc46aacbcc8b158271b512a34260f25c4becdf6", "rev2": "4368fbf2f7dac1d2608e4d6aab140d8ef9758a0c", "rev1_date": "2018-01-04T09:34:42Z", "rev2_date": "2018-01-04T13:00:00Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/1fc46aacbcc8b158271b512a34260f25c4becdf6...4368fbf2f7dac1d2608e4d6aab140d8ef9758a0c", "test_file": "src/test/java/com/crossoverjie/algorithm/BinaryNodeTest.java", "test_changes": [{"change_id": "13_crossoverJie_JCSprout-0_1fc46aa_4368fbf_BinaryNodeTest", "test_sign": "com/crossoverjie/algorithm/BinaryNodeTest.test1:()V", "class": "BinaryNodeTest", "method": "test1", "module": "", "junit_selector": "com.crossoverjie.algorithm.BinaryNodeTest#test1", "old_test_code": null, "new_test_code": "@Test\npublic void test1() {\n BinaryNode node = new BinaryNode();\n node = node.createNode();\n System.out.println(node);\n node.levelIterator(node);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["7-17"], "old_production_code": "", "new_production_code": "public BinaryNode createNode() {\n BinaryNode node = new BinaryNode(\"1\", null, null);\n BinaryNode left2 = new BinaryNode(\"2\", null, null);\n BinaryNode left3 = new BinaryNode(\"3\", null, null);\n BinaryNode left4 = new BinaryNode(\"4\", null, null);\n BinaryNode left5 = new BinaryNode(\"5\", null, null);\n BinaryNode left6 = new BinaryNode(\"6\", null, null);\n node.setLeft(left2);\n left2.setLeft(left4);\n left2.setRight(left6);\n node.setRight(left3);\n left3.setRight(left5);\n return node;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "focal_method_sign": "com/crossoverjie/algorithm/BinaryNode.createNode:()Lcom/crossoverjie/algorithm/BinaryNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/BinaryNode.createNode:()Lcom/crossoverjie/algorithm/BinaryNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "line_nums_new": "51-64", "dependency_updated": "inserted", "score": 0.2574, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.294}}, {"dep_id": 2, "method_sign": "com/crossoverjie/algorithm/BinaryNode.levelIterator:(Lcom/crossoverjie/algorithm/BinaryNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "line_nums_new": "83-101", "dependency_updated": "inserted", "score": 0.2328, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1895}}, {"dep_id": 1, "method_sign": "com/crossoverjie/algorithm/BinaryNode.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.1972, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0383}}], "coverage_gold": 1.0, "branch_coverage_gold": 11.5385, "method_coverage_gold": 18.75, "line_coverage_gold": 18.8482, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["3acbcbdceeab5e1cbe7820c3d496d64a086ad2c2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/BinaryNode.createNode:()Lcom/crossoverjie/algorithm/BinaryNode", "com/crossoverjie/algorithm/BinaryNode.levelIterator:(Lcom/crossoverjie/algorithm/BinaryNode;)V", "com/crossoverjie/algorithm/BinaryNode.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/BinaryNode.createNode:()Lcom/crossoverjie/algorithm/BinaryNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/BinaryNode.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/BinaryNode.levelIterator:(Lcom/crossoverjie/algorithm/BinaryNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/BinaryNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__49f01e8_8edb71d__MergeTwoSortedListsTest_a6fd5bba", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "49f01e84481aa7f433a0038d74a23b0e3e121fdf", "rev2": "8edb71dd0513d56a0fae048055e94a2e3635de75", "rev1_date": "2018-02-09T16:13:41Z", "rev2_date": "2018-02-10T03:02:08Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/49f01e84481aa7f433a0038d74a23b0e3e121fdf...8edb71dd0513d56a0fae048055e94a2e3635de75", "test_file": "src/test/java/com/crossoverjie/algorithm/MergeTwoSortedListsTest.java", "test_changes": [{"change_id": "8_crossoverJie_JCSprout-0_49f01e8_8edb71d_MergeTwoSortedListsTest", "test_sign": "com/crossoverjie/algorithm/MergeTwoSortedListsTest.mergeTwoLists3:()V", "class": "MergeTwoSortedListsTest", "method": "mergeTwoLists3", "module": "", "junit_selector": "com.crossoverjie.algorithm.MergeTwoSortedListsTest#mergeTwoLists3", "old_test_code": null, "new_test_code": "@Test\npublic void mergeTwoLists3() throws Exception {\n ListNode l2 = new ListNode(1);\n ListNode l2_2 = new ListNode(3);\n l2.next = l2_2;\n ListNode l2_3 = new ListNode(6);\n l2_2.next = l2_3;\n ListNode l2_4 = new ListNode(9);\n l2_3.next = l2_4;\n ListNode listNode = mergeTwoSortedLists.mergeTwoLists(l2, null);\n ListNode node1 = new ListNode(1);\n ListNode node2 = new ListNode(3);\n node1.next = node2;\n ListNode node3 = new ListNode(6);\n node2.next = node3;\n ListNode node4 = new ListNode(9);\n node3.next = node4;\n Assert.assertEquals(node1.toString(), listNode.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-91"], "old_production_code": "", "new_production_code": "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode head = new ListNode(0);\n ListNode lastNode = head;\n while (l1 != null && l2 != null) {\n if (l1.currentVal < l2.currentVal) {\n lastNode.next = l1;\n l1 = l1.next;\n } else {\n lastNode.next = l2;\n l2 = l2.next;\n }\n lastNode = lastNode.next;\n }\n if (l1 == null) {\n lastNode.next = l2;\n }\n if (l2 == null) {\n lastNode.next = l1;\n }\n return head.next;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "focal_method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "28-51", "dependency_updated": "inserted", "score": 0.6116, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9286, "class": 1.0, "tfidf": 0.3992}}, {"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.3791, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 1.0, "tfidf": 0.3363}}], "coverage_gold": 0.6111111111111112, "branch_coverage_gold": 3.3333, "method_coverage_gold": 3.7037, "line_coverage_gold": 2.6374, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["e22bc323cd388812191139842ea1044f33514517"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "9_crossoverJie_JCSprout-0_49f01e8_8edb71d_MergeTwoSortedListsTest", "test_sign": "com/crossoverjie/algorithm/MergeTwoSortedListsTest.mergeTwoLists:()V", "class": "MergeTwoSortedListsTest", "method": "mergeTwoLists", "module": "", "junit_selector": "com.crossoverjie.algorithm.MergeTwoSortedListsTest#mergeTwoLists", "old_test_code": null, "new_test_code": "@Test\npublic void mergeTwoLists() throws Exception {\n ListNode l1 = new ListNode(1);\n ListNode l1_2 = new ListNode(4);\n l1.next = l1_2;\n ListNode l1_3 = new ListNode(5);\n l1_2.next = l1_3;\n ListNode l2 = new ListNode(1);\n ListNode l2_2 = new ListNode(3);\n l2.next = l2_2;\n ListNode l2_3 = new ListNode(6);\n l2_2.next = l2_3;\n ListNode l2_4 = new ListNode(9);\n l2_3.next = l2_4;\n ListNode listNode = mergeTwoSortedLists.mergeTwoLists(l1, l2);\n ListNode node1 = new ListNode(1);\n ListNode node2 = new ListNode(1);\n node1.next = node2;\n ListNode node3 = new ListNode(3);\n node2.next = node3;\n ListNode node4 = new ListNode(4);\n node3.next = node4;\n ListNode node5 = new ListNode(5);\n node4.next = node5;\n ListNode node6 = new ListNode(6);\n node5.next = node6;\n ListNode node7 = new ListNode(9);\n node6.next = node7;\n Assert.assertEquals(node1.toString(), listNode.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-49"], "old_production_code": "", "new_production_code": "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode head = new ListNode(0);\n ListNode lastNode = head;\n while (l1 != null && l2 != null) {\n if (l1.currentVal < l2.currentVal) {\n lastNode.next = l1;\n l1 = l1.next;\n } else {\n lastNode.next = l2;\n l2 = l2.next;\n }\n lastNode = lastNode.next;\n }\n if (l1 == null) {\n lastNode.next = l2;\n }\n if (l2 == null) {\n lastNode.next = l1;\n }\n return head.next;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "focal_method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "28-51", "dependency_updated": "inserted", "score": 0.8725, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4582}}, {"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.386, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1538, "class": 1.0, "tfidf": 0.3579}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 5.8333, "method_coverage_gold": 3.7037, "line_coverage_gold": 3.956, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["e22bc323cd388812191139842ea1044f33514517"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "10_crossoverJie_JCSprout-0_49f01e8_8edb71d_MergeTwoSortedListsTest", "test_sign": "com/crossoverjie/algorithm/MergeTwoSortedListsTest.mergeTwoLists2:()V", "class": "MergeTwoSortedListsTest", "method": "mergeTwoLists2", "module": "", "junit_selector": "com.crossoverjie.algorithm.MergeTwoSortedListsTest#mergeTwoLists2", "old_test_code": null, "new_test_code": "@Test\npublic void mergeTwoLists2() throws Exception {\n ListNode l2 = new ListNode(1);\n ListNode l2_2 = new ListNode(3);\n l2.next = l2_2;\n ListNode l2_3 = new ListNode(6);\n l2_2.next = l2_3;\n ListNode l2_4 = new ListNode(9);\n l2_3.next = l2_4;\n ListNode listNode = mergeTwoSortedLists.mergeTwoLists(null, l2);\n System.out.println(listNode.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-66"], "old_production_code": "", "new_production_code": "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode head = new ListNode(0);\n ListNode lastNode = head;\n while (l1 != null && l2 != null) {\n if (l1.currentVal < l2.currentVal) {\n lastNode.next = l1;\n l1 = l1.next;\n } else {\n lastNode.next = l2;\n l2 = l2.next;\n }\n lastNode = lastNode.next;\n }\n if (l1 == null) {\n lastNode.next = l2;\n }\n if (l2 == null) {\n lastNode.next = l1;\n }\n return head.next;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "focal_method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "28-51", "dependency_updated": "inserted", "score": 0.6131, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.9286, "class": 1.0, "tfidf": 0.4056}}, {"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.3692, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 1.0, "tfidf": 0.294}}], "coverage_gold": 0.6111111111111112, "branch_coverage_gold": 2.5, "method_coverage_gold": 3.7037, "line_coverage_gold": 2.6374, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["e22bc323cd388812191139842ea1044f33514517"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists$ListNode.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/MergeTwoSortedLists.mergeTwoLists:(Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode;)Lcom/crossoverjie/algorithm/MergeTwoSortedLists$ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/MergeTwoSortedLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__73de2d0_d02ce84__LRULinkedMapTest_c48435e1", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "73de2d0e371e7bbec237d388ad103f707ab99bcd", "rev2": "d02ce84cb9c53af8a4a8f4925550de7deccf0117", "rev1_date": "2018-04-05T04:04:02Z", "rev2_date": "2018-04-05T04:20:32Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/73de2d0e371e7bbec237d388ad103f707ab99bcd...d02ce84cb9c53af8a4a8f4925550de7deccf0117", "test_file": "src/test/java/com/crossoverjie/actual/LRULinkedMapTest.java", "test_changes": [{"change_id": "18_crossoverJie_JCSprout-0_73de2d0_d02ce84_LRULinkedMapTest", "test_sign": "com/crossoverjie/actual/LRULinkedMapTest.put:()V", "class": "LRULinkedMapTest", "method": "put", "module": "", "junit_selector": "com.crossoverjie.actual.LRULinkedMapTest#put", "old_test_code": null, "new_test_code": "@Test\npublic void put() throws Exception {\n LRULinkedMap map = new LRULinkedMap(3);\n map.put(\"1\", 1);\n map.put(\"2\", 2);\n map.put(\"3\", 3);\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n System.out.println(\"\");\n map.put(\"4\", 4);\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-26"], "old_production_code": "", "new_production_code": "public void put(K key, V value) {\n cacheMap.put(key, value);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "focal_method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.8026, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.161}}, {"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "50-52", "dependency_updated": "inserted", "score": 0.3241, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.1667, "class": 1.0, "tfidf": 0.3357}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0309, "method_coverage_gold": 2.2523, "line_coverage_gold": 1.1494, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "19_crossoverJie_JCSprout-0_73de2d0_d02ce84_LRULinkedMapTest", "test_sign": "com/crossoverjie/actual/LRULinkedMapTest.put2:()V", "class": "LRULinkedMapTest", "method": "put2", "module": "", "junit_selector": "com.crossoverjie.actual.LRULinkedMapTest#put2", "old_test_code": null, "new_test_code": "@Test\npublic void put2() throws Exception {\n LRULinkedMap map = new LRULinkedMap(4);\n map.put(\"1\", 1);\n map.put(\"2\", 2);\n map.put(\"3\", 3);\n map.put(\"4\", 4);\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n System.out.println(\"\");\n map.put(\"5\", 5);\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-45"], "old_production_code": "", "new_production_code": "public void put(K key, V value) {\n cacheMap.put(key, value);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "focal_method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.5231, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.1483}}, {"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "50-52", "dependency_updated": "inserted", "score": 0.3288, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.1667, "class": 1.0, "tfidf": 0.3558}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0309, "method_coverage_gold": 2.2523, "line_coverage_gold": 1.1494, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "20_crossoverJie_JCSprout-0_73de2d0_d02ce84_LRULinkedMapTest", "test_sign": "com/crossoverjie/actual/LRULinkedMapTest.get:()V", "class": "LRULinkedMapTest", "method": "get", "module": "", "junit_selector": "com.crossoverjie.actual.LRULinkedMapTest#get", "old_test_code": null, "new_test_code": "@Test\npublic void get() throws Exception {\n LRULinkedMap map = new LRULinkedMap(4);\n map.put(\"1\", 1);\n map.put(\"2\", 2);\n map.put(\"3\", 3);\n map.put(\"4\", 4);\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n System.out.println(\"\");\n map.get(\"1\");\n for (Map.Entry e : map.getAll()) {\n System.out.print(e.getKey() + \" : \" + e.getValue() + \"\\t\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-63"], "old_production_code": "", "new_production_code": "public V get(K key) {\n return cacheMap.get(key);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "focal_method_sign": "com/crossoverjie/actual/LRULinkedMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRULinkedMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "45-47", "dependency_updated": "inserted", "score": 0.7818, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0728}}, {"dep_id": 2, "method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "50-52", "dependency_updated": "inserted", "score": 0.4456, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.369}}, {"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.3301, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.3333, "class": 1.0, "tfidf": 0.1195}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.5155, "method_coverage_gold": 2.7027, "line_coverage_gold": 1.1494, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRULinkedMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRULinkedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRULinkedMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRULinkedMap.getAll:()Ljava/util/Collection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRULinkedMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__7bd2172_796990b__LinkLoopTest_3ef28f9a", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "7bd21721f993e4f0c747b066b945dd36d84f6c54", "rev2": "796990b780a4c0c0eab83033db3c892d0ac14d0e", "rev1_date": "2018-01-04T03:17:21Z", "rev2_date": "2018-01-04T03:55:58Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/7bd21721f993e4f0c747b066b945dd36d84f6c54...796990b780a4c0c0eab83033db3c892d0ac14d0e", "test_file": "src/test/java/com/crossoverjie/algorithm/LinkLoopTest.java", "test_changes": [{"change_id": "6_crossoverJie_JCSprout-0_7bd2172_796990b_LinkLoopTest", "test_sign": "com/crossoverjie/algorithm/LinkLoopTest.isLoop:()V", "class": "LinkLoopTest", "method": "isLoop", "module": "", "junit_selector": "com.crossoverjie.algorithm.LinkLoopTest#isLoop", "old_test_code": null, "new_test_code": "@Test\npublic void isLoop() throws Exception {\n LinkLoop.Node node3 = new LinkLoop.Node(\"3\");\n LinkLoop.Node node2 = new LinkLoop.Node(\"2\");\n LinkLoop.Node node1 = new LinkLoop.Node(\"1\");\n node1.next = node2;\n node2.next = node3;\n LinkLoop linkLoop = new LinkLoop();\n boolean loop = linkLoop.isLoop(node1);\n Assert.assertEquals(loop, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-24"], "old_production_code": "", "new_production_code": "public boolean isLoop(Node node) {\n Node slow = node;\n Node fast = node.next;\n while (node.next != null) {\n Object dataSlow = slow.data;\n Object dataFast = fast.data;\n if (dataFast == dataSlow) {\n return true;\n }\n slow = slow.next;\n fast = fast.next.next;\n if (fast == null) {\n return false;\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "focal_method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "line_nums_new": "27-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 7.8947, "method_coverage_gold": 8.8235, "line_coverage_gold": 10.8527, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "7_crossoverJie_JCSprout-0_7bd2172_796990b_LinkLoopTest", "test_sign": "com/crossoverjie/algorithm/LinkLoopTest.isLoop2:()V", "class": "LinkLoopTest", "method": "isLoop2", "module": "", "junit_selector": "com.crossoverjie.algorithm.LinkLoopTest#isLoop2", "old_test_code": null, "new_test_code": "@Test\npublic void isLoop2() throws Exception {\n LinkLoop.Node node3 = new LinkLoop.Node(\"3\");\n LinkLoop.Node node2 = new LinkLoop.Node(\"2\");\n LinkLoop.Node node1 = new LinkLoop.Node(\"1\");\n node1.next = node2;\n node2.next = node3;\n node3.next = node1;\n LinkLoop linkLoop = new LinkLoop();\n boolean loop = linkLoop.isLoop(node1);\n Assert.assertEquals(loop, true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-43"], "old_production_code": "", "new_production_code": "public boolean isLoop(Node node) {\n Node slow = node;\n Node fast = node.next;\n while (node.next != null) {\n Object dataSlow = slow.data;\n Object dataFast = fast.data;\n if (dataFast == dataSlow) {\n return true;\n }\n slow = slow.next;\n fast = fast.next.next;\n if (fast == null) {\n return false;\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "focal_method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "line_nums_new": "27-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 10.5263, "method_coverage_gold": 8.8235, "line_coverage_gold": 11.6279, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__b8a32c2_1ad3907__TwoSumTest_012141d1", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "b8a32c2b7014f27b802582585c4c1cb530aa6806", "rev2": "1ad39074527de2fa2e39c4dd417919a85109ad18", "rev1_date": "2018-01-04T02:26:37Z", "rev2_date": "2018-01-04T05:54:41Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/b8a32c2b7014f27b802582585c4c1cb530aa6806...1ad39074527de2fa2e39c4dd417919a85109ad18", "test_file": "src/test/java/com/crossoverjie/algorithm/TwoSumTest.java", "test_changes": [{"change_id": "12_crossoverJie_JCSprout-0_b8a32c2_1ad3907_TwoSumTest", "test_sign": "com/crossoverjie/algorithm/TwoSumTest.getTwo2:()V", "class": "TwoSumTest", "method": "getTwo2", "module": "", "junit_selector": "com.crossoverjie.algorithm.TwoSumTest#getTwo2", "old_test_code": null, "new_test_code": "@Test\npublic void getTwo2() {\n TwoSum twoSum = new TwoSum();\n int[] nums = { 1, 3, 5, 7 };\n int[] two = twoSum.getTwo2(nums, 10);\n System.out.println(JSON.toJSONString(two));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-23"], "old_production_code": "", "new_production_code": "public int[] getTwo2(int[] nums, int target) {\n int[] result = new int[2];\n Map map = new HashMap<>(2);\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n result = new int[] { map.get(nums[i]), i };\n }\n map.put(target - nums[i], i);\n }\n return result;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "focal_method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "line_nums_new": "48-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 5.8824, "line_coverage_gold": 6.1069, "is_traceback": true, "commit_gap": {"count": 5, "skipped_commits": ["1776fc6b6b2b1dee54c7caeb10f8f9a8a8c9c5e4", "f4ba1de7cd0e998024c5f6469f4128b43f0bfe54", "482d84b8edf44a5d9c47301bb870ddd15194f1ff", "796990b780a4c0c0eab83033db3c892d0ac14d0e", "7bd21721f993e4f0c747b066b945dd36d84f6c54"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__b8a32c2_7bd2172__TwoSumTest_012141d1", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "b8a32c2b7014f27b802582585c4c1cb530aa6806", "rev2": "7bd21721f993e4f0c747b066b945dd36d84f6c54", "rev1_date": "2018-01-04T02:26:37Z", "rev2_date": "2018-01-04T03:17:21Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/b8a32c2b7014f27b802582585c4c1cb530aa6806...7bd21721f993e4f0c747b066b945dd36d84f6c54", "test_file": "src/test/java/com/crossoverjie/algorithm/TwoSumTest.java", "test_changes": [{"change_id": "11_crossoverJie_JCSprout-0_b8a32c2_7bd2172_TwoSumTest", "test_sign": "com/crossoverjie/algorithm/TwoSumTest.getTwo2:()V", "class": "TwoSumTest", "method": "getTwo2", "module": "", "junit_selector": "com.crossoverjie.algorithm.TwoSumTest#getTwo2", "old_test_code": null, "new_test_code": "@Test\npublic void getTwo2() {\n TwoSum twoSum = new TwoSum();\n int[] nums = { 1, 3, 5, 7 };\n int[] two = twoSum.getTwo2(nums, 4);\n System.out.println(JSON.toJSONString(two));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-23"], "old_production_code": "", "new_production_code": "public int[] getTwo2(int[] nums, int target) {\n int[] result = new int[2];\n Map map = new HashMap<>(2);\n for (int i = 0; i < nums.length; i++) {\n if (map.containsKey(nums[i])) {\n result = new int[] { map.get(nums[i]), i };\n }\n map.put(target - nums[i], i);\n }\n return result;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "focal_method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "line_nums_new": "48-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 12.5, "method_coverage_gold": 6.6667, "line_coverage_gold": 7.4074, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/TwoSum.getTwo2:([II)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoSum.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__deeee57_5a32644__TwoStackQueueTest_a9d1cbf7", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "deeee57b80cfadd92ee15581452b061c0fa84f06", "rev2": "5a32644f4a5fa964f39e9fdb9f801062f5410edf", "rev1_date": "2018-02-09T15:56:53Z", "rev2_date": "2018-02-09T16:11:18Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/deeee57b80cfadd92ee15581452b061c0fa84f06...5a32644f4a5fa964f39e9fdb9f801062f5410edf", "test_file": "src/test/java/com/crossoverjie/algorithm/TwoStackQueueTest.java", "test_changes": [{"change_id": "40_crossoverJie_JCSprout-0_deeee57_5a32644_TwoStackQueueTest", "test_sign": "com/crossoverjie/algorithm/TwoStackQueueTest.queue:()V", "class": "TwoStackQueueTest", "method": "queue", "module": "", "junit_selector": "com.crossoverjie.algorithm.TwoStackQueueTest#queue", "old_test_code": null, "new_test_code": "@Test\npublic void queue() {\n TwoStackQueue twoStackQueue = new TwoStackQueue();\n twoStackQueue.appendTail(\"1\");\n twoStackQueue.appendTail(\"2\");\n twoStackQueue.appendTail(\"3\");\n twoStackQueue.appendTail(\"4\");\n twoStackQueue.appendTail(\"5\");\n int size = twoStackQueue.getSize();\n for (int i = 0; i < size; i++) {\n LOGGER.info(twoStackQueue.deleteHead());\n }\n LOGGER.info(\"========第二次添加=========\");\n twoStackQueue.appendTail(\"6\");\n size = twoStackQueue.getSize();\n for (int i = 0; i < size; i++) {\n LOGGER.info(twoStackQueue.deleteHead());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["9-34"], "old_production_code": "", "new_production_code": "public int getSize() {\n return input.size() + out.size();\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/TwoStackQueue.java", "focal_method_sign": "com/crossoverjie/algorithm/TwoStackQueue.getSize:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/TwoStackQueue.getSize:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoStackQueue.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.2936, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.1337}}, {"dep_id": 1, "method_sign": "com/crossoverjie/algorithm/TwoStackQueue.deleteHead:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoStackQueue.java", "line_nums_new": "37-48", "dependency_updated": "inserted", "score": 0.2582, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.2, "class": 1.0, "tfidf": 0.0074}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.6364, "method_coverage_gold": 3.8462, "line_coverage_gold": 2.2936, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/TwoStackQueue.appendTail:(Ljava/lang/Object;)V", "com/crossoverjie/algorithm/TwoStackQueue.getSize:()I", "com/crossoverjie/algorithm/TwoStackQueue.deleteHead:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/TwoStackQueue.getSize:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoStackQueue.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/algorithm/TwoStackQueue.deleteHead:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/algorithm/TwoStackQueue.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__e13065e_e4e010e__LRUMapTest_a9c689b3", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "e13065e04c2877fe8e53bbe4bfbdb30e45b4e6f3", "rev2": "e4e010ed690b981ca27f49739b96671361ebdf1c", "rev1_date": "2018-04-04T18:01:21Z", "rev2_date": "2018-04-04T18:45:36Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/e13065e04c2877fe8e53bbe4bfbdb30e45b4e6f3...e4e010ed690b981ca27f49739b96671361ebdf1c", "test_file": "src/test/java/com/crossoverjie/actual/LRUMapTest.java", "test_changes": [{"change_id": "14_crossoverJie_JCSprout-0_e13065e_e4e010e_LRUMapTest", "test_sign": "com/crossoverjie/actual/LRUMapTest.get3:()V", "class": "LRUMapTest", "method": "get3", "module": "", "junit_selector": "com.crossoverjie.actual.LRUMapTest#get3", "old_test_code": null, "new_test_code": "@Test\npublic void get3() throws Exception {\n LRUMap lruMap = new LRUMap(3);\n lruMap.put(\"1\", 1);\n lruMap.put(\"2\", 2);\n lruMap.put(\"3\", 3);\n System.out.println(lruMap.toString());\n System.out.println(\"==============\");\n Integer integer = lruMap.get(\"2\");\n System.out.println(integer);\n System.out.println(\"==============\");\n System.out.println(lruMap.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-57"], "old_production_code": "", "new_production_code": "public V get(K key) {\n Node node = getNode(key);\n moveToHead(node);\n return cacheMap.get(key);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRUMap.java", "focal_method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "60-68", "dependency_updated": "inserted", "score": 0.4927, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.0191}}, {"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_old": "145-148", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "208-222", "dependency_updated": "updated", "score": 0.2332, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.0099}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.25, "method_coverage_gold": 5.5556, "line_coverage_gold": 6.6356, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "com/crossoverjie/actual/LRUMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "15_crossoverJie_JCSprout-0_e13065e_e4e010e_LRUMapTest", "test_sign": "com/crossoverjie/actual/LRUMapTest.get4:()V", "class": "LRUMapTest", "method": "get4", "module": "", "junit_selector": "com.crossoverjie.actual.LRUMapTest#get4", "old_test_code": null, "new_test_code": "@Test\npublic void get4() throws Exception {\n LRUMap lruMap = new LRUMap(3);\n lruMap.put(\"1\", 1);\n lruMap.put(\"2\", 2);\n lruMap.put(\"3\", 3);\n System.out.println(lruMap.toString());\n System.out.println(\"==============\");\n Integer integer = lruMap.get(\"3\");\n System.out.println(integer);\n System.out.println(\"==============\");\n System.out.println(lruMap.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-73"], "old_production_code": "", "new_production_code": "public V get(K key) {\n Node node = getNode(key);\n moveToHead(node);\n return cacheMap.get(key);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRUMap.java", "focal_method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "60-68", "dependency_updated": "inserted", "score": 0.4927, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.0191}}, {"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_old": "145-148", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "208-222", "dependency_updated": "updated", "score": 0.2332, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.0099}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2083, "method_coverage_gold": 5.5556, "line_coverage_gold": 6.0536, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "com/crossoverjie/actual/LRUMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "16_crossoverJie_JCSprout-0_e13065e_e4e010e_LRUMapTest", "test_sign": "com/crossoverjie/actual/LRUMapTest.get:()V", "class": "LRUMapTest", "method": "get", "module": "", "junit_selector": "com.crossoverjie.actual.LRUMapTest#get", "old_test_code": null, "new_test_code": "@Test\npublic void get() throws Exception {\n LRUMap lruMap = new LRUMap(3);\n lruMap.put(\"1\", 1);\n lruMap.put(\"2\", 2);\n lruMap.put(\"3\", 3);\n System.out.println(lruMap.toString());\n System.out.println(\"==============\");\n Integer integer = lruMap.get(\"1\");\n System.out.println(integer);\n System.out.println(\"==============\");\n System.out.println(lruMap.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-41"], "old_production_code": "", "new_production_code": "public V get(K key) {\n Node node = getNode(key);\n moveToHead(node);\n return cacheMap.get(key);\n}", "focal_file_path": "src/main/java/com/crossoverjie/actual/LRUMap.java", "focal_method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "60-68", "dependency_updated": "inserted", "score": 0.7737, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0382}}, {"dep_id": 1, "method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_old": "145-148", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "line_nums_new": "208-222", "dependency_updated": "updated", "score": 0.2332, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.0098}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2083, "method_coverage_gold": 5.5556, "line_coverage_gold": 6.6356, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "com/crossoverjie/actual/LRUMap.put:(Ljava/lang/Object;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/actual/LRUMap.get:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/crossoverjie/actual/LRUMap.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/crossoverjie/actual/LRUMap.java", "file_path_new": "src/main/java/com/crossoverjie/actual/LRUMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "crossoverJie_JCSprout-0__f4ba1de_1776fc6__LinkLoopTest_ebdcaa29", "project_name": "crossoverJie_JCSprout-0", "git_clone_url": "https://github.com/crossoverJie/JCSprout.git", "rev1": "f4ba1de7cd0e998024c5f6469f4128b43f0bfe54", "rev2": "1776fc6b6b2b1dee54c7caeb10f8f9a8a8c9c5e4", "rev1_date": "2018-01-04T04:01:17Z", "rev2_date": "2018-01-04T04:42:49Z", "git_diff_url": "https://github.com/crossoverJie/JCSprout/compare/f4ba1de7cd0e998024c5f6469f4128b43f0bfe54...1776fc6b6b2b1dee54c7caeb10f8f9a8a8c9c5e4", "test_file": "src/test/java/com/crossoverjie/algorithm/LinkLoopTest.java", "test_changes": [{"change_id": "37_crossoverJie_JCSprout-0_f4ba1de_1776fc6_LinkLoopTest", "test_sign": "com/crossoverjie/algorithm/LinkLoopTest.isLoop3:()V", "class": "LinkLoopTest", "method": "isLoop3", "module": "", "junit_selector": "com.crossoverjie.algorithm.LinkLoopTest#isLoop3", "old_test_code": null, "new_test_code": "@Test\npublic void isLoop3() throws Exception {\n LinkLoop.Node node2 = new LinkLoop.Node(\"2\");\n LinkLoop.Node node1 = new LinkLoop.Node(\"1\");\n node1.next = node2;\n LinkLoop linkLoop = new LinkLoop();\n boolean loop = linkLoop.isLoop(node1);\n Assert.assertEquals(loop, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-60"], "old_production_code": "public boolean isLoop(Node node) {\n Node slow = node;\n Node fast = node.next;\n while (slow.next != null) {\n Object dataSlow = slow.data;\n Object dataFast = fast.data;\n if (dataFast == dataSlow) {\n return true;\n }\n slow = slow.next;\n fast = fast.next.next;\n if (fast == null) {\n return false;\n }\n }\n return false;\n}", "new_production_code": "public boolean isLoop(Node node) {\n Node slow = node;\n Node fast = node.next;\n while (slow.next != null) {\n Object dataSlow = slow.data;\n Object dataFast = fast.data;\n if (dataFast == dataSlow) {\n return true;\n }\n if (fast.next == null) {\n return false;\n }\n slow = slow.next;\n fast = fast.next.next;\n if (fast == null) {\n return false;\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "focal_method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "file_path_old": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "line_nums_old": "27-50", "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "line_nums_new": "27-53", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5333333333333333, "branch_coverage_gold": 7.5, "method_coverage_gold": 8.8235, "line_coverage_gold": 9.1603, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/crossoverjie/algorithm/LinkLoop.isLoop:(Lcom/crossoverjie/algorithm/LinkLoop$Node;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "file_path_new": "src/main/java/com/crossoverjie/algorithm/LinkLoop.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0", "java_version": 8} {"task_id": "datafaker-net_datafaker-v2.4.2__a88cc1f_2af34fa__SingaporeIdNumberTest_5fbcfac5", "project_name": "datafaker-net_datafaker-v2.4.2", "git_clone_url": "https://github.com/datafaker-net/datafaker.git", "rev1": "a88cc1f3ba3d788bda583f97881f4b32a5d2e651", "rev2": "2af34fa30f522767b705fdbc1af05cd674d184dc", "rev1_date": "2024-08-05T14:17:17Z", "rev2_date": "2024-08-05T18:14:42Z", "git_diff_url": "https://github.com/datafaker-net/datafaker/compare/a88cc1f3ba3d788bda583f97881f4b32a5d2e651...2af34fa30f522767b705fdbc1af05cd674d184dc", "test_file": "src/test/java/net/datafaker/idnumbers/SingaporeIdNumberTest.java", "test_changes": [{"change_id": "2112_datafaker-net_datafaker-v2.4.2_a88cc1f_2af34fa_SingaporeIdNumberTest", "test_sign": "net/datafaker/idnumbers/SingaporeIdNumberTest.centuryPrefix_forCitizens:()V", "class": "SingaporeIdNumberTest", "method": "centuryPrefix_forCitizens", "module": "", "junit_selector": "net.datafaker.idnumbers.SingaporeIdNumberTest#centuryPrefix_forCitizens", "old_test_code": null, "new_test_code": "@Test\nvoid centuryPrefix_forCitizens() {\n assertThat(centuryPrefixCitizen(LocalDate.parse(\"1999-12-31\"))).as(\"19xx = S\").isEqualTo('S');\n assertThat(centuryPrefixCitizen(LocalDate.parse(\"2000-12-31\"))).as(\"20xx = T\").isEqualTo('T');\n assertThat(centuryPrefixCitizen(LocalDate.parse(\"2001-01-01\"))).as(\"20xx = T\").isEqualTo('T');\n assertThat(centuryPrefixCitizen(LocalDate.parse(\"2101-01-01\"))).as(\"21xx = U\").isEqualTo('U');\n assertThat(centuryPrefixCitizen(LocalDate.parse(\"2201-01-01\"))).as(\"22xx = V\").isEqualTo('V');\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-25"], "old_production_code": "", "new_production_code": "static char centuryPrefixCitizen(LocalDate issueDate) {\n int century = issueDate.getYear() / 100;\n return (char) ('A' + century - 1);\n}", "focal_file_path": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "focal_method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixCitizen:(Ljava/time/LocalDate;)C", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixCitizen:(Ljava/time/LocalDate;)C", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "line_nums_new": "101-104", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.18181818181818182, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0749, "line_coverage_gold": 0.0487, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/service/FakerContext.getRandomService:()Lnet/datafaker/service/RandomService", "net/datafaker/providers/base/TimeAndDate.birthday:(II)Ljava/time/LocalDate", "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixCitizen:(Ljava/time/LocalDate;)C", "net/datafaker/providers/base/BaseFaker.getProvider:(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/datafaker/providers/base/AbstractProvider", "net/datafaker/providers/base/BaseProviders.timeAndDate:()Lnet/datafaker/providers/base/TimeAndDate"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixCitizen:(Ljava/time/LocalDate;)C", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2113_datafaker-net_datafaker-v2.4.2_a88cc1f_2af34fa_SingaporeIdNumberTest", "test_sign": "net/datafaker/idnumbers/SingaporeIdNumberTest.randomBirthDate_21th_century:()V", "class": "SingaporeIdNumberTest", "method": "randomBirthDate_21th_century", "module": "", "junit_selector": "net.datafaker.idnumbers.SingaporeIdNumberTest#randomBirthDate_21th_century", "old_test_code": null, "new_test_code": "@Test\nvoid randomBirthDate_21th_century() {\n Faker faker = new Faker();\n for (int i = 0; i < 100; i++) {\n assertThat(randomBirthDate(faker, SINGAPOREAN_TWENTY_FIRST_CENTURY).getYear() / 100).isEqualTo(20);\n assertThat(randomBirthDate(faker, FOREIGNER_TWENTY_FIRST_CENTURY).getYear() / 100).isEqualTo(20);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-52"], "old_production_code": "", "new_production_code": "static LocalDate randomBirthDate(BaseProviders faker, Type type) {\n int now = LocalDate.now().getYear();\n return switch(type) {\n case SINGAPOREAN_TWENTIETH_CENTURY, FOREIGNER_TWENTIETH_CENTURY ->\n faker.timeAndDate().birthday(now - 1900, now - 1999);\n case SINGAPOREAN_TWENTY_FIRST_CENTURY, FOREIGNER_TWENTY_FIRST_CENTURY ->\n faker.timeAndDate().birthday(now - 2000, now - 2099);\n };\n}", "focal_file_path": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "focal_method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "line_nums_new": "82-90", "dependency_updated": "inserted", "score": 0.4996, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5357, "class": 1.0, "tfidf": 0.1983}}, {"dep_id": 0, "method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixForeigner:(Ljava/time/LocalDate;)C", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "line_nums_new": "106-109", "dependency_updated": "inserted", "score": 0.2919, "signal_scores": {"nc": 0.0, "lcs_u": 0.3182, "ed": 0.1429, "class": 1.0, "tfidf": 0.1017}}], "coverage_gold": 0.7647058823529411, "branch_coverage_gold": 1.5925, "method_coverage_gold": 2.5833, "line_coverage_gold": 4.0876, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/service/RandomService.nextLong:(JJ)J", "net/datafaker/service/FakerContext.getRandomService:()Lnet/datafaker/service/RandomService", "net/datafaker/providers/base/TimeAndDate.birthday:(II)Ljava/time/LocalDate", "net/datafaker/providers/base/BaseFaker.random:()Lnet/datafaker/service/RandomService", "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "net/datafaker/providers/base/BaseFaker.getProvider:(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/datafaker/providers/base/AbstractProvider", "net/datafaker/providers/base/BaseProviders.timeAndDate:()Lnet/datafaker/providers/base/TimeAndDate", "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixForeigner:(Ljava/time/LocalDate;)C"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.centuryPrefixForeigner:(Ljava/time/LocalDate;)C", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2114_datafaker-net_datafaker-v2.4.2_a88cc1f_2af34fa_SingaporeIdNumberTest", "test_sign": "net/datafaker/idnumbers/SingaporeIdNumberTest.randomBirthDate_20th_century:()V", "class": "SingaporeIdNumberTest", "method": "randomBirthDate_20th_century", "module": "", "junit_selector": "net.datafaker.idnumbers.SingaporeIdNumberTest#randomBirthDate_20th_century", "old_test_code": null, "new_test_code": "@Test\nvoid randomBirthDate_20th_century() {\n Faker faker = new Faker();\n for (int i = 0; i < 100; i++) {\n assertThat(randomBirthDate(faker, SINGAPOREAN_TWENTIETH_CENTURY).getYear() / 100).isEqualTo(19);\n assertThat(randomBirthDate(faker, FOREIGNER_TWENTIETH_CENTURY).getYear() / 100).isEqualTo(19);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-43"], "old_production_code": "", "new_production_code": "static LocalDate randomBirthDate(BaseProviders faker, Type type) {\n int now = LocalDate.now().getYear();\n return switch(type) {\n case SINGAPOREAN_TWENTIETH_CENTURY, FOREIGNER_TWENTIETH_CENTURY ->\n faker.timeAndDate().birthday(now - 1900, now - 1999);\n case SINGAPOREAN_TWENTY_FIRST_CENTURY, FOREIGNER_TWENTY_FIRST_CENTURY ->\n faker.timeAndDate().birthday(now - 2000, now - 2099);\n };\n}", "focal_file_path": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "focal_method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "line_nums_new": "82-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.5925, "method_coverage_gold": 2.5833, "line_coverage_gold": 4.0876, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/service/RandomService.nextLong:(JJ)J", "net/datafaker/service/FakerContext.getRandomService:()Lnet/datafaker/service/RandomService", "net/datafaker/providers/base/TimeAndDate.birthday:(II)Ljava/time/LocalDate", "net/datafaker/providers/base/BaseFaker.random:()Lnet/datafaker/service/RandomService", "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "net/datafaker/service/FakeValuesGrouping.getEnglishFakeValueGrouping:()Lnet/datafaker/service/FakeValuesGrouping", "net/datafaker/providers/base/BaseFaker.getProvider:(Ljava/lang/Class;Ljava/util/function/Function;)Lnet/datafaker/providers/base/AbstractProvider", "net/datafaker/providers/base/BaseProviders.timeAndDate:()Lnet/datafaker/providers/base/TimeAndDate"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/idnumbers/SingaporeIdNumber.randomBirthDate:(Lnet/datafaker/providers/base/BaseProviders;Lnet/datafaker/idnumbers/SingaporeIdNumber$Type;)Ljava/time/LocalDate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/idnumbers/SingaporeIdNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.4.2", "java_version": 17} {"task_id": "datafaker-net_datafaker-v2.4.2__b2ebdc1_5deccd4__JavaNamesTest_5ed5de07", "project_name": "datafaker-net_datafaker-v2.4.2", "git_clone_url": "https://github.com/datafaker-net/datafaker.git", "rev1": "b2ebdc145dc02623f0692915a538ea1dee8bbf4b", "rev2": "5deccd4171059cf919f85c93cd65b069ab26af8d", "rev1_date": "2024-08-23T17:02:51Z", "rev2_date": "2024-08-23T17:30:59Z", "git_diff_url": "https://github.com/datafaker-net/datafaker/compare/b2ebdc145dc02623f0692915a538ea1dee8bbf4b...5deccd4171059cf919f85c93cd65b069ab26af8d", "test_file": "src/test/java/net/datafaker/internal/helper/JavaNamesTest.java", "test_changes": [{"change_id": "2117_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.null_string:()V", "class": "JavaNamesTest", "method": "null_string", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#null_string", "old_test_code": null, "new_test_code": "@Test\nvoid null_string() {\n assertThat(toJavaNames(null, false)).isNull();\n assertThat(toJavaNames(null, true)).isNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-31"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.09523809523809523, "branch_coverage_gold": 0.0563, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.0323, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2118_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.variety:()V", "class": "JavaNamesTest", "method": "variety", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#variety", "old_test_code": null, "new_test_code": "@Test\nvoid variety() {\n assertThat(toJavaNames(\"variety\", false)).isEqualTo(\"Variety\");\n assertThat(toJavaNames(\"variety\", true)).isEqualTo(\"variety\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["9-13"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.9577, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.2262, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2119_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.empty_string:()V", "class": "JavaNamesTest", "method": "empty_string", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#empty_string", "old_test_code": null, "new_test_code": "@Test\nvoid empty_string() {\n assertThat(toJavaNames(\"\", false)).isEqualTo(\"\");\n assertThat(toJavaNames(\"\", true)).isEqualTo(\"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.09523809523809523, "branch_coverage_gold": 0.1127, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.0323, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2120_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.upper_first_character_with_underscores:()V", "class": "JavaNamesTest", "method": "upper_first_character_with_underscores", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#upper_first_character_with_underscores", "old_test_code": null, "new_test_code": "@Test\nvoid upper_first_character_with_underscores() {\n assertThat(toJavaNames(\"IATA_airline\", false)).isEqualTo(\"IATAAirline\");\n assertThat(toJavaNames(\"IATA_airline\", true)).isEqualTo(\"iATAAirline\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-55"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 1.0141, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.3232, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2122_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.upper_first_character_without_underscores:()V", "class": "JavaNamesTest", "method": "upper_first_character_without_underscores", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#upper_first_character_without_underscores", "old_test_code": null, "new_test_code": "@Test\nvoid upper_first_character_without_underscores() {\n assertThat(toJavaNames(\"A2013\", false)).isEqualTo(\"A2013\");\n assertThat(toJavaNames(\"A2013\", true)).isEqualTo(\"a2013\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.0141, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.2262, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2123_datafaker-net_datafaker-v2.4.2_b2ebdc1_5deccd4_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.big_bang_theory:()V", "class": "JavaNamesTest", "method": "big_bang_theory", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#big_bang_theory", "old_test_code": null, "new_test_code": "@Test\nvoid big_bang_theory() {\n assertThat(toJavaNames(\"big_bang_theory\", false)).isEqualTo(\"BigBangTheory\");\n assertThat(toJavaNames(\"big_bang_theory\", true)).isEqualTo(\"bigBangTheory\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-43"], "old_production_code": "", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n final int length;\n if (string == null || (length = string.length()) == 0) {\n return string;\n }\n int cnt = 0;\n for (int i = 0; i < length; i++) {\n if (string.charAt(i) == '_') {\n cnt++;\n }\n }\n if (cnt == 0 && (Character.isUpperCase(string.charAt(0)) && !isMethod || isMethod && Character.isLowerCase(string.charAt(0))))\n return string;\n final char[] res = new char[length - cnt];\n int pos = 0;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (i == 0 && Character.isLetter(c)) {\n res[pos++] = isMethod ? Character.toLowerCase(c) : Character.toUpperCase(c);\n } else if (c == '_') {\n final char next = string.charAt(i + 1);\n if (i < length - 1 && Character.isLetter(next)) {\n res[pos++] = Character.toUpperCase(next);\n i++;\n }\n } else {\n res[pos++] = c;\n }\n }\n return new String(res);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "4-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 1.0141, "method_coverage_gold": 0.0368, "line_coverage_gold": 0.3232, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2.4.2", "java_version": 17} {"task_id": "datafaker-net_datafaker-v2.4.2__c09af7d_197ac5f__JavaNamesTest_eba2c69b", "project_name": "datafaker-net_datafaker-v2.4.2", "git_clone_url": "https://github.com/datafaker-net/datafaker.git", "rev1": "c09af7df49f7993cfe248fec885c25e789eb0a4e", "rev2": "197ac5f41b9df2deb969f3b05fed6617c30f8ab4", "rev1_date": "2024-08-23T18:37:12Z", "rev2_date": "2024-08-23T19:51:55Z", "git_diff_url": "https://github.com/datafaker-net/datafaker/compare/c09af7df49f7993cfe248fec885c25e789eb0a4e...197ac5f41b9df2deb969f3b05fed6617c30f8ab4", "test_file": "src/test/java/net/datafaker/internal/helper/JavaNamesTest.java", "test_changes": [{"change_id": "2146_datafaker-net_datafaker-v2.4.2_c09af7d_197ac5f_JavaNamesTest", "test_sign": "net/datafaker/internal/helper/JavaNamesTest.wordStartingWithDigit:()V", "class": "JavaNamesTest", "method": "wordStartingWithDigit", "module": "", "junit_selector": "net.datafaker.internal.helper.JavaNamesTest#wordStartingWithDigit", "old_test_code": null, "new_test_code": "@Test\nvoid wordStartingWithDigit() {\n assertThat(toJavaNames(\"1love\", false)).isEqualTo(\"1love\");\n assertThat(toJavaNames(\"1love\", true)).isEqualTo(\"1love\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n if (string == null || string.isEmpty())\n return string;\n int length = string.length();\n char[] res = new char[length];\n int pos = 0;\n Transform next = isMethod ? TO_LOWER : TO_UPPER;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (isLetter(c)) {\n res[pos++] = next.transform(c);\n next = SAME;\n } else if (c == '_') {\n next = TO_UPPER;\n } else {\n res[pos++] = c;\n }\n }\n return new String(res, 0, pos);\n}", "new_production_code": "public static String toJavaNames(String string, boolean isMethod) {\n if (string == null || string.isEmpty())\n return string;\n int length = string.length();\n char[] res = new char[length];\n int pos = 0;\n Transform next = isMethod ? TO_LOWER : TO_UPPER;\n for (int i = 0; i < length; i++) {\n char c = string.charAt(i);\n if (isLetter(c)) {\n res[pos++] = next.transform(c);\n next = SAME;\n } else if (c == '_') {\n next = TO_UPPER;\n } else {\n res[pos++] = c;\n next = SAME;\n }\n }\n return new String(res, 0, pos);\n}", "focal_file_path": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "focal_method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_old": "11-31", "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "line_nums_new": "11-32", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.5688, "method_coverage_gold": 0.1102, "line_coverage_gold": 0.2908, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "net/datafaker/TestSetupExtension.afterEach:(Lorg/junit/jupiter/api/extension/ExtensionContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "net/datafaker/internal/helper/JavaNames.toJavaNames:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "file_path_new": "src/main/java/net/datafaker/internal/helper/JavaNames.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v2.4.2", "java_version": 17} {"task_id": "datumbox_datumbox-framework-0.8.2__91848e2_3f1fcf1__CollaborativeFilteringTest_8ff8dbaf", "project_name": "datumbox_datumbox-framework-0.8.2", "git_clone_url": "https://github.com/datumbox/datumbox-framework.git", "rev1": "91848e2b762e45ed5d701bb0c2dc3da2c0c7f832", "rev2": "3f1fcf1ef552e35a0a4eef87bb4d353a66e1e075", "rev1_date": "2016-12-25T21:49:43Z", "rev2_date": "2016-12-25T22:01:37Z", "git_diff_url": "https://github.com/datumbox/datumbox-framework/compare/91848e2b762e45ed5d701bb0c2dc3da2c0c7f832...3f1fcf1ef552e35a0a4eef87bb4d353a66e1e075", "test_file": "datumbox-framework-core/src/test/java/com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFilteringTest.java", "test_changes": [{"change_id": "854_datumbox_datumbox-framework-0.8.2_91848e2_3f1fcf1_CollaborativeFilteringTest", "test_sign": "com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFilteringTest.testPredict:()V", "class": "CollaborativeFilteringTest", "method": "testPredict", "module": "datumbox-framework-core", "junit_selector": "com.datumbox.framework.core.machinelearning.recommendation.CollaborativeFilteringTest#testPredict", "old_test_code": null, "new_test_code": "@Test\npublic void testPredict() {\n logger.info(\"testPredict\");\n Configuration configuration = Configuration.getConfiguration();\n Dataframe[] data = Datasets.recommenderSystemFood(configuration);\n Dataframe trainingData = data[0];\n Dataframe validationData = data[1];\n String storageName = this.getClass().getSimpleName();\n CollaborativeFiltering.TrainingParameters param = new CollaborativeFiltering.TrainingParameters();\n param.setSimilarityMethod(CollaborativeFiltering.TrainingParameters.SimilarityMeasure.PEARSONS_CORRELATION);\n CollaborativeFiltering instance = MLBuilder.create(param, configuration);\n instance.fit(trainingData);\n instance.save(storageName);\n instance.close();\n instance = MLBuilder.load(CollaborativeFiltering.class, storageName, configuration);\n instance.predict(validationData);\n RecommendationMetrics vm = new RecommendationMetrics(validationData);\n Map expResult = new HashMap<>();\n expResult.put(\"pitta\", 4.686394033077408);\n expResult.put(\"burger\", 4.68408210680137);\n expResult.put(\"pizza\", 4.6194430718558745);\n expResult.put(\"chocolate\", 4.580630241051733);\n expResult.put(\"potato\", 4.291658734729706);\n expResult.put(\"beer\", 4.264285969929414);\n expResult.put(\"sparklewatter\", 2.8034325749458997);\n expResult.put(\"salad\", 1.496493323119103);\n expResult.put(\"risecookie\", 1.372309723394662);\n expResult.put(\"tea\", 1.3577402217087802);\n expResult.put(\"rise\", 1.2243050068650592);\n AssociativeArray result = validationData.iterator().next().getYPredictedProbabilities();\n for (Map.Entry entry : result.entrySet()) {\n assertEquals(expResult.get(entry.getKey()), TypeInference.toDouble(entry.getValue()), Constants.DOUBLE_ACCURACY_HIGH);\n }\n assertEquals(vm.getRMSE(), 0.7184568473420477, Constants.DOUBLE_ACCURACY_HIGH);\n instance.delete();\n trainingData.close();\n validationData.close();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-96"], "old_production_code": "", "new_production_code": "public void setSimilarityMethod(SimilarityMeasure similarityMethod) {\n this.similarityMethod = similarityMethod;\n}", "focal_file_path": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering.java", "focal_method_sign": "com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters.setSimilarityMethod:(Lcom/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters$SimilarityMeasure;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters.setSimilarityMethod:(Lcom/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters$SimilarityMeasure;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering.java", "line_nums_new": "117-119", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8702290076335878, "branch_coverage_gold": 1.7204, "method_coverage_gold": 4.3321, "line_coverage_gold": 3.3112, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/datumbox/framework/common/dataobjects/Dataframe.iterator:()Ljava/util/Iterator", "com/datumbox/framework/common/dataobjects/Record.getYPredictedProbabilities:()Lcom/datumbox/framework/common/dataobjects/AssociativeArray", "com/datumbox/framework/core/machinelearning/MLBuilder.create:(Lcom/datumbox/framework/common/interfaces/Parameterizable;Lcom/datumbox/framework/common/Configuration;)Lcom/datumbox/framework/common/interfaces/Trainable", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.fit:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/common/Configuration.getConfiguration:()Lcom/datumbox/framework/common/Configuration", "com/datumbox/framework/core/machinelearning/modelselection/metrics/RecommendationMetrics.getRMSE:()D", "com/datumbox/framework/common/dataobjects/Dataframe.close:()V", "com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters.setSimilarityMethod:(Lcom/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters$SimilarityMeasure;)V", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.delete:()V", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.save:(Ljava/lang/String;)V", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.close:()V", "com/datumbox/framework/tests/Datasets.recommenderSystemFood:(Lcom/datumbox/framework/common/Configuration;)[Lcom/datumbox/framework/common/dataobjects/Dataframe", "com/datumbox/framework/common/dataobjects/AssociativeArray.entrySet:()Ljava/util/Set", "com/datumbox/framework/common/dataobjects/TypeInference.toDouble:(Ljava/lang/Object;)Ljava/lang/Double", "com/datumbox/framework/core/machinelearning/MLBuilder.load:(Ljava/lang/Class;Ljava/lang/String;Lcom/datumbox/framework/common/Configuration;)Lcom/datumbox/framework/common/interfaces/Trainable", "com/datumbox/framework/core/machinelearning/common/abstracts/modelers/AbstractModeler.predict:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters.setSimilarityMethod:(Lcom/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering$TrainingParameters$SimilarityMeasure;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/recommendation/CollaborativeFiltering.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.8.2", "java_version": 11} {"task_id": "datumbox_datumbox-framework-0.8.2__97531c2_8281722__StepwiseRegressionTest_8ff8dbaf", "project_name": "datumbox_datumbox-framework-0.8.2", "git_clone_url": "https://github.com/datumbox/datumbox-framework.git", "rev1": "97531c2bc1d458abbc4177299774abb4b72bc397", "rev2": "8281722deb98ee657653173430775223d55b490d", "rev1_date": "2016-12-20T19:39:06Z", "rev2_date": "2016-12-20T22:28:16Z", "git_diff_url": "https://github.com/datumbox/datumbox-framework/compare/97531c2bc1d458abbc4177299774abb4b72bc397...8281722deb98ee657653173430775223d55b490d", "test_file": "datumbox-framework-core/src/test/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegressionTest.java", "test_changes": [{"change_id": "832_datumbox_datumbox-framework-0.8.2_97531c2_8281722_StepwiseRegressionTest", "test_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegressionTest.testPredict:()V", "class": "StepwiseRegressionTest", "method": "testPredict", "module": "datumbox-framework-core", "junit_selector": "com.datumbox.framework.core.machinelearning.regression.StepwiseRegressionTest#testPredict", "old_test_code": null, "new_test_code": "@Test\npublic void testPredict() {\n logger.info(\"testPredict\");\n Configuration conf = Configuration.getConfiguration();\n Dataframe[] data = Datasets.regressionNumeric(conf);\n Dataframe trainingData = data[0];\n Dataframe validationData = data[1];\n String dbName = this.getClass().getSimpleName();\n DummyXYMinMaxNormalizer df = new DummyXYMinMaxNormalizer(dbName, conf, new DummyXYMinMaxNormalizer.TrainingParameters());\n df.fit_transform(trainingData);\n StepwiseRegression.TrainingParameters param = new StepwiseRegression.TrainingParameters();\n param.setAout(0.05);\n MatrixLinearRegression.TrainingParameters trainingParams = new MatrixLinearRegression.TrainingParameters();\n param.setRegressionTrainingParameters(trainingParams);\n StepwiseRegression instance = new StepwiseRegression(dbName, conf, param);\n instance.fit(trainingData);\n df.denormalize(trainingData);\n instance.close();\n df.close();\n df = new DummyXYMinMaxNormalizer(dbName, conf);\n df.transform(validationData);\n instance = new StepwiseRegression(dbName, conf);\n instance.predict(validationData);\n df.denormalize(validationData);\n for (Record r : validationData) {\n Assert.assertEquals(TypeInference.toDouble(r.getY()), TypeInference.toDouble(r.getYPredicted()), Constants.DOUBLE_ACCURACY_HIGH);\n }\n df.delete();\n instance.delete();\n trainingData.delete();\n validationData.delete();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-90"], "old_production_code": "@Override\npublic void delete() {\n if (mlregressor != null) {\n mlregressor.delete();\n mlregressor = null;\n }\n super.delete();\n}", "new_production_code": "@Override\npublic void delete() {\n loadRegressor().delete();\n super.delete();\n}", "focal_file_path": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "focal_method_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.delete:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.delete:()V", "file_path_old": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "line_nums_old": "184-192", "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "line_nums_new": "153-157", "dependency_updated": "updated", "score": 0.2827, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1429, "class": 1.0, "tfidf": 0.0516}}, {"dep_id": 1, "method_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.close:()V", "file_path_old": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "line_nums_old": "195-203", "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "line_nums_new": "160-164", "dependency_updated": "updated", "score": 0.2296, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.0256}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5622, "method_coverage_gold": 8.4079, "line_coverage_gold": 5.5578, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["1a1e594abed0d763b49674eb68ca17eff7fe85d2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/datumbox/framework/common/Configuration.getConfiguration:()Lcom/datumbox/framework/common/Configuration", "com/datumbox/framework/tests/Datasets.regressionNumeric:(Lcom/datumbox/framework/common/Configuration;)[Lcom/datumbox/framework/common/dataobjects/Dataframe", "com/datumbox/framework/common/dataobjects/Record.getY:()Ljava/lang/Object", "com/datumbox/framework/core/machinelearning/common/abstracts/datatransformers/AbstractTransformer.denormalize:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/common/dataobjects/Record.getYPredicted:()Ljava/lang/Object", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.close:()V", "com/datumbox/framework/core/machinelearning/common/abstracts/datatransformers/AbstractTransformer.fit_transform:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression$TrainingParameters.setAout:(Ljava/lang/Double;)V", "com/datumbox/framework/core/machinelearning/common/abstracts/datatransformers/AbstractTransformer.transform:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.fit:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.delete:()V", "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.close:()V", "com/datumbox/framework/common/dataobjects/Dataframe.delete:()V", "com/datumbox/framework/core/machinelearning/common/abstracts/modelers/AbstractModeler.predict:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)V", "com/datumbox/framework/core/machinelearning/common/abstracts/AbstractTrainer.delete:()V", "com/datumbox/framework/common/dataobjects/TypeInference.toDouble:(Ljava/lang/Object;)Ljava/lang/Double", "com/datumbox/framework/common/dataobjects/Dataframe$3.hasNext:()Z", "com/datumbox/framework/common/dataobjects/Dataframe.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.delete:()V", "change_type": "UPDATE", "file_path_old": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.close:()V", "change_type": "UPDATE", "file_path_old": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/regression/StepwiseRegression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0.8.2", "java_version": 11} {"task_id": "datumbox_datumbox-framework-0.8.2__ce2a438_65a6dec__DescriptivesTest_dcbf678a", "project_name": "datumbox_datumbox-framework-0.8.2", "git_clone_url": "https://github.com/datumbox/datumbox-framework.git", "rev1": "ce2a43893b51a474a33f0a30ece72a91c4e79806", "rev2": "65a6deca5d6a3040e33d9bac88b4066d2e4441ba", "rev1_date": "2016-12-26T19:27:34Z", "rev2_date": "2016-12-26T19:44:52Z", "git_diff_url": "https://github.com/datumbox/datumbox-framework/compare/ce2a43893b51a474a33f0a30ece72a91c4e79806...65a6deca5d6a3040e33d9bac88b4066d2e4441ba", "test_file": "datumbox-framework-core/src/test/java/com/datumbox/framework/core/statistics/descriptivestatistics/DescriptivesTest.java", "test_changes": [{"change_id": "852_datumbox_datumbox-framework-0.8.2_ce2a438_65a6dec_DescriptivesTest", "test_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/DescriptivesTest.testMinAbsolute:()V", "class": "DescriptivesTest", "method": "testMinAbsolute", "module": "datumbox-framework-core", "junit_selector": "com.datumbox.framework.core.statistics.descriptivestatistics.DescriptivesTest#testMinAbsolute", "old_test_code": null, "new_test_code": "@Test\npublic void testMinAbsolute() {\n logger.info(\"minAbsolute\");\n FlatDataCollection flatDataCollection = generateFlatDataCollection();\n double expResult = 0.99;\n double result = Descriptives.minAbsolute(flatDataCollection);\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["123-130"], "old_production_code": "", "new_production_code": "public static double minAbsolute(FlatDataCollection flatDataCollection) {\n if (flatDataCollection.isEmpty()) {\n throw new IllegalArgumentException(\"The provided collection can't be empty.\");\n }\n double minAbs = Double.POSITIVE_INFINITY;\n Iterator it = flatDataCollection.iteratorDouble();\n while (it.hasNext()) {\n Double v = Math.abs(it.next());\n if (v != null && minAbs > v) {\n minAbs = v;\n }\n }\n return minAbs;\n}", "focal_file_path": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "focal_method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.minAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.minAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "line_nums_new": "168-184", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.2157, "method_coverage_gold": 0.0885, "line_coverage_gold": 0.1181, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.minAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "com/datumbox/framework/core/statistics/descriptivestatistics/DescriptivesTest.generateFlatDataCollection:()Lcom/datumbox/framework/common/dataobjects/FlatDataCollection"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.minAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "853_datumbox_datumbox-framework-0.8.2_ce2a438_65a6dec_DescriptivesTest", "test_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/DescriptivesTest.testMaxAbsolute:()V", "class": "DescriptivesTest", "method": "testMaxAbsolute", "module": "datumbox-framework-core", "junit_selector": "com.datumbox.framework.core.statistics.descriptivestatistics.DescriptivesTest#testMaxAbsolute", "old_test_code": null, "new_test_code": "@Test\npublic void testMaxAbsolute() {\n logger.info(\"maxAbsolute\");\n FlatDataCollection flatDataCollection = generateFlatDataCollection();\n double expResult = 50.85;\n double result = Descriptives.maxAbsolute(flatDataCollection);\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["135-142"], "old_production_code": "", "new_production_code": "public static double maxAbsolute(FlatDataCollection flatDataCollection) {\n if (flatDataCollection.isEmpty()) {\n throw new IllegalArgumentException(\"The provided collection can't be empty.\");\n }\n double max = 0.0;\n Iterator it = flatDataCollection.iteratorDouble();\n while (it.hasNext()) {\n Double v = Math.abs(it.next());\n if (v != null && max < v) {\n max = v;\n }\n }\n return max;\n}", "focal_file_path": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "focal_method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.maxAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.maxAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "line_nums_new": "192-208", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.2157, "method_coverage_gold": 0.0885, "line_coverage_gold": 0.1181, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/datumbox/framework/core/statistics/descriptivestatistics/DescriptivesTest.generateFlatDataCollection:()Lcom/datumbox/framework/common/dataobjects/FlatDataCollection", "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.maxAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.maxAbsolute:(Lcom/datumbox/framework/common/dataobjects/FlatDataCollection;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/descriptivestatistics/Descriptives.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.8.2", "java_version": 11} {"task_id": "datumbox_datumbox-framework-0.8.2__d8b5d1e_4bb5b5a__MultinomialNaiveBayesTest_6812eca0", "project_name": "datumbox_datumbox-framework-0.8.2", "git_clone_url": "https://github.com/datumbox/datumbox-framework.git", "rev1": "d8b5d1e09a4c69baef55ddb966e75937b54d918e", "rev2": "4bb5b5a9c64af118fcb15d1c3f88572f9555b5ea", "rev1_date": "2016-12-24T00:59:48Z", "rev2_date": "2016-12-24T01:58:02Z", "git_diff_url": "https://github.com/datumbox/datumbox-framework/compare/d8b5d1e09a4c69baef55ddb966e75937b54d918e...4bb5b5a9c64af118fcb15d1c3f88572f9555b5ea", "test_file": "datumbox-framework-core/src/test/java/com/datumbox/framework/core/machinelearning/classification/MultinomialNaiveBayesTest.java", "test_changes": [{"change_id": "771_datumbox_datumbox-framework-0.8.2_d8b5d1e_4bb5b5a_MultinomialNaiveBayesTest", "test_sign": "com/datumbox/framework/core/machinelearning/classification/MultinomialNaiveBayesTest.testShuffleValidation:()V", "class": "MultinomialNaiveBayesTest", "method": "testShuffleValidation", "module": "datumbox-framework-core", "junit_selector": "com.datumbox.framework.core.machinelearning.classification.MultinomialNaiveBayesTest#testShuffleValidation", "old_test_code": null, "new_test_code": "@Test\npublic void testShuffleValidation() {\n logger.info(\"testShuffleValidation\");\n Configuration conf = Configuration.getConfiguration();\n double proportion = 0.8;\n int splits = 5;\n Dataframe[] data = Datasets.carsNumeric(conf);\n Dataframe trainingData = data[0];\n data[1].close();\n MultinomialNaiveBayes.TrainingParameters param = new MultinomialNaiveBayes.TrainingParameters();\n param.setMultiProbabilityWeighted(true);\n ClassificationMetrics vm = new Validator<>(ClassificationMetrics.class, conf).validate(new ShuffleSplitter(proportion, splits).split(trainingData), param);\n double expResult = 0.5983838383838384;\n double result = vm.getMacroF1();\n assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH);\n trainingData.close();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["111-137"], "old_production_code": "", "new_production_code": "@Override\npublic Iterable split(Dataframe dataset) {\n final int n = dataset.size();\n if (proportion <= 0.0 || proportion >= 1.0) {\n throw new IllegalArgumentException(\"The train size should be between 0.0 and 1.0.\");\n }\n final int trainSize = (int) (n * proportion);\n return () -> new Iterator() {\n\n private int counter = 0;\n\n @Override\n public boolean hasNext() {\n return counter < splits;\n }\n\n @Override\n public Split next() {\n logger.info(\"Split {}\", counter);\n final Integer[] ids = new Integer[n];\n int j = 0;\n for (Integer rId : dataset.index()) {\n ids[j++] = rId;\n }\n PHPMethods.shuffle(ids, random);\n FlatDataList trainIds = new FlatDataList(new ArrayList<>(trainSize));\n for (int i = 0; i < trainSize; i++) {\n trainIds.add(ids[i]);\n }\n FlatDataList testIds = new FlatDataList(new ArrayList<>(n - trainSize));\n for (int i = trainSize; i < n; i++) {\n testIds.add(ids[i]);\n }\n counter++;\n return new Split(dataset.getSubset(trainIds), dataset.getSubset(testIds));\n }\n };\n}", "focal_file_path": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.java", "focal_method_sign": "com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.split:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)Ljava/lang/Iterable", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.split:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)Ljava/lang/Iterable", "file_path_old": null, "line_nums_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.java", "line_nums_new": "61-108", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9137931034482759, "branch_coverage_gold": 2.7656, "method_coverage_gold": 6.942, "line_coverage_gold": 4.9109, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.split:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)Ljava/lang/Iterable", "com/datumbox/framework/core/machinelearning/modelselection/metrics/ClassificationMetrics.getMacroF1:()D", "com/datumbox/framework/tests/Datasets.carsNumeric:(Lcom/datumbox/framework/common/Configuration;)[Lcom/datumbox/framework/common/dataobjects/Dataframe", "com/datumbox/framework/core/machinelearning/common/abstracts/algorithms/AbstractNaiveBayes$AbstractTrainingParameters.setMultiProbabilityWeighted:(Z)V", "com/datumbox/framework/common/Configuration.getConfiguration:()Lcom/datumbox/framework/common/Configuration", "com/datumbox/framework/common/dataobjects/Dataframe.close:()V", "com/datumbox/framework/core/machinelearning/modelselection/Validator.validate:(Ljava/lang/Iterable;Lcom/datumbox/framework/core/machinelearning/common/interfaces/TrainingParameters;)Lcom/datumbox/framework/core/machinelearning/common/interfaces/ValidationMetrics"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.split:(Lcom/datumbox/framework/common/dataobjects/Dataframe;)Ljava/lang/Iterable", "change_type": "ADD", "file_path_old": null, "file_path_new": "datumbox-framework-core/src/main/java/com/datumbox/framework/core/machinelearning/modelselection/splitters/ShuffleSplitter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.8.2", "java_version": 11} {"task_id": "davidmoten_rtree-0.12__624dcba_8ec1f36__RTreeTest_c2b78731", "project_name": "davidmoten_rtree-0.12", "git_clone_url": "https://github.com/davidmoten/rtree.git", "rev1": "624dcbaa4e43b4daf161dd84838214af37ec318b", "rev2": "8ec1f36b8c929fdb438563fc574698bfee1cb0ba", "rev1_date": "2017-05-05T00:28:14Z", "rev2_date": "2017-05-05T00:32:10Z", "git_diff_url": "https://github.com/davidmoten/rtree/compare/624dcbaa4e43b4daf161dd84838214af37ec318b...8ec1f36b8c929fdb438563fc574698bfee1cb0ba", "test_file": "src/test/java/com/github/davidmoten/rtree/RTreeTest.java", "test_changes": [{"change_id": "1176_davidmoten_rtree-0.12_624dcba_8ec1f36_RTreeTest", "test_sign": "com/github/davidmoten/rtree/RTreeTest.testBulkLoadingEntryCount:()V", "class": "RTreeTest", "method": "testBulkLoadingEntryCount", "module": "", "junit_selector": "com.github.davidmoten.rtree.RTreeTest#testBulkLoadingEntryCount", "old_test_code": null, "new_test_code": "@Test\npublic void testBulkLoadingEntryCount() {\n List> entries = new ArrayList>(10000);\n for (int i = 1; i <= 10000; i++) {\n Point point = nextPoint();\n entries.add(new EntryDefault(i, point));\n }\n RTree tree = RTree.create(entries);\n int entrySize = tree.entries().count().toBlocking().single();\n System.out.println(\"entry count: \" + entrySize);\n assertEquals(entrySize, entries.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-135"], "old_production_code": "", "new_production_code": "public static RTree create(List> entries) {\n return new Builder().create(entries);\n}", "focal_file_path": "src/main/java/com/github/davidmoten/rtree/RTree.java", "focal_method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.7047, "method_coverage_gold": 10.2964, "line_coverage_gold": 11.1595, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/davidmoten/rtree/RTree.entries:()Lrx/Observable", "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/RTreeTest.nextPoint:()Lcom/github/davidmoten/rtree/geometry/Point"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1177_davidmoten_rtree-0.12_624dcba_8ec1f36_RTreeTest", "test_sign": "com/github/davidmoten/rtree/RTreeTest.testSearchOnOneItemOnBulkLoadingRTree:()V", "class": "RTreeTest", "method": "testSearchOnOneItemOnBulkLoadingRTree", "module": "", "junit_selector": "com.github.davidmoten.rtree.RTreeTest#testSearchOnOneItemOnBulkLoadingRTree", "old_test_code": null, "new_test_code": "@Test\npublic void testSearchOnOneItemOnBulkLoadingRTree() {\n Entry entry = e(1);\n RTree tree = RTree.create(Arrays.asList(entry));\n assertEquals(Arrays.asList(entry), tree.search(r(1)).toList().toBlocking().single());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["137-142"], "old_production_code": "", "new_production_code": "public static RTree create(List> entries) {\n return new Builder().create(entries);\n}", "focal_file_path": "src/main/java/com/github/davidmoten/rtree/RTree.java", "focal_method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 5.4208, "method_coverage_gold": 8.7363, "line_coverage_gold": 8.7099, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/davidmoten/rtree/RTreeTest.e:(I)Lcom/github/davidmoten/rtree/Entry", "com/github/davidmoten/rtree/RTree.search:(Lcom/github/davidmoten/rtree/geometry/Rectangle;)Lrx/Observable", "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/internal/EntryDefault.equals:(Ljava/lang/Object;)Z", "com/github/davidmoten/rtree/RTreeTest.r:(I)Lcom/github/davidmoten/rtree/geometry/Rectangle"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1178_davidmoten_rtree-0.12_624dcba_8ec1f36_RTreeTest", "test_sign": "com/github/davidmoten/rtree/RTreeTest.testBulkLoadingWithOneItemIsNotEmpty:()V", "class": "RTreeTest", "method": "testBulkLoadingWithOneItemIsNotEmpty", "module": "", "junit_selector": "com.github.davidmoten.rtree.RTreeTest#testBulkLoadingWithOneItemIsNotEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void testBulkLoadingWithOneItemIsNotEmpty() {\n RTree tree = RTree.create(Arrays.asList(e(1)));\n assertFalse(tree.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["116-120"], "old_production_code": "", "new_production_code": "public static RTree create(List> entries) {\n return new Builder().create(entries);\n}", "focal_file_path": "src/main/java/com/github/davidmoten/rtree/RTree.java", "focal_method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.7104, "method_coverage_gold": 4.9922, "line_coverage_gold": 5.3892, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/davidmoten/rtree/RTreeTest.e:(I)Lcom/github/davidmoten/rtree/Entry", "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/RTree.isEmpty:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1179_davidmoten_rtree-0.12_624dcba_8ec1f36_RTreeTest", "test_sign": "com/github/davidmoten/rtree/RTreeTest.testBulkLoadingTreeAndStarTreeReturnsSameAsStandardRTree:()V", "class": "RTreeTest", "method": "testBulkLoadingTreeAndStarTreeReturnsSameAsStandardRTree", "module": "", "junit_selector": "com.github.davidmoten.rtree.RTreeTest#testBulkLoadingTreeAndStarTreeReturnsSameAsStandardRTree", "old_test_code": null, "new_test_code": "@Test\npublic void testBulkLoadingTreeAndStarTreeReturnsSameAsStandardRTree() {\n RTree tree1 = RTree.create();\n RTree tree2 = RTree.star().create();\n Rectangle[] testRects = { rectangle(0, 0, 0, 0), rectangle(0, 0, 100, 100), rectangle(0, 0, 10, 10), rectangle(0.12, 0.25, 50.356, 50.756), rectangle(1, 0.252, 50, 69.23), rectangle(13.12, 23.123, 50.45, 80.9), rectangle(10, 10, 50, 50) };\n List> entries = new ArrayList>(10000);\n for (int i = 1; i <= 10000; i++) {\n Point point = nextPoint();\n tree1 = tree1.add(i, point);\n tree2 = tree2.add(i, point);\n entries.add(new EntryDefault(i, point));\n }\n RTree tree3 = RTree.create(entries);\n for (Rectangle r : testRects) {\n Set res1 = new HashSet(tree1.search(r).map(RTreeTest.toValue()).toList().toBlocking().single());\n Set res2 = new HashSet(tree2.search(r).map(RTreeTest.toValue()).toList().toBlocking().single());\n Set res3 = new HashSet(tree3.search(r).map(RTreeTest.toValue()).toList().toBlocking().single());\n System.out.println(\"searchRect= rectangle(\" + r.x1() + \",\" + r.y1() + \",\" + r.x2() + \",\" + r.y2() + \")\");\n System.out.println(\"res1.size=\" + res1.size() + \",res2.size=\" + res2.size() + \",res3.size=\" + res3.size());\n assertEquals(res1.size(), res2.size());\n assertEquals(res1.size(), res3.size());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["747-786"], "old_production_code": "", "new_production_code": "public static RTree create(List> entries) {\n return new Builder().create(entries);\n}", "focal_file_path": "src/main/java/com/github/davidmoten/rtree/RTree.java", "focal_method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.3942, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.0962, "class": 1.0, "tfidf": 0.1829}}, {"dep_id": 1, "method_sign": "com/github/davidmoten/rtree/RTree$Builder.create:()Lcom/github/davidmoten/rtree/RTree", "file_path_old": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_old": "293-305", "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "line_nums_new": "322-329", "dependency_updated": "updated", "score": 0.3518, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.0962, "class": 1.0, "tfidf": 0.0028}}], "coverage_gold": 0.8352941176470589, "branch_coverage_gold": 21.2553, "method_coverage_gold": 24.493, "line_coverage_gold": 25.1497, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/davidmoten/rtree/geometry/RectangleImpl.x2:()F", "com/github/davidmoten/rtree/RTree.search:(Lcom/github/davidmoten/rtree/geometry/Rectangle;)Lrx/Observable", "com/github/davidmoten/rtree/RTreeTest.toValue:()Lrx/functions/Func1", "com/github/davidmoten/rtree/RTree.create:()Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/geometry/RectangleImpl.y1:()F", "com/github/davidmoten/rtree/RTree.star:()Lcom/github/davidmoten/rtree/RTree$Builder", "com/github/davidmoten/rtree/RTree.add:(Ljava/lang/Object;Lcom/github/davidmoten/rtree/geometry/Geometry;)Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/geometry/Geometries.rectangle:(FFFF)Lcom/github/davidmoten/rtree/geometry/Rectangle", "com/github/davidmoten/rtree/geometry/Geometries.rectangle:(DDDD)Lcom/github/davidmoten/rtree/geometry/Rectangle", "com/github/davidmoten/rtree/RTree$Builder.create:()Lcom/github/davidmoten/rtree/RTree", "com/github/davidmoten/rtree/geometry/RectangleImpl.x1:()F", "com/github/davidmoten/rtree/RTreeTest.nextPoint:()Lcom/github/davidmoten/rtree/geometry/Point", "com/github/davidmoten/rtree/geometry/RectangleImpl.y2:()F"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/davidmoten/rtree/RTree.create:(Ljava/util/List;)Lcom/github/davidmoten/rtree/RTree", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/davidmoten/rtree/RTree$Builder.create:()Lcom/github/davidmoten/rtree/RTree", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/davidmoten/rtree/RTree.java", "file_path_new": "src/main/java/com/github/davidmoten/rtree/RTree.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.12", "java_version": 8} {"task_id": "davidmoten_rtree-0.12__9c26a5d_49fe7d4__SerializersTest_03c3abc8", "project_name": "davidmoten_rtree-0.12", "git_clone_url": "https://github.com/davidmoten/rtree.git", "rev1": "9c26a5d199233ac97fa7d8e4eebdd38c90454c4c", "rev2": "49fe7d4a916f9652cdec2a56e21260fb519b1e03", "rev1_date": "2017-12-20T06:21:19Z", "rev2_date": "2017-12-20T11:24:40Z", "git_diff_url": "https://github.com/davidmoten/rtree/compare/9c26a5d199233ac97fa7d8e4eebdd38c90454c4c...49fe7d4a916f9652cdec2a56e21260fb519b1e03", "test_file": "src/test/java/com/github/davidmoten/rtree/SerializersTest.java", "test_changes": [{"change_id": "1203_davidmoten_rtree-0.12_9c26a5d_49fe7d4_SerializersTest", "test_sign": "com/github/davidmoten/rtree/SerializersTest.testStringLineDoubleSerialization:()V", "class": "SerializersTest", "method": "testStringLineDoubleSerialization", "module": "", "junit_selector": "com.github.davidmoten.rtree.SerializersTest#testStringLineDoubleSerialization", "old_test_code": null, "new_test_code": "@Test\npublic void testStringLineDoubleSerialization() throws IOException {\n Serializer serializer = Serializers.flatBuffers().utf8();\n Entry a = Entries.entry(\"hello\", Geometries.line(1.0000000001, 2, 3, 4));\n Entry b = Entries.entry(\"there\", Geometries.line(3.0000000001, 4, 5, 6));\n check(serializer, a, b);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-83"], "old_production_code": "public static Line line(double x1, double y1, double x2, double y2) {\n return LineFloat.create(x1, y1, x2, y2);\n}", "new_production_code": "public static Line line(double x1, double y1, double x2, double y2) {\n return LineDouble.create(x1, y1, x2, y2);\n}", "focal_file_path": "src/main/java/com/github/davidmoten/rtree/geometry/Geometries.java", "focal_method_sign": "com/github/davidmoten/rtree/geometry/Geometries.line:(DDDD)Lcom/github/davidmoten/rtree/geometry/Line", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/davidmoten/rtree/geometry/Geometries.line:(DDDD)Lcom/github/davidmoten/rtree/geometry/Line", "file_path_old": "src/main/java/com/github/davidmoten/rtree/geometry/Geometries.java", "line_nums_old": "68-70", "file_path_new": "src/main/java/com/github/davidmoten/rtree/geometry/Geometries.java", "line_nums_new": "69-71", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 11.3369, "method_coverage_gold": 24.8139, "line_coverage_gold": 21.087, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/davidmoten/rtree/Serializers$SerializerBuilder.utf8:()Lcom/github/davidmoten/rtree/Serializer", "com/github/davidmoten/rtree/SerializersTest.check:(Lcom/github/davidmoten/rtree/Serializer;Lcom/github/davidmoten/rtree/Entry;Lcom/github/davidmoten/rtree/Entry;)V", "com/github/davidmoten/rtree/geometry/Geometries.line:(DDDD)Lcom/github/davidmoten/rtree/geometry/Line", "com/github/davidmoten/rtree/Serializers.flatBuffers:()Lcom/github/davidmoten/rtree/Serializers$SerializerBuilder", "com/github/davidmoten/rtree/Entries.entry:(Ljava/lang/Object;Lcom/github/davidmoten/rtree/geometry/Geometry;)Lcom/github/davidmoten/rtree/Entry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/davidmoten/rtree/geometry/Geometries.line:(DDDD)Lcom/github/davidmoten/rtree/geometry/Line", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/davidmoten/rtree/geometry/Geometries.java", "file_path_new": "src/main/java/com/github/davidmoten/rtree/geometry/Geometries.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0.12", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__0c7089e_e063a31__TestAnsi_469160d9", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "0c7089e506d463abc4aa66d7224a50799365a2cb", "rev2": "e063a3114a340a7c17410a1e9d8dba1edfa80f6f", "rev1_date": "2021-05-23T17:27:33Z", "rev2_date": "2021-05-23T18:28:31Z", "git_diff_url": "https://github.com/dialex/JColor/compare/0c7089e506d463abc4aa66d7224a50799365a2cb...e063a3114a340a7c17410a1e9d8dba1edfa80f6f", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestAnsi.java", "test_changes": [{"change_id": "62_dialex_JColor-v5.5.1_0c7089e_e063a31_TestAnsi", "test_sign": "com/diogonunes/jcolor/tests/unit/TestAnsi.Colorize_SingleCommand:()V", "class": "TestAnsi", "method": "Colorize_SingleCommand", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestAnsi#Colorize_SingleCommand", "old_test_code": null, "new_test_code": "@Test\npublic void Colorize_SingleCommand() {\n Command command = Command.CLEAR_SCREEN();\n String text = createTextLine();\n String formattedCommand = Ansi.colorize(command);\n String expectedCode = Ansi.generateCode(command);\n assertThat(formattedCommand, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["171-184"], "old_production_code": "", "new_production_code": "public static String colorize(Command command) {\n return generateCode(command);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Ansi.java", "focal_method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.583, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3636, "class": 1.0, "tfidf": 0.6733}}, {"dep_id": 1, "method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.4502, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1818, "class": 1.0, "tfidf": 0.6111}}, {"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": 0.2552, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.2727, "class": 0.0, "tfidf": 0.4564}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 12.6582, "line_coverage_gold": 12.3967, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/tests/unit/DataGenerator.createTextLine:()Ljava/lang/String", "com/diogonunes/jcolor/Ansi.colorize:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "63_dialex_JColor-v5.5.1_0c7089e_e063a31_TestAnsi", "test_sign": "com/diogonunes/jcolor/tests/unit/TestAnsi.GenerateCode_OneCommand:()V", "class": "TestAnsi", "method": "GenerateCode_OneCommand", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestAnsi#GenerateCode_OneCommand", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_OneCommand() {\n Command command = Command.CLEAR_SCREEN();\n String code = Ansi.generateCode(command);\n String expectedCode = PREFIX + command;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-59"], "old_production_code": "", "new_production_code": "public static String generateCode(Command command) {\n return PREFIX + command;\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Ansi.java", "focal_method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.6192, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5217, "class": 1.0, "tfidf": 0.7162}}, {"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": 0.247, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2174, "class": 0.0, "tfidf": 0.5225}}, {"dep_id": 1, "method_sign": "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "line_nums_new": "25-28", "dependency_updated": "inserted", "score": 0.107, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1304, "class": 0.0, "tfidf": 0.0824}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 11.3924, "line_coverage_gold": 11.5702, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String", "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/Command;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__0c7089e_e063a31__TestCommand_31c4b35c", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "0c7089e506d463abc4aa66d7224a50799365a2cb", "rev2": "e063a3114a340a7c17410a1e9d8dba1edfa80f6f", "rev1_date": "2021-05-23T17:27:33Z", "rev2_date": "2021-05-23T18:28:31Z", "git_diff_url": "https://github.com/dialex/JColor/compare/0c7089e506d463abc4aa66d7224a50799365a2cb...e063a3114a340a7c17410a1e9d8dba1edfa80f6f", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestCommand.java", "test_changes": [{"change_id": "61_dialex_JColor-v5.5.1_0c7089e_e063a31_TestCommand", "test_sign": "com/diogonunes/jcolor/tests/unit/TestCommand.Attribute_AnsiCode_ClearScreen:()V", "class": "TestCommand", "method": "Attribute_AnsiCode_ClearScreen", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestCommand#Attribute_AnsiCode_ClearScreen", "old_test_code": null, "new_test_code": "@Test\npublic void Attribute_AnsiCode_ClearScreen() {\n Command command = Command.CLEAR_SCREEN();\n String code = command.toString();\n String expectedAnsiCode = \"2J\";\n assertThat(code, equalTo(expectedAnsiCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-25"], "old_production_code": "", "new_production_code": "public static Command CLEAR_SCREEN() {\n return new Command(\"2J\");\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Command.java", "focal_method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": 0.5386, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.3333, "class": 1.0, "tfidf": 0.5684}}, {"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "line_nums_new": "25-28", "dependency_updated": "inserted", "score": 0.3566, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1333, "class": 1.0, "tfidf": 0.1534}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 3.7975, "line_coverage_gold": 4.1322, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Command.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Command.CLEAR_SCREEN:()Lcom/diogonunes/jcolor/Command", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Command.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__4171a97_a2ea3ba__TestUsage_b8db182d", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "4171a97eac47d38a30e3ce2badeeb64e09fad38a", "rev2": "a2ea3baf35e17e974fbd529c134e006799b9a3a9", "rev1_date": "2020-06-22T14:30:21Z", "rev2_date": "2020-06-22T17:56:39Z", "git_diff_url": "https://github.com/dialex/JColor/compare/4171a97eac47d38a30e3ce2badeeb64e09fad38a...a2ea3baf35e17e974fbd529c134e006799b9a3a9", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestUsage.java", "test_changes": [{"change_id": "37_dialex_JColor-v5.5.1_4171a97_a2ea3ba_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanMakeItFabulous:()V", "class": "TestUsage", "method": "CanMakeItFabulous", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanMakeItFabulous", "old_test_code": null, "new_test_code": "@Test\npublic void CanMakeItFabulous() {\n String text = \"This text will be magenta\";\n String formattedText = makeItFabulous(text, MAGENTA_TEXT);\n assertThat(formattedText, equalTo(colorize(text, MAGENTA_TEXT)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-68"], "old_production_code": "", "new_production_code": "public static String makeItFabulous(String text, Attribute... attributes) {\n return colorize(text, attributes);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Ansi.java", "focal_method_sign": "com/diogonunes/jcolor/Ansi.makeItFabulous:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Ansi.makeItFabulous:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "173-175", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.2308, "method_coverage_gold": 8.6207, "line_coverage_gold": 17.2107, "is_traceback": true, "commit_gap": {"count": 8, "skipped_commits": ["cd049831d0ea6ffc17b72fe4756674cb474ddbb1", "4b8936f040708adabdb13f15d12116de25c87d20", "330207a2e7494f138260e73ea6457a9c9b196051", "fc1f8b6a4e9556a7c4083c3bc23aeefb929969c2", "889c1e7495890365d20002b00fe3316074a13dbc", "134c5d2e6fdc08c1f169211d92c9d190a16b232c", "5de4dfefb09a1cfb530f45f6bed5a9f3a94b8a14", "e2806d1d9a624d4e2016921837d4324b946281e4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "com/diogonunes/jcolor/Ansi.makeItFabulous:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Ansi.makeItFabulous:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__4b8936f_a2ea3ba__TestUsage_b9eb8a53", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "4b8936f040708adabdb13f15d12116de25c87d20", "rev2": "a2ea3baf35e17e974fbd529c134e006799b9a3a9", "rev1_date": "2020-06-22T17:55:17Z", "rev2_date": "2020-06-22T17:56:39Z", "git_diff_url": "https://github.com/dialex/JColor/compare/4b8936f040708adabdb13f15d12116de25c87d20...a2ea3baf35e17e974fbd529c134e006799b9a3a9", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestUsage.java", "test_changes": [{"change_id": "41_dialex_JColor-v5.5.1_4b8936f_a2ea3ba_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanFormatWithOneAttribute:()V", "class": "TestUsage", "method": "CanFormatWithOneAttribute", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanFormatWithOneAttribute", "old_test_code": null, "new_test_code": "@Test\npublic void CanFormatWithOneAttribute() {\n AnsiFormat fInfo = new AnsiFormat(CYAN_BACK);\n String formattedText = fInfo.format(\"This text will have a cyan back\");\n String expectedCode = Ansi.generateCode(fInfo);\n assertThat(formattedText, startsWith(expectedCode));\n assertThat(\"Message should clear its format\", formattedText, endsWith(Ansi.RESET));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-27"], "old_production_code": "", "new_production_code": "public String format(String text) {\n return Ansi.colorize(text, this.toArray());\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "focal_method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": 0.2778, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.24, "class": 0.0, "tfidf": 0.2627}}, {"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "115-117", "dependency_updated": "inserted", "score": 0.1619, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.24, "class": 0.0, "tfidf": 0.1451}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.2308, "method_coverage_gold": 11.2069, "line_coverage_gold": 18.9911, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cd049831d0ea6ffc17b72fe4756674cb474ddbb1"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "42_dialex_JColor-v5.5.1_4b8936f_a2ea3ba_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanFormatWithMultipleAttributes:()V", "class": "TestUsage", "method": "CanFormatWithMultipleAttributes", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanFormatWithMultipleAttributes", "old_test_code": null, "new_test_code": "@Test\npublic void CanFormatWithMultipleAttributes() {\n AnsiFormat fWarning = new AnsiFormat(RED_TEXT, YELLOW_BACK, BOLD);\n String formattedText = fWarning.format(\"This bold text will be red on yellow\");\n String expectedCode = Ansi.generateCode(fWarning);\n assertThat(formattedText, startsWith(expectedCode));\n assertThat(\"Message should clear its format\", formattedText, endsWith(Ansi.RESET));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-42"], "old_production_code": "", "new_production_code": "public String format(String text) {\n return Ansi.colorize(text, this.toArray());\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "focal_method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": 0.2669, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1935, "class": 0.0, "tfidf": 0.2489}}, {"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "115-117", "dependency_updated": "inserted", "score": 0.1525, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1935, "class": 0.0, "tfidf": 0.1377}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.2308, "method_coverage_gold": 11.2069, "line_coverage_gold": 18.9911, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cd049831d0ea6ffc17b72fe4756674cb474ddbb1"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "43_dialex_JColor-v5.5.1_4b8936f_a2ea3ba_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanUseAnsiFormatOrArray:()V", "class": "TestUsage", "method": "CanUseAnsiFormatOrArray", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanUseAnsiFormatOrArray", "old_test_code": null, "new_test_code": "@Test\npublic void CanUseAnsiFormatOrArray() {\n AnsiFormat formatNotation = new AnsiFormat(BLACK_TEXT, BLACK_BACK);\n Attribute[] arrayNotation = new Attribute[] { BLACK_TEXT, BLACK_BACK };\n String text = \"This text will be black on black\";\n String formatNotationOutput = formatNotation.format(text);\n String arrayNotationOutput = Ansi.colorize(text, arrayNotation);\n assertThat(formatNotationOutput, equalTo(arrayNotationOutput));\n assertThat(formatNotationOutput.compareTo(arrayNotationOutput), equalTo(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-84"], "old_production_code": "", "new_production_code": "public String format(String text) {\n return Ansi.colorize(text, this.toArray());\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "focal_method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.2308, "method_coverage_gold": 10.3448, "line_coverage_gold": 18.6944, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cd049831d0ea6ffc17b72fe4756674cb474ddbb1"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/AnsiFormat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__ada236c_a2ea3ba__TestUsage_b434d4b3", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "ada236cbc832c168c52b05aa135680ce0bf65972", "rev2": "a2ea3baf35e17e974fbd529c134e006799b9a3a9", "rev1_date": "2020-06-22T14:03:37Z", "rev2_date": "2020-06-22T17:56:39Z", "git_diff_url": "https://github.com/dialex/JColor/compare/ada236cbc832c168c52b05aa135680ce0bf65972...a2ea3baf35e17e974fbd529c134e006799b9a3a9", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestUsage.java", "test_changes": [{"change_id": "45_dialex_JColor-v5.5.1_ada236c_a2ea3ba_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanFormatInline:()V", "class": "TestUsage", "method": "CanFormatInline", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanFormatInline", "old_test_code": null, "new_test_code": "@Test\npublic void CanFormatInline() {\n String formattedText = colorize(\"This text will be yellow on magenta\", YELLOW_TEXT, MAGENTA_BACK);\n String expectedCode = Ansi.generateCode(YELLOW_TEXT, MAGENTA_BACK);\n assertThat(formattedText, startsWith(expectedCode));\n assertThat(\"Message should clear its format\", formattedText, endsWith(Ansi.RESET));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-56"], "old_production_code": "", "new_production_code": "public static String colorize(String text, Attribute... attributes) {\n String ansiCode = generateCode(attributes);\n return colorize(text, ansiCode);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Ansi.java", "focal_method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "152-155", "dependency_updated": "inserted", "score": 0.2094, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.3333, "class": 0.0, "tfidf": 0.1878}}, {"dep_id": 1, "method_sign": "com/diogonunes/jcolor/Ansi.generateCode:([Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "file_path_old": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_old": "85-100", "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "line_nums_new": "94-109", "dependency_updated": "updated", "score": 0.1605, "signal_scores": {"nc": 0.0, "lcs_u": 0.4167, "ed": 0.3333, "class": 0.0, "tfidf": 0.1361}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 9.2308, "method_coverage_gold": 7.7586, "line_coverage_gold": 16.9139, "is_traceback": true, "commit_gap": {"count": 12, "skipped_commits": ["cd049831d0ea6ffc17b72fe4756674cb474ddbb1", "4b8936f040708adabdb13f15d12116de25c87d20", "330207a2e7494f138260e73ea6457a9c9b196051", "fc1f8b6a4e9556a7c4083c3bc23aeefb929969c2", "889c1e7495890365d20002b00fe3316074a13dbc", "134c5d2e6fdc08c1f169211d92c9d190a16b232c", "5de4dfefb09a1cfb530f45f6bed5a9f3a94b8a14", "e2806d1d9a624d4e2016921837d4324b946281e4", "4171a97eac47d38a30e3ce2badeeb64e09fad38a", "6b2adf2905da3c5ac6f1c84fcb82d0480d3ca9af", "2d5595fee270d4ff79afd1d5ea721f0a0a46c4bf", "0a1c5e130543ba9fc13795745ba2017accdd36f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "com/diogonunes/jcolor/Ansi.generateCode:([Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Ansi.colorize:(Ljava/lang/String;[Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/diogonunes/jcolor/Ansi.generateCode:([Lcom/diogonunes/jcolor/Ansi$Attribute;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/diogonunes/jcolor/Ansi.java", "file_path_new": "src/main/java/com/diogonunes/jcolor/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__ae82888_0ed0244__TestUsage_70d40d13", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "ae82888ca19c06d9e961b83a9282796cfca21d42", "rev2": "0ed024470564bce18d718bc6d0bd0c65f1ec1b9c", "rev1_date": "2020-07-05T08:13:02Z", "rev2_date": "2020-07-05T08:30:17Z", "git_diff_url": "https://github.com/dialex/JColor/compare/ae82888ca19c06d9e961b83a9282796cfca21d42...0ed024470564bce18d718bc6d0bd0c65f1ec1b9c", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestUsage.java", "test_changes": [{"change_id": "44_dialex_JColor-v5.5.1_ae82888_0ed0244_TestUsage", "test_sign": "com/diogonunes/jcolor/tests/unit/TestUsage.CanFormatWithTrueColorAttributes:()V", "class": "TestUsage", "method": "CanFormatWithTrueColorAttributes", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestUsage#CanFormatWithTrueColorAttributes", "old_test_code": null, "new_test_code": "@Test\npublic void CanFormatWithTrueColorAttributes() {\n AnsiFormat fWarning = new AnsiFormat(TextColor(202), BackColor(225, 255, 47), BOLD());\n String formattedText = fWarning.format(\"This bold text will be kinda-orange on greenish-yellow\");\n String expectedCode = Ansi.generateCode(fWarning);\n assertThat(formattedText, startsWith(expectedCode));\n assertThat(\"Message should clear its format\", formattedText, endsWith(Ansi.RESET));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-58"], "old_production_code": "", "new_production_code": "public static Attribute BackColor(int r, int g, int b) {\n return new BackColorAttribute(r, g, b);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Attribute.java", "focal_method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "line_nums_new": "251-253", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 62.5, "method_coverage_gold": 32.4324, "line_coverage_gold": 51.6949, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["6f007cdab0e3a4dda2ed41b8883665134ffd736f", "b82b6253f3b84e719a68659731bfa4f6bda8c988", "ce63d2ab80c3f134aea240617ab637056f2e0135", "f6811d2893b78cd22505a4c68c4743b18e7ae66e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "com/diogonunes/jcolor/Ansi.generateCode:(Lcom/diogonunes/jcolor/AnsiFormat;)Ljava/lang/String", "com/diogonunes/jcolor/Attribute.BOLD:()Lcom/diogonunes/jcolor/Attribute", "com/diogonunes/jcolor/AnsiFormat.format:(Ljava/lang/String;)Ljava/lang/String", "com/diogonunes/jcolor/Attribute.TextColor:(I)Lcom/diogonunes/jcolor/Attribute"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__ae82888_ce63d2a__TestAttribute_b08e147e", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "ae82888ca19c06d9e961b83a9282796cfca21d42", "rev2": "ce63d2ab80c3f134aea240617ab637056f2e0135", "rev1_date": "2020-07-05T08:13:02Z", "rev2_date": "2020-07-05T08:14:47Z", "git_diff_url": "https://github.com/dialex/JColor/compare/ae82888ca19c06d9e961b83a9282796cfca21d42...ce63d2ab80c3f134aea240617ab637056f2e0135", "test_file": "src/test/java/com/diogonunes/jcolor/tests/unit/TestAttribute.java", "test_changes": [{"change_id": "55_dialex_JColor-v5.5.1_ae82888_ce63d2a_TestAttribute", "test_sign": "com/diogonunes/jcolor/tests/unit/TestAttribute.Attribute_AnsiCode_Back8bitColor:()V", "class": "TestAttribute", "method": "Attribute_AnsiCode_Back8bitColor", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestAttribute#Attribute_AnsiCode_Back8bitColor", "old_test_code": null, "new_test_code": "@Test\npublic void Attribute_AnsiCode_Back8bitColor() {\n int colorNumber = 225;\n Attribute attribute = Attribute.BackColor(colorNumber);\n String ansiCodeFor8bitBackColor = \"48;5;\";\n String code = attribute.toString();\n String expectedCode = ansiCodeFor8bitBackColor + colorNumber;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-58"], "old_production_code": "", "new_production_code": "public static Attribute BackColor(int colorNumber) {\n return new BackColorAttribute(colorNumber);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Attribute.java", "focal_method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(I)Lcom/diogonunes/jcolor/Attribute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(I)Lcom/diogonunes/jcolor/Attribute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "line_nums_new": "240-242", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.625, "method_coverage_gold": 10.8108, "line_coverage_gold": 13.3333, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f6811d2893b78cd22505a4c68c4743b18e7ae66e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Attribute.BackColor:(I)Lcom/diogonunes/jcolor/Attribute", "com/diogonunes/jcolor/ColorAttribute.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(I)Lcom/diogonunes/jcolor/Attribute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "56_dialex_JColor-v5.5.1_ae82888_ce63d2a_TestAttribute", "test_sign": "com/diogonunes/jcolor/tests/unit/TestAttribute.Attribute_AnsiCode_BackTrueColor:()V", "class": "TestAttribute", "method": "Attribute_AnsiCode_BackTrueColor", "module": "", "junit_selector": "com.diogonunes.jcolor.tests.unit.TestAttribute#Attribute_AnsiCode_BackTrueColor", "old_test_code": null, "new_test_code": "@Test\npublic void Attribute_AnsiCode_BackTrueColor() {\n int r = 160, g = 122, b = 255;\n Attribute attribute = Attribute.BackColor(r, g, b);\n String ansiCodeForRGBBackColor = \"48;2;\";\n String code = attribute.toString();\n String expectedCode = ansiCodeForRGBBackColor + r + SEPARATOR + g + SEPARATOR + b;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-73"], "old_production_code": "", "new_production_code": "public static Attribute BackColor(int r, int g, int b) {\n return new BackColorAttribute(r, g, b);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcolor/Attribute.java", "focal_method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "line_nums_new": "251-253", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 28.125, "method_coverage_gold": 10.8108, "line_coverage_gold": 13.3333, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f6811d2893b78cd22505a4c68c4743b18e7ae66e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "com/diogonunes/jcolor/ColorAttribute.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcolor/Attribute.BackColor:(III)Lcom/diogonunes/jcolor/Attribute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcolor/Attribute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "dialex_JColor-v5.5.1__dc1d6f5_2d3f2de__TestAnsi_933577c3", "project_name": "dialex_JColor-v5.5.1", "git_clone_url": "https://github.com/dialex/JColor.git", "rev1": "dc1d6f542529ceda1c4473d40c6f39fb9b4bf795", "rev2": "2d3f2dee29b1480e15e636fb3c5a58d99e0bbe24", "rev1_date": "2019-12-22T15:39:48Z", "rev2_date": "2019-12-22T15:39:48Z", "git_diff_url": "https://github.com/dialex/JColor/compare/dc1d6f542529ceda1c4473d40c6f39fb9b4bf795...2d3f2dee29b1480e15e636fb3c5a58d99e0bbe24", "test_file": "src/test/java/com/diogonunes/jcdp/tests/unit/TestAnsi.java", "test_changes": [{"change_id": "64_dialex_JColor-v5.5.1_dc1d6f5_2d3f2de_TestAnsi", "test_sign": "com/diogonunes/jcdp/tests/unit/TestAnsi.GenerateCode_MultipleOptions:()V", "class": "TestAnsi", "method": "GenerateCode_MultipleOptions", "module": "", "junit_selector": "com.diogonunes.jcdp.tests.unit.TestAnsi#GenerateCode_MultipleOptions", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_MultipleOptions() {\n Object[] options = new Object[] { Ansi.Attribute.BOLD, Ansi.FColor.CYAN };\n String code = Ansi.generateCode(options);\n String expectedCode = Ansi.PREFIX + options[0] + Ansi.SEPARATOR + options[1] + Ansi.POSTFIX;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-52"], "old_production_code": "", "new_production_code": "public static String generateCode(Object... options) {\n StringBuilder builder = new StringBuilder();\n builder.append(Ansi.PREFIX);\n for (Object option : options) {\n String code = option.toString();\n if (code.equals(\"\"))\n continue;\n builder.append(code);\n builder.append(Ansi.SEPARATOR);\n }\n builder.append(Ansi.POSTFIX);\n return builder.toString().replace(SEPARATOR + POSTFIX, POSTFIX);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "focal_method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "line_nums_new": "134-149", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.68, "branch_coverage_gold": 3.4483, "method_coverage_gold": 5.1136, "line_coverage_gold": 5.0549, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcdp/color/api/Ansi$FColor.toString:()Ljava/lang/String", "com/diogonunes/jcdp/color/api/Ansi$Attribute.toString:()Ljava/lang/String", "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "65_dialex_JColor-v5.5.1_dc1d6f5_2d3f2de_TestAnsi", "test_sign": "com/diogonunes/jcdp/tests/unit/TestAnsi.GenerateCode_SomeOptionsWithValueNone:()V", "class": "TestAnsi", "method": "GenerateCode_SomeOptionsWithValueNone", "module": "", "junit_selector": "com.diogonunes.jcdp.tests.unit.TestAnsi#GenerateCode_SomeOptionsWithValueNone", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_SomeOptionsWithValueNone() {\n Object[] options = new Object[] { Ansi.Attribute.NONE, Ansi.FColor.CYAN, Ansi.BColor.NONE };\n String code = Ansi.generateCode(options);\n String expectedCode = Ansi.PREFIX + options[1] + Ansi.POSTFIX;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-78"], "old_production_code": "", "new_production_code": "public static String generateCode(Object... options) {\n StringBuilder builder = new StringBuilder();\n builder.append(Ansi.PREFIX);\n for (Object option : options) {\n String code = option.toString();\n if (code.equals(\"\"))\n continue;\n builder.append(code);\n builder.append(Ansi.SEPARATOR);\n }\n builder.append(Ansi.POSTFIX);\n return builder.toString().replace(SEPARATOR + POSTFIX, POSTFIX);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "focal_method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "line_nums_new": "134-149", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.5977, "method_coverage_gold": 7.3864, "line_coverage_gold": 6.8132, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcdp/color/api/Ansi$FColor.toString:()Ljava/lang/String", "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "66_dialex_JColor-v5.5.1_dc1d6f5_2d3f2de_TestAnsi", "test_sign": "com/diogonunes/jcdp/tests/unit/TestAnsi.GenerateCode_OneOption:()V", "class": "TestAnsi", "method": "GenerateCode_OneOption", "module": "", "junit_selector": "com.diogonunes.jcdp.tests.unit.TestAnsi#GenerateCode_OneOption", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_OneOption() {\n Object[] options = new Object[] { Ansi.Attribute.BOLD };\n String code = Ansi.generateCode(options);\n String expectedCode = Ansi.PREFIX + options[0] + Ansi.POSTFIX;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-39"], "old_production_code": "", "new_production_code": "public static String generateCode(Object... options) {\n StringBuilder builder = new StringBuilder();\n builder.append(Ansi.PREFIX);\n for (Object option : options) {\n String code = option.toString();\n if (code.equals(\"\"))\n continue;\n builder.append(code);\n builder.append(Ansi.SEPARATOR);\n }\n builder.append(Ansi.POSTFIX);\n return builder.toString().replace(SEPARATOR + POSTFIX, POSTFIX);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "focal_method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "line_nums_new": "134-149", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 3.4483, "method_coverage_gold": 2.8409, "line_coverage_gold": 3.5165, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcdp/color/api/Ansi$Attribute.toString:()Ljava/lang/String", "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "67_dialex_JColor-v5.5.1_dc1d6f5_2d3f2de_TestAnsi", "test_sign": "com/diogonunes/jcdp/tests/unit/TestAnsi.GenerateCode_ZeroOptions:()V", "class": "TestAnsi", "method": "GenerateCode_ZeroOptions", "module": "", "junit_selector": "com.diogonunes.jcdp.tests.unit.TestAnsi#GenerateCode_ZeroOptions", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_ZeroOptions() {\n String code = Ansi.generateCode();\n String expectedCode = Ansi.PREFIX + Ansi.POSTFIX;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-26"], "old_production_code": "", "new_production_code": "public static String generateCode(Object... options) {\n StringBuilder builder = new StringBuilder();\n builder.append(Ansi.PREFIX);\n for (Object option : options) {\n String code = option.toString();\n if (code.equals(\"\"))\n continue;\n builder.append(code);\n builder.append(Ansi.SEPARATOR);\n }\n builder.append(Ansi.POSTFIX);\n return builder.toString().replace(SEPARATOR + POSTFIX, POSTFIX);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "focal_method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "line_nums_new": "134-149", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.1494, "method_coverage_gold": 0.5682, "line_coverage_gold": 1.0989, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "68_dialex_JColor-v5.5.1_dc1d6f5_2d3f2de_TestAnsi", "test_sign": "com/diogonunes/jcdp/tests/unit/TestAnsi.GenerateCode_MultipleOptionsWithValueNone:()V", "class": "TestAnsi", "method": "GenerateCode_MultipleOptionsWithValueNone", "module": "", "junit_selector": "com.diogonunes.jcdp.tests.unit.TestAnsi#GenerateCode_MultipleOptionsWithValueNone", "old_test_code": null, "new_test_code": "@Test\npublic void GenerateCode_MultipleOptionsWithValueNone() {\n Object[] options = new Object[] { Ansi.Attribute.NONE, Ansi.FColor.NONE, Ansi.BColor.NONE };\n String code = Ansi.generateCode(options);\n String expectedCode = Ansi.PREFIX + Ansi.POSTFIX;\n assertThat(code, equalTo(expectedCode));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-65"], "old_production_code": "", "new_production_code": "public static String generateCode(Object... options) {\n StringBuilder builder = new StringBuilder();\n builder.append(Ansi.PREFIX);\n for (Object option : options) {\n String code = option.toString();\n if (code.equals(\"\"))\n continue;\n builder.append(code);\n builder.append(Ansi.SEPARATOR);\n }\n builder.append(Ansi.POSTFIX);\n return builder.toString().replace(SEPARATOR + POSTFIX, POSTFIX);\n}", "focal_file_path": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "focal_method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "line_nums_new": "134-149", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.4483, "method_coverage_gold": 7.3864, "line_coverage_gold": 6.3736, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/diogonunes/jcdp/color/api/Ansi.generateCode:([Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/diogonunes/jcdp/color/api/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.5.1", "java_version": 8} {"task_id": "eirslett_frontend-maven-plugin-frontend-plugins-2.0.0__9ae0987_381357d__DefaultArchiveExtractorTest_be6d9984", "project_name": "eirslett_frontend-maven-plugin-frontend-plugins-2.0.0", "git_clone_url": "https://github.com/eirslett/frontend-maven-plugin.git", "rev1": "9ae0987885e33f1441fefd2eb7147d30bc7447bc", "rev2": "381357dc6c3034e9ddfbc4727ecbfe7366da12b4", "rev1_date": "2019-12-17T17:13:07Z", "rev2_date": "2019-12-17T20:33:13Z", "git_diff_url": "https://github.com/eirslett/frontend-maven-plugin/compare/9ae0987885e33f1441fefd2eb7147d30bc7447bc...381357dc6c3034e9ddfbc4727ecbfe7366da12b4", "test_file": "frontend-plugin-core/src/test/java/com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractorTest.java", "test_changes": [{"change_id": "79_eirslett_frontend-maven-plugin-frontend-plugins-2.0.0_9ae0987_381357d_DefaultArchiveExtractorTest", "test_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractorTest.extractGoodTarFile:()V", "class": "DefaultArchiveExtractorTest", "method": "extractGoodTarFile", "module": "frontend-plugin-core", "junit_selector": "com.github.eirslett.maven.plugins.frontend.lib.DefaultArchiveExtractorTest#extractGoodTarFile", "old_test_code": null, "new_test_code": "@Test\npublic void extractGoodTarFile() throws Exception {\n File destination = temp.newFolder(\"destination\");\n extractor.extract(GOOD_TAR, destination.getPath());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "@Override\npublic void extract(String archive, String destinationDirectory) throws ArchiveExtractionException {\n final File archiveFile = new File(archive);\n try (FileInputStream fis = new FileInputStream(archiveFile)) {\n if (\"msi\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n String command = \"msiexec /a \" + archiveFile.getAbsolutePath() + \" /qn TARGETDIR=\\\"\" + destinationDirectory + \"\\\"\";\n Process child = Runtime.getRuntime().exec(command);\n try {\n int result = child.waitFor();\n if (result != 0) {\n throw new ArchiveExtractionException(\"Could not extract \" + archiveFile.getAbsolutePath() + \"; return code \" + result);\n }\n } catch (InterruptedException e) {\n throw new ArchiveExtractionException(\"Unexpected interruption of while waiting for extraction process\", e);\n }\n } else if (\"zip\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n ZipFile zipFile = new ZipFile(archiveFile);\n try {\n Enumeration entries = zipFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n final File destPath = new File(destinationDirectory + File.separator + entry.getName());\n prepDestination(destPath, entry.isDirectory());\n if (!entry.isDirectory()) {\n InputStream in = null;\n OutputStream out = null;\n try {\n in = zipFile.getInputStream(entry);\n out = new FileOutputStream(destPath);\n IOUtils.copy(in, out);\n } finally {\n IOUtils.closeQuietly(in);\n IOUtils.closeQuietly(out);\n }\n }\n }\n } finally {\n zipFile.close();\n }\n } else {\n TarArchiveInputStream tarIn = null;\n try {\n tarIn = new TarArchiveInputStream(new GzipCompressorInputStream(fis));\n TarArchiveEntry tarEntry = tarIn.getNextTarEntry();\n while (tarEntry != null) {\n final File destPath = new File(destinationDirectory + File.separator + tarEntry.getName());\n prepDestination(destPath, tarEntry.isDirectory());\n if (!startsWithPath(destPath.getCanonicalPath(), destinationDirectory)) {\n throw new IOException(\"Expanding \" + tarEntry.getName() + \" would create file outside of \" + destinationDirectory);\n }\n if (!tarEntry.isDirectory()) {\n destPath.createNewFile();\n boolean isExecutable = (tarEntry.getMode() & 0100) > 0;\n destPath.setExecutable(isExecutable);\n OutputStream out = null;\n try {\n out = new FileOutputStream(destPath);\n IOUtils.copy(tarIn, out);\n } finally {\n IOUtils.closeQuietly(out);\n }\n }\n tarEntry = tarIn.getNextTarEntry();\n }\n } finally {\n IOUtils.closeQuietly(tarIn);\n }\n }\n } catch (IOException e) {\n throw new ArchiveExtractionException(\"Could not extract archive: '\" + archive + \"'\", e);\n }\n}", "new_production_code": "@Override\npublic void extract(String archive, String destinationDirectory) throws ArchiveExtractionException {\n final File archiveFile = new File(archive);\n try (FileInputStream fis = new FileInputStream(archiveFile)) {\n if (\"msi\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n String command = \"msiexec /a \" + archiveFile.getAbsolutePath() + \" /qn TARGETDIR=\\\"\" + destinationDirectory + \"\\\"\";\n Process child = Runtime.getRuntime().exec(command);\n try {\n int result = child.waitFor();\n if (result != 0) {\n throw new ArchiveExtractionException(\"Could not extract \" + archiveFile.getAbsolutePath() + \"; return code \" + result);\n }\n } catch (InterruptedException e) {\n throw new ArchiveExtractionException(\"Unexpected interruption of while waiting for extraction process\", e);\n }\n } else if (\"zip\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n ZipFile zipFile = new ZipFile(archiveFile);\n try {\n Enumeration entries = zipFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n final File destPath = new File(destinationDirectory + File.separator + entry.getName());\n prepDestination(destPath, entry.isDirectory());\n if (!entry.isDirectory()) {\n InputStream in = null;\n OutputStream out = null;\n try {\n in = zipFile.getInputStream(entry);\n out = new FileOutputStream(destPath);\n IOUtils.copy(in, out);\n } finally {\n IOUtils.closeQuietly(in);\n IOUtils.closeQuietly(out);\n }\n }\n }\n } finally {\n zipFile.close();\n }\n } else {\n TarArchiveInputStream tarIn = null;\n try {\n tarIn = new TarArchiveInputStream(new GzipCompressorInputStream(fis));\n TarArchiveEntry tarEntry = tarIn.getNextTarEntry();\n String canonicalDestinationDirectory = new File(destinationDirectory).getCanonicalPath();\n while (tarEntry != null) {\n final File destPath = new File(destinationDirectory + File.separator + tarEntry.getName());\n prepDestination(destPath, tarEntry.isDirectory());\n if (!startsWithPath(destPath.getCanonicalPath(), canonicalDestinationDirectory)) {\n throw new IOException(\"Expanding \" + tarEntry.getName() + \" would create file outside of \" + canonicalDestinationDirectory);\n }\n if (!tarEntry.isDirectory()) {\n destPath.createNewFile();\n boolean isExecutable = (tarEntry.getMode() & 0100) > 0;\n destPath.setExecutable(isExecutable);\n OutputStream out = null;\n try {\n out = new FileOutputStream(destPath);\n IOUtils.copy(tarIn, out);\n } finally {\n IOUtils.closeQuietly(out);\n }\n }\n tarEntry = tarIn.getNextTarEntry();\n }\n } finally {\n IOUtils.closeQuietly(tarIn);\n }\n }\n } catch (IOException e) {\n throw new ArchiveExtractionException(\"Could not extract archive: '\" + archive + \"'\", e);\n }\n}", "focal_file_path": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "focal_method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "file_path_old": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "line_nums_old": "56-143", "file_path_new": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "line_nums_new": "56-143", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.45454545454545453, "branch_coverage_gold": 2.7919, "method_coverage_gold": 2.439, "line_coverage_gold": 3.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "file_path_new": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "80_eirslett_frontend-maven-plugin-frontend-plugins-2.0.0_9ae0987_381357d_DefaultArchiveExtractorTest", "test_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractorTest.extractBadTarFile:()V", "class": "DefaultArchiveExtractorTest", "method": "extractBadTarFile", "module": "frontend-plugin-core", "junit_selector": "com.github.eirslett.maven.plugins.frontend.lib.DefaultArchiveExtractorTest#extractBadTarFile", "old_test_code": null, "new_test_code": "@Test(expected = ArchiveExtractionException.class)\npublic void extractBadTarFile() throws Exception {\n File destination = temp.newFolder(\"destination\");\n extractor.extract(BAD_TAR, destination.getPath());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-51"], "old_production_code": "@Override\npublic void extract(String archive, String destinationDirectory) throws ArchiveExtractionException {\n final File archiveFile = new File(archive);\n try (FileInputStream fis = new FileInputStream(archiveFile)) {\n if (\"msi\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n String command = \"msiexec /a \" + archiveFile.getAbsolutePath() + \" /qn TARGETDIR=\\\"\" + destinationDirectory + \"\\\"\";\n Process child = Runtime.getRuntime().exec(command);\n try {\n int result = child.waitFor();\n if (result != 0) {\n throw new ArchiveExtractionException(\"Could not extract \" + archiveFile.getAbsolutePath() + \"; return code \" + result);\n }\n } catch (InterruptedException e) {\n throw new ArchiveExtractionException(\"Unexpected interruption of while waiting for extraction process\", e);\n }\n } else if (\"zip\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n ZipFile zipFile = new ZipFile(archiveFile);\n try {\n Enumeration entries = zipFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n final File destPath = new File(destinationDirectory + File.separator + entry.getName());\n prepDestination(destPath, entry.isDirectory());\n if (!entry.isDirectory()) {\n InputStream in = null;\n OutputStream out = null;\n try {\n in = zipFile.getInputStream(entry);\n out = new FileOutputStream(destPath);\n IOUtils.copy(in, out);\n } finally {\n IOUtils.closeQuietly(in);\n IOUtils.closeQuietly(out);\n }\n }\n }\n } finally {\n zipFile.close();\n }\n } else {\n TarArchiveInputStream tarIn = null;\n try {\n tarIn = new TarArchiveInputStream(new GzipCompressorInputStream(fis));\n TarArchiveEntry tarEntry = tarIn.getNextTarEntry();\n while (tarEntry != null) {\n final File destPath = new File(destinationDirectory + File.separator + tarEntry.getName());\n prepDestination(destPath, tarEntry.isDirectory());\n if (!startsWithPath(destPath.getCanonicalPath(), destinationDirectory)) {\n throw new IOException(\"Expanding \" + tarEntry.getName() + \" would create file outside of \" + destinationDirectory);\n }\n if (!tarEntry.isDirectory()) {\n destPath.createNewFile();\n boolean isExecutable = (tarEntry.getMode() & 0100) > 0;\n destPath.setExecutable(isExecutable);\n OutputStream out = null;\n try {\n out = new FileOutputStream(destPath);\n IOUtils.copy(tarIn, out);\n } finally {\n IOUtils.closeQuietly(out);\n }\n }\n tarEntry = tarIn.getNextTarEntry();\n }\n } finally {\n IOUtils.closeQuietly(tarIn);\n }\n }\n } catch (IOException e) {\n throw new ArchiveExtractionException(\"Could not extract archive: '\" + archive + \"'\", e);\n }\n}", "new_production_code": "@Override\npublic void extract(String archive, String destinationDirectory) throws ArchiveExtractionException {\n final File archiveFile = new File(archive);\n try (FileInputStream fis = new FileInputStream(archiveFile)) {\n if (\"msi\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n String command = \"msiexec /a \" + archiveFile.getAbsolutePath() + \" /qn TARGETDIR=\\\"\" + destinationDirectory + \"\\\"\";\n Process child = Runtime.getRuntime().exec(command);\n try {\n int result = child.waitFor();\n if (result != 0) {\n throw new ArchiveExtractionException(\"Could not extract \" + archiveFile.getAbsolutePath() + \"; return code \" + result);\n }\n } catch (InterruptedException e) {\n throw new ArchiveExtractionException(\"Unexpected interruption of while waiting for extraction process\", e);\n }\n } else if (\"zip\".equals(FileUtils.getExtension(archiveFile.getAbsolutePath()))) {\n ZipFile zipFile = new ZipFile(archiveFile);\n try {\n Enumeration entries = zipFile.entries();\n while (entries.hasMoreElements()) {\n ZipEntry entry = entries.nextElement();\n final File destPath = new File(destinationDirectory + File.separator + entry.getName());\n prepDestination(destPath, entry.isDirectory());\n if (!entry.isDirectory()) {\n InputStream in = null;\n OutputStream out = null;\n try {\n in = zipFile.getInputStream(entry);\n out = new FileOutputStream(destPath);\n IOUtils.copy(in, out);\n } finally {\n IOUtils.closeQuietly(in);\n IOUtils.closeQuietly(out);\n }\n }\n }\n } finally {\n zipFile.close();\n }\n } else {\n TarArchiveInputStream tarIn = null;\n try {\n tarIn = new TarArchiveInputStream(new GzipCompressorInputStream(fis));\n TarArchiveEntry tarEntry = tarIn.getNextTarEntry();\n String canonicalDestinationDirectory = new File(destinationDirectory).getCanonicalPath();\n while (tarEntry != null) {\n final File destPath = new File(destinationDirectory + File.separator + tarEntry.getName());\n prepDestination(destPath, tarEntry.isDirectory());\n if (!startsWithPath(destPath.getCanonicalPath(), canonicalDestinationDirectory)) {\n throw new IOException(\"Expanding \" + tarEntry.getName() + \" would create file outside of \" + canonicalDestinationDirectory);\n }\n if (!tarEntry.isDirectory()) {\n destPath.createNewFile();\n boolean isExecutable = (tarEntry.getMode() & 0100) > 0;\n destPath.setExecutable(isExecutable);\n OutputStream out = null;\n try {\n out = new FileOutputStream(destPath);\n IOUtils.copy(tarIn, out);\n } finally {\n IOUtils.closeQuietly(out);\n }\n }\n tarEntry = tarIn.getNextTarEntry();\n }\n } finally {\n IOUtils.closeQuietly(tarIn);\n }\n }\n } catch (IOException e) {\n throw new ArchiveExtractionException(\"Could not extract archive: '\" + archive + \"'\", e);\n }\n}", "focal_file_path": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "focal_method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "file_path_old": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "line_nums_old": "56-143", "file_path_new": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "line_nums_new": "56-143", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3090909090909091, "branch_coverage_gold": 1.7766, "method_coverage_gold": 2.9268, "line_coverage_gold": 2.6471, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/eirslett/maven/plugins/frontend/lib/DefaultArchiveExtractor.extract:(Ljava/lang/String;Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "file_path_new": "frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/ArchiveExtractor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "frontend-plugins-2.0.0", "java_version": 8} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__04ca891_6531d6a__StringCodecTest_bb4f32d4", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "04ca89178a10ca0ca6fb0c8cc9736b6d04d843be", "rev2": "6531d6a6cc4f78e2d55678f397547055d5d00839", "rev1_date": "2024-04-07T00:12:38Z", "rev2_date": "2024-04-07T09:29:30Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/04ca89178a10ca0ca6fb0c8cc9736b6d04d843be...6531d6a6cc4f78e2d55678f397547055d5d00839", "test_file": "src/test/java/com/github/f4b6a3/uuid/codec/StringCodecTest.java", "test_changes": [{"change_id": "1205_f4b6a3_uuid-creator-uuid-creator-6.1.1_04ca891_6531d6a_StringCodecTest", "test_sign": "com/github/f4b6a3/uuid/codec/StringCodecTest.testModifyString:()V", "class": "StringCodecTest", "method": "testModifyString", "module": "", "junit_selector": "com.github.f4b6a3.uuid.codec.StringCodecTest#testModifyString", "old_test_code": null, "new_test_code": "@Test\npublic void testModifyString() {\n {\n String string = UUID.randomUUID().toString();\n assertEquals(string, StringCodec.modifyString(string));\n }\n {\n String string = UUID.randomUUID().toString();\n assertEquals(string, StringCodec.modifyString(URN_PREFIX + string));\n }\n {\n String string = UUID.randomUUID().toString();\n assertEquals(string, StringCodec.modifyString(\"{\" + string + \"}\"));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["229-249"], "old_production_code": "", "new_production_code": "protected static String modifyString(String string) {\n if (string.length() == URN_PREFIX_UUID_LENGTH && string.startsWith(URN_PREFIX)) {\n return string.substring(URN_PREFIX.length());\n }\n if (string.length() == CURLY_BRACES_UUID_LENGTH && string.startsWith(\"{\") && string.endsWith(\"}\")) {\n return string.substring(1, string.length() - 1);\n }\n return string;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/codec/StringCodec.java", "focal_method_sign": "com/github/f4b6a3/uuid/codec/StringCodec.modifyString:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/codec/StringCodec.modifyString:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/codec/StringCodec.java", "line_nums_new": "230-245", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.8276, "method_coverage_gold": 3.9574, "line_coverage_gold": 4.0984, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/codec/StringCodec.modifyString:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/codec/StringCodec.modifyString:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/codec/StringCodec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__09cfdc4_5927390__UuidBuilderTest_f22692ff", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "09cfdc4acdbac3d10acbfc0a696ce5c4ba342b41", "rev2": "5927390ff273e78d62b6c726e4263ccb5eb8df7a", "rev1_date": "2024-04-06T19:51:21Z", "rev2_date": "2024-04-06T23:00:17Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/09cfdc4acdbac3d10acbfc0a696ce5c4ba342b41...5927390ff273e78d62b6c726e4263ccb5eb8df7a", "test_file": "src/test/java/com/github/f4b6a3/uuid/util/UuidBuilderTest.java", "test_changes": [{"change_id": "1110_f4b6a3_uuid-creator-uuid-creator-6.1.1_09cfdc4_5927390_UuidBuilderTest", "test_sign": "com/github/f4b6a3/uuid/util/UuidBuilderTest.testBufferOverflowException:()V", "class": "UuidBuilderTest", "method": "testBufferOverflowException", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.UuidBuilderTest#testBufferOverflowException", "old_test_code": null, "new_test_code": "@Test\npublic void testBufferOverflowException() {\n try {\n new UuidBuilder().put((byte) 0).put((long) 0).put((long) 0).build();\n fail(\"Should throw buffer overflow exception\");\n } catch (BufferOverflowException e) {\n }\n try {\n new UuidBuilder().put((byte) 0).put((long) 0).put((int) 0).put((short) 0L).put((short) 0L).build();\n fail(\"Should throw buffer overflow exception\");\n } catch (BufferOverflowException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["184-200"], "old_production_code": "", "new_production_code": "public synchronized UuidBuilder put(byte value) {\n buffer.put(value);\n return this;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "focal_method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(B)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(B)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "123-126", "dependency_updated": "inserted", "score": 0.4398, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 1.0, "tfidf": 0.5081}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "95-98", "dependency_updated": "inserted", "score": 0.3921, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 1.0, "tfidf": 0.3056}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "109-112", "dependency_updated": "inserted", "score": 0.3921, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 1.0, "tfidf": 0.3056}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.3921, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 1.0, "tfidf": 0.3056}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.768, "line_coverage_gold": 0.5025, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af95b5e37342ed9a891514939baedd461e37c8e0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.put:(B)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(B)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1111_f4b6a3_uuid-creator-uuid-creator-6.1.1_09cfdc4_5927390_UuidBuilderTest", "test_sign": "com/github/f4b6a3/uuid/util/UuidBuilderTest.testBufferUnderflowException:()V", "class": "UuidBuilderTest", "method": "testBufferUnderflowException", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.UuidBuilderTest#testBufferUnderflowException", "old_test_code": null, "new_test_code": "@Test\npublic void testBufferUnderflowException() {\n try {\n new UuidBuilder().build();\n fail(\"Should throw buffer underflow exception\");\n } catch (BufferUnderflowException e) {\n }\n try {\n new UuidBuilder().put((long) 0).put((int) 0).build();\n fail(\"Should throw buffer underflow exception\");\n } catch (BufferUnderflowException e) {\n }\n try {\n new UuidBuilder().put((long) 0).put((int) 0).put((short) 0L).build();\n fail(\"Should throw buffer underflow exception\");\n } catch (BufferUnderflowException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["159-182"], "old_production_code": "", "new_production_code": "public synchronized UuidBuilder put(short value) {\n buffer.putShort(value);\n return this;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "focal_method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "109-112", "dependency_updated": "inserted", "score": 0.3899, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0833, "class": 1.0, "tfidf": 0.2986}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "95-98", "dependency_updated": "inserted", "score": 0.3899, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0833, "class": 1.0, "tfidf": 0.2986}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.3899, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0833, "class": 1.0, "tfidf": 0.2986}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "155-171", "dependency_updated": "inserted", "score": 0.3299, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.125, "class": 1.0, "tfidf": 0.0644}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.1435, "method_coverage_gold": 0.768, "line_coverage_gold": 0.5025, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af95b5e37342ed9a891514939baedd461e37c8e0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(S)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(I)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1112_f4b6a3_uuid-creator-uuid-creator-6.1.1_09cfdc4_5927390_UuidBuilderTest", "test_sign": "com/github/f4b6a3/uuid/util/UuidBuilderTest.testVersionNumber:()V", "class": "UuidBuilderTest", "method": "testVersionNumber", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.UuidBuilderTest#testVersionNumber", "old_test_code": null, "new_test_code": "@Test\npublic void testVersionNumber() {\n assertEquals(0x0L, new UuidBuilder().put((long) 0L).put((long) 0L).build().version());\n assertEquals(0xfL, new UuidBuilder().put((long) -1L).put((long) -1L).build().version());\n for (int i = 0; i < 15; i++) {\n Random random = new Random(seeder.nextLong());\n assertEquals(i, new UuidBuilder(i).put(random.nextLong()).put(random.nextLong()).build().version());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-30"], "old_production_code": "", "new_production_code": "public synchronized UuidBuilder put(long value) {\n buffer.putLong(value);\n return this;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "focal_method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.3007, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 1.0, "tfidf": 0.174}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "155-171", "dependency_updated": "inserted", "score": 0.248, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0769, "class": 1.0, "tfidf": 0.0502}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.7174, "method_coverage_gold": 0.768, "line_coverage_gold": 0.8794, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af95b5e37342ed9a891514939baedd461e37c8e0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1113_f4b6a3_uuid-creator-uuid-creator-6.1.1_09cfdc4_5927390_UuidBuilderTest", "test_sign": "com/github/f4b6a3/uuid/util/UuidBuilderTest.testPutTwoLongsWithoutVersionNumber:()V", "class": "UuidBuilderTest", "method": "testPutTwoLongsWithoutVersionNumber", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.UuidBuilderTest#testPutTwoLongsWithoutVersionNumber", "old_test_code": null, "new_test_code": "@Test\npublic void testPutTwoLongsWithoutVersionNumber() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n Random random = new Random(seeder.nextLong());\n long msb = random.nextLong();\n long lsb = random.nextLong();\n UUID expected = new UUID(msb, lsb);\n UUID actual = new UuidBuilder().put(msb).put(lsb).build();\n assertEquals(expected, actual);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-46"], "old_production_code": "", "new_production_code": "public synchronized UuidBuilder put(long value) {\n buffer.putLong(value);\n return this;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "focal_method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.396, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0968, "class": 1.0, "tfidf": 0.0651}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "line_nums_new": "155-171", "dependency_updated": "inserted", "score": 0.3272, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0645, "class": 1.0, "tfidf": 0.2455}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 0.2869, "method_coverage_gold": 0.6144, "line_coverage_gold": 0.5863, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af95b5e37342ed9a891514939baedd461e37c8e0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.build:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidBuilder.put:(J)Lcom/github/f4b6a3/uuid/util/UuidBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__226830b_ece6a06__ClockSeqPoolTest_d1e17d98", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "226830b1582ea6279e3c13587b717015cf345dcc", "rev2": "ece6a06af822c85e42d4d6e18243e08c54a00b09", "rev1_date": "2024-06-09T02:29:59Z", "rev2_date": "2024-06-09T03:57:02Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/226830b1582ea6279e3c13587b717015cf345dcc...ece6a06af822c85e42d4d6e18243e08c54a00b09", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/function/impl/ClockSeqPoolTest.java", "test_changes": [{"change_id": "1130_f4b6a3_uuid-creator-uuid-creator-6.1.1_226830b_ece6a06_ClockSeqPoolTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/ClockSeqPoolTest.testClockSequencePool4:()V", "class": "ClockSeqPoolTest", "method": "testClockSequencePool4", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.ClockSeqPoolTest#testClockSequencePool4", "old_test_code": null, "new_test_code": "@Test\npublic void testClockSequencePool4() {\n ClockSeqPool pool = new ClockSeqPool();\n for (int i = 0; i < CLOCK_SEQUENCE_MAX; i++) {\n pool.take(i);\n }\n assertEquals(\"All values from the poll should be used\", CLOCK_SEQUENCE_MAX, pool.countUsed());\n pool.take(0);\n assertEquals(\"The pool should be reset and only one value should be used in the end\", 1, pool.countUsed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-97"], "old_production_code": "", "new_production_code": "public synchronized int countUsed() {\n int counter = 0;\n for (int i = 0; i < POOL_SIZE; i++) {\n if (this.isUsed(i)) {\n counter++;\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "203-211", "dependency_updated": "inserted", "score": 0.1417, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.2222, "class": 0.0, "tfidf": 0.0301}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "115-126", "dependency_updated": "inserted", "score": 0.1319, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1111, "class": 0.0, "tfidf": 0.1076}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5921, "method_coverage_gold": 0.9245, "line_coverage_gold": 1.4318, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1131_f4b6a3_uuid-creator-uuid-creator-6.1.1_226830b_ece6a06_ClockSeqPoolTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/ClockSeqPoolTest.testClockSequencePool2:()V", "class": "ClockSeqPoolTest", "method": "testClockSequencePool2", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.ClockSeqPoolTest#testClockSequencePool2", "old_test_code": null, "new_test_code": "@Test\npublic void testClockSequencePool2() {\n ClockSeqPool pool = new ClockSeqPool();\n HashSet set = new HashSet<>();\n for (int i = 0; i < TEST_ARRAY.length; i++) {\n assertTrue(\"There are duplicate values: \" + i, set.add(pool.take(TEST_ARRAY[i])));\n assertTrue(\"Value not used\", pool.isUsed(TEST_ARRAY[i]));\n }\n assertEquals(\"The collection size should be equal to the test array size\", TEST_ARRAY.length, set.size());\n assertEquals(\"All values from the test array should be used\", TEST_ARRAY.length, pool.countUsed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-62"], "old_production_code": "", "new_production_code": "public synchronized int countUsed() {\n int counter = 0;\n for (int i = 0; i < POOL_SIZE; i++) {\n if (this.isUsed(i)) {\n counter++;\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "203-211", "dependency_updated": "inserted", "score": 0.1408, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.2222, "class": 0.0, "tfidf": 0.0261}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "177-186", "dependency_updated": "inserted", "score": 0.1333, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.075}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "115-126", "dependency_updated": "inserted", "score": 0.123, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1111, "class": 0.0, "tfidf": 0.0698}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 1.7735, "method_coverage_gold": 0.7704, "line_coverage_gold": 1.0738, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1132_f4b6a3_uuid-creator-uuid-creator-6.1.1_226830b_ece6a06_ClockSeqPoolTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/ClockSeqPoolTest.testClockSequencePool3:()V", "class": "ClockSeqPoolTest", "method": "testClockSequencePool3", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.ClockSeqPoolTest#testClockSequencePool3", "old_test_code": null, "new_test_code": "@Test\npublic void testClockSequencePool3() {\n ClockSeqPool pool = new ClockSeqPool();\n int take = -1;\n for (int i = 0; i < TEST_ARRAY.length; i++) {\n take = TEST_ARRAY[i];\n assertEquals(take, pool.take(take));\n assertTrue(\"The value should be used\", pool.isUsed(take));\n }\n assertEquals(TEST_ARRAY.length, pool.countUsed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-79"], "old_production_code": "", "new_production_code": "public synchronized int take(final int take) {\n int value = take;\n for (int i = 0; i < POOL_SIZE; i++) {\n if (setBit(value)) {\n return value;\n }\n value = ++value % POOL_SIZE;\n }\n clearPool();\n setBit(value);\n return value;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "115-126", "dependency_updated": "inserted", "score": 0.1663, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1111, "class": 0.0, "tfidf": 0.254}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "203-211", "dependency_updated": "inserted", "score": 0.1426, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.2222, "class": 0.0, "tfidf": 0.0337}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "177-186", "dependency_updated": "inserted", "score": 0.139, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.099}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 1.7735, "method_coverage_gold": 0.7704, "line_coverage_gold": 1.0738, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1133_f4b6a3_uuid-creator-uuid-creator-6.1.1_226830b_ece6a06_ClockSeqPoolTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/ClockSeqPoolTest.testClockSequencePool1:()V", "class": "ClockSeqPoolTest", "method": "testClockSequencePool1", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.ClockSeqPoolTest#testClockSequencePool1", "old_test_code": null, "new_test_code": "@Test\npublic void testClockSequencePool1() {\n ClockSeqPool pool = new ClockSeqPool();\n HashSet set = new HashSet<>();\n for (int i = 0; i < CLOCK_SEQUENCE_MAX; i++) {\n assertTrue(\"There are duplicate values\", set.add(pool.take(i)));\n assertTrue(\"Value not used\", pool.isUsed(i));\n }\n assertEquals(\"The collection size should be equal to the pool size\", CLOCK_SEQUENCE_MAX, set.size());\n assertEquals(\"All values from the poll should be used\", CLOCK_SEQUENCE_MAX, pool.countUsed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-46"], "old_production_code": "", "new_production_code": "public synchronized int countUsed() {\n int counter = 0;\n for (int i = 0; i < POOL_SIZE; i++) {\n if (this.isUsed(i)) {\n counter++;\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "203-211", "dependency_updated": "inserted", "score": 0.1415, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.2222, "class": 0.0, "tfidf": 0.0291}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "177-186", "dependency_updated": "inserted", "score": 0.1385, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.097}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "line_nums_new": "115-126", "dependency_updated": "inserted", "score": 0.1249, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1111, "class": 0.0, "tfidf": 0.0779}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 1.3643, "method_coverage_gold": 0.7704, "line_coverage_gold": 1.0738, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.isUsed:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.take:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction$ClockSeqPool.countUsed:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/DefaultClockSeqFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__6dc5db6_3f4ea18__WindowsTimeFunctionTest_3da5769c", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "6dc5db6334acb57ba3d0dc64296af66845a13dd1", "rev2": "3f4ea1891717105306726f29de7faf15a0848c54", "rev1_date": "2021-11-27T23:01:56Z", "rev2_date": "2021-11-27T23:28:11Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/6dc5db6334acb57ba3d0dc64296af66845a13dd1...3f4ea1891717105306726f29de7faf15a0848c54", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunctionTest.java", "test_changes": [{"change_id": "1201_f4b6a3_uuid-creator-uuid-creator-6.1.1_6dc5db6_3f4ea18_WindowsTimeFunctionTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunctionTest.testGetTimestampMonotonicity:()V", "class": "WindowsTimeFunctionTest", "method": "testGetTimestampMonotonicity", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.WindowsTimeFunctionTest#testGetTimestampMonotonicity", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimestampMonotonicity() {\n long lastTs = 0;\n WindowsTimeFunction supplier = new WindowsTimeFunction();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long ts = supplier.getAsLong();\n assertTrue(\"The current timstamp should be greater than the last one\", ts > lastTs);\n lastTs = ts;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-46"], "old_production_code": "", "new_production_code": "@Override\npublic long getAsLong() {\n counter++;\n final long time = calculatedTimeMillis();\n if (time == prevTime) {\n if (counter >= counterMax) {\n while (time == calculatedTimeMillis()) {\n }\n }\n } else {\n counter = counter % TICKS_PER_GRANULARITY;\n counterMax = counter + TICKS_PER_GRANULARITY;\n }\n prevTime = time;\n return (time * TICKS_PER_MILLI) + counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "line_nums_new": "57-88", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.0, "method_coverage_gold": 2.4336, "line_coverage_gold": 1.8776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1202_f4b6a3_uuid-creator-uuid-creator-6.1.1_6dc5db6_3f4ea18_WindowsTimeFunctionTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunctionTest.testGetTimestampTicks:()V", "class": "WindowsTimeFunctionTest", "method": "testGetTimestampTicks", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.WindowsTimeFunctionTest#testGetTimestampTicks", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimestampTicks() {\n WindowsTimeFunction supplier = new WindowsTimeFunction();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long m1 = System.currentTimeMillis() * 10000L;\n long ts = supplier.getAsLong();\n long m2 = System.currentTimeMillis() * 10000L + 600000L;\n assertTrue(\"The current timstamp millisecond is incorrect\", ts >= m1 && ts <= m2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-22"], "old_production_code": "", "new_production_code": "@Override\npublic long getAsLong() {\n counter++;\n final long time = calculatedTimeMillis();\n if (time == prevTime) {\n if (counter >= counterMax) {\n while (time == calculatedTimeMillis()) {\n }\n }\n } else {\n counter = counter % TICKS_PER_GRANULARITY;\n counterMax = counter + TICKS_PER_GRANULARITY;\n }\n prevTime = time;\n return (time * TICKS_PER_MILLI) + counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "line_nums_new": "57-88", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.4, "method_coverage_gold": 2.4336, "line_coverage_gold": 1.8171, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1203_f4b6a3_uuid-creator-uuid-creator-6.1.1_6dc5db6_3f4ea18_WindowsTimeFunctionTest", "test_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunctionTest.testGetTimestampMillisecond:()V", "class": "WindowsTimeFunctionTest", "method": "testGetTimestampMillisecond", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.function.impl.WindowsTimeFunctionTest#testGetTimestampMillisecond", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimestampMillisecond() {\n WindowsTimeFunction supplier = new WindowsTimeFunction();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long m1 = System.currentTimeMillis();\n long ts = supplier.getAsLong() / 10000L;\n long m2 = System.currentTimeMillis() + 60;\n assertTrue(\"The current timstamp millisecond is incorrect\", ts >= m1 && ts <= m2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-35"], "old_production_code": "", "new_production_code": "@Override\npublic long getAsLong() {\n counter++;\n final long time = calculatedTimeMillis();\n if (time == prevTime) {\n if (counter >= counterMax) {\n while (time == calculatedTimeMillis()) {\n }\n }\n } else {\n counter = counter % TICKS_PER_GRANULARITY;\n counterMax = counter + TICKS_PER_GRANULARITY;\n }\n prevTime = time;\n return (time * TICKS_PER_MILLI) + counter;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "line_nums_new": "57-88", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.4, "method_coverage_gold": 2.4336, "line_coverage_gold": 1.8171, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.getAsLong:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/function/impl/WindowsTimeFunction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__85d7870_421c3c4__GUIDTest_3a6025a3", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "85d7870f2840ca5e27830930c421ec1f8ed80829", "rev2": "421c3c448d1f9d2dd518d17d8c158f6483f88d1b", "rev1_date": "2023-04-30T12:35:12Z", "rev2_date": "2023-04-30T20:20:06Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/85d7870f2840ca5e27830930c421ec1f8ed80829...421c3c448d1f9d2dd518d17d8c158f6483f88d1b", "test_file": "src/test/java/com/github/f4b6a3/uuid/alt/GUIDTest.java", "test_changes": [{"change_id": "1181_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testConstructorJdkUUID:()V", "class": "GUIDTest", "method": "testConstructorJdkUUID", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testConstructorJdkUUID", "old_test_code": null, "new_test_code": "@Test\npublic void testConstructorJdkUUID() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n GUID guid = new GUID(new UUID(msb, lsb));\n assertEquals(msb, guid.getMostSignificantBits());\n assertEquals(lsb, guid.getLeastSignificantBits());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-58"], "old_production_code": "", "new_production_code": "public long getMostSignificantBits() {\n return this.msb;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "391-393", "dependency_updated": "inserted", "score": 0.3128, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.1364, "class": 1.0, "tfidf": 0.2292}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "400-402", "dependency_updated": "inserted", "score": 0.302, "signal_scores": {"nc": 0.0, "lcs_u": 0.2174, "ed": 0.1304, "class": 1.0, "tfidf": 0.2292}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8143, "line_coverage_gold": 0.8333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1182_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV8:()V", "class": "GUIDTest", "method": "testV8", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV8", "old_test_code": null, "new_test_code": "@Test\npublic void testV8() {\n GUID prev = GUID.v8(GUID.NIL, \"\");\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n GUID namespace = new GUID(UUID.randomUUID());\n String name = UUID.randomUUID().toString();\n GUID uuid = GUID.v8(namespace, name);\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertEquals(8, uuid.version());\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertNotEquals(GUID.v8(null, name), GUID.v8(namespace, name));\n assertNotEquals(GUID.v8(GUID.NIL, name), GUID.v8(namespace, name));\n assertNotEquals(GUID.v8(namespace, name), GUID.v3(namespace, name));\n assertNotEquals(GUID.v8(namespace, name), GUID.v5(namespace, name));\n assertEquals(GUID.v8(null, name), GUID.v8(null, name));\n assertEquals(GUID.v8(GUID.NIL, name), GUID.v8(GUID.NIL, name));\n assertEquals(GUID.v8(namespace, name), GUID.v8(namespace, name));\n prev = uuid;\n }\n {\n GUID guid = GUID.v8(GUID.NAMESPACE_DNS, \"www.example.com\");\n assertEquals(\"401835fd-a627-870a-873f-ed73f2bc5b2c\", guid.toString());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["249-276"], "old_production_code": "", "new_production_code": "public static GUID v8(GUID namespace, String name) {\n return hash(8, \"SHA-256\", HASHSPACE_SHA2_256, namespace, name);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "365-367", "dependency_updated": "inserted", "score": 0.9115, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.6237}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "267-269", "dependency_updated": "inserted", "score": 0.4962, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5837}}, {"dep_id": 5, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "308-310", "dependency_updated": "inserted", "score": 0.4962, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5837}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2403, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0139}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2374, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2089}}, {"dep_id": 4, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": 0.1949, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0283}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.3139, "method_coverage_gold": 2.443, "line_coverage_gold": 2.4537, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1183_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testHashCode:()V", "class": "GUIDTest", "method": "testHashCode", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testHashCode", "old_test_code": null, "new_test_code": "@Test\npublic void testHashCode() {\n Random random = new Random();\n byte[] bytes = new byte[GUID.GUID_BYTES];\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n random.nextBytes(bytes);\n GUID guid1 = new GUID(bytes);\n assertEquals(guid1.hashCode(), guid1.hashCode());\n }\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n random.nextBytes(bytes);\n GUID guid1 = new GUID(bytes);\n GUID guid2 = new GUID(bytes);\n assertEquals(guid1.hashCode(), guid2.hashCode());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["315-335"], "old_production_code": "", "new_production_code": "@Override\npublic int hashCode() {\n final long bits = msb ^ lsb;\n return (int) (bits ^ (bits >>> 32));\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.hashCode:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.hashCode:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "416-420", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.292, "method_coverage_gold": 0.6515, "line_coverage_gold": 0.9259, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.hashCode:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1184_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testConstructorString:()V", "class": "GUIDTest", "method": "testConstructorString", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testConstructorString", "old_test_code": null, "new_test_code": "@Test\npublic void testConstructorString() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n UUID uuid = new UUID(msb, lsb);\n String str = uuid.toString();\n GUID guid = new GUID(str);\n assertEquals(msb, guid.getMostSignificantBits());\n assertEquals(lsb, guid.getLeastSignificantBits());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-72"], "old_production_code": "", "new_production_code": "public long getMostSignificantBits() {\n return this.msb;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "391-393", "dependency_updated": "inserted", "score": 0.3141, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.1818, "class": 1.0, "tfidf": 0.2032}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "400-402", "dependency_updated": "inserted", "score": 0.3031, "signal_scores": {"nc": 0.0, "lcs_u": 0.2174, "ed": 0.1739, "class": 1.0, "tfidf": 0.2032}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.438, "method_coverage_gold": 0.9772, "line_coverage_gold": 0.9722, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1185_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testConstructorGUID:()V", "class": "GUIDTest", "method": "testConstructorGUID", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testConstructorGUID", "old_test_code": null, "new_test_code": "@Test\npublic void testConstructorGUID() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n GUID guid = new GUID(new GUID(msb, lsb));\n assertEquals(msb, guid.getMostSignificantBits());\n assertEquals(lsb, guid.getLeastSignificantBits());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-34"], "old_production_code": "", "new_production_code": "public long getMostSignificantBits() {\n return this.msb;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "391-393", "dependency_updated": "inserted", "score": 0.3096, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.1364, "class": 1.0, "tfidf": 0.2157}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "400-402", "dependency_updated": "inserted", "score": 0.2988, "signal_scores": {"nc": 0.0, "lcs_u": 0.2174, "ed": 0.1304, "class": 1.0, "tfidf": 0.2157}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8143, "line_coverage_gold": 0.8333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1186_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV7:()V", "class": "GUIDTest", "method": "testV7", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV7", "old_test_code": null, "new_test_code": "@Test\npublic void testV7() {\n GUID prev = GUID.v7();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long t0 = System.currentTimeMillis();\n GUID uuid = GUID.v7();\n long t1 = uuid.getMostSignificantBits() >>> 16;\n long t2 = System.currentTimeMillis();\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertEquals(7, uuid.version());\n assertTrue(t0 <= t1 && t1 <= t2);\n prev = uuid;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["231-247"], "old_production_code": "", "new_production_code": "public static GUID v7() {\n final long time = System.currentTimeMillis();\n ThreadLocalRandom random = ThreadLocalRandom.current();\n final long msb = (time << 16) | (random.nextLong() & MASK_16);\n final long lsb = random.nextLong();\n return version(msb, lsb, 7);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v7:()Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v7:()Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "344-350", "dependency_updated": "inserted", "score": 0.7895, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1052}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2479, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0464}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.216, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.118}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "391-393", "dependency_updated": "inserted", "score": 0.196, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0329}}], "coverage_gold": 0.7058823529411765, "branch_coverage_gold": 0.438, "method_coverage_gold": 1.4658, "line_coverage_gold": 1.3426, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.v7:()Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "com/github/f4b6a3/uuid/alt/GUID.version:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v7:()Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1187_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testToString:()V", "class": "GUIDTest", "method": "testToString", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testToString", "old_test_code": null, "new_test_code": "@Test\npublic void testToString() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n UUID uuid = UUID.randomUUID();\n GUID guid = new GUID(uuid);\n assertEquals(uuid.toString(), guid.toString());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["290-297"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return get().toString();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9772, "line_coverage_gold": 0.8796, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1188_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testConstructorLongs:()V", "class": "GUIDTest", "method": "testConstructorLongs", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testConstructorLongs", "old_test_code": null, "new_test_code": "@Test\npublic void testConstructorLongs() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n GUID guid = new GUID(msb, lsb);\n assertEquals(msb, guid.getMostSignificantBits());\n assertEquals(lsb, guid.getLeastSignificantBits());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-46"], "old_production_code": "", "new_production_code": "public long getMostSignificantBits() {\n return this.msb;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "391-393", "dependency_updated": "inserted", "score": 0.3206, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.1818, "class": 1.0, "tfidf": 0.2307}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "400-402", "dependency_updated": "inserted", "score": 0.3095, "signal_scores": {"nc": 0.0, "lcs_u": 0.2174, "ed": 0.1739, "class": 1.0, "tfidf": 0.2307}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6515, "line_coverage_gold": 0.6481, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getMostSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.getLeastSignificantBits:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1189_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV6:()V", "class": "GUIDTest", "method": "testV6", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV6", "old_test_code": null, "new_test_code": "@Test\npublic void testV6() {\n GUID prev = GUID.v6();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long t0 = System.currentTimeMillis();\n GUID uuid = GUID.v6();\n GUID temp = new GUID(TimeOrderedCodec.INSTANCE.decode(uuid.get()));\n long t1 = UuidTime.toUnixTimestamp(temp.get().timestamp()) / 10_000L;\n long t2 = System.currentTimeMillis();\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertEquals(6, uuid.version());\n assertTrue(t0 <= t1 && t1 <= t2);\n prev = uuid;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["212-229"], "old_production_code": "", "new_production_code": "public static GUID v6() {\n final long time = gregorian();\n final long msb = ((time & ~MASK_12) << 4) | (time & MASK_12);\n final long lsb = ThreadLocalRandom.current().nextLong() | MULTICAST;\n return version(msb, lsb, 6);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v6:()Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v6:()Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "326-331", "dependency_updated": "inserted", "score": 0.7842, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0827}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2584, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0908}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "207-209", "dependency_updated": "inserted", "score": 0.2535, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2775}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2221, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.144}}], "coverage_gold": 0.75, "branch_coverage_gold": 5.4015, "method_coverage_gold": 8.4691, "line_coverage_gold": 7.8704, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/codec/other/TimeOrderedCodec.decode:(Ljava/util/UUID;)Ljava/util/UUID", "com/github/f4b6a3/uuid/alt/GUID.v6:()Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/util/UuidTime.toUnixTimestamp:(J)J", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v6:()Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1190_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV2:()V", "class": "GUIDTest", "method": "testV2", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV2", "old_test_code": null, "new_test_code": "@Test\npublic void testV2() {\n GUID prev = GUID.v2((byte) 0, (int) 0);\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n byte ld = (byte) i;\n int li = (int) i * 31;\n GUID uuid = GUID.v2(ld, li);\n byte localDomain = UuidUtil.getLocalDomain(uuid.get());\n int localIdentifier = UuidUtil.getLocalIdentifier(uuid.get());\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertEquals(2, uuid.version());\n assertEquals(ld, localDomain);\n assertEquals(li, localIdentifier);\n prev = uuid;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["119-137"], "old_production_code": "", "new_production_code": "public static GUID v2(byte localDomain, int localIdentifier) {\n GUID uuid = v1();\n final long hi = uuid.getMostSignificantBits();\n final long lo = uuid.getLeastSignificantBits();\n final long msb = (hi & MASK_32) | ((localIdentifier & MASK_32) << 32);\n final long lsb = (lo & 0x3f00_ffff_ffff_ffffL) | ((localDomain & MASK_08) << 48);\n return version(msb, lsb, 2);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v2:(BI)Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v2:(BI)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "245-252", "dependency_updated": "inserted", "score": 0.8495, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3602}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "207-209", "dependency_updated": "inserted", "score": 0.2636, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.3205}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2588, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0925}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2131, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1058}}], "coverage_gold": 0.7083333333333334, "branch_coverage_gold": 1.1679, "method_coverage_gold": 3.9088, "line_coverage_gold": 3.4259, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.getLocalDomain:(Ljava/util/UUID;)B", "com/github/f4b6a3/uuid/alt/GUID.v2:(BI)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "com/github/f4b6a3/uuid/util/UuidUtil.getLocalIdentifier:(Ljava/util/UUID;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v2:(BI)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1191_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV5:()V", "class": "GUIDTest", "method": "testV5", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV5", "old_test_code": null, "new_test_code": "@Test\npublic void testV5() {\n GUID prev = GUID.v5(GUID.NIL, \"\");\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n GUID namespace = new GUID(UUID.randomUUID());\n String name = UUID.randomUUID().toString();\n GUID uuid = GUID.v5(namespace, name);\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertEquals(5, uuid.version());\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertNotEquals(GUID.v5(null, name), GUID.v5(namespace, name));\n assertNotEquals(GUID.v5(GUID.NIL, name), GUID.v5(namespace, name));\n assertNotEquals(GUID.v5(namespace, name), GUID.v3(namespace, name));\n assertNotEquals(GUID.v5(namespace, name), GUID.v8(namespace, name));\n assertEquals(GUID.v5(null, name), GUID.v5(null, name));\n assertEquals(GUID.v5(GUID.NIL, name), GUID.v5(GUID.NIL, name));\n assertEquals(GUID.v5(namespace, name), GUID.v5(namespace, name));\n prev = uuid;\n }\n {\n GUID guid = GUID.v5(GUID.NAMESPACE_DNS, \"www.example.com\");\n assertEquals(\"2ed6657d-e927-568b-95e1-2665a8aea6a2\", guid.toString());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["183-210"], "old_production_code": "", "new_production_code": "public static GUID v5(GUID namespace, String name) {\n return hash(5, \"SHA-1\", null, namespace, name);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "308-310", "dependency_updated": "inserted", "score": 0.9265, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.6875}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "267-269", "dependency_updated": "inserted", "score": 0.4962, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5837}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "365-367", "dependency_updated": "inserted", "score": 0.4831, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5282}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2403, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0139}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2374, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2089}}, {"dep_id": 4, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": 0.1949, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0283}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.3139, "method_coverage_gold": 2.443, "line_coverage_gold": 2.4537, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1192_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testToUUID:()V", "class": "GUIDTest", "method": "testToUUID", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testToUUID", "old_test_code": null, "new_test_code": "@Test\npublic void testToUUID() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n UUID uuid = (new GUID(msb, lsb)).get();\n assertEquals(msb, uuid.getMostSignificantBits());\n assertEquals(lsb, uuid.getLeastSignificantBits());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["278-288"], "old_production_code": "", "new_production_code": "public UUID get() {\n return toUUID();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "207-209", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6515, "line_coverage_gold": 0.6481, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1193_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV3:()V", "class": "GUIDTest", "method": "testV3", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV3", "old_test_code": null, "new_test_code": "@Test\npublic void testV3() {\n GUID prev = GUID.v3(GUID.NIL, \"\");\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n GUID namespace = new GUID(UUID.randomUUID());\n String name = UUID.randomUUID().toString();\n GUID uuid = GUID.v3(namespace, name);\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertEquals(3, uuid.version());\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertNotEquals(GUID.v3(null, name), GUID.v3(namespace, name));\n assertNotEquals(GUID.v3(GUID.NIL, name), GUID.v3(namespace, name));\n assertNotEquals(GUID.v3(namespace, name), GUID.v5(namespace, name));\n assertNotEquals(GUID.v3(namespace, name), GUID.v8(namespace, name));\n assertEquals(GUID.v3(null, name), GUID.v3(null, name));\n assertEquals(GUID.v3(GUID.NIL, name), GUID.v3(GUID.NIL, name));\n assertEquals(GUID.v3(namespace, name), GUID.v3(namespace, name));\n assertEquals(UUID.nameUUIDFromBytes(name.getBytes(StandardCharsets.UTF_8)), GUID.v3(null, name).get());\n prev = uuid;\n }\n {\n GUID guid = GUID.v3(GUID.NAMESPACE_DNS, \"www.example.com\");\n assertEquals(\"5df41881-3aed-3515-88a7-2f4a814cf09e\", guid.toString());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["139-167"], "old_production_code": "", "new_production_code": "public static GUID v3(GUID namespace, String name) {\n return hash(3, \"MD5\", null, namespace, name);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "267-269", "dependency_updated": "inserted", "score": 0.9267, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.6885}}, {"dep_id": 6, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "308-310", "dependency_updated": "inserted", "score": 0.4961, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5834}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "365-367", "dependency_updated": "inserted", "score": 0.4821, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.5, "class": 1.0, "tfidf": 0.5238}}, {"dep_id": 4, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.242, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0215}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2364, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2045}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "207-209", "dependency_updated": "inserted", "score": 0.2093, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0896}}, {"dep_id": 5, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": 0.1963, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0341}}], "coverage_gold": 0.8125, "branch_coverage_gold": 1.3139, "method_coverage_gold": 2.443, "line_coverage_gold": 2.4537, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v8:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v3:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v5:(Lcom/github/f4b6a3/uuid/alt/GUID;Ljava/lang/String;)Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1194_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testToBytes:()V", "class": "GUIDTest", "method": "testToBytes", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testToBytes", "old_test_code": null, "new_test_code": "@Test\npublic void testToBytes() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n byte[] bytes1 = new byte[16];\n random.nextBytes(bytes1);\n GUID guid0 = new GUID(bytes1);\n byte[] bytes2 = guid0.toBytes();\n for (int j = 0; j < bytes1.length; j++) {\n assertEquals(bytes1[j], bytes2[j]);\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["299-313"], "old_production_code": "", "new_production_code": "public byte[] toBytes() {\n return ByteBuffer.allocate(GUID_BYTES).putLong(msb).putLong(lsb).array();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "374-376", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.292, "method_coverage_gold": 0.6515, "line_coverage_gold": 0.8796, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1195_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV1:()V", "class": "GUIDTest", "method": "testV1", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV1", "old_test_code": null, "new_test_code": "@Test\npublic void testV1() {\n GUID prev = GUID.v1();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long t0 = System.currentTimeMillis();\n GUID uuid = GUID.v1();\n long t1 = UuidTime.toUnixTimestamp(uuid.get().timestamp()) / 10_000L;\n long t2 = System.currentTimeMillis();\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertEquals(1, uuid.version());\n assertTrue(t0 <= t1 && t1 <= t2);\n prev = uuid;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-117"], "old_production_code": "", "new_production_code": "public static GUID v1() {\n final long time = gregorian();\n final long msb = (time << 32) | ((time >>> 16) & (MASK_16 << 16)) | ((time >>> 48) & MASK_12);\n final long lsb = ThreadLocalRandom.current().nextLong() | MULTICAST;\n return version(msb, lsb, 1);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v1:()Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v1:()Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "225-230", "dependency_updated": "inserted", "score": 0.7793, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0619}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "207-209", "dependency_updated": "inserted", "score": 0.2548, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2829}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2548, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0755}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2157, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1167}}], "coverage_gold": 0.7058823529411765, "branch_coverage_gold": 0.438, "method_coverage_gold": 1.7915, "line_coverage_gold": 1.7593, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.v1:()Lcom/github/f4b6a3/uuid/alt/GUID", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/util/UuidTime.toUnixTimestamp:(J)J", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v1:()Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.get:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1196_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testConstructorBytes:()V", "class": "GUIDTest", "method": "testConstructorBytes", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testConstructorBytes", "old_test_code": null, "new_test_code": "@Test\npublic void testConstructorBytes() {\n Random random = new Random();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n byte[] bytes = new byte[GUID.GUID_BYTES];\n random.nextBytes(bytes);\n GUID guid = new GUID(bytes);\n assertEquals(Arrays.toString(bytes), Arrays.toString(guid.toBytes()));\n }\n try {\n byte[] bytes = null;\n new GUID(bytes);\n fail(\"Should throw an exception\");\n } catch (IllegalArgumentException e) {\n }\n try {\n byte[] bytes = new byte[GUID.GUID_BYTES + 1];\n new GUID(bytes);\n fail(\"Should throw an exception\");\n } catch (IllegalArgumentException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-99"], "old_production_code": "", "new_production_code": "public byte[] toBytes() {\n return ByteBuffer.allocate(GUID_BYTES).putLong(msb).putLong(lsb).array();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "374-376", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.5839, "method_coverage_gold": 0.6515, "line_coverage_gold": 0.9259, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1197_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testV4:()V", "class": "GUIDTest", "method": "testV4", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testV4", "old_test_code": null, "new_test_code": "@Test\npublic void testV4() {\n GUID prev = GUID.v4();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n GUID uuid = GUID.v4();\n assertNotNull(uuid);\n assertNotEquals(prev, uuid);\n assertNotEquals(GUID.NIL, uuid);\n assertNotEquals(GUID.MAX, uuid);\n assertEquals(4, uuid.version());\n prev = uuid;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["169-181"], "old_production_code": "", "new_production_code": "public static GUID v4() {\n ThreadLocalRandom random = ThreadLocalRandom.current();\n final long msb = random.nextLong();\n final long lsb = random.nextLong();\n return version(msb, lsb, 4);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.v4:()Lcom/github/f4b6a3/uuid/alt/GUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.v4:()Lcom/github/f4b6a3/uuid/alt/GUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "288-293", "dependency_updated": "inserted", "score": 0.7857, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0892}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "409-411", "dependency_updated": "inserted", "score": 0.2498, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0544}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.2216, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1417}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.438, "method_coverage_gold": 1.3029, "line_coverage_gold": 1.25, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "com/github/f4b6a3/uuid/alt/GUID.version:()I", "com/github/f4b6a3/uuid/alt/GUID.v4:()Lcom/github/f4b6a3/uuid/alt/GUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.v4:()Lcom/github/f4b6a3/uuid/alt/GUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.version:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1198_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testValid:()V", "class": "GUIDTest", "method": "testValid", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testValid", "old_test_code": null, "new_test_code": "@Test\npublic void testValid() {\n String uuid = null;\n assertFalse(\"Null UUID string should be invalid.\", GUID.valid(uuid));\n uuid = \"\";\n assertFalse(\"UUID with empty string should be invalid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcd-ef0123456789\";\n assertTrue(\"UUID with length equals to 36 should be valid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcdef01-23456789\";\n assertFalse(\"UUID with length equals to 36 with hyphen in wrong position should be invalid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcd-ef01-3456789\";\n assertFalse(\"UUID with length equals to 36 with an extra hyphen should be invalid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcddef0123456789\";\n assertFalse(\"UUID with length equals to 36 with a missing hyphen should be invalid.\", GUID.valid(uuid));\n uuid = \"0123456789ab4defabcdef0123456789\";\n assertFalse(\"UUID without hyphen should be invalid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcd-ef0123456789\";\n assertTrue(\"UUID in lower case should be valid.\", GUID.valid(uuid));\n uuid = \"01234567-89AB-4DEF-ABCD-EF0123456789\";\n assertTrue(\"UUID in upper case should valid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4DEF-abcd-EF0123456789\";\n assertTrue(\"UUID in upper and lower case should valid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-abcd-SOPQRSTUVXYZ\";\n assertFalse(\"UUID string with non hexadecimal chars should be invalid.\", GUID.valid(uuid));\n uuid = \"01234567-89ab-4def-!@#$-ef0123456789\";\n assertFalse(\"UUID string non alphanumeric chars should be invalid.\", GUID.valid(uuid));\n try {\n uuid = null;\n UuidValidator.validate(uuid);\n fail();\n } catch (InvalidUuidException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["440-486"], "old_production_code": "", "new_production_code": "public static boolean valid(String guid) {\n return guid != null && PATTERN.matcher(guid).matches();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.valid:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.valid:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "480-482", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.6715, "method_coverage_gold": 4.3974, "line_coverage_gold": 4.6296, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.valid:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.valid:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1199_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testEquals:()V", "class": "GUIDTest", "method": "testEquals", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testEquals", "old_test_code": null, "new_test_code": "@Test\npublic void testEquals() {\n Random random = new Random();\n byte[] bytes = new byte[GUID.GUID_BYTES];\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n random.nextBytes(bytes);\n GUID guid1 = new GUID(bytes);\n GUID guid2 = new GUID(bytes);\n assertEquals(guid1, guid2);\n assertEquals(guid1.toString(), guid2.toString());\n assertEquals(Arrays.toString(guid1.toBytes()), Arrays.toString(guid2.toBytes()));\n for (int j = 0; j < bytes.length; j++) {\n bytes[j]++;\n }\n GUID guid3 = new GUID(bytes);\n assertNotEquals(guid1, guid3);\n assertNotEquals(guid1.toString(), guid3.toString());\n assertNotEquals(Arrays.toString(guid1.toBytes()), Arrays.toString(guid3.toBytes()));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["337-361"], "old_production_code": "", "new_production_code": "@Override\npublic boolean equals(Object other) {\n if (other == null)\n return false;\n if (other.getClass() != GUID.class)\n return false;\n GUID that = (GUID) other;\n if (lsb != that.lsb)\n return false;\n else if (msb != that.msb)\n return false;\n return true;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "425-437", "dependency_updated": "inserted", "score": 0.7872, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0956}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "374-376", "dependency_updated": "inserted", "score": 0.2729, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.0457}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": 0.2608, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 1.0, "tfidf": 0.2146}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.0219, "method_coverage_gold": 1.3029, "line_coverage_gold": 1.3426, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toBytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1200_f4b6a3_uuid-creator-uuid-creator-6.1.1_85d7870_421c3c4_GUIDTest", "test_sign": "com/github/f4b6a3/uuid/alt/GUIDTest.testCompareTo:()V", "class": "GUIDTest", "method": "testCompareTo", "module": "", "junit_selector": "com.github.f4b6a3.uuid.alt.GUIDTest#testCompareTo", "old_test_code": null, "new_test_code": "@Test\npublic void testCompareTo() {\n final long zero = 0L;\n Random random = new Random();\n byte[] bytes = new byte[GUID.GUID_BYTES];\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n bytes = ByteBuffer.allocate(16).putLong(random.nextLong()).putLong(random.nextLong()).array();\n GUID guid1 = new GUID(bytes);\n BigInteger number1 = new BigInteger(1, bytes);\n bytes = ByteBuffer.allocate(16).putLong(random.nextLong()).putLong(random.nextLong()).array();\n GUID guid2 = new GUID(bytes);\n GUID guid3 = new GUID(bytes);\n BigInteger number2 = new BigInteger(1, bytes);\n BigInteger number3 = new BigInteger(1, bytes);\n assertEquals(number1.compareTo(number2) > 0, guid1.compareTo(guid2) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.compareTo(guid2) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.compareTo(guid3) == 0);\n assertEquals(number1.compareTo(number2) > 0, guid1.toString().compareTo(guid2.toString()) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.toString().compareTo(guid2.toString()) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.toString().compareTo(guid3.toString()) == 0);\n }\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n bytes = ByteBuffer.allocate(16).putLong(zero).putLong(random.nextLong()).array();\n GUID guid1 = new GUID(bytes);\n BigInteger number1 = new BigInteger(1, bytes);\n bytes = ByteBuffer.allocate(16).putLong(zero).putLong(random.nextLong()).array();\n GUID guid2 = new GUID(bytes);\n GUID guid3 = new GUID(bytes);\n BigInteger number2 = new BigInteger(1, bytes);\n BigInteger number3 = new BigInteger(1, bytes);\n assertEquals(number1.compareTo(number2) > 0, guid1.compareTo(guid2) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.compareTo(guid2) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.compareTo(guid3) == 0);\n assertEquals(number1.compareTo(number2) > 0, guid1.toString().compareTo(guid2.toString()) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.toString().compareTo(guid2.toString()) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.toString().compareTo(guid3.toString()) == 0);\n }\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n bytes = ByteBuffer.allocate(16).putLong(random.nextLong()).putLong(zero).array();\n GUID guid1 = new GUID(bytes);\n BigInteger number1 = new BigInteger(1, bytes);\n bytes = ByteBuffer.allocate(16).putLong(random.nextLong()).putLong(zero).array();\n GUID guid2 = new GUID(bytes);\n GUID guid3 = new GUID(bytes);\n BigInteger number2 = new BigInteger(1, bytes);\n BigInteger number3 = new BigInteger(1, bytes);\n assertEquals(number1.compareTo(number2) > 0, guid1.compareTo(guid2) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.compareTo(guid2) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.compareTo(guid3) == 0);\n assertEquals(number1.compareTo(number2) > 0, guid1.toString().compareTo(guid2.toString()) > 0);\n assertEquals(number1.compareTo(number2) < 0, guid1.toString().compareTo(guid2.toString()) < 0);\n assertEquals(number2.compareTo(number3) == 0, guid2.toString().compareTo(guid3.toString()) == 0);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["363-438"], "old_production_code": "", "new_production_code": "@Override\npublic int compareTo(GUID that) {\n final long min = 0x8000000000000000L;\n final long a = this.msb + min;\n final long b = that.msb + min;\n if (a > b)\n return 1;\n else if (a < b)\n return -1;\n final long c = this.lsb + min;\n final long d = that.lsb + min;\n if (c > d)\n return 1;\n else if (c < d)\n return -1;\n return 0;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "focal_method_sign": "com/github/f4b6a3/uuid/alt/GUID.compareTo:(Lcom/github/f4b6a3/uuid/alt/GUID;)I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.compareTo:(Lcom/github/f4b6a3/uuid/alt/GUID;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "449-472", "dependency_updated": "inserted", "score": 0.7782, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0575}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "line_nums_new": "381-384", "dependency_updated": "inserted", "score": 0.293, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.2222, "class": 1.0, "tfidf": 0.1024}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.4599, "method_coverage_gold": 1.1401, "line_coverage_gold": 1.6204, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "com/github/f4b6a3/uuid/alt/GUID.compareTo:(Lcom/github/f4b6a3/uuid/alt/GUID;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/alt/GUID.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/alt/GUID.compareTo:(Lcom/github/f4b6a3/uuid/alt/GUID;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/alt/GUID.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__a255500_cc1c808__DceSecurityFactoryTest_2dfbd1e8", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "a2555007e8de9f6d7cb5364a5203207914afd125", "rev2": "cc1c808df7972bec4ac511f09489695f15adf402", "rev1_date": "2024-07-07T01:07:24Z", "rev2_date": "2024-07-07T01:34:14Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/a2555007e8de9f6d7cb5364a5203207914afd125...cc1c808df7972bec4ac511f09489695f15adf402", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactoryTest.java", "test_changes": [{"change_id": "1142_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_DceSecurityFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactoryTest.testGetDCESecuritylLocalIdentifier:()V", "class": "DceSecurityFactoryTest", "method": "testGetDCESecuritylLocalIdentifier", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.DceSecurityFactoryTest#testGetDCESecuritylLocalIdentifier", "old_test_code": null, "new_test_code": "@Test\npublic void testGetDCESecuritylLocalIdentifier() {\n DceSecurityFactory factory = new DceSecurityFactory();\n DceSecurityFactory factoryWithMac = DceSecurityFactory.builder().withMacNodeId().build();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n byte localDomain = (byte) i;\n int localIdentifier = 1701 + i;\n UUID uuid = factory.create(localDomain, localIdentifier);\n int localIdentifier2 = UuidUtil.getLocalIdentifier(uuid);\n assertEquals(localIdentifier, localIdentifier2);\n uuid = factoryWithMac.create(localDomain, localIdentifier);\n localIdentifier2 = UuidUtil.getLocalIdentifier(uuid);\n assertEquals(localIdentifier, localIdentifier2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-56"], "old_production_code": "", "new_production_code": "public UUID create(byte localDomain, int localIdentifier) {\n UUID uuid = super.create();\n final long lsb = embedLocalDomain(uuid.getLeastSignificantBits(), localDomain, this.counter.incrementAndGet());\n final long msb = emgedLocalIdentifier(uuid.getMostSignificantBits(), localIdentifier);\n return toUuid(msb, lsb);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "126-138", "dependency_updated": "inserted", "score": 0.4637, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1667, "class": 1.0, "tfidf": 0.429}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "102-105", "dependency_updated": "inserted", "score": 0.41, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1333, "class": 1.0, "tfidf": 0.2493}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "67-69", "dependency_updated": "inserted", "score": 0.389, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.2, "class": 1.0, "tfidf": 0.0703}}], "coverage_gold": 0.5909090909090909, "branch_coverage_gold": 6.0027, "method_coverage_gold": 10.7198, "line_coverage_gold": 8.8998, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withMacNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/util/UuidUtil.getLocalIdentifier:(Ljava/util/UUID;)I", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1150_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_DceSecurityFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactoryTest.testGetDCESecuritylLocalDomain:()V", "class": "DceSecurityFactoryTest", "method": "testGetDCESecuritylLocalDomain", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.DceSecurityFactoryTest#testGetDCESecuritylLocalDomain", "old_test_code": null, "new_test_code": "@Test\npublic void testGetDCESecuritylLocalDomain() {\n DceSecurityFactory factory = new DceSecurityFactory();\n DceSecurityFactory factoryWithMac = DceSecurityFactory.builder().withMacNodeId().build();\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n byte localDomain = (byte) i;\n int localIdentifier = 1701 + i;\n UUID uuid = factory.create(localDomain, localIdentifier);\n byte localDomain2 = UuidUtil.getLocalDomain(uuid);\n assertEquals(localDomain, localDomain2);\n uuid = factoryWithMac.create(localDomain, localIdentifier);\n localDomain2 = UuidUtil.getLocalDomain(uuid);\n assertEquals(localDomain, localDomain2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-34"], "old_production_code": "", "new_production_code": "@Override\npublic DceSecurityFactory build() {\n return new DceSecurityFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "102-105", "dependency_updated": "inserted", "score": 0.4134, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1538, "class": 1.0, "tfidf": 0.2493}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "126-138", "dependency_updated": "inserted", "score": 0.3964, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1154, "class": 1.0, "tfidf": 0.429}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "line_nums_new": "67-69", "dependency_updated": "inserted", "score": 0.3309, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1538, "class": 1.0, "tfidf": 0.0703}}], "coverage_gold": 0.5909090909090909, "branch_coverage_gold": 6.0027, "method_coverage_gold": 10.7198, "line_coverage_gold": 8.8998, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.getLocalDomain:(Ljava/util/UUID;)B", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withMacNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.create:(BI)Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/DceSecurityFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/DceSecurityFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__a255500_cc1c808__RandomBasedFactoryTest_44663ead", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "a2555007e8de9f6d7cb5364a5203207914afd125", "rev2": "cc1c808df7972bec4ac511f09489695f15adf402", "rev1_date": "2024-07-07T01:07:24Z", "rev2_date": "2024-07-07T01:34:14Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/a2555007e8de9f6d7cb5364a5203207914afd125...cc1c808df7972bec4ac511f09489695f15adf402", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactoryTest.java", "test_changes": [{"change_id": "1139_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_RandomBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactoryTest.testGetRandomBasedWithRandomFunction:()V", "class": "RandomBasedFactoryTest", "method": "testGetRandomBasedWithRandomFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.RandomBasedFactoryTest#testGetRandomBasedWithRandomFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRandomBasedWithRandomFunction() {\n SplittableRandom random = new SplittableRandom(1);\n UUID[] list = new UUID[DEFAULT_LOOP_MAX];\n LongSupplier randomFunction = () -> random.nextLong();\n RandomBasedFactory factory = new RandomBasedFactory(randomFunction);\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n list[i] = factory.create();\n }\n checkNotNull(list);\n checkUniqueness(list);\n checkVersion(list, UuidVersion.VERSION_RANDOM_BASED.getValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-76"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(16);\n final long msb = ByteUtil.toNumber(bytes, 0, 8);\n final long lsb = ByteUtil.toNumber(bytes, 8, 16);\n return toUuid(msb, lsb);\n } else {\n final long msb = this.random.nextLong();\n final long lsb = this.random.nextLong();\n return toUuid(msb, lsb);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "106-123", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.4093, "method_coverage_gold": 3.5222, "line_coverage_gold": 2.6834, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkUniqueness:([Ljava/util/UUID;)V", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/enums/UuidVersion.getValue:()I", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkNotNull:([Ljava/util/UUID;)V", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkVersion:([Ljava/util/UUID;I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1166_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_RandomBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactoryTest.testGetRandomBasedFastInParallel:()V", "class": "RandomBasedFactoryTest", "method": "testGetRandomBasedFastInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.RandomBasedFactoryTest#testGetRandomBasedFastInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRandomBasedFastInParallel() throws InterruptedException {\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n threads[i] = new TestThread(RandomBasedFactory.builder().withFastRandom().build(), DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, TestThread.hashSet.size(), (DEFAULT_LOOP_MAX * THREAD_TOTAL));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-118"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(16);\n final long msb = ByteUtil.toNumber(bytes, 0, 8);\n final long lsb = ByteUtil.toNumber(bytes, 8, 16);\n return toUuid(msb, lsb);\n } else {\n final long msb = this.random.nextLong();\n final long lsb = this.random.nextLong();\n return toUuid(msb, lsb);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "106-123", "dependency_updated": "inserted", "score": 0.3647, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1786, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "75-78", "dependency_updated": "inserted", "score": 0.3336, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1071, "class": 1.0, "tfidf": 0.0927}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "86-88", "dependency_updated": "inserted", "score": 0.3317, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1429, "class": 1.0, "tfidf": 0.0813}}], "coverage_gold": 0.6923076923076923, "branch_coverage_gold": 0.4093, "method_coverage_gold": 3.2159, "line_coverage_gold": 2.2809, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/AbstRandomBasedFactory$FastRandom.nextLong:()J", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/RandomBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1167_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_RandomBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactoryTest.testGetRandomBasedInParallel:()V", "class": "RandomBasedFactoryTest", "method": "testGetRandomBasedInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.RandomBasedFactoryTest#testGetRandomBasedInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRandomBasedInParallel() throws InterruptedException {\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n threads[i] = new TestThread(new RandomBasedFactory(), DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, TestThread.hashSet.size(), (DEFAULT_LOOP_MAX * THREAD_TOTAL));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-97"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(16);\n final long msb = ByteUtil.toNumber(bytes, 0, 8);\n final long lsb = ByteUtil.toNumber(bytes, 8, 16);\n return toUuid(msb, lsb);\n } else {\n final long msb = this.random.nextLong();\n final long lsb = this.random.nextLong();\n return toUuid(msb, lsb);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "106-123", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7954545454545454, "branch_coverage_gold": 2.0464, "method_coverage_gold": 4.9005, "line_coverage_gold": 4.1592, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/util/internal/RandomUtil.newSecureRandom:()Ljava/security/SecureRandom", "com/github/f4b6a3/uuid/factory/AbstRandomBasedFactory$SafeRandom.nextBytes:(I)[B", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1170_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_RandomBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactoryTest.testGetRandomBasedWithRandom:()V", "class": "RandomBasedFactoryTest", "method": "testGetRandomBasedWithRandom", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.RandomBasedFactoryTest#testGetRandomBasedWithRandom", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRandomBasedWithRandom() {\n UUID[] list = new UUID[DEFAULT_LOOP_MAX];\n SplittableRandom seeder = new SplittableRandom(1);\n RandomBasedFactory factory = new RandomBasedFactory(new Random(seeder.nextLong()));\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n list[i] = factory.create();\n }\n checkNotNull(list);\n checkUniqueness(list);\n checkVersion(list, UuidVersion.VERSION_RANDOM_BASED.getValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-60"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(16);\n final long msb = ByteUtil.toNumber(bytes, 0, 8);\n final long lsb = ByteUtil.toNumber(bytes, 8, 16);\n return toUuid(msb, lsb);\n } else {\n final long msb = this.random.nextLong();\n final long lsb = this.random.nextLong();\n return toUuid(msb, lsb);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "line_nums_new": "106-123", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.8186, "method_coverage_gold": 3.9816, "line_coverage_gold": 2.9517, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkUniqueness:([Ljava/util/UUID;)V", "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/enums/UuidVersion.getValue:()I", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkNotNull:([Ljava/util/UUID;)V", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.checkVersion:([Ljava/util/UUID;I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/RandomBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__a255500_cc1c808__TimeBasedFactoryTest_33dad34a", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "a2555007e8de9f6d7cb5364a5203207914afd125", "rev2": "cc1c808df7972bec4ac511f09489695f15adf402", "rev1_date": "2024-07-07T01:07:24Z", "rev2_date": "2024-07-07T01:34:14Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/a2555007e8de9f6d7cb5364a5203207914afd125...cc1c808df7972bec4ac511f09489695f15adf402", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.java", "test_changes": [{"change_id": "1140_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedWithClockSeqFunction:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedWithClockSeqFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedWithClockSeqFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedWithClockSeqFunction() {\n long clockSeq = ClockSeqFunction.toExpectedRange((int) System.nanoTime());\n ClockSeqFunction clockSeqOperator = x -> clockSeq;\n long clockseq1 = clockSeqOperator.applyAsLong(0);\n UUID uuid = TimeBasedFactory.builder().withClockSeqFunction(clockSeqOperator).build().create();\n long clockseq2 = UuidUtil.getClockSequence(uuid);\n assertEquals(clockseq1, clockseq2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-68"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.3373, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0938, "class": 1.0, "tfidf": 0.1179}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3339, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.125, "class": 1.0, "tfidf": 0.1032}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 3.0014, "method_coverage_gold": 7.8101, "line_coverage_gold": 5.814, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withClockSeqFunction:(Lcom/github/f4b6a3/uuid/factory/function/ClockSeqFunction;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/function/ClockSeqFunction.toExpectedRange:(J)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/util/UuidUtil.getClockSequence:(Ljava/util/UUID;)I", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1144_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedCheckGreatestTimestamp:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedCheckGreatestTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedCheckGreatestTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedCheckGreatestTimestamp() {\n long maxTimestamp = 0x0fffffffffffffffL;\n Instant maxInstant = Instant.parse(\"5236-03-31T21:21:00.684697500Z\");\n UUID uuid = TimeBasedFactory.builder().withInstant(maxInstant).build().create();\n long timestamp = UuidUtil.getTimestamp(uuid);\n assertEquals(maxTimestamp, timestamp);\n Instant instant = UuidUtil.getInstant(uuid);\n assertEquals(maxInstant, instant);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-112"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3269, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1176, "class": 1.0, "tfidf": 0.0783}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.2895, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0588, "class": 1.0, "tfidf": 0.0892}}], "coverage_gold": 0.85, "branch_coverage_gold": 3.4106, "method_coverage_gold": 9.1884, "line_coverage_gold": 6.7531, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1146_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedWithNodeIdFunction:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedWithNodeIdFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedWithNodeIdFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedWithNodeIdFunction() {\n long nodeid = NodeIdFunction.toExpectedRange(System.nanoTime());\n NodeIdFunction nodeIdSupplier = () -> nodeid;\n long nodeIdentifier1 = nodeIdSupplier.getAsLong();\n UUID uuid = TimeBasedFactory.builder().withNodeIdFunction(nodeIdSupplier).build().create();\n long nodeIdentifier2 = UuidUtil.getNodeIdentifier(uuid);\n assertEquals(nodeIdentifier1, nodeIdentifier2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-54"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.3383, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1, "class": 1.0, "tfidf": 0.1179}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3353, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1333, "class": 1.0, "tfidf": 0.1032}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 2.1828, "method_coverage_gold": 6.7381, "line_coverage_gold": 5.4562, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.getNodeIdentifier:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withNodeIdFunction:(Lcom/github/f4b6a3/uuid/factory/function/NodeIdFunction;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/function/NodeIdFunction.toExpectedRange:(J)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1149_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedWithInstant:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedWithInstant", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedWithInstant", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedWithInstant() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n Instant instant1 = Instant.now().truncatedTo(ChronoUnit.MICROS);\n UUID uuid = TimeBasedFactory.builder().withInstant(instant1).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid).truncatedTo(ChronoUnit.MICROS);\n assertEquals(instant1, instant2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-78"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.299, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.087, "class": 1.0, "tfidf": 0.11}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.2757, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.087, "class": 1.0, "tfidf": 0.0964}}], "coverage_gold": 0.8823529411764706, "branch_coverage_gold": 3.6835, "method_coverage_gold": 9.0352, "line_coverage_gold": 6.7531, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1154_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedCheckTimestamp:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedCheckTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedCheckTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedCheckTimestamp() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n Instant instant1 = Instant.now();\n UUID uuid = TimeBasedFactory.builder().withInstant(instant1).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid);\n long timestamp1 = UuidTime.toGregTimestamp(instant1);\n long timestamp2 = UuidTime.toGregTimestamp(instant2);\n assertEquals(timestamp1, timestamp2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-94"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3048, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1154, "class": 1.0, "tfidf": 0.093}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.2965, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0769, "class": 1.0, "tfidf": 0.1061}}], "coverage_gold": 0.9, "branch_coverage_gold": 3.6835, "method_coverage_gold": 9.1884, "line_coverage_gold": 6.8873, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidTime.toGregTimestamp:(Ljava/time/Instant;)J", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1156_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testGetTimeBasedInParallel:()V", "class": "TimeBasedFactoryTest", "method": "testGetTimeBasedInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testGetTimeBasedInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeBasedInParallel() throws InterruptedException {\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n TimeBasedFactory factory = TimeBasedFactory.builder().withHashNodeId().build();\n threads[i] = new TestThread(factory, DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, (DEFAULT_LOOP_MAX * THREAD_TOTAL), TestThread.hashSet.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-134"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.3517, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1364, "class": 1.0, "tfidf": 0.1492}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3373, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1818, "class": 1.0, "tfidf": 0.0779}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.3206, "method_coverage_gold": 7.5038, "line_coverage_gold": 7.2898, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withHashNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1158_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testCreateTimeBasedWithMac:()V", "class": "TimeBasedFactoryTest", "method": "testCreateTimeBasedWithMac", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testCreateTimeBasedWithMac", "old_test_code": null, "new_test_code": "@Test\npublic void testCreateTimeBasedWithMac() {\n boolean multicast = false;\n testGetAbstractTimeBased(TimeBasedFactory.builder().withMacNodeId().build(), multicast);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-34"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.3339, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.2554}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3053, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0909, "class": 1.0, "tfidf": 0.2195}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.9113, "method_coverage_gold": 8.8821, "line_coverage_gold": 7.5134, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest.testGetAbstractTimeBased:(Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory;Z)V", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withMacNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1162_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeBasedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactoryTest.testCreateTimeBasedWithHash:()V", "class": "TimeBasedFactoryTest", "method": "testCreateTimeBasedWithHash", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeBasedFactoryTest#testCreateTimeBasedWithHash", "old_test_code": null, "new_test_code": "@Test\npublic void testCreateTimeBasedWithHash() {\n boolean multicast = true;\n testGetAbstractTimeBased(TimeBasedFactory.builder().withHashNodeId().build(), multicast);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-40"], "old_production_code": "", "new_production_code": "@Override\npublic TimeBasedFactory build() {\n return new TimeBasedFactory(this);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "63-66", "dependency_updated": "inserted", "score": 0.3332, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.087, "class": 1.0, "tfidf": 0.2554}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3046, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.087, "class": 1.0, "tfidf": 0.2195}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.2756, "method_coverage_gold": 9.8009, "line_coverage_gold": 8.7209, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withHashNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.testGetAbstractTimeBased:(Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory;Z)V", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeBasedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeBasedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__a255500_cc1c808__TimeOrderedEpochFactoryTest_a64fe08c", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "a2555007e8de9f6d7cb5364a5203207914afd125", "rev2": "cc1c808df7972bec4ac511f09489695f15adf402", "rev1_date": "2024-07-07T01:07:24Z", "rev2_date": "2024-07-07T01:34:14Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/a2555007e8de9f6d7cb5364a5203207914afd125...cc1c808df7972bec4ac511f09489695f15adf402", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.java", "test_changes": [{"change_id": "1152_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testWithRandomFunction:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testWithRandomFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testWithRandomFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testWithRandomFunction() {\n SplittableRandom random = new SplittableRandom(1);\n {\n LongSupplier function = () -> random.nextLong();\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(function);\n assertNotNull(factory.create());\n }\n {\n LongSupplier function = () -> random.nextLong();\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(function);\n assertNotNull(factory.create());\n }\n {\n LongSupplier function = () -> random.nextLong();\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(function, Clock.systemDefaultZone());\n assertNotNull(factory.create());\n }\n {\n LongSupplier function = () -> random.nextLong();\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(function, Clock.systemDefaultZone());\n assertNotNull(factory.create());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-69"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4492753623188406, "branch_coverage_gold": 1.6371, "method_coverage_gold": 4.9005, "line_coverage_gold": 4.025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1153_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testWithRandomNull:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testWithRandomNull", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testWithRandomNull", "old_test_code": null, "new_test_code": "@Test\npublic void testWithRandomNull() {\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory((Random) null);\n assertNotNull(factory.create());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-75"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.37681159420289856, "branch_coverage_gold": 2.7285, "method_coverage_gold": 6.4319, "line_coverage_gold": 5.4114, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1155_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testWithRandom:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testWithRandom", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testWithRandom", "old_test_code": null, "new_test_code": "@Test\npublic void testWithRandom() {\n SplittableRandom seeder = new SplittableRandom(1);\n {\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(new Random(seeder.nextLong()));\n assertNotNull(factory.create());\n }\n {\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory(new Random(seeder.nextLong()));\n assertNotNull(factory.create());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-44"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4492753623188406, "branch_coverage_gold": 1.7735, "method_coverage_gold": 4.9005, "line_coverage_gold": 4.0698, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1161_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testGetTimeOrderedEpochCheckTimestamp:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testGetTimeOrderedEpochCheckTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testGetTimeOrderedEpochCheckTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedEpochCheckTimestamp() {\n SplittableRandom random = new SplittableRandom(1);\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long time = random.nextLong(1L << 48);\n Clock clock = Clock.fixed(Instant.ofEpochMilli(time), Clock.systemUTC().getZone());\n Instant instant1 = clock.instant();\n long timestamp1 = UuidTime.toGregTimestamp(instant1);\n UUID uuid = TimeOrderedEpochFactory.builder().withClock(clock).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid);\n long timestamp2 = UuidUtil.getTimestamp(uuid);\n assertEquals(instant1, instant2);\n assertEquals(timestamp1, timestamp2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["113-130"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": 0.3781, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1212, "class": 1.0, "tfidf": 0.2221}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "243-245", "dependency_updated": "inserted", "score": 0.3239, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1212, "class": 1.0, "tfidf": 0.063}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "232-235", "dependency_updated": "inserted", "score": 0.2857, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0606, "class": 1.0, "tfidf": 0.0717}}], "coverage_gold": 0.5421686746987951, "branch_coverage_gold": 3.9563, "method_coverage_gold": 9.1884, "line_coverage_gold": 7.5581, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/AbstCombFactory$Builder.withClock:(Ljava/time/Clock;)Lcom/github/f4b6a3/uuid/factory/AbstCombFactory$Builder", "com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/util/UuidTime.toGregTimestamp:(Ljava/time/Instant;)J", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1163_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testGetTimeOrderedEpochInParallel:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testGetTimeOrderedEpochInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testGetTimeOrderedEpochInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedEpochInParallel() throws InterruptedException {\n Clock clock = Clock.systemDefaultZone();\n SplittableRandom seeder = new SplittableRandom(1);\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n Random random = new Random(seeder.nextLong());\n threads[i] = new TestThread(new TimeOrderedEpochFactory(random, clock), DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, TestThread.hashSet.size(), (DEFAULT_LOOP_MAX * THREAD_TOTAL));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["340-363"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.463768115942029, "branch_coverage_gold": 2.0464, "method_coverage_gold": 5.0536, "line_coverage_gold": 4.2039, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1169_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactoryTest.testDefault:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testDefault", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedEpochFactoryTest#testDefault", "old_test_code": null, "new_test_code": "@Test\npublic void testDefault() {\n TimeOrderedEpochFactory factory = new TimeOrderedEpochFactory();\n assertNotNull(factory.create());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-31"], "old_production_code": "", "new_production_code": "@Override\npublic UUID create() {\n UUID uuid = this.uuidFunction.get();\n return toUuid(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "line_nums_new": "252-256", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.37681159420289856, "branch_coverage_gold": 2.5921, "method_coverage_gold": 6.2787, "line_coverage_gold": 5.322, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__a255500_cc1c808__TimeOrderedFactoryTest_0030c9b7", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "a2555007e8de9f6d7cb5364a5203207914afd125", "rev2": "cc1c808df7972bec4ac511f09489695f15adf402", "rev1_date": "2024-07-07T01:07:24Z", "rev2_date": "2024-07-07T01:34:14Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/a2555007e8de9f6d7cb5364a5203207914afd125...cc1c808df7972bec4ac511f09489695f15adf402", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.java", "test_changes": [{"change_id": "1136_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedWithNodeIdFunction:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedWithNodeIdFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedWithNodeIdFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedWithNodeIdFunction() {\n long nodeid = NodeIdFunction.toExpectedRange(System.nanoTime());\n NodeIdFunction nodeIdFunction = () -> nodeid;\n long nodeIdentifier1 = nodeIdFunction.getAsLong();\n UUID uuid = TimeOrderedFactory.builder().withNodeIdFunction(nodeIdFunction).build().create();\n long nodeIdentifier2 = UuidUtil.getNodeIdentifier(uuid);\n assertEquals(nodeIdentifier1, nodeIdentifier2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-53"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3314, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.125, "class": 1.0, "tfidf": 0.0922}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.2939, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0625, "class": 1.0, "tfidf": 0.1052}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 2.4557, "method_coverage_gold": 6.8913, "line_coverage_gold": 5.5009, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/util/UuidUtil.getNodeIdentifier:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withNodeIdFunction:(Lcom/github/f4b6a3/uuid/factory/function/NodeIdFunction;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/function/NodeIdFunction.toExpectedRange:(J)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1137_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedWithClockSeqFunction:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedWithClockSeqFunction", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedWithClockSeqFunction", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedWithClockSeqFunction() {\n long clockSeq = ClockSeqFunction.toExpectedRange((int) System.nanoTime());\n ClockSeqFunction clockSeqFunction = x -> clockSeq;\n long clockseq1 = clockSeqFunction.applyAsLong(0);\n UUID uuid = TimeOrderedFactory.builder().withClockSeqFunction(clockSeqFunction).build().create();\n long clockseq2 = UuidUtil.getClockSequence(uuid);\n assertEquals(clockseq1, clockseq2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-67"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3301, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1176, "class": 1.0, "tfidf": 0.0922}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.2933, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0588, "class": 1.0, "tfidf": 0.1052}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 3.1378, "method_coverage_gold": 7.9632, "line_coverage_gold": 5.8587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withClockSeqFunction:(Lcom/github/f4b6a3/uuid/factory/function/ClockSeqFunction;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/factory/function/ClockSeqFunction.toExpectedRange:(J)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/util/UuidUtil.getClockSequence:(Ljava/util/UUID;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1138_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testTimeOrderedWithMac:()V", "class": "TimeOrderedFactoryTest", "method": "testTimeOrderedWithMac", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testTimeOrderedWithMac", "old_test_code": null, "new_test_code": "@Test\npublic void testTimeOrderedWithMac() {\n boolean multicast = false;\n testGetAbstractTimeBased(TimeOrderedFactory.builder().withMacNodeId().build(), multicast);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-33"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3682, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 1.0, "tfidf": 0.2195}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.3281, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0556, "class": 1.0, "tfidf": 0.2554}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.1842, "method_coverage_gold": 9.0352, "line_coverage_gold": 7.5581, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.testGetAbstractTimeBased:(Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory;Z)V", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withMacNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1141_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedCheckGreatestTimestamp:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedCheckGreatestTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedCheckGreatestTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedCheckGreatestTimestamp() {\n long maxTimestamp = 0x0fffffffffffffffL;\n Instant maxInstant = Instant.parse(\"5236-03-31T21:21:00.684697500Z\");\n UUID uuid = TimeOrderedFactory.builder().withInstant(maxInstant).build().create();\n long timestamp = UuidUtil.getTimestamp(uuid);\n assertEquals(maxTimestamp, timestamp);\n Instant instant = UuidUtil.getInstant(uuid);\n assertEquals(maxInstant, instant);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-111"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3258, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1111, "class": 1.0, "tfidf": 0.0783}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.289, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0556, "class": 1.0, "tfidf": 0.0892}}], "coverage_gold": 0.85, "branch_coverage_gold": 3.5471, "method_coverage_gold": 9.3415, "line_coverage_gold": 6.7979, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1151_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedWithInstant:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedWithInstant", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedWithInstant", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedWithInstant() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n Instant instant1 = Instant.now().truncatedTo(ChronoUnit.MICROS);\n UUID uuid = TimeOrderedFactory.builder().withInstant(instant1).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid).truncatedTo(ChronoUnit.MICROS);\n assertEquals(instant1, instant2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-77"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3381, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.16, "class": 1.0, "tfidf": 0.0964}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.2979, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.08, "class": 1.0, "tfidf": 0.11}}], "coverage_gold": 0.8823529411764706, "branch_coverage_gold": 3.8199, "method_coverage_gold": 9.1884, "line_coverage_gold": 6.7979, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1157_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedCheckTimestamp:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedCheckTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedCheckTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedCheckTimestamp() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n Instant instant1 = Instant.now();\n UUID uuid = TimeOrderedFactory.builder().withInstant(instant1).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid);\n long timestamp1 = UuidTime.toGregTimestamp(instant1);\n long timestamp2 = UuidTime.toGregTimestamp(instant2);\n assertEquals(timestamp1, timestamp2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-93"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3345, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1429, "class": 1.0, "tfidf": 0.093}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.2955, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 1.0, "tfidf": 0.1061}}], "coverage_gold": 0.9, "branch_coverage_gold": 3.8199, "method_coverage_gold": 9.3415, "line_coverage_gold": 6.932, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/util/UuidTime.toGregTimestamp:(Ljava/time/Instant;)J", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withInstant:(Ljava/time/Instant;)Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1160_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testTimeOrderedWithHash:()V", "class": "TimeOrderedFactoryTest", "method": "testTimeOrderedWithHash", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testTimeOrderedWithHash", "old_test_code": null, "new_test_code": "@Test\npublic void testTimeOrderedWithHash() {\n boolean multicast = true;\n testGetAbstractTimeBased(TimeOrderedFactory.builder().withHashNodeId().build(), multicast);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-39"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3667, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1579, "class": 1.0, "tfidf": 0.2195}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.3276, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0526, "class": 1.0, "tfidf": 0.2554}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.5484, "method_coverage_gold": 9.9541, "line_coverage_gold": 8.7657, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withHashNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/UuidFactoryTest.testGetAbstractTimeBased:(Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory;Z)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1165_f4b6a3_uuid-creator-uuid-creator-6.1.1_a255500_cc1c808_TimeOrderedFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactoryTest.testGetTimeOrderedInParallel:()V", "class": "TimeOrderedFactoryTest", "method": "testGetTimeOrderedInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.standard.TimeOrderedFactoryTest#testGetTimeOrderedInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedInParallel() throws InterruptedException {\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n TimeOrderedFactory factory = TimeOrderedFactory.builder().withHashNodeId().build();\n threads[i] = new TestThread(factory, DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, (DEFAULT_LOOP_MAX * THREAD_TOTAL), TestThread.hashSet.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["113-133"], "old_production_code": "", "new_production_code": "public static Builder builder() {\n return new Builder();\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.3349, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 1.0, "tfidf": 0.0779}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "line_nums_new": "87-90", "dependency_updated": "inserted", "score": 0.3076, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0833, "class": 1.0, "tfidf": 0.1492}}], "coverage_gold": 0.8518518518518519, "branch_coverage_gold": 5.3206, "method_coverage_gold": 7.5038, "line_coverage_gold": 7.2898, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder.withHashNodeId:()Lcom/github/f4b6a3/uuid/factory/AbstTimeBasedFactory$Builder", "com/github/f4b6a3/uuid/factory/function/impl/DefaultTimeFunction.getAsLong:()J", "com/github/f4b6a3/uuid/factory/function/NodeIdFunction.toExpectedRange:(J)J", "com/github/f4b6a3/uuid/factory/AbstTimeBasedFactory.create:()Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V", "com/github/f4b6a3/uuid/factory/function/TimeFunction.toExpectedRange:(J)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.builder:()Lcom/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/standard/TimeOrderedFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__ba87b47_be1ca73__TimeOrderedEpochFactoryTest_e13d2301", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "ba87b47e4aac0a474ce92c4accb0ced9c8fc8422", "rev2": "be1ca73eb8426f62321563f4eb35742cfbeca23f", "rev1_date": "2022-06-26T03:00:22Z", "rev2_date": "2022-06-26T03:20:28Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/ba87b47e4aac0a474ce92c4accb0ced9c8fc8422...be1ca73eb8426f62321563f4eb35742cfbeca23f", "test_file": "src/test/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactoryTest.java", "test_changes": [{"change_id": "1330_f4b6a3_uuid-creator-uuid-creator-6.1.1_ba87b47_be1ca73_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactoryTest.testGetTimeOrderedEpochInParallel:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testGetTimeOrderedEpochInParallel", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.rfc4122.TimeOrderedEpochFactoryTest#testGetTimeOrderedEpochInParallel", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedEpochInParallel() throws InterruptedException {\n Random random = new Random();\n Clock clock = Clock.systemDefaultZone();\n Thread[] threads = new Thread[THREAD_TOTAL];\n TestThread.clearHashSet();\n for (int i = 0; i < THREAD_TOTAL; i++) {\n threads[i] = new TestThread(new TimeOrderedEpochFactory(random, clock), DEFAULT_LOOP_MAX);\n threads[i].start();\n }\n for (Thread thread : threads) {\n thread.join();\n }\n assertEquals(DUPLICATE_UUID_MSG, TestThread.hashSet.size(), (DEFAULT_LOOP_MAX * THREAD_TOTAL));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["232-254"], "old_production_code": "", "new_production_code": "@Override\npublic synchronized UUID create() {\n long time = clock.millis();\n if ((time > this.lastTime - CLOCK_DRIFT_TOLERANCE) && (time <= this.lastTime)) {\n this.lastUuid = increment(this.lastUuid);\n } else {\n this.lastTime = time;\n this.lastUuid = make(time, this.randomFunction.apply(RANDOM_BYTES));\n }\n return copy(this.lastUuid);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "184-201", "dependency_updated": "inserted", "score": 0.3347, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1379, "class": 1.0, "tfidf": 0.0259}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.increment:(Ljava/util/UUID;)Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "203-220", "dependency_updated": "inserted", "score": 0.3147, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.1724, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 2.3769, "method_coverage_gold": 5.8288, "line_coverage_gold": 4.8421, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.increment:(Ljava/util/UUID;)Ljava/util/UUID", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.run:()V", "com/github/f4b6a3/uuid/factory/UuidFactoryTest$TestThread.clearHashSet:()V", "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.increment:(Ljava/util/UUID;)Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1332_f4b6a3_uuid-creator-uuid-creator-6.1.1_ba87b47_be1ca73_TimeOrderedEpochFactoryTest", "test_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactoryTest.testGetTimeOrderedCheckTimestamp:()V", "class": "TimeOrderedEpochFactoryTest", "method": "testGetTimeOrderedCheckTimestamp", "module": "", "junit_selector": "com.github.f4b6a3.uuid.factory.rfc4122.TimeOrderedEpochFactoryTest#testGetTimeOrderedCheckTimestamp", "old_test_code": null, "new_test_code": "@Test\npublic void testGetTimeOrderedCheckTimestamp() {\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n long random = ThreadLocalRandom.current().nextLong(1L << 48);\n Clock clock = Clock.fixed(Instant.ofEpochMilli(random), Clock.systemUTC().getZone());\n Instant instant1 = clock.instant();\n long timestamp1 = UuidTime.toGregTimestamp(instant1);\n UUID uuid = TimeOrderedEpochFactory.builder().withClock(clock).build().create();\n Instant instant2 = UuidUtil.getInstant(uuid);\n long timestamp2 = UuidUtil.getTimestamp(uuid);\n assertEquals(instant1, instant2);\n assertEquals(timestamp1, timestamp2);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-76"], "old_production_code": "", "new_production_code": "@Override\npublic Builder withClock(Clock clock) {\n return (Builder) super.withClock(clock);\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.withClock:(Ljava/time/Clock;)Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.withClock:(Ljava/time/Clock;)Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "124-127", "dependency_updated": "inserted", "score": 0.3734, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1429, "class": 1.0, "tfidf": 0.3537}}, {"dep_id": 3, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "184-201", "dependency_updated": "inserted", "score": 0.3466, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1429, "class": 1.0, "tfidf": 0.0731}}, {"dep_id": 2, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "180-182", "dependency_updated": "inserted", "score": 0.3278, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1429, "class": 1.0, "tfidf": 0.0645}}, {"dep_id": 1, "method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "line_nums_old": "224-234", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "line_nums_new": "263-269", "dependency_updated": "updated", "score": 0.3069, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4286, "class": 0.0, "tfidf": 0.2542}}, {"dep_id": 4, "method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "line_nums_new": "174-177", "dependency_updated": "inserted", "score": 0.2879, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 1.0, "tfidf": 0.0735}}, {"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "line_nums_old": "208-211", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "line_nums_new": "242-250", "dependency_updated": "updated", "score": 0.1996, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.25, "class": 0.0, "tfidf": 0.1484}}], "coverage_gold": 0.7209302325581395, "branch_coverage_gold": 3.9049, "method_coverage_gold": 9.4718, "line_coverage_gold": 7.3158, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidTime.toGregTimestamp:(Ljava/time/Instant;)J", "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.withClock:(Ljava/time/Clock;)Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory", "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.getInstant:(Ljava/util/UUID;)Ljava/time/Instant", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.getTimestamp:(Ljava/util/UUID;)J", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.builder:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.create:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.build:()Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder.withClock:(Ljava/time/Clock;)Lcom/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/rfc4122/TimeOrderedEpochFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__ba87b47_be1ca73__UuidUtilTest_6cd7a9f0", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "ba87b47e4aac0a474ce92c4accb0ced9c8fc8422", "rev2": "be1ca73eb8426f62321563f4eb35742cfbeca23f", "rev1_date": "2022-06-26T03:00:22Z", "rev2_date": "2022-06-26T03:20:28Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/ba87b47e4aac0a474ce92c4accb0ced9c8fc8422...be1ca73eb8426f62321563f4eb35742cfbeca23f", "test_file": "src/test/java/com/github/f4b6a3/uuid/util/UuidUtilTest.java", "test_changes": [{"change_id": "1333_f4b6a3_uuid-creator-uuid-creator-6.1.1_ba87b47_be1ca73_UuidUtilTest", "test_sign": "com/github/f4b6a3/uuid/util/UuidUtilTest.testIsMax:()V", "class": "UuidUtilTest", "method": "testIsMax", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.UuidUtilTest#testIsMax", "old_test_code": null, "new_test_code": "@Test\npublic void testIsMax() {\n UUID uuid = new UUID(-1L, -1L);\n assertTrue(isMax(uuid));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "public static boolean isMax(UUID uuid) {\n Objects.requireNonNull(uuid, \"Null UUID is not equal to Max UUID\");\n return uuid.getMostSignificantBits() == -1L && uuid.getLeastSignificantBits() == -1L;\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "focal_method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.isMax:(Ljava/util/UUID;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.isMax:(Ljava/util/UUID;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "line_nums_new": "109-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3396, "method_coverage_gold": 0.1821, "line_coverage_gold": 0.1053, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/UuidUtil.isMax:(Ljava/util/UUID;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/util/UuidUtil.isMax:(Ljava/util/UUID;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/f4b6a3/uuid/util/UuidUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "f4b6a3_uuid-creator-uuid-creator-6.1.1__ec91d15_d71bde2__CombUtilTest_4c18940a", "project_name": "f4b6a3_uuid-creator-uuid-creator-6.1.1", "git_clone_url": "https://github.com/f4b6a3/uuid-creator.git", "rev1": "ec91d15c69224cc516c8b32cf19704a1e93420ce", "rev2": "d71bde255825d5a83fd991c2b9d2e9df5bdba24f", "rev1_date": "2025-03-01T03:12:30Z", "rev2_date": "2025-03-01T03:31:08Z", "git_diff_url": "https://github.com/f4b6a3/uuid-creator/compare/ec91d15c69224cc516c8b32cf19704a1e93420ce...d71bde255825d5a83fd991c2b9d2e9df5bdba24f", "test_file": "src/test/java/com/github/f4b6a3/uuid/util/CombUtilTest.java", "test_changes": [{"change_id": "1119_f4b6a3_uuid-creator-uuid-creator-6.1.1_ec91d15_d71bde2_CombUtilTest", "test_sign": "com/github/f4b6a3/uuid/util/CombUtilTest.testGetSuffixWithClock:()V", "class": "CombUtilTest", "method": "testGetSuffixWithClock", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.CombUtilTest#testGetSuffixWithClock", "old_test_code": null, "new_test_code": "@Test\npublic void testGetSuffixWithClock() {\n final int bits = 48;\n final long bound = (long) Math.pow(2, bits);\n SplittableRandom random = new SplittableRandom(1);\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long millis = Math.abs(random.nextLong(bound));\n Clock clock = Clock.fixed(Instant.ofEpochMilli(millis), ZoneOffset.UTC);\n AbstRandomBasedFactory factory = new SuffixCombFactory(clock);\n UUID comb = factory.create();\n long suffix = CombUtil.getSuffix(comb);\n assertEquals(\"Wrong suffix\", millis, suffix);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-88"], "old_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n final long time = instantFunction.get().toEpochMilli();\n final long long1 = this.random.nextLong(8);\n final long long2 = this.random.nextLong(2);\n return make(time, long1, long2);\n } finally {\n lock.unlock();\n }\n}", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n final long time = timeFunction.getAsLong();\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(10);\n final long long1 = ByteUtil.toNumber(bytes, 0, 8);\n final long long2 = ByteUtil.toNumber(bytes, 8, 10);\n return make(time, long1, long2);\n } else {\n final long long1 = this.random.nextLong();\n final long long2 = this.random.nextLong();\n return make(time, long1, long2);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.create:()Ljava/util/UUID", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.java", "line_nums_old": "135-146", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.java", "line_nums_new": "136-154", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.3066, "method_coverage_gold": 5.6402, "line_coverage_gold": 4.6325, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/CombUtil.getSuffix:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.create:()Ljava/util/UUID"], "all_deps_old": ["com/github/f4b6a3/uuid/util/CombUtil.getSuffix:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.create:()Ljava/util/UUID"], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.create:()Ljava/util/UUID", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.java", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/SuffixCombFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1120_f4b6a3_uuid-creator-uuid-creator-6.1.1_ec91d15_d71bde2_CombUtilTest", "test_sign": "com/github/f4b6a3/uuid/util/CombUtilTest.testGetPrefixWithClock:()V", "class": "CombUtilTest", "method": "testGetPrefixWithClock", "module": "", "junit_selector": "com.github.f4b6a3.uuid.util.CombUtilTest#testGetPrefixWithClock", "old_test_code": null, "new_test_code": "@Test\npublic void testGetPrefixWithClock() {\n final int bits = 48;\n final long bound = (long) Math.pow(2, bits);\n SplittableRandom random = new SplittableRandom(1);\n for (int i = 0; i < DEFAULT_LOOP_MAX; i++) {\n final long millis = Math.abs(random.nextLong(bound));\n Clock clock = Clock.fixed(Instant.ofEpochMilli(millis), ZoneOffset.UTC);\n AbstRandomBasedFactory factory = new PrefixCombFactory(clock);\n UUID comb = factory.create();\n long prefix = CombUtil.getPrefix(comb);\n assertEquals(\"Wrong prefix\", millis, prefix);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-54"], "old_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n final long time = instantFunction.get().toEpochMilli();\n final long long1 = this.random.nextLong(2);\n final long long2 = this.random.nextLong(8);\n return make(time, long1, long2);\n } finally {\n lock.unlock();\n }\n}", "new_production_code": "@Override\npublic UUID create() {\n lock.lock();\n try {\n final long time = timeFunction.getAsLong();\n if (this.random instanceof SafeRandom) {\n final byte[] bytes = this.random.nextBytes(10);\n final long long1 = ByteUtil.toNumber(bytes, 0, 2);\n final long long2 = ByteUtil.toNumber(bytes, 2, 10);\n return make(time, long1, long2);\n } else {\n final long long1 = this.random.nextLong();\n final long long2 = this.random.nextLong();\n return make(time, long1, long2);\n }\n } finally {\n lock.unlock();\n }\n}", "focal_file_path": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.java", "focal_method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.create:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.create:()Ljava/util/UUID", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.java", "line_nums_old": "132-143", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.java", "line_nums_new": "133-151", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.3066, "method_coverage_gold": 5.6402, "line_coverage_gold": 4.6325, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/f4b6a3/uuid/util/CombUtil.getPrefix:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.create:()Ljava/util/UUID"], "all_deps_old": ["com/github/f4b6a3/uuid/util/CombUtil.getPrefix:(Ljava/util/UUID;)J", "com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.create:()Ljava/util/UUID"], "deps_changes": [{"method_sign": "com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.create:()Ljava/util/UUID", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.java", "file_path_new": "src/main/java/com/github/f4b6a3/uuid/factory/nonstandard/PrefixCombFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "uuid-creator-6.1.1", "java_version": 11} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__6dc2f85_4e36e99__PumlDependencyEgdeRendererTest_5c2e504a", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "6dc2f855d8b460c87830d6c0a48b94fb63471bf2", "rev2": "4e36e99aa1c4e59227be3fc58d4410f0af12ddd0", "rev1_date": "2017-10-10T23:14:37Z", "rev2_date": "2017-10-10T23:16:41Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/6dc2f855d8b460c87830d6c0a48b94fb63471bf2...4e36e99aa1c4e59227be3fc58d4410f0af12ddd0", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/puml/PumlDependencyEgdeRendererTest.java", "test_changes": [{"change_id": "265_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_6dc2f85_4e36e99_PumlDependencyEgdeRendererTest", "test_sign": "com/github/ferstl/depgraph/dependency/puml/PumlDependencyEgdeRendererTest.testRenderEdgeToConflictingDependency:()V", "class": "PumlDependencyEgdeRendererTest", "method": "testRenderEdgeToConflictingDependency", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.puml.PumlDependencyEgdeRendererTest#testRenderEdgeToConflictingDependency", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderEdgeToConflictingDependency() throws Exception {\n DependencyNode fromNode = DependencyNodeUtil.createDependencyNode(\"org.springframework\", \"spring-context\", \"4.3.9-RELEASE\");\n DependencyNode toNode = DependencyNodeUtil.createDependencyNodeWithConflict(\"commons-logging\", \"commons-logging\", \"1.1.3\");\n String edgeInfo = this.renderer.render(fromNode, toNode);\n assertEquals(\"{\\\"begin\\\":\\\".[\\\",\\\"end\\\":\\\"].>\\\",\\\"color\\\":\\\"#FF0000\\\",\\\"label\\\":\\\"1.1.3\\\"}\", edgeInfo);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-54"], "old_production_code": "", "new_production_code": "@Override\npublic String render(DependencyNode from, DependencyNode to) {\n NodeResolution resolution = to.getResolution();\n PumlEdgeInfo edgeInfo = new PumlEdgeInfo();\n switch(resolution) {\n case INCLUDED:\n edgeInfo.withBegin(\"-[\").withColor(INCLUDE_COLOR).withEnd(\"]->\").withLabel(\"\");\n break;\n case OMITTED_FOR_CONFLICT:\n edgeInfo.withBegin(\".[\").withColor(CONFLICT_COLOR).withEnd(\"].>\").withLabel(to.getArtifact().getVersion());\n break;\n case OMITTED_FOR_DUPLICATE:\n edgeInfo.withBegin(\".[\").withColor(DUPLICATE_COLOR).withEnd(\"].>\").withLabel(to.getArtifact().getVersion());\n break;\n case OMITTED_FOR_CYCLE:\n default:\n }\n return edgeInfo.toString();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "focal_method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "line_nums_new": "31-63", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.47368421052631576, "branch_coverage_gold": 0.8039, "method_coverage_gold": 5.4945, "line_coverage_gold": 3.0715, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/DependencyNodeUtil.createDependencyNode:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/DependencyNode", "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "com/github/ferstl/depgraph/dependency/DependencyNodeUtil.createDependencyNodeWithConflict:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/DependencyNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "266_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_6dc2f85_4e36e99_PumlDependencyEgdeRendererTest", "test_sign": "com/github/ferstl/depgraph/dependency/puml/PumlDependencyEgdeRendererTest.testRenderEdgeToIncludeDependency:()V", "class": "PumlDependencyEgdeRendererTest", "method": "testRenderEdgeToIncludeDependency", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.puml.PumlDependencyEgdeRendererTest#testRenderEdgeToIncludeDependency", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderEdgeToIncludeDependency() throws Exception {\n DependencyNode fromNode = DependencyNodeUtil.createDependencyNode(\"org.springframework\", \"spring-context\", \"4.3.9-RELEASE\");\n DependencyNode toNode = DependencyNodeUtil.createDependencyNode(\"org.springframework\", \"spring-core\", \"4.3.9-RELEASE\");\n String edgeInfo = this.renderer.render(fromNode, toNode);\n assertEquals(\"{\\\"begin\\\":\\\"-[\\\",\\\"end\\\":\\\"]->\\\",\\\"color\\\":\\\"#000000\\\",\\\"label\\\":\\\"\\\"}\", edgeInfo);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-41"], "old_production_code": "", "new_production_code": "@Override\npublic String render(DependencyNode from, DependencyNode to) {\n NodeResolution resolution = to.getResolution();\n PumlEdgeInfo edgeInfo = new PumlEdgeInfo();\n switch(resolution) {\n case INCLUDED:\n edgeInfo.withBegin(\"-[\").withColor(INCLUDE_COLOR).withEnd(\"]->\").withLabel(\"\");\n break;\n case OMITTED_FOR_CONFLICT:\n edgeInfo.withBegin(\".[\").withColor(CONFLICT_COLOR).withEnd(\"].>\").withLabel(to.getArtifact().getVersion());\n break;\n case OMITTED_FOR_DUPLICATE:\n edgeInfo.withBegin(\".[\").withColor(DUPLICATE_COLOR).withEnd(\"].>\").withLabel(to.getArtifact().getVersion());\n break;\n case OMITTED_FOR_CYCLE:\n default:\n }\n return edgeInfo.toString();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "focal_method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "line_nums_new": "31-63", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.47368421052631576, "branch_coverage_gold": 0.6431, "method_coverage_gold": 4.6703, "line_coverage_gold": 2.7171, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/DependencyNodeUtil.createDependencyNode:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/DependencyNode", "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.render:(Lcom/github/ferstl/depgraph/dependency/DependencyNode;Lcom/github/ferstl/depgraph/dependency/DependencyNode;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/puml/PumlDependencyEgdeRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__FontTest_d3086659", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/FontTest.java", "test_changes": [{"change_id": "309_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FontTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/FontTest.mergeFullToFull:()V", "class": "FontTest", "method": "mergeFullToFull", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.FontTest#mergeFullToFull", "old_test_code": null, "new_test_code": "@Test\npublic void mergeFullToFull() {\n Font other = new Font();\n other.color = \"red\";\n other.size = 12;\n other.name = \"Sans\";\n this.font.merge(other);\n assertEquals(\"red\", this.font.color);\n assertEquals((Integer) 12, this.font.size);\n assertEquals(\"Sans\", this.font.name);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-78"], "old_production_code": "", "new_production_code": "void merge(Font other) {\n this.color = StringUtils.defaultIfBlank(other.color, this.color);\n this.size = other.size != null ? other.size : this.size;\n this.name = StringUtils.defaultIfBlank(other.name, this.name);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1608, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.2953, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "316_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FontTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/FontTest.setAttributes:()V", "class": "FontTest", "method": "setAttributes", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.FontTest#setAttributes", "old_test_code": null, "new_test_code": "@Test\npublic void setAttributes() {\n DotAttributeBuilder builder = new DotAttributeBuilder();\n this.font.setAttributes(builder);\n assertEquals(\"[fontcolor=\\\"blue\\\",fontsize=\\\"10\\\",fontname=\\\"Courier\\\"]\", builder.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-50"], "old_production_code": "", "new_production_code": "DotAttributeBuilder setAttributes(DotAttributeBuilder builder) {\n return builder.fontColor(this.color).fontSize(this.size).fontName(this.name);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "line_nums_new": "27-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 1.6077, "method_coverage_gold": 4.9451, "line_coverage_gold": 2.658, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "325_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FontTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/FontTest.mergeFullToEmpty:()V", "class": "FontTest", "method": "mergeFullToEmpty", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.FontTest#mergeFullToEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void mergeFullToEmpty() {\n this.emptyFont.merge(this.font);\n assertEquals(\"blue\", this.font.color);\n assertEquals((Integer) 10, this.font.size);\n assertEquals(\"Courier\", this.font.name);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-100"], "old_production_code": "", "new_production_code": "void merge(Font other) {\n this.color = StringUtils.defaultIfBlank(other.color, this.color);\n this.size = other.size != null ? other.size : this.size;\n this.name = StringUtils.defaultIfBlank(other.name, this.name);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1608, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.2953, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "329_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FontTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/FontTest.mergeEmptyToFull:()V", "class": "FontTest", "method": "mergeEmptyToFull", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.FontTest#mergeEmptyToFull", "old_test_code": null, "new_test_code": "@Test\npublic void mergeEmptyToFull() {\n this.font.merge(this.emptyFont);\n assertEquals(\"blue\", this.font.color);\n assertEquals((Integer) 10, this.font.size);\n assertEquals(\"Courier\", this.font.name);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-89"], "old_production_code": "", "new_production_code": "void merge(Font other) {\n this.color = StringUtils.defaultIfBlank(other.color, this.color);\n this.size = other.size != null ? other.size : this.size;\n this.name = StringUtils.defaultIfBlank(other.name, this.name);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1608, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.2953, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.merge:(Lcom/github/ferstl/depgraph/dependency/dot/style/Font;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "331_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FontTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/FontTest.setAttributesEmpty:()V", "class": "FontTest", "method": "setAttributesEmpty", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.FontTest#setAttributesEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void setAttributesEmpty() {\n DotAttributeBuilder builder = new DotAttributeBuilder();\n this.emptyFont.setAttributes(builder);\n assertEquals(\"\", builder.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-61"], "old_production_code": "", "new_production_code": "DotAttributeBuilder setAttributes(DotAttributeBuilder builder) {\n return builder.fontColor(this.color).fontSize(this.size).fontName(this.name);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "line_nums_new": "27-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.46153846153846156, "branch_coverage_gold": 0.8039, "method_coverage_gold": 2.4725, "line_coverage_gold": 1.0632, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/Font.setAttributes:(Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/Font.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__NodeTypeResolverTest_3d221d37", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.java", "test_changes": [{"change_id": "311_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_NodeTypeResolverTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.getIdFromValueAndType:()V", "class": "NodeTypeResolverTest", "method": "getIdFromValueAndType", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.NodeTypeResolverTest#getIdFromValueAndType", "old_test_code": null, "new_test_code": "@Test\npublic void getIdFromValueAndType() {\n assertEquals(\"box\", this.resolver.idFromValueAndType(null, Box.class));\n assertEquals(\"polygon\", this.resolver.idFromValueAndType(null, Polygon.class));\n assertEquals(\"ellipse\", this.resolver.idFromValueAndType(null, Ellipse.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-58"], "old_production_code": "", "new_production_code": "@Override\npublic String idFromValueAndType(Object value, Class suggestedType) {\n return suggestedType.getSimpleName().toLowerCase();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValueAndType:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValueAndType:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.1181, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValueAndType:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValueAndType:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "312_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_NodeTypeResolverTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.typeFromId:()V", "class": "NodeTypeResolverTest", "method": "typeFromId", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.NodeTypeResolverTest#typeFromId", "old_test_code": null, "new_test_code": "@Test\npublic void typeFromId() {\n assertEquals(Box.class, this.resolver.typeFromId(null, \"box\").getRawClass());\n assertEquals(Polygon.class, this.resolver.typeFromId(null, \"polygon\").getRawClass());\n assertEquals(Ellipse.class, this.resolver.typeFromId(null, \"ellipse\").getRawClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-39"], "old_production_code": "", "new_production_code": "@Override\npublic JavaType typeFromId(DatabindContext context, String id) {\n try {\n return SimpleType.constructUnsafe(Class.forName(getClass().getPackage().getName() + \".\" + id.substring(0, 1).toUpperCase() + id.substring(1)));\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.1181, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "319_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_NodeTypeResolverTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.typeFromIdForUnknownId:()V", "class": "NodeTypeResolverTest", "method": "typeFromIdForUnknownId", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.NodeTypeResolverTest#typeFromIdForUnknownId", "old_test_code": null, "new_test_code": "@Test(expected = RuntimeException.class)\npublic void typeFromIdForUnknownId() {\n assertEquals(Ellipse.class, this.resolver.typeFromId(null, \"moebius\").getRawClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-44"], "old_production_code": "", "new_production_code": "@Override\npublic JavaType typeFromId(DatabindContext context, String id) {\n try {\n return SimpleType.constructUnsafe(Class.forName(getClass().getPackage().getName() + \".\" + id.substring(0, 1).toUpperCase() + id.substring(1)));\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.1772, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.typeFromId:(Lcom/fasterxml/jackson/databind/DatabindContext;Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JavaType", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "320_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_NodeTypeResolverTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.getIdFromValue:()V", "class": "NodeTypeResolverTest", "method": "getIdFromValue", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.NodeTypeResolverTest#getIdFromValue", "old_test_code": null, "new_test_code": "@Test\npublic void getIdFromValue() {\n assertEquals(\"box\", this.resolver.idFromValue(new Box()));\n assertEquals(\"polygon\", this.resolver.idFromValue(new Polygon()));\n assertEquals(\"ellipse\", this.resolver.idFromValue(new Ellipse()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-51"], "old_production_code": "", "new_production_code": "@Override\npublic String idFromValue(Object value) {\n return idFromValueAndType(value, value != null ? value.getClass() : Box.class);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValue:(Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValue:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1608, "method_coverage_gold": 2.1978, "line_coverage_gold": 1.1813, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValue:(Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.idFromValue:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "327_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_NodeTypeResolverTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolverTest.getMechanism:()V", "class": "NodeTypeResolverTest", "method": "getMechanism", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.NodeTypeResolverTest#getMechanism", "old_test_code": null, "new_test_code": "@Test\npublic void getMechanism() {\n assertEquals(Id.CUSTOM, this.resolver.getMechanism());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-63"], "old_production_code": "", "new_production_code": "@Override\npublic Id getMechanism() {\n return Id.CUSTOM;\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.getMechanism:()Lcom/fasterxml/jackson/annotation/JsonTypeInfo$Id", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.getMechanism:()Lcom/fasterxml/jackson/annotation/JsonTypeInfo$Id", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.1181, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.getMechanism:()Lcom/fasterxml/jackson/annotation/JsonTypeInfo$Id"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.getMechanism:()Lcom/fasterxml/jackson/annotation/JsonTypeInfo$Id", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/NodeTypeResolver.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__StyleConfigurationTest_2be7b483", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.java", "test_changes": [{"change_id": "308_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.nodeAttributesForEmptyConfiguration:()V", "class": "StyleConfigurationTest", "method": "nodeAttributesForEmptyConfiguration", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#nodeAttributesForEmptyConfiguration", "old_test_code": null, "new_test_code": "@Test\npublic void nodeAttributesForEmptyConfiguration() {\n DotAttributeBuilder attributes = this.emptyConfig.nodeAttributes(COMPILE_STYLE_KEY, GROUP_ID, ARTIFACT_ID, VERSION, TYPE, CLASSIFIER_LINUX, SCOPE_COMPILE);\n assertEquals(\"[label=artifactId
1.0.0
jar
linux
compile>]\", attributes.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-113"], "old_production_code": "", "new_production_code": "public DotAttributeBuilder nodeAttributes(StyleKey artifactKey, String groupId, String artifactId, String version, String types, String classifiers, String scopes) {\n AbstractNode node = this.defaultNode;\n for (Entry entry : this.nodeStyles.entrySet()) {\n StyleKey styleKey = entry.getKey();\n if (styleKey.matches(artifactKey)) {\n node = entry.getValue();\n break;\n }\n }\n return node.createAttributes(groupId, artifactId, version, types, scopes, classifiers, node != this.defaultNode);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "135-147", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6470588235294118, "branch_coverage_gold": 3.6977, "method_coverage_gold": 7.6923, "line_coverage_gold": 8.0921, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "313_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.toJson:()V", "class": "StyleConfigurationTest", "method": "toJson", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#toJson", "old_test_code": null, "new_test_code": "@Test\npublic void toJson() throws IOException {\n StyleConfiguration config = StyleConfiguration.load(this.testStyle, this.testOverride);\n String json = config.toJson();\n File configFile = this.tmp.newFile(\"config.json\");\n Files.asCharSink(configFile, UTF_8).write(json);\n StyleConfiguration reloadedConfig = StyleConfiguration.load(new FileSystemStyleResource(configFile.toPath()));\n assertEquals(\"[fontname=\\\"Courier\\\"]\", reloadedConfig.edgeAttributes(NodeResolution.OMITTED_FOR_CONFLICT, SCOPE_PROVIDED, null, null).toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["123-133"], "old_production_code": "", "new_production_code": "public String toJson() {\n ObjectMapper mapper = createObjectMapper();\n try {\n StringWriter w = new StringWriter();\n mapper.writerWithDefaultPrettyPrinter().writeValue(w, this);\n return w.toString();\n } catch (IOException e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.toJson:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.toJson:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "149-158", "dependency_updated": "inserted", "score": 0.7816, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0718}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "51-62", "dependency_updated": "inserted", "score": 0.3096, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1667, "class": 1.0, "tfidf": 0.2118}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "101-133", "dependency_updated": "inserted", "score": 0.2314, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.0714, "class": 1.0, "tfidf": 0.0263}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 7.5563, "method_coverage_gold": 15.9341, "line_coverage_gold": 12.404, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.toJson:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.toJson:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "314_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.edgeAttributesForEmptyConfiguration:()V", "class": "StyleConfigurationTest", "method": "edgeAttributesForEmptyConfiguration", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#edgeAttributesForEmptyConfiguration", "old_test_code": null, "new_test_code": "@Test\npublic void edgeAttributesForEmptyConfiguration() {\n DotAttributeBuilder attributes = this.emptyConfig.edgeAttributes(NodeResolution.INCLUDED, SCOPE_COMPILE, null, null);\n assertEquals(\"\", attributes.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["116-121"], "old_production_code": "", "new_production_code": "public DotAttributeBuilder edgeAttributes(NodeResolution resolution, String targetScope, Artifact from, Artifact to) {\n Edge edge = this.edgeResolutionStyles.get(resolution);\n if (resolution == INCLUDED && this.edgeScopeStyles.containsKey(targetScope)) {\n edge = this.edgeScopeStyles.get(targetScope);\n }\n if (from != null) {\n StyleKey artifactKeyFrom = StyleKey.create(from.getGroupId(), from.getArtifactId(), from.getScope(), from.getType(), from.getVersion());\n for (Entry entry : this.edgeNodeStylesFrom.entrySet()) {\n StyleKey styleKey = entry.getKey();\n if (styleKey.matches(artifactKeyFrom)) {\n edge = entry.getValue();\n break;\n }\n }\n }\n if (to != null) {\n StyleKey artifactKeyTo = StyleKey.create(to.getGroupId(), to.getArtifactId(), to.getScope(), to.getType(), to.getVersion());\n for (Entry entry : this.edgeNodeStylesTo.entrySet()) {\n StyleKey styleKey = entry.getKey();\n if (styleKey.matches(artifactKeyTo)) {\n edge = entry.getValue();\n break;\n }\n }\n }\n return edge != null ? edge.createAttributes() : new DotAttributeBuilder();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "101-133", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2413793103448276, "branch_coverage_gold": 1.7685, "method_coverage_gold": 3.5714, "line_coverage_gold": 3.4259, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "321_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.defaultNodeAttributesForEmptyConfiguration:()V", "class": "StyleConfigurationTest", "method": "defaultNodeAttributesForEmptyConfiguration", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#defaultNodeAttributesForEmptyConfiguration", "old_test_code": null, "new_test_code": "@Test\npublic void defaultNodeAttributesForEmptyConfiguration() {\n DotAttributeBuilder attributes = this.emptyConfig.defaultNodeAttributes();\n assertEquals(\"[shape=\\\"box\\\"]\", attributes.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-99"], "old_production_code": "", "new_production_code": "public DotAttributeBuilder defaultNodeAttributes() {\n return this.defaultNode.createAttributes();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "93-95", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 2.7331, "method_coverage_gold": 8.5165, "line_coverage_gold": 5.7885, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "323_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.load:()V", "class": "StyleConfigurationTest", "method": "load", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#load", "old_test_code": null, "new_test_code": "@Test\npublic void load() {\n StyleConfiguration config = StyleConfiguration.load(this.testStyle);\n assertEquals(\"[shape=\\\"polygon\\\",color=\\\"black\\\",fontname=\\\"Courier\\\",fontsize=\\\"14\\\",fontcolor=\\\"green\\\",sides=\\\"8\\\"]\", config.defaultNodeAttributes().toString());\n assertEquals(\"[style=\\\"dotted\\\",color=\\\"blue\\\"]\", config.defaultEdgeAttributes().toString());\n assertEquals(\"\", config.edgeAttributes(NodeResolution.INCLUDED, SCOPE_COMPILE, null, null).toString());\n assertEquals(\"[style=\\\"dotted\\\",color=\\\"gray\\\"]\", config.edgeAttributes(NodeResolution.INCLUDED, SCOPE_TEST, null, null).toString());\n assertEquals(\"[style=\\\"dashed\\\"]\", config.edgeAttributes(NodeResolution.OMITTED_FOR_DUPLICATE, SCOPE_COMPILE, null, null).toString());\n assertEquals(\"[label=artifactId
1.0.0
jar
compile>]\", config.nodeAttributes(COMPILE_STYLE_KEY, GROUP_ID, ARTIFACT_ID, VERSION, TYPE, CLASSIFIER_DEFAULT, SCOPE_COMPILE).toString());\n assertEquals(\"[shape=\\\"box\\\",style=\\\"filled\\\",fillcolor=\\\"orange\\\",label=artifactId
1.0.0
jar
linux
test>]\", config.nodeAttributes(TEST_STYLE_KEY, GROUP_ID, ARTIFACT_ID, VERSION, TYPE, CLASSIFIER_LINUX, SCOPE_TEST).toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-77"], "old_production_code": "", "new_production_code": "public static StyleConfiguration load(StyleResource mainConfig, StyleResource... overrides) {\n ObjectMapper mapper = createObjectMapper();\n ObjectReader reader = mapper.readerFor(StyleConfiguration.class);\n StyleConfiguration styleConfiguration = readConfig(reader, mainConfig);\n for (StyleResource override : overrides) {\n StyleConfiguration overrideConfig = readConfig(reader, override);\n styleConfiguration.merge(overrideConfig);\n }\n return styleConfiguration;\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "51-62", "dependency_updated": "inserted", "score": 0.7757, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0466}}, {"dep_id": 4, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "135-147", "dependency_updated": "inserted", "score": 0.2442, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0305}}, {"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "93-95", "dependency_updated": "inserted", "score": 0.2401, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.0132}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "97-99", "dependency_updated": "inserted", "score": 0.2238, "signal_scores": {"nc": 0.0, "lcs_u": 0.0952, "ed": 0.0952, "class": 1.0, "tfidf": 0.0132}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "101-133", "dependency_updated": "inserted", "score": 0.2205, "signal_scores": {"nc": 0.0, "lcs_u": 0.0714, "ed": 0.0714, "class": 1.0, "tfidf": 0.0338}}], "coverage_gold": 0.6521739130434783, "branch_coverage_gold": 10.1286, "method_coverage_gold": 19.2308, "line_coverage_gold": 14.6486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "324_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.defaultEdgeAttributesForEmptyConfiguration:()V", "class": "StyleConfigurationTest", "method": "defaultEdgeAttributesForEmptyConfiguration", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#defaultEdgeAttributesForEmptyConfiguration", "old_test_code": null, "new_test_code": "@Test\npublic void defaultEdgeAttributesForEmptyConfiguration() {\n DotAttributeBuilder attributes = this.emptyConfig.defaultEdgeAttributes();\n assertEquals(\"\", attributes.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-106"], "old_production_code": "", "new_production_code": "public DotAttributeBuilder defaultEdgeAttributes() {\n return this.defaultEdge.createAttributes();\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "97-99", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3, "branch_coverage_gold": 1.6077, "method_coverage_gold": 6.044, "line_coverage_gold": 4.0165, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "328_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_StyleConfigurationTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfigurationTest.loadWithOverride:()V", "class": "StyleConfigurationTest", "method": "loadWithOverride", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleConfigurationTest#loadWithOverride", "old_test_code": null, "new_test_code": "@Test\npublic void loadWithOverride() {\n StyleConfiguration config = StyleConfiguration.load(this.testStyle, this.testOverride);\n assertEquals(\"[rankdir=\\\"LR\\\"]\", config.graphAttributes().toString());\n assertEquals(\"[shape=\\\"ellipse\\\",color=\\\"black\\\",fontname=\\\"Courier\\\",fontsize=\\\"14\\\",fontcolor=\\\"green\\\"]\", config.defaultNodeAttributes().toString());\n assertEquals(\"[style=\\\"dashed\\\",color=\\\"blue\\\"]\", config.defaultEdgeAttributes().toString());\n assertEquals(\"[style=\\\"dotted\\\",color=\\\"blue\\\"]\", config.edgeAttributes(NodeResolution.INCLUDED, SCOPE_TEST, null, null).toString());\n assertEquals(\"[style=\\\"dashed\\\",color=\\\"green\\\"]\", config.edgeAttributes(NodeResolution.OMITTED_FOR_DUPLICATE, SCOPE_TEST, null, null).toString());\n assertEquals(\"[fontname=\\\"Courier\\\"]\", config.edgeAttributes(NodeResolution.OMITTED_FOR_CONFLICT, StyleConfigurationTest.SCOPE_PROVIDED, null, null).toString());\n assertEquals(\"[shape=\\\"box\\\",style=\\\"filled\\\",color=\\\"red\\\",fillcolor=\\\"orange\\\",label=artifactId
1.0.0
jar
test>]\", config.nodeAttributes(TEST_STYLE_KEY, GROUP_ID, ARTIFACT_ID, VERSION, TYPE, CLASSIFIER_DEFAULT, SCOPE_TEST).toString());\n assertEquals(\"[shape=\\\"box\\\",color=\\\"blue\\\",label=artifactId
1.0.0
jar
linux
provided>]\", config.nodeAttributes(PROVIDED_STYLE_KEY, GROUP_ID, ARTIFACT_ID, VERSION, TYPE, CLASSIFIER_LINUX, SCOPE_PROVIDED).toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-92"], "old_production_code": "", "new_production_code": "public static StyleConfiguration load(StyleResource mainConfig, StyleResource... overrides) {\n ObjectMapper mapper = createObjectMapper();\n ObjectReader reader = mapper.readerFor(StyleConfiguration.class);\n StyleConfiguration styleConfiguration = readConfig(reader, mainConfig);\n for (StyleResource override : overrides) {\n StyleConfiguration overrideConfig = readConfig(reader, override);\n styleConfiguration.merge(overrideConfig);\n }\n return styleConfiguration;\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "51-62", "dependency_updated": "inserted", "score": 0.4151, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.25, "class": 1.0, "tfidf": 0.0393}}, {"dep_id": 3, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "135-147", "dependency_updated": "inserted", "score": 0.3012, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1875, "class": 1.0, "tfidf": 0.0274}}, {"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "93-95", "dependency_updated": "inserted", "score": 0.2969, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2857, "class": 1.0, "tfidf": 0.0119}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "97-99", "dependency_updated": "inserted", "score": 0.2807, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.2381, "class": 1.0, "tfidf": 0.0119}}, {"dep_id": 5, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.graphAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.2704, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.125, "class": 1.0, "tfidf": 0.0119}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "101-133", "dependency_updated": "inserted", "score": 0.2684, "signal_scores": {"nc": 0.0, "lcs_u": 0.3571, "ed": 0.0625, "class": 1.0, "tfidf": 0.029}}], "coverage_gold": 0.6808510638297872, "branch_coverage_gold": 12.701, "method_coverage_gold": 21.7033, "line_coverage_gold": 18.4288, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.graphAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "com/github/ferstl/depgraph/graph/dot/DotAttributeBuilder.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultNodeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.edgeAttributes:(Lcom/github/ferstl/depgraph/dependency/NodeResolution;Ljava/lang/String;Lorg/apache/maven/artifact/Artifact;Lorg/apache/maven/artifact/Artifact;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.defaultEdgeAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.nodeAttributes:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.graphAttributes:()Lcom/github/ferstl/depgraph/graph/dot/DotAttributeBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__AbstractStyleResourceTest_9709e37b", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/resource/AbstractStyleResourceTest.java", "test_changes": [{"change_id": "315_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_AbstractStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/AbstractStyleResourceTest.openStreamOnExistingResource:()V", "class": "AbstractStyleResourceTest", "method": "openStreamOnExistingResource", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.AbstractStyleResourceTest#openStreamOnExistingResource", "old_test_code": null, "new_test_code": "@Test\npublic void openStreamOnExistingResource() {\n try (InputStream is = this.existingResource.openStream()) {\n assertNotNull(is);\n } catch (IOException e) {\n throw new RuntimeException();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-49"], "old_production_code": "", "new_production_code": "@Override\npublic InputStream openStream() throws IOException {\n return Files.newInputStream(this.location, StandardOpenOption.READ);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "line_nums_new": "38-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "317_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_AbstractStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/AbstractStyleResourceTest.openStreamOnNonExistingResource:()V", "class": "AbstractStyleResourceTest", "method": "openStreamOnNonExistingResource", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.AbstractStyleResourceTest#openStreamOnNonExistingResource", "old_test_code": null, "new_test_code": "@Test(expected = IOException.class)\npublic void openStreamOnNonExistingResource() throws IOException {\n try (InputStream is = this.nonExistingResource.openStream()) {\n fail(\"There should not be a stream on an inexistent resource.\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-61"], "old_production_code": "", "new_production_code": "@Override\npublic InputStream openStream() throws IOException {\n return Files.newInputStream(this.location, StandardOpenOption.READ);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "line_nums_new": "38-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.openStream:()Ljava/io/InputStream", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "322_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_AbstractStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/AbstractStyleResourceTest.existsOnExistingResource:()V", "class": "AbstractStyleResourceTest", "method": "existsOnExistingResource", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.AbstractStyleResourceTest#existsOnExistingResource", "old_test_code": null, "new_test_code": "@Test\npublic void existsOnExistingResource() {\n assertTrue(this.existingResource.exists());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "@Override\npublic boolean exists() {\n return Files.exists(this.location);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "332_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_AbstractStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/AbstractStyleResourceTest.existsOnNonExistingResource:()V", "class": "AbstractStyleResourceTest", "method": "existsOnNonExistingResource", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.AbstractStyleResourceTest#existsOnNonExistingResource", "old_test_code": null, "new_test_code": "@Test\npublic void existsOnNonExistingResource() {\n assertFalse(this.nonExistingResource.exists());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-54"], "old_production_code": "", "new_production_code": "@Override\npublic boolean exists() {\n return Files.exists(this.location);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.exists:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__BuiltInStyleResourceTest_958b28b6", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResourceTest.java", "test_changes": [{"change_id": "310_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_BuiltInStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResourceTest.resourcesExistAndCanBeLoaded:()V", "class": "BuiltInStyleResourceTest", "method": "resourcesExistAndCanBeLoaded", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.BuiltInStyleResourceTest#resourcesExistAndCanBeLoaded", "old_test_code": null, "new_test_code": "@Test\npublic void resourcesExistAndCanBeLoaded() {\n ClasspathStyleResource styleResource = this.resource.createStyleResource(getClass().getClassLoader());\n assertTrue(\"Style configuration \" + this.resource + \" does not exist.\", styleResource.exists());\n StyleConfiguration.load(styleResource);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-46"], "old_production_code": "", "new_production_code": "public ClasspathStyleResource createStyleResource(ClassLoader classLoader) {\n return new ClasspathStyleResource(this.styleConfig, classLoader);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.createStyleResource:(Ljava/lang/ClassLoader;)Lcom/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.createStyleResource:(Ljava/lang/ClassLoader;)Lcom/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.3173, "signal_scores": {"nc": 0.0, "lcs_u": 0.4211, "ed": 0.2143, "class": 1.0, "tfidf": 0.0825}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "line_nums_new": "51-62", "dependency_updated": "inserted", "score": 0.2517, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1429, "class": 0.0, "tfidf": 0.2199}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.exists:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.java", "line_nums_new": "32-35", "dependency_updated": "inserted", "score": 0.1861, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1786, "class": 0.0, "tfidf": 0.0411}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.4823, "method_coverage_gold": 5.7692, "line_coverage_gold": 3.8984, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.exists:()Z", "com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.createStyleResource:(Ljava/lang/ClassLoader;)Lcom/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.createStyleResource:(Ljava/lang/ClassLoader;)Lcom/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/BuiltInStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.exists:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.load:(Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;[Lcom/github/ferstl/depgraph/dependency/dot/style/resource/StyleResource;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__ClasspathStyleResourceTest_363d3698", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResourceTest.java", "test_changes": [{"change_id": "318_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_ClasspathStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResourceTest.toStringTest:()V", "class": "ClasspathStyleResourceTest", "method": "toStringTest", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.ClasspathStyleResourceTest#toStringTest", "old_test_code": null, "new_test_code": "@Test\npublic void toStringTest() {\n assertEquals(\"classpath:default-style.json\", this.existingResource.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-33"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return \"classpath:\" + this.name;\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.java", "line_nums_new": "47-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.2953, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/ClasspathStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_7831bcc__FileSystemStyleResourceTest_363d3698", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "7831bcc2c59a5b98341f25dd16847c7e12b4d866", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:10:35Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...7831bcc2c59a5b98341f25dd16847c7e12b4d866", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResourceTest.java", "test_changes": [{"change_id": "326_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_7831bcc_FileSystemStyleResourceTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResourceTest.toStringTest:()V", "class": "FileSystemStyleResourceTest", "method": "toStringTest", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.resource.FileSystemStyleResourceTest#toStringTest", "old_test_code": null, "new_test_code": "@Test\npublic void toStringTest() {\n Path path = Paths.get(\"src/main/resources/default-style.json\");\n assertEquals(\"file:\" + path.toString(), this.existingResource.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-35"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return \"file:\" + this.location;\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "line_nums_new": "43-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.2363, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/resource/FileSystemStyleResource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__8ae2c45_c2f4aec__StyleKeyTest_dfd5fdab", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d", "rev2": "c2f4aecb6e6fe94b9ab5d0f1adc12bdbe7380f9e", "rev1_date": "2017-10-10T23:09:55Z", "rev2_date": "2017-10-10T23:13:08Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/8ae2c45d5502baaecc7252c6d8ef0d5d2b183e3d...c2f4aecb6e6fe94b9ab5d0f1adc12bdbe7380f9e", "test_file": "src/test/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.java", "test_changes": [{"change_id": "276_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.equalsAndHashCode:()V", "class": "StyleKeyTest", "method": "equalsAndHashCode", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#equalsAndHashCode", "old_test_code": null, "new_test_code": "@Test\npublic void equalsAndHashCode() {\n StyleKey groupIdEqual = StyleKey.fromString(\"group.id\");\n StyleKey groupIdDifferent = StyleKey.fromString(\"group.id2\");\n assertEquals(this.groupId, groupIdEqual);\n assertEquals(groupIdEqual, this.groupId);\n assertNotEquals(this.groupId, groupIdDifferent);\n assertNotEquals(groupIdDifferent, this.groupId);\n assertEquals(this.artifactId, this.artifactId);\n assertNotEquals(this.version, \"something else\");\n assertEquals(this.groupId.hashCode(), groupIdEqual.hashCode());\n assertNotEquals(this.artifactId.hashCode(), this.scope.hashCode());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-110"], "old_production_code": "", "new_production_code": "@Override\npublic int hashCode() {\n return Objects.hash(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.hashCode:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.hashCode:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "94-97", "dependency_updated": "inserted", "score": 0.5035, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4706, "class": 1.0, "tfidf": 0.2605}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "75-92", "dependency_updated": "inserted", "score": 0.454, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3529, "class": 1.0, "tfidf": 0.1326}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.2598, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0588, "class": 1.0, "tfidf": 0.113}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.4116, "method_coverage_gold": 1.0989, "line_coverage_gold": 1.5357, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.equals:(Ljava/lang/Object;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.hashCode:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "277_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.create:()V", "class": "StyleKeyTest", "method": "create", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#create", "old_test_code": null, "new_test_code": "@Test\npublic void create() {\n StyleKey key = StyleKey.create(\"groupId\", \"artifactId\", \"scope\", \"type\", \"version\");\n assertEquals(\"groupId,artifactId,scope,type,version\", key.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-86"], "old_production_code": "", "new_production_code": "public static StyleKey create(String groupId, String artifactId, String scope, String type, String version) {\n return new StyleKey(new String[] { groupId, artifactId, scope, type, version });\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.8612, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.4101}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": 0.3034, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 1.0, "tfidf": 0.3958}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 1.0989, "line_coverage_gold": 1.0041, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "278_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.matchesForGroupId:()V", "class": "StyleKeyTest", "method": "matchesForGroupId", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#matchesForGroupId", "old_test_code": null, "new_test_code": "@Test\npublic void matchesForGroupId() {\n StyleKey wildcard = StyleKey.fromString(\"group.id*\");\n assertTrue(this.groupId.matches(this.groupId));\n assertTrue(wildcard.matches(this.groupId));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-118"], "old_production_code": "", "new_production_code": "public boolean matches(StyleKey other) {\n return (wildcardMatch(this.groupId, other.groupId)) && (wildcardMatch(this.artifactId, other.artifactId)) && (match(this.scope, other.scope)) && (match(this.type, other.type)) && (wildcardMatch(this.version, other.version));\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.4636, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 1.0, "tfidf": 0.132}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.307, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1176, "class": 1.0, "tfidf": 0.1224}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.4116, "method_coverage_gold": 1.3736, "line_coverage_gold": 1.4176, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "279_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringWithTypeOnly:()V", "class": "StyleKeyTest", "method": "fromStringWithTypeOnly", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringWithTypeOnly", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringWithTypeOnly() {\n assertEquals(\",,,type,\", this.type.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-62"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return Joiner.on(\",\").join(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "280_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringWithArtifactIdOnly:()V", "class": "StyleKeyTest", "method": "fromStringWithArtifactIdOnly", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringWithArtifactIdOnly", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringWithArtifactIdOnly() {\n assertEquals(\",artifactId,,,\", this.artifactId.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-52"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return Joiner.on(\",\").join(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "281_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.matchesForVersion:()V", "class": "StyleKeyTest", "method": "matchesForVersion", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#matchesForVersion", "old_test_code": null, "new_test_code": "@Test\npublic void matchesForVersion() {\n StyleKey wildcard = StyleKey.fromString(\",,,,version*\");\n assertTrue(this.version.matches(this.version));\n assertTrue(wildcard.matches(this.version));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["144-150"], "old_production_code": "", "new_production_code": "public boolean matches(StyleKey other) {\n return (wildcardMatch(this.groupId, other.groupId)) && (wildcardMatch(this.artifactId, other.artifactId)) && (match(this.scope, other.scope)) && (match(this.type, other.type)) && (wildcardMatch(this.version, other.version));\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.4686, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4118, "class": 1.0, "tfidf": 0.1531}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.332, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1765, "class": 1.0, "tfidf": 0.1126}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.4116, "method_coverage_gold": 1.3736, "line_coverage_gold": 1.4176, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "282_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringWithGroupIdOnly:()V", "class": "StyleKeyTest", "method": "fromStringWithGroupIdOnly", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringWithGroupIdOnly", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringWithGroupIdOnly() {\n assertEquals(\"group.id,,,,\", this.groupId.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-47"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return Joiner.on(\",\").join(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "283_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringEmpty:()V", "class": "StyleKeyTest", "method": "fromStringEmpty", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringEmpty() {\n StyleKey key = StyleKey.fromString(\"\");\n assertEquals(\",,,,\", key.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-74"], "old_production_code": "", "new_production_code": "public static StyleKey fromString(String keyString) {\n String[] parts = keyString.split(\",\");\n return new StyleKey(parts);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.5211, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6667, "class": 1.0, "tfidf": 0.1979}}, {"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": 0.4299, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.4667, "class": 1.0, "tfidf": 0.0442}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "284_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.createWithNullValues:()V", "class": "StyleKeyTest", "method": "createWithNullValues", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#createWithNullValues", "old_test_code": null, "new_test_code": "@Test\npublic void createWithNullValues() {\n StyleKey key = StyleKey.create(null, null, null, null, null);\n assertEquals(\",,,,\", key.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-93"], "old_production_code": "", "new_production_code": "public static StyleKey create(String groupId, String artifactId, String scope, String type, String version) {\n return new StyleKey(new String[] { groupId, artifactId, scope, type, version });\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.4272, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3, "class": 1.0, "tfidf": 0.0555}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": 0.2851, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.15, "class": 1.0, "tfidf": 0.0255}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 1.0989, "line_coverage_gold": 1.0041, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.create:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "285_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.matchesForScope:()V", "class": "StyleKeyTest", "method": "matchesForScope", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#matchesForScope", "old_test_code": null, "new_test_code": "@Test\npublic void matchesForScope() {\n StyleKey unsupportedWildcard = StyleKey.fromString(\",,scope*\");\n assertTrue(this.scope.matches(this.scope));\n assertFalse(unsupportedWildcard.matches(this.scope));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["128-134"], "old_production_code": "", "new_production_code": "public boolean matches(StyleKey other) {\n return (wildcardMatch(this.groupId, other.groupId)) && (wildcardMatch(this.artifactId, other.artifactId)) && (match(this.scope, other.scope)) && (match(this.type, other.type)) && (wildcardMatch(this.version, other.version));\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.4792, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4667, "class": 1.0, "tfidf": 0.1601}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.2905, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1333, "class": 1.0, "tfidf": 0.1162}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5723, "method_coverage_gold": 1.3736, "line_coverage_gold": 1.3585, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "286_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringTooManyParts:()V", "class": "StyleKeyTest", "method": "fromStringTooManyParts", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringTooManyParts", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void fromStringTooManyParts() {\n StyleKey.fromString(\"groupId,artifactId,scope,type,version,something,else\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-79"], "old_production_code": "", "new_production_code": "public static StyleKey fromString(String keyString) {\n String[] parts = keyString.split(\",\");\n return new StyleKey(parts);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9646, "method_coverage_gold": 0.5495, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "287_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringWithScopeOnly:()V", "class": "StyleKeyTest", "method": "fromStringWithScopeOnly", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringWithScopeOnly", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringWithScopeOnly() {\n assertEquals(\",,scope,,\", this.scope.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-57"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return Joiner.on(\",\").join(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "288_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.matchesForType:()V", "class": "StyleKeyTest", "method": "matchesForType", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#matchesForType", "old_test_code": null, "new_test_code": "@Test\npublic void matchesForType() {\n StyleKey unsupportedWildcard = StyleKey.fromString(\",,,type*\");\n assertTrue(this.type.matches(this.type));\n assertFalse(unsupportedWildcard.matches(this.type));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-142"], "old_production_code": "", "new_production_code": "public boolean matches(StyleKey other) {\n return (wildcardMatch(this.groupId, other.groupId)) && (wildcardMatch(this.artifactId, other.artifactId)) && (match(this.scope, other.scope)) && (match(this.type, other.type)) && (wildcardMatch(this.version, other.version));\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.4847, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1601}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.2921, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1429, "class": 1.0, "tfidf": 0.1162}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5723, "method_coverage_gold": 1.3736, "line_coverage_gold": 1.3585, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "289_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.fromStringWithVersionOnly:()V", "class": "StyleKeyTest", "method": "fromStringWithVersionOnly", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#fromStringWithVersionOnly", "old_test_code": null, "new_test_code": "@Test\npublic void fromStringWithVersionOnly() {\n assertEquals(\",,,,version\", this.version.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-67"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return Joiner.on(\",\").join(this.groupId, this.artifactId, this.scope, this.type, this.version);\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "99-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8039, "method_coverage_gold": 0.8242, "line_coverage_gold": 0.9451, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "290_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_8ae2c45_c2f4aec_StyleKeyTest", "test_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKeyTest.matchesForArtifactId:()V", "class": "StyleKeyTest", "method": "matchesForArtifactId", "module": "", "junit_selector": "com.github.ferstl.depgraph.dependency.dot.style.StyleKeyTest#matchesForArtifactId", "old_test_code": null, "new_test_code": "@Test\npublic void matchesForArtifactId() {\n StyleKey wildcard = StyleKey.fromString(\",artifactId*\");\n assertTrue(this.artifactId.matches(this.artifactId));\n assertTrue(wildcard.matches(this.artifactId));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["120-126"], "old_production_code": "", "new_production_code": "public boolean matches(StyleKey other) {\n return (wildcardMatch(this.groupId, other.groupId)) && (wildcardMatch(this.artifactId, other.artifactId)) && (match(this.scope, other.scope)) && (match(this.type, other.type)) && (wildcardMatch(this.version, other.version));\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "focal_method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "66-73", "dependency_updated": "inserted", "score": 0.4584, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.35, "class": 1.0, "tfidf": 0.1531}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.31, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.15, "class": 1.0, "tfidf": 0.1126}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.4116, "method_coverage_gold": 1.3736, "line_coverage_gold": 1.4176, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["7831bcc2c59a5b98341f25dd16847c7e12b4d866"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.matches:(Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/dependency/dot/style/StyleKey.fromString:(Ljava/lang/String;)Lcom/github/ferstl/depgraph/dependency/dot/style/StyleKey", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/dependency/dot/style/StyleKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3__9fa8088_c00c183__GraphBuilderTest_a6bc4ca7", "project_name": "ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3", "git_clone_url": "https://github.com/ferstl/depgraph-maven-plugin.git", "rev1": "9fa80883be3aa7f839fe75d6fdb58d0e48e23202", "rev2": "c00c18376b10a4649c889b1b7afc0c476bfde838", "rev1_date": "2018-08-07T20:34:14Z", "rev2_date": "2018-08-07T20:34:19Z", "git_diff_url": "https://github.com/ferstl/depgraph-maven-plugin/compare/9fa80883be3aa7f839fe75d6fdb58d0e48e23202...c00c18376b10a4649c889b1b7afc0c476bfde838", "test_file": "src/test/java/com/github/ferstl/depgraph/graph/GraphBuilderTest.java", "test_changes": [{"change_id": "272_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_9fa8088_c00c183_GraphBuilderTest", "test_sign": "com/github/ferstl/depgraph/graph/GraphBuilderTest.reduceEdgesWithCycle:()V", "class": "GraphBuilderTest", "method": "reduceEdgesWithCycle", "module": "", "junit_selector": "com.github.ferstl.depgraph.graph.GraphBuilderTest#reduceEdgesWithCycle", "old_test_code": null, "new_test_code": "@Test\npublic void reduceEdgesWithCycle() {\n this.graphBuilder.addEdge(\"A\", \"B\");\n this.graphBuilder.addEdge(\"B\", \"C\");\n this.graphBuilder.addEdge(\"A\", \"C\");\n this.graphBuilder.addEdge(\"C\", \"A\");\n this.graphBuilder.reduceEdges();\n this.graphBuilder.toString();\n assertThat(this.formatter.edges, containsInAnyOrder(new Edge(\"A\", \"B\", \"\"), new Edge(\"B\", \"C\", \"\"), new Edge(\"C\", \"A\", \"\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["284-302"], "old_production_code": "", "new_production_code": "public void reduceEdges() {\n Iterator edgeIterator = this.edges.iterator();\n while (edgeIterator.hasNext()) {\n Edge edge = edgeIterator.next();\n if (!edge.isPermanent() && this.reachabilityMap.hasOlderPath(edge.getToNodeId(), edge.getFromNodeId())) {\n edgeIterator.remove();\n }\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "focal_method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "135-143", "dependency_updated": "inserted", "score": 0.4988, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.55, "class": 1.0, "tfidf": 0.1848}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_old": "121-130", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "112-114", "dependency_updated": "updated", "score": 0.3555, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.25, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.3701, "method_coverage_gold": 12.1622, "line_coverage_gold": 8.0422, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/graph/GraphBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/graph/Edge.equals:(Ljava/lang/Object;)Z", "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "274_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_9fa8088_c00c183_GraphBuilderTest", "test_sign": "com/github/ferstl/depgraph/graph/GraphBuilderTest.reduceEdges:()V", "class": "GraphBuilderTest", "method": "reduceEdges", "module": "", "junit_selector": "com.github.ferstl.depgraph.graph.GraphBuilderTest#reduceEdges", "old_test_code": null, "new_test_code": "@Test\npublic void reduceEdges() {\n this.graphBuilder.addEdge(\"A\", \"B\");\n this.graphBuilder.addEdge(\"B\", \"C\");\n this.graphBuilder.addEdge(\"A\", \"C\");\n this.graphBuilder.reduceEdges();\n this.graphBuilder.toString();\n assertThat(this.formatter.edges, containsInAnyOrder(new Edge(\"A\", \"B\", \"\"), new Edge(\"B\", \"C\", \"\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["247-263"], "old_production_code": "", "new_production_code": "public void reduceEdges() {\n Iterator edgeIterator = this.edges.iterator();\n while (edgeIterator.hasNext()) {\n Edge edge = edgeIterator.next();\n if (!edge.isPermanent() && this.reachabilityMap.hasOlderPath(edge.getToNodeId(), edge.getFromNodeId())) {\n edgeIterator.remove();\n }\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "focal_method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "135-143", "dependency_updated": "inserted", "score": 0.8041, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1674}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_old": "121-130", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "112-114", "dependency_updated": "updated", "score": 0.3891, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4545, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.3701, "method_coverage_gold": 12.1622, "line_coverage_gold": 8.0422, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/graph/GraphBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/graph/Edge.equals:(Ljava/lang/Object;)Z", "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "275_ferstl_depgraph-maven-plugin-depgraph-maven-plugin-4.0.3_9fa8088_c00c183_GraphBuilderTest", "test_sign": "com/github/ferstl/depgraph/graph/GraphBuilderTest.reduceEdgesWithPermanentEdge:()V", "class": "GraphBuilderTest", "method": "reduceEdgesWithPermanentEdge", "module": "", "junit_selector": "com.github.ferstl.depgraph.graph.GraphBuilderTest#reduceEdgesWithPermanentEdge", "old_test_code": null, "new_test_code": "@Test\npublic void reduceEdgesWithPermanentEdge() {\n this.graphBuilder.addEdge(\"A\", \"B\");\n this.graphBuilder.addEdge(\"B\", \"C\");\n this.graphBuilder.addPermanentEdge(\"A\", \"C\");\n this.graphBuilder.reduceEdges();\n this.graphBuilder.toString();\n assertThat(this.formatter.edges, containsInAnyOrder(new Edge(\"A\", \"B\", \"\"), new Edge(\"B\", \"C\", \"\"), new Edge(\"A\", \"C\", \"\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["265-282"], "old_production_code": "", "new_production_code": "public void reduceEdges() {\n Iterator edgeIterator = this.edges.iterator();\n while (edgeIterator.hasNext()) {\n Edge edge = edgeIterator.next();\n if (!edge.isPermanent() && this.reachabilityMap.hasOlderPath(edge.getToNodeId(), edge.getFromNodeId())) {\n edgeIterator.remove();\n }\n }\n}", "focal_file_path": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "focal_method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "135-143", "dependency_updated": "inserted", "score": 0.4832, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3929, "class": 1.0, "tfidf": 0.2285}}, {"dep_id": 1, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addPermanentEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "116-118", "dependency_updated": "inserted", "score": 0.4805, "signal_scores": {"nc": 0.0, "lcs_u": 0.9375, "ed": 0.5357, "class": 1.0, "tfidf": 0.1642}}, {"dep_id": 2, "method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_old": "121-130", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "line_nums_new": "112-114", "dependency_updated": "updated", "score": 0.3748, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.2143, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.9545454545454546, "branch_coverage_gold": 4.6444, "method_coverage_gold": 12.1622, "line_coverage_gold": 7.6539, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/ferstl/depgraph/graph/GraphBuilder.toString:()Ljava/lang/String", "com/github/ferstl/depgraph/graph/GraphBuilder.addPermanentEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "com/github/ferstl/depgraph/graph/Edge.equals:(Ljava/lang/Object;)Z", "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.reduceEdges:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addPermanentEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/ferstl/depgraph/graph/GraphBuilder.addEdge:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/ferstl/depgraph/graph/GraphBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "file_path_new": "src/main/java/com/github/ferstl/depgraph/graph/GraphBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "depgraph-maven-plugin-4.0.3", "java_version": 8} {"task_id": "firebase_firebase-admin-java-v9.7.1__7bc8c12_af8eed9__ApiClientUtilsTest_9b2cbe4c", "project_name": "firebase_firebase-admin-java-v9.7.1", "git_clone_url": "https://github.com/firebase/firebase-admin-java.git", "rev1": "7bc8c12270526a85b4a17783fd4aaef1cc711a8c", "rev2": "af8eed95b3d49fc7b31d1462c86ecad924a2ffb7", "rev1_date": "2025-01-23T18:30:14Z", "rev2_date": "2025-01-23T18:56:52Z", "git_diff_url": "https://github.com/firebase/firebase-admin-java/compare/7bc8c12270526a85b4a17783fd4aaef1cc711a8c...af8eed95b3d49fc7b31d1462c86ecad924a2ffb7", "test_file": "src/test/java/com/google/firebase/internal/ApiClientUtilsTest.java", "test_changes": [{"change_id": "624_firebase_firebase-admin-java-v9.7.1_7bc8c12_af8eed9_ApiClientUtilsTest", "test_sign": "com/google/firebase/internal/ApiClientUtilsTest.testVerifyDefaultTransportReused:()V", "class": "ApiClientUtilsTest", "method": "testVerifyDefaultTransportReused", "module": "", "junit_selector": "com.google.firebase.internal.ApiClientUtilsTest#testVerifyDefaultTransportReused", "old_test_code": null, "new_test_code": "@Test\npublic void testVerifyDefaultTransportReused() {\n HttpTransport t1 = ApiClientUtils.getDefaultTransport();\n HttpTransport t2 = ApiClientUtils.getDefaultTransport();\n assertEquals(t1, t2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["133-138"], "old_production_code": "public static HttpTransport getDefaultTransport() {\n return new ApacheHttp2Transport();\n}", "new_production_code": "public static HttpTransport getDefaultTransport() {\n return TransportInstanceHolder.INSTANCE;\n}", "focal_file_path": "src/main/java/com/google/firebase/internal/ApiClientUtils.java", "focal_method_sign": "com/google/firebase/internal/ApiClientUtils.getDefaultTransport:()Lcom/google/api/client/http/HttpTransport", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/google/firebase/internal/ApiClientUtils.getDefaultTransport:()Lcom/google/api/client/http/HttpTransport", "file_path_old": "src/main/java/com/google/firebase/internal/ApiClientUtils.java", "line_nums_old": "90-92", "file_path_new": "src/main/java/com/google/firebase/internal/ApiClientUtils.java", "line_nums_new": "90-92", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2051, "method_coverage_gold": 0.7294, "line_coverage_gold": 0.8236, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/firebase/internal/ApiClientUtilsTest.tearDown:()V", "com/google/firebase/internal/ApiClientUtils.getDefaultTransport:()Lcom/google/api/client/http/HttpTransport"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/firebase/internal/ApiClientUtils.getDefaultTransport:()Lcom/google/api/client/http/HttpTransport", "change_type": "UPDATE", "file_path_old": "src/main/java/com/google/firebase/internal/ApiClientUtils.java", "file_path_new": "src/main/java/com/google/firebase/internal/ApiClientUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v9.7.1", "java_version": 8} {"task_id": "fusesource_jansi-jansi-2.4.2__182b884_8283aaf__EncodingTest_991a00f0", "project_name": "fusesource_jansi-jansi-2.4.2", "git_clone_url": "https://github.com/fusesource/jansi.git", "rev1": "182b884d73d950e6d370e70162f92b0fd4b79372", "rev2": "8283aafa1a7870488e302c7499b9e127ae9265ba", "rev1_date": "2020-10-23T09:10:31Z", "rev2_date": "2020-10-23T10:11:34Z", "git_diff_url": "https://github.com/fusesource/jansi/compare/182b884d73d950e6d370e70162f92b0fd4b79372...8283aafa1a7870488e302c7499b9e127ae9265ba", "test_file": "jansi/src/test/java/org/fusesource/jansi/EncodingTest.java", "test_changes": [{"change_id": "34_fusesource_jansi-jansi-2.4.2_182b884_8283aaf_EncodingTest", "test_sign": "org/fusesource/jansi/EncodingTest.testEncoding8859:()V", "class": "EncodingTest", "method": "testEncoding8859", "module": "jansi", "junit_selector": "org.fusesource.jansi.EncodingTest#testEncoding8859", "old_test_code": null, "new_test_code": "@Test\npublic void testEncoding8859() throws UnsupportedEncodingException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n final AtomicReference newLabel = new AtomicReference();\n PrintStream ansi = new PrintStream(new AnsiNoSyncOutputStream(baos, new AnsiProcessor(baos) {\n\n @Override\n protected void processChangeWindowTitle(String label) {\n newLabel.set(label);\n }\n }, \"ISO-8859-1\"), true, \"ISO-8859-1\");\n ansi.print(\"\\033]0;un bon café\\007\");\n ansi.flush();\n assertEquals(\"un bon café\", newLabel.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-42"], "old_production_code": "@Override\npublic void write(int data) throws IOException {\n switch(state) {\n case LOOKING_FOR_FIRST_ESC_CHAR:\n if (data == FIRST_ESC_CHAR) {\n buffer[pos++] = (byte) data;\n state = LOOKING_FOR_SECOND_ESC_CHAR;\n } else {\n out.write(data);\n }\n break;\n case LOOKING_FOR_SECOND_ESC_CHAR:\n buffer[pos++] = (byte) data;\n if (data == SECOND_ESC_CHAR) {\n state = LOOKING_FOR_NEXT_ARG;\n } else if (data == SECOND_OSC_CHAR) {\n state = LOOKING_FOR_OSC_COMMAND;\n } else if (data == SECOND_CHARSET0_CHAR) {\n options.add(0);\n state = LOOKING_FOR_CHARSET;\n } else if (data == SECOND_CHARSET1_CHAR) {\n options.add(1);\n state = LOOKING_FOR_CHARSET;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_NEXT_ARG:\n buffer[pos++] = (byte) data;\n if ('\"' == data) {\n startOfValue = pos - 1;\n state = LOOKING_FOR_STR_ARG_END;\n } else if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_INT_ARG_END;\n } else if (';' == data) {\n options.add(null);\n } else if ('?' == data) {\n options.add('?');\n } else if ('=' == data) {\n options.add('=');\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n break;\n default:\n break;\n case LOOKING_FOR_INT_ARG_END:\n buffer[pos++] = (byte) data;\n if (!('0' <= data && data <= '9')) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_STR_ARG_END:\n buffer[pos++] = (byte) data;\n if ('\"' != data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_OSC_COMMAND:\n buffer[pos++] = (byte) data;\n if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_OSC_COMMAND_END;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_COMMAND_END:\n buffer[pos++] = (byte) data;\n if (';' == data) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n startOfValue = pos;\n state = LOOKING_FOR_OSC_PARAM;\n } else if ('0' <= data && data <= '9') {\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_PARAM:\n buffer[pos++] = (byte) data;\n if (BEL == data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else if (FIRST_ESC_CHAR == data) {\n state = LOOKING_FOR_ST;\n } else {\n }\n break;\n case LOOKING_FOR_ST:\n buffer[pos++] = (byte) data;\n if (SECOND_ST_CHAR == data) {\n String value = new String(buffer, startOfValue, (pos - 2) - startOfValue);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else {\n state = LOOKING_FOR_OSC_PARAM;\n }\n break;\n case LOOKING_FOR_CHARSET:\n options.add((char) data);\n reset(ap.processCharsetSelect(options));\n break;\n }\n if (pos >= buffer.length) {\n reset(false);\n }\n}", "new_production_code": "@Override\npublic void write(int data) throws IOException {\n switch(state) {\n case LOOKING_FOR_FIRST_ESC_CHAR:\n if (data == FIRST_ESC_CHAR) {\n buffer[pos++] = (byte) data;\n state = LOOKING_FOR_SECOND_ESC_CHAR;\n } else {\n out.write(data);\n }\n break;\n case LOOKING_FOR_SECOND_ESC_CHAR:\n buffer[pos++] = (byte) data;\n if (data == SECOND_ESC_CHAR) {\n state = LOOKING_FOR_NEXT_ARG;\n } else if (data == SECOND_OSC_CHAR) {\n state = LOOKING_FOR_OSC_COMMAND;\n } else if (data == SECOND_CHARSET0_CHAR) {\n options.add(0);\n state = LOOKING_FOR_CHARSET;\n } else if (data == SECOND_CHARSET1_CHAR) {\n options.add(1);\n state = LOOKING_FOR_CHARSET;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_NEXT_ARG:\n buffer[pos++] = (byte) data;\n if ('\"' == data) {\n startOfValue = pos - 1;\n state = LOOKING_FOR_STR_ARG_END;\n } else if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_INT_ARG_END;\n } else if (';' == data) {\n options.add(null);\n } else if ('?' == data) {\n options.add('?');\n } else if ('=' == data) {\n options.add('=');\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n break;\n default:\n break;\n case LOOKING_FOR_INT_ARG_END:\n buffer[pos++] = (byte) data;\n if (!('0' <= data && data <= '9')) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_STR_ARG_END:\n buffer[pos++] = (byte) data;\n if ('\"' != data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue, cs);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_OSC_COMMAND:\n buffer[pos++] = (byte) data;\n if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_OSC_COMMAND_END;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_COMMAND_END:\n buffer[pos++] = (byte) data;\n if (';' == data) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n startOfValue = pos;\n state = LOOKING_FOR_OSC_PARAM;\n } else if ('0' <= data && data <= '9') {\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_PARAM:\n buffer[pos++] = (byte) data;\n if (BEL == data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue, cs);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else if (FIRST_ESC_CHAR == data) {\n state = LOOKING_FOR_ST;\n } else {\n }\n break;\n case LOOKING_FOR_ST:\n buffer[pos++] = (byte) data;\n if (SECOND_ST_CHAR == data) {\n String value = new String(buffer, startOfValue, (pos - 2) - startOfValue, cs);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else {\n state = LOOKING_FOR_OSC_PARAM;\n }\n break;\n case LOOKING_FOR_CHARSET:\n options.add((char) data);\n reset(ap.processCharsetSelect(options));\n break;\n }\n if (pos >= buffer.length) {\n reset(false);\n }\n}", "focal_file_path": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "focal_method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "file_path_old": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "line_nums_old": "74-211", "file_path_new": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "line_nums_new": "87-224", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3181818181818182, "branch_coverage_gold": 3.5413, "method_coverage_gold": 2.5496, "line_coverage_gold": 3.7547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "change_type": "UPDATE", "file_path_old": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "file_path_new": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "35_fusesource_jansi-jansi-2.4.2_182b884_8283aaf_EncodingTest", "test_sign": "org/fusesource/jansi/EncodingTest.testEncodingUtf8:()V", "class": "EncodingTest", "method": "testEncodingUtf8", "module": "jansi", "junit_selector": "org.fusesource.jansi.EncodingTest#testEncodingUtf8", "old_test_code": null, "new_test_code": "@Test\npublic void testEncodingUtf8() throws UnsupportedEncodingException {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n final AtomicReference newLabel = new AtomicReference();\n PrintStream ansi = new PrintStream(new AnsiNoSyncOutputStream(baos, new AnsiProcessor(baos) {\n\n @Override\n protected void processChangeWindowTitle(String label) {\n newLabel.set(label);\n }\n }, \"UTF-8\"), true, \"UTF-8\");\n ansi.print(\"\\033]0;ひらがな\\007\");\n ansi.flush();\n assertEquals(\"ひらがな\", newLabel.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-58"], "old_production_code": "@Override\npublic void write(int data) throws IOException {\n switch(state) {\n case LOOKING_FOR_FIRST_ESC_CHAR:\n if (data == FIRST_ESC_CHAR) {\n buffer[pos++] = (byte) data;\n state = LOOKING_FOR_SECOND_ESC_CHAR;\n } else {\n out.write(data);\n }\n break;\n case LOOKING_FOR_SECOND_ESC_CHAR:\n buffer[pos++] = (byte) data;\n if (data == SECOND_ESC_CHAR) {\n state = LOOKING_FOR_NEXT_ARG;\n } else if (data == SECOND_OSC_CHAR) {\n state = LOOKING_FOR_OSC_COMMAND;\n } else if (data == SECOND_CHARSET0_CHAR) {\n options.add(0);\n state = LOOKING_FOR_CHARSET;\n } else if (data == SECOND_CHARSET1_CHAR) {\n options.add(1);\n state = LOOKING_FOR_CHARSET;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_NEXT_ARG:\n buffer[pos++] = (byte) data;\n if ('\"' == data) {\n startOfValue = pos - 1;\n state = LOOKING_FOR_STR_ARG_END;\n } else if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_INT_ARG_END;\n } else if (';' == data) {\n options.add(null);\n } else if ('?' == data) {\n options.add('?');\n } else if ('=' == data) {\n options.add('=');\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n break;\n default:\n break;\n case LOOKING_FOR_INT_ARG_END:\n buffer[pos++] = (byte) data;\n if (!('0' <= data && data <= '9')) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_STR_ARG_END:\n buffer[pos++] = (byte) data;\n if ('\"' != data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_OSC_COMMAND:\n buffer[pos++] = (byte) data;\n if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_OSC_COMMAND_END;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_COMMAND_END:\n buffer[pos++] = (byte) data;\n if (';' == data) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n startOfValue = pos;\n state = LOOKING_FOR_OSC_PARAM;\n } else if ('0' <= data && data <= '9') {\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_PARAM:\n buffer[pos++] = (byte) data;\n if (BEL == data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else if (FIRST_ESC_CHAR == data) {\n state = LOOKING_FOR_ST;\n } else {\n }\n break;\n case LOOKING_FOR_ST:\n buffer[pos++] = (byte) data;\n if (SECOND_ST_CHAR == data) {\n String value = new String(buffer, startOfValue, (pos - 2) - startOfValue);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else {\n state = LOOKING_FOR_OSC_PARAM;\n }\n break;\n case LOOKING_FOR_CHARSET:\n options.add((char) data);\n reset(ap.processCharsetSelect(options));\n break;\n }\n if (pos >= buffer.length) {\n reset(false);\n }\n}", "new_production_code": "@Override\npublic void write(int data) throws IOException {\n switch(state) {\n case LOOKING_FOR_FIRST_ESC_CHAR:\n if (data == FIRST_ESC_CHAR) {\n buffer[pos++] = (byte) data;\n state = LOOKING_FOR_SECOND_ESC_CHAR;\n } else {\n out.write(data);\n }\n break;\n case LOOKING_FOR_SECOND_ESC_CHAR:\n buffer[pos++] = (byte) data;\n if (data == SECOND_ESC_CHAR) {\n state = LOOKING_FOR_NEXT_ARG;\n } else if (data == SECOND_OSC_CHAR) {\n state = LOOKING_FOR_OSC_COMMAND;\n } else if (data == SECOND_CHARSET0_CHAR) {\n options.add(0);\n state = LOOKING_FOR_CHARSET;\n } else if (data == SECOND_CHARSET1_CHAR) {\n options.add(1);\n state = LOOKING_FOR_CHARSET;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_NEXT_ARG:\n buffer[pos++] = (byte) data;\n if ('\"' == data) {\n startOfValue = pos - 1;\n state = LOOKING_FOR_STR_ARG_END;\n } else if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_INT_ARG_END;\n } else if (';' == data) {\n options.add(null);\n } else if ('?' == data) {\n options.add('?');\n } else if ('=' == data) {\n options.add('=');\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n break;\n default:\n break;\n case LOOKING_FOR_INT_ARG_END:\n buffer[pos++] = (byte) data;\n if (!('0' <= data && data <= '9')) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_STR_ARG_END:\n buffer[pos++] = (byte) data;\n if ('\"' != data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue, cs);\n options.add(value);\n if (data == ';') {\n state = LOOKING_FOR_NEXT_ARG;\n } else {\n reset(ap.processEscapeCommand(options, data));\n }\n }\n break;\n case LOOKING_FOR_OSC_COMMAND:\n buffer[pos++] = (byte) data;\n if ('0' <= data && data <= '9') {\n startOfValue = pos - 1;\n state = LOOKING_FOR_OSC_COMMAND_END;\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_COMMAND_END:\n buffer[pos++] = (byte) data;\n if (';' == data) {\n String strValue = new String(buffer, startOfValue, (pos - 1) - startOfValue);\n Integer value = Integer.valueOf(strValue);\n options.add(value);\n startOfValue = pos;\n state = LOOKING_FOR_OSC_PARAM;\n } else if ('0' <= data && data <= '9') {\n } else {\n reset(false);\n }\n break;\n case LOOKING_FOR_OSC_PARAM:\n buffer[pos++] = (byte) data;\n if (BEL == data) {\n String value = new String(buffer, startOfValue, (pos - 1) - startOfValue, cs);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else if (FIRST_ESC_CHAR == data) {\n state = LOOKING_FOR_ST;\n } else {\n }\n break;\n case LOOKING_FOR_ST:\n buffer[pos++] = (byte) data;\n if (SECOND_ST_CHAR == data) {\n String value = new String(buffer, startOfValue, (pos - 2) - startOfValue, cs);\n options.add(value);\n reset(ap.processOperatingSystemCommand(options));\n } else {\n state = LOOKING_FOR_OSC_PARAM;\n }\n break;\n case LOOKING_FOR_CHARSET:\n options.add((char) data);\n reset(ap.processCharsetSelect(options));\n break;\n }\n if (pos >= buffer.length) {\n reset(false);\n }\n}", "focal_file_path": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "focal_method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "file_path_old": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "line_nums_old": "74-211", "file_path_new": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "line_nums_new": "87-224", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3181818181818182, "branch_coverage_gold": 3.5413, "method_coverage_gold": 2.5496, "line_coverage_gold": 3.7547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiNoSyncOutputStream.write:(I)V", "change_type": "UPDATE", "file_path_old": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "file_path_new": "jansi/src/main/java/org/fusesource/jansi/AnsiNoSyncOutputStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jansi-2.4.2", "java_version": 11} {"task_id": "fusesource_jansi-jansi-2.4.2__1de1d2b_faf9331__AnsiRendererTest_fc4b6956", "project_name": "fusesource_jansi-jansi-2.4.2", "git_clone_url": "https://github.com/fusesource/jansi.git", "rev1": "1de1d2b3d218c14de4c6ddef4953ae26648facf6", "rev2": "faf93318be3cda0b3a3894ae9d2032835601bc73", "rev1_date": "2021-01-20T10:36:03Z", "rev2_date": "2021-01-20T11:08:59Z", "git_diff_url": "https://github.com/fusesource/jansi/compare/1de1d2b3d218c14de4c6ddef4953ae26648facf6...faf93318be3cda0b3a3894ae9d2032835601bc73", "test_file": "src/test/java/org/fusesource/jansi/AnsiRendererTest.java", "test_changes": [{"change_id": "21_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRender3:()V", "class": "AnsiRendererTest", "method": "testRender3", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRender3", "old_test_code": null, "new_test_code": "@Test\npublic void testRender3() {\n String str = render(\"@|bold,red foo bar baz|@\");\n System.out.println(str);\n assertEquals(ansi().a(INTENSITY_BOLD).fg(RED).a(\"foo bar baz\").reset().toString(), str);\n assertEquals(ansi().bold().fgRed().a(\"foo bar baz\").reset().toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-77"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 2.9661, "method_coverage_gold": 8.7282, "line_coverage_gold": 9.0556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.reset:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/Ansi.fg:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.fgRed:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Lorg/fusesource/jansi/Ansi$Attribute;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.bold:()Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "22_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRender4:()V", "class": "AnsiRendererTest", "method": "testRender4", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRender4", "old_test_code": null, "new_test_code": "@Test\npublic void testRender4() {\n String str = render(\"@|bold,red foo bar baz|@ ick @|bold,red foo bar baz|@\");\n System.out.println(str);\n assertEquals(ansi().a(INTENSITY_BOLD).fg(RED).a(\"foo bar baz\").reset().a(\" ick \").a(INTENSITY_BOLD).fg(RED).a(\"foo bar baz\").reset().toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-88"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8125, "branch_coverage_gold": 2.9661, "method_coverage_gold": 8.2294, "line_coverage_gold": 8.9444, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.reset:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/Ansi.fg:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Lorg/fusesource/jansi/Ansi$Attribute;)Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "23_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRenderCodes:()V", "class": "AnsiRendererTest", "method": "testRenderCodes", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRenderCodes", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderCodes() {\n String str = renderCodes(\"bold red\");\n System.out.println(str);\n assertEquals(ansi().bold().fg(Color.RED).toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-61"], "old_production_code": "", "new_production_code": "public static String renderCodes(final String codes) {\n return renderCodes(codes.split(\"\\\\s\"));\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.renderCodes:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.renderCodes:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "136-138", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.9774, "method_coverage_gold": 7.7307, "line_coverage_gold": 7.6111, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/Ansi.fg:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/AnsiRenderer.renderCodes:(Ljava/lang/String;)Ljava/lang/String", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.bold:()Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.renderCodes:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "24_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRender2:()V", "class": "AnsiRendererTest", "method": "testRender2", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRender2", "old_test_code": null, "new_test_code": "@Test\npublic void testRender2() {\n String str = render(\"@|bold,red foo|@\");\n System.out.println(str);\n assertEquals(Ansi.ansi().a(INTENSITY_BOLD).fg(RED).a(\"foo\").reset().toString(), str);\n assertEquals(Ansi.ansi().bold().fgRed().a(\"foo\").reset().toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-69"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 2.9661, "method_coverage_gold": 8.7282, "line_coverage_gold": 9.0556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.reset:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/Ansi.fg:(Lorg/fusesource/jansi/Ansi$Color;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.fgRed:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Lorg/fusesource/jansi/Ansi$Attribute;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.bold:()Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "25_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRender5:()V", "class": "AnsiRendererTest", "method": "testRender5", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRender5", "old_test_code": null, "new_test_code": "@Test\npublic void testRender5() {\n String str = ansi().render(\"@|bold Hello|@\").toString();\n System.out.println(str);\n assertEquals(ansi().a(INTENSITY_BOLD).a(\"Hello\").reset().toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-96"], "old_production_code": "", "new_production_code": "public Ansi render(final String text) {\n a(AnsiRenderer.render(text));\n return this;\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/Ansi.java", "focal_method_sign": "org/fusesource/jansi/Ansi.render:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/Ansi.render:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "line_nums_new": "829-832", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 2.6836, "method_coverage_gold": 7.4813, "line_coverage_gold": 8.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.reset:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.render:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Lorg/fusesource/jansi/Ansi$Attribute;)Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/Ansi.render:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "26_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRenderInvalidMissingEnd:()V", "class": "AnsiRendererTest", "method": "testRenderInvalidMissingEnd", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRenderInvalidMissingEnd", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderInvalidMissingEnd() {\n String str = render(\"@|bold foo\");\n assertEquals(\"@|bold foo\", str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["104-108"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.2825, "method_coverage_gold": 1.4963, "line_coverage_gold": 0.7778, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "27_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRenderNothing:()V", "class": "AnsiRendererTest", "method": "testRenderNothing", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRenderNothing", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderNothing() {\n assertEquals(\"foo\", render(\"foo\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-102"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.2825, "method_coverage_gold": 1.4963, "line_coverage_gold": 0.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "28_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testTest:()V", "class": "AnsiRendererTest", "method": "testTest", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testTest", "old_test_code": null, "new_test_code": "@Test\npublic void testTest() throws Exception {\n assertFalse(test(\"foo\"));\n assertTrue(test(\"@|foo|\"));\n assertTrue(test(\"@|foo\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-46"], "old_production_code": "", "new_production_code": "public static boolean test(final String text) {\n return text != null && text.contains(BEGIN_TOKEN);\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.test:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.test:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "156-158", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.018867924528301886, "branch_coverage_gold": 0.4237, "method_coverage_gold": 1.2469, "line_coverage_gold": 0.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiRenderer.test:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.test:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "29_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRender:()V", "class": "AnsiRendererTest", "method": "testRender", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRender", "old_test_code": null, "new_test_code": "@Test\npublic void testRender() {\n String str = render(\"@|bold foo|@\");\n System.out.println(str);\n assertEquals(ansi().a(INTENSITY_BOLD).a(\"foo\").reset().toString(), str);\n assertEquals(ansi().bold().a(\"foo\").reset().toString(), str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-54"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 2.5424, "method_coverage_gold": 7.4813, "line_coverage_gold": 8.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi.reset:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String", "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Lorg/fusesource/jansi/Ansi$Attribute;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.bold:()Lorg/fusesource/jansi/Ansi"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "30_fusesource_jansi-jansi-2.4.2_1de1d2b_faf9331_AnsiRendererTest", "test_sign": "org/fusesource/jansi/AnsiRendererTest.testRenderInvalidMissingText:()V", "class": "AnsiRendererTest", "method": "testRenderInvalidMissingText", "module": "", "junit_selector": "org.fusesource.jansi.AnsiRendererTest#testRenderInvalidMissingText", "old_test_code": null, "new_test_code": "@Test\npublic void testRenderInvalidMissingText() {\n String str = render(\"@|bold|@\");\n assertEquals(\"@|bold|@\", str);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["110-114"], "old_production_code": "", "new_production_code": "public static String render(final String input) throws IllegalArgumentException {\n try {\n return render(input, new StringBuilder()).toString();\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "focal_method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "line_nums_new": "59-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.4237, "method_coverage_gold": 1.4963, "line_coverage_gold": 1.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/AnsiRenderer.render:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/AnsiRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jansi-2.4.2", "java_version": 11} {"task_id": "fusesource_jansi-jansi-2.4.2__3b2eab6_40631bd__FilterPrintStreamTest_03b60948", "project_name": "fusesource_jansi-jansi-2.4.2", "git_clone_url": "https://github.com/fusesource/jansi.git", "rev1": "3b2eab623277d4e6f2dc3b9e355ed6bb9dbbf84f", "rev2": "40631bdf503473054eefd27b3c2301bfcbe9643d", "rev1_date": "2017-12-01T07:34:15Z", "rev2_date": "2017-12-01T07:35:09Z", "git_diff_url": "https://github.com/fusesource/jansi/compare/3b2eab623277d4e6f2dc3b9e355ed6bb9dbbf84f...40631bdf503473054eefd27b3c2301bfcbe9643d", "test_file": "jansi/src/test/java/org/fusesource/jansi/FilterPrintStreamTest.java", "test_changes": [{"change_id": "39_fusesource_jansi-jansi-2.4.2_3b2eab6_40631bd_FilterPrintStreamTest", "test_sign": "org/fusesource/jansi/FilterPrintStreamTest.testPrintMethods:()V", "class": "FilterPrintStreamTest", "method": "testPrintMethods", "module": "jansi", "junit_selector": "org.fusesource.jansi.FilterPrintStreamTest#testPrintMethods", "old_test_code": null, "new_test_code": "@Test\npublic void testPrintMethods() throws Exception {\n PrintStream ps = new FilterPrintStream(System.out);\n ps.println(\"String\");\n ps.println('€');\n ps.flush();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-18"], "old_production_code": "", "new_production_code": "@Override\npublic void println(String x) {\n synchronized (this) {\n print(x);\n newLine();\n }\n}", "focal_file_path": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "focal_method_sign": "org/fusesource/jansi/FilterPrintStream.println:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/FilterPrintStream.println:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "228-234", "dependency_updated": "inserted", "score": 0.4176, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4167, "class": 1.0, "tfidf": 0.1472}}, {"dep_id": 2, "method_sign": "org/fusesource/jansi/FilterPrintStream.println:(C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "180-186", "dependency_updated": "inserted", "score": 0.4074, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.4167, "class": 1.0, "tfidf": 0.104}}, {"dep_id": 1, "method_sign": "org/fusesource/jansi/FilterPrintStream.flush:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "87-92", "dependency_updated": "inserted", "score": 0.3119, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0833, "class": 1.0, "tfidf": 0.3171}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6944, "method_coverage_gold": 3.1746, "line_coverage_gold": 1.9832, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/FilterPrintStream.println:(C)V", "org/fusesource/jansi/FilterPrintStream.println:(Ljava/lang/String;)V", "org/fusesource/jansi/FilterPrintStream.flush:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/FilterPrintStream.println:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/fusesource/jansi/FilterPrintStream.flush:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/fusesource/jansi/FilterPrintStream.println:(C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "40_fusesource_jansi-jansi-2.4.2_3b2eab6_40631bd_FilterPrintStreamTest", "test_sign": "org/fusesource/jansi/FilterPrintStreamTest.testWrite:()V", "class": "FilterPrintStreamTest", "method": "testWrite", "module": "jansi", "junit_selector": "org.fusesource.jansi.FilterPrintStreamTest#testWrite", "old_test_code": null, "new_test_code": "@Test\npublic void testWrite() throws Exception {\n OutputStream os = new FilterPrintStream(System.out);\n os.write('A');\n os.write('B');\n os.write(\"€\".getBytes());\n os.flush();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-29"], "old_production_code": "", "new_production_code": "@Override\npublic void write(int data) {\n if (filter(data)) {\n ps.write(data);\n }\n}", "focal_file_path": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "focal_method_sign": "org/fusesource/jansi/FilterPrintStream.write:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/fusesource/jansi/FilterPrintStream.write:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "56-63", "dependency_updated": "inserted", "score": 0.7954, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1306}}, {"dep_id": 0, "method_sign": "org/fusesource/jansi/FilterPrintStream.write:([BII)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "65-72", "dependency_updated": "inserted", "score": 0.7944, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1262}}, {"dep_id": 1, "method_sign": "org/fusesource/jansi/FilterPrintStream.flush:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "line_nums_new": "87-92", "dependency_updated": "inserted", "score": 0.2096, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.091}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.5208, "method_coverage_gold": 1.8519, "line_coverage_gold": 0.8413, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/FilterPrintStream.write:(I)V", "org/fusesource/jansi/FilterPrintStream.write:([BII)V", "org/fusesource/jansi/FilterPrintStream.flush:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/FilterPrintStream.write:([BII)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/fusesource/jansi/FilterPrintStream.flush:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/fusesource/jansi/FilterPrintStream.write:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jansi/src/main/java/org/fusesource/jansi/FilterPrintStream.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jansi-2.4.2", "java_version": 11} {"task_id": "fusesource_jansi-jansi-2.4.2__3ba11e9_01d68f0__AnsiTest_617c9bc8", "project_name": "fusesource_jansi-jansi-2.4.2", "git_clone_url": "https://github.com/fusesource/jansi.git", "rev1": "3ba11e9d324f81b359229715ceacadcb9137ff46", "rev2": "01d68f03c6b69c323a05738efec1fd4404c0f0f8", "rev1_date": "2021-07-23T07:54:38Z", "rev2_date": "2021-07-23T08:25:36Z", "git_diff_url": "https://github.com/fusesource/jansi/compare/3ba11e9d324f81b359229715ceacadcb9137ff46...01d68f03c6b69c323a05738efec1fd4404c0f0f8", "test_file": "src/test/java/org/fusesource/jansi/AnsiTest.java", "test_changes": [{"change_id": "33_fusesource_jansi-jansi-2.4.2_3ba11e9_01d68f0_AnsiTest", "test_sign": "org/fusesource/jansi/AnsiTest.testColorDisabled:()V", "class": "AnsiTest", "method": "testColorDisabled", "module": "", "junit_selector": "org.fusesource.jansi.AnsiTest#testColorDisabled", "old_test_code": null, "new_test_code": "@Test\npublic void testColorDisabled() {\n Ansi.setEnabled(false);\n try {\n assertEquals(\"test\", Ansi.ansi().fg(32).a(\"t\").fgRgb(0).a(\"e\").bg(24).a(\"s\").bgRgb(100).a(\"t\").toString());\n } finally {\n Ansi.setEnabled(true);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["142-150"], "old_production_code": "", "new_production_code": "@Override\npublic Ansi bg(int color) {\n return this;\n}", "focal_file_path": "src/main/java/org/fusesource/jansi/Ansi.java", "focal_method_sign": "org/fusesource/jansi/Ansi$NoAnsi.bg:(I)Lorg/fusesource/jansi/Ansi", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/fusesource/jansi/Ansi$NoAnsi.bg:(I)Lorg/fusesource/jansi/Ansi", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "line_nums_new": "262-265", "dependency_updated": "inserted", "score": 0.3569, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0769, "class": 1.0, "tfidf": 0.2882}}, {"dep_id": 1, "method_sign": "org/fusesource/jansi/Ansi$NoAnsi.fg:(I)Lorg/fusesource/jansi/Ansi", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "line_nums_new": "252-255", "dependency_updated": "inserted", "score": 0.256, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2882}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 0.2786, "method_coverage_gold": 4.3478, "line_coverage_gold": 1.5856, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/fusesource/jansi/Ansi$NoAnsi.fg:(I)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi$NoAnsi.bg:(I)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.a:(Ljava/lang/String;)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.setEnabled:(Z)V", "org/fusesource/jansi/Ansi.ansi:()Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.bgRgb:(I)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.fgRgb:(I)Lorg/fusesource/jansi/Ansi", "org/fusesource/jansi/Ansi.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/fusesource/jansi/Ansi$NoAnsi.bg:(I)Lorg/fusesource/jansi/Ansi", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/fusesource/jansi/Ansi$NoAnsi.fg:(I)Lorg/fusesource/jansi/Ansi", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/fusesource/jansi/Ansi.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "jansi-2.4.2", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__0289c6f_71512b3__GetProjectTest_36f79c09", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "0289c6f84f2464271444d24202bc92692a325318", "rev2": "71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "rev1_date": "2017-03-18T15:53:51Z", "rev2_date": "2017-03-18T20:26:44Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/0289c6f84f2464271444d24202bc92692a325318...71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/GetProjectTest.java", "test_changes": [{"change_id": "460_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GetProjectTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GetProjectTest.testGetUsernameForRevisionExist:()V", "class": "GetProjectTest", "method": "testGetUsernameForRevisionExist", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GetProjectTest#testGetUsernameForRevisionExist", "old_test_code": null, "new_test_code": "@Test\npublic void testGetUsernameForRevisionExist() throws Exception {\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"{\\n\" + \" \\\"id\\\": \\\"6104942438c14ec7bd21c6cd5bd995272b3faff6\\\",\\n\" + \" \\\"short_id\\\": \\\"6104942438c\\\",\\n\" + \" \\\"title\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"author_name\\\": \\\"randx\\\",\\n\" + \" \\\"author_email\\\": \\\"john@example.com\\\",\\n\" + \" \\\"committer_name\\\": \\\"Dmitriy\\\",\\n\" + \" \\\"committer_email\\\": \\\"dmitriy.zaporozhets@gmail.com\\\",\\n\" + \" \\\"created_at\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"message\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"committed_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"authored_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"parent_ids\\\": [\\n\" + \" \\\"ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba\\\"\\n\" + \" ],\\n\" + \" \\\"stats\\\": {\\n\" + \" \\\"additions\\\": 15,\\n\" + \" \\\"deletions\\\": 10,\\n\" + \" \\\"total\\\": 25\\n\" + \" },\\n\" + \" \\\"status\\\": \\\"running\\\"\\n\" + \"}\"));\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"[\\n\" + \" {\\n\" + \" \\\"id\\\": 1,\\n\" + \" \\\"username\\\": \\\"john_smith\\\",\\n\" + \" \\\"email\\\": \\\"john@example.com\\\",\\n\" + \" \\\"name\\\": \\\"John Smith\\\",\\n\" + \" \\\"state\\\": \\\"active\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://localhost:3000/uploads/user/avatar/1/cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/john_smith\\\"\\n\" + \" },\\n\" + \" {\\n\" + \" \\\"id\\\": 2,\\n\" + \" \\\"username\\\": \\\"jack_smith\\\",\\n\" + \" \\\"email\\\": \\\"jack@example.com\\\",\\n\" + \" \\\"name\\\": \\\"Jack Smith\\\",\\n\" + \" \\\"state\\\": \\\"blocked\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://gravatar.com/../e32131cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/jack_smith\\\"\\n\" + \" }\\n\" + \"]\"));\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n facade.setGitLabAPI(GitLabAPI.connect(gitLabPluginConfiguration.url(), gitLabPluginConfiguration.userToken()));\n GitLabProject gitLabProject = Mockito.mock(GitLabProject.class);\n Mockito.when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n Assertions.assertThat(facade.getUsernameForRevision(\"6104942438c14ec7bd21c6cd5bd995272b3faff6\")).isEqualTo(\"john_smith\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["564-618"], "old_production_code": "", "new_production_code": "public String getUsernameForRevision(String revision) {\n try {\n GitLabCommit commit = gitLabAPI.getGitLabAPICommits().getCommit(gitLabProject.getId(), revision);\n Paged paged = gitLabAPI.getGitLabAPIUsers().getUsers(commit.getAuthorEmail(), null);\n List users = new ArrayList<>();\n do {\n if (paged.getResults() != null) {\n users.addAll(paged.getResults());\n }\n } while ((paged = paged.nextPage()) != null);\n if (users.size() == 1) {\n return users.get(0).getUsername();\n }\n return users.stream().filter(x -> commit.getAuthorEmail().equals(x.getEmail())).map(GitLabUser::getUsername).findFirst().orElse(null);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to create retrive author for commit \" + revision, e);\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "208-228", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 0.7979, "method_coverage_gold": 3.8462, "line_coverage_gold": 2.6389, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "463_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GetProjectTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GetProjectTest.testGetUsernameForRevisionNull2:()V", "class": "GetProjectTest", "method": "testGetUsernameForRevisionNull2", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GetProjectTest#testGetUsernameForRevisionNull2", "old_test_code": null, "new_test_code": "@Test\npublic void testGetUsernameForRevisionNull2() throws Exception {\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"{\\n\" + \" \\\"id\\\": \\\"6104942438c14ec7bd21c6cd5bd995272b3faff6\\\",\\n\" + \" \\\"short_id\\\": \\\"6104942438c\\\",\\n\" + \" \\\"title\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"author_name\\\": \\\"randx\\\",\\n\" + \" \\\"author_email\\\": \\\"dmitriy.zaporozhets@gmail.com\\\",\\n\" + \" \\\"committer_name\\\": \\\"Dmitriy\\\",\\n\" + \" \\\"committer_email\\\": \\\"dmitriy.zaporozhets@gmail.com\\\",\\n\" + \" \\\"created_at\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"message\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"committed_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"authored_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"parent_ids\\\": [\\n\" + \" \\\"ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba\\\"\\n\" + \" ],\\n\" + \" \\\"stats\\\": {\\n\" + \" \\\"additions\\\": 15,\\n\" + \" \\\"deletions\\\": 10,\\n\" + \" \\\"total\\\": 25\\n\" + \" },\\n\" + \" \\\"status\\\": \\\"running\\\"\\n\" + \"}\"));\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"[\\n\" + \" {\\n\" + \" \\\"id\\\": 1,\\n\" + \" \\\"username\\\": \\\"john_smith\\\",\\n\" + \" \\\"name\\\": \\\"John Smith\\\",\\n\" + \" \\\"state\\\": \\\"active\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://localhost:3000/uploads/user/avatar/1/cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/john_smith\\\"\\n\" + \" },\\n\" + \" {\\n\" + \" \\\"id\\\": 2,\\n\" + \" \\\"username\\\": \\\"jack_smith\\\",\\n\" + \" \\\"name\\\": \\\"Jack Smith\\\",\\n\" + \" \\\"state\\\": \\\"blocked\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://gravatar.com/../e32131cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/jack_smith\\\"\\n\" + \" }\\n\" + \"]\"));\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n facade.setGitLabAPI(GitLabAPI.connect(gitLabPluginConfiguration.url(), gitLabPluginConfiguration.userToken()));\n GitLabProject gitLabProject = Mockito.mock(GitLabProject.class);\n Mockito.when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n Assertions.assertThat(facade.getUsernameForRevision(\"6104942438c14ec7bd21c6cd5bd995272b3faff6\")).isNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["510-562"], "old_production_code": "", "new_production_code": "public String getUsernameForRevision(String revision) {\n try {\n GitLabCommit commit = gitLabAPI.getGitLabAPICommits().getCommit(gitLabProject.getId(), revision);\n Paged paged = gitLabAPI.getGitLabAPIUsers().getUsers(commit.getAuthorEmail(), null);\n List users = new ArrayList<>();\n do {\n if (paged.getResults() != null) {\n users.addAll(paged.getResults());\n }\n } while ((paged = paged.nextPage()) != null);\n if (users.size() == 1) {\n return users.get(0).getUsername();\n }\n return users.stream().filter(x -> commit.getAuthorEmail().equals(x.getEmail())).map(GitLabUser::getUsername).findFirst().orElse(null);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to create retrive author for commit \" + revision, e);\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "208-228", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 0.7979, "method_coverage_gold": 3.8462, "line_coverage_gold": 2.6389, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "497_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GetProjectTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GetProjectTest.testGetUsernameForRevisionNull1:()V", "class": "GetProjectTest", "method": "testGetUsernameForRevisionNull1", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GetProjectTest#testGetUsernameForRevisionNull1", "old_test_code": null, "new_test_code": "@Test\npublic void testGetUsernameForRevisionNull1() throws Exception {\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"{\\n\" + \" \\\"id\\\": \\\"6104942438c14ec7bd21c6cd5bd995272b3faff6\\\",\\n\" + \" \\\"short_id\\\": \\\"6104942438c\\\",\\n\" + \" \\\"title\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"author_name\\\": \\\"randx\\\",\\n\" + \" \\\"author_email\\\": \\\"dmitriy.zaporozhets@gmail.com\\\",\\n\" + \" \\\"committer_name\\\": \\\"Dmitriy\\\",\\n\" + \" \\\"committer_email\\\": \\\"dmitriy.zaporozhets@gmail.com\\\",\\n\" + \" \\\"created_at\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"message\\\": \\\"Sanitize for network graph\\\",\\n\" + \" \\\"committed_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"authored_date\\\": \\\"2012-09-20T09:06:12+03:00\\\",\\n\" + \" \\\"parent_ids\\\": [\\n\" + \" \\\"ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba\\\"\\n\" + \" ],\\n\" + \" \\\"stats\\\": {\\n\" + \" \\\"additions\\\": 15,\\n\" + \" \\\"deletions\\\": 10,\\n\" + \" \\\"total\\\": 25\\n\" + \" },\\n\" + \" \\\"status\\\": \\\"running\\\"\\n\" + \"}\"));\n gitlab.enqueue(new MockResponse().setResponseCode(200).setBody(\"[\\n\" + \" {\\n\" + \" \\\"id\\\": 1,\\n\" + \" \\\"username\\\": \\\"john_smith\\\",\\n\" + \" \\\"name\\\": \\\"John Smith\\\",\\n\" + \" \\\"state\\\": \\\"active\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://localhost:3000/uploads/user/avatar/1/cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/john_smith\\\"\\n\" + \" },\\n\" + \" {\\n\" + \" \\\"id\\\": 2,\\n\" + \" \\\"username\\\": \\\"jack_smith\\\",\\n\" + \" \\\"name\\\": \\\"Jack Smith\\\",\\n\" + \" \\\"state\\\": \\\"blocked\\\",\\n\" + \" \\\"avatar_url\\\": \\\"http://gravatar.com/../e32131cd8.jpeg\\\",\\n\" + \" \\\"web_url\\\": \\\"http://localhost:3000/jack_smith\\\"\\n\" + \" }\\n\" + \"]\"));\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n facade.setGitLabAPI(GitLabAPI.connect(gitLabPluginConfiguration.url(), gitLabPluginConfiguration.userToken()));\n GitLabProject gitLabProject = Mockito.mock(GitLabProject.class);\n Mockito.when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n Assertions.assertThat(facade.getUsernameForRevision(\"123\")).isNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["456-508"], "old_production_code": "", "new_production_code": "public String getUsernameForRevision(String revision) {\n try {\n GitLabCommit commit = gitLabAPI.getGitLabAPICommits().getCommit(gitLabProject.getId(), revision);\n Paged paged = gitLabAPI.getGitLabAPIUsers().getUsers(commit.getAuthorEmail(), null);\n List users = new ArrayList<>();\n do {\n if (paged.getResults() != null) {\n users.addAll(paged.getResults());\n }\n } while ((paged = paged.nextPage()) != null);\n if (users.size() == 1) {\n return users.get(0).getUsername();\n }\n return users.stream().filter(x -> commit.getAuthorEmail().equals(x.getEmail())).map(GitLabUser::getUsername).findFirst().orElse(null);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to create retrive author for commit \" + revision, e);\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "208-228", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 0.7979, "method_coverage_gold": 3.8462, "line_coverage_gold": 2.6389, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.getUsernameForRevision:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__0289c6f_71512b3__GlobalCommentBuilderTest_8d800d40", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "0289c6f84f2464271444d24202bc92692a325318", "rev2": "71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "rev1_date": "2017-03-18T15:53:51Z", "rev2_date": "2017-03-18T20:26:44Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/0289c6f84f2464271444d24202bc92692a325318...71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilderTest.java", "test_changes": [{"change_id": "484_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GlobalCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilderTest.testTemplateConfig:()V", "class": "GlobalCommentBuilderTest", "method": "testTemplateConfig", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GlobalCommentBuilderTest#testTemplateConfig", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateConfig() {\n settings.setProperty(GitLabPlugin.GITLAB_PROJECT_ID, \"123\");\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"123456789\");\n settings.setProperty(GitLabPlugin.GITLAB_REF_NAME, \"master\");\n settings.setProperty(GitLabPlugin.GITLAB_GLOBAL_TEMPLATE, \"${projectId}\\n${commitSHA[0]}\\n${refName}\\n${url}\\n\" + \"${maxGlobalIssues}\\n${maxBlockerIssuesGate}\\n${maxCriticalIssuesGate}\\n${maxMajorIssuesGate}\\n${maxMinorIssuesGate}\\n${maxInfoIssuesGate}\\n\" + \"${disableIssuesInline?c}\\n${onlyIssueFromCommitFile?c}\\n${commentNoIssue?c}\\n${revision}\");\n Reporter reporter = new Reporter(config);\n Assertions.assertThat(new GlobalCommentBuilder(config, null, reporter, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"123\\n\" + \"123456789\\n\" + \"master\\n\" + \"https://gitlab.com\\n\" + \"10\\n\" + \"0\\n\" + \"0\\n\" + \"-1\\n\" + \"-1\\n\" + \"-1\\n\" + \"false\\n\" + \"false\\n\" + \"false\\n\" + \"123456789\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["204-218"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.3936, "method_coverage_gold": 24.7253, "line_coverage_gold": 23.75, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "500_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GlobalCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilderTest.testNoIssues:()V", "class": "GlobalCommentBuilderTest", "method": "testNoIssues", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GlobalCommentBuilderTest#testNoIssues", "old_test_code": null, "new_test_code": "@Test\npublic void testNoIssues() {\n Assertions.assertThat(new GlobalCommentBuilder(config, null, new Reporter(config), new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"SonarQube analysis reported no issues.\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.5957, "method_coverage_gold": 12.6374, "line_coverage_gold": 15.2778, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__0289c6f_71512b3__GlobalTemplateTest_ae2d4133", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "0289c6f84f2464271444d24202bc92692a325318", "rev2": "71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "rev1_date": "2017-03-18T15:53:51Z", "rev2_date": "2017-03-18T20:26:44Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/0289c6f84f2464271444d24202bc92692a325318...71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/GlobalTemplateTest.java", "test_changes": [{"change_id": "471_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_GlobalTemplateTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalTemplateTest.testNoIssues:()V", "class": "GlobalTemplateTest", "method": "testNoIssues", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GlobalTemplateTest#testNoIssues", "old_test_code": null, "new_test_code": "@Test\npublic void testNoIssues() {\n Assertions.assertThat(new GlobalCommentBuilder(config, null, new Reporter(config), new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"SonarQube analysis reported no issues.\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["110-113"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.7234, "method_coverage_gold": 26.9231, "line_coverage_gold": 25.1389, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__0289c6f_71512b3__InlineCommentBuilderTest_2b8e8295", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "0289c6f84f2464271444d24202bc92692a325318", "rev2": "71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "rev1_date": "2017-03-18T15:53:51Z", "rev2_date": "2017-03-18T20:26:44Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/0289c6f84f2464271444d24202bc92692a325318...71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.java", "test_changes": [{"change_id": "452_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateIssue:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateIssue", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateIssue", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateIssue() {\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${issueCount()}\\n<#list issues() as issue>\\n${issue.componentKey}\\n\");\n List ris = Stream.iterate(0, i -> i++).limit(17).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, null, Severity.MAJOR, true, \"Issue number:\" + i, \"rule\" + i), null, \"lalal\", true)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"17\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["118-128"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.3936, "method_coverage_gold": 27.4725, "line_coverage_gold": 25.9722, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "457_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateIssueReported:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateIssueReported", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateIssueReported", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateIssueReported() {\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${issueCount(true)}\\n<#list issues(true) as issue>\\n${issue.componentKey}\\n\\n${issueCount(false)}\\n<#list issues(false) as issue>\\n${issue.componentKey}\\n\");\n List ris = Stream.iterate(0, i -> i++).limit(17).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, null, Severity.MAJOR, true, \"Issue number:\" + i, \"rule\" + i), null, GITLAB_URL + \"/File.java#L\" + i, false)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"0\\n\" + \"17\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-154"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 4.7872, "method_coverage_gold": 28.5714, "line_coverage_gold": 26.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "475_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateIssueOthers:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateIssueOthers", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateIssueOthers", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateIssueOthers() {\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${emojiSeverity(BLOCKER)}\\n${imageSeverity(BLOCKER)}\\n${ruleLink(\\\"repo%3Arule0\\\")}\\n<#list issues() as issue>${print(issue)}\\n\");\n List ris = Stream.iterate(0, i -> i++).limit(10).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, null, Severity.MAJOR, true, \"Issue number:\" + i, \"rule\" + i), null, GITLAB_URL + \"/File.java#L\" + i, false)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\":no_entry:\\n\" + \"![BLOCKER](https://github.com/gabrie-allaigre/sonar-gitlab-plugin/raw/master/images/severity-blocker.png)\\n\" + \"http://myserver/coding_rules#rule_key=repo%253Arule0\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\" + \":warning: [Issue number:0](https://gitlab.com/test/test/File.java#L0) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule0)\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["168-189"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 5.0532, "method_coverage_gold": 34.0659, "line_coverage_gold": 30.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "478_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateIssueForSeverity:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateIssueForSeverity", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateIssueForSeverity", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateIssueForSeverity() {\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${issueCount(MAJOR)}\\n<#list issues(MAJOR) as issue>\\n${issue.componentKey}\\n\" + \"${issueCount(\\\"MAJOR\\\")}\\n<#list issues(\\\"MAJOR\\\") as issue>\\n${issue.componentKey}\\n\");\n List ris = Stream.iterate(0, i -> i++).limit(9).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, null, i % 2 == 0 ? Severity.MAJOR : Severity.BLOCKER, true, \"Issue number:\" + i, \"rule\" + i), null, \"lalal\", true)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"9\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"9\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["130-141"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.1915, "method_coverage_gold": 28.5714, "line_coverage_gold": 26.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "486_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testNoIssues:()V", "class": "InlineCommentBuilderTest", "method": "testNoIssues", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testNoIssues", "old_test_code": null, "new_test_code": "@Test\npublic void testNoIssues() {\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, Collections.emptyList(), new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-60"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.3298, "method_coverage_gold": 9.3407, "line_coverage_gold": 13.4722, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "487_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testMultiIssue:()V", "class": "InlineCommentBuilderTest", "method": "testMultiIssue", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testMultiIssue", "old_test_code": null, "new_test_code": "@Test\npublic void testMultiIssue() {\n settings.setProperty(GitLabPlugin.GITLAB_DISABLE_INLINE_COMMENTS, false);\n List ris = Stream.iterate(0, i -> i++).limit(10).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, 1, Severity.INFO, true, \"Issue\", \"rule\"), null, \"lalal\", true)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-101"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.1277, "method_coverage_gold": 13.1868, "line_coverage_gold": 16.1111, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "492_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateIssueReportedForSeverity:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateIssueReportedForSeverity", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateIssueReportedForSeverity", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateIssueReportedForSeverity() {\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${issueCount(MAJOR,true)}\\n<#list issues(MAJOR,true) as issue>\\n${issue.componentKey}\\n\" + \"${issueCount(\\\"MAJOR\\\",false)}\\n<#list issues(\\\"MAJOR\\\",false) as issue>\\n${issue.componentKey}\\n\");\n List ris = Stream.iterate(0, i -> i++).limit(10).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, null, i % 2 == 0 ? Severity.MAJOR : Severity.BLOCKER, true, \"Issue number:\" + i, \"rule\" + i), null, GITLAB_URL + \"/File.java#L\" + i, false)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"0\\n\" + \"10\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\" + \"component\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["156-166"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 6.117, "method_coverage_gold": 29.1209, "line_coverage_gold": 27.0833, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "498_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineCommentBuilderTest.testTemplateConfig:()V", "class": "InlineCommentBuilderTest", "method": "testTemplateConfig", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineCommentBuilderTest#testTemplateConfig", "old_test_code": null, "new_test_code": "@Test\npublic void testTemplateConfig() {\n settings.setProperty(GitLabPlugin.GITLAB_PROJECT_ID, \"123\");\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"123456789\");\n settings.setProperty(GitLabPlugin.GITLAB_REF_NAME, \"master\");\n settings.setProperty(GitLabPlugin.GITLAB_INLINE_TEMPLATE, \"${projectId}\\n${commitSHA[0]}\\n${refName}\\n${url}\\n\" + \"${maxGlobalIssues}\\n${maxBlockerIssuesGate}\\n${maxCriticalIssuesGate}\\n${maxMajorIssuesGate}\\n${maxMinorIssuesGate}\\n${maxInfoIssuesGate}\\n\" + \"${disableIssuesInline?c}\\n${onlyIssueFromCommitFile?c}\\n${commentNoIssue?c}\\n${revision}\\n${lineNumber}\");\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, Collections.emptyList(), new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\"123\\n\" + \"123456789\\n\" + \"master\\n\" + \"https://gitlab.com\\n\" + \"10\\n\" + \"0\\n\" + \"0\\n\" + \"-1\\n\" + \"-1\\n\" + \"-1\\n\" + \"false\\n\" + \"false\\n\" + \"false\\n\" + \"123\\n\" + \"1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-116"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.1277, "method_coverage_gold": 22.5275, "line_coverage_gold": 22.5, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__0289c6f_71512b3__InlineTemplateTest_33f9f9f1", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "0289c6f84f2464271444d24202bc92692a325318", "rev2": "71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "rev1_date": "2017-03-18T15:53:51Z", "rev2_date": "2017-03-18T20:26:44Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/0289c6f84f2464271444d24202bc92692a325318...71512b39e7fbd6857fd1dc19123fa2a48e1b298c", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/InlineTemplateTest.java", "test_changes": [{"change_id": "485_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_0289c6f_71512b3_InlineTemplateTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/InlineTemplateTest.testTwoIssue:()V", "class": "InlineTemplateTest", "method": "testTwoIssue", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.InlineTemplateTest#testTwoIssue", "old_test_code": null, "new_test_code": "@Test\npublic void testTwoIssue() {\n List ris = Stream.iterate(0, i -> i++).limit(2).map(i -> new Reporter.ReportIssue(Utils.newMockedIssue(\"component\", null, 1, Severity.INFO, true, \"Issue\", \"rule\"), null, \"lalal\", true)).collect(Collectors.toList());\n Assertions.assertThat(new InlineCommentBuilder(config, \"123\", null, 1, ris, new MarkDownUtils(settings)).buildForMarkdown()).isEqualTo(\":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\" + \":information_source: Issue [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-79"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n if (template != null && !template.isEmpty()) {\n return buildFreemarkerComment();\n }\n return buildDefaultComment();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "line_nums_new": "61-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.7234, "method_coverage_gold": 31.3187, "line_coverage_gold": 28.0556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/AbstractCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__27df6ab_db984bc__CommitFacadeTest_55352b93", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "27df6abf8d15a1d1148b5327b055068339e38487", "rev2": "db984bc7621868c461e85fef34986829178104cb", "rev1_date": "2017-03-02T15:43:34Z", "rev2_date": "2017-03-02T16:46:39Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/27df6abf8d15a1d1148b5327b055068339e38487...db984bc7621868c461e85fef34986829178104cb", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.java", "test_changes": [{"change_id": "519_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testInitGitBaseDirNotFound:()V", "class": "CommitFacadeTest", "method": "testInitGitBaseDirNotFound", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testInitGitBaseDirNotFound", "old_test_code": null, "new_test_code": "@Test\npublic void testInitGitBaseDirNotFound() throws Exception {\n CommitFacade facade = new CommitFacade(mock(GitLabPluginConfiguration.class));\n File projectBaseDir = temp.newFolder();\n facade.initGitBaseDir(projectBaseDir);\n assertThat(facade.getPath(new DefaultInputFile(\"foo\", \"src/main/java/Foo.java\").setModuleBaseDir(projectBaseDir.toPath()))).isEqualTo(\"src/main/java/Foo.java\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-96"], "old_production_code": "", "new_production_code": "void initGitBaseDir(File projectBaseDir) {\n File detectedGitBaseDir = findGitBaseDir(projectBaseDir);\n if (detectedGitBaseDir == null) {\n LOG.debug(\"Unable to find Git root directory. Is \" + projectBaseDir + \" part of a Git repository?\");\n setGitBaseDir(projectBaseDir);\n } else {\n setGitBaseDir(detectedGitBaseDir);\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "129-137", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 1.8692, "method_coverage_gold": 8.046, "line_coverage_gold": 4.5113, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.getPath:(Lorg/sonar/api/batch/fs/InputPath;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "521_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testGetGitLabUrl:()V", "class": "CommitFacadeTest", "method": "testGetGitLabUrl", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testGetGitLabUrl", "old_test_code": null, "new_test_code": "@Test\npublic void testGetGitLabUrl() throws Exception {\n File gitBasedir = temp.newFolder();\n GitLabPluginConfiguration gitLabPluginConfiguration = mock(GitLabPluginConfiguration.class);\n when(gitLabPluginConfiguration.commitSHA()).thenReturn(\"abc123\");\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n facade.setGitBaseDir(gitBasedir);\n GitLabProject gitLabProject = mock(GitLabProject.class);\n when(gitLabProject.getWebUrl()).thenReturn(\"https://gitLab.com/gaby/test\");\n facade.setGitLabProject(gitLabProject);\n InputPath inputPath = mock(InputPath.class);\n when(inputPath.file()).thenReturn(new File(gitBasedir, \"src/main/Foo.java\"));\n assertThat(facade.getGitLabUrl(inputPath, 10)).isEqualTo(\"https://gitLab.com/gaby/test/blob/abc123/src/main/Foo.java#L10\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-61"], "old_production_code": "", "new_production_code": "void setGitLabProject(GitLabProject gitLabProject) {\n this.gitLabProject = gitLabProject;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "139-141", "dependency_updated": "inserted", "score": 0.4426, "signal_scores": {"nc": 0.0, "lcs_u": 0.5625, "ed": 0.5625, "class": 1.0, "tfidf": 0.2656}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitBaseDir:(Ljava/io/File;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "154-156", "dependency_updated": "inserted", "score": 0.4069, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.4615, "class": 1.0, "tfidf": 0.2025}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.9346, "method_coverage_gold": 8.046, "line_coverage_gold": 3.5088, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.getGitLabUrl:(Lorg/sonar/api/batch/fs/InputComponent;Ljava/lang/Integer;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitBaseDir:(Ljava/io/File;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitBaseDir:(Ljava/io/File;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "524_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testInitGitBaseDir:()V", "class": "CommitFacadeTest", "method": "testInitGitBaseDir", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testInitGitBaseDir", "old_test_code": null, "new_test_code": "@Test\npublic void testInitGitBaseDir() throws Exception {\n CommitFacade facade = new CommitFacade(mock(GitLabPluginConfiguration.class));\n File gitBaseDir = temp.newFolder();\n Files.createDirectory(gitBaseDir.toPath().resolve(\".git\"));\n File projectBaseDir = new File(gitBaseDir, \"myProject\");\n facade.initGitBaseDir(projectBaseDir);\n assertThat(facade.getPath(new DefaultInputFile(\"foo\", \"src/main/java/Foo.java\").setModuleBaseDir(projectBaseDir.toPath()))).isEqualTo(\"myProject/src/main/java/Foo.java\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-106"], "old_production_code": "", "new_production_code": "void initGitBaseDir(File projectBaseDir) {\n File detectedGitBaseDir = findGitBaseDir(projectBaseDir);\n if (detectedGitBaseDir == null) {\n LOG.debug(\"Unable to find Git root directory. Is \" + projectBaseDir + \" part of a Git repository?\");\n setGitBaseDir(projectBaseDir);\n } else {\n setGitBaseDir(detectedGitBaseDir);\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "129-137", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 1.8692, "method_coverage_gold": 8.046, "line_coverage_gold": 4.5113, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.getPath:(Lorg/sonar/api/batch/fs/InputPath;)Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.initGitBaseDir:(Ljava/io/File;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__27df6ab_db984bc__CommitProjectBuilderTest_7523c266", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "27df6abf8d15a1d1148b5327b055068339e38487", "rev2": "db984bc7621868c461e85fef34986829178104cb", "rev1_date": "2017-03-02T15:43:34Z", "rev2_date": "2017-03-02T16:46:39Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/27df6abf8d15a1d1148b5327b055068339e38487...db984bc7621868c461e85fef34986829178104cb", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.java", "test_changes": [{"change_id": "520_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.shouldFailIfNotPreview:()V", "class": "CommitProjectBuilderTest", "method": "shouldFailIfNotPreview", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#shouldFailIfNotPreview", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFailIfNotPreview() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"1\");\n thrown.expect(MessageException.class);\n thrown.expectMessage(\"The GitLab plugin is only intended to be used in preview or issues mode. Please set 'sonar.analysis.mode'.\");\n commitProjectBuilder.build(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-71"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "41-50", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-56", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.4673, "method_coverage_gold": 8.046, "line_coverage_gold": 12.2807, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "522_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.shouldNotFailIfIssues:()V", "class": "CommitProjectBuilderTest", "method": "shouldNotFailIfIssues", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#shouldNotFailIfIssues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotFailIfIssues() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"1\");\n when(mode.isIssues()).thenReturn(true);\n commitProjectBuilder.build(mock(ProjectBuilder.Context.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)));\n verify(facade).init(any(File.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-81"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "41-50", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-56", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.9346, "method_coverage_gold": 9.1954, "line_coverage_gold": 13.5338, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "523_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_27df6ab_db984bc_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.testShouldDoNothing:()V", "class": "CommitProjectBuilderTest", "method": "testShouldDoNothing", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#testShouldDoNothing", "old_test_code": null, "new_test_code": "@Test\npublic void testShouldDoNothing() {\n commitProjectBuilder.build(null);\n verifyZeroInteractions(facade);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-61"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "41-50", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-56", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.4673, "method_coverage_gold": 8.046, "line_coverage_gold": 12.2807, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__3ee5a62_bfd5ee2__CommitIssuePostJobTest_4380cf20", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "3ee5a62557837db5ef3abb74a6f20230b2ead66e", "rev2": "bfd5ee239fd07025a96a3be757a4580938a8d432", "rev1_date": "2017-03-06T08:26:39Z", "rev2_date": "2017-03-06T15:09:45Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/3ee5a62557837db5ef3abb74a6f20230b2ead66e...bfd5ee239fd07025a96a3be757a4580938a8d432", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.java", "test_changes": [{"change_id": "565_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisWithNewIssuesNoBlockerNorCritical2:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisWithNewIssuesNoBlockerNorCritical2", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisWithNewIssuesNoBlockerNorCritical2", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisWithNewIssuesNoBlockerNorCritical2() {\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, StatusNotificationsMode.EXIT_CODE.getMeaning());\n DefaultInputFile inputFile1 = new DefaultInputFile(\"foo\", \"src/Foo.php\");\n PostJobIssue newIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 1, Severity.MAJOR, true, \"msg1\");\n when(commitFacade.getGitLabUrl(inputFile1, 1)).thenReturn(\"http://gitlab/blob/abc123/src/Foo.php#L1\");\n when(context.issues()).thenReturn(Collections.singletonList(newIssue));\n when(commitFacade.hasFile(inputFile1)).thenReturn(true);\n when(commitFacade.hasFileLine(inputFile1, 1)).thenReturn(true);\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade, Mockito.never()).createOrUpdateSonarQubeStatus(\"success\", \"SonarQube reported 1 issue, no criticals or blockers\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["327-342"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n LOG.info(\"Find a {} new issues\", getStreamPostJobIssue(context.issues()).count());\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this commit\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (!gitLabPluginConfiguration.disableGlobalComment() && (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue())) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n String status = report.getStatus();\n String statusDescription = report.getStatusDescription();\n String message = String.format(\"Report status=%s, desc=%s\", report.getStatus(), report.getStatusDescription());\n StatusNotificationsMode i = gitLabPluginConfiguration.statusNotificationsMode();\n if (i == StatusNotificationsMode.COMMIT_STATUS) {\n LOG.info(message);\n commitFacade.createOrUpdateSonarQubeStatus(status, statusDescription);\n } else if (i == StatusNotificationsMode.EXIT_CODE) {\n if (\"failed\".equals(status)) {\n throw MessageException.of(message);\n } else {\n LOG.info(message);\n }\n }\n } catch (MessageException e) {\n throw e;\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this commit\";\n LOG.error(msg, e);\n StatusNotificationsMode i = gitLabPluginConfiguration.statusNotificationsMode();\n if (i == StatusNotificationsMode.COMMIT_STATUS) {\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "61-82", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "62-103", "dependency_updated": "updated", "score": 0.3201, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.0833, "class": 1.0, "tfidf": 0.0736}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": 0.1112, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1042, "class": 0.0, "tfidf": 0.0246}}], "coverage_gold": 0.5925925925925926, "branch_coverage_gold": 21.2598, "method_coverage_gold": 50.0, "line_coverage_gold": 45.2381, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.newMockedIssue:(Ljava/lang/String;Lorg/sonar/api/batch/fs/internal/DefaultInputFile;Ljava/lang/Integer;Lorg/sonar/api/batch/rule/Severity;ZLjava/lang/String;)Lorg/sonar/api/batch/postjob/issue/PostJobIssue", "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "566_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisWithNewIssues2:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisWithNewIssues2", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisWithNewIssues2", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisWithNewIssues2() {\n settings.setProperty(GitLabPlugin.GITLAB_ONLY_ISSUE_FROM_COMMIT_FILE, false);\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, StatusNotificationsMode.EXIT_CODE.getMeaning());\n settings.setProperty(GitLabPlugin.GITLAB_DISABLE_GLOBAL_COMMENT, true);\n DefaultInputFile inputFile1 = new DefaultInputFile(\"foo\", \"src/Foo.php\");\n PostJobIssue newIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 1, Severity.BLOCKER, true, \"msg1\");\n Mockito.when(commitFacade.getGitLabUrl(inputFile1, 1)).thenReturn(\"http://gitlab/blob/abc123/src/Foo.php#L1\");\n PostJobIssue lineNotVisible = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 2, Severity.BLOCKER, true, \"msg2\");\n Mockito.when(commitFacade.getGitLabUrl(inputFile1, 2)).thenReturn(\"http://gitlab/blob/abc123/src/Foo.php#L2\");\n DefaultInputFile inputFile2 = new DefaultInputFile(\"foo\", \"src/Foo2.php\");\n PostJobIssue fileNotInPR = newMockedIssue(\"foo:src/Foo2.php\", inputFile2, 1, Severity.BLOCKER, true, \"msg3\");\n PostJobIssue notNewIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 1, Severity.BLOCKER, false, \"msg\");\n PostJobIssue issueOnDir = newMockedIssue(\"foo:src\", Severity.BLOCKER, true, \"msg4\");\n PostJobIssue issueOnProject = newMockedIssue(\"foo\", Severity.BLOCKER, true, \"msg\");\n PostJobIssue globalIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, null, Severity.BLOCKER, true, \"msg5\");\n Mockito.when(context.issues()).thenReturn(Arrays.asList(newIssue, globalIssue, issueOnProject, issueOnDir, fileNotInPR, lineNotVisible, notNewIssue));\n Mockito.when(commitFacade.hasFile(inputFile1)).thenReturn(true);\n Mockito.when(commitFacade.hasFileLine(inputFile1, 1)).thenReturn(true);\n Assertions.assertThatThrownBy(() -> commitIssuePostJob.execute(context)).isInstanceOf(MessageException.class);\n Mockito.verify(commitFacade, Mockito.never()).addGlobalComment(Mockito.contains(\"SonarQube analysis reported 6 issues\"));\n Mockito.verify(commitFacade, Mockito.never()).createOrUpdateSonarQubeStatus(\"failed\", \"SonarQube reported 6 issues, with 6 blocker\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["293-325"], "old_production_code": "", "new_production_code": "public String getMeaning() {\n return meaning;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.685, "method_coverage_gold": 49.0741, "line_coverage_gold": 44.1558, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.newMockedIssue:(Ljava/lang/String;Lorg/sonar/api/batch/fs/internal/DefaultInputFile;Ljava/lang/Integer;Lorg/sonar/api/batch/rule/Severity;ZLjava/lang/String;)Lorg/sonar/api/batch/postjob/issue/PostJobIssue", "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.newMockedIssue:(Ljava/lang/String;Lorg/sonar/api/batch/rule/Severity;ZLjava/lang/String;)Lorg/sonar/api/batch/postjob/issue/PostJobIssue", "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "567_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testDescriptor:()V", "class": "CommitIssuePostJobTest", "method": "testDescriptor", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testDescriptor", "old_test_code": null, "new_test_code": "@Test\npublic void testDescriptor() {\n DefaultPostJobDescriptor postJobDescriptor = new DefaultPostJobDescriptor();\n commitIssuePostJob.describe(postJobDescriptor);\n Assertions.assertThat(postJobDescriptor.name()).isEqualTo(\"GitLab Commit Issue Publisher\");\n Assertions.assertThat(postJobDescriptor.properties()).containsExactly(GitLabPlugin.GITLAB_URL, GitLabPlugin.GITLAB_USER_TOKEN, GitLabPlugin.GITLAB_PROJECT_ID, GitLabPlugin.GITLAB_COMMIT_SHA);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["344-351"], "old_production_code": "@Override\npublic void describe(PostJobDescriptor descriptor) {\n descriptor.name(\"GitLab Commit Issue Publisher\").requireProperty(GitLabPlugin.GITLAB_COMMIT_SHA);\n}", "new_production_code": "@Override\npublic void describe(PostJobDescriptor descriptor) {\n descriptor.name(\"GitLab Commit Issue Publisher\").requireProperty(GitLabPlugin.GITLAB_URL, GitLabPlugin.GITLAB_USER_TOKEN, GitLabPlugin.GITLAB_PROJECT_ID, GitLabPlugin.GITLAB_COMMIT_SHA);\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.describe:(Lorg/sonar/api/batch/postjob/PostJobDescriptor;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.describe:(Lorg/sonar/api/batch/postjob/PostJobDescriptor;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-59", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "57-60", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.1811, "method_coverage_gold": 13.8889, "line_coverage_gold": 17.7489, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.describe:(Lorg/sonar/api/batch/postjob/PostJobDescriptor;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.describe:(Lorg/sonar/api/batch/postjob/PostJobDescriptor;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "571_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisNoIssueExit:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisNoIssueExit", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisNoIssueExit", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisNoIssueExit() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMENT_NO_ISSUE, false);\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, StatusNotificationsMode.EXIT_CODE.getMeaning());\n Mockito.when(context.issues()).thenReturn(Collections.emptyList());\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade, Mockito.never()).addGlobalComment(null);\n Mockito.verify(commitFacade, Mockito.never()).createOrUpdateSonarQubeStatus(\"success\", \"SonarQube reported no issues\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["282-291"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n LOG.info(\"Find a {} new issues\", getStreamPostJobIssue(context.issues()).count());\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this commit\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (!gitLabPluginConfiguration.disableGlobalComment() && (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue())) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n String status = report.getStatus();\n String statusDescription = report.getStatusDescription();\n String message = String.format(\"Report status=%s, desc=%s\", report.getStatus(), report.getStatusDescription());\n StatusNotificationsMode i = gitLabPluginConfiguration.statusNotificationsMode();\n if (i == StatusNotificationsMode.COMMIT_STATUS) {\n LOG.info(message);\n commitFacade.createOrUpdateSonarQubeStatus(status, statusDescription);\n } else if (i == StatusNotificationsMode.EXIT_CODE) {\n if (\"failed\".equals(status)) {\n throw MessageException.of(message);\n } else {\n LOG.info(message);\n }\n }\n } catch (MessageException e) {\n throw e;\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this commit\";\n LOG.error(msg, e);\n StatusNotificationsMode i = gitLabPluginConfiguration.statusNotificationsMode();\n if (i == StatusNotificationsMode.COMMIT_STATUS) {\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "61-82", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "62-103", "dependency_updated": "updated", "score": 0.2978, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.08, "class": 1.0, "tfidf": 0.088}}, {"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": 0.1298, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 0.0, "tfidf": 0.0366}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 10.6299, "method_coverage_gold": 35.1852, "line_coverage_gold": 29.4372, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__3ee5a62_bfd5ee2__CommitProjectBuilderTest_a9ad8eab", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "3ee5a62557837db5ef3abb74a6f20230b2ead66e", "rev2": "bfd5ee239fd07025a96a3be757a4580938a8d432", "rev1_date": "2017-03-06T08:26:39Z", "rev2_date": "2017-03-06T15:09:45Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/3ee5a62557837db5ef3abb74a6f20230b2ead66e...bfd5ee239fd07025a96a3be757a4580938a8d432", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.java", "test_changes": [{"change_id": "568_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.shouldNotFailIfIssuesNone:()V", "class": "CommitProjectBuilderTest", "method": "shouldNotFailIfIssuesNone", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#shouldNotFailIfIssuesNone", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotFailIfIssuesNone() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"1\");\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, StatusNotificationsMode.EXIT_CODE.getMeaning());\n when(mode.isIssues()).thenReturn(true);\n commitProjectBuilder.build(mock(ProjectBuilder.Context.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)));\n verify(facade).init(any(File.class));\n verify(facade, never()).createOrUpdateSonarQubeStatus(BuildInitState.PENDING.getMeaning(), \"SonarQube analysis in progress\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["97-108"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n if (StatusNotificationsMode.COMMIT_STATUS.equals(gitLabPluginConfiguration.statusNotificationsMode())) {\n commitFacade.createOrUpdateSonarQubeStatus(gitLabPluginConfiguration.buildInitState().getMeaning(), \"SonarQube analysis in progress\");\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "45-56", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-58", "dependency_updated": "updated", "score": 0.371, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.12, "class": 1.0, "tfidf": 0.2427}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": 0.118, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.16, "class": 0.0, "tfidf": 0.0895}}, {"dep_id": 2, "method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.118, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.16, "class": 0.0, "tfidf": 0.0895}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 2.7559, "method_coverage_gold": 14.8148, "line_coverage_gold": 17.9654, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "570_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.shouldNotFailIfIssuesRunning:()V", "class": "CommitProjectBuilderTest", "method": "shouldNotFailIfIssuesRunning", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#shouldNotFailIfIssuesRunning", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotFailIfIssuesRunning() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"1\");\n settings.setProperty(GitLabPlugin.GITLAB_BUILD_INIT_STATE, BuildInitState.RUNNING.getMeaning());\n when(mode.isIssues()).thenReturn(true);\n commitProjectBuilder.build(mock(ProjectBuilder.Context.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)));\n verify(facade).init(any(File.class));\n verify(facade).createOrUpdateSonarQubeStatus(BuildInitState.RUNNING.getMeaning(), \"SonarQube analysis in progress\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-95"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n if (StatusNotificationsMode.COMMIT_STATUS.equals(gitLabPluginConfiguration.statusNotificationsMode())) {\n commitFacade.createOrUpdateSonarQubeStatus(gitLabPluginConfiguration.buildInitState().getMeaning(), \"SonarQube analysis in progress\");\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "45-56", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-58", "dependency_updated": "updated", "score": 0.3581, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1071, "class": 1.0, "tfidf": 0.1969}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.1616, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.2143, "class": 0.0, "tfidf": 0.087}}], "coverage_gold": 0.875, "branch_coverage_gold": 3.937, "method_coverage_gold": 16.6667, "line_coverage_gold": 19.2641, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "572_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_CommitProjectBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilderTest.shouldNotFailIfIssuesPending:()V", "class": "CommitProjectBuilderTest", "method": "shouldNotFailIfIssuesPending", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitProjectBuilderTest#shouldNotFailIfIssuesPending", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotFailIfIssuesPending() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"1\");\n when(mode.isIssues()).thenReturn(true);\n commitProjectBuilder.build(mock(ProjectBuilder.Context.class, withSettings().defaultAnswer(RETURNS_DEEP_STUBS)));\n verify(facade).init(any(File.class));\n verify(facade).createOrUpdateSonarQubeStatus(BuildInitState.PENDING.getMeaning(), \"SonarQube analysis in progress\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-82"], "old_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n commitFacade.createOrUpdateSonarQubeStatus(\"pending\", \"SonarQube analysis in progress\");\n}", "new_production_code": "@Override\npublic void build(Context context) {\n if (!gitLabPluginConfiguration.isEnabled()) {\n return;\n }\n checkMode();\n commitFacade.init(context.projectReactor().getRoot().getBaseDir());\n if (StatusNotificationsMode.COMMIT_STATUS.equals(gitLabPluginConfiguration.statusNotificationsMode())) {\n commitFacade.createOrUpdateSonarQubeStatus(gitLabPluginConfiguration.buildInitState().getMeaning(), \"SonarQube analysis in progress\");\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_old": "45-56", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "line_nums_new": "45-58", "dependency_updated": "updated", "score": 0.4061, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1429, "class": 1.0, "tfidf": 0.2261}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.1536, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.2143, "class": 0.0, "tfidf": 0.0529}}], "coverage_gold": 0.875, "branch_coverage_gold": 3.5433, "method_coverage_gold": 16.6667, "line_coverage_gold": 19.2641, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.build:(Lorg/sonar/api/batch/bootstrap/ProjectBuilder$Context;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitProjectBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__3ee5a62_bfd5ee2__GitLabPluginConfigurationTest_62475312", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "3ee5a62557837db5ef3abb74a6f20230b2ead66e", "rev2": "bfd5ee239fd07025a96a3be757a4580938a8d432", "rev1_date": "2017-03-06T08:26:39Z", "rev2_date": "2017-03-06T15:09:45Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/3ee5a62557837db5ef3abb74a6f20230b2ead66e...bfd5ee239fd07025a96a3be757a4580938a8d432", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfigurationTest.java", "test_changes": [{"change_id": "569_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_3ee5a62_bfd5ee2_GitLabPluginConfigurationTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfigurationTest.testProject:()V", "class": "GitLabPluginConfigurationTest", "method": "testProject", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GitLabPluginConfigurationTest#testProject", "old_test_code": null, "new_test_code": "@Test\npublic void testProject() {\n Assertions.assertThat(config.isEnabled()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_COMMIT_SHA, \"3\");\n Assertions.assertThat(config.commitSHA()).isEqualTo(\"3\");\n Assertions.assertThat(config.isEnabled()).isTrue();\n Assertions.assertThat(config.commentNoIssue()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_COMMENT_NO_ISSUE, \"true\");\n Assertions.assertThat(config.commentNoIssue()).isTrue();\n Assertions.assertThat(config.tryReportIssuesInline()).isTrue();\n settings.setProperty(GitLabPlugin.GITLAB_DISABLE_INLINE_COMMENTS, \"true\");\n Assertions.assertThat(config.tryReportIssuesInline()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_PROJECT_ID, \"123\");\n Assertions.assertThat(config.projectId()).isEqualTo(\"123\");\n Assertions.assertThat(config.ignoreFileNotModified()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_IGNORE_FILE, \"true\");\n Assertions.assertThat(config.ignoreFileNotModified()).isTrue();\n settings.setProperty(GitLabPlugin.GITLAB_REF_NAME, \"123\");\n Assertions.assertThat(config.refName()).isEqualTo(\"123\");\n Assertions.assertThat(config.onlyIssueFromCommitFile()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_ONLY_ISSUE_FROM_COMMIT_FILE, \"true\");\n Assertions.assertThat(config.onlyIssueFromCommitFile()).isTrue();\n Assertions.assertThat(config.buildInitState()).isEqualTo(BuildInitState.PENDING);\n settings.setProperty(GitLabPlugin.GITLAB_BUILD_INIT_STATE, BuildInitState.RUNNING.getMeaning());\n Assertions.assertThat(config.buildInitState()).isEqualTo(BuildInitState.RUNNING);\n settings.setProperty(GitLabPlugin.GITLAB_BUILD_INIT_STATE, \"toto\");\n Assertions.assertThat(config.buildInitState()).isEqualTo(BuildInitState.PENDING);\n Assertions.assertThat(config.disableGlobalComment()).isFalse();\n settings.setProperty(GitLabPlugin.GITLAB_DISABLE_GLOBAL_COMMENT, \"true\");\n Assertions.assertThat(config.disableGlobalComment()).isTrue();\n Assertions.assertThat(config.statusNotificationsMode()).isEqualTo(StatusNotificationsMode.COMMIT_STATUS);\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, StatusNotificationsMode.EXIT_CODE.getMeaning());\n Assertions.assertThat(config.statusNotificationsMode()).isEqualTo(StatusNotificationsMode.EXIT_CODE);\n settings.setProperty(GitLabPlugin.GITLAB_STATUS_NOTIFICATION_MODE, \"toto\");\n Assertions.assertThat(config.statusNotificationsMode()).isEqualTo(StatusNotificationsMode.COMMIT_STATUS);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-106"], "old_production_code": "", "new_production_code": "public boolean disableGlobalComment() {\n return settings.getBoolean(GitLabPlugin.GITLAB_DISABLE_GLOBAL_COMMENT);\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.disableGlobalComment:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.disableGlobalComment:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "line_nums_new": "127-129", "dependency_updated": "inserted", "score": 0.285, "signal_scores": {"nc": 0.0, "lcs_u": 0.15, "ed": 0.15, "class": 1.0, "tfidf": 0.1937}}, {"dep_id": 4, "method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.statusNotificationsMode:()Lcom/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "line_nums_new": "131-134", "dependency_updated": "inserted", "score": 0.2692, "signal_scores": {"nc": 0.0, "lcs_u": 0.1304, "ed": 0.1304, "class": 1.0, "tfidf": 0.1549}}, {"dep_id": 2, "method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.buildInitState:()Lcom/talanlabs/sonar/plugins/gitlab/BuildInitState", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "line_nums_new": "122-125", "dependency_updated": "inserted", "score": 0.249, "signal_scores": {"nc": 0.0, "lcs_u": 0.0714, "ed": 0.0714, "class": 1.0, "tfidf": 0.1549}}, {"dep_id": 1, "method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.0553, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1, "class": 0.0, "tfidf": 0.0151}}, {"dep_id": 3, "method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": 0.0553, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1, "class": 0.0, "tfidf": 0.0151}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.5118, "method_coverage_gold": 20.3704, "line_coverage_gold": 18.1818, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ad139aa71e14a0935dc58ca1dcc9ad5349bbc5c9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.disableGlobalComment:()Z", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.commentNoIssue:()Z", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.ignoreFileNotModified:()Z", "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.refName:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.isEnabled:()Z", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.buildInitState:()Lcom/talanlabs/sonar/plugins/gitlab/BuildInitState", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.tryReportIssuesInline:()Z", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.statusNotificationsMode:()Lcom/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.commitSHA:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.projectId:()Ljava/lang/String", "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.onlyIssueFromCommitFile:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.disableGlobalComment:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/BuildInitState.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/BuildInitState.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.buildInitState:()Lcom/talanlabs/sonar/plugins/gitlab/BuildInitState", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.getMeaning:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.statusNotificationsMode:()Lcom/talanlabs/sonar/plugins/gitlab/StatusNotificationsMode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GitLabPluginConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__945d982_27df6ab__CommitIssuePostJobTest_24a16577", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "945d982812a99613ad858ceb68824c1eccdc2ce2", "rev2": "27df6abf8d15a1d1148b5327b055068339e38487", "rev1_date": "2017-03-02T14:55:51Z", "rev2_date": "2017-03-02T15:43:34Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/945d982812a99613ad858ceb68824c1eccdc2ce2...27df6abf8d15a1d1148b5327b055068339e38487", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.java", "test_changes": [{"change_id": "541_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_945d982_27df6ab_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisNoIssue1:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisNoIssue1", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisNoIssue1", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisNoIssue1() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMENT_NO_ISSUE, false);\n Mockito.when(context.issues()).thenReturn(Arrays.asList());\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade, Mockito.never()).addGlobalComment(null);\n Mockito.verify(commitFacade).createOrUpdateSonarQubeStatus(\"success\", \"SonarQube reported no issues\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-96"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-69", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-79", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5833333333333334, "branch_coverage_gold": 7.619, "method_coverage_gold": 31.3253, "line_coverage_gold": 25.0653, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5b5422ef008b31d1c1d9b455353178d56ded4784"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "543_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_945d982_27df6ab_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisNoIssue2:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisNoIssue2", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisNoIssue2", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisNoIssue2() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMENT_NO_ISSUE, true);\n Mockito.when(context.issues()).thenReturn(Arrays.asList());\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade).addGlobalComment(\"SonarQube analysis reported no issues.\");\n Mockito.verify(commitFacade).createOrUpdateSonarQubeStatus(\"success\", \"SonarQube reported no issues\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-106"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-69", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-79", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 8.0952, "method_coverage_gold": 32.5301, "line_coverage_gold": 26.3708, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5b5422ef008b31d1c1d9b455353178d56ded4784"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "545_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_945d982_27df6ab_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.should_update_sonarqube_status_even_if_unexpected_errors_were_raised:()V", "class": "CommitIssuePostJobTest", "method": "should_update_sonarqube_status_even_if_unexpected_errors_were_raised", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#should_update_sonarqube_status_even_if_unexpected_errors_were_raised", "old_test_code": null, "new_test_code": "@Test\npublic void should_update_sonarqube_status_even_if_unexpected_errors_were_raised() {\n String innerMsg = \"Failed to get issues\";\n when(context.issues()).thenThrow(new IllegalStateException(innerMsg));\n commitIssuePostJob.execute(context);\n String msg = \"SonarQube failed to complete the review of this pull request: \" + innerMsg;\n verify(commitFacade).createOrUpdateSonarQubeStatus(\"failed\", msg);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["230-239"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-69", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-79", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.9524, "method_coverage_gold": 13.253, "line_coverage_gold": 17.7546, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5b5422ef008b31d1c1d9b455353178d56ded4784"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__945d982_db984bc__CommitIssuePostJobTest_4ad8e629", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "945d982812a99613ad858ceb68824c1eccdc2ce2", "rev2": "db984bc7621868c461e85fef34986829178104cb", "rev1_date": "2017-03-02T14:55:51Z", "rev2_date": "2017-03-02T16:46:39Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/945d982812a99613ad858ceb68824c1eccdc2ce2...db984bc7621868c461e85fef34986829178104cb", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.java", "test_changes": [{"change_id": "547_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_945d982_db984bc_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testUnexpectedException:()V", "class": "CommitIssuePostJobTest", "method": "testUnexpectedException", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testUnexpectedException", "old_test_code": null, "new_test_code": "@Test\npublic void testUnexpectedException() {\n String innerMsg = \"Failed to get issues\";\n when(context.issues()).thenThrow(new IllegalStateException(innerMsg));\n commitIssuePostJob.execute(context);\n String msg = \"SonarQube failed to complete the review of this pull request: \" + innerMsg;\n verify(commitFacade).createOrUpdateSonarQubeStatus(\"failed\", msg);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["230-239"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-69", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-79", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.4019, "method_coverage_gold": 12.6437, "line_coverage_gold": 17.5439, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["27df6abf8d15a1d1148b5327b055068339e38487", "5b5422ef008b31d1c1d9b455353178d56ded4784"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "548_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_945d982_db984bc_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisNoIssue1:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisNoIssue1", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisNoIssue1", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisNoIssue1() {\n settings.setProperty(GitLabPlugin.GITLAB_COMMENT_NO_ISSUE, false);\n Mockito.when(context.issues()).thenReturn(Collections.emptyList());\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade, Mockito.never()).addGlobalComment(null);\n Mockito.verify(commitFacade).createOrUpdateSonarQubeStatus(\"success\", \"SonarQube reported no issues\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-96"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "56-69", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-79", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5833333333333334, "branch_coverage_gold": 7.9439, "method_coverage_gold": 29.8851, "line_coverage_gold": 24.5614, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["27df6abf8d15a1d1148b5327b055068339e38487", "5b5422ef008b31d1c1d9b455353178d56ded4784"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__a15f93f_2466da1__CommitFacadeTest_ae078e0a", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "a15f93f86109cec84680a22c10d256b4596d1aa2", "rev2": "2466da1e73018fff2aa48b61ffe081466e5958d1", "rev1_date": "2017-03-03T10:00:50Z", "rev2_date": "2017-03-03T10:44:20Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/a15f93f86109cec84680a22c10d256b4596d1aa2...2466da1e73018fff2aa48b61ffe081466e5958d1", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.java", "test_changes": [{"change_id": "533_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_a15f93f_2466da1_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testGlobalComment:()V", "class": "CommitFacadeTest", "method": "testGlobalComment", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testGlobalComment", "old_test_code": null, "new_test_code": "@Test\npublic void testGlobalComment() throws IOException {\n GitLabPluginConfiguration gitLabPluginConfiguration = mock(GitLabPluginConfiguration.class);\n when(gitLabPluginConfiguration.commitSHA()).thenReturn(\"1\");\n when(gitLabPluginConfiguration.refName()).thenReturn(\"master\");\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n GitLabAPI gitLabAPI = mock(GitLabAPI.class);\n facade.setGitLabAPI(gitLabAPI);\n GitLabAPICommits gitLabAPICommits = mock(GitLabAPICommits.class);\n when(gitLabAPICommits.postCommitComments(\"1\", \"1\", \"pending\", \"master\", null, null)).thenReturn(null);\n when(gitLabAPI.getGitLabAPICommits()).thenReturn(gitLabAPICommits);\n GitLabProject gitLabProject = mock(GitLabProject.class);\n when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n facade.addGlobalComment(\"nothing\");\n verify(gitLabAPICommits).postCommitComments(1, \"1\", \"nothing\", null, null, null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["138-161"], "old_production_code": "", "new_production_code": "void setGitLabAPI(GitLabAPI gitLabAPI) {\n this.gitLabAPI = gitLabAPI;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "142-144", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.0, "method_coverage_gold": 6.5217, "line_coverage_gold": 3.163, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.addGlobalComment:(Ljava/lang/String;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "534_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_a15f93f_2466da1_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testStatusSuccess:()V", "class": "CommitFacadeTest", "method": "testStatusSuccess", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testStatusSuccess", "old_test_code": null, "new_test_code": "@Test\npublic void testStatusSuccess() throws IOException {\n GitLabPluginConfiguration gitLabPluginConfiguration = mock(GitLabPluginConfiguration.class);\n when(gitLabPluginConfiguration.commitSHA()).thenReturn(\"1\");\n when(gitLabPluginConfiguration.refName()).thenReturn(\"master\");\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n GitLabAPI gitLabAPI = mock(GitLabAPI.class);\n facade.setGitLabAPI(gitLabAPI);\n GitLabAPICommits gitLabAPICommits = mock(GitLabAPICommits.class);\n when(gitLabAPICommits.postCommitStatus(\"1\", \"1\", \"pending\", \"master\", \"toto\", \"server\", \"\")).thenReturn(null);\n when(gitLabAPI.getGitLabAPICommits()).thenReturn(gitLabAPICommits);\n GitLabProject gitLabProject = mock(GitLabProject.class);\n when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n facade.createOrUpdateSonarQubeStatus(\"pending\", \"nothing\");\n verify(gitLabAPICommits).postCommitStatus(1, \"1\", \"pending\", \"master\", \"sonarqube\", null, \"nothing\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["113-136"], "old_production_code": "", "new_production_code": "void setGitLabAPI(GitLabAPI gitLabAPI) {\n this.gitLabAPI = gitLabAPI;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "142-144", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.0, "method_coverage_gold": 6.5217, "line_coverage_gold": 3.163, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.createOrUpdateSonarQubeStatus:(Ljava/lang/String;Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "535_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_a15f93f_2466da1_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testReviewComment:()V", "class": "CommitFacadeTest", "method": "testReviewComment", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testReviewComment", "old_test_code": null, "new_test_code": "@Test\npublic void testReviewComment() throws IOException {\n GitLabPluginConfiguration gitLabPluginConfiguration = mock(GitLabPluginConfiguration.class);\n when(gitLabPluginConfiguration.commitSHA()).thenReturn(\"1\");\n when(gitLabPluginConfiguration.refName()).thenReturn(\"master\");\n CommitFacade facade = new CommitFacade(gitLabPluginConfiguration);\n File gitBasedir = temp.newFolder();\n facade.setGitBaseDir(gitBasedir);\n GitLabAPI gitLabAPI = mock(GitLabAPI.class);\n facade.setGitLabAPI(gitLabAPI);\n GitLabAPICommits gitLabAPICommits = mock(GitLabAPICommits.class);\n when(gitLabAPICommits.postCommitComments(\"1\", \"1\", \"pending\", \"master\", null, null)).thenReturn(null);\n when(gitLabAPI.getGitLabAPICommits()).thenReturn(gitLabAPICommits);\n GitLabProject gitLabProject = mock(GitLabProject.class);\n when(gitLabProject.getId()).thenReturn(1);\n facade.setGitLabProject(gitLabProject);\n InputFile inputFile = mock(InputFile.class);\n when(inputFile.file()).thenReturn(new File(gitBasedir, \"src/main/Foo.java\"));\n facade.createOrUpdateReviewComment(inputFile, 5, \"nothing\");\n verify(gitLabAPICommits).postCommitComments(1, \"1\", \"nothing\", \"src/main/Foo.java\", 5, \"new\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-192"], "old_production_code": "", "new_production_code": "void setGitLabAPI(GitLabAPI gitLabAPI) {\n this.gitLabAPI = gitLabAPI;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "142-144", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.0, "method_coverage_gold": 8.6957, "line_coverage_gold": 4.1363, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitBaseDir:(Ljava/io/File;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabProject:(Lcom/talanlabs/gitlab/api/models/projects/GitLabProject;)V", "com/talanlabs/sonar/plugins/gitlab/CommitFacade.createOrUpdateReviewComment:(Lorg/sonar/api/batch/fs/InputFile;Ljava/lang/Integer;Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.setGitLabAPI:(Lcom/talanlabs/gitlab/api/GitLabAPI;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__bad59b6_0289c6f__CommitFacadeTest_9414c222", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "bad59b6a3c102da9612502d840ace4e787d365f0", "rev2": "0289c6f84f2464271444d24202bc92692a325318", "rev1_date": "2017-03-18T11:49:21Z", "rev2_date": "2017-03-18T15:53:51Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/bad59b6a3c102da9612502d840ace4e787d365f0...0289c6f84f2464271444d24202bc92692a325318", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.java", "test_changes": [{"change_id": "417_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_bad59b6_0289c6f_CommitFacadeTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacadeTest.testMapPatchPositionsToLines:()V", "class": "CommitFacadeTest", "method": "testMapPatchPositionsToLines", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitFacadeTest#testMapPatchPositionsToLines", "old_test_code": null, "new_test_code": "@Test\npublic void testMapPatchPositionsToLines() throws IOException {\n GitLabCommitDiff diff1 = new GitLabCommitDiff();\n diff1.setNewPath(\"src/main/Foo.java\");\n diff1.setDiff(\"@@ -24,9 +24,9 @@\\n /**\\n * A plugin is a group of extensions. See org.sonar.api.Extension interface to browse\\n * available extension points.\\n- *

\\n *

The manifest property Plugin-Class must declare the name of the implementation class.\\n * It is automatically set by sonar-packaging-maven-plugin when building plugins.

\\n+ *

Implementation must declare a public constructor with no-parameters.

\\n *\\n * @see org.sonar.api.Extension\\n * @since 1.10\");\n GitLabCommitDiff diff2 = new GitLabCommitDiff();\n diff2.setNewPath(\"src/main/Foo2.java\");\n diff2.setDiff(\"@@ -2,11 +2,9 @@\\n /**\\n * A plugin is a group of extensions. See org.sonar.api.Extension interface to browse\\n * available extension points.\\n- *

\\n *

The manifest property Plugin-Class must declare the name of the implementation class.\\n * It is automatically set by sonar-packaging-maven-plugin when building plugins.

\\n+ *

Implementation must declare a public constructor with no-parameters.

\\n *\\n * @see org.sonar.api.Extension\\n * @since 1.10\");\n assertThat(CommitFacade.mapPatchPositionsToLines(Arrays.asList(diff1, diff2))).containsEntry(\"src/main/Foo.java\", Sets.newHashSet(32, 24, 25, 26, 27, 28, 29, 30, 31)).containsEntry(\"src/main/Foo2.java\", Sets.newHashSet(2, 3, 4, 5, 6, 7, 8, 9, 10));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["217-230"], "old_production_code": "", "new_production_code": "static Map> mapPatchPositionsToLines(List diffs) throws IOException {\n Map> patchPositionMappingByFile = new HashMap<>();\n for (GitLabCommitDiff file : diffs) {\n Set patchLocationMapping = new HashSet<>();\n patchPositionMappingByFile.put(file.getNewPath(), patchLocationMapping);\n String patch = file.getDiff();\n if (patch == null) {\n continue;\n }\n processPatch(patchLocationMapping, patch);\n }\n return patchPositionMappingByFile;\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.mapPatchPositionsToLines:(Ljava/util/List;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.mapPatchPositionsToLines:(Ljava/util/List;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "line_nums_new": "69-81", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 4.9618, "method_coverage_gold": 2.439, "line_coverage_gold": 4.8117, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitFacade.mapPatchPositionsToLines:(Ljava/util/List;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitFacade.mapPatchPositionsToLines:(Ljava/util/List;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitFacade.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__bad59b6_0289c6f__GlobalCommentBuilderTest_3536c873", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "bad59b6a3c102da9612502d840ace4e787d365f0", "rev2": "0289c6f84f2464271444d24202bc92692a325318", "rev1_date": "2017-03-18T11:49:21Z", "rev2_date": "2017-03-18T15:53:51Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/bad59b6a3c102da9612502d840ace4e787d365f0...0289c6f84f2464271444d24202bc92692a325318", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilderTest.java", "test_changes": [{"change_id": "419_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_bad59b6_0289c6f_GlobalCommentBuilderTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilderTest.noIssues:()V", "class": "GlobalCommentBuilderTest", "method": "noIssues", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.GlobalCommentBuilderTest#noIssues", "old_test_code": null, "new_test_code": "@Test\npublic void noIssues() {\n GlobalCommentBuilder globalReport = new GlobalCommentBuilder(config, new Reporter(config), new MarkDownUtils(settings));\n String desiredMarkdown = \"SonarQube analysis reported no issues.\";\n String formattedGlobalReport = globalReport.buildForMarkdown();\n Assertions.assertThat(formattedGlobalReport).isEqualTo(desiredMarkdown);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-79"], "old_production_code": "", "new_production_code": "public String buildForMarkdown() {\n StringBuilder sb = new StringBuilder();\n int newIssues = reporter.getIssueCount();\n if (newIssues == 0) {\n return \"SonarQube analysis reported no issues.\";\n }\n boolean hasInlineIssues = newIssues > reporter.getNotReportedIssueCount();\n boolean extraIssuesTruncated = reporter.getNotReportedIssueCount() > gitLabPluginConfiguration.maxGlobalIssues();\n sb.append(\"SonarQube analysis reported \").append(newIssues).append(\" issue\").append(newIssues > 1 ? \"s\" : \"\").append(\"\\n\");\n appendSummaryBySeverity(sb);\n if (gitLabPluginConfiguration.tryReportIssuesInline() && hasInlineIssues) {\n sb.append(\"\\nWatch the comments in this conversation to review them.\\n\");\n }\n if (reporter.getNotReportedIssueCount() > 0) {\n appendExtraIssues(sb, hasInlineIssues, extraIssuesTruncated);\n }\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.buildForMarkdown:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.buildForMarkdown:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.java", "line_nums_new": "42-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3076923076923077, "branch_coverage_gold": 1.5267, "method_coverage_gold": 13.0081, "line_coverage_gold": 18.6192, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.buildForMarkdown:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.buildForMarkdown:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/GlobalCommentBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT__c786fab_6a62ffe__CommitIssuePostJobTest_79c7dff9", "project_name": "gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT", "git_clone_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin.git", "rev1": "c786fab74de52605a2ccebba8c3bfda0b4978930", "rev2": "6a62ffe6e6ce08d7020188196a5492d4cdb44ba7", "rev1_date": "2017-03-02T21:16:14Z", "rev2_date": "2017-03-03T08:31:05Z", "git_diff_url": "https://github.com/gabrie-allaigre/sonar-gitlab-plugin/compare/c786fab74de52605a2ccebba8c3bfda0b4978930...6a62ffe6e6ce08d7020188196a5492d4cdb44ba7", "test_file": "src/test/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.java", "test_changes": [{"change_id": "536_gabrie-allaigre_sonar-gitlab-plugin-4.1.0-SNAPSHOT_c786fab_6a62ffe_CommitIssuePostJobTest", "test_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.testCommitAnalysisWithNewIssuesOnly:()V", "class": "CommitIssuePostJobTest", "method": "testCommitAnalysisWithNewIssuesOnly", "module": "", "junit_selector": "com.talanlabs.sonar.plugins.gitlab.CommitIssuePostJobTest#testCommitAnalysisWithNewIssuesOnly", "old_test_code": null, "new_test_code": "@Test\npublic void testCommitAnalysisWithNewIssuesOnly() {\n settings.setProperty(GitLabPlugin.GITLAB_ONLY_ISSUE_FROM_COMMIT_FILE, true);\n DefaultInputFile inputFile1 = new DefaultInputFile(\"foo\", \"src/Foo.php\");\n PostJobIssue newIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 1, Severity.BLOCKER, true, \"msg1\");\n Mockito.when(commitFacade.getGitLabUrl(inputFile1, 1)).thenReturn(\"http://gitlab/blob/abc123/src/Foo.php#L1\");\n PostJobIssue lineNotVisible = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 2, Severity.BLOCKER, true, \"msg2\");\n Mockito.when(commitFacade.getGitLabUrl(inputFile1, 2)).thenReturn(\"http://gitlab/blob/abc123/src/Foo.php#L2\");\n DefaultInputFile inputFile2 = new DefaultInputFile(\"foo\", \"src/Foo2.php\");\n PostJobIssue fileNotInPR = newMockedIssue(\"foo:src/Foo2.php\", inputFile2, 1, Severity.BLOCKER, true, \"msg3\");\n PostJobIssue notNewIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, 1, Severity.BLOCKER, false, \"msg\");\n PostJobIssue issueOnDir = newMockedIssue(\"foo:src\", Severity.BLOCKER, true, \"msg4\");\n PostJobIssue issueOnProject = newMockedIssue(\"foo\", Severity.BLOCKER, true, \"msg\");\n PostJobIssue globalIssue = newMockedIssue(\"foo:src/Foo.php\", inputFile1, null, Severity.BLOCKER, true, \"msg5\");\n Mockito.when(context.issues()).thenReturn(Arrays.asList(newIssue, globalIssue, issueOnProject, issueOnDir, fileNotInPR, lineNotVisible, notNewIssue));\n Mockito.when(commitFacade.hasFile(inputFile1)).thenReturn(true);\n Mockito.when(commitFacade.hasFileLine(inputFile1, 1)).thenReturn(true);\n commitIssuePostJob.execute(context);\n Mockito.verify(commitFacade).addGlobalComment(Mockito.contains(\"SonarQube analysis reported 5 issues\"));\n Mockito.verify(commitFacade).addGlobalComment(Mockito.contains(\"* :no_entry: 5 blocker\"));\n Mockito.verify(commitFacade).addGlobalComment(AdditionalMatchers.not(Mockito.contains(\"1. [Project\")));\n Mockito.verify(commitFacade).addGlobalComment(Mockito.contains(\"1. :no_entry: [msg2](http://gitlab/blob/abc123/src/Foo.php#L2) [:blue_book:](http://myserver/coding_rules#rule_key=repo%3Arule)\"));\n Mockito.verify(commitFacade).createOrUpdateSonarQubeStatus(\"failed\", \"SonarQube reported 5 issues, with 5 blocker\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-177"], "old_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this pull request\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "new_production_code": "@Override\npublic void execute(PostJobContext context) {\n GlobalReport report = new GlobalReport(gitLabPluginConfiguration, markDownUtils);\n try {\n LOG.info(\"Find a {} new issues\", StreamSupport.stream(context.issues().spliterator(), false).filter(PostJobIssue::isNew).count());\n Map> commentsToBeAddedByLine = processIssues(report, context.issues());\n updateReviewComments(commentsToBeAddedByLine);\n if (report.hasNewIssue() || gitLabPluginConfiguration.commentNoIssue()) {\n commitFacade.addGlobalComment(report.formatForMarkdown());\n }\n commitFacade.createOrUpdateSonarQubeStatus(report.getStatus(), report.getStatusDescription());\n } catch (Exception e) {\n String msg = \"SonarQube failed to complete the review of this commit\";\n LOG.error(msg, e);\n commitFacade.createOrUpdateSonarQubeStatus(\"failed\", msg + \": \" + e.getMessage());\n }\n}", "focal_file_path": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "focal_method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_old": "60-79", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "line_nums_new": "60-81", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6923076923076923, "branch_coverage_gold": 32.2727, "method_coverage_gold": 51.1364, "line_coverage_gold": 54.0541, "is_traceback": true, "commit_gap": {"count": 6, "skipped_commits": ["d1f32a01932a82130325eb55d65f7166f2af89cb", "8e1bd9ea62f079d05244b2600aff71d6bc789bad", "fc2b334b74d87761a4de57d04261635b019e7489", "cd2860fa9175e3188dc3632e0d7bb7efb5bff680", "01a08bca2c02d4e0fe90d221746cf1df9397b13e", "b1fb39279e079c8013f4ffb69e898db3c136a451"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.newMockedIssue:(Ljava/lang/String;Lorg/sonar/api/batch/fs/internal/DefaultInputFile;Ljava/lang/Integer;Lorg/sonar/api/batch/rule/Severity;ZLjava/lang/String;)Lorg/sonar/api/batch/postjob/issue/PostJobIssue", "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJobTest.newMockedIssue:(Ljava/lang/String;Lorg/sonar/api/batch/rule/Severity;ZLjava/lang/String;)Lorg/sonar/api/batch/postjob/issue/PostJobIssue", "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.execute:(Lorg/sonar/api/batch/postjob/PostJobContext;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "file_path_new": "src/main/java/com/talanlabs/sonar/plugins/gitlab/CommitIssuePostJob.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "4.1.0-SNAPSHOT", "java_version": 11} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__237f120_afccc06__InterpreterTest_41f0010d", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "237f120db7e2392bcf31156febf581eabbdb1693", "rev2": "afccc062e0fdf0e7a37fe9870e40c36e7145f739", "rev1_date": "2019-10-12T04:02:35Z", "rev2_date": "2019-10-12T15:26:12Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/237f120db7e2392bcf31156febf581eabbdb1693...afccc062e0fdf0e7a37fe9870e40c36e7145f739", "test_file": "src/test/java/com/gxk/jvm/interpret/InterpreterTest.java", "test_changes": [{"change_id": "153_guxingke_mini-jvm-0.0.1-SNAPSHOT_237f120_afccc06_InterpreterTest", "test_sign": "com/gxk/jvm/interpret/InterpreterTest.test_method_invoke:()V", "class": "InterpreterTest", "method": "test_method_invoke", "module": "", "junit_selector": "com.gxk.jvm.interpret.InterpreterTest#test_method_invoke", "old_test_code": null, "new_test_code": "@Test\npublic void test_method_invoke() throws Exception {\n ClassFile cf = ClassReader.read(Paths.get(\"example/Loop4.class\"));\n Method main = cf.getMainMethod();\n com.gxk.jvm.classfile.attribute.Code attribute = (com.gxk.jvm.classfile.attribute.Code) main.attributes.attributes[0];\n MethodInfo method = map(attribute);\n Thread thread = new Thread(1024);\n Frame frame = new Frame(method.code.maxLocals, method.code.maxStacks, method.code.code, thread);\n thread.pushFrame(frame);\n new Interpreter().loop(thread);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-138"], "old_production_code": "public void loop(Thread thread, CodeFromByte code) {\n Frame frame = thread.currentFrame();\n while (true) {\n int pc = frame.nextPc;\n thread.setPc(pc);\n Instruction inst = code.getInst(pc);\n frame.nextPc += inst.offset();\n inst.fetchOperands();\n inst.execute(frame);\n if (inst instanceof IreturnInst || inst instanceof ReturnInst) {\n break;\n }\n }\n}", "new_production_code": "public void loop(Thread thread) {\n while (true) {\n Frame frame = thread.currentFrame();\n int pc = frame.nextPc;\n thread.setPc(pc);\n Instruction inst = frame.code.getInst(pc);\n frame.nextPc += inst.offset();\n inst.fetchOperands();\n inst.execute(frame);\n if (thread.empty()) {\n break;\n }\n }\n}", "focal_file_path": "src/main/java/com/gxk/jvm/interpret/Interpreter.java", "focal_method_sign": "com/gxk/jvm/interpret/Interpreter.loop:(Lcom/gxk/jvm/rtda/Thread;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/interpret/Interpreter.loop:(Lcom/gxk/jvm/rtda/Thread;)V", "file_path_old": "src/main/java/com/gxk/jvm/interpret/Interpreter.java", "line_nums_old": "29-48", "file_path_new": "src/main/java/com/gxk/jvm/interpret/Interpreter.java", "line_nums_new": "26-44", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 12.2917, "method_coverage_gold": 32.2086, "line_coverage_gold": 54.0802, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["dcd92cc4f5ef092b399365efd47c3fedab69ceb2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/interpret/Interpreter.loop:(Lcom/gxk/jvm/rtda/Thread;)V", "com/gxk/jvm/rtda/Thread.pushFrame:(Lcom/gxk/jvm/rtda/Frame;)V", "com/gxk/jvm/classfile/ClassFile.getMainMethod:()Lcom/gxk/jvm/classfile/Method", "com/gxk/jvm/classfile/ClassReader.read:(Ljava/nio/file/Path;)Lcom/gxk/jvm/classfile/ClassFile", "com/gxk/jvm/interpret/InterpreterTest.map:(Lcom/gxk/jvm/classfile/attribute/Code;)Lcom/gxk/jvm/classfile/MethodInfo"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/interpret/Interpreter.loop:(Lcom/gxk/jvm/rtda/Thread;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/gxk/jvm/interpret/Interpreter.java", "file_path_new": "src/main/java/com/gxk/jvm/interpret/Interpreter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__34f0b19_f8f7d08__ArgsTest_481613f2", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "34f0b19a64a587c508bfcad8261402af624d1d4c", "rev2": "f8f7d0878daea0aa70b1c115e06d71347f310e41", "rev1_date": "2019-11-21T09:56:09Z", "rev2_date": "2019-11-21T10:46:58Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/34f0b19a64a587c508bfcad8261402af624d1d4c...f8f7d0878daea0aa70b1c115e06d71347f310e41", "test_file": "src/test/java/com/gxk/jvm/ArgsTest.java", "test_changes": [{"change_id": "179_guxingke_mini-jvm-0.0.1-SNAPSHOT_34f0b19_f8f7d08_ArgsTest", "test_sign": "com/gxk/jvm/ArgsTest.test_help:()V", "class": "ArgsTest", "method": "test_help", "module": "", "junit_selector": "com.gxk.jvm.ArgsTest#test_help", "old_test_code": null, "new_test_code": "@Test\npublic void test_help() {\n Args args = Args.parseArgs(\"-help\");\n assertTrue(args.help);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_CP.equals(cliArgs[0])) {\n args.classpath = cliArgs[1];\n args.clazz = cliArgs[2];\n if (cliArgs.length > ARGS_LIMIT) {\n String[] programArgs = new String[cliArgs.length - 3];\n System.arraycopy(cliArgs, 3, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[0];\n if (cliArgs.length > 1) {\n String[] programArgs = new String[cliArgs.length - 1];\n System.arraycopy(cliArgs, 1, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "new_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_HELP.equals(cliArgs[0])) {\n args.help = true;\n return args;\n }\n int idx = 0;\n if (MINUS_VERBOSE.equals(cliArgs[idx])) {\n idx++;\n args.verbose = true;\n }\n if (MINUS_CP.equals(cliArgs[idx])) {\n idx++;\n args.classpath = cliArgs[idx++];\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/Args.java", "focal_method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "line_nums_old": "17-46", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "line_nums_new": "20-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.19230769230769232, "branch_coverage_gold": 0.1407, "method_coverage_gold": 0.1883, "line_coverage_gold": 0.2094, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "change_type": "UPDATE", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "180_guxingke_mini-jvm-0.0.1-SNAPSHOT_34f0b19_f8f7d08_ArgsTest", "test_sign": "com/gxk/jvm/ArgsTest.test_verbose_cp2:()V", "class": "ArgsTest", "method": "test_verbose_cp2", "module": "", "junit_selector": "com.gxk.jvm.ArgsTest#test_verbose_cp2", "old_test_code": null, "new_test_code": "@Test\npublic void test_verbose_cp2() {\n Args args = Args.parseArgs(\"-cp\", \"example\", \"-verbose\", \"Main\");\n assertTrue(!args.verbose);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-60"], "old_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_CP.equals(cliArgs[0])) {\n args.classpath = cliArgs[1];\n args.clazz = cliArgs[2];\n if (cliArgs.length > ARGS_LIMIT) {\n String[] programArgs = new String[cliArgs.length - 3];\n System.arraycopy(cliArgs, 3, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[0];\n if (cliArgs.length > 1) {\n String[] programArgs = new String[cliArgs.length - 1];\n System.arraycopy(cliArgs, 1, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "new_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_HELP.equals(cliArgs[0])) {\n args.help = true;\n return args;\n }\n int idx = 0;\n if (MINUS_VERBOSE.equals(cliArgs[idx])) {\n idx++;\n args.verbose = true;\n }\n if (MINUS_CP.equals(cliArgs[idx])) {\n idx++;\n args.classpath = cliArgs[idx++];\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/Args.java", "focal_method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "line_nums_old": "17-46", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "line_nums_new": "20-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 0.3519, "method_coverage_gold": 0.1883, "line_coverage_gold": 0.5234, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "change_type": "UPDATE", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "181_guxingke_mini-jvm-0.0.1-SNAPSHOT_34f0b19_f8f7d08_ArgsTest", "test_sign": "com/gxk/jvm/ArgsTest.test_verbose_cp:()V", "class": "ArgsTest", "method": "test_verbose_cp", "module": "", "junit_selector": "com.gxk.jvm.ArgsTest#test_verbose_cp", "old_test_code": null, "new_test_code": "@Test\npublic void test_verbose_cp() {\n Args args = Args.parseArgs(\"-verbose\", \"-cp\", \"example\", \"Main\");\n assertTrue(args.verbose);\n assertEquals(\"example\", args.classpath);\n assertEquals(\"Main\", args.clazz);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-54"], "old_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_CP.equals(cliArgs[0])) {\n args.classpath = cliArgs[1];\n args.clazz = cliArgs[2];\n if (cliArgs.length > ARGS_LIMIT) {\n String[] programArgs = new String[cliArgs.length - 3];\n System.arraycopy(cliArgs, 3, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[0];\n if (cliArgs.length > 1) {\n String[] programArgs = new String[cliArgs.length - 1];\n System.arraycopy(cliArgs, 1, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "new_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_HELP.equals(cliArgs[0])) {\n args.help = true;\n return args;\n }\n int idx = 0;\n if (MINUS_VERBOSE.equals(cliArgs[idx])) {\n idx++;\n args.verbose = true;\n }\n if (MINUS_CP.equals(cliArgs[idx])) {\n idx++;\n args.classpath = cliArgs[idx++];\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/Args.java", "focal_method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "line_nums_old": "17-46", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "line_nums_new": "20-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.3519, "method_coverage_gold": 0.1883, "line_coverage_gold": 0.4885, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "change_type": "UPDATE", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "182_guxingke_mini-jvm-0.0.1-SNAPSHOT_34f0b19_f8f7d08_ArgsTest", "test_sign": "com/gxk/jvm/ArgsTest.test_verbose:()V", "class": "ArgsTest", "method": "test_verbose", "module": "", "junit_selector": "com.gxk.jvm.ArgsTest#test_verbose", "old_test_code": null, "new_test_code": "@Test\npublic void test_verbose() {\n Args args = Args.parseArgs(\"-verbose\", \"Main\");\n assertTrue(args.verbose);\n assertEquals(\"Main\", args.clazz);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-46"], "old_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_CP.equals(cliArgs[0])) {\n args.classpath = cliArgs[1];\n args.clazz = cliArgs[2];\n if (cliArgs.length > ARGS_LIMIT) {\n String[] programArgs = new String[cliArgs.length - 3];\n System.arraycopy(cliArgs, 3, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[0];\n if (cliArgs.length > 1) {\n String[] programArgs = new String[cliArgs.length - 1];\n System.arraycopy(cliArgs, 1, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "new_production_code": "static Args parseArgs(String... cliArgs) {\n Args args = new Args();\n if (MINUS_VERSION.equals(cliArgs[0])) {\n args.version = true;\n return args;\n }\n if (MINUS_HELP.equals(cliArgs[0])) {\n args.help = true;\n return args;\n }\n int idx = 0;\n if (MINUS_VERBOSE.equals(cliArgs[idx])) {\n idx++;\n args.verbose = true;\n }\n if (MINUS_CP.equals(cliArgs[idx])) {\n idx++;\n args.classpath = cliArgs[idx++];\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n }\n args.clazz = cliArgs[idx++];\n if (cliArgs.length > idx) {\n String[] programArgs = new String[cliArgs.length - idx];\n System.arraycopy(cliArgs, idx, programArgs, 0, programArgs.length);\n args.args = programArgs;\n }\n return args;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/Args.java", "focal_method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "line_nums_old": "17-46", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "line_nums_new": "20-61", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4230769230769231, "branch_coverage_gold": 0.3519, "method_coverage_gold": 0.1883, "line_coverage_gold": 0.4187, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/Args.parseArgs:([Ljava/lang/String;)Lcom/gxk/jvm/Args", "change_type": "UPDATE", "file_path_old": "src/main/java/com/gxk/jvm/Args.java", "file_path_new": "src/main/java/com/gxk/jvm/Args.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__5c6ac6c_f3d5369__ClasspathTest_1af0e5a1", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "5c6ac6cf8d0c7cb8fc533667273def4ce13f6a93", "rev2": "f3d5369f1b6412c94693802654baf00ee2fd89ee", "rev1_date": "2019-10-11T09:23:11Z", "rev2_date": "2019-10-11T10:29:12Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/5c6ac6cf8d0c7cb8fc533667273def4ce13f6a93...f3d5369f1b6412c94693802654baf00ee2fd89ee", "test_file": "src/test/java/com/gxk/jvm/classpath/ClasspathTest.java", "test_changes": [{"change_id": "156_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.parse_dir:()V", "class": "ClasspathTest", "method": "parse_dir", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#parse_dir", "old_test_code": null, "new_test_code": "@Test\npublic void parse_dir() {\n Entry entry = Classpath.parse(\"example\");\n ClassFile hello = entry.findClass(\"Hello\");\n assertNotNull(hello);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-19"], "old_production_code": "", "new_production_code": "public static Entry parse(String classpath) {\n if (classpath.contains(\":\")) {\n return doParseCompositeEntry(classpath);\n }\n Entry entry = parseEntry(classpath);\n if (entry == null) {\n throw new IllegalArgumentException(\"un parse classpath \" + classpath);\n }\n return entry;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.parse:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.parse:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "14-24", "dependency_updated": "inserted", "score": 0.5518, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5556, "class": 1.0, "tfidf": 0.4064}}, {"dep_id": 1, "method_sign": "com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/DirEntry.java", "line_nums_new": "17-30", "dependency_updated": "inserted", "score": 0.0466, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0, "class": 0.0, "tfidf": 0.0316}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 9.25, "method_coverage_gold": 16.3763, "line_coverage_gold": 35.9133, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.parse:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.parse:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/DirEntry.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "157_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.isDir_bad_case:()V", "class": "ClasspathTest", "method": "isDir_bad_case", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#isDir_bad_case", "old_test_code": null, "new_test_code": "@Test\npublic void isDir_bad_case() {\n String dir = \"example1111\";\n boolean ret = Classpath.isDir(dir);\n assertTrue(!ret);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-56"], "old_production_code": "", "new_production_code": "public static boolean isDir(String path) {\n return Paths.get(path).toFile().isDirectory();\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "66-68", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3484, "line_coverage_gold": 0.1548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "158_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.isWildcard_bad_case:()V", "class": "ClasspathTest", "method": "isWildcard_bad_case", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#isWildcard_bad_case", "old_test_code": null, "new_test_code": "@Test\npublic void isWildcard_bad_case() {\n boolean ret = Classpath.isWildcard(\"./**\");\n assertTrue(!ret);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-68"], "old_production_code": "", "new_production_code": "public static boolean isWildcard(String path) {\n return path.endsWith(\"/*\");\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3484, "line_coverage_gold": 0.1548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "159_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.isDir:()V", "class": "ClasspathTest", "method": "isDir", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#isDir", "old_test_code": null, "new_test_code": "@Test\npublic void isDir() {\n String dir = \"example\";\n boolean ret = Classpath.isDir(dir);\n assertTrue(ret);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-49"], "old_production_code": "", "new_production_code": "public static boolean isDir(String path) {\n return Paths.get(path).toFile().isDirectory();\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "66-68", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3484, "line_coverage_gold": 0.1548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.isDir:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "160_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.isWildcard:()V", "class": "ClasspathTest", "method": "isWildcard", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#isWildcard", "old_test_code": null, "new_test_code": "@Test\npublic void isWildcard() {\n boolean ret = Classpath.isWildcard(\"./*\");\n assertTrue(ret);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-62"], "old_production_code": "", "new_production_code": "public static boolean isWildcard(String path) {\n return path.endsWith(\"/*\");\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "70-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3484, "line_coverage_gold": 0.1548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.isWildcard:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "161_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.isJar:()V", "class": "ClasspathTest", "method": "isJar", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#isJar", "old_test_code": null, "new_test_code": "@Test\npublic void isJar() {\n boolean ret = Classpath.isJar(\"test.jar\");\n assertTrue(ret);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-74"], "old_production_code": "", "new_production_code": "public static boolean isJar(String path) {\n return path.endsWith(\".jar\");\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.isJar:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/Classpath.isJar:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "74-76", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3484, "line_coverage_gold": 0.1548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/Classpath.isJar:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/Classpath.isJar:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "162_guxingke_mini-jvm-0.0.1-SNAPSHOT_5c6ac6c_f3d5369_ClasspathTest", "test_sign": "com/gxk/jvm/classpath/ClasspathTest.doParseDir:()V", "class": "ClasspathTest", "method": "doParseDir", "module": "", "junit_selector": "com.gxk.jvm.classpath.ClasspathTest#doParseDir", "old_test_code": null, "new_test_code": "@Test\npublic void doParseDir() {\n Entry entry = Classpath.doParseDir(\"example\");\n ClassFile hello = entry.findClass(\"Hello\");\n assertNotNull(hello);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-42"], "old_production_code": "", "new_production_code": "public static Entry doParseDir(String path) {\n return new DirEntry(Paths.get(path));\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "focal_method_sign": "com/gxk/jvm/classpath/Classpath.doParseDir:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/gxk/jvm/classpath/Classpath.doParseDir:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.8074, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1815}}, {"dep_id": 0, "method_sign": "com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/DirEntry.java", "line_nums_new": "17-30", "dependency_updated": "inserted", "score": 0.066, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 0.0, "tfidf": 0.0304}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.5, "method_coverage_gold": 15.331, "line_coverage_gold": 34.5201, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile", "com/gxk/jvm/classpath/Classpath.doParseDir:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classpath/DirEntry.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/classfile/ClassFile", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/DirEntry.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/gxk/jvm/classpath/Classpath.doParseDir:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classpath/Classpath.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__728ba97_748fbc3__UtilsTest_bf85bb02", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "728ba974401592b7ee8501df6fd678a3548424b0", "rev2": "748fbc375c96fc6b2e5a548cf8b99329c3bcd931", "rev1_date": "2019-10-30T15:30:03Z", "rev2_date": "2019-10-31T02:31:47Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/728ba974401592b7ee8501df6fd678a3548424b0...748fbc375c96fc6b2e5a548cf8b99329c3bcd931", "test_file": "src/test/java/com/gxk/jvm/util/UtilsTest.java", "test_changes": [{"change_id": "172_guxingke_mini-jvm-0.0.1-SNAPSHOT_728ba97_748fbc3_UtilsTest", "test_sign": "com/gxk/jvm/util/UtilsTest.parseMethodDescriptor:()V", "class": "UtilsTest", "method": "parseMethodDescriptor", "module": "", "junit_selector": "com.gxk.jvm.util.UtilsTest#parseMethodDescriptor", "old_test_code": null, "new_test_code": "@Test\npublic void parseMethodDescriptor() {\n List rets = Utils.parseMethodDescriptor(\"()V\");\n assertEquals(0, rets.size(), 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-14"], "old_production_code": "", "new_production_code": "public static List parseMethodDescriptor(String descriptor) {\n if (descriptor.startsWith(\"()\")) {\n return new ArrayList<>();\n }\n descriptor = descriptor.substring(descriptor.indexOf(\"(\") + 1, descriptor.indexOf(\")\"));\n List base = Arrays.asList('V', 'Z', 'B', 'C', 'S', 'I', 'J', 'F', 'D');\n List rets = new ArrayList<>();\n for (int i = 0; i < descriptor.length(); i++) {\n if (base.contains(descriptor.charAt(i))) {\n rets.add(String.valueOf(descriptor.charAt(i)));\n continue;\n }\n if (descriptor.charAt(i) == '[') {\n int temp = i;\n i++;\n while (descriptor.charAt(i) == '[') {\n i++;\n }\n if (base.contains(descriptor.charAt(i))) {\n rets.add(descriptor.substring(temp, i + 1));\n continue;\n }\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(temp, idx));\n i = idx;\n continue;\n }\n if (descriptor.charAt(i) == 'L') {\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(i, idx));\n i = idx;\n continue;\n }\n }\n return rets;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/util/Utils.java", "focal_method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "line_nums_new": "100-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.07407407407407407, "branch_coverage_gold": 0.0792, "method_coverage_gold": 0.1021, "line_coverage_gold": 0.0819, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "173_guxingke_mini-jvm-0.0.1-SNAPSHOT_728ba97_748fbc3_UtilsTest", "test_sign": "com/gxk/jvm/util/UtilsTest.parseMethodDescriptor_2:()V", "class": "UtilsTest", "method": "parseMethodDescriptor_2", "module": "", "junit_selector": "com.gxk.jvm.util.UtilsTest#parseMethodDescriptor_2", "old_test_code": null, "new_test_code": "@Test\npublic void parseMethodDescriptor_2() {\n List rets = Utils.parseMethodDescriptor(\"(IILjava/lang/String;I)V\");\n assertEquals(4, rets.size(), 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-26"], "old_production_code": "", "new_production_code": "public static List parseMethodDescriptor(String descriptor) {\n if (descriptor.startsWith(\"()\")) {\n return new ArrayList<>();\n }\n descriptor = descriptor.substring(descriptor.indexOf(\"(\") + 1, descriptor.indexOf(\")\"));\n List base = Arrays.asList('V', 'Z', 'B', 'C', 'S', 'I', 'J', 'F', 'D');\n List rets = new ArrayList<>();\n for (int i = 0; i < descriptor.length(); i++) {\n if (base.contains(descriptor.charAt(i))) {\n rets.add(String.valueOf(descriptor.charAt(i)));\n continue;\n }\n if (descriptor.charAt(i) == '[') {\n int temp = i;\n i++;\n while (descriptor.charAt(i) == '[') {\n i++;\n }\n if (base.contains(descriptor.charAt(i))) {\n rets.add(descriptor.substring(temp, i + 1));\n continue;\n }\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(temp, idx));\n i = idx;\n continue;\n }\n if (descriptor.charAt(i) == 'L') {\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(i, idx));\n i = idx;\n continue;\n }\n }\n return rets;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/util/Utils.java", "focal_method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "line_nums_new": "100-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.5542, "method_coverage_gold": 0.1021, "line_coverage_gold": 0.6143, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "174_guxingke_mini-jvm-0.0.1-SNAPSHOT_728ba97_748fbc3_UtilsTest", "test_sign": "com/gxk/jvm/util/UtilsTest.parseMethodDescriptor_3:()V", "class": "UtilsTest", "method": "parseMethodDescriptor_3", "module": "", "junit_selector": "com.gxk.jvm.util.UtilsTest#parseMethodDescriptor_3", "old_test_code": null, "new_test_code": "@Test\npublic void parseMethodDescriptor_3() {\n List rets = Utils.parseMethodDescriptor(\"(II[Ljava/lang/String;I)V\");\n assertEquals(4, rets.size(), 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-32"], "old_production_code": "", "new_production_code": "public static List parseMethodDescriptor(String descriptor) {\n if (descriptor.startsWith(\"()\")) {\n return new ArrayList<>();\n }\n descriptor = descriptor.substring(descriptor.indexOf(\"(\") + 1, descriptor.indexOf(\")\"));\n List base = Arrays.asList('V', 'Z', 'B', 'C', 'S', 'I', 'J', 'F', 'D');\n List rets = new ArrayList<>();\n for (int i = 0; i < descriptor.length(); i++) {\n if (base.contains(descriptor.charAt(i))) {\n rets.add(String.valueOf(descriptor.charAt(i)));\n continue;\n }\n if (descriptor.charAt(i) == '[') {\n int temp = i;\n i++;\n while (descriptor.charAt(i) == '[') {\n i++;\n }\n if (base.contains(descriptor.charAt(i))) {\n rets.add(descriptor.substring(temp, i + 1));\n continue;\n }\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(temp, idx));\n i = idx;\n continue;\n }\n if (descriptor.charAt(i) == 'L') {\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(i, idx));\n i = idx;\n continue;\n }\n }\n return rets;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/util/Utils.java", "focal_method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "line_nums_new": "100-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.6334, "method_coverage_gold": 0.1021, "line_coverage_gold": 0.7371, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "175_guxingke_mini-jvm-0.0.1-SNAPSHOT_728ba97_748fbc3_UtilsTest", "test_sign": "com/gxk/jvm/util/UtilsTest.parseMethodDescriptor_1:()V", "class": "UtilsTest", "method": "parseMethodDescriptor_1", "module": "", "junit_selector": "com.gxk.jvm.util.UtilsTest#parseMethodDescriptor_1", "old_test_code": null, "new_test_code": "@Test\npublic void parseMethodDescriptor_1() {\n List rets = Utils.parseMethodDescriptor(\"(II[CI)V\");\n assertEquals(4, rets.size(), 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-20"], "old_production_code": "", "new_production_code": "public static List parseMethodDescriptor(String descriptor) {\n if (descriptor.startsWith(\"()\")) {\n return new ArrayList<>();\n }\n descriptor = descriptor.substring(descriptor.indexOf(\"(\") + 1, descriptor.indexOf(\")\"));\n List base = Arrays.asList('V', 'Z', 'B', 'C', 'S', 'I', 'J', 'F', 'D');\n List rets = new ArrayList<>();\n for (int i = 0; i < descriptor.length(); i++) {\n if (base.contains(descriptor.charAt(i))) {\n rets.add(String.valueOf(descriptor.charAt(i)));\n continue;\n }\n if (descriptor.charAt(i) == '[') {\n int temp = i;\n i++;\n while (descriptor.charAt(i) == '[') {\n i++;\n }\n if (base.contains(descriptor.charAt(i))) {\n rets.add(descriptor.substring(temp, i + 1));\n continue;\n }\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(temp, idx));\n i = idx;\n continue;\n }\n if (descriptor.charAt(i) == 'L') {\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(i, idx));\n i = idx;\n continue;\n }\n }\n return rets;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/util/Utils.java", "focal_method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "line_nums_new": "100-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5925925925925926, "branch_coverage_gold": 0.6334, "method_coverage_gold": 0.1021, "line_coverage_gold": 0.6552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "176_guxingke_mini-jvm-0.0.1-SNAPSHOT_728ba97_748fbc3_UtilsTest", "test_sign": "com/gxk/jvm/util/UtilsTest.parseMethodDescriptor_4:()V", "class": "UtilsTest", "method": "parseMethodDescriptor_4", "module": "", "junit_selector": "com.gxk.jvm.util.UtilsTest#parseMethodDescriptor_4", "old_test_code": null, "new_test_code": "@Test\npublic void parseMethodDescriptor_4() {\n List rets = Utils.parseMethodDescriptor(\"([[[II[Ljava/lang/String;I)V\");\n assertEquals(4, rets.size(), 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "public static List parseMethodDescriptor(String descriptor) {\n if (descriptor.startsWith(\"()\")) {\n return new ArrayList<>();\n }\n descriptor = descriptor.substring(descriptor.indexOf(\"(\") + 1, descriptor.indexOf(\")\"));\n List base = Arrays.asList('V', 'Z', 'B', 'C', 'S', 'I', 'J', 'F', 'D');\n List rets = new ArrayList<>();\n for (int i = 0; i < descriptor.length(); i++) {\n if (base.contains(descriptor.charAt(i))) {\n rets.add(String.valueOf(descriptor.charAt(i)));\n continue;\n }\n if (descriptor.charAt(i) == '[') {\n int temp = i;\n i++;\n while (descriptor.charAt(i) == '[') {\n i++;\n }\n if (base.contains(descriptor.charAt(i))) {\n rets.add(descriptor.substring(temp, i + 1));\n continue;\n }\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(temp, idx));\n i = idx;\n continue;\n }\n if (descriptor.charAt(i) == 'L') {\n int idx = descriptor.indexOf(';', i);\n rets.add(descriptor.substring(i, idx));\n i = idx;\n continue;\n }\n }\n return rets;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/util/Utils.java", "focal_method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "line_nums_new": "100-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.7918, "method_coverage_gold": 0.1021, "line_coverage_gold": 0.86, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/util/Utils.parseMethodDescriptor:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__ecee9a2_9a2818f__InterpreterTest_b402c94d", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "ecee9a2aa259bb83ff99b556d097218709964a44", "rev2": "9a2818ffcf0033f6aaa2b63b458a53b1d939b06f", "rev1_date": "2019-10-20T05:58:01Z", "rev2_date": "2019-10-20T10:19:40Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/ecee9a2aa259bb83ff99b556d097218709964a44...9a2818ffcf0033f6aaa2b63b458a53b1d939b06f", "test_file": "src/test/java/com/gxk/jvm/interpret/InterpreterTest.java", "test_changes": [{"change_id": "167_guxingke_mini-jvm-0.0.1-SNAPSHOT_ecee9a2_9a2818f_InterpreterTest", "test_sign": "com/gxk/jvm/interpret/InterpreterTest.test_object2:()V", "class": "InterpreterTest", "method": "test_object2", "module": "", "junit_selector": "com.gxk.jvm.interpret.InterpreterTest#test_object2", "old_test_code": null, "new_test_code": "@Test\npublic void test_object2() {\n Entry entry = Classpath.parse(\"example\");\n Heap.setDefaultEntry(entry);\n Classloader.loadClass(\"TestObject2\", entry);\n KClass clazz = Heap.findClass(\"TestObject2\");\n KMethod method = clazz.getMainMethod();\n new Interpreter().interpret(method);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["242-250"], "old_production_code": "", "new_production_code": "public static void setDefaultEntry(Entry entry) {\n defaultEntry = entry;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/rtda/heap/Heap.java", "focal_method_sign": "com/gxk/jvm/rtda/heap/Heap.setDefaultEntry:(Lcom/gxk/jvm/classpath/Entry;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/rtda/heap/Heap.setDefaultEntry:(Lcom/gxk/jvm/classpath/Entry;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/rtda/heap/Heap.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8421052631578947, "branch_coverage_gold": 15.7576, "method_coverage_gold": 37.6744, "line_coverage_gold": 52.7226, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/rtda/heap/KClass.getMainMethod:()Lcom/gxk/jvm/rtda/heap/KMethod", "com/gxk/jvm/rtda/heap/Heap.setDefaultEntry:(Lcom/gxk/jvm/classpath/Entry;)V", "com/gxk/jvm/rtda/heap/Heap.findClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "com/gxk/jvm/interpret/Interpreter.interpret:(Lcom/gxk/jvm/rtda/heap/KMethod;)V", "com/gxk/jvm/classloader/Classloader.loadClass:(Ljava/lang/String;Lcom/gxk/jvm/classpath/Entry;)V", "com/gxk/jvm/classpath/Classpath.parse:(Ljava/lang/String;)Lcom/gxk/jvm/classpath/Entry"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/rtda/heap/Heap.setDefaultEntry:(Lcom/gxk/jvm/classpath/Entry;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/rtda/heap/Heap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "guxingke_mini-jvm-0.0.1-SNAPSHOT__f94545a_e10c052__ClassLoaderTest_c3668fd1", "project_name": "guxingke_mini-jvm-0.0.1-SNAPSHOT", "git_clone_url": "https://github.com/guxingke/mini-jvm.git", "rev1": "f94545accf1f92cbb3ae5755710151133e079b4a", "rev2": "e10c05224e9c8a359f5fcd323e4cf50e92e05d1e", "rev1_date": "2019-10-21T11:20:44Z", "rev2_date": "2019-10-21T14:59:52Z", "git_diff_url": "https://github.com/guxingke/mini-jvm/compare/f94545accf1f92cbb3ae5755710151133e079b4a...e10c05224e9c8a359f5fcd323e4cf50e92e05d1e", "test_file": "src/test/java/com/gxk/jvm/classloader/ClassLoaderTest.java", "test_changes": [{"change_id": "154_guxingke_mini-jvm-0.0.1-SNAPSHOT_f94545a_e10c052_ClassLoaderTest", "test_sign": "com/gxk/jvm/classloader/ClassLoaderTest.test_hello:()V", "class": "ClassLoaderTest", "method": "test_hello", "module": "", "junit_selector": "com.gxk.jvm.classloader.ClassLoaderTest#test_hello", "old_test_code": null, "new_test_code": "@Test\npublic void test_hello() {\n KClass kClass = classLoader.loadClass(\"Hello\");\n assertNotNull(kClass);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-36"], "old_production_code": "", "new_production_code": "public KClass loadClass(String name) {\n KClass cache = Heap.findClass(name);\n if (cache != null) {\n return cache;\n }\n KClass clazz = doLoadClass(name);\n doRegister(clazz);\n return clazz;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "focal_method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "line_nums_new": "29-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 10.3198, "method_coverage_gold": 22.8833, "line_coverage_gold": 34.8459, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "155_guxingke_mini-jvm-0.0.1-SNAPSHOT_f94545a_e10c052_ClassLoaderTest", "test_sign": "com/gxk/jvm/classloader/ClassLoaderTest.test_object:()V", "class": "ClassLoaderTest", "method": "test_object", "module": "", "junit_selector": "com.gxk.jvm.classloader.ClassLoaderTest#test_object", "old_test_code": null, "new_test_code": "@Test\npublic void test_object() {\n KClass kClass = classLoader.loadClass(\"java/lang/Object\");\n assertNotNull(kClass);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-30"], "old_production_code": "", "new_production_code": "public KClass loadClass(String name) {\n KClass cache = Heap.findClass(name);\n if (cache != null) {\n return cache;\n }\n KClass clazz = doLoadClass(name);\n doRegister(clazz);\n return clazz;\n}", "focal_file_path": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "focal_method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "line_nums_new": "29-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 9.7384, "method_coverage_gold": 20.8238, "line_coverage_gold": 31.7637, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/gxk/jvm/classloader/ClassLoader.loadClass:(Ljava/lang/String;)Lcom/gxk/jvm/rtda/heap/KClass", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/gxk/jvm/classloader/ClassLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.0.1-SNAPSHOT", "java_version": 8} {"task_id": "hcoles_pitest-pitest-parent-1.6.8__4e6bb87_cda2e97__CompoundMutationInterceptorTest_2db4d196", "project_name": "hcoles_pitest-pitest-parent-1.6.8", "git_clone_url": "https://github.com/hcoles/pitest.git", "rev1": "4e6bb873dacb0043996117b7a6b66907e375f0c6", "rev2": "cda2e97c280ab5e1cf14858ee7c7d4a33123449e", "rev1_date": "2021-04-20T09:35:53Z", "rev2_date": "2021-04-20T10:35:27Z", "git_diff_url": "https://github.com/hcoles/pitest/compare/4e6bb873dacb0043996117b7a6b66907e375f0c6...cda2e97c280ab5e1cf14858ee7c7d4a33123449e", "test_file": "pitest-entry/src/test/java/org/pitest/mutationtest/build/CompoundMutationInterceptorTest.java", "test_changes": [{"change_id": "1051_hcoles_pitest-pitest-parent-1.6.8_4e6bb87_cda2e97_CompoundMutationInterceptorTest", "test_sign": "org/pitest/mutationtest/build/CompoundMutationInterceptorTest.shouldFilterChildren:()V", "class": "CompoundMutationInterceptorTest", "method": "shouldFilterChildren", "module": "pitest-entry", "junit_selector": "org.pitest.mutationtest.build.CompoundMutationInterceptorTest#shouldFilterChildren", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFilterChildren() {\n this.testee = new CompoundMutationInterceptor(Arrays.asList(this.modifyChild, this.filterChild));\n final ClassTree aClass = new ClassTree(null);\n this.testee.filter(i -> i == modifyChild).begin(aClass);\n verify(this.modifyChild).begin(aClass);\n verify(this.filterChild, never()).begin(aClass);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-72"], "old_production_code": "", "new_production_code": "public CompoundMutationInterceptor filter(Predicate p) {\n return new CompoundMutationInterceptor(children.stream().filter(p).collect(Collectors.toList()));\n}", "focal_file_path": "pitest-entry/src/main/java/org/pitest/mutationtest/build/CompoundMutationInterceptor.java", "focal_method_sign": "org/pitest/mutationtest/build/CompoundMutationInterceptor.filter:(Ljava/util/function/Predicate;)Lorg/pitest/mutationtest/build/CompoundMutationInterceptor", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/mutationtest/build/CompoundMutationInterceptor.filter:(Ljava/util/function/Predicate;)Lorg/pitest/mutationtest/build/CompoundMutationInterceptor", "file_path_old": null, "line_nums_old": null, "file_path_new": "pitest-entry/src/main/java/org/pitest/mutationtest/build/CompoundMutationInterceptor.java", "line_nums_new": "29-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.5102, "line_coverage_gold": 0.4327, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/mutationtest/build/CompoundMutationInterceptor.filter:(Ljava/util/function/Predicate;)Lorg/pitest/mutationtest/build/CompoundMutationInterceptor", "org/pitest/mutationtest/build/CompoundMutationInterceptor.begin:(Lorg/pitest/bytecode/analysis/ClassTree;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/mutationtest/build/CompoundMutationInterceptor.filter:(Ljava/util/function/Predicate;)Lorg/pitest/mutationtest/build/CompoundMutationInterceptor", "change_type": "ADD", "file_path_old": null, "file_path_new": "pitest-entry/src/main/java/org/pitest/mutationtest/build/CompoundMutationInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pitest-parent-1.6.8", "java_version": 8} {"task_id": "hcoles_pitest-pitest-parent-1.6.8__9ad49d1_8ad1abe__PitestTaskTest_199b0cca", "project_name": "hcoles_pitest-pitest-parent-1.6.8", "git_clone_url": "https://github.com/hcoles/pitest.git", "rev1": "9ad49d1d81f0bf682d1696c4468c8948d98d89bc", "rev2": "8ad1abeb99e4e1df8f2bc541fdffca386451ce69", "rev1_date": "2019-02-23T21:16:31Z", "rev2_date": "2019-02-23T21:17:48Z", "git_diff_url": "https://github.com/hcoles/pitest/compare/9ad49d1d81f0bf682d1696c4468c8948d98d89bc...8ad1abeb99e4e1df8f2bc541fdffca386451ce69", "test_file": "pitest-ant/src/test/java/org/pitest/ant/PitestTaskTest.java", "test_changes": [{"change_id": "1052_hcoles_pitest-pitest-parent-1.6.8_9ad49d1_8ad1abe_PitestTaskTest", "test_sign": "org/pitest/ant/PitestTaskTest.shouldPassTestPluginToJavaTask:()V", "class": "PitestTaskTest", "method": "shouldPassTestPluginToJavaTask", "module": "pitest-ant", "junit_selector": "org.pitest.ant.PitestTaskTest#shouldPassTestPluginToJavaTask", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPassTestPluginToJavaTask() {\n this.pitestTask.setTestPlugin(\"junit\");\n this.pitestTask.execute(this.java);\n verify(this.arg).setValue(\"--testPlugin=junit\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["256-261"], "old_production_code": "", "new_production_code": "public void setTestPlugin(final String value) {\n this.setOption(ConfigOption.TEST_PLUGIN, value);\n}", "focal_file_path": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "focal_method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "line_nums_new": "211-213", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 61.1111, "method_coverage_gold": 31.1111, "line_coverage_gold": 39.6552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/ant/PitestTask.execute:(Lorg/apache/tools/ant/taskdefs/Java;)V", "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1053_hcoles_pitest-pitest-parent-1.6.8_9ad49d1_8ad1abe_PitestTaskTest", "test_sign": "org/pitest/ant/PitestTaskTest.shouldPassFailWhenNoMutationsToJavaTask:()V", "class": "PitestTaskTest", "method": "shouldPassFailWhenNoMutationsToJavaTask", "module": "pitest-ant", "junit_selector": "org.pitest.ant.PitestTaskTest#shouldPassFailWhenNoMutationsToJavaTask", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPassFailWhenNoMutationsToJavaTask() {\n this.pitestTask.setFailWhenNoMutations(\"true\");\n this.pitestTask.execute(this.java);\n verify(this.arg).setValue(\"--failWhenNoMutations=true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-170"], "old_production_code": "", "new_production_code": "public void setFailWhenNoMutations(final String value) {\n this.setOption(ConfigOption.FAIL_WHEN_NOT_MUTATIONS, value);\n}", "focal_file_path": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "focal_method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "line_nums_new": "191-193", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 61.1111, "method_coverage_gold": 31.1111, "line_coverage_gold": 39.6552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "org/pitest/ant/PitestTask.execute:(Lorg/apache/tools/ant/taskdefs/Java;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pitest-parent-1.6.8", "java_version": 8} {"task_id": "hcoles_pitest-pitest-parent-1.6.8__e34ca99_88bd740__FeatureSelectorTest_6fe4f43a", "project_name": "hcoles_pitest-pitest-parent-1.6.8", "git_clone_url": "https://github.com/hcoles/pitest.git", "rev1": "e34ca99d28be2b569c950f710ebebfef21907e91", "rev2": "88bd740957362ef07b7f37d57c9f9484d241431c", "rev1_date": "2020-12-30T09:57:33Z", "rev2_date": "2020-12-30T10:53:40Z", "git_diff_url": "https://github.com/hcoles/pitest/compare/e34ca99d28be2b569c950f710ebebfef21907e91...88bd740957362ef07b7f37d57c9f9484d241431c", "test_file": "pitest/src/test/java/org/pitest/plugin/FeatureSelectorTest.java", "test_changes": [{"change_id": "1085_hcoles_pitest-pitest-parent-1.6.8_e34ca99_88bd740_FeatureSelectorTest", "test_sign": "org/pitest/plugin/FeatureSelectorTest.featureNamesAreCaseInsensitive:()V", "class": "FeatureSelectorTest", "method": "featureNamesAreCaseInsensitive", "module": "pitest", "junit_selector": "org.pitest.plugin.FeatureSelectorTest#featureNamesAreCaseInsensitive", "old_test_code": null, "new_test_code": "@Test\npublic void featureNamesAreCaseInsensitive() {\n final FeatureSetting fooConfig = new FeatureSetting(\"foo\", ToggleStatus.DEACTIVATE, new HashMap<>());\n this.testee = new FeatureSelector<>(Arrays.asList(fooConfig), features(this.onByDefault));\n assertThat(this.testee.getSettingForFeature(\"FOO\")).isEqualTo(fooConfig);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-70"], "old_production_code": "public FeatureSetting getSettingForFeature(String feature) {\n FeatureSetting conf = null;\n final Collection groupedSettings = this.settings.get(feature);\n if (groupedSettings != null) {\n conf = groupedSettings.iterator().next();\n }\n return conf;\n}", "new_production_code": "public FeatureSetting getSettingForFeature(String feature) {\n FeatureSetting conf = null;\n final Collection groupedSettings = this.settings.get(feature.toLowerCase());\n if (groupedSettings != null) {\n conf = groupedSettings.iterator().next();\n }\n return conf;\n}", "focal_file_path": "pitest/src/main/java/org/pitest/plugin/FeatureSelector.java", "focal_method_sign": "org/pitest/plugin/FeatureSelector.getSettingForFeature:(Ljava/lang/String;)Lorg/pitest/plugin/FeatureSetting", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/plugin/FeatureSelector.getSettingForFeature:(Ljava/lang/String;)Lorg/pitest/plugin/FeatureSetting", "file_path_old": "pitest/src/main/java/org/pitest/plugin/FeatureSelector.java", "line_nums_old": "26-33", "file_path_new": "pitest/src/main/java/org/pitest/plugin/FeatureSelector.java", "line_nums_new": "26-33", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.675, "method_coverage_gold": 1.2295, "line_coverage_gold": 0.8986, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/plugin/FeatureSelector.getSettingForFeature:(Ljava/lang/String;)Lorg/pitest/plugin/FeatureSetting", "org/pitest/plugin/FeatureSelectorTest.features:([Lorg/pitest/plugin/AFeature;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/plugin/FeatureSelector.getSettingForFeature:(Ljava/lang/String;)Lorg/pitest/plugin/FeatureSetting", "change_type": "UPDATE", "file_path_old": "pitest/src/main/java/org/pitest/plugin/FeatureSelector.java", "file_path_new": "pitest/src/main/java/org/pitest/plugin/FeatureSelector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pitest-parent-1.6.8", "java_version": 8} {"task_id": "hcoles_pitest-pitest-parent-1.6.8__ff2ab32_0ed9eab__PitestTaskTest_199b0cca", "project_name": "hcoles_pitest-pitest-parent-1.6.8", "git_clone_url": "https://github.com/hcoles/pitest.git", "rev1": "ff2ab3220640ca148ddf0ed9aa8cc5dbd967bf1b", "rev2": "0ed9eab471727d46b3e7c4e8a064be981b8d6bdc", "rev1_date": "2019-03-06T14:51:33Z", "rev2_date": "2019-03-06T16:05:27Z", "git_diff_url": "https://github.com/hcoles/pitest/compare/ff2ab3220640ca148ddf0ed9aa8cc5dbd967bf1b...0ed9eab471727d46b3e7c4e8a064be981b8d6bdc", "test_file": "pitest-ant/src/test/java/org/pitest/ant/PitestTaskTest.java", "test_changes": [{"change_id": "1074_hcoles_pitest-pitest-parent-1.6.8_ff2ab32_0ed9eab_PitestTaskTest", "test_sign": "org/pitest/ant/PitestTaskTest.shouldPassTestPluginToJavaTask:()V", "class": "PitestTaskTest", "method": "shouldPassTestPluginToJavaTask", "module": "pitest-ant", "junit_selector": "org.pitest.ant.PitestTaskTest#shouldPassTestPluginToJavaTask", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPassTestPluginToJavaTask() {\n this.pitestTask.setTestPlugin(\"junit\");\n this.pitestTask.execute(this.java);\n verify(this.arg).setValue(\"--testPlugin=junit\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["256-261"], "old_production_code": "", "new_production_code": "public void setTestPlugin(final String value) {\n this.setOption(ConfigOption.TEST_PLUGIN, value);\n}", "focal_file_path": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "focal_method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "line_nums_new": "211-213", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 61.1111, "method_coverage_gold": 31.1111, "line_coverage_gold": 39.6552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/ant/PitestTask.execute:(Lorg/apache/tools/ant/taskdefs/Java;)V", "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/ant/PitestTask.setTestPlugin:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1075_hcoles_pitest-pitest-parent-1.6.8_ff2ab32_0ed9eab_PitestTaskTest", "test_sign": "org/pitest/ant/PitestTaskTest.shouldPassFailWhenNoMutationsToJavaTask:()V", "class": "PitestTaskTest", "method": "shouldPassFailWhenNoMutationsToJavaTask", "module": "pitest-ant", "junit_selector": "org.pitest.ant.PitestTaskTest#shouldPassFailWhenNoMutationsToJavaTask", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPassFailWhenNoMutationsToJavaTask() {\n this.pitestTask.setFailWhenNoMutations(\"true\");\n this.pitestTask.execute(this.java);\n verify(this.arg).setValue(\"--failWhenNoMutations=true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-170"], "old_production_code": "", "new_production_code": "public void setFailWhenNoMutations(final String value) {\n this.setOption(ConfigOption.FAIL_WHEN_NOT_MUTATIONS, value);\n}", "focal_file_path": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "focal_method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "line_nums_new": "191-193", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 61.1111, "method_coverage_gold": 31.1111, "line_coverage_gold": 39.6552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "org/pitest/ant/PitestTask.execute:(Lorg/apache/tools/ant/taskdefs/Java;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pitest/ant/PitestTask.setFailWhenNoMutations:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pitest-ant/src/main/java/org/pitest/ant/PitestTask.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pitest-parent-1.6.8", "java_version": 8} {"task_id": "houbb_opencc4j-master__06f25fd_7240901__STPhraseDataTest_4057aa34", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "06f25fd045332eeb669a3eb0189dfc46abf52d68", "rev2": "72409016fa8f6a256b4c35442222b1f23a53875f", "rev1_date": "2019-05-05T02:07:44Z", "rev2_date": "2019-05-05T07:23:46Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/06f25fd045332eeb669a3eb0189dfc46abf52d68...72409016fa8f6a256b4c35442222b1f23a53875f", "test_file": "src/test/java/com/github/houbb/opencc4j/support/data/STPhraseDataTest.java", "test_changes": [{"change_id": "136_houbb_opencc4j-master_06f25fd_7240901_STPhraseDataTest", "test_sign": "com/github/houbb/opencc4j/support/data/STPhraseDataTest.singletonTest:()V", "class": "STPhraseDataTest", "method": "singletonTest", "module": "", "junit_selector": "com.github.houbb.opencc4j.support.data.STPhraseDataTest#singletonTest", "old_test_code": null, "new_test_code": "@Test\npublic void singletonTest() {\n DataInfo dataInfo = InstanceFactory.getInstance().singleton(STPhraseData.class).data();\n Assert.assertEquals(48933, dataInfo.getDataMap().size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "@Override\npublic DataInfo data() {\n return dataInfo;\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/support/data/impl/STPhraseData.java", "focal_method_sign": "com/github/houbb/opencc4j/support/data/impl/STPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/support/data/impl/STPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/STPhraseData.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.8333, "method_coverage_gold": 30.303, "line_coverage_gold": 26.943, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/support/instance/impl/InstanceFactory.singleton:(Ljava/lang/Class;)Ljava/lang/Object", "com/github/houbb/opencc4j/support/data/impl/STPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "com/github/houbb/opencc4j/support/instance/impl/InstanceFactory.getInstance:()Lcom/github/houbb/opencc4j/support/instance/impl/InstanceFactory", "com/github/houbb/opencc4j/model/data/DataInfo.getDataMap:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/support/data/impl/STPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/STPhraseData.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_opencc4j-master__06f25fd_7240901__TSPhraseDataTest_4057aa34", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "06f25fd045332eeb669a3eb0189dfc46abf52d68", "rev2": "72409016fa8f6a256b4c35442222b1f23a53875f", "rev1_date": "2019-05-05T02:07:44Z", "rev2_date": "2019-05-05T07:23:46Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/06f25fd045332eeb669a3eb0189dfc46abf52d68...72409016fa8f6a256b4c35442222b1f23a53875f", "test_file": "src/test/java/com/github/houbb/opencc4j/support/data/TSPhraseDataTest.java", "test_changes": [{"change_id": "135_houbb_opencc4j-master_06f25fd_7240901_TSPhraseDataTest", "test_sign": "com/github/houbb/opencc4j/support/data/TSPhraseDataTest.singletonTest:()V", "class": "TSPhraseDataTest", "method": "singletonTest", "module": "", "junit_selector": "com.github.houbb.opencc4j.support.data.TSPhraseDataTest#singletonTest", "old_test_code": null, "new_test_code": "@Test\npublic void singletonTest() {\n DataInfo dataInfo = InstanceFactory.getInstance().singleton(TSPhraseData.class).data();\n Assert.assertEquals(273, dataInfo.getDataMap().size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "@Override\npublic DataInfo data() {\n return dataInfo;\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/support/data/impl/TSPhraseData.java", "focal_method_sign": "com/github/houbb/opencc4j/support/data/impl/TSPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/support/data/impl/TSPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/TSPhraseData.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.8333, "method_coverage_gold": 30.303, "line_coverage_gold": 26.943, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/support/instance/impl/InstanceFactory.singleton:(Ljava/lang/Class;)Ljava/lang/Object", "com/github/houbb/opencc4j/support/data/impl/TSPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "com/github/houbb/opencc4j/support/instance/impl/InstanceFactory.getInstance:()Lcom/github/houbb/opencc4j/support/instance/impl/InstanceFactory", "com/github/houbb/opencc4j/model/data/DataInfo.getDataMap:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/support/data/impl/TSPhraseData.data:()Lcom/github/houbb/opencc4j/model/data/DataInfo", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/TSPhraseData.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_opencc4j-master__8d0a6dc_2a8cc9f__ZhJpConverterUtilTest_946aa778", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "8d0a6dc598209e70bdddda9fc830b004cf681c32", "rev2": "2a8cc9fc22a477aba68a4f70e53a0a5bfa848ab6", "rev1_date": "2025-04-12T09:26:37Z", "rev2_date": "2025-04-12T10:15:59Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/8d0a6dc598209e70bdddda9fc830b004cf681c32...2a8cc9fc22a477aba68a4f70e53a0a5bfa848ab6", "test_file": "src/test/java/com/github/houbb/opencc4j/util/ZhJpConverterUtilTest.java", "test_changes": [{"change_id": "144_houbb_opencc4j-master_8d0a6dc_2a8cc9f_ZhJpConverterUtilTest", "test_sign": "com/github/houbb/opencc4j/util/ZhJpConverterUtilTest.testJpTraditional:()V", "class": "ZhJpConverterUtilTest", "method": "testJpTraditional", "module": "", "junit_selector": "com.github.houbb.opencc4j.util.ZhJpConverterUtilTest#testJpTraditional", "old_test_code": null, "new_test_code": "@Test\npublic void testJpTraditional() {\n String original = \"我在日本学习音乐,并学习了龙的字。\";\n String result = ZhJpConverterUtil.toTraditional(original);\n Assert.assertEquals(\"我在日本学習音楽,並学習了竜的字。\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "public static String toTraditional(final String original) {\n String temp = ZhConverterUtil.toTraditional(original);\n return JP_SELF_BS.toTraditional(temp);\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/util/ZhJpConverterUtil.java", "focal_method_sign": "com/github/houbb/opencc4j/util/ZhJpConverterUtil.toTraditional:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/util/ZhJpConverterUtil.toTraditional:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/util/ZhJpConverterUtil.java", "line_nums_new": "183-186", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.9623, "method_coverage_gold": 28.7709, "line_coverage_gold": 25.9056, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/util/ZhJpConverterUtil.toTraditional:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/util/ZhJpConverterUtil.toTraditional:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/util/ZhJpConverterUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_opencc4j-master__afec717_9c364d7__DataUtilTest_6f472064", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "afec717079e8aea42a1f558bc572bf50cf81b344", "rev2": "9c364d7921027c2f521cb7d5881a9f70ae8802be", "rev1_date": "2025-04-11T08:34:18Z", "rev2_date": "2025-04-11T10:57:51Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/afec717079e8aea42a1f558bc572bf50cf81b344...9c364d7921027c2f521cb7d5881a9f70ae8802be", "test_file": "src/test/java/com/github/houbb/opencc4j/support/data/impl/DataUtilTest.java", "test_changes": [{"change_id": "116_houbb_opencc4j-master_afec717_9c364d7_DataUtilTest", "test_sign": "com/github/houbb/opencc4j/support/data/impl/DataUtilTest.basicTest:()V", "class": "DataUtilTest", "method": "basicTest", "module": "", "junit_selector": "com.github.houbb.opencc4j.support.data.impl.DataUtilTest#basicTest", "old_test_code": null, "new_test_code": "@Test\npublic void basicTest() {\n Map> s2t = new HashMap>();\n s2t.put(\"出租车\", Arrays.asList(\"計程車\"));\n s2t.put(\"面条\", Arrays.asList(\"麵條\"));\n Map> t2hk = new HashMap>();\n t2hk.put(\"計程車\", Arrays.asList(\"的士\"));\n t2hk.put(\"麵條\", Arrays.asList(\"麵條\"));\n Map> result = DataUtil.mergeChains(s2t, t2hk);\n Assert.assertEquals(result.get(\"出租车\").toString(), \"[的士]\");\n Assert.assertEquals(result.get(\"面条\").toString(), \"[麵條]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-28"], "old_production_code": "", "new_production_code": "public static Map> mergeChains(final Map> data, final Map>... dataOther) {\n if (dataOther == null || dataOther.length == 0) {\n return data;\n }\n Map> current = data;\n for (int i = 0; i < dataOther.length; i++) {\n Map> nextDict = dataOther[i];\n Map> merged = new HashMap<>();\n for (Map.Entry> entry : current.entrySet()) {\n String key = entry.getKey();\n List values = entry.getValue();\n Set nextCandidatesSet = new LinkedHashSet<>();\n for (int j = 0; j < values.size(); j++) {\n String midValue = values.get(j);\n List nextList = nextDict.get(midValue);\n if (nextList != null && !nextList.isEmpty()) {\n nextCandidatesSet.addAll(nextList);\n } else {\n nextCandidatesSet.add(midValue);\n }\n }\n List deduped = new ArrayList<>(nextCandidatesSet);\n merged.put(key, deduped);\n }\n current = merged;\n }\n return current;\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/support/data/impl/DataUtil.java", "focal_method_sign": "com/github/houbb/opencc4j/support/data/impl/DataUtil.mergeChains:(Ljava/util/Map;[Ljava/util/Map;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/support/data/impl/DataUtil.mergeChains:(Ljava/util/Map;[Ljava/util/Map;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/DataUtil.java", "line_nums_new": "155-196", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 4.9505, "method_coverage_gold": 0.3268, "line_coverage_gold": 2.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/houbb/opencc4j/support/data/impl/DataUtil.mergeChains:(Ljava/util/Map;[Ljava/util/Map;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/support/data/impl/DataUtil.mergeChains:(Ljava/util/Map;[Ljava/util/Map;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/data/impl/DataUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_opencc4j-master__afec717_9c364d7__ZhHkConverterUtilTest_c603ed2e", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "afec717079e8aea42a1f558bc572bf50cf81b344", "rev2": "9c364d7921027c2f521cb7d5881a9f70ae8802be", "rev1_date": "2025-04-11T08:34:18Z", "rev2_date": "2025-04-11T10:57:51Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/afec717079e8aea42a1f558bc572bf50cf81b344...9c364d7921027c2f521cb7d5881a9f70ae8802be", "test_file": "src/test/java/com/github/houbb/opencc4j/util/ZhHkConverterUtilTest.java", "test_changes": [{"change_id": "117_houbb_opencc4j-master_afec717_9c364d7_ZhHkConverterUtilTest", "test_sign": "com/github/houbb/opencc4j/util/ZhHkConverterUtilTest.testHkItSimple:()V", "class": "ZhHkConverterUtilTest", "method": "testHkItSimple", "module": "", "junit_selector": "com.github.houbb.opencc4j.util.ZhHkConverterUtilTest#testHkItSimple", "old_test_code": null, "new_test_code": "@Test\npublic void testHkItSimple() throws Exception {\n String original = \"他坐出租車去超市買了方便麪和衞生紙\";\n String result = ZhHkConverterUtil.toSimple(original);\n Assert.assertEquals(\"他坐出租车去超市买了方便面和衞生纸\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-35"], "old_production_code": "", "new_production_code": "public static String toSimple(final String original) {\n return DEFAULT_BOOTSTRAP.toSimple(original);\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/util/ZhHkConverterUtil.java", "focal_method_sign": "com/github/houbb/opencc4j/util/ZhHkConverterUtil.toSimple:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/util/ZhHkConverterUtil.toSimple:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/util/ZhHkConverterUtil.java", "line_nums_new": "159-161", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 21.2871, "method_coverage_gold": 34.6405, "line_coverage_gold": 36.8758, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/util/ZhHkConverterUtil.toSimple:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/util/ZhHkConverterUtil.toSimple:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/util/ZhHkConverterUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_opencc4j-master__e09e342_afec717__ZhMatchesTest_56ac7fe9", "project_name": "houbb_opencc4j-master", "git_clone_url": "https://github.com/houbb/opencc4j.git", "rev1": "e09e34248385b16761a23cefb61d7a628555207d", "rev2": "afec717079e8aea42a1f558bc572bf50cf81b344", "rev1_date": "2025-04-11T07:04:56Z", "rev2_date": "2025-04-11T08:34:18Z", "git_diff_url": "https://github.com/houbb/opencc4j/compare/e09e34248385b16761a23cefb61d7a628555207d...afec717079e8aea42a1f558bc572bf50cf81b344", "test_file": "src/test/java/com/github/houbb/opencc4j/support/match/ZhMatchesTest.java", "test_changes": [{"change_id": "126_houbb_opencc4j-master_e09e342_afec717_ZhMatchesTest", "test_sign": "com/github/houbb/opencc4j/support/match/ZhMatchesTest.isSimpleTest:()V", "class": "ZhMatchesTest", "method": "isSimpleTest", "module": "", "junit_selector": "com.github.houbb.opencc4j.support.match.ZhMatchesTest#isSimpleTest", "old_test_code": null, "new_test_code": "@Test\npublic void isSimpleTest() {\n ZhConvertBootstrap bs = ZhConvertBootstrap.newInstance().isSimpleMatch(ZhMatches.simpleAll()).init();\n String text = \"123我456\";\n Assert.assertFalse(bs.isSimple(text));\n bs.isSimpleMatch(ZhMatches.simpleAny()).init();\n Assert.assertTrue(bs.isSimple(text));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["9-21"], "old_production_code": "", "new_production_code": "public static ZhMatch simpleAll() {\n return new SimpleZhMatchAll();\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "focal_method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "line_nums_new": "24-26", "dependency_updated": "inserted", "score": 0.3982, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.5, "class": 1.0, "tfidf": 0.0422}}, {"dep_id": 1, "method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "line_nums_new": "16-18", "dependency_updated": "inserted", "score": 0.3982, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.5, "class": 1.0, "tfidf": 0.0422}}, {"dep_id": 2, "method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isSimpleMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_new": "147-152", "dependency_updated": "inserted", "score": 0.2722, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.6154, "class": 0.0, "tfidf": 0.2068}}, {"dep_id": 3, "method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "file_path_old": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_old": "137-145", "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_new": "165-176", "dependency_updated": "updated", "score": 0.1848, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.25, "class": 0.0, "tfidf": 0.048}}], "coverage_gold": 1.0, "branch_coverage_gold": 29.0123, "method_coverage_gold": 33.7449, "line_coverage_gold": 33.3893, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.newInstance:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isSimple:(Ljava/lang/String;)Z", "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isSimpleMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.simpleAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isSimpleMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "127_houbb_opencc4j-master_e09e342_afec717_ZhMatchesTest", "test_sign": "com/github/houbb/opencc4j/support/match/ZhMatchesTest.isTraditionalTest:()V", "class": "ZhMatchesTest", "method": "isTraditionalTest", "module": "", "junit_selector": "com.github.houbb.opencc4j.support.match.ZhMatchesTest#isTraditionalTest", "old_test_code": null, "new_test_code": "@Test\npublic void isTraditionalTest() {\n ZhConvertBootstrap bs = ZhConvertBootstrap.newInstance().isTraditionalMatch(ZhMatches.traditionalAll()).init();\n String text = \"123俺們456\";\n Assert.assertFalse(bs.isTraditional(text));\n bs.isTraditionalMatch(ZhMatches.traditionalAny()).init();\n Assert.assertTrue(bs.isTraditional(text));\n ;\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-35"], "old_production_code": "", "new_production_code": "public static ZhMatch traditionalAll() {\n return new TraditionalZhMatchAll();\n}", "focal_file_path": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "focal_method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.4434, "signal_scores": {"nc": 0.0, "lcs_u": 0.7857, "ed": 0.6471, "class": 1.0, "tfidf": 0.0422}}, {"dep_id": 2, "method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.4434, "signal_scores": {"nc": 0.0, "lcs_u": 0.7857, "ed": 0.6471, "class": 1.0, "tfidf": 0.0422}}, {"dep_id": 3, "method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isTraditionalMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_new": "154-159", "dependency_updated": "inserted", "score": 0.3049, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.7222, "class": 0.0, "tfidf": 0.2068}}, {"dep_id": 0, "method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "file_path_old": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_old": "137-145", "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "line_nums_new": "165-176", "dependency_updated": "updated", "score": 0.1727, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1765, "class": 0.0, "tfidf": 0.048}}], "coverage_gold": 1.0, "branch_coverage_gold": 30.2469, "method_coverage_gold": 33.7449, "line_coverage_gold": 33.7248, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.newInstance:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isTraditional:(Ljava/lang/String;)Z", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isTraditionalMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.init:()Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAll:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/support/match/ZhMatches.traditionalAny:()Lcom/github/houbb/opencc4j/support/match/ZhMatch", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/support/match/ZhMatches.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.isTraditionalMatch:(Lcom/github/houbb/opencc4j/support/match/ZhMatch;)Lcom/github/houbb/opencc4j/core/impl/ZhConvertBootstrap", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/opencc4j/core/impl/ZhConvertBootstrap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "houbb_sensitive-word-stopword_all__3108126_0f57524__SensitiveWordBsTest_966b14d5", "project_name": "houbb_sensitive-word-stopword_all", "git_clone_url": "https://github.com/houbb/sensitive-word.git", "rev1": "31081268176151647dc244440e1df450aeda709e", "rev2": "0f575248883236a9c66119e78bbdc49e74bfdba2", "rev1_date": "2020-01-07T12:39:07Z", "rev2_date": "2020-01-07T16:17:16Z", "git_diff_url": "https://github.com/houbb/sensitive-word/compare/31081268176151647dc244440e1df450aeda709e...0f575248883236a9c66119e78bbdc49e74bfdba2", "test_file": "src/test/java/com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.java", "test_changes": [{"change_id": "4_houbb_sensitive-word-stopword_all_3108126_0f57524_SensitiveWordBsTest", "test_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.findAllTest:()V", "class": "SensitiveWordBsTest", "method": "findAllTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.bs.SensitiveWordBsTest#findAllTest", "old_test_code": null, "new_test_code": "@Test\npublic void findAllTest() {\n final String text = \"五星红旗迎风飘扬,毛主席的画像屹立在天安门前。\";\n List wordList = SensitiveWordBs.getInstance().findAll(text);\n Assert.assertEquals(\"[五星红旗, 毛主席, 天安门]\", wordList.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-30"], "old_production_code": "public List findAll() {\n if (StringUtil.isEmpty(target)) {\n return Guavas.newArrayList();\n }\n return null;\n}", "new_production_code": "public List findAll(final String target) {\n return this.sensitiveWordMap.findAll(target);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "focal_method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findAll:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findAll:(Ljava/lang/String;)Ljava/util/List", "file_path_old": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_old": "88-95", "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "89-91", "dependency_updated": "updated", "score": 0.5229, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6364, "class": 1.0, "tfidf": 0.2269}}, {"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.3009, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.0909, "class": 1.0, "tfidf": 0.1427}}], "coverage_gold": 1.0, "branch_coverage_gold": 45.1613, "method_coverage_gold": 50.0, "line_coverage_gold": 62.7737, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["6b656b26d97fbf908340e3dabe26ea9ca11d2ecc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/bs/SensitiveWordBs.findAll:(Ljava/lang/String;)Ljava/util/List", "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findAll:(Ljava/lang/String;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "5_houbb_sensitive-word-stopword_all_3108126_0f57524_SensitiveWordBsTest", "test_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.findFirstTest:()V", "class": "SensitiveWordBsTest", "method": "findFirstTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.bs.SensitiveWordBsTest#findFirstTest", "old_test_code": null, "new_test_code": "@Test\npublic void findFirstTest() {\n final String text = \"五星红旗迎风飘扬,毛主席的画像屹立在天安门前。\";\n String word = SensitiveWordBs.getInstance().findFirst(text);\n Assert.assertEquals(\"五星红旗\", word);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-38"], "old_production_code": "", "new_production_code": "public String findFirst(final String target) {\n return this.sensitiveWordMap.findFirst(target);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "focal_method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findFirst:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findFirst:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "99-101", "dependency_updated": "inserted", "score": 0.5325, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6923, "class": 1.0, "tfidf": 0.2285}}, {"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.3431, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2308, "class": 1.0, "tfidf": 0.1557}}], "coverage_gold": 1.0, "branch_coverage_gold": 38.7097, "method_coverage_gold": 50.0, "line_coverage_gold": 63.5036, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["6b656b26d97fbf908340e3dabe26ea9ca11d2ecc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/bs/SensitiveWordBs.findFirst:(Ljava/lang/String;)Ljava/lang/String", "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.findFirst:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stopword_all", "java_version": 11} {"task_id": "houbb_sensitive-word-stopword_all__6c05aa8_4e169da__SensitiveWordBsTest_b8af164f", "project_name": "houbb_sensitive-word-stopword_all", "git_clone_url": "https://github.com/houbb/sensitive-word.git", "rev1": "6c05aa8ddcd27b248cdb902799504c807dda80c7", "rev2": "4e169da8187928a78b9f52334370e95cee27b2cc", "rev1_date": "2020-01-07T16:26:33Z", "rev2_date": "2020-01-08T03:10:19Z", "git_diff_url": "https://github.com/houbb/sensitive-word/compare/6c05aa8ddcd27b248cdb902799504c807dda80c7...4e169da8187928a78b9f52334370e95cee27b2cc", "test_file": "src/test/java/com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.java", "test_changes": [{"change_id": "6_houbb_sensitive-word-stopword_all_6c05aa8_4e169da_SensitiveWordBsTest", "test_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.replaceTest:()V", "class": "SensitiveWordBsTest", "method": "replaceTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.bs.SensitiveWordBsTest#replaceTest", "old_test_code": null, "new_test_code": "@Test\npublic void replaceTest() {\n final String text = \"五星红旗迎风飘扬,毛主席的画像屹立在天安门前。\";\n String result = SensitiveWordBs.getInstance().replace(text);\n Assert.assertEquals(\"****迎风飘扬,***的画像屹立在***前。\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-62"], "old_production_code": "", "new_production_code": "public String replace(final String target) {\n return this.replace(target, CharConst.STAR);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "focal_method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "110-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 41.1765, "line_coverage_gold": 58.4615, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b700d12aa35ca357fe367d5d99eb7eb9444c896a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;)Ljava/lang/String", "com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "7_houbb_sensitive-word-stopword_all_6c05aa8_4e169da_SensitiveWordBsTest", "test_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBsTest.replaceCharTest:()V", "class": "SensitiveWordBsTest", "method": "replaceCharTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.bs.SensitiveWordBsTest#replaceCharTest", "old_test_code": null, "new_test_code": "@Test\npublic void replaceCharTest() {\n final String text = \"五星红旗迎风飘扬,毛主席的画像屹立在天安门前。\";\n String result = SensitiveWordBs.getInstance().replace(text, '0');\n Assert.assertEquals(\"0000迎风飘扬,000的画像屹立在000前。\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-74"], "old_production_code": "", "new_production_code": "public String replace(final String target, final char replaceChar) {\n return this.sensitiveWordMap.replace(target, replaceChar);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "focal_method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;C)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;C)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "line_nums_new": "100-102", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 38.2353, "line_coverage_gold": 57.6923, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b700d12aa35ca357fe367d5d99eb7eb9444c896a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/bs/SensitiveWordBs.getInstance:()Lcom/github/houbb/sensitive/word/bs/SensitiveWordBs", "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;C)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/bs/SensitiveWordBs.replace:(Ljava/lang/String;C)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/bs/SensitiveWordBs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stopword_all", "java_version": 11} {"task_id": "houbb_sensitive-word-stopword_all__a851520_0f57524__StreamUtilsTest_0a253188", "project_name": "houbb_sensitive-word-stopword_all", "git_clone_url": "https://github.com/houbb/sensitive-word.git", "rev1": "a85152061e6260bfcc31631f6c4255a5473312c9", "rev2": "0f575248883236a9c66119e78bbdc49e74bfdba2", "rev1_date": "2020-01-07T09:42:05Z", "rev2_date": "2020-01-07T16:17:16Z", "git_diff_url": "https://github.com/houbb/sensitive-word/compare/a85152061e6260bfcc31631f6c4255a5473312c9...0f575248883236a9c66119e78bbdc49e74bfdba2", "test_file": "src/test/java/com/github/houbb/sensitive/word/util/StreamUtilsTest.java", "test_changes": [{"change_id": "1_houbb_sensitive-word-stopword_all_a851520_0f57524_StreamUtilsTest", "test_sign": "com/github/houbb/sensitive/word/util/StreamUtilsTest.sizeTest:()V", "class": "StreamUtilsTest", "method": "sizeTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.util.StreamUtilsTest#sizeTest", "old_test_code": null, "new_test_code": "@Test\npublic void sizeTest() {\n final String dictPath = \"/dict.txt\";\n List stringList = StreamUtils.readAllLines(dictPath);\n Assert.assertEquals(183836, stringList.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-20"], "old_production_code": "", "new_production_code": "public static List readAllLines(final String path) {\n return readAllLines(path, CharsetConst.UTF8, true);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "focal_method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.8387, "method_coverage_gold": 6.6667, "line_coverage_gold": 8.0292, "is_traceback": true, "commit_gap": {"count": 3, "skipped_commits": ["6b656b26d97fbf908340e3dabe26ea9ca11d2ecc", "31081268176151647dc244440e1df450aeda709e", "68008c0bf859340468c9ab82a85c5b59bb39eba0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stopword_all", "java_version": 11} {"task_id": "houbb_sensitive-word-stopword_all__a851520_68008c0__StreamUtilsTest_0a253188", "project_name": "houbb_sensitive-word-stopword_all", "git_clone_url": "https://github.com/houbb/sensitive-word.git", "rev1": "a85152061e6260bfcc31631f6c4255a5473312c9", "rev2": "68008c0bf859340468c9ab82a85c5b59bb39eba0", "rev1_date": "2020-01-07T09:42:05Z", "rev2_date": "2020-01-07T11:18:46Z", "git_diff_url": "https://github.com/houbb/sensitive-word/compare/a85152061e6260bfcc31631f6c4255a5473312c9...68008c0bf859340468c9ab82a85c5b59bb39eba0", "test_file": "src/test/java/com/github/houbb/sensitive/word/util/StreamUtilsTest.java", "test_changes": [{"change_id": "2_houbb_sensitive-word-stopword_all_a851520_68008c0_StreamUtilsTest", "test_sign": "com/github/houbb/sensitive/word/util/StreamUtilsTest.sizeTest:()V", "class": "StreamUtilsTest", "method": "sizeTest", "module": "", "junit_selector": "com.github.houbb.sensitive.word.util.StreamUtilsTest#sizeTest", "old_test_code": null, "new_test_code": "@Test\npublic void sizeTest() {\n final String dictPath = \"/dict.txt\";\n List stringList = StreamUtils.readAllLines(dictPath);\n Assert.assertEquals(183837, stringList.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-20"], "old_production_code": "", "new_production_code": "public static List readAllLines(final String path) {\n return readAllLines(path, CharsetConst.UTF8, true);\n}", "focal_file_path": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "focal_method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 11.5385, "method_coverage_gold": 9.0909, "line_coverage_gold": 17.7419, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/houbb/sensitive/word/util/StreamUtils.readAllLines:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/houbb/sensitive/word/util/StreamUtils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stopword_all", "java_version": 11} {"task_id": "igniterealtime_Openfire-v5.0.3__4fa2a3c_c93c83d__IQRosterHandlerTest_b6862590", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84", "rev2": "c93c83dbe2c07744a929008d8d42e52ef2a2aa6b", "rev1_date": "2025-05-20T14:11:58Z", "rev2_date": "2025-05-20T14:12:24Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84...c93c83dbe2c07744a929008d8d42e52ef2a2aa6b", "test_file": "xmppserver/src/test/java/org/jivesoftware/openfire/handler/IQRosterHandlerTest.java", "test_changes": [{"change_id": "668_igniterealtime_Openfire-v5.0.3_4fa2a3c_c93c83d_IQRosterHandlerTest", "test_sign": "org/jivesoftware/openfire/handler/IQRosterHandlerTest.testSubscriptionRemove:()V", "class": "IQRosterHandlerTest", "method": "testSubscriptionRemove", "module": "xmppserver", "junit_selector": "org.jivesoftware.openfire.handler.IQRosterHandlerTest#testSubscriptionRemove", "old_test_code": null, "new_test_code": "@Test\npublic void testSubscriptionRemove() throws Exception {\n final Roster input = new Roster();\n input.setType(IQ.Type.set);\n final JID address = new JID(\"foo\", \"example.org\", null);\n final Roster.Subscription subscription = Roster.Subscription.remove;\n input.addItem(address, subscription);\n final Roster result = IQRosterHandler.ignoreNonRemoveSubscriptionValues(input);\n assertTrue(result.getItems().stream().anyMatch(item -> item.getJID().equals(address) && subscription.equals(item.getSubscription())));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-74"], "old_production_code": "", "new_production_code": "public static org.xmpp.packet.Roster ignoreNonRemoveSubscriptionValues(org.xmpp.packet.Roster stanza) {\n final org.xmpp.packet.Roster result = stanza.createCopy();\n final Element query = result.getElement().element(new QName(\"query\", Namespace.get(\"jabber:iq:roster\")));\n if (query != null) {\n for (Iterator i = query.elementIterator(\"item\"); i.hasNext(); ) {\n final Element item = i.next();\n final Attribute subscription = item.attribute(\"subscription\");\n if (subscription != null && !\"remove\".equals(subscription.getValue())) {\n item.remove(subscription);\n }\n }\n }\n return result;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "focal_method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "file_path_old": null, "line_nums_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "line_nums_new": "273-287", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.0076, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0061, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "change_type": "ADD", "file_path_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "igniterealtime_Openfire-v5.0.3__593a097_4fa2a3c__EntityCapabilitiesManagerTest_989dbb4e", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "593a097ae47e1e7f0d132cd10666d17ff48c5b78", "rev2": "4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84", "rev1_date": "2025-05-20T14:11:16Z", "rev2_date": "2025-05-20T14:11:58Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/593a097ae47e1e7f0d132cd10666d17ff48c5b78...4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84", "test_file": "xmppserver/src/test/java/org/jivesoftware/util/EntityCapabilitiesManagerTest.java", "test_changes": [{"change_id": "670_igniterealtime_Openfire-v5.0.3_593a097_4fa2a3c_EntityCapabilitiesManagerTest", "test_sign": "org/jivesoftware/util/EntityCapabilitiesManagerTest.testEncodingOfResult:()V", "class": "EntityCapabilitiesManagerTest", "method": "testEncodingOfResult", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.EntityCapabilitiesManagerTest#testEncodingOfResult", "old_test_code": null, "new_test_code": "@Test\npublic void testEncodingOfResult() throws Exception {\n final String input = \"pubsub/pep// identities = new CNCertificateIdentityMapping().mapIdentity(cert);\n assertEquals(1, identities.size());\n assertEquals(\"MySubjectCommonName\", identities.get(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-97"], "old_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n String name = certificate.getSubjectDN().getName();\n Matcher matcher = cnPattern.matcher(name);\n List names = new ArrayList<>();\n while (matcher.find()) {\n names.add(matcher.group(2));\n }\n return names;\n}", "new_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n final List names = new ArrayList<>();\n final X500Principal p = certificate.getSubjectX500Principal();\n final LdapName ln;\n try {\n ln = new LdapName(p.getName(X500Principal.RFC2253));\n for (final Rdn rdn : ln.getRdns()) {\n if (\"CN\".equalsIgnoreCase(rdn.getType())) {\n names.add(rdn.getValue().toString());\n }\n }\n } catch (InvalidNameException e) {\n Log.warn(\"Unable to extract identify from certificate: {}\", certificate, e);\n }\n return names;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "focal_method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_old": "41-52", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_new": "47-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0046, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0063, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b5620a717ba8e1553e73e1dd2d932e282710d7f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "667_igniterealtime_Openfire-v5.0.3_9388c4d_182b043_CNCertificateIdentityMappingTest", "test_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMappingTest.testInjectedCommonName:()V", "class": "CNCertificateIdentityMappingTest", "method": "testInjectedCommonName", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cert.CNCertificateIdentityMappingTest#testInjectedCommonName", "old_test_code": null, "new_test_code": "@Test\npublic void testInjectedCommonName() throws Exception {\n final String subject = \"OU=\\\"infrastructure, CN=admin,\\\", O=Example Corp, C=GB, CN=attacker\";\n final X509v3CertificateBuilder builder = new JcaX509v3CertificateBuilder(new X500Name(\"CN=MyIssuer\"), BigInteger.valueOf(Math.abs(new SecureRandom().nextInt())), Date.from(Instant.now().plus(Duration.ofDays(30))), Date.from(Instant.now().minus(Duration.ofDays(99))), new X500Name(subject), subjectKeyPair.getPublic());\n final X509CertificateHolder certificateHolder = builder.build(contentSigner);\n final X509Certificate cert = new JcaX509CertificateConverter().getCertificate(certificateHolder);\n final List identities = new CNCertificateIdentityMapping().mapIdentity(cert);\n assertEquals(1, identities.size(), \"Identities found: \" + identities);\n assertEquals(\"attacker\", identities.get(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-127"], "old_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n String name = certificate.getSubjectDN().getName();\n Matcher matcher = cnPattern.matcher(name);\n List names = new ArrayList<>();\n while (matcher.find()) {\n names.add(matcher.group(2));\n }\n return names;\n}", "new_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n final List names = new ArrayList<>();\n final X500Principal p = certificate.getSubjectX500Principal();\n final LdapName ln;\n try {\n ln = new LdapName(p.getName(X500Principal.RFC2253));\n for (final Rdn rdn : ln.getRdns()) {\n if (\"CN\".equalsIgnoreCase(rdn.getType())) {\n names.add(rdn.getValue().toString());\n }\n }\n } catch (InvalidNameException e) {\n Log.warn(\"Unable to extract identify from certificate: {}\", certificate, e);\n }\n return names;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "focal_method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_old": "41-52", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_new": "47-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0061, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0063, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b5620a717ba8e1553e73e1dd2d932e282710d7f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "igniterealtime_Openfire-v5.0.3__9388c4d_b4d0fd5__CNCertificateIdentityMappingTest_881d748b", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "9388c4d690a1f829345a8a4d3c6d5c393941da69", "rev2": "b4d0fd5e295e981cd61bd3098395423685375456", "rev1_date": "2025-09-15T11:29:47Z", "rev2_date": "2025-09-15T14:47:03Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/9388c4d690a1f829345a8a4d3c6d5c393941da69...b4d0fd5e295e981cd61bd3098395423685375456", "test_file": "xmppserver/src/test/java/org/jivesoftware/util/cert/CNCertificateIdentityMappingTest.java", "test_changes": [{"change_id": "630_igniterealtime_Openfire-v5.0.3_9388c4d_b4d0fd5_CNCertificateIdentityMappingTest", "test_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMappingTest.testSimpleCommonName:()V", "class": "CNCertificateIdentityMappingTest", "method": "testSimpleCommonName", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cert.CNCertificateIdentityMappingTest#testSimpleCommonName", "old_test_code": null, "new_test_code": "@Test\npublic void testSimpleCommonName() throws Exception {\n final String subject = \"CN=MySubjectCommonName\";\n final X509v3CertificateBuilder builder = new JcaX509v3CertificateBuilder(new X500Name(\"CN=MyIssuer\"), BigInteger.valueOf(Math.abs(new SecureRandom().nextInt())), Date.from(Instant.now().plus(Duration.ofDays(30))), Date.from(Instant.now().minus(Duration.ofDays(99))), new X500Name(subject), subjectKeyPair.getPublic());\n final X509CertificateHolder certificateHolder = builder.build(contentSigner);\n final X509Certificate cert = new JcaX509CertificateConverter().getCertificate(certificateHolder);\n final List identities = new CNCertificateIdentityMapping().mapIdentity(cert);\n assertTrue(identities.contains(\"MySubjectCommonName\"), \"Did not find 'MySubjectCommonName' identity in certificate. All Identities found: \" + identities);\n assertEquals(1, identities.size(), \"Unexpected amount of identities found in certificate. All Identities found: \" + identities);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-94"], "old_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n String name = certificate.getSubjectDN().getName();\n Matcher matcher = cnPattern.matcher(name);\n List names = new ArrayList<>();\n while (matcher.find()) {\n names.add(matcher.group(2));\n }\n return names;\n}", "new_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n final List names = new ArrayList<>();\n final X500Principal p = certificate.getSubjectX500Principal();\n final LdapName ln;\n try {\n ln = new LdapName(p.getName(X500Principal.RFC2253));\n for (final Rdn rdn : ln.getRdns()) {\n if (\"CN\".equalsIgnoreCase(rdn.getType())) {\n names.add(rdn.getValue().toString());\n }\n }\n } catch (InvalidNameException e) {\n Log.warn(\"Unable to extract identify from certificate: {}\", certificate, e);\n }\n return names;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "focal_method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_old": "41-52", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_new": "47-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0046, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0063, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["182b04337864571e026b393978526cc54724536d", "b5620a717ba8e1553e73e1dd2d932e282710d7f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "631_igniterealtime_Openfire-v5.0.3_9388c4d_b4d0fd5_CNCertificateIdentityMappingTest", "test_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMappingTest.testInjectedCommonNameCert:()V", "class": "CNCertificateIdentityMappingTest", "method": "testInjectedCommonNameCert", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cert.CNCertificateIdentityMappingTest#testInjectedCommonNameCert", "old_test_code": null, "new_test_code": "@Test\npublic void testInjectedCommonNameCert() throws Exception {\n final CertificateFactory certificateFactory = CertificateFactory.getInstance(\"X.509\");\n final X509Certificate certificate = (X509Certificate) certificateFactory.generateCertificate(getClass().getResourceAsStream(\"/cert/forged.crt\"));\n final List identities = new CNCertificateIdentityMapping().mapIdentity(certificate);\n assertFalse(identities.contains(\"victim\"), \"Unexpectedly found 'victim' identity in certificate. All identities found: \" + identities);\n assertTrue(identities.contains(\"attacker\"), \"Did not find 'attacker' identity in certificate. All Identities found: \" + identities);\n assertEquals(1, identities.size(), \"Unexpected amount of identities found in certificate. All Identities found: \" + identities);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["156-170"], "old_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n String name = certificate.getSubjectDN().getName();\n Matcher matcher = cnPattern.matcher(name);\n List names = new ArrayList<>();\n while (matcher.find()) {\n names.add(matcher.group(2));\n }\n return names;\n}", "new_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n final List names = new ArrayList<>();\n final X500Principal p = certificate.getSubjectX500Principal();\n final LdapName ln;\n try {\n ln = new LdapName(p.getName(X500Principal.RFC2253));\n for (final Rdn rdn : ln.getRdns()) {\n if (\"CN\".equalsIgnoreCase(rdn.getType())) {\n names.add(rdn.getValue().toString());\n }\n }\n } catch (InvalidNameException e) {\n Log.warn(\"Unable to extract identify from certificate: {}\", certificate, e);\n }\n return names;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "focal_method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_old": "41-52", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_new": "47-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0061, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0063, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["182b04337864571e026b393978526cc54724536d", "b5620a717ba8e1553e73e1dd2d932e282710d7f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "632_igniterealtime_Openfire-v5.0.3_9388c4d_b4d0fd5_CNCertificateIdentityMappingTest", "test_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMappingTest.testInjectedCommonName:()V", "class": "CNCertificateIdentityMappingTest", "method": "testInjectedCommonName", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cert.CNCertificateIdentityMappingTest#testInjectedCommonName", "old_test_code": null, "new_test_code": "@Test\npublic void testInjectedCommonName() throws Exception {\n final String subject = \"OU=\\\"infrastructure, CN=admin,\\\", O=Example Corp, C=GB, CN=attacker\";\n final X509v3CertificateBuilder builder = new JcaX509v3CertificateBuilder(new X500Name(\"CN=MyIssuer\"), BigInteger.valueOf(Math.abs(new SecureRandom().nextInt())), Date.from(Instant.now().plus(Duration.ofDays(30))), Date.from(Instant.now().minus(Duration.ofDays(99))), new X500Name(subject), subjectKeyPair.getPublic());\n final X509CertificateHolder certificateHolder = builder.build(contentSigner);\n final X509Certificate cert = new JcaX509CertificateConverter().getCertificate(certificateHolder);\n final List identities = new CNCertificateIdentityMapping().mapIdentity(cert);\n assertFalse(identities.contains(\"admin\"), \"Unexpectedly found 'admin' identity in certificate. All identities found: \" + identities);\n assertTrue(identities.contains(\"attacker\"), \"Did not find 'attacker' identity in certificate. All Identities found: \" + identities);\n assertEquals(1, identities.size(), \"Unexpected amount of identities found in certificate. All Identities found: \" + identities);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-125"], "old_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n String name = certificate.getSubjectDN().getName();\n Matcher matcher = cnPattern.matcher(name);\n List names = new ArrayList<>();\n while (matcher.find()) {\n names.add(matcher.group(2));\n }\n return names;\n}", "new_production_code": "@Override\npublic List mapIdentity(X509Certificate certificate) {\n final List names = new ArrayList<>();\n final X500Principal p = certificate.getSubjectX500Principal();\n final LdapName ln;\n try {\n ln = new LdapName(p.getName(X500Principal.RFC2253));\n for (final Rdn rdn : ln.getRdns()) {\n if (\"CN\".equalsIgnoreCase(rdn.getType())) {\n names.add(rdn.getValue().toString());\n }\n }\n } catch (InvalidNameException e) {\n Log.warn(\"Unable to extract identify from certificate: {}\", certificate, e);\n }\n return names;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "focal_method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_old": "41-52", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "line_nums_new": "47-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0061, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0063, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["182b04337864571e026b393978526cc54724536d", "b5620a717ba8e1553e73e1dd2d932e282710d7f5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cert/CNCertificateIdentityMapping.mapIdentity:(Ljava/security/cert/X509Certificate;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cert/CNCertificateIdentityMapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "igniterealtime_Openfire-v5.0.3__b44819a_b6edd98__IQRosterHandlerTest_b6862590", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "b44819a5093fdb6caff7322a08977098e2a2916b", "rev2": "b6edd98cc1ecf7a16512814a19d3c582a50457d5", "rev1_date": "2025-05-20T14:10:38Z", "rev2_date": "2025-05-20T14:13:40Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/b44819a5093fdb6caff7322a08977098e2a2916b...b6edd98cc1ecf7a16512814a19d3c582a50457d5", "test_file": "xmppserver/src/test/java/org/jivesoftware/openfire/handler/IQRosterHandlerTest.java", "test_changes": [{"change_id": "665_igniterealtime_Openfire-v5.0.3_b44819a_b6edd98_IQRosterHandlerTest", "test_sign": "org/jivesoftware/openfire/handler/IQRosterHandlerTest.testSubscriptionRemove:()V", "class": "IQRosterHandlerTest", "method": "testSubscriptionRemove", "module": "xmppserver", "junit_selector": "org.jivesoftware.openfire.handler.IQRosterHandlerTest#testSubscriptionRemove", "old_test_code": null, "new_test_code": "@Test\npublic void testSubscriptionRemove() throws Exception {\n final Roster input = new Roster();\n input.setType(IQ.Type.set);\n final JID address = new JID(\"foo\", \"example.org\", null);\n final Roster.Subscription subscription = Roster.Subscription.remove;\n input.addItem(address, subscription);\n final Roster result = IQRosterHandler.ignoreNonRemoveSubscriptionValues(input);\n assertTrue(result.getItems().stream().anyMatch(item -> item.getJID().equals(address) && subscription.equals(item.getSubscription())));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-74"], "old_production_code": "", "new_production_code": "public static org.xmpp.packet.Roster ignoreNonRemoveSubscriptionValues(org.xmpp.packet.Roster stanza) {\n final org.xmpp.packet.Roster result = stanza.createCopy();\n final Element query = result.getElement().element(new QName(\"query\", Namespace.get(\"jabber:iq:roster\")));\n if (query != null) {\n for (Iterator i = query.elementIterator(\"item\"); i.hasNext(); ) {\n final Element item = i.next();\n final Attribute subscription = item.attribute(\"subscription\");\n if (subscription != null && !\"remove\".equals(subscription.getValue())) {\n item.remove(subscription);\n }\n }\n }\n return result;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "focal_method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "file_path_old": null, "line_nums_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "line_nums_new": "273-287", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.0076, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0061, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["c93c83dbe2c07744a929008d8d42e52ef2a2aa6b", "4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84", "593a097ae47e1e7f0d132cd10666d17ff48c5b78"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "change_type": "ADD", "file_path_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "igniterealtime_Openfire-v5.0.3__b44819a_b6edd98__EntityCapabilitiesManagerTest_06256ec6", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "b44819a5093fdb6caff7322a08977098e2a2916b", "rev2": "b6edd98cc1ecf7a16512814a19d3c582a50457d5", "rev1_date": "2025-05-20T14:10:38Z", "rev2_date": "2025-05-20T14:13:40Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/b44819a5093fdb6caff7322a08977098e2a2916b...b6edd98cc1ecf7a16512814a19d3c582a50457d5", "test_file": "xmppserver/src/test/java/org/jivesoftware/util/EntityCapabilitiesManagerTest.java", "test_changes": [{"change_id": "663_igniterealtime_Openfire-v5.0.3_b44819a_b6edd98_EntityCapabilitiesManagerTest", "test_sign": "org/jivesoftware/util/EntityCapabilitiesManagerTest.test:()V", "class": "EntityCapabilitiesManagerTest", "method": "test", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.EntityCapabilitiesManagerTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n final String raw = \"\"\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n urn:xmpp:dataforms:softwareinfo\n \n \n Linux\n \n \n 4.14.355-276.618.amzn2.x86_64 amd64 - Java 17.0.14\n \n \n Openfire\n \n \n 5.0.0 Alpha\n \n \n \n \n http://jabber.org/network/serverinfo\n \n \n xmpp:dwd@dave.cridland.net\n xmpp:akrherz@igniterealtime.org\n xmpp:benjamin@igniterealtime.org\n mailto:benjamin@holyarmy.org\n xmpp:csh@igniterealtime.org\n xmpp:dan.caseley@igniterealtime.org\n mailto:dan.caseley@surevine.com\n xmpp:flow@igniterealtime.org\n xmpp:gdt@igniterealtime.org\n mailto:greg.d.thomas@gmail.com\n xmpp:guus.der.kinderen@igniterealtime.org\n mailto:guus.der.kinderen@gmail.com\n xmpp:lg@igniterealtime.org\n xmpp:rcollier@igniterealtime.org\n mailto:robincollier@hotmail.com\n \n \n \n \n \"\"\";\n final Document doc = DocumentHelper.parseText(raw);\n final IQ input = new IQ(doc.getRootElement());\n final String result = EntityCapabilitiesManager.generateVerHash(input, \"SHA-1\");\n assertEquals(\"89D/mEGBT1K0RtY28gEkGRbV2rc=\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["188-314"], "old_production_code": "public static String generateVerHash(IQ packet, String algorithm) {\n final StringBuilder s = new StringBuilder();\n final List discoIdentities = getIdentitiesFrom(packet);\n Collections.sort(discoIdentities);\n for (String discoIdentity : discoIdentities) {\n s.append(discoIdentity);\n s.append('<');\n }\n final List discoFeatures = getFeaturesFrom(packet);\n Collections.sort(discoFeatures);\n for (String discoFeature : discoFeatures) {\n s.append(discoFeature);\n s.append('<');\n }\n final List extendedDataForms = getExtendedDataForms(packet);\n Collections.sort(extendedDataForms);\n for (String extendedDataForm : extendedDataForms) {\n s.append(extendedDataForm);\n }\n final String hashed = StringUtils.hash(s.toString(), algorithm);\n return Base64.getEncoder().encodeToString(StringUtils.decodeHex(hashed));\n}", "new_production_code": "public static String generateVerHash(IQ packet, String algorithm) {\n final String s = generateS(packet);\n final String hashed = generateHash(s, algorithm);\n final String result = encodeHash(hashed);\n Log.trace(\"Calculated Caps Hash '{}' from Caps string '{}' from stanza: {}\", result, s, packet);\n return result;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "focal_method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "line_nums_old": "325-369", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "line_nums_new": "326-337", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1544, "method_coverage_gold": 0.4138, "line_coverage_gold": 0.3883, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["c93c83dbe2c07744a929008d8d42e52ef2a2aa6b", "4fa2a3c3acd2769ddd23d3c4f1e2c01510c94b84", "593a097ae47e1e7f0d132cd10666d17ff48c5b78"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "664_igniterealtime_Openfire-v5.0.3_b44819a_b6edd98_EntityCapabilitiesManagerTest", "test_sign": "org/jivesoftware/util/EntityCapabilitiesManagerTest.testEncodingOfResult:()V", "class": "EntityCapabilitiesManagerTest", "method": "testEncodingOfResult", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.EntityCapabilitiesManagerTest#testEncodingOfResult", "old_test_code": null, "new_test_code": "@Test\npublic void testEncodingOfResult() throws Exception {\n final String input = \"pubsub/pep// item.getJID().equals(address) && subscription.equals(item.getSubscription())));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-74"], "old_production_code": "", "new_production_code": "public static org.xmpp.packet.Roster ignoreNonRemoveSubscriptionValues(org.xmpp.packet.Roster stanza) {\n final org.xmpp.packet.Roster result = stanza.createCopy();\n final Element query = result.getElement().element(new QName(\"query\", Namespace.get(\"jabber:iq:roster\")));\n if (query != null) {\n for (Iterator i = query.elementIterator(\"item\"); i.hasNext(); ) {\n final Element item = i.next();\n final Attribute subscription = item.attribute(\"subscription\");\n if (subscription != null && !\"remove\".equals(subscription.getValue())) {\n item.remove(subscription);\n }\n }\n }\n return result;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "focal_method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "file_path_old": null, "line_nums_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "line_nums_new": "273-287", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.0076, "method_coverage_gold": 0.017, "line_coverage_gold": 0.0061, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/openfire/handler/IQRosterHandler.ignoreNonRemoveSubscriptionValues:(Lorg/xmpp/packet/Roster;)Lorg/xmpp/packet/Roster", "change_type": "ADD", "file_path_old": null, "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/handler/IQRosterHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "igniterealtime_Openfire-v5.0.3__d8212fd_a5cfde0__EntityCapabilitiesManagerTest_06256ec6", "project_name": "igniterealtime_Openfire-v5.0.3", "git_clone_url": "https://github.com/igniterealtime/Openfire.git", "rev1": "d8212fd21dbe6045aa5f993d1dba01f6c3800c9b", "rev2": "a5cfde0b99a3b200fffe094d192a0d96b6809b8a", "rev1_date": "2025-05-22T13:14:03Z", "rev2_date": "2025-05-22T15:31:27Z", "git_diff_url": "https://github.com/igniterealtime/Openfire/compare/d8212fd21dbe6045aa5f993d1dba01f6c3800c9b...a5cfde0b99a3b200fffe094d192a0d96b6809b8a", "test_file": "xmppserver/src/test/java/org/jivesoftware/util/EntityCapabilitiesManagerTest.java", "test_changes": [{"change_id": "640_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_EntityCapabilitiesManagerTest", "test_sign": "org/jivesoftware/util/EntityCapabilitiesManagerTest.test:()V", "class": "EntityCapabilitiesManagerTest", "method": "test", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.EntityCapabilitiesManagerTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n final String raw = \"\"\"\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n urn:xmpp:dataforms:softwareinfo\n \n \n Linux\n \n \n 4.14.355-276.618.amzn2.x86_64 amd64 - Java 17.0.14\n \n \n Openfire\n \n \n 5.0.0 Alpha\n \n \n \n \n http://jabber.org/network/serverinfo\n \n \n xmpp:dwd@dave.cridland.net\n xmpp:akrherz@igniterealtime.org\n xmpp:benjamin@igniterealtime.org\n mailto:benjamin@holyarmy.org\n xmpp:csh@igniterealtime.org\n xmpp:dan.caseley@igniterealtime.org\n mailto:dan.caseley@surevine.com\n xmpp:flow@igniterealtime.org\n xmpp:gdt@igniterealtime.org\n mailto:greg.d.thomas@gmail.com\n xmpp:guus.der.kinderen@igniterealtime.org\n mailto:guus.der.kinderen@gmail.com\n xmpp:lg@igniterealtime.org\n xmpp:rcollier@igniterealtime.org\n mailto:robincollier@hotmail.com\n \n \n \n \n \"\"\";\n final Document doc = DocumentHelper.parseText(raw);\n final IQ input = new IQ(doc.getRootElement());\n final String result = EntityCapabilitiesManager.generateVerHash(input, \"SHA-1\");\n assertEquals(\"89D/mEGBT1K0RtY28gEkGRbV2rc=\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["188-314"], "old_production_code": "public static String generateVerHash(IQ packet, String algorithm) {\n final StringBuilder s = new StringBuilder();\n final List discoIdentities = getIdentitiesFrom(packet);\n Collections.sort(discoIdentities);\n for (String discoIdentity : discoIdentities) {\n s.append(discoIdentity);\n s.append('<');\n }\n final List discoFeatures = getFeaturesFrom(packet);\n Collections.sort(discoFeatures);\n for (String discoFeature : discoFeatures) {\n s.append(discoFeature);\n s.append('<');\n }\n final List extendedDataForms = getExtendedDataForms(packet);\n Collections.sort(extendedDataForms);\n for (String extendedDataForm : extendedDataForms) {\n s.append(extendedDataForm);\n }\n final String hashed = StringUtils.hash(s.toString(), algorithm);\n return Base64.getEncoder().encodeToString(StringUtils.decodeHex(hashed));\n}", "new_production_code": "public static String generateVerHash(IQ packet, String algorithm) {\n final String s = generateS(packet);\n final String hashed = generateHash(s, algorithm);\n final String result = encodeHash(hashed);\n Log.trace(\"Calculated Caps Hash '{}' from Caps string '{}' from stanza: {}\", result, s, packet);\n return result;\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "focal_method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "line_nums_old": "325-369", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "line_nums_new": "326-337", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1544, "method_coverage_gold": 0.4137, "line_coverage_gold": 0.3883, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.generateVerHash:(Lorg/xmpp/packet/IQ;Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/openfire/entitycaps/EntityCapabilitiesManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "643_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_EntityCapabilitiesManagerTest", "test_sign": "org/jivesoftware/util/EntityCapabilitiesManagerTest.testEncodingOfResult:()V", "class": "EntityCapabilitiesManagerTest", "method": "testEncodingOfResult", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.EntityCapabilitiesManagerTest#testEncodingOfResult", "old_test_code": null, "new_test_code": "@Test\npublic void testEncodingOfResult() throws Exception {\n final String input = \"pubsub/pep//> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-48"], "old_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n}", "new_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n synchronized (mutex.intern(key)) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n if (uniqueOwnerExpected && !DISABLE_OPTIMIZATION.getValue()) {\n reverseCacheRepresentation.forEach((k, v) -> {\n if (!k.equals(nodeID)) {\n v.remove(key);\n }\n });\n }\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.0772, "method_coverage_gold": 0.272, "line_coverage_gold": 0.1936, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "641_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateForNonUniqueInWrongOrder:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateForNonUniqueInWrongOrder", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateForNonUniqueInWrongOrder", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateForNonUniqueInWrongOrder() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryUpdated(\"somekey\", null, null, clusterNode);\n listener.entryAdded(\"somekey\", null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["214-227"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3441, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.1667, "class": 1.0, "tfidf": 0.1084}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.3238, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 1.0, "tfidf": 0.0846}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 0.0787, "method_coverage_gold": 0.2777, "line_coverage_gold": 0.1964, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "642_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testAddTwiceForUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testAddTwiceForUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testAddTwiceForUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testAddTwiceForUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, true);\n final NodeID clusterNodeA = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n final NodeID clusterNodeB = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNodeA);\n listener.entryAdded(\"somekey\", null, clusterNodeB);\n assertFalse(reverseLookupMap.containsKey(clusterNodeA) && reverseLookupMap.get(clusterNodeA).contains(\"somekey\"));\n assertTrue(reverseLookupMap.containsKey(clusterNodeB) && reverseLookupMap.get(clusterNodeB).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-111"], "old_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n}", "new_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n synchronized (mutex.intern(key)) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n if (uniqueOwnerExpected && !DISABLE_OPTIMIZATION.getValue()) {\n reverseCacheRepresentation.forEach((k, v) -> {\n if (!k.equals(nodeID)) {\n v.remove(key);\n }\n });\n }\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 0.0908, "method_coverage_gold": 0.2891, "line_coverage_gold": 0.1997, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "644_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateForUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateForUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateForUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateForUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, true);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNode);\n listener.entryUpdated(\"somekey\", null, null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["142-155"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3239, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1333, "class": 1.0, "tfidf": 0.1084}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.283, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1333, "class": 1.0, "tfidf": 0.0846}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.0832, "method_coverage_gold": 0.2891, "line_coverage_gold": 0.1986, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "645_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testAddOnceForUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testAddOnceForUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testAddOnceForUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testAddOnceForUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, true);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-89"], "old_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n}", "new_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n synchronized (mutex.intern(key)) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n if (uniqueOwnerExpected && !DISABLE_OPTIMIZATION.getValue()) {\n reverseCacheRepresentation.forEach((k, v) -> {\n if (!k.equals(nodeID)) {\n v.remove(key);\n }\n });\n }\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.0817, "method_coverage_gold": 0.2834, "line_coverage_gold": 0.1958, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "646_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateForUniqueInWrongOrder:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateForUniqueInWrongOrder", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateForUniqueInWrongOrder", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateForUniqueInWrongOrder() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, true);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryUpdated(\"somekey\", null, null, clusterNode);\n listener.entryAdded(\"somekey\", null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["236-249"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3411, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.1481, "class": 1.0, "tfidf": 0.1084}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.3269, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1852, "class": 1.0, "tfidf": 0.0846}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 0.0832, "method_coverage_gold": 0.2891, "line_coverage_gold": 0.1986, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "647_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateFromAnotherNodeForUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateFromAnotherNodeForUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateFromAnotherNodeForUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateFromAnotherNodeForUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, true);\n final NodeID clusterNodeA = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n final NodeID clusterNodeB = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNodeA);\n listener.entryUpdated(\"somekey\", null, null, clusterNodeB);\n assertFalse(reverseLookupMap.containsKey(clusterNodeA) && reverseLookupMap.get(clusterNodeA).contains(\"somekey\"));\n assertTrue(reverseLookupMap.containsKey(clusterNodeB) && reverseLookupMap.get(clusterNodeB).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["190-205"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3463, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.1667, "class": 1.0, "tfidf": 0.1175}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.3447, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.0984}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 0.0923, "method_coverage_gold": 0.2947, "line_coverage_gold": 0.2025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "648_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateForNonUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateForNonUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateForNonUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateForNonUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNode = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNode);\n listener.entryUpdated(\"somekey\", null, null, clusterNode);\n assertTrue(reverseLookupMap.containsKey(clusterNode) && reverseLookupMap.get(clusterNode).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["120-133"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3294, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 1.0, "tfidf": 0.1084}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.2794, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1111, "class": 1.0, "tfidf": 0.0846}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 0.0787, "method_coverage_gold": 0.2777, "line_coverage_gold": 0.1963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "650_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateFromAnotherNodeForNonUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateFromAnotherNodeForNonUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateFromAnotherNodeForNonUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateFromAnotherNodeForNonUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNodeA = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n final NodeID clusterNodeB = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNodeA);\n listener.entryUpdated(\"somekey\", null, null, clusterNodeB);\n assertTrue(reverseLookupMap.containsKey(clusterNodeA) && reverseLookupMap.get(clusterNodeA).contains(\"somekey\"));\n assertTrue(reverseLookupMap.containsKey(clusterNodeB) && reverseLookupMap.get(clusterNodeB).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-180"], "old_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n entryAdded(key, newValue, nodeID);\n}", "new_production_code": "@Override\npublic void entryUpdated(@Nonnull final K key, @Nullable final V oldValue, @Nullable final V newValue, @Nonnull final NodeID nodeID) {\n if (DISABLE_OPTIMIZATION.getValue()) {\n return;\n }\n synchronized (mutex.intern(key)) {\n entryAdded(key, newValue, nodeID);\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3436, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.1515, "class": 1.0, "tfidf": 0.1169}}, {"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.3421, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1515, "class": 1.0, "tfidf": 0.0978}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 0.0817, "method_coverage_gold": 0.2834, "line_coverage_gold": 0.198, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "651_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testUpdateFromAnotherNodeForNonUniqueInWrongOrder:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testUpdateFromAnotherNodeForNonUniqueInWrongOrder", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testUpdateFromAnotherNodeForNonUniqueInWrongOrder", "old_test_code": null, "new_test_code": "@Test\npublic void testUpdateFromAnotherNodeForNonUniqueInWrongOrder() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNodeA = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n final NodeID clusterNodeB = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryUpdated(\"somekey\", null, null, clusterNodeB);\n listener.entryAdded(\"somekey\", null, clusterNodeA);\n assertTrue(reverseLookupMap.containsKey(clusterNodeA) && reverseLookupMap.get(clusterNodeA).contains(\"somekey\"));\n assertTrue(reverseLookupMap.containsKey(clusterNodeB) && reverseLookupMap.get(clusterNodeB).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["259-274"], "old_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n}", "new_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n synchronized (mutex.intern(key)) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n if (uniqueOwnerExpected && !DISABLE_OPTIMIZATION.getValue()) {\n reverseCacheRepresentation.forEach((k, v) -> {\n if (!k.equals(nodeID)) {\n v.remove(key);\n }\n });\n }\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": 0.3604, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.1556, "class": 1.0, "tfidf": 0.0978}}, {"dep_id": 1, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "56-60", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "93-102", "dependency_updated": "updated", "score": 0.3443, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.1556, "class": 1.0, "tfidf": 0.1169}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 0.0817, "method_coverage_gold": 0.2834, "line_coverage_gold": 0.198, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I", "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryUpdated:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "652_igniterealtime_Openfire-v5.0.3_d8212fd_a5cfde0_ReverseLookupUpdatingCacheEntryListenerTest", "test_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListenerTest.testAddTwiceForNonUnique:()V", "class": "ReverseLookupUpdatingCacheEntryListenerTest", "method": "testAddTwiceForNonUnique", "module": "xmppserver", "junit_selector": "org.jivesoftware.util.cache.ReverseLookupUpdatingCacheEntryListenerTest#testAddTwiceForNonUnique", "old_test_code": null, "new_test_code": "@Test\npublic void testAddTwiceForNonUnique() throws Exception {\n final ConcurrentMap> reverseLookupMap = new ConcurrentHashMap<>();\n final ReverseLookupUpdatingCacheEntryListener> listener = new ReverseLookupUpdatingCacheEntryListener<>(reverseLookupMap, false);\n final NodeID clusterNodeA = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n final NodeID clusterNodeB = NodeID.getInstance(UUID.randomUUID().toString().getBytes());\n listener.entryAdded(\"somekey\", null, clusterNodeA);\n listener.entryAdded(\"somekey\", null, clusterNodeB);\n assertTrue(reverseLookupMap.containsKey(clusterNodeA) && reverseLookupMap.get(clusterNodeA).contains(\"somekey\"));\n assertTrue(reverseLookupMap.containsKey(clusterNodeB) && reverseLookupMap.get(clusterNodeB).contains(\"somekey\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-70"], "old_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n}", "new_production_code": "@Override\npublic void entryAdded(@Nonnull final K key, @Nullable final V value, @Nonnull final NodeID nodeID) {\n synchronized (mutex.intern(key)) {\n reverseCacheRepresentation.computeIfAbsent(nodeID, k -> new HashSet<>()).add(key);\n if (uniqueOwnerExpected && !DISABLE_OPTIMIZATION.getValue()) {\n reverseCacheRepresentation.forEach((k, v) -> {\n if (!k.equals(nodeID)) {\n v.remove(key);\n }\n });\n }\n }\n}", "focal_file_path": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "focal_method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_old": "43-46", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "line_nums_new": "67-81", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 0.0802, "method_coverage_gold": 0.2777, "line_coverage_gold": 0.1952, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "org/jivesoftware/openfire/cluster/NodeID.getInstance:([B)Lorg/jivesoftware/openfire/cluster/NodeID", "org/jivesoftware/openfire/cluster/NodeID.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.entryAdded:(Ljava/lang/Object;Ljava/lang/Object;Lorg/jivesoftware/openfire/cluster/NodeID;)V", "change_type": "UPDATE", "file_path_old": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "file_path_new": "xmppserver/src/main/java/org/jivesoftware/util/cache/ReverseLookupUpdatingCacheEntryListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.3", "java_version": 17} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__70f1c96_3eb9341__TodoBusinessImplMockitoTest_8688b9a8", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "70f1c9663ad1958426eabe3e281a3893366adcab", "rev2": "3eb934128602735d9c90a19c88a3da6ccd4dd1ca", "rev1_date": "2016-08-07T15:20:45Z", "rev2_date": "2016-08-07T16:34:08Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/70f1c9663ad1958426eabe3e281a3893366adcab...3eb934128602735d9c90a19c88a3da6ccd4dd1ca", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplMockitoTest.java", "test_changes": [{"change_id": "19_in28minutes_MockitoTutorialForBeginners-master_70f1c96_3eb9341_TodoBusinessImplMockitoTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoTest.usingMockito_UsingBDD:()V", "class": "TodoBusinessImplMockitoTest", "method": "usingMockito_UsingBDD", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoTest#usingMockito_UsingBDD", "old_test_code": null, "new_test_code": "@Test\npublic void usingMockito_UsingBDD() {\n TodoService todoService = mock(TodoService.class);\n TodoBusinessImpl todoBusinessImpl = new TodoBusinessImpl(todoService);\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n given(todoService.retrieveTodos(\"Ranga\")).willReturn(allTodos);\n List todos = todoBusinessImpl.retrieveTodosRelatedToSpring(\"Ranga\");\n assertThat(todos.size(), is(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-47"], "old_production_code": "", "new_production_code": "public List retrieveTodosRelatedToSpring(String user) {\n List filteredTodos = new ArrayList();\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (todo.contains(\"Spring\")) {\n filteredTodos.add(todo);\n }\n }\n return filteredTodos;\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "15-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 100.0, "method_coverage_gold": 100.0, "line_coverage_gold": 100.0, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["d91eef493ecfb93df24cbb596ddc30435cbff737", "a6c06b10aeb6c933fb095219b713059461eb45cb", "8b65822ce74b66ba7c7017c2d04e56ed0e138b4d", "cdfba2531ca0eb5bb7c82f911f4d4d707d616347"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__70f1c96_8b65822__TodoBusinessImplStubTest_5f38a98c", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "70f1c9663ad1958426eabe3e281a3893366adcab", "rev2": "8b65822ce74b66ba7c7017c2d04e56ed0e138b4d", "rev1_date": "2016-08-07T15:20:45Z", "rev2_date": "2016-08-07T15:43:13Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/70f1c9663ad1958426eabe3e281a3893366adcab...8b65822ce74b66ba7c7017c2d04e56ed0e138b4d", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplStubTest.java", "test_changes": [{"change_id": "20_in28minutes_MockitoTutorialForBeginners-master_70f1c96_8b65822_TodoBusinessImplStubTest", "test_sign": "com/in28minutes/business/TodoBusinessImplStubTest.usingAStub:()V", "class": "TodoBusinessImplStubTest", "method": "usingAStub", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplStubTest#usingAStub", "old_test_code": null, "new_test_code": "@Test\npublic void usingAStub() {\n TodoService todoService = new TodoServiceStub();\n TodoBusinessImpl todoBusinessImpl = new TodoBusinessImpl(todoService);\n List todos = todoBusinessImpl.retrieveTodosRelatedToSpring(\"Ranga\");\n assertEquals(2, todos.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-21"], "old_production_code": "", "new_production_code": "public List retrieveTodosRelatedToSpring(String user) {\n List filteredTodos = new ArrayList();\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (todo.contains(\"Spring\")) {\n filteredTodos.add(todo);\n }\n }\n return filteredTodos;\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "15-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 100.0, "method_coverage_gold": 100.0, "line_coverage_gold": 100.0, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["cdfba2531ca0eb5bb7c82f911f4d4d707d616347"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__70f1c96_a6c06b1__TodoBusinessImplMockitoTest_2cb20a1d", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "70f1c9663ad1958426eabe3e281a3893366adcab", "rev2": "a6c06b10aeb6c933fb095219b713059461eb45cb", "rev1_date": "2016-08-07T15:20:45Z", "rev2_date": "2016-08-07T15:56:04Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/70f1c9663ad1958426eabe3e281a3893366adcab...a6c06b10aeb6c933fb095219b713059461eb45cb", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplMockitoTest.java", "test_changes": [{"change_id": "4_in28minutes_MockitoTutorialForBeginners-master_70f1c96_a6c06b1_TodoBusinessImplMockitoTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoTest.usingMockito:()V", "class": "TodoBusinessImplMockitoTest", "method": "usingMockito", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoTest#usingMockito", "old_test_code": null, "new_test_code": "@Test\npublic void usingMockito() {\n TodoService todoService = mock(TodoService.class);\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n when(todoService.retrieveTodos(\"Ranga\")).thenReturn(allTodos);\n TodoBusinessImpl todoBusinessImpl = new TodoBusinessImpl(todoService);\n List todos = todoBusinessImpl.retrieveTodosRelatedToSpring(\"Ranga\");\n assertEquals(2, todos.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-26"], "old_production_code": "", "new_production_code": "public List retrieveTodosRelatedToSpring(String user) {\n List filteredTodos = new ArrayList();\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (todo.contains(\"Spring\")) {\n filteredTodos.add(todo);\n }\n }\n return filteredTodos;\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "15-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 100.0, "method_coverage_gold": 100.0, "line_coverage_gold": 100.0, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["8b65822ce74b66ba7c7017c2d04e56ed0e138b4d", "cdfba2531ca0eb5bb7c82f911f4d4d707d616347"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.retrieveTodosRelatedToSpring:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__f954380_08c0ef8__TodoBusinessImplMockitoTest_28d0f378", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "f9543806248690f1b8b075dad94c61b9a89d776f", "rev2": "08c0ef8811280180928a9530c284e97b28c24cec", "rev1_date": "2016-08-07T16:41:00Z", "rev2_date": "2016-08-08T04:03:15Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/f9543806248690f1b8b075dad94c61b9a89d776f...08c0ef8811280180928a9530c284e97b28c24cec", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplMockitoTest.java", "test_changes": [{"change_id": "3_in28minutes_MockitoTutorialForBeginners-master_f954380_08c0ef8_TodoBusinessImplMockitoTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoTest.letsTestDeleteNow:()V", "class": "TodoBusinessImplMockitoTest", "method": "letsTestDeleteNow", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoTest#letsTestDeleteNow", "old_test_code": null, "new_test_code": "@Test\npublic void letsTestDeleteNow() {\n TodoService todoService = mock(TodoService.class);\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n when(todoService.retrieveTodos(\"Ranga\")).thenReturn(allTodos);\n TodoBusinessImpl todoBusinessImpl = new TodoBusinessImpl(todoService);\n todoBusinessImpl.deleteTodosNotRelatedToSpring(\"Ranga\");\n verify(todoService).deleteTodo(\"Learn to Dance\");\n verify(todoService, Mockito.never()).deleteTodo(\"Learn Spring MVC\");\n verify(todoService, Mockito.never()).deleteTodo(\"Learn Spring\");\n verify(todoService, Mockito.times(1)).deleteTodo(\"Learn to Dance\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-74"], "old_production_code": "", "new_production_code": "public void deleteTodosNotRelatedToSpring(String user) {\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (!todo.contains(\"Spring\")) {\n todoService.deleteTodo(todo);\n }\n }\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 66.6667, "line_coverage_gold": 56.25, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__f954380_2979196__TodoBusinessImplMockitoTest_c588fe0d", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "f9543806248690f1b8b075dad94c61b9a89d776f", "rev2": "297919642ff0fa1d1f55c5dcd3b94fd4e0ccd79a", "rev1_date": "2016-08-07T16:41:00Z", "rev2_date": "2016-08-08T04:07:26Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/f9543806248690f1b8b075dad94c61b9a89d776f...297919642ff0fa1d1f55c5dcd3b94fd4e0ccd79a", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplMockitoTest.java", "test_changes": [{"change_id": "5_in28minutes_MockitoTutorialForBeginners-master_f954380_2979196_TodoBusinessImplMockitoTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoTest.captureArgument:()V", "class": "TodoBusinessImplMockitoTest", "method": "captureArgument", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoTest#captureArgument", "old_test_code": null, "new_test_code": "@Test\npublic void captureArgument() {\n ArgumentCaptor argumentCaptor = ArgumentCaptor.forClass(String.class);\n TodoService todoService = mock(TodoService.class);\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n Mockito.when(todoService.retrieveTodos(\"Ranga\")).thenReturn(allTodos);\n TodoBusinessImpl todoBusinessImpl = new TodoBusinessImpl(todoService);\n todoBusinessImpl.deleteTodosNotRelatedToSpring(\"Ranga\");\n Mockito.verify(todoService).deleteTodo(argumentCaptor.capture());\n assertEquals(\"Learn to Dance\", argumentCaptor.getValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-93"], "old_production_code": "", "new_production_code": "public void deleteTodosNotRelatedToSpring(String user) {\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (!todo.contains(\"Spring\")) {\n todoService.deleteTodo(todo);\n }\n }\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 66.6667, "line_coverage_gold": 56.25, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["08c0ef8811280180928a9530c284e97b28c24cec"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "in28minutes_MockitoTutorialForBeginners-master__f954380_c6955b7__TodoBusinessImplMockitoInjectMocksTest_97e431b2", "project_name": "in28minutes_MockitoTutorialForBeginners-master", "git_clone_url": "https://github.com/in28minutes/MockitoTutorialForBeginners.git", "rev1": "f9543806248690f1b8b075dad94c61b9a89d776f", "rev2": "c6955b76a8511aa129db212e54f7c22321746a19", "rev1_date": "2016-08-07T16:41:00Z", "rev2_date": "2016-08-08T04:28:23Z", "git_diff_url": "https://github.com/in28minutes/MockitoTutorialForBeginners/compare/f9543806248690f1b8b075dad94c61b9a89d776f...c6955b76a8511aa129db212e54f7c22321746a19", "test_file": "src/test/java/com/in28minutes/business/TodoBusinessImplMockitoInjectMocksTest.java", "test_changes": [{"change_id": "21_in28minutes_MockitoTutorialForBeginners-master_f954380_c6955b7_TodoBusinessImplMockitoInjectMocksTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoInjectMocksTest.letsTestDeleteNow:()V", "class": "TodoBusinessImplMockitoInjectMocksTest", "method": "letsTestDeleteNow", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoInjectMocksTest#letsTestDeleteNow", "old_test_code": null, "new_test_code": "@Test\npublic void letsTestDeleteNow() {\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n when(todoService.retrieveTodos(\"Ranga\")).thenReturn(allTodos);\n todoBusinessImpl.deleteTodosNotRelatedToSpring(\"Ranga\");\n verify(todoService).deleteTodo(\"Learn to Dance\");\n verify(todoService, Mockito.never()).deleteTodo(\"Learn Spring MVC\");\n verify(todoService, Mockito.never()).deleteTodo(\"Learn Spring\");\n verify(todoService, Mockito.times(1)).deleteTodo(\"Learn to Dance\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-82"], "old_production_code": "", "new_production_code": "public void deleteTodosNotRelatedToSpring(String user) {\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (!todo.contains(\"Spring\")) {\n todoService.deleteTodo(todo);\n }\n }\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 66.6667, "line_coverage_gold": 56.25, "is_traceback": true, "commit_gap": {"count": 3, "skipped_commits": ["0b1003707bed2559270a2be70dd48193804758f2", "297919642ff0fa1d1f55c5dcd3b94fd4e0ccd79a", "08c0ef8811280180928a9530c284e97b28c24cec"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "22_in28minutes_MockitoTutorialForBeginners-master_f954380_c6955b7_TodoBusinessImplMockitoInjectMocksTest", "test_sign": "com/in28minutes/business/TodoBusinessImplMockitoInjectMocksTest.captureArgument:()V", "class": "TodoBusinessImplMockitoInjectMocksTest", "method": "captureArgument", "module": "", "junit_selector": "com.in28minutes.business.TodoBusinessImplMockitoInjectMocksTest#captureArgument", "old_test_code": null, "new_test_code": "@Test\npublic void captureArgument() {\n List allTodos = Arrays.asList(\"Learn Spring MVC\", \"Learn Spring\", \"Learn to Dance\");\n Mockito.when(todoService.retrieveTodos(\"Ranga\")).thenReturn(allTodos);\n todoBusinessImpl.deleteTodosNotRelatedToSpring(\"Ranga\");\n Mockito.verify(todoService).deleteTodo(stringArgumentCaptor.capture());\n assertEquals(\"Learn to Dance\", stringArgumentCaptor.getValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-94"], "old_production_code": "", "new_production_code": "public void deleteTodosNotRelatedToSpring(String user) {\n List allTodos = todoService.retrieveTodos(user);\n for (String todo : allTodos) {\n if (!todo.contains(\"Spring\")) {\n todoService.deleteTodo(todo);\n }\n }\n}", "focal_file_path": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "focal_method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "line_nums_new": "26-33", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 66.6667, "line_coverage_gold": 56.25, "is_traceback": true, "commit_gap": {"count": 3, "skipped_commits": ["0b1003707bed2559270a2be70dd48193804758f2", "297919642ff0fa1d1f55c5dcd3b94fd4e0ccd79a", "08c0ef8811280180928a9530c284e97b28c24cec"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/in28minutes/business/TodoBusinessImpl.deleteTodosNotRelatedToSpring:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/in28minutes/business/TodoBusinessImpl.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__14fe227_40b456b__RulesEngineListenerTest_bbbf0551", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "14fe227c82551165e1818aca6044649192b8604c", "rev2": "40b456b670b404a67b73b3c1f16ff0736d5855c8", "rev1_date": "2017-12-11T23:00:52Z", "rev2_date": "2017-12-11T23:04:14Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/14fe227c82551165e1818aca6044649192b8604c...40b456b670b404a67b73b3c1f16ff0736d5855c8", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulesEngineListenerTest.java", "test_changes": [{"change_id": "779_j-easy_easy-rules-easy-rules-4.1.0_14fe227_40b456b_RulesEngineListenerTest", "test_sign": "org/jeasy/rules/core/RulesEngineListenerTest.rulesEngineListenersShouldBeCalledInOrderWhenCheckingRules:()V", "class": "RulesEngineListenerTest", "method": "rulesEngineListenersShouldBeCalledInOrderWhenCheckingRules", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineListenerTest#rulesEngineListenersShouldBeCalledInOrderWhenCheckingRules", "old_test_code": null, "new_test_code": "@Test\npublic void rulesEngineListenersShouldBeCalledInOrderWhenCheckingRules() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(true);\n rules.register(rule1);\n rulesEngine.check(rules, facts);\n InOrder inOrder = inOrder(rule1, fact1, fact2, rulesEngineListener1, rulesEngineListener2);\n inOrder.verify(rulesEngineListener1).beforeEvaluate(rules, facts);\n inOrder.verify(rulesEngineListener2).beforeEvaluate(rules, facts);\n inOrder.verify(rule1).evaluate(facts);\n inOrder.verify(rulesEngineListener1).afterExecute(rules, facts);\n inOrder.verify(rulesEngineListener2).afterExecute(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["72-88"], "old_production_code": "@Override\npublic Map check(Rules rules, Facts facts) {\n LOGGER.info(\"Checking rules\");\n Map result = new HashMap<>();\n for (Rule rule : rules) {\n if (shouldBeEvaluated(rule, facts)) {\n result.put(rule, rule.evaluate(facts));\n }\n }\n return result;\n}", "new_production_code": "@Override\npublic Map check(Rules rules, Facts facts) {\n triggerListenersBeforeRules(rules, facts);\n LOGGER.info(\"Checking rules\");\n Map result = new HashMap<>();\n for (Rule rule : rules) {\n if (shouldBeEvaluated(rule, facts)) {\n result.put(rule, rule.evaluate(facts));\n }\n }\n triggerListenersAfterRules(rules, facts);\n return result;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_old": "127-137", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "127-139", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.5833, "method_coverage_gold": 15.2318, "line_coverage_gold": 11.9857, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__1ebc0b4_0575a99__ConditionalRuleGroupTest_dbdba936", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "rev2": "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "rev1_date": "2020-05-10T10:16:00Z", "rev2_date": "2020-05-10T10:16:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/1ebc0b40d5e2d62488862e0745d02d0dfd259e40...0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/composite/ConditionalRuleGroupTest.java", "test_changes": [{"change_id": "623_j-easy_easy-rules-easy-rules-4.1.0_1ebc0b4_0575a99_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/composite/ConditionalRuleGroupTest.twoRulesWithSameHighestPriorityIsNotAllowed:()V", "class": "ConditionalRuleGroupTest", "method": "twoRulesWithSameHighestPriorityIsNotAllowed", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.composite.ConditionalRuleGroupTest#twoRulesWithSameHighestPriorityIsNotAllowed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void twoRulesWithSameHighestPriorityIsNotAllowed() {\n conditionalRuleGroup.addRule(new MyOtherRule(0));\n conditionalRuleGroup.addRule(new MyOtherRule(1));\n conditionalRuleGroup.addRule(new MyRule());\n conditionalRuleGroup.evaluate(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-171"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n successfulEvaluations = new HashSet<>();\n conditionalRule = getRuleWithHighestPriority();\n if (conditionalRule.evaluate(facts)) {\n for (Rule rule : rules) {\n if (rule != conditionalRule && rule.evaluate(facts)) {\n successfulEvaluations.add(rule);\n }\n }\n return true;\n }\n return false;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/ConditionalRuleGroup.java", "focal_method_sign": "org/jeasy/rules/support/composite/ConditionalRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/support/composite/ConditionalRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/ConditionalRuleGroup.java", "line_nums_new": "88-101", "dependency_updated": "inserted", "score": 0.3107, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.093, "class": 1.0, "tfidf": 0.0803}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": 0.1273, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.093, "class": 0.0, "tfidf": 0.0474}}], "coverage_gold": 0.38461538461538464, "branch_coverage_gold": 2.381, "method_coverage_gold": 12.7273, "line_coverage_gold": 8.7379, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/support/composite/ConditionalRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/support/composite/ConditionalRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/ConditionalRuleGroup.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__1ebc0b4_0575a99__UnitRuleGroupTest_2be1d8f1", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "rev2": "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "rev1_date": "2020-05-10T10:16:00Z", "rev2_date": "2020-05-10T10:16:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/1ebc0b40d5e2d62488862e0745d02d0dfd259e40...0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/composite/UnitRuleGroupTest.java", "test_changes": [{"change_id": "616_j-easy_easy-rules-easy-rules-4.1.0_1ebc0b4_0575a99_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/composite/UnitRuleGroupTest.compositeRuleAndComposingRulesMustBeExecuted:()V", "class": "UnitRuleGroupTest", "method": "compositeRuleAndComposingRulesMustBeExecuted", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.composite.UnitRuleGroupTest#compositeRuleAndComposingRulesMustBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void compositeRuleAndComposingRulesMustBeExecuted() throws Exception {\n unitRuleGroup = new UnitRuleGroup();\n unitRuleGroup.addRule(rule1);\n unitRuleGroup.addRule(rule2);\n rules.register(unitRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-90"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.1429, "method_coverage_gold": 10.9091, "line_coverage_gold": 10.1942, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "617_j-easy_easy-rules-easy-rules-4.1.0_1ebc0b4_0575a99_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/composite/UnitRuleGroupTest.whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse:()V", "class": "UnitRuleGroupTest", "method": "whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.composite.UnitRuleGroupTest#whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse() {\n unitRuleGroup = new UnitRuleGroup();\n boolean evaluationResult = unitRuleGroup.evaluate(facts);\n assertThat(evaluationResult).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-74"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n if (!rules.isEmpty()) {\n for (Rule rule : rules) {\n if (!rule.evaluate(facts)) {\n return false;\n }\n }\n return true;\n }\n return false;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/UnitRuleGroup.java", "focal_method_sign": "org/jeasy/rules/support/composite/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/composite/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/UnitRuleGroup.java", "line_nums_new": "69-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2857142857142857, "branch_coverage_gold": 1.1905, "method_coverage_gold": 7.2727, "line_coverage_gold": 4.8544, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/composite/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/composite/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/UnitRuleGroup.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "624_j-easy_easy-rules-easy-rules-4.1.0_1ebc0b4_0575a99_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/composite/UnitRuleGroupTest.compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse:()V", "class": "UnitRuleGroupTest", "method": "compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.composite.UnitRuleGroupTest#compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse() throws Exception {\n when(rule2.evaluate(facts)).thenReturn(false);\n unitRuleGroup = new UnitRuleGroup();\n unitRuleGroup.addRule(rule1);\n unitRuleGroup.addRule(rule2);\n rules.register(unitRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["92-114"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.7619, "method_coverage_gold": 9.0909, "line_coverage_gold": 8.2524, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "631_j-easy_easy-rules-easy-rules-4.1.0_1ebc0b4_0575a99_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/composite/UnitRuleGroupTest.whenARuleIsRemoved_thenItShouldNotBeEvaluated:()V", "class": "UnitRuleGroupTest", "method": "whenARuleIsRemoved_thenItShouldNotBeEvaluated", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.composite.UnitRuleGroupTest#whenARuleIsRemoved_thenItShouldNotBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenARuleIsRemoved_thenItShouldNotBeEvaluated() throws Exception {\n unitRuleGroup = new UnitRuleGroup();\n unitRuleGroup.addRule(rule1);\n unitRuleGroup.addRule(rule2);\n unitRuleGroup.removeRule(rule2);\n rules.register(unitRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).evaluate(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["116-135"], "old_production_code": "", "new_production_code": "public void removeRule(final Object rule) {\n Rule proxy = proxyRules.get(rule);\n if (proxy != null) {\n rules.remove(proxy);\n }\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/composite/CompositeRule.removeRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/support/composite/CompositeRule.removeRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "line_nums_new": "109-114", "dependency_updated": "inserted", "score": 0.199, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2, "class": 0.0, "tfidf": 0.0306}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": 0.1527, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1111, "class": 0.0, "tfidf": 0.0356}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.3333, "method_coverage_gold": 12.7273, "line_coverage_gold": 12.1359, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/support/composite/CompositeRule.removeRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/composite/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/support/composite/CompositeRule.removeRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/composite/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__AnnotatedRulesTest_098f6bcd", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/AnnotatedRulesTest.java", "test_changes": [{"change_id": "721_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_AnnotatedRulesTest", "test_sign": "org/jeasy/rules/core/AnnotatedRulesTest.test:()V", "class": "AnnotatedRulesTest", "method": "test", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.AnnotatedRulesTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n Facts facts = new Facts();\n facts.add(\"rain\", true);\n facts.add(\"age\", 18);\n Rules rules = new Rules(new WeatherRule(), new AgeRule());\n RulesEngine rulesEngine = new DefaultRulesEngine();\n rulesEngine.fire(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-51"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.5409}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": 0.0363, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.1544}}], "coverage_gold": 0.8, "branch_coverage_gold": 44.9074, "method_coverage_gold": 52.8926, "line_coverage_gold": 51.7454, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__BasicRuleTest_781877a6", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/BasicRuleTest.java", "test_changes": [{"change_id": "690_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_BasicRuleTest", "test_sign": "org/jeasy/rules/core/BasicRuleTest.basicRuleEvaluateShouldReturnFalse:()V", "class": "BasicRuleTest", "method": "basicRuleEvaluateShouldReturnFalse", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.BasicRuleTest#basicRuleEvaluateShouldReturnFalse", "old_test_code": null, "new_test_code": "@Test\npublic void basicRuleEvaluateShouldReturnFalse() throws Exception {\n BasicRule basicRule = new BasicRule();\n assertThat(basicRule.evaluate(facts)).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "public boolean evaluate(Facts facts) {\n return false;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "focal_method_sign": "org/jeasy/rules/core/BasicRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/BasicRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "line_nums_new": "96-98", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.463, "method_coverage_gold": 10.7438, "line_coverage_gold": 7.3922, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/BasicRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/BasicRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "710_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_BasicRuleTest", "test_sign": "org/jeasy/rules/core/BasicRuleTest.testCompareTo:()V", "class": "BasicRuleTest", "method": "testCompareTo", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.BasicRuleTest#testCompareTo", "old_test_code": null, "new_test_code": "@Test\npublic void testCompareTo() {\n FirstRule rule1 = new FirstRule();\n FirstRule rule2 = new FirstRule();\n assertThat(rule1.compareTo(rule2)).isEqualTo(0);\n assertThat(rule2.compareTo(rule1)).isEqualTo(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-47"], "old_production_code": "", "new_production_code": "@Override\npublic int compareTo(final Rule rule) {\n if (getPriority() < rule.getPriority()) {\n return -1;\n } else if (getPriority() > rule.getPriority()) {\n return 1;\n } else {\n return getName().compareTo(rule.getName());\n }\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "focal_method_sign": "org/jeasy/rules/core/BasicRule.compareTo:(Lorg/jeasy/rules/api/Rule;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/BasicRule.compareTo:(Lorg/jeasy/rules/api/Rule;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "line_nums_new": "161-170", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 1.3889, "method_coverage_gold": 10.7438, "line_coverage_gold": 7.8029, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/BasicRule.compareTo:(Lorg/jeasy/rules/api/Rule;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/BasicRule.compareTo:(Lorg/jeasy/rules/api/Rule;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/BasicRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "730_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_BasicRuleTest", "test_sign": "org/jeasy/rules/core/BasicRuleTest.testSortSequence:()V", "class": "BasicRuleTest", "method": "testSortSequence", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.BasicRuleTest#testSortSequence", "old_test_code": null, "new_test_code": "@Test\npublic void testSortSequence() {\n FirstRule rule1 = new FirstRule();\n SecondRule rule2 = new SecondRule();\n ThirdRule rule3 = new ThirdRule();\n rules = new Rules(rule1, rule2, rule3);\n rulesEngine.check(rules, facts);\n assertThat(rules).containsSequence(rule1, rule3, rule2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-59"], "old_production_code": "", "new_production_code": "@Override\npublic Map check(Rules rules, Facts facts) {\n LOGGER.info(\"Checking rules\");\n sort(rules);\n Map result = new HashMap<>();\n for (Rule rule : rules) {\n if (shouldBeEvaluated(rule, facts)) {\n result.put(rule, rule.evaluate(facts));\n }\n }\n return result;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "92-103", "dependency_updated": "inserted", "score": 0.1397, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1667, "class": 0.0, "tfidf": 0.177}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.iterator:()Ljava/util/Iterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": 0.0907, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1667, "class": 0.0, "tfidf": 0.0812}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.4815, "method_coverage_gold": 17.3554, "line_coverage_gold": 13.1417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.iterator:()Ljava/util/Iterator", "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.iterator:()Ljava/util/Iterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__CompositeRuleTest_9335c724", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/CompositeRuleTest.java", "test_changes": [{"change_id": "684_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_CompositeRuleTest", "test_sign": "org/jeasy/rules/core/CompositeRuleTest.compositeRuleAndComposingRulesMustBeExecuted:()V", "class": "CompositeRuleTest", "method": "compositeRuleAndComposingRulesMustBeExecuted", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.CompositeRuleTest#compositeRuleAndComposingRulesMustBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void compositeRuleAndComposingRulesMustBeExecuted() throws Exception {\n compositeRule.addRule(rule1);\n compositeRule.addRule(rule2);\n rules.clear();\n rules.register(compositeRule);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-62"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "line_nums_new": "124-128", "dependency_updated": "inserted", "score": 0.3772, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1364, "class": 1.0, "tfidf": 0.0649}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.2486, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1136, "class": 0.0, "tfidf": 0.2271}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2307, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0682, "class": 0.0, "tfidf": 0.3703}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1775, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1364, "class": 0.0, "tfidf": 0.0963}}], "coverage_gold": 0.875, "branch_coverage_gold": 13.4259, "method_coverage_gold": 38.0165, "line_coverage_gold": 28.7474, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "693_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_CompositeRuleTest", "test_sign": "org/jeasy/rules/core/CompositeRuleTest.whenARuleIsRemoved_thenItShouldNotBeEvaluated:()V", "class": "CompositeRuleTest", "method": "whenARuleIsRemoved_thenItShouldNotBeEvaluated", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.CompositeRuleTest#whenARuleIsRemoved_thenItShouldNotBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenARuleIsRemoved_thenItShouldNotBeEvaluated() throws Exception {\n compositeRule.addRule(rule1);\n compositeRule.addRule(rule2);\n compositeRule.removeRule(rule2);\n rules.clear();\n rules.register(compositeRule);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).evaluate(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-105"], "old_production_code": "", "new_production_code": "public void removeRule(final Object rule) {\n Rule proxy = proxyRules.get(rule);\n if (proxy != null) {\n rules.remove(proxy);\n }\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/core/CompositeRule.removeRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "org/jeasy/rules/core/CompositeRule.removeRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "line_nums_new": "134-139", "dependency_updated": "inserted", "score": 0.3905, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2, "class": 1.0, "tfidf": 0.0445}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "line_nums_new": "124-128", "dependency_updated": "inserted", "score": 0.344, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1111, "class": 1.0, "tfidf": 0.0486}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2169, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0667, "class": 0.0, "tfidf": 0.3127}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1333, "class": 0.0, "tfidf": 0.0727}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.1572, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0667, "class": 0.0, "tfidf": 0.1715}}], "coverage_gold": 0.9, "branch_coverage_gold": 13.8889, "method_coverage_gold": 38.843, "line_coverage_gold": 29.5688, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/core/CompositeRule.removeRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/CompositeRule.removeRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "696_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_CompositeRuleTest", "test_sign": "org/jeasy/rules/core/CompositeRuleTest.whenNoComposingRulesAreRegistered_thenCompositeRuleShouldEvaluateToFalse:()V", "class": "CompositeRuleTest", "method": "whenNoComposingRulesAreRegistered_thenCompositeRuleShouldEvaluateToFalse", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.CompositeRuleTest#whenNoComposingRulesAreRegistered_thenCompositeRuleShouldEvaluateToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void whenNoComposingRulesAreRegistered_thenCompositeRuleShouldEvaluateToFalse() {\n assertThat(compositeRule.evaluate(facts)).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-110"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n if (!rules.isEmpty()) {\n for (Rule rule : rules) {\n if (!rule.evaluate(facts)) {\n return false;\n }\n }\n return true;\n }\n return false;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/core/CompositeRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/CompositeRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "line_nums_new": "94-105", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2857142857142857, "branch_coverage_gold": 0.9259, "method_coverage_gold": 11.5702, "line_coverage_gold": 8.4189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/CompositeRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/CompositeRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "718_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_CompositeRuleTest", "test_sign": "org/jeasy/rules/core/CompositeRuleTest.compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse:()V", "class": "CompositeRuleTest", "method": "compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.CompositeRuleTest#compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void compositeRuleMustNotBeExecutedIfAComposingRuleEvaluatesToFalse() throws Exception {\n when(rule2.evaluate(facts)).thenReturn(false);\n compositeRule.addRule(rule1);\n compositeRule.addRule(rule2);\n rules.clear();\n rules.register(compositeRule);\n rulesEngine.fire(rules, facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-84"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "line_nums_new": "124-128", "dependency_updated": "inserted", "score": 0.3405, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.0806, "class": 1.0, "tfidf": 0.0548}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.271, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0645, "class": 0.0, "tfidf": 0.3565}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.2351, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0806, "class": 0.0, "tfidf": 0.1928}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1675, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0968, "class": 0.0, "tfidf": 0.0818}}], "coverage_gold": 0.875, "branch_coverage_gold": 11.5741, "method_coverage_gold": 35.5372, "line_coverage_gold": 26.078, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__CustomRuleOrderingTest_fcce5e65", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/CustomRuleOrderingTest.java", "test_changes": [{"change_id": "726_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_CustomRuleOrderingTest", "test_sign": "org/jeasy/rules/core/CustomRuleOrderingTest.whenCompareToIsOverridden_thenShouldExecuteRulesInTheCustomOrder:()V", "class": "CustomRuleOrderingTest", "method": "whenCompareToIsOverridden_thenShouldExecuteRulesInTheCustomOrder", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.CustomRuleOrderingTest#whenCompareToIsOverridden_thenShouldExecuteRulesInTheCustomOrder", "old_test_code": null, "new_test_code": "@Test\npublic void whenCompareToIsOverridden_thenShouldExecuteRulesInTheCustomOrder() throws Exception {\n when(rule1.getName()).thenReturn(\"a\");\n when(rule1.getPriority()).thenReturn(1);\n when(rule1.evaluate(facts)).thenReturn(true);\n when(rule2.getName()).thenReturn(\"b\");\n when(rule2.getPriority()).thenReturn(0);\n when(rule2.evaluate(facts)).thenReturn(true);\n when(rule2.compareTo(rule1)).thenCallRealMethod();\n rules.clear();\n rules.register(rule1);\n rules.register(rule2);\n rulesEngine.fire(rules, facts);\n InOrder inOrder = inOrder(rule1, rule2);\n inOrder.verify(rule1).execute(facts);\n inOrder.verify(rule2).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-74"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.1921, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0469, "class": 0.0, "tfidf": 0.221}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1869, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1094, "class": 0.0, "tfidf": 0.0614}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.1787, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0625, "class": 0.0, "tfidf": 0.1156}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 9.7222, "method_coverage_gold": 29.7521, "line_coverage_gold": 22.5873, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__RuleDefinitionValidatorTest_787ad0ed", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RuleDefinitionValidatorTest.java", "test_changes": [{"change_id": "683_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.conditionMethodMustBePublic:()V", "class": "RuleDefinitionValidatorTest", "method": "conditionMethodMustBePublic", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#conditionMethodMustBePublic", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void conditionMethodMustBePublic() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithNotPublicConditionMethod());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-64"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "688_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.priorityMethodReturnTypeMustBeInteger:()V", "class": "RuleDefinitionValidatorTest", "method": "priorityMethodReturnTypeMustBeInteger", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#priorityMethodReturnTypeMustBeInteger", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void priorityMethodReturnTypeMustBeInteger() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithPriorityMethodHavingNonIntegerReturnType());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["113-116"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "699_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.actionMethodMustBeDefined:()V", "class": "RuleDefinitionValidatorTest", "method": "actionMethodMustBeDefined", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#actionMethodMustBeDefined", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void actionMethodMustBeDefined() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithoutActionMethod());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-82"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 8.7963, "method_coverage_gold": 10.7438, "line_coverage_gold": 8.4189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "700_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.actionMethodMustHaveNoArguments:()V", "class": "RuleDefinitionValidatorTest", "method": "actionMethodMustHaveNoArguments", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#actionMethodMustHaveNoArguments", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void actionMethodMustHaveNoArguments() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithActionMethodHavingOneArgumentNotOfTypeFacts());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-92"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 12.037, "method_coverage_gold": 11.5702, "line_coverage_gold": 10.2669, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "705_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.priorityMethodMustHaveNoArguments:()V", "class": "RuleDefinitionValidatorTest", "method": "priorityMethodMustHaveNoArguments", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#priorityMethodMustHaveNoArguments", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void priorityMethodMustHaveNoArguments() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithPriorityMethodHavingArguments());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-111"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "715_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.actionMethodMustBePublic:()V", "class": "RuleDefinitionValidatorTest", "method": "actionMethodMustBePublic", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#actionMethodMustBePublic", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void actionMethodMustBePublic() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithNotPublicActionMethod());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-87"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "719_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.withCustomAnnotationThatIsItselfAnnotatedWithTheRuleAnnotation:()V", "class": "RuleDefinitionValidatorTest", "method": "withCustomAnnotationThatIsItselfAnnotatedWithTheRuleAnnotation", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#withCustomAnnotationThatIsItselfAnnotatedWithTheRuleAnnotation", "old_test_code": null, "new_test_code": "@Test\npublic void withCustomAnnotationThatIsItselfAnnotatedWithTheRuleAnnotation() throws Throwable {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithMetaRuleAnnotation());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-51"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 12.5, "method_coverage_gold": 12.3967, "line_coverage_gold": 11.9097, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "722_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.priorityMethodMustBePublic:()V", "class": "RuleDefinitionValidatorTest", "method": "priorityMethodMustBePublic", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#priorityMethodMustBePublic", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void priorityMethodMustBePublic() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithNotPublicPriorityMethod());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-106"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "725_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.conditionMethodMustReturnBooleanType:()V", "class": "RuleDefinitionValidatorTest", "method": "conditionMethodMustReturnBooleanType", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#conditionMethodMustReturnBooleanType", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void conditionMethodMustReturnBooleanType() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithConditionMethodHavingNonBooleanReturnType());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-74"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 6.4815, "method_coverage_gold": 9.0909, "line_coverage_gold": 6.5708, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "728_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.whenConditionMethodHasOneNonAnnotatedParameter_thenThisParameterMustBeOfTypeFacts:()V", "class": "RuleDefinitionValidatorTest", "method": "whenConditionMethodHasOneNonAnnotatedParameter_thenThisParameterMustBeOfTypeFacts", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#whenConditionMethodHasOneNonAnnotatedParameter_thenThisParameterMustBeOfTypeFacts", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void whenConditionMethodHasOneNonAnnotatedParameter_thenThisParameterMustBeOfTypeFacts() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithConditionMethodHavingOneArgumentNotOfTypeFacts());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-69"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 9.2593, "method_coverage_gold": 9.9174, "line_coverage_gold": 8.2136, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "731_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.notAnnotatedRuleMustNotBeAccepted:()V", "class": "RuleDefinitionValidatorTest", "method": "notAnnotatedRuleMustNotBeAccepted", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#notAnnotatedRuleMustNotBeAccepted", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void notAnnotatedRuleMustNotBeAccepted() {\n ruleDefinitionValidator.validateRuleDefinition(new Object());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-46"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 2.7778, "method_coverage_gold": 4.9587, "line_coverage_gold": 3.0801, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "733_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.conditionMethodMustBeDefined:()V", "class": "RuleDefinitionValidatorTest", "method": "conditionMethodMustBeDefined", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#conditionMethodMustBeDefined", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void conditionMethodMustBeDefined() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithoutCondition());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-59"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 4.1667, "method_coverage_gold": 8.2645, "line_coverage_gold": 4.9281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "735_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleDefinitionValidatorTest", "test_sign": "org/jeasy/rules/core/RuleDefinitionValidatorTest.priorityMethodMustBeUnique:()V", "class": "RuleDefinitionValidatorTest", "method": "priorityMethodMustBeUnique", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleDefinitionValidatorTest#priorityMethodMustBeUnique", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void priorityMethodMustBeUnique() {\n ruleDefinitionValidator.validateRuleDefinition(new AnnotatedRuleWithMoreThanOnePriorityMethod());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-101"], "old_production_code": "", "new_production_code": "void validateRuleDefinition(final Object rule) {\n checkRuleClass(rule);\n checkConditionMethod(rule);\n checkActionMethods(rule);\n checkPriorityMethod(rule);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "focal_method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "line_nums_new": "45-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 12.037, "method_coverage_gold": 12.3967, "line_coverage_gold": 10.6776, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleDefinitionValidator.validateRuleDefinition:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleDefinitionValidator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__RuleListenerTest_e2bd723b", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RuleListenerTest.java", "test_changes": [{"change_id": "685_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenTheRuleExecutesSuccessfully_thenOnSuccessShouldBeExecuted:()V", "class": "RuleListenerTest", "method": "whenTheRuleExecutesSuccessfully_thenOnSuccessShouldBeExecuted", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenTheRuleExecutesSuccessfully_thenOnSuccessShouldBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheRuleExecutesSuccessfully_thenOnSuccessShouldBeExecuted() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(true);\n rules.clear();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n InOrder inOrder = inOrder(rule1, fact1, fact2, ruleListener1, ruleListener2);\n inOrder.verify(ruleListener1).beforeExecute(rule1, facts);\n inOrder.verify(ruleListener2).beforeExecute(rule1, facts);\n inOrder.verify(ruleListener1).onSuccess(rule1, facts);\n inOrder.verify(ruleListener2).onSuccess(rule1, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-68"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.1533, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0328, "class": 0.0, "tfidf": 0.2535}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.141, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0492, "class": 0.0, "tfidf": 0.1148}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1353, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.082, "class": 0.0, "tfidf": 0.0487}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 12.037, "method_coverage_gold": 30.5785, "line_coverage_gold": 24.6407, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "691_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenTheRuleEvaluatesToTrue_thenTheListenerShouldBeInvoked:()V", "class": "RuleListenerTest", "method": "whenTheRuleEvaluatesToTrue_thenTheListenerShouldBeInvoked", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenTheRuleEvaluatesToTrue_thenTheListenerShouldBeInvoked", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheRuleEvaluatesToTrue_thenTheListenerShouldBeInvoked() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(true);\n rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRuleListener(ruleListener1).build();\n rules.clear();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n verify(ruleListener1).afterEvaluate(rule1, true);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-139"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2242, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0526, "class": 0.0, "tfidf": 0.3537}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "77-80", "dependency_updated": "inserted", "score": 0.2191, "signal_scores": {"nc": 0.0, "lcs_u": 0.9375, "ed": 0.2632, "class": 0.0, "tfidf": 0.044}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.2119, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0702, "class": 0.0, "tfidf": 0.2514}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.2068, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.193, "class": 0.0, "tfidf": 0.1439}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1997, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1228, "class": 0.0, "tfidf": 0.1066}}, {"dep_id": 4, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1801, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0702, "class": 0.0, "tfidf": 0.1163}}], "coverage_gold": 0.875, "branch_coverage_gold": 12.037, "method_coverage_gold": 30.5785, "line_coverage_gold": 24.6407, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "712_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenListenerReturnsTrue_thenTheRuleShouldBeEvaluated:()V", "class": "RuleListenerTest", "method": "whenListenerReturnsTrue_thenTheRuleShouldBeEvaluated", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenListenerReturnsTrue_thenTheRuleShouldBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenListenerReturnsTrue_thenTheRuleShouldBeEvaluated() throws Exception {\n when(ruleListener1.beforeEvaluate(rule1, facts)).thenReturn(true);\n rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRuleListener(ruleListener1).build();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n verify(rule1).evaluate(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-122"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2178, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0577, "class": 0.0, "tfidf": 0.3226}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1698, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1154, "class": 0.0, "tfidf": 0.0785}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1687, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1731, "class": 0.0, "tfidf": 0.1456}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "77-80", "dependency_updated": "inserted", "score": 0.1666, "signal_scores": {"nc": 0.0, "lcs_u": 0.6875, "ed": 0.2115, "class": 0.0, "tfidf": 0.0445}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1431, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0577, "class": 0.0, "tfidf": 0.1176}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 10.1852, "method_coverage_gold": 28.0992, "line_coverage_gold": 21.5606, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "713_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenTheRuleFails_thenOnFailureShouldBeExecuted:()V", "class": "RuleListenerTest", "method": "whenTheRuleFails_thenOnFailureShouldBeExecuted", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenTheRuleFails_thenOnFailureShouldBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheRuleFails_thenOnFailureShouldBeExecuted() throws Exception {\n final Exception exception = new Exception(\"fatal error!\");\n doThrow(exception).when(rule1).execute(facts);\n when(rule1.evaluate(facts)).thenReturn(true);\n rules.clear();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n InOrder inOrder = inOrder(rule1, fact1, fact2, ruleListener1, ruleListener2);\n inOrder.verify(ruleListener1).beforeExecute(rule1, facts);\n inOrder.verify(ruleListener2).beforeExecute(rule1, facts);\n inOrder.verify(ruleListener1).onFailure(rule1, exception, facts);\n inOrder.verify(ruleListener2).onFailure(rule1, exception, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-88"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2448, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.087, "class": 0.0, "tfidf": 0.2297}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1891, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1522, "class": 0.0, "tfidf": 0.0407}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.1781, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.087, "class": 0.0, "tfidf": 0.0959}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 12.037, "method_coverage_gold": 30.5785, "line_coverage_gold": 24.6407, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "724_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenTheRuleEvaluatesToFalse_thenTheListenerShouldBeInvoked:()V", "class": "RuleListenerTest", "method": "whenTheRuleEvaluatesToFalse_thenTheListenerShouldBeInvoked", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenTheRuleEvaluatesToFalse_thenTheListenerShouldBeInvoked", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheRuleEvaluatesToFalse_thenTheListenerShouldBeInvoked() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(false);\n rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRuleListener(ruleListener1).build();\n rules.clear();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n verify(ruleListener1).afterEvaluate(rule1, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["141-156"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2711, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.069, "class": 0.0, "tfidf": 0.3537}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "77-80", "dependency_updated": "inserted", "score": 0.2184, "signal_scores": {"nc": 0.0, "lcs_u": 0.9375, "ed": 0.2586, "class": 0.0, "tfidf": 0.044}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/api/Rules.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "63-65", "dependency_updated": "inserted", "score": 0.2117, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.069, "class": 0.0, "tfidf": 0.2514}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.2063, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1897, "class": 0.0, "tfidf": 0.1439}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1994, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1207, "class": 0.0, "tfidf": 0.1066}}, {"dep_id": 4, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1799, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.069, "class": 0.0, "tfidf": 0.1163}}], "coverage_gold": 0.875, "branch_coverage_gold": 10.1852, "method_coverage_gold": 28.9256, "line_coverage_gold": 21.9713, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.clear:()V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "727_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleListenerTest", "test_sign": "org/jeasy/rules/core/RuleListenerTest.whenListenerReturnsFalse_thenTheRuleShouldBeSkippedBeforeBeingEvaluated:()V", "class": "RuleListenerTest", "method": "whenListenerReturnsFalse_thenTheRuleShouldBeSkippedBeforeBeingEvaluated", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleListenerTest#whenListenerReturnsFalse_thenTheRuleShouldBeSkippedBeforeBeingEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenListenerReturnsFalse_thenTheRuleShouldBeSkippedBeforeBeingEvaluated() throws Exception {\n when(ruleListener1.beforeEvaluate(rule1, facts)).thenReturn(false);\n rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRuleListener(ruleListener1).build();\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n verify(rule1, never()).evaluate(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-105"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2606, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0563, "class": 0.0, "tfidf": 0.3183}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.2005, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1549, "class": 0.0, "tfidf": 0.1439}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "77-80", "dependency_updated": "inserted", "score": 0.1839, "signal_scores": {"nc": 0.0, "lcs_u": 0.8125, "ed": 0.1831, "class": 0.0, "tfidf": 0.044}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1778, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0563, "class": 0.0, "tfidf": 0.1163}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1645, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0845, "class": 0.0, "tfidf": 0.0776}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 7.8704, "method_coverage_gold": 27.2727, "line_coverage_gold": 19.9179, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__RulePriorityThresholdTest_34155caf", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulePriorityThresholdTest.java", "test_changes": [{"change_id": "734_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RulePriorityThresholdTest", "test_sign": "org/jeasy/rules/core/RulePriorityThresholdTest.rulesThatExceedPriorityThresholdMustNotBeExecuted:()V", "class": "RulePriorityThresholdTest", "method": "rulesThatExceedPriorityThresholdMustNotBeExecuted", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulePriorityThresholdTest#rulesThatExceedPriorityThresholdMustNotBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void rulesThatExceedPriorityThresholdMustNotBeExecuted() throws Exception {\n rules.register(rule1);\n rules.register(rule2);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-66"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.2414, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0612, "class": 0.0, "tfidf": 0.4204}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1849, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1224, "class": 0.0, "tfidf": 0.1375}}], "coverage_gold": 0.8, "branch_coverage_gold": 9.7222, "method_coverage_gold": 30.5785, "line_coverage_gold": 22.9979, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__RuleProxyTest_91adc217", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RuleProxyTest.java", "test_changes": [{"change_id": "695_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RuleProxyTest", "test_sign": "org/jeasy/rules/core/RuleProxyTest.proxyingHappensEvenWhenRuleIsAnnotatedWithMetaRuleAnnotation:()V", "class": "RuleProxyTest", "method": "proxyingHappensEvenWhenRuleIsAnnotatedWithMetaRuleAnnotation", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RuleProxyTest#proxyingHappensEvenWhenRuleIsAnnotatedWithMetaRuleAnnotation", "old_test_code": null, "new_test_code": "@Test\npublic void proxyingHappensEvenWhenRuleIsAnnotatedWithMetaRuleAnnotation() {\n AnnotatedRuleWithMetaRuleAnnotation rule1 = new AnnotatedRuleWithMetaRuleAnnotation();\n Rule rule = RuleProxy.asRule(rule1);\n assertNotNull(rule.getDescription());\n assertNotNull(rule.getName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-42"], "old_production_code": "", "new_production_code": "@Override\npublic Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {\n String methodName = method.getName();\n if (methodName.equals(\"getName\")) {\n return getRuleName();\n }\n if (methodName.equals(\"getDescription\")) {\n return getRuleDescription();\n }\n if (methodName.equals(\"getPriority\")) {\n return getRulePriority();\n }\n if (methodName.equals(\"evaluate\")) {\n Facts facts = (Facts) args[0];\n Method conditionMethod = getConditionMethod();\n List actualParameters = getActualParameters(conditionMethod, facts);\n return conditionMethod.invoke(target, actualParameters.toArray());\n }\n if (methodName.equals(\"execute\")) {\n for (ActionMethodOrderBean actionMethodBean : getActionMethodBeans()) {\n Facts facts = (Facts) args[0];\n Method actiomMethod = actionMethodBean.getMethod();\n List actualParameters = getActualParameters(actiomMethod, facts);\n actiomMethod.invoke(target, actualParameters.toArray());\n }\n }\n if (methodName.equals(\"equals\")) {\n return target.equals(args[0]);\n }\n if (methodName.equals(\"hashCode\")) {\n return target.hashCode();\n }\n if (methodName.equals(\"toString\")) {\n return target.toString();\n }\n if (methodName.equals(\"compareTo\")) {\n Method compareToMethod = getCompareToMethod();\n if (compareToMethod != null) {\n return compareToMethod.invoke(target, args);\n } else {\n Rule otherRule = (Rule) args[0];\n return compareTo(otherRule);\n }\n }\n return null;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java", "focal_method_sign": "org/jeasy/rules/core/RuleProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RuleProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java", "line_nums_new": "72-117", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15625, "branch_coverage_gold": 22.6852, "method_coverage_gold": 27.2727, "line_coverage_gold": 24.846, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RuleProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RuleProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RuleProxy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__RulesEngineBuilderTest_85e72816", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulesEngineBuilderTest.java", "test_changes": [{"change_id": "711_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RulesEngineBuilderTest", "test_sign": "org/jeasy/rules/core/RulesEngineBuilderTest.testCreationWithCustomParameters:()V", "class": "RulesEngineBuilderTest", "method": "testCreationWithCustomParameters", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineBuilderTest#testCreationWithCustomParameters", "old_test_code": null, "new_test_code": "@Test\npublic void testCreationWithCustomParameters() {\n String name = \"myRulesEngine\";\n int expectedThreshold = 10;\n RulesEngine rulesEngine = RulesEngineBuilder.aNewRulesEngine().named(name).withRuleListener(ruleListener).withRulePriorityThreshold(expectedThreshold).withSilentMode(true).withSkipOnFirstNonTriggeredRule(true).withSkipOnFirstAppliedRule(true).withSkipOnFirstFailedRule(true).build();\n assertThat(rulesEngine).isNotNull();\n RulesEngineParameters parameters = rulesEngine.getParameters();\n assertThat(parameters.getName()).isEqualTo(name);\n assertThat(parameters.getPriorityThreshold()).isEqualTo(expectedThreshold);\n assertThat(parameters.isSilentMode()).isTrue();\n assertThat(parameters.isSkipOnFirstAppliedRule()).isTrue();\n assertThat(parameters.isSkipOnFirstFailedRule()).isTrue();\n assertThat(parameters.isSkipOnFirstNonTriggeredRule()).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-80"], "old_production_code": "", "new_production_code": "public RulesEngineBuilder named(final String name) {\n parameters.setName(name);\n return this;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "focal_method_sign": "org/jeasy/rules/core/RulesEngineBuilder.named:(Ljava/lang/String;)Lorg/jeasy/rules/core/RulesEngineBuilder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.named:(Ljava/lang/String;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "52-55", "dependency_updated": "inserted", "score": 0.4229, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1429, "class": 1.0, "tfidf": 0.2974}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSilentMode:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "82-85", "dependency_updated": "inserted", "score": 0.3643, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.25, "class": 1.0, "tfidf": 0.1448}}, {"dep_id": 4, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "77-80", "dependency_updated": "inserted", "score": 0.3619, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2857, "class": 1.0, "tfidf": 0.0694}}, {"dep_id": 7, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "62-65", "dependency_updated": "inserted", "score": 0.3278, "signal_scores": {"nc": 0.0, "lcs_u": 0.3871, "ed": 0.2258, "class": 1.0, "tfidf": 0.1448}}, {"dep_id": 10, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": 0.3223, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1786, "class": 1.0, "tfidf": 0.1448}}, {"dep_id": 9, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "57-60", "dependency_updated": "inserted", "score": 0.3196, "signal_scores": {"nc": 0.0, "lcs_u": 0.3846, "ed": 0.1786, "class": 1.0, "tfidf": 0.1448}}, {"dep_id": 11, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "72-75", "dependency_updated": "inserted", "score": 0.3164, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1429, "class": 1.0, "tfidf": 0.1448}}, {"dep_id": 8, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.3111, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.1429, "class": 1.0, "tfidf": 0.072}}, {"dep_id": 14, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.2928, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0357, "class": 1.0, "tfidf": 0.2695}}, {"dep_id": 15, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "70-73", "dependency_updated": "inserted", "score": 0.2883, "signal_scores": {"nc": 0.0, "lcs_u": 0.9231, "ed": 0.4286, "class": 0.0, "tfidf": 0.233}}, {"dep_id": 13, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "78-80", "dependency_updated": "inserted", "score": 0.2234, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.2143, "class": 0.0, "tfidf": 0.1568}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "86-88", "dependency_updated": "inserted", "score": 0.1308, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2143, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 12, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "118-120", "dependency_updated": "inserted", "score": 0.1116, "signal_scores": {"nc": 0.0, "lcs_u": 0.3913, "ed": 0.2143, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 5, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSilentMode:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "94-96", "dependency_updated": "inserted", "score": 0.1102, "signal_scores": {"nc": 0.0, "lcs_u": 0.4167, "ed": 0.1786, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "102-104", "dependency_updated": "inserted", "score": 0.1088, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.2143, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 6, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "110-112", "dependency_updated": "inserted", "score": 0.1083, "signal_scores": {"nc": 0.0, "lcs_u": 0.3793, "ed": 0.2069, "class": 0.0, "tfidf": 0.031}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.7778, "method_coverage_gold": 23.1405, "line_coverage_gold": 13.347, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "org/jeasy/rules/core/RulesEngineParameters.isSilentMode:()Z", "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.named:(Ljava/lang/String;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.withSilentMode:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSilentMode:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.named:(Ljava/lang/String;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSilentMode:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "723_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_RulesEngineBuilderTest", "test_sign": "org/jeasy/rules/core/RulesEngineBuilderTest.testCreationWithDefaultParameters:()V", "class": "RulesEngineBuilderTest", "method": "testCreationWithDefaultParameters", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineBuilderTest#testCreationWithDefaultParameters", "old_test_code": null, "new_test_code": "@Test\npublic void testCreationWithDefaultParameters() {\n RulesEngine rulesEngine = RulesEngineBuilder.aNewRulesEngine().build();\n assertThat(rulesEngine).isNotNull();\n RulesEngineParameters parameters = rulesEngine.getParameters();\n assertThat(parameters.getName()).isEqualTo(RulesEngine.DEFAULT_NAME);\n assertThat(parameters.getPriorityThreshold()).isEqualTo(RulesEngine.DEFAULT_RULE_PRIORITY_THRESHOLD);\n assertThat(parameters.isSkipOnFirstAppliedRule()).isFalse();\n assertThat(parameters.isSkipOnFirstFailedRule()).isFalse();\n assertThat(parameters.isSkipOnFirstNonTriggeredRule()).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-54"], "old_production_code": "", "new_production_code": "public RulesEngine build() {\n return new DefaultRulesEngine(parameters, ruleListeners);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "focal_method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "focal_all_deps_scored": [{"dep_id": 6, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.3528, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.069, "class": 1.0, "tfidf": 0.3509}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.324, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.2069, "class": 1.0, "tfidf": 0.0822}}, {"dep_id": 7, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "70-73", "dependency_updated": "inserted", "score": 0.2865, "signal_scores": {"nc": 0.0, "lcs_u": 0.9231, "ed": 0.4138, "class": 0.0, "tfidf": 0.2357}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "78-80", "dependency_updated": "inserted", "score": 0.1918, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.2069, "class": 0.0, "tfidf": 0.0275}}, {"dep_id": 4, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "86-88", "dependency_updated": "inserted", "score": 0.1306, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2069, "class": 0.0, "tfidf": 0.0354}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "118-120", "dependency_updated": "inserted", "score": 0.1305, "signal_scores": {"nc": 0.0, "lcs_u": 0.4348, "ed": 0.2759, "class": 0.0, "tfidf": 0.0354}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "102-104", "dependency_updated": "inserted", "score": 0.1086, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.2069, "class": 0.0, "tfidf": 0.0354}}, {"dep_id": 5, "method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "line_nums_new": "110-112", "dependency_updated": "inserted", "score": 0.0919, "signal_scores": {"nc": 0.0, "lcs_u": 0.3448, "ed": 0.1379, "class": 0.0, "tfidf": 0.0354}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.463, "method_coverage_gold": 10.7438, "line_coverage_gold": 5.3388, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__SkipOnFirstAppliedRuleTest_0f5a2acb", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/SkipOnFirstAppliedRuleTest.java", "test_changes": [{"change_id": "687_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_SkipOnFirstAppliedRuleTest", "test_sign": "org/jeasy/rules/core/SkipOnFirstAppliedRuleTest.testSkipOnFirstAppliedRuleWithException:()V", "class": "SkipOnFirstAppliedRuleTest", "method": "testSkipOnFirstAppliedRuleWithException", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.SkipOnFirstAppliedRuleTest#testSkipOnFirstAppliedRuleWithException", "old_test_code": null, "new_test_code": "@Test\npublic void testSkipOnFirstAppliedRuleWithException() throws Exception {\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-72"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 7.4074, "method_coverage_gold": 25.6198, "line_coverage_gold": 18.8912, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "704_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_SkipOnFirstAppliedRuleTest", "test_sign": "org/jeasy/rules/core/SkipOnFirstAppliedRuleTest.testSkipOnFirstAppliedRule:()V", "class": "SkipOnFirstAppliedRuleTest", "method": "testSkipOnFirstAppliedRule", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.SkipOnFirstAppliedRuleTest#testSkipOnFirstAppliedRule", "old_test_code": null, "new_test_code": "@Test\npublic void testSkipOnFirstAppliedRule() throws Exception {\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-60"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 7.4074, "method_coverage_gold": 25.6198, "line_coverage_gold": 18.8912, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__SkipOnFirstFailedRuleTest_9818e3c8", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/SkipOnFirstFailedRuleTest.java", "test_changes": [{"change_id": "714_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_SkipOnFirstFailedRuleTest", "test_sign": "org/jeasy/rules/core/SkipOnFirstFailedRuleTest.testSkipOnFirstFailedRule:()V", "class": "SkipOnFirstFailedRuleTest", "method": "testSkipOnFirstFailedRule", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.SkipOnFirstFailedRuleTest#testSkipOnFirstFailedRule", "old_test_code": null, "new_test_code": "@Test\npublic void testSkipOnFirstFailedRule() throws Exception {\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-58"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 6.9444, "method_coverage_gold": 25.6198, "line_coverage_gold": 18.8912, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__SkipOnFirstNonTriggeredRuleTest_17d2d08c", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/SkipOnFirstNonTriggeredRuleTest.java", "test_changes": [{"change_id": "686_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_SkipOnFirstNonTriggeredRuleTest", "test_sign": "org/jeasy/rules/core/SkipOnFirstNonTriggeredRuleTest.testSkipOnFirstNonTriggeredRule:()V", "class": "SkipOnFirstNonTriggeredRuleTest", "method": "testSkipOnFirstNonTriggeredRule", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.SkipOnFirstNonTriggeredRuleTest#testSkipOnFirstNonTriggeredRule", "old_test_code": null, "new_test_code": "@Test\npublic void testSkipOnFirstNonTriggeredRule() throws Exception {\n rulesEngine.fire(rules, facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-58"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 6.0185, "method_coverage_gold": 23.9669, "line_coverage_gold": 17.2485, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4a4a446_c18f7eb__UtilsTest_d4d1aae5", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev2": "c18f7eb1bbdc59540b03c248e786e1dede9a42be", "rev1_date": "2017-05-18T21:13:55Z", "rev2_date": "2017-05-18T22:30:25Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4a4a4469c54485ecb7c18c8fa43e684221ca974d...c18f7eb1bbdc59540b03c248e786e1dede9a42be", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/UtilsTest.java", "test_changes": [{"change_id": "698_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_UtilsTest", "test_sign": "org/jeasy/rules/core/UtilsTest.isAnnotationPresentWithClassWhereAnnotationIsPresent:()V", "class": "UtilsTest", "method": "isAnnotationPresentWithClassWhereAnnotationIsPresent", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.UtilsTest#isAnnotationPresentWithClassWhereAnnotationIsPresent", "old_test_code": null, "new_test_code": "@Test\npublic void isAnnotationPresentWithClassWhereAnnotationIsPresent() {\n assertTrue(Utils.isAnnotationPresent(Foo.class, AnnotationIsPresent.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-58"], "old_production_code": "", "new_production_code": "static boolean isAnnotationPresent(final Class targetAnnotation, final Class annotatedType) {\n return findAnnotation(targetAnnotation, annotatedType) != null;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "focal_method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "line_nums_new": "105-107", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.8519, "method_coverage_gold": 2.4793, "line_coverage_gold": 2.0534, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "706_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_UtilsTest", "test_sign": "org/jeasy/rules/core/UtilsTest.findAnnotationWithClassWhereAnnotationIsNotPresent:()V", "class": "UtilsTest", "method": "findAnnotationWithClassWhereAnnotationIsNotPresent", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.UtilsTest#findAnnotationWithClassWhereAnnotationIsNotPresent", "old_test_code": null, "new_test_code": "@Test\npublic void findAnnotationWithClassWhereAnnotationIsNotPresent() {\n Annotation foo = Utils.findAnnotation(Foo.class, Object.class);\n assertNull(foo);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-53"], "old_production_code": "", "new_production_code": "static A findAnnotation(final Class targetAnnotation, final Class annotatedType) {\n A foundAnnotation = annotatedType.getAnnotation(targetAnnotation);\n if (foundAnnotation == null) {\n for (Annotation annotation : annotatedType.getAnnotations()) {\n Class annotationType = annotation.annotationType();\n if (annotationType.isAnnotationPresent(targetAnnotation)) {\n foundAnnotation = annotationType.getAnnotation(targetAnnotation);\n break;\n }\n }\n }\n return foundAnnotation;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "focal_method_sign": "org/jeasy/rules/core/Utils.findAnnotation:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/annotation/Annotation", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/Utils.findAnnotation:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/annotation/Annotation", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "line_nums_new": "90-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.8519, "method_coverage_gold": 1.6529, "line_coverage_gold": 2.0534, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/Utils.findAnnotation:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/annotation/Annotation"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/Utils.findAnnotation:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/annotation/Annotation", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "709_j-easy_easy-rules-easy-rules-4.1.0_4a4a446_c18f7eb_UtilsTest", "test_sign": "org/jeasy/rules/core/UtilsTest.isAnnotationPresentWithClassWhereAnnotationIsPresentViaMetaAnnotation:()V", "class": "UtilsTest", "method": "isAnnotationPresentWithClassWhereAnnotationIsPresentViaMetaAnnotation", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.UtilsTest#isAnnotationPresentWithClassWhereAnnotationIsPresentViaMetaAnnotation", "old_test_code": null, "new_test_code": "@Test\npublic void isAnnotationPresentWithClassWhereAnnotationIsPresentViaMetaAnnotation() {\n assertTrue(Utils.isAnnotationPresent(Foo.class, AnnotationIsPresentViaMetaAnnotation.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-63"], "old_production_code": "", "new_production_code": "static boolean isAnnotationPresent(final Class targetAnnotation, final Class annotatedType) {\n return findAnnotation(targetAnnotation, annotatedType) != null;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "focal_method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "line_nums_new": "105-107", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.7778, "method_coverage_gold": 2.4793, "line_coverage_gold": 3.0801, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/Utils.isAnnotationPresent:(Ljava/lang/Class;Ljava/lang/Class;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4acdeef_8c184a5__RulesEngineBuilderTest_85e72816", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4acdeeffbd626c7d4a82fed62328f9b8e3108755", "rev2": "8c184a5fa9b6907eab4419bed67833c50cbf0a99", "rev1_date": "2017-12-17T23:51:12Z", "rev2_date": "2017-12-18T11:17:26Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4acdeeffbd626c7d4a82fed62328f9b8e3108755...8c184a5fa9b6907eab4419bed67833c50cbf0a99", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulesEngineBuilderTest.java", "test_changes": [{"change_id": "769_j-easy_easy-rules-easy-rules-4.1.0_4acdeef_8c184a5_RulesEngineBuilderTest", "test_sign": "org/jeasy/rules/core/RulesEngineBuilderTest.testCreationWithCustomParameters:()V", "class": "RulesEngineBuilderTest", "method": "testCreationWithCustomParameters", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineBuilderTest#testCreationWithCustomParameters", "old_test_code": null, "new_test_code": "@Test\npublic void testCreationWithCustomParameters() {\n String name = \"myRulesEngine\";\n int expectedThreshold = 10;\n RulesEngine rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRuleListener(ruleListener).withRulePriorityThreshold(expectedThreshold).withSkipOnFirstNonTriggeredRule(true).withSkipOnFirstAppliedRule(true).withSkipOnFirstFailedRule(true).build();\n assertThat(rulesEngine).isNotNull();\n RulesEngineParameters parameters = rulesEngine.getParameters();\n assertThat(parameters.getPriorityThreshold()).isEqualTo(expectedThreshold);\n assertThat(parameters.isSkipOnFirstAppliedRule()).isTrue();\n assertThat(parameters.isSkipOnFirstFailedRule()).isTrue();\n assertThat(parameters.isSkipOnFirstNonTriggeredRule()).isTrue();\n assertThat(rulesEngine.getRuleListeners()).hasSize(2).contains(ruleListener);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-80"], "old_production_code": "", "new_production_code": "public RulesEngineBuilder withRuleListener(final RuleListener ruleListener) {\n this.ruleListeners.add(ruleListener);\n return this;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "focal_method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "113-116", "dependency_updated": "inserted", "score": 0.376, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2857, "class": 1.0, "tfidf": 0.1291}}, {"dep_id": 5, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "80-83", "dependency_updated": "inserted", "score": 0.3236, "signal_scores": {"nc": 0.0, "lcs_u": 0.3871, "ed": 0.2258, "class": 1.0, "tfidf": 0.1269}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.3181, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1786, "class": 1.0, "tfidf": 0.1269}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "69-72", "dependency_updated": "inserted", "score": 0.3154, "signal_scores": {"nc": 0.0, "lcs_u": 0.3846, "ed": 0.1786, "class": 1.0, "tfidf": 0.1269}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3137, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.1429, "class": 1.0, "tfidf": 0.0831}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "102-105", "dependency_updated": "inserted", "score": 0.3122, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1429, "class": 1.0, "tfidf": 0.1269}}, {"dep_id": 6, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "143-148", "dependency_updated": "inserted", "score": 0.249, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0357, "class": 1.0, "tfidf": 0.0832}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 15.0838, "line_coverage_gold": 9.3548, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I", "org/jeasy/rules/core/DefaultRulesEngine.getRuleListeners:()Ljava/util/List", "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstAppliedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstFailedRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulePriorityThreshold:(I)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRuleListener:(Lorg/jeasy/rules/api/RuleListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withSkipOnFirstNonTriggeredRule:(Z)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "770_j-easy_easy-rules-easy-rules-4.1.0_4acdeef_8c184a5_RulesEngineBuilderTest", "test_sign": "org/jeasy/rules/core/RulesEngineBuilderTest.testCreationWithDefaultParameters:()V", "class": "RulesEngineBuilderTest", "method": "testCreationWithDefaultParameters", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineBuilderTest#testCreationWithDefaultParameters", "old_test_code": null, "new_test_code": "@Test\npublic void testCreationWithDefaultParameters() {\n RulesEngine rulesEngine = RulesEngineBuilder.aNewRulesEngine().build();\n assertThat(rulesEngine).isNotNull();\n RulesEngineParameters parameters = rulesEngine.getParameters();\n assertThat(parameters.getPriorityThreshold()).isEqualTo(RulesEngineParameters.DEFAULT_RULE_PRIORITY_THRESHOLD);\n assertThat(parameters.isSkipOnFirstAppliedRule()).isFalse();\n assertThat(parameters.isSkipOnFirstFailedRule()).isFalse();\n assertThat(parameters.isSkipOnFirstNonTriggeredRule()).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-55"], "old_production_code": "", "new_production_code": "public static RulesEngineBuilder aNewRulesEngine() {\n return new RulesEngineBuilder();\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "focal_method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3282, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.2069, "class": 1.0, "tfidf": 0.1001}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "143-148", "dependency_updated": "inserted", "score": 0.2921, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.069, "class": 1.0, "tfidf": 0.0931}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 9.4972, "line_coverage_gold": 6.2903, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstNonTriggeredRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstAppliedRule:()Z", "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/DefaultRulesEngine.getParameters:()Lorg/jeasy/rules/core/RulesEngineParameters", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "org/jeasy/rules/core/RulesEngineParameters.isSkipOnFirstFailedRule:()Z", "org/jeasy/rules/core/RulesEngineParameters.getPriorityThreshold:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4ff3f90_0a010d6__MVELActionTest_cff1d1c6", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4ff3f90705dc27480fd2c3f9c6d0304eb0af31e6", "rev2": "0a010d6029505321fe581451945bb0a06e05cc5e", "rev1_date": "2017-12-13T22:30:11Z", "rev2_date": "2017-12-14T00:09:49Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4ff3f90705dc27480fd2c3f9c6d0304eb0af31e6...0a010d6029505321fe581451945bb0a06e05cc5e", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELActionTest.java", "test_changes": [{"change_id": "776_j-easy_easy-rules-easy-rules-4.1.0_4ff3f90_0a010d6_MVELActionTest", "test_sign": "org/jeasy/rules/mvel/MVELActionTest.testMVELFunctionExecution:()V", "class": "MVELActionTest", "method": "testMVELFunctionExecution", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELActionTest#testMVELFunctionExecution", "old_test_code": null, "new_test_code": "@Test\npublic void testMVELFunctionExecution() throws Exception {\n Action printAction = new MVELAction(\"def hello() { System.out.println(\\\"Hello from MVEL!\\\"); }; hello();\");\n Facts facts = new Facts();\n printAction.execute(facts);\n assertThat(systemOutRule.getLog()).contains(\"Hello from MVEL!\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-42"], "old_production_code": "", "new_production_code": "@Override\npublic void execute(Facts facts) {\n try {\n MVEL.eval(expression, facts.asMap());\n } catch (Exception e) {\n LOGGER.debug(\"Unable to evaluate expression: '\" + expression + \"' on facts: \" + facts, e);\n }\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELAction.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELAction.execute:(Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELAction.execute:(Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELAction.java", "line_nums_new": "29-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.0, "method_coverage_gold": 50.0, "line_coverage_gold": 41.1765, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELAction.execute:(Lorg/jeasy/rules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELAction.execute:(Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELAction.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__4ff3f90_0a010d6__MVELConditionTest_f98fed7e", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "4ff3f90705dc27480fd2c3f9c6d0304eb0af31e6", "rev2": "0a010d6029505321fe581451945bb0a06e05cc5e", "rev1_date": "2017-12-13T22:30:11Z", "rev2_date": "2017-12-14T00:09:49Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/4ff3f90705dc27480fd2c3f9c6d0304eb0af31e6...0a010d6029505321fe581451945bb0a06e05cc5e", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELConditionTest.java", "test_changes": [{"change_id": "775_j-easy_easy-rules-easy-rules-4.1.0_4ff3f90_0a010d6_MVELConditionTest", "test_sign": "org/jeasy/rules/mvel/MVELConditionTest.whenDeclaredFactIsNotPresent_thenShouldReturnFalse:()V", "class": "MVELConditionTest", "method": "whenDeclaredFactIsNotPresent_thenShouldReturnFalse", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELConditionTest#whenDeclaredFactIsNotPresent_thenShouldReturnFalse", "old_test_code": null, "new_test_code": "@Test\npublic void whenDeclaredFactIsNotPresent_thenShouldReturnFalse() throws Exception {\n Condition isHot = new MVELCondition(\"temperature > 30\");\n Facts facts = new Facts();\n boolean evaluationResult = isHot.evaluate(facts);\n assertThat(evaluationResult).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-36"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n try {\n return MVEL.evalToBoolean(expression, facts.asMap());\n } catch (Exception e) {\n LOGGER.debug(\"Unable to evaluate expression: '\" + expression + \"' on facts: \" + facts, e);\n return false;\n }\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "line_nums_new": "29-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0, "method_coverage_gold": 50.0, "line_coverage_gold": 41.1765, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "777_j-easy_easy-rules-easy-rules-4.1.0_4ff3f90_0a010d6_MVELConditionTest", "test_sign": "org/jeasy/rules/mvel/MVELConditionTest.testMVELExpressionEvaluation:()V", "class": "MVELConditionTest", "method": "testMVELExpressionEvaluation", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELConditionTest#testMVELExpressionEvaluation", "old_test_code": null, "new_test_code": "@Test\npublic void testMVELExpressionEvaluation() throws Exception {\n Condition isAdult = new MVELCondition(\"person.age > 18\");\n Facts facts = new Facts();\n facts.put(\"person\", new Person(\"foo\", 20));\n boolean evaluationResult = isAdult.evaluate(facts);\n assertThat(evaluationResult).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-23"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n try {\n return MVEL.evalToBoolean(expression, facts.asMap());\n } catch (Exception e) {\n LOGGER.debug(\"Unable to evaluate expression: '\" + expression + \"' on facts: \" + facts, e);\n return false;\n }\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "line_nums_new": "29-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.0, "method_coverage_gold": 50.0, "line_coverage_gold": 29.4118, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELCondition.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELCondition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__5d5b533_8189a5c__FactsTest_840d99c4", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "5d5b5333f9d8d4305b28578490e13b3c56036356", "rev2": "8189a5c1226d4fff645f79d3326cfc576204a9f4", "rev1_date": "2020-04-05T10:11:36Z", "rev2_date": "2020-04-05T20:25:23Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/5d5b5333f9d8d4305b28578490e13b3c56036356...8189a5c1226d4fff645f79d3326cfc576204a9f4", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/api/FactsTest.java", "test_changes": [{"change_id": "645_j-easy_easy-rules-easy-rules-4.1.0_5d5b533_8189a5c_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testClear:()V", "class": "FactsTest", "method": "testClear", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testClear", "old_test_code": null, "new_test_code": "@Test\npublic void testClear() {\n Facts facts = new Facts();\n facts.put(\"foo\", \"bar\");\n facts.clear();\n assertThat(facts.asMap()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-92"], "old_production_code": "", "new_production_code": "public void clear() {\n facts.clear();\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.clear:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.clear:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "99-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.7027, "line_coverage_gold": 1.2007, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4a64f4aaa55139f37852a35941f22373872b46da"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.clear:()V", "org/jeasy/rules/api/Facts.asMap:()Ljava/util/Map", "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.clear:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__65f65e3_b3821ef__RulesTest_d0049adc", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "65f65e310d5a9d22e5de95cbf1972843449ee753", "rev2": "b3821ef27194ac553ef5146ca81759830f3e210f", "rev1_date": "2017-05-21T20:25:09Z", "rev2_date": "2017-05-21T21:13:24Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/65f65e310d5a9d22e5de95cbf1972843449ee753...b3821ef27194ac553ef5146ca81759830f3e210f", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/api/RulesTest.java", "test_changes": [{"change_id": "500_j-easy_easy-rules-easy-rules-4.1.0_65f65e3_b3821ef_RulesTest", "test_sign": "org/jeasy/rules/api/RulesTest.unregisterByName:()V", "class": "RulesTest", "method": "unregisterByName", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.RulesTest#unregisterByName", "old_test_code": null, "new_test_code": "@Test\npublic void unregisterByName() throws Exception {\n Rule r1 = new BasicRule(\"rule1\");\n Rule r2 = new BasicRule(\"rule2\");\n Set ruleSet = new HashSet<>();\n ruleSet.add(r1);\n ruleSet.add(r2);\n rules = new Rules(ruleSet);\n rules.unregister(\"rule2\");\n assertThat(rules).hasSize(1).containsExactly(r1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-81"], "old_production_code": "", "new_production_code": "public void unregister(final String ruleName) {\n Rule rule = findRuleByName(ruleName);\n if (rule != null) {\n unregister(rule);\n }\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "focal_method_sign": "org/jeasy/rules/api/Rules.unregister:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.unregister:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "95-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.2735, "method_coverage_gold": 12.1212, "line_coverage_gold": 9.2843, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.unregister:(Ljava/lang/String;)V", "org/jeasy/rules/api/Rules.iterator:()Ljava/util/Iterator", "org/jeasy/rules/core/BasicRule.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.unregister:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__686a385_f066f86__MVELRuleDefinitionReaderTest_68431084", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "686a3857cb8513e73b39b2cbbb99d275df5fa41f", "rev2": "f066f86c1ae580cdfdba1de180ccd0b9d43a8fe7", "rev1_date": "2018-03-25T19:42:11Z", "rev2_date": "2018-03-25T19:51:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/686a3857cb8513e73b39b2cbbb99d275df5fa41f...f066f86c1ae580cdfdba1de180ccd0b9d43a8fe7", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.java", "test_changes": [{"change_id": "646_j-easy_easy-rules-easy-rules-4.1.0_686a385_f066f86_MVELRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.testRuleDefinitionReadingFromString:()V", "class": "MVELRuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromString", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleDefinitionReaderTest#testRuleDefinitionReadingFromString", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromString() throws Exception {\n String adultRuleDescriptor = new String(Files.readAllBytes(Paths.get(\"src/test/resources/adult-rule.yml\")));\n MVELRuleDefinition adultRuleDefinition = ruleDefinitionReader.read(adultRuleDescriptor);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater then 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-71"], "old_production_code": "", "new_production_code": "MVELRuleDefinition read(String descriptor) throws NullPointerException {\n Object object = yaml.load(descriptor);\n Map map = (Map) object;\n return createRuleDefinitionFrom(map);\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/lang/String;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/lang/String;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "line_nums_new": "45-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 42.4242, "line_coverage_gold": 36.4706, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/lang/String;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "org/jeasy/rules/mvel/MVELRuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/mvel/MVELRuleDefinition.getPriority:()I", "org/jeasy/rules/mvel/MVELRuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getCondition:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/lang/String;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__6e4ee8c_1ebc0b4__JsonRuleDefinitionReaderTest_2d919555", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "6e4ee8c0945139944193c5b83e71682907431135", "rev2": "1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "rev1_date": "2020-05-10T10:16:00Z", "rev2_date": "2020-05-10T10:16:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/6e4ee8c0945139944193c5b83e71682907431135...1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.java", "test_changes": [{"change_id": "737_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testRuleDefinitionReadingFromFile:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromFile", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testRuleDefinitionReadingFromFile", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromFile() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-62"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 27.6699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "738_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testRuleDefinitionReadingFromString:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromString", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testRuleDefinitionReadingFromString", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromString() throws Exception {\n String adultRuleDescriptor = new String(Files.readAllBytes(Paths.get(\"src/test/resources/adult-rule.json\")));\n List ruleDefinitions = ruleDefinitionReader.read(new StringReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-81"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 27.6699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "741_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testEmptyRulesDefinitionReading:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testEmptyRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testEmptyRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules-empty.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-163"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.381, "method_coverage_gold": 9.0909, "line_coverage_gold": 6.7961, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "743_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoCondition:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoCondition", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoCondition", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoCondition() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-condition.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-112"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 9.5238, "method_coverage_gold": 18.1818, "line_coverage_gold": 17.9612, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "744_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testRuleDefinitionReading_withCompositeAndBasicRules:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withCompositeAndBasicRules", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testRuleDefinitionReading_withCompositeAndBasicRules", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withCompositeAndBasicRules() throws Exception {\n File compositeRuleDescriptor = new File(\"src/test/resources/composite-rules.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(compositeRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"Movie id rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"description\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCompositeRuleType()).isEqualTo(\"UnitRuleGroup\");\n assertThat(ruleDefinition.getComposingRules()).isNotEmpty();\n List subrules = ruleDefinition.getComposingRules();\n assertThat(subrules).hasSize(2);\n RuleDefinition subrule = subrules.get(0);\n assertThat(subrule.getName()).isEqualTo(\"Time is evening\");\n assertThat(subrule.getDescription()).isEqualTo(\"If it's later than 7pm\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n subrule = subrules.get(1);\n assertThat(subrule.getName()).isEqualTo(\"Movie is rated R\");\n assertThat(subrule.getDescription()).isEqualTo(\"If the movie is rated R\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getComposingRules()).isEmpty();\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == True\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-205"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 32.1429, "method_coverage_gold": 38.1818, "line_coverage_gold": 33.9806, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCompositeRuleType:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getComposingRules:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "745_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testRulesDefinitionReading:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(2);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == true\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["126-151"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 27.6699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "749_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoActions:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoActions", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoActions", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoActions() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-actions.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-124"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 10.7143, "method_coverage_gold": 20.0, "line_coverage_gold": 20.3883, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "750_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_JsonRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/JsonRuleDefinitionReaderTest.testRuleDefinitionReading_withDefaultValues:()V", "class": "JsonRuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withDefaultValues", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.JsonRuleDefinitionReaderTest#testRuleDefinitionReading_withDefaultValues", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withDefaultValues() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-with-default-values.json\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(Rule.DEFAULT_NAME);\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(Rule.DEFAULT_DESCRIPTION);\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(Rule.DEFAULT_PRIORITY);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-100"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 27.6699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__6e4ee8c_1ebc0b4__YamlRuleDefinitionReaderTest_2d919555", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "6e4ee8c0945139944193c5b83e71682907431135", "rev2": "1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "rev1_date": "2020-05-10T10:16:00Z", "rev2_date": "2020-05-10T10:16:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/6e4ee8c0945139944193c5b83e71682907431135...1ebc0b40d5e2d62488862e0745d02d0dfd259e40", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.java", "test_changes": [{"change_id": "736_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testRuleDefinitionReadingFromString:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromString", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testRuleDefinitionReadingFromString", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromString() throws Exception {\n String adultRuleDescriptor = new String(Files.readAllBytes(Paths.get(\"src/test/resources/adult-rule.yml\")));\n List ruleDefinitions = ruleDefinitionReader.read(new StringReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-81"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 28.1553, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "739_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoActions:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoActions", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoActions", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoActions() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-actions.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-124"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 10.7143, "method_coverage_gold": 20.0, "line_coverage_gold": 20.8738, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "740_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testEmptyRulesDefinitionReading:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testEmptyRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testEmptyRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules-empty.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-163"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.381, "method_coverage_gold": 9.0909, "line_coverage_gold": 6.7961, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "742_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoCondition:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoCondition", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoCondition", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoCondition() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-condition.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-112"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 9.5238, "method_coverage_gold": 18.1818, "line_coverage_gold": 18.4466, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "746_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testRuleDefinitionReading_withDefaultValues:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withDefaultValues", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testRuleDefinitionReading_withDefaultValues", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withDefaultValues() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-with-default-values.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(Rule.DEFAULT_NAME);\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(Rule.DEFAULT_DESCRIPTION);\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(Rule.DEFAULT_PRIORITY);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-100"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 28.1553, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "747_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testRuleDefinitionReading_withCompositeAndBasicRules:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withCompositeAndBasicRules", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testRuleDefinitionReading_withCompositeAndBasicRules", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withCompositeAndBasicRules() throws Exception {\n File compositeRuleDescriptor = new File(\"src/test/resources/composite-rules.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(compositeRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"Movie id rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"description\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCompositeRuleType()).isEqualTo(\"UnitRuleGroup\");\n assertThat(ruleDefinition.getComposingRules()).isNotEmpty();\n List subrules = ruleDefinition.getComposingRules();\n assertThat(subrules).hasSize(2);\n RuleDefinition subrule = subrules.get(0);\n assertThat(subrule.getName()).isEqualTo(\"Time is evening\");\n assertThat(subrule.getDescription()).isEqualTo(\"If it's later than 7pm\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n subrule = subrules.get(1);\n assertThat(subrule.getName()).isEqualTo(\"Movie is rated R\");\n assertThat(subrule.getDescription()).isEqualTo(\"If the movie is rated R\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getComposingRules()).isEmpty();\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == True\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["165-205"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 32.1429, "method_coverage_gold": 38.1818, "line_coverage_gold": 34.466, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCompositeRuleType:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getComposingRules:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "748_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testRuleDefinitionReadingFromFile:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromFile", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testRuleDefinitionReadingFromFile", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromFile() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-62"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 28.1553, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "751_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_1ebc0b4_YamlRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/YamlRuleDefinitionReaderTest.testRulesDefinitionReading:()V", "class": "YamlRuleDefinitionReaderTest", "method": "testRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.YamlRuleDefinitionReaderTest#testRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules.yml\");\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(2);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == true\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["126-151"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.6667, "method_coverage_gold": 30.9091, "line_coverage_gold": 28.1553, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__6e4ee8c_6c07826__RuleDefinitionReaderTest_2d919555", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "6e4ee8c0945139944193c5b83e71682907431135", "rev2": "6c078264ac2ac74cb32fd27d44c89619c7f6c220", "rev1_date": "2020-05-10T10:16:00Z", "rev2_date": "2020-05-10T17:20:49Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/6e4ee8c0945139944193c5b83e71682907431135...6c078264ac2ac74cb32fd27d44c89619c7f6c220", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/reader/RuleDefinitionReaderTest.java", "test_changes": [{"change_id": "821_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoActions:()V", "class": "RuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoActions", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoActions", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoActions() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-actions.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["132-142"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 13.0952, "method_coverage_gold": 25.4545, "line_coverage_gold": 25.7282, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "822_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testInvalidRuleDefinitionReading_whenNoCondition:()V", "class": "RuleDefinitionReaderTest", "method": "testInvalidRuleDefinitionReading_whenNoCondition", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testInvalidRuleDefinitionReading_whenNoCondition", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void testInvalidRuleDefinitionReading_whenNoCondition() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-without-condition.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["120-130"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 11.9048, "method_coverage_gold": 23.6364, "line_coverage_gold": 23.301, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "823_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testRuleDefinitionReading_withDefaultValues:()V", "class": "RuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withDefaultValues", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testRuleDefinitionReading_withDefaultValues", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withDefaultValues() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule-with-default-values.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(Rule.DEFAULT_NAME);\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(Rule.DEFAULT_DESCRIPTION);\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(Rule.DEFAULT_PRIORITY);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-118"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0476, "method_coverage_gold": 36.3636, "line_coverage_gold": 33.0097, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "824_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testRuleDefinitionReadingFromString:()V", "class": "RuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromString", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testRuleDefinitionReadingFromString", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromString() throws Exception {\n Path ruleDescriptor = Paths.get(\"src/test/resources/adult-rule.\" + fileExtension);\n String adultRuleDescriptor = new String(Files.readAllBytes(ruleDescriptor));\n List ruleDefinitions = ruleDefinitionReader.read(new StringReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-99"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0476, "method_coverage_gold": 36.3636, "line_coverage_gold": 33.0097, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "825_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testRulesDefinitionReading:()V", "class": "RuleDefinitionReaderTest", "method": "testRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(2);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == true\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["144-169"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0476, "method_coverage_gold": 36.3636, "line_coverage_gold": 33.0097, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "826_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testRuleDefinitionReading_withCompositeAndBasicRules:()V", "class": "RuleDefinitionReaderTest", "method": "testRuleDefinitionReading_withCompositeAndBasicRules", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testRuleDefinitionReading_withCompositeAndBasicRules", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading_withCompositeAndBasicRules() throws Exception {\n File compositeRuleDescriptor = new File(\"src/test/resources/composite-rules.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(compositeRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n RuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"Movie id rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"description\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCompositeRuleType()).isEqualTo(\"UnitRuleGroup\");\n assertThat(ruleDefinition.getComposingRules()).isNotEmpty();\n List subrules = ruleDefinition.getComposingRules();\n assertThat(subrules).hasSize(2);\n RuleDefinition subrule = subrules.get(0);\n assertThat(subrule.getName()).isEqualTo(\"Time is evening\");\n assertThat(subrule.getDescription()).isEqualTo(\"If it's later than 7pm\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n subrule = subrules.get(1);\n assertThat(subrule.getName()).isEqualTo(\"Movie is rated R\");\n assertThat(subrule.getDescription()).isEqualTo(\"If the movie is rated R\");\n assertThat(subrule.getPriority()).isEqualTo(1);\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getComposingRules()).isEmpty();\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == True\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["183-223"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 34.5238, "method_coverage_gold": 43.6364, "line_coverage_gold": 39.3204, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getComposingRules:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getCompositeRuleType:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "827_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testEmptyRulesDefinitionReading:()V", "class": "RuleDefinitionReaderTest", "method": "testEmptyRulesDefinitionReading", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testEmptyRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules-empty.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["171-181"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.5714, "method_coverage_gold": 14.5455, "line_coverage_gold": 11.165, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "828_j-easy_easy-rules-easy-rules-4.1.0_6e4ee8c_6c07826_RuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/support/reader/RuleDefinitionReaderTest.testRuleDefinitionReadingFromFile:()V", "class": "RuleDefinitionReaderTest", "method": "testRuleDefinitionReadingFromFile", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.reader.RuleDefinitionReaderTest#testRuleDefinitionReadingFromFile", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReadingFromFile() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule.\" + fileExtension);\n List ruleDefinitions = ruleDefinitionReader.read(new FileReader(adultRuleDescriptor));\n assertThat(ruleDefinitions).hasSize(1);\n RuleDefinition adultRuleDefinition = ruleDefinitions.get(0);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater than 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-79"], "old_production_code": "", "new_production_code": "public List read(Reader reader) throws Exception {\n List ruleDefinitions = new ArrayList<>();\n Iterable> rules = loadRules(reader);\n for (Map rule : rules) {\n ruleDefinitions.add(createRuleDefinition(rule));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "line_nums_new": "41-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.0476, "method_coverage_gold": 36.3636, "line_coverage_gold": 33.0097, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["90ecf58e68ae2451546fa98c8992953877018a58", "c8b541b32c20ac6c8585653410f31382b6b99da9", "0575a9929ce9a5aa8e88cec60799d8cf4f1a1611", "1ebc0b40d5e2d62488862e0745d02d0dfd259e40"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/RuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/support/RuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/support/RuleDefinition.getPriority:()I", "org/jeasy/rules/support/RuleDefinition.getCondition:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.read:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/reader/AbstractRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__72d7bff_a8d5177__ConditionalRuleGroupTest_d77ea40a", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "72d7bff9402cabf43b19900fbfd463cc693799e8", "rev2": "a8d5177570e70dcfa48febe720d8f9f35e3221e2", "rev1_date": "2018-03-27T22:48:21Z", "rev2_date": "2018-03-27T23:19:32Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/72d7bff9402cabf43b19900fbfd463cc693799e8...a8d5177570e70dcfa48febe720d8f9f35e3221e2", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/ConditionalRuleGroupTest.java", "test_changes": [{"change_id": "771_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_a8d5177_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/ConditionalRuleGroupTest.twoRulesWithSameHighestPriorityIsNotAllowed:()V", "class": "ConditionalRuleGroupTest", "method": "twoRulesWithSameHighestPriorityIsNotAllowed", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.ConditionalRuleGroupTest#twoRulesWithSameHighestPriorityIsNotAllowed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void twoRulesWithSameHighestPriorityIsNotAllowed() {\n conditionalRuleGroup.addRule(new MyOtherRule(1));\n conditionalRuleGroup.addRule(new MyOtherRule(2));\n conditionalRuleGroup.addRule(new MyRule());\n rules.register(conditionalRuleGroup);\n rulesEngine.fire(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["196-203"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.3333, "method_coverage_gold": 40.9091, "line_coverage_gold": 31.8841, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["79e68108be80012d24d89749236ee71d6a822832", "b874b761ac72caee59f9cd7179d6746392fb3f04"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "772_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_a8d5177_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/ConditionalRuleGroupTest.rulesMustNotBeExecutedIfConditionalRuleEvaluatesToFalse:()V", "class": "ConditionalRuleGroupTest", "method": "rulesMustNotBeExecutedIfConditionalRuleEvaluatesToFalse", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.ConditionalRuleGroupTest#rulesMustNotBeExecutedIfConditionalRuleEvaluatesToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void rulesMustNotBeExecutedIfConditionalRuleEvaluatesToFalse() throws Exception {\n when(conditionalRule.evaluate(facts)).thenReturn(false);\n conditionalRuleGroup.addRule(rule1);\n conditionalRuleGroup.addRule(rule2);\n conditionalRuleGroup.addRule(conditionalRule);\n rules.register(conditionalRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(conditionalRule, never()).execute(facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-101"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 12.5, "method_coverage_gold": 40.9091, "line_coverage_gold": 36.2319, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["79e68108be80012d24d89749236ee71d6a822832", "b874b761ac72caee59f9cd7179d6746392fb3f04"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "773_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_a8d5177_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/ConditionalRuleGroupTest.rulesMustBeExecutedForThoseThatEvaluateToTrueIfConditionalRuleEvaluatesToTrue:()V", "class": "ConditionalRuleGroupTest", "method": "rulesMustBeExecutedForThoseThatEvaluateToTrueIfConditionalRuleEvaluatesToTrue", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.ConditionalRuleGroupTest#rulesMustBeExecutedForThoseThatEvaluateToTrueIfConditionalRuleEvaluatesToTrue", "old_test_code": null, "new_test_code": "@Test\npublic void rulesMustBeExecutedForThoseThatEvaluateToTrueIfConditionalRuleEvaluatesToTrue() throws Exception {\n when(conditionalRule.evaluate(facts)).thenReturn(true);\n conditionalRuleGroup.addRule(rule1);\n conditionalRuleGroup.addRule(rule2);\n conditionalRuleGroup.addRule(conditionalRule);\n rules.register(conditionalRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(conditionalRule, times(1)).execute(facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, times(1)).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-127"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 45.8333, "method_coverage_gold": 45.4545, "line_coverage_gold": 49.2754, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["79e68108be80012d24d89749236ee71d6a822832", "b874b761ac72caee59f9cd7179d6746392fb3f04"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "774_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_a8d5177_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/ConditionalRuleGroupTest.whenARuleIsRemoved_thenItShouldNotBeEvaluated:()V", "class": "ConditionalRuleGroupTest", "method": "whenARuleIsRemoved_thenItShouldNotBeEvaluated", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.ConditionalRuleGroupTest#whenARuleIsRemoved_thenItShouldNotBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenARuleIsRemoved_thenItShouldNotBeEvaluated() throws Exception {\n when(conditionalRule.evaluate(facts)).thenReturn(true);\n conditionalRuleGroup.addRule(rule1);\n conditionalRuleGroup.addRule(rule2);\n conditionalRuleGroup.addRule(conditionalRule);\n conditionalRuleGroup.removeRule(rule2);\n rules.register(conditionalRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(conditionalRule, times(1)).execute(facts);\n verify(rule1, times(1)).evaluate(facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).evaluate(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["129-152"], "old_production_code": "", "new_production_code": "public void removeRule(final Object rule) {\n Rule proxy = proxyRules.get(rule);\n if (proxy != null) {\n rules.remove(proxy);\n }\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "109-114", "dependency_updated": "inserted", "score": 0.1972, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2, "class": 0.0, "tfidf": 0.0229}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": 0.1522, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1111, "class": 0.0, "tfidf": 0.0334}}], "coverage_gold": 1.0, "branch_coverage_gold": 41.6667, "method_coverage_gold": 50.0, "line_coverage_gold": 50.7246, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["79e68108be80012d24d89749236ee71d6a822832", "b874b761ac72caee59f9cd7179d6746392fb3f04"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__72d7bff_b874b76__UnitRuleGroupTest_3c565b20", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "72d7bff9402cabf43b19900fbfd463cc693799e8", "rev2": "b874b761ac72caee59f9cd7179d6746392fb3f04", "rev1_date": "2018-03-27T22:48:21Z", "rev2_date": "2018-03-27T22:49:08Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/72d7bff9402cabf43b19900fbfd463cc693799e8...b874b761ac72caee59f9cd7179d6746392fb3f04", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/UnitRuleGroupTest.java", "test_changes": [{"change_id": "789_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_b874b76_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/UnitRuleGroupTest.compositeRuleAndComposingRulesMustBeExecuted:()V", "class": "UnitRuleGroupTest", "method": "compositeRuleAndComposingRulesMustBeExecuted", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.UnitRuleGroupTest#compositeRuleAndComposingRulesMustBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void compositeRuleAndComposingRulesMustBeExecuted() throws Exception {\n unitRuleGroup = new UnitRuleGroup();\n unitRuleGroup.addRule(rule1);\n unitRuleGroup.addRule(rule2);\n rules.register(unitRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-67"], "old_production_code": "", "new_production_code": "public void addRule(final Object rule) {\n Rule proxy = RuleProxy.asRule(rule);\n rules.add(proxy);\n proxyRules.put(rule, proxy);\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 60.0, "method_coverage_gold": 50.0, "line_coverage_gold": 56.7568, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "792_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_b874b76_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/UnitRuleGroupTest.whenARuleIsRemoved_thenItShouldNotBeEvaluated:()V", "class": "UnitRuleGroupTest", "method": "whenARuleIsRemoved_thenItShouldNotBeEvaluated", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.UnitRuleGroupTest#whenARuleIsRemoved_thenItShouldNotBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenARuleIsRemoved_thenItShouldNotBeEvaluated() throws Exception {\n unitRuleGroup = new UnitRuleGroup();\n unitRuleGroup.addRule(rule1);\n unitRuleGroup.addRule(rule2);\n unitRuleGroup.removeRule(rule2);\n rules.register(unitRuleGroup);\n rulesEngine.fire(rules, facts);\n verify(rule1).execute(facts);\n verify(rule2, never()).evaluate(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-110"], "old_production_code": "", "new_production_code": "public void removeRule(final Object rule) {\n Rule proxy = proxyRules.get(rule);\n if (proxy != null) {\n rules.remove(proxy);\n }\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "focal_method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "109-114", "dependency_updated": "inserted", "score": 0.199, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2, "class": 0.0, "tfidf": 0.0306}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "line_nums_new": "99-103", "dependency_updated": "inserted", "score": 0.1527, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1111, "class": 0.0, "tfidf": 0.0356}}], "coverage_gold": 1.0, "branch_coverage_gold": 70.0, "method_coverage_gold": 58.3333, "line_coverage_gold": 67.5676, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/CompositeRule.removeRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/CompositeRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "793_j-easy_easy-rules-easy-rules-4.1.0_72d7bff_b874b76_UnitRuleGroupTest", "test_sign": "org/jeasy/rules/support/UnitRuleGroupTest.whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse:()V", "class": "UnitRuleGroupTest", "method": "whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.UnitRuleGroupTest#whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void whenNoComposingRulesAreRegistered_thenUnitRuleGroupShouldEvaluateToFalse() {\n unitRuleGroup = new UnitRuleGroup();\n boolean evaluationResult = unitRuleGroup.evaluate(facts);\n assertThat(evaluationResult).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-51"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n if (!rules.isEmpty()) {\n for (Rule rule : rules) {\n if (!rule.evaluate(facts)) {\n return false;\n }\n }\n return true;\n }\n return false;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/UnitRuleGroup.java", "focal_method_sign": "org/jeasy/rules/support/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/UnitRuleGroup.java", "line_nums_new": "46-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2857142857142857, "branch_coverage_gold": 10.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 27.027, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/UnitRuleGroup.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/UnitRuleGroup.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__79e6810_a8d5177__ConditionalRuleGroupTest_fe1f3357", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "79e68108be80012d24d89749236ee71d6a822832", "rev2": "a8d5177570e70dcfa48febe720d8f9f35e3221e2", "rev1_date": "2018-03-27T23:09:26Z", "rev2_date": "2018-03-27T23:19:32Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/79e68108be80012d24d89749236ee71d6a822832...a8d5177570e70dcfa48febe720d8f9f35e3221e2", "test_file": "easy-rules-support/src/test/java/org/jeasy/rules/support/ConditionalRuleGroupTest.java", "test_changes": [{"change_id": "489_j-easy_easy-rules-easy-rules-4.1.0_79e6810_a8d5177_ConditionalRuleGroupTest", "test_sign": "org/jeasy/rules/support/ConditionalRuleGroupTest.aRuleWithoutPriorityHasAHighPriororty:()V", "class": "ConditionalRuleGroupTest", "method": "aRuleWithoutPriorityHasAHighPriororty", "module": "easy-rules-support", "junit_selector": "org.jeasy.rules.support.ConditionalRuleGroupTest#aRuleWithoutPriorityHasAHighPriororty", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unchecked\")\n@Test\npublic void aRuleWithoutPriorityHasAHighPriororty() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {\n MyOtherRule rule1 = new MyOtherRule(3);\n conditionalRuleGroup.addRule(rule1);\n conditionalRuleGroup.addRule(new UnprioritizedRule());\n Method m = conditionalRuleGroup.getClass().getDeclaredMethod(\"sortRules\");\n m.setAccessible(true);\n List sorted = (List) m.invoke(conditionalRuleGroup);\n assertThat(sorted.get(0).getPriority()).isEqualTo(Integer.MAX_VALUE - 1);\n assertThat(sorted.get(1).getPriority()).isEqualTo(3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["216-227"], "old_production_code": "", "new_production_code": "private List sortRules() {\n List copy = new ArrayList<>(rules);\n Collections.sort(copy, new Comparator() {\n\n @Override\n public int compare(Rule o1, Rule o2) {\n Integer i2 = o2.getPriority();\n return i2.compareTo(o1.getPriority());\n }\n });\n return copy;\n}", "focal_file_path": "easy-rules-support/src/main/java/org/jeasy/rules/support/ConditionalRuleGroup.java", "focal_method_sign": "org/jeasy/rules/support/ConditionalRuleGroup.sortRules:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/support/ConditionalRuleGroup.sortRules:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/ConditionalRuleGroup.java", "line_nums_new": "130-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 31.8182, "line_coverage_gold": 24.6377, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/support/CompositeRule.addRule:(Ljava/lang/Object;)V", "org/jeasy/rules/support/ConditionalRuleGroup.sortRules:()Ljava/util/List", "org/jeasy/rules/core/RuleProxy.invoke:(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/support/ConditionalRuleGroup.sortRules:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-support/src/main/java/org/jeasy/rules/support/ConditionalRuleGroup.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__7c69052_087fad1__MVELRuleDefinitionReaderTest_7ae25525", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "7c690524be62c8a86162421a0d535195b83b8d78", "rev2": "087fad14022b1b2c453129bb653de710bcf66dc6", "rev1_date": "2017-12-16T23:24:11Z", "rev2_date": "2017-12-16T23:24:11Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/7c690524be62c8a86162421a0d535195b83b8d78...087fad14022b1b2c453129bb653de710bcf66dc6", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.java", "test_changes": [{"change_id": "649_j-easy_easy-rules-easy-rules-4.1.0_7c69052_087fad1_MVELRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.testRuleDefinitionReading:()V", "class": "MVELRuleDefinitionReaderTest", "method": "testRuleDefinitionReading", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleDefinitionReaderTest#testRuleDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleDefinitionReading() throws Exception {\n File adultRuleDescriptor = new File(\"src/test/resources/adult-rule.yml\");\n MVELRuleDefinition adultRuleDefinition = ruleDefinitionReader.read(adultRuleDescriptor);\n assertThat(adultRuleDefinition).isNotNull();\n assertThat(adultRuleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRuleDefinition.getDescription()).isEqualTo(\"when age is greater then 18, then mark as adult\");\n assertThat(adultRuleDefinition.getPriority()).isEqualTo(1);\n assertThat(adultRuleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(adultRuleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-29"], "old_production_code": "", "new_production_code": "MVELRuleDefinition read(File descriptor) throws FileNotFoundException {\n Object object = yaml.load(new FileReader(descriptor));\n Map map = (Map) object;\n return createRuleDefinitionFrom(map);\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/io/File;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/io/File;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "line_nums_new": "16-20", "dependency_updated": "inserted", "score": 0.401, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1905, "class": 1.0, "tfidf": 0.0208}}, {"dep_id": 3, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getCondition:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "line_nums_new": "31-33", "dependency_updated": "inserted", "score": 0.1557, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.2857, "class": 0.0, "tfidf": 0.0243}}, {"dep_id": 5, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getDescription:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "line_nums_new": "23-25", "dependency_updated": "inserted", "score": 0.1536, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2857, "class": 0.0, "tfidf": 0.0243}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getPriority:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "line_nums_new": "39-41", "dependency_updated": "inserted", "score": 0.1428, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2381, "class": 0.0, "tfidf": 0.0313}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "line_nums_new": "15-17", "dependency_updated": "inserted", "score": 0.1379, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1905, "class": 0.0, "tfidf": 0.0243}}, {"dep_id": 4, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getActions:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "line_nums_new": "47-49", "dependency_updated": "inserted", "score": 0.1323, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2381, "class": 0.0, "tfidf": 0.0205}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 43.75, "line_coverage_gold": 39.2405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleDefinition.getPriority:()I", "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/io/File;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "org/jeasy/rules/mvel/MVELRuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/mvel/MVELRuleDefinition.getName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.read:(Ljava/io/File;)Lorg/jeasy/rules/mvel/MVELRuleDefinition", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getPriority:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getCondition:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getActions:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinition.getDescription:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__7c69052_087fad1__MVELRuleTest_0ca36d9f", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "7c690524be62c8a86162421a0d535195b83b8d78", "rev2": "087fad14022b1b2c453129bb653de710bcf66dc6", "rev1_date": "2017-12-16T23:24:11Z", "rev2_date": "2017-12-16T23:24:11Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/7c690524be62c8a86162421a0d535195b83b8d78...087fad14022b1b2c453129bb653de710bcf66dc6", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleTest.java", "test_changes": [{"change_id": "647_j-easy_easy-rules-easy-rules-4.1.0_7c69052_087fad1_MVELRuleTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleTest.whenTheConditionIsTrue_thenActionsShouldBeExecuted:()V", "class": "MVELRuleTest", "method": "whenTheConditionIsTrue_thenActionsShouldBeExecuted", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleTest#whenTheConditionIsTrue_thenActionsShouldBeExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheConditionIsTrue_thenActionsShouldBeExecuted() throws Exception {\n Person foo = new Person(\"foo\", 20);\n facts.put(\"person\", foo);\n mvelRule.execute(facts);\n assertThat(foo.isAdult()).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-43"], "old_production_code": "", "new_production_code": "@Override\npublic void execute(Facts facts) throws Exception {\n for (Action action : actions) {\n action.execute(facts);\n }\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRule.execute:(Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRule.execute:(Lorg/jeasy/rules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "line_nums_new": "80-85", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 28.125, "line_coverage_gold": 31.6456, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRule.execute:(Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object", "org/jeasy/rules/mvel/Person.isAdult:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRule.execute:(Lorg/jeasy/rules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "648_j-easy_easy-rules-easy-rules-4.1.0_7c69052_087fad1_MVELRuleTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleTest.whenTheRuleIsTriggered_thenConditionShouldBeEvaluated:()V", "class": "MVELRuleTest", "method": "whenTheRuleIsTriggered_thenConditionShouldBeEvaluated", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleTest#whenTheRuleIsTriggered_thenConditionShouldBeEvaluated", "old_test_code": null, "new_test_code": "@Test\npublic void whenTheRuleIsTriggered_thenConditionShouldBeEvaluated() throws Exception {\n facts.put(\"person\", new Person(\"foo\", 20));\n boolean evaluationResult = mvelRule.evaluate(facts);\n assertThat(evaluationResult).isTrue();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-30"], "old_production_code": "", "new_production_code": "@Override\npublic boolean evaluate(Facts facts) {\n return condition.evaluate(facts);\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "line_nums_new": "75-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 28.125, "line_coverage_gold": 25.3165, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object", "org/jeasy/rules/mvel/MVELRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRule.evaluate:(Lorg/jeasy/rules/api/Facts;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRule.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__8748d60_b888b85__RulesTest_f7bd60b7", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "8748d602b26a444858e6ce85d7b4b246365a17d7", "rev2": "b888b85119db7adde3d9399c9d9bd1d0079731f4", "rev1_date": "2020-05-31T08:49:42Z", "rev2_date": "2020-05-31T08:50:01Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/8748d602b26a444858e6ce85d7b4b246365a17d7...b888b85119db7adde3d9399c9d9bd1d0079731f4", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/api/RulesTest.java", "test_changes": [{"change_id": "832_j-easy_easy-rules-easy-rules-4.1.0_8748d60_b888b85_RulesTest", "test_sign": "org/jeasy/rules/api/RulesTest.size:()V", "class": "RulesTest", "method": "size", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.RulesTest#size", "old_test_code": null, "new_test_code": "@Test\npublic void size() {\n assertThat(rules.size()).isEqualTo(0);\n rules.register(new DummyRule());\n assertThat(rules.size()).isEqualTo(1);\n rules.unregister(new DummyRule());\n assertThat(rules.size()).isEqualTo(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["121-130"], "old_production_code": "", "new_production_code": "public int size() {\n return rules.size();\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "focal_method_sign": "org/jeasy/rules/api/Rules.size:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Rules.size:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "line_nums_new": "127-129", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.6721, "method_coverage_gold": 16.5746, "line_coverage_gold": 17.3844, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Rules.size:()I", "org/jeasy/rules/api/Rules.unregister:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Rules.size:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Rules.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__994c24a_5288bd8__MVELRuleDefinitionReaderTest_5e6735c4", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "994c24ab164f6dd6f4f608778fb4bd1105a585c9", "rev2": "5288bd8702465336782b4c4ec34c26afef8723aa", "rev1_date": "2018-04-08T10:01:02Z", "rev2_date": "2018-04-08T11:40:59Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/994c24ab164f6dd6f4f608778fb4bd1105a585c9...5288bd8702465336782b4c4ec34c26afef8723aa", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.java", "test_changes": [{"change_id": "571_j-easy_easy-rules-easy-rules-4.1.0_994c24a_5288bd8_MVELRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.testRulesDefinitionReading:()V", "class": "MVELRuleDefinitionReaderTest", "method": "testRulesDefinitionReading", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleDefinitionReaderTest#testRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules.yml\");\n List ruleDefinitions = ruleDefinitionReader.readAll(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(2);\n MVELRuleDefinition ruleDefinition = ruleDefinitions.get(0);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"adult rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when age is greater then 18, then mark as adult\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(1);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"person.age > 18\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"person.setAdult(true);\"));\n ruleDefinition = ruleDefinitions.get(1);\n assertThat(ruleDefinition).isNotNull();\n assertThat(ruleDefinition.getName()).isEqualTo(\"weather rule\");\n assertThat(ruleDefinition.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(ruleDefinition.getPriority()).isEqualTo(2);\n assertThat(ruleDefinition.getCondition()).isEqualTo(\"rain == true\");\n assertThat(ruleDefinition.getActions()).isEqualTo(Collections.singletonList(\"System.out.println(\\\"It rains, take an umbrella!\\\");\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-142"], "old_production_code": "", "new_production_code": "List readAll(Reader reader) {\n List ruleDefinitions = new ArrayList<>();\n Iterable rules = yaml.loadAll(reader);\n for (Object rule : rules) {\n Map map = (Map) rule;\n ruleDefinitions.add(createRuleDefinitionFrom(map));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "line_nums_new": "57-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.3636, "method_coverage_gold": 37.8378, "line_coverage_gold": 37.5, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleDefinition.getDescription:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "org/jeasy/rules/mvel/MVELRuleDefinition.getCondition:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getName:()Ljava/lang/String", "org/jeasy/rules/mvel/MVELRuleDefinition.getActions:()Ljava/util/List", "org/jeasy/rules/mvel/MVELRuleDefinition.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "573_j-easy_easy-rules-easy-rules-4.1.0_994c24a_5288bd8_MVELRuleDefinitionReaderTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReaderTest.testEmptyRulesDefinitionReading:()V", "class": "MVELRuleDefinitionReaderTest", "method": "testEmptyRulesDefinitionReading", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleDefinitionReaderTest#testEmptyRulesDefinitionReading", "old_test_code": null, "new_test_code": "@Test\npublic void testEmptyRulesDefinitionReading() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules-empty.yml\");\n List ruleDefinitions = ruleDefinitionReader.readAll(new FileReader(rulesDescriptor));\n assertThat(ruleDefinitions).hasSize(0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["144-154"], "old_production_code": "", "new_production_code": "List readAll(Reader reader) {\n List ruleDefinitions = new ArrayList<>();\n Iterable rules = yaml.loadAll(reader);\n for (Object rule : rules) {\n Map map = (Map) rule;\n ruleDefinitions.add(createRuleDefinitionFrom(map));\n }\n return ruleDefinitions;\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "line_nums_new": "57-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 4.5455, "method_coverage_gold": 5.4054, "line_coverage_gold": 5.3571, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleDefinitionReader.readAll:(Ljava/io/Reader;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleDefinitionReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__994c24a_5288bd8__MVELRuleFactoryTest_02b8b80e", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "994c24ab164f6dd6f4f608778fb4bd1105a585c9", "rev2": "5288bd8702465336782b4c4ec34c26afef8723aa", "rev1_date": "2018-04-08T10:01:02Z", "rev2_date": "2018-04-08T11:40:59Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/994c24ab164f6dd6f4f608778fb4bd1105a585c9...5288bd8702465336782b4c4ec34c26afef8723aa", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleFactoryTest.java", "test_changes": [{"change_id": "572_j-easy_easy-rules-easy-rules-4.1.0_994c24a_5288bd8_MVELRuleFactoryTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleFactoryTest.testRulesCreation:()V", "class": "MVELRuleFactoryTest", "method": "testRulesCreation", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleFactoryTest#testRulesCreation", "old_test_code": null, "new_test_code": "@Test\npublic void testRulesCreation() throws Exception {\n File rulesDescriptor = new File(\"src/test/resources/rules.yml\");\n Rules rules = MVELRuleFactory.createRulesFrom(new FileReader(rulesDescriptor));\n assertThat(rules).hasSize(2);\n Iterator iterator = rules.iterator();\n Rule rule = iterator.next();\n assertThat(rule).isNotNull();\n assertThat(rule.getName()).isEqualTo(\"adult rule\");\n assertThat(rule.getDescription()).isEqualTo(\"when age is greater then 18, then mark as adult\");\n assertThat(rule.getPriority()).isEqualTo(1);\n rule = iterator.next();\n assertThat(rule).isNotNull();\n assertThat(rule.getName()).isEqualTo(\"weather rule\");\n assertThat(rule.getDescription()).isEqualTo(\"when it rains, then take an umbrella\");\n assertThat(rule.getPriority()).isEqualTo(2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-79"], "old_production_code": "", "new_production_code": "public static Rules createRulesFrom(Reader rulesDescriptorReader) throws IOException {\n Rules rules = new Rules();\n List ruleDefinition = reader.readAll(rulesDescriptorReader);\n for (MVELRuleDefinition mvelRuleDefinition : ruleDefinition) {\n rules.register(mvelRuleDefinition.create());\n }\n return rules;\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRulesFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/api/Rules", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRulesFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/api/Rules", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "line_nums_new": "82-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 54.5455, "method_coverage_gold": 59.4595, "line_coverage_gold": 68.75, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleFactory.createRulesFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/api/Rules", "org/jeasy/rules/core/BasicRule.getDescription:()Ljava/lang/String", "org/jeasy/rules/core/BasicRule.getName:()Ljava/lang/String", "org/jeasy/rules/api/Rules.iterator:()Ljava/util/Iterator", "org/jeasy/rules/core/BasicRule.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRulesFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/api/Rules", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__d462fb3_95ef42b__FactsTest_3a3496b6", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "d462fb3a13765b25488065d6248c2c5cfd023ffa", "rev2": "95ef42bfbe0258f56f940b2e98b0bafcd5e61171", "rev1_date": "2020-05-03T15:15:40Z", "rev2_date": "2020-05-03T17:07:59Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/d462fb3a13765b25488065d6248c2c5cfd023ffa...95ef42bfbe0258f56f940b2e98b0bafcd5e61171", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/api/FactsTest.java", "test_changes": [{"change_id": "752_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testRemove:()V", "class": "FactsTest", "method": "testRemove", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testRemove", "old_test_code": null, "new_test_code": "@Test\npublic void testRemove() {\n Fact foo = new Fact<>(\"foo\", 1);\n facts.add(foo);\n facts.remove(foo);\n assertThat(facts).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-73"], "old_production_code": "", "new_production_code": "public void remove(Fact fact) {\n Objects.requireNonNull(fact, \"fact must not be null\");\n facts.remove(fact);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.remove:(Lorg/jeasy/rules/api/Fact;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.remove:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.8367, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3059}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "98-101", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "142-145", "dependency_updated": "updated", "score": 0.2795, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 1.0, "tfidf": 0.1129}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.2526, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2737}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.4132, "method_coverage_gold": 4.4444, "line_coverage_gold": 3.8095, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "org/jeasy/rules/api/Facts.remove:(Lorg/jeasy/rules/api/Fact;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.remove:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "753_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testAsMap:()V", "class": "FactsTest", "method": "testAsMap", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testAsMap", "old_test_code": null, "new_test_code": "@Test\npublic void testAsMap() {\n Fact fact1 = new Fact<>(\"foo\", 1);\n Fact fact2 = new Fact<>(\"bar\", 2);\n facts.add(fact1);\n facts.add(fact2);\n Map map = facts.asMap();\n assertThat(map).containsKeys(\"foo\", \"bar\");\n assertThat(map).containsValues(1, 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-109"], "old_production_code": "public Map asMap() {\n return new HashMap<>(facts);\n}", "new_production_code": "public Map asMap() {\n Map map = new HashMap<>();\n for (Fact fact : facts) {\n map.put(fact.getName(), fact.getValue());\n }\n return map;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.asMap:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.asMap:()Ljava/util/Map", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "88-90", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "128-134", "dependency_updated": "updated", "score": 0.8904, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5342}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.3563, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2, "class": 1.0, "tfidf": 0.3245}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 1.2397, "method_coverage_gold": 5.0, "line_coverage_gold": 4.127, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.asMap:()Ljava/util/Map", "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.asMap:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "754_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testGet:()V", "class": "FactsTest", "method": "testGet", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testGet", "old_test_code": null, "new_test_code": "@Test\npublic void testGet() {\n Fact fact = new Fact<>(\"foo\", 1);\n facts.add(fact);\n Integer value = facts.get(\"foo\");\n assertThat(value).isEqualTo(1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-90"], "old_production_code": "@SuppressWarnings(\"unchecked\")\npublic T get(String name) {\n Objects.requireNonNull(name);\n return (T) facts.get(name);\n}", "new_production_code": "@SuppressWarnings(\"unchecked\")\npublic T get(String factName) {\n Objects.requireNonNull(factName, \"fact name must not be null\");\n Fact fact = getFact(factName);\n if (fact != null) {\n return (T) fact.getValue();\n }\n return null;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.get:(Ljava/lang/String;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.get:(Ljava/lang/String;)Ljava/lang/Object", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "76-80", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "98-106", "dependency_updated": "updated", "score": 0.833, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2904}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.2925, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.4433}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.8264, "method_coverage_gold": 5.0, "line_coverage_gold": 3.9683, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "org/jeasy/rules/api/Facts.get:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.get:(Ljava/lang/String;)Ljava/lang/Object", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "755_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testPut:()V", "class": "FactsTest", "method": "testPut", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testPut", "old_test_code": null, "new_test_code": "@Test\npublic void testPut() {\n facts.put(\"foo\", 1);\n facts.put(\"bar\", 2);\n assertThat(facts).contains(new Fact<>(\"foo\", 1));\n assertThat(facts).contains(new Fact<>(\"bar\", 2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-64"], "old_production_code": "public Object put(String name, Object fact) {\n Objects.requireNonNull(name);\n return facts.put(name, fact);\n}", "new_production_code": "public void put(String name, T value) {\n Objects.requireNonNull(name, \"fact name must not be null\");\n Objects.requireNonNull(value, \"fact value must not be null\");\n Fact retrievedFact = getFact(name);\n if (retrievedFact != null) {\n remove(retrievedFact);\n }\n add(new Fact<>(name, value));\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "50-53", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "43-51", "dependency_updated": "updated", "score": 0.8022, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1592}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "98-101", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "142-145", "dependency_updated": "updated", "score": 0.2627, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.1354}}], "coverage_gold": 0.875, "branch_coverage_gold": 2.0661, "method_coverage_gold": 5.5556, "line_coverage_gold": 4.9206, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "756_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testGetFact:()V", "class": "FactsTest", "method": "testGetFact", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testGetFact", "old_test_code": null, "new_test_code": "@Test\npublic void testGetFact() {\n Fact fact = new Fact<>(\"foo\", 1);\n facts.add(fact);\n Fact retrievedFact = facts.getFact(\"foo\");\n assertThat(retrievedFact).isEqualTo(fact);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["92-98"], "old_production_code": "", "new_production_code": "public Fact getFact(String factName) {\n Objects.requireNonNull(factName, \"fact name must not be null\");\n return facts.stream().filter(fact -> fact.getName().equals(factName)).findFirst().orElse(null);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.getFact:(Ljava/lang/String;)Lorg/jeasy/rules/api/Fact", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.getFact:(Ljava/lang/String;)Lorg/jeasy/rules/api/Fact", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "114-120", "dependency_updated": "inserted", "score": 0.8568, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3913}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.4392, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1429, "class": 1.0, "tfidf": 0.7168}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.4132, "method_coverage_gold": 3.8889, "line_coverage_gold": 3.1746, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.getFact:(Ljava/lang/String;)Lorg/jeasy/rules/api/Fact", "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.getFact:(Ljava/lang/String;)Lorg/jeasy/rules/api/Fact", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "758_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testRemoveByName:()V", "class": "FactsTest", "method": "testRemoveByName", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testRemoveByName", "old_test_code": null, "new_test_code": "@Test\npublic void testRemoveByName() {\n Fact foo = new Fact<>(\"foo\", 1);\n facts.add(foo);\n facts.remove(\"foo\");\n assertThat(facts).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-82"], "old_production_code": "public Object remove(String name) {\n Objects.requireNonNull(name);\n return facts.remove(name);\n}", "new_production_code": "public void remove(String factName) {\n Objects.requireNonNull(factName, \"fact name must not be null\");\n Fact fact = getFact(factName);\n if (fact != null) {\n remove(fact);\n }\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.remove:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.remove:(Ljava/lang/String;)V", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "64-67", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "72-78", "dependency_updated": "updated", "score": 0.4928, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1946}}, {"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.3252, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0833, "class": 1.0, "tfidf": 0.2737}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "98-101", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "142-145", "dependency_updated": "updated", "score": 0.2726, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0833, "class": 1.0, "tfidf": 0.1129}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 0.8264, "method_coverage_gold": 5.5556, "line_coverage_gold": 4.6032, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.remove:(Ljava/lang/String;)V", "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.remove:(Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "759_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_FactsTest", "test_sign": "org/jeasy/rules/api/FactsTest.testAdd:()V", "class": "FactsTest", "method": "testAdd", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.api.FactsTest#testAdd", "old_test_code": null, "new_test_code": "@Test\npublic void testAdd() {\n Fact fact1 = new Fact<>(\"foo\", 1);\n Fact fact2 = new Fact<>(\"bar\", 2);\n facts.add(fact1);\n facts.add(fact2);\n assertThat(facts).contains(fact1);\n assertThat(facts).contains(fact2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-55"], "old_production_code": "", "new_production_code": "public void add(Fact fact) {\n Objects.requireNonNull(fact, \"fact must not be null\");\n Fact retrievedFact = getFact(fact.getName());\n if (retrievedFact != null) {\n remove(retrievedFact);\n }\n facts.add(fact);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.85, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3627}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "98-101", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "142-145", "dependency_updated": "updated", "score": 0.2603, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.1251}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 1.6529, "method_coverage_gold": 5.0, "line_coverage_gold": 3.9683, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.add:(Lorg/jeasy/rules/api/Fact;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/api/Facts.iterator:()Ljava/util/Iterator", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__d462fb3_95ef42b__MissingFactAnnotationParameterTest_0de0d5a2", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "d462fb3a13765b25488065d6248c2c5cfd023ffa", "rev2": "95ef42bfbe0258f56f940b2e98b0bafcd5e61171", "rev1_date": "2020-05-03T15:15:40Z", "rev2_date": "2020-05-03T17:07:59Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/d462fb3a13765b25488065d6248c2c5cfd023ffa...95ef42bfbe0258f56f940b2e98b0bafcd5e61171", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/MissingFactAnnotationParameterTest.java", "test_changes": [{"change_id": "757_j-easy_easy-rules-easy-rules-4.1.0_d462fb3_95ef42b_MissingFactAnnotationParameterTest", "test_sign": "org/jeasy/rules/core/MissingFactAnnotationParameterTest.testMissingFact:()V", "class": "MissingFactAnnotationParameterTest", "method": "testMissingFact", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.MissingFactAnnotationParameterTest#testMissingFact", "old_test_code": null, "new_test_code": "@Test\npublic void testMissingFact() {\n Rules rules = new Rules();\n rules.register(new AnnotatedParametersRule());\n Facts facts = new Facts();\n facts.put(\"fact1\", new Object());\n Map results = rulesEngine.check(rules, facts);\n for (boolean b : results.values()) {\n Assert.assertFalse(b);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-55"], "old_production_code": "public Object put(String name, Object fact) {\n Objects.requireNonNull(name);\n return facts.put(name, fact);\n}", "new_production_code": "public void put(String name, T value) {\n Objects.requireNonNull(name, \"fact name must not be null\");\n Objects.requireNonNull(value, \"fact value must not be null\");\n Fact retrievedFact = getFact(name);\n if (retrievedFact != null) {\n remove(retrievedFact);\n }\n add(new Fact<>(name, value));\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "focal_method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_old": "50-53", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "line_nums_new": "43-51", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 38.0165, "method_coverage_gold": 37.2222, "line_coverage_gold": 40.4762, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.check:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)Ljava/util/Map", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V", "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/api/Facts.put:(Ljava/lang/String;Ljava/lang/Object;)V", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__d9a7d79_4a4a446__AnnotatedRulesTest_098f6bcd", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "d9a7d795258679a646cda5238a4cf8e9457e4add", "rev2": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev1_date": "2017-05-18T20:58:20Z", "rev2_date": "2017-05-18T21:13:55Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/d9a7d795258679a646cda5238a4cf8e9457e4add...4a4a4469c54485ecb7c18c8fa43e684221ca974d", "test_file": "easyrules-core/src/test/java/org/easyrules/core/AnnotatedRulesTest.java", "test_changes": [{"change_id": "636_j-easy_easy-rules-easy-rules-4.1.0_d9a7d79_4a4a446_AnnotatedRulesTest", "test_sign": "org/easyrules/core/AnnotatedRulesTest.test:()V", "class": "AnnotatedRulesTest", "method": "test", "module": "easyrules-core", "junit_selector": "org.easyrules.core.AnnotatedRulesTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n Facts facts = new Facts();\n facts.add(\"rain\", true);\n facts.add(\"age\", 18);\n Rules rules = new Rules(new WeatherRule(), new AgeRule());\n RulesEngine rulesEngine = new DefaultRulesEngine();\n rulesEngine.fire(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-51"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "focal_method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.5409}}, {"dep_id": 1, "method_sign": "org/easyrules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/api/Facts.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": 0.0363, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.1544}}], "coverage_gold": 0.8, "branch_coverage_gold": 44.9074, "method_coverage_gold": 52.8926, "line_coverage_gold": 51.7454, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/easyrules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/easyrules/api/Facts.add:(Ljava/lang/String;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/api/Facts.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__d9a7d79_4a4a446__SkipOnFirstNonTriggeredRuleTest_17d2d08c", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "d9a7d795258679a646cda5238a4cf8e9457e4add", "rev2": "4a4a4469c54485ecb7c18c8fa43e684221ca974d", "rev1_date": "2017-05-18T20:58:20Z", "rev2_date": "2017-05-18T21:13:55Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/d9a7d795258679a646cda5238a4cf8e9457e4add...4a4a4469c54485ecb7c18c8fa43e684221ca974d", "test_file": "easyrules-core/src/test/java/org/easyrules/core/SkipOnFirstNonTriggeredRuleTest.java", "test_changes": [{"change_id": "635_j-easy_easy-rules-easy-rules-4.1.0_d9a7d79_4a4a446_SkipOnFirstNonTriggeredRuleTest", "test_sign": "org/easyrules/core/SkipOnFirstNonTriggeredRuleTest.testSkipOnFirstNonTriggeredRule:()V", "class": "SkipOnFirstNonTriggeredRuleTest", "method": "testSkipOnFirstNonTriggeredRule", "module": "easyrules-core", "junit_selector": "org.easyrules.core.SkipOnFirstNonTriggeredRuleTest#testSkipOnFirstNonTriggeredRule", "old_test_code": null, "new_test_code": "@Test\npublic void testSkipOnFirstNonTriggeredRule() throws Exception {\n rulesEngine.fire(rules, facts);\n verify(rule1, never()).execute(facts);\n verify(rule2, never()).execute(facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-58"], "old_production_code": "", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warning(\"No rules registered! Nothing to apply\");\n return;\n }\n sort(rules);\n logEngineParameters();\n log(rules, facts);\n apply(rules, facts);\n}", "focal_file_path": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "focal_method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "line_nums_new": "80-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 6.0185, "method_coverage_gold": 23.9669, "line_coverage_gold": 17.2485, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/easyrules/core/DefaultRulesEngine.fire:(Lorg/easyrules/api/Rules;Lorg/easyrules/api/Facts;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "easyrules-core/src/main/java/org/easyrules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__f066f86_c79c4e6__MVELRuleFactoryTest_ab0dc934", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "f066f86c1ae580cdfdba1de180ccd0b9d43a8fe7", "rev2": "c79c4e6da40dd403b63132b75e8c088c2e5f37ca", "rev1_date": "2018-03-25T19:51:00Z", "rev2_date": "2018-03-25T19:51:00Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/f066f86c1ae580cdfdba1de180ccd0b9d43a8fe7...c79c4e6da40dd403b63132b75e8c088c2e5f37ca", "test_file": "easy-rules-mvel/src/test/java/org/jeasy/rules/mvel/MVELRuleFactoryTest.java", "test_changes": [{"change_id": "644_j-easy_easy-rules-easy-rules-4.1.0_f066f86_c79c4e6_MVELRuleFactoryTest", "test_sign": "org/jeasy/rules/mvel/MVELRuleFactoryTest.testRuleCreationFromFileReader:()V", "class": "MVELRuleFactoryTest", "method": "testRuleCreationFromFileReader", "module": "easy-rules-mvel", "junit_selector": "org.jeasy.rules.mvel.MVELRuleFactoryTest#testRuleCreationFromFileReader", "old_test_code": null, "new_test_code": "@Test\npublic void testRuleCreationFromFileReader() throws Exception {\n Reader adultRuleDescriptorAsReader = new FileReader(\"src/test/resources/adult-rule.yml\");\n MVELRule adultRule = MVELRuleFactory.createRuleFrom(adultRuleDescriptorAsReader);\n assertThat(adultRule.getName()).isEqualTo(\"adult rule\");\n assertThat(adultRule.getDescription()).isEqualTo(\"when age is greater then 18, then mark as adult\");\n assertThat(adultRule.getPriority()).isEqualTo(1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-65"], "old_production_code": "", "new_production_code": "public static MVELRule createRuleFrom(Reader ruleDescriptorReader) throws IOException {\n StringBuilder ruleDescriptor = new StringBuilder();\n int charValue;\n while ((charValue = ruleDescriptorReader.read()) != -1) {\n ruleDescriptor.append((char) charValue);\n }\n ruleDescriptorReader.close();\n MVELRuleDefinition ruleDefinition = reader.read(ruleDescriptor.toString());\n return ruleDefinition.create();\n}", "focal_file_path": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "focal_method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRuleFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/mvel/MVELRule", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRuleFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/mvel/MVELRule", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "line_nums_new": "59-70", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 66.6667, "method_coverage_gold": 64.7059, "line_coverage_gold": 72.5275, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/mvel/MVELRuleFactory.createRuleFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/mvel/MVELRule", "org/jeasy/rules/core/BasicRule.getDescription:()Ljava/lang/String", "org/jeasy/rules/core/BasicRule.getName:()Ljava/lang/String", "org/jeasy/rules/core/BasicRule.getPriority:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/mvel/MVELRuleFactory.createRuleFrom:(Ljava/io/Reader;)Lorg/jeasy/rules/mvel/MVELRule", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-mvel/src/main/java/org/jeasy/rules/mvel/MVELRuleFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__fdb0158_14fe227__RulesEngineListenerTest_d9bcb062", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "fdb01582ad2c3a1751c9a103d5fcd66b25687d9b", "rev2": "14fe227c82551165e1818aca6044649192b8604c", "rev1_date": "2017-12-11T13:15:13Z", "rev2_date": "2017-12-11T23:00:52Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/fdb01582ad2c3a1751c9a103d5fcd66b25687d9b...14fe227c82551165e1818aca6044649192b8604c", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulesEngineListenerTest.java", "test_changes": [{"change_id": "794_j-easy_easy-rules-easy-rules-4.1.0_fdb0158_14fe227_RulesEngineListenerTest", "test_sign": "org/jeasy/rules/core/RulesEngineListenerTest.rulesEngineListenersShouldBeCalledInOrderWhenFiringRules:()V", "class": "RulesEngineListenerTest", "method": "rulesEngineListenersShouldBeCalledInOrderWhenFiringRules", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineListenerTest#rulesEngineListenersShouldBeCalledInOrderWhenFiringRules", "old_test_code": null, "new_test_code": "@Test\npublic void rulesEngineListenersShouldBeCalledInOrderWhenFiringRules() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(true);\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n InOrder inOrder = inOrder(rule1, fact1, fact2, rulesEngineListener1, rulesEngineListener2);\n inOrder.verify(rulesEngineListener1).beforeEvaluate(rules, facts);\n inOrder.verify(rulesEngineListener2).beforeEvaluate(rules, facts);\n inOrder.verify(rule1).evaluate(facts);\n inOrder.verify(rule1).execute(facts);\n inOrder.verify(rulesEngineListener1).afterExecute(rules, facts);\n inOrder.verify(rulesEngineListener2).afterExecute(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-70"], "old_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warn(\"No rules registered! Nothing to apply\");\n return;\n }\n logEngineParameters();\n log(rules);\n log(facts);\n apply(rules, facts);\n}", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n triggerListenersBeforeRules(rules, facts);\n if (rules.isEmpty()) {\n LOGGER.warn(\"No rules registered! Nothing to apply\");\n return;\n }\n logEngineParameters();\n log(rules);\n log(facts);\n apply(rules, facts);\n triggerListenersAfterRules(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_old": "100-110", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "113-125", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 11.6667, "method_coverage_gold": 25.1656, "line_coverage_gold": 21.7235, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["4d2dad61476c70cf1e8d16147beb3da10cdf7bf8"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__fdb0158_4d2dad6__DefaultRulesEngineTest_c0b2ef66", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "fdb01582ad2c3a1751c9a103d5fcd66b25687d9b", "rev2": "4d2dad61476c70cf1e8d16147beb3da10cdf7bf8", "rev1_date": "2017-12-11T13:15:13Z", "rev2_date": "2017-12-11T15:15:33Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/fdb01582ad2c3a1751c9a103d5fcd66b25687d9b...4d2dad61476c70cf1e8d16147beb3da10cdf7bf8", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/DefaultRulesEngineTest.java", "test_changes": [{"change_id": "638_j-easy_easy-rules-easy-rules-4.1.0_fdb0158_4d2dad6_DefaultRulesEngineTest", "test_sign": "org/jeasy/rules/core/DefaultRulesEngineTest.testGetRulesEngineListeners:()V", "class": "DefaultRulesEngineTest", "method": "testGetRulesEngineListeners", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.DefaultRulesEngineTest#testGetRulesEngineListeners", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRulesEngineListeners() throws Exception {\n rulesEngine = RulesEngineBuilder.aNewRulesEngine().withRulesEngineListener(rulesEngineListener).build();\n List rulesEngineListeners = rulesEngine.getRulesEngineListeners();\n assertThat(rulesEngineListeners).contains(rulesEngineListener);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["235-247"], "old_production_code": "", "new_production_code": "@Override\npublic List getRulesEngineListeners() {\n return rulesEngineListeners;\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getRulesEngineListeners:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getRulesEngineListeners:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "108-111", "dependency_updated": "inserted", "score": 0.8704, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.449}}, {"dep_id": 2, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulesEngineListener:(Lorg/jeasy/rules/api/RulesEngineListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "121-124", "dependency_updated": "inserted", "score": 0.4178, "signal_scores": {"nc": 0.0, "lcs_u": 0.8696, "ed": 0.8261, "class": 0.0, "tfidf": 0.5452}}, {"dep_id": 1, "method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_old": "126-128", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "line_nums_new": "140-142", "dependency_updated": "updated", "score": 0.1406, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1304, "class": 0.0, "tfidf": 0.0561}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 9.2715, "line_coverage_gold": 6.6427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngineTest.clearRules:()V", "org/jeasy/rules/core/RulesEngineBuilder.aNewRulesEngine:()Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/RulesEngineBuilder.withRulesEngineListener:(Lorg/jeasy/rules/api/RulesEngineListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "org/jeasy/rules/core/DefaultRulesEngine.getRulesEngineListeners:()Ljava/util/List", "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.getRulesEngineListeners:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.build:()Lorg/jeasy/rules/api/RulesEngine", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jeasy/rules/core/RulesEngineBuilder.withRulesEngineListener:(Lorg/jeasy/rules/api/RulesEngineListener;)Lorg/jeasy/rules/core/RulesEngineBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/RulesEngineBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "j-easy_easy-rules-easy-rules-4.1.0__fdb0158_4d2dad6__RulesEngineListenerTest_8b822dc4", "project_name": "j-easy_easy-rules-easy-rules-4.1.0", "git_clone_url": "https://github.com/j-easy/easy-rules.git", "rev1": "fdb01582ad2c3a1751c9a103d5fcd66b25687d9b", "rev2": "4d2dad61476c70cf1e8d16147beb3da10cdf7bf8", "rev1_date": "2017-12-11T13:15:13Z", "rev2_date": "2017-12-11T15:15:33Z", "git_diff_url": "https://github.com/j-easy/easy-rules/compare/fdb01582ad2c3a1751c9a103d5fcd66b25687d9b...4d2dad61476c70cf1e8d16147beb3da10cdf7bf8", "test_file": "easy-rules-core/src/test/java/org/jeasy/rules/core/RulesEngineListenerTest.java", "test_changes": [{"change_id": "639_j-easy_easy-rules-easy-rules-4.1.0_fdb0158_4d2dad6_RulesEngineListenerTest", "test_sign": "org/jeasy/rules/core/RulesEngineListenerTest.rulesEngineListenersShouldBeCalledInOrder:()V", "class": "RulesEngineListenerTest", "method": "rulesEngineListenersShouldBeCalledInOrder", "module": "easy-rules-core", "junit_selector": "org.jeasy.rules.core.RulesEngineListenerTest#rulesEngineListenersShouldBeCalledInOrder", "old_test_code": null, "new_test_code": "@Test\npublic void rulesEngineListenersShouldBeCalledInOrder() throws Exception {\n when(rule1.evaluate(facts)).thenReturn(true);\n rules.register(rule1);\n rulesEngine.fire(rules, facts);\n InOrder inOrder = inOrder(rule1, fact1, fact2, rulesEngineListener1, rulesEngineListener2);\n inOrder.verify(rulesEngineListener1).beforeFiringRules(rules, facts);\n inOrder.verify(rulesEngineListener2).beforeFiringRules(rules, facts);\n inOrder.verify(rule1).evaluate(facts);\n inOrder.verify(rule1).execute(facts);\n inOrder.verify(rulesEngineListener1).afterFiringRules(rules, facts);\n inOrder.verify(rulesEngineListener2).afterFiringRules(rules, facts);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-70"], "old_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n if (rules.isEmpty()) {\n LOGGER.warn(\"No rules registered! Nothing to apply\");\n return;\n }\n logEngineParameters();\n log(rules);\n log(facts);\n apply(rules, facts);\n}", "new_production_code": "@Override\npublic void fire(Rules rules, Facts facts) {\n triggerListenersBeforeRules(rules, facts);\n if (rules.isEmpty()) {\n LOGGER.warn(\"No rules registered! Nothing to apply\");\n return;\n }\n logEngineParameters();\n log(rules);\n log(facts);\n apply(rules, facts);\n triggerListenersAfterRules(rules, facts);\n}", "focal_file_path": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "focal_method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_old": "100-110", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "line_nums_new": "113-125", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 11.6667, "method_coverage_gold": 25.1656, "line_coverage_gold": 21.7235, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "org/jeasy/rules/api/Rules.register:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jeasy/rules/core/DefaultRulesEngine.fire:(Lorg/jeasy/rules/api/Rules;Lorg/jeasy/rules/api/Facts;)V", "change_type": "UPDATE", "file_path_old": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "file_path_new": "easy-rules-core/src/main/java/org/jeasy/rules/core/DefaultRulesEngine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "easy-rules-4.1.0", "java_version": 8} {"task_id": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16__4700647_ddd66e4__DiffRowGeneratorTest_8a156a78", "project_name": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16", "git_clone_url": "https://github.com/java-diff-utils/java-diff-utils.git", "rev1": "470064735116f1fd3b760139c83951b87c50d4a2", "rev2": "ddd66e4554d689d94e15fe3b70d639bfa84bf5ff", "rev1_date": "2019-06-09T22:19:52Z", "rev2_date": "2019-06-09T22:35:09Z", "git_diff_url": "https://github.com/java-diff-utils/java-diff-utils/compare/470064735116f1fd3b760139c83951b87c50d4a2...ddd66e4554d689d94e15fe3b70d639bfa84bf5ff", "test_file": "src/test/java/com/github/difflib/text/DiffRowGeneratorTest.java", "test_changes": [{"change_id": "105_java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16_4700647_ddd66e4_DiffRowGeneratorTest", "test_sign": "com/github/difflib/text/DiffRowGeneratorTest.testGeneratorIssue41UserNormalizer:()V", "class": "DiffRowGeneratorTest", "method": "testGeneratorIssue41UserNormalizer", "module": "", "junit_selector": "com.github.difflib.text.DiffRowGeneratorTest#testGeneratorIssue41UserNormalizer", "old_test_code": null, "new_test_code": "@Test\npublic void testGeneratorIssue41UserNormalizer() throws DiffException {\n DiffRowGenerator generator = DiffRowGenerator.create().lineNormalizer(str -> str.replace(\"\\t\", \" \")).build();\n List rows = generator.generateDiffRows(Arrays.asList(\"<\"), Arrays.asList(\"<\"));\n assertEquals(\"[[EQUAL,<,<]]\", rows.toString());\n rows = generator.generateDiffRows(Arrays.asList(\"\\t<\"), Arrays.asList(\"<\"));\n assertEquals(\"[[CHANGE, <,<]]\", rows.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["398-407"], "old_production_code": "", "new_production_code": "public Builder lineNormalizer(Function lineNormalizer) {\n this.lineNormalizer = lineNormalizer;\n return this;\n}", "focal_file_path": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "focal_method_sign": "com/github/difflib/text/DiffRowGenerator$Builder.lineNormalizer:(Ljava/util/function/Function;)Lcom/github/difflib/text/DiffRowGenerator$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/difflib/text/DiffRowGenerator$Builder.lineNormalizer:(Ljava/util/function/Function;)Lcom/github/difflib/text/DiffRowGenerator$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "line_nums_new": "502-505", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7887, "method_coverage_gold": 20.6349, "line_coverage_gold": 20.6318, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/difflib/text/DiffRowGenerator$Builder.build:()Lcom/github/difflib/text/DiffRowGenerator", "com/github/difflib/text/DiffRow.toString:()Ljava/lang/String", "com/github/difflib/text/DiffRowGenerator$Builder.lineNormalizer:(Ljava/util/function/Function;)Lcom/github/difflib/text/DiffRowGenerator$Builder", "com/github/difflib/text/DiffRowGenerator.generateDiffRows:(Ljava/util/List;Ljava/util/List;)Ljava/util/List", "com/github/difflib/text/DiffRowGenerator.create:()Lcom/github/difflib/text/DiffRowGenerator$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/difflib/text/DiffRowGenerator$Builder.lineNormalizer:(Ljava/util/function/Function;)Lcom/github/difflib/text/DiffRowGenerator$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "106_java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16_4700647_ddd66e4_DiffRowGeneratorTest", "test_sign": "com/github/difflib/text/DiffRowGeneratorTest.testNormalize_List:()V", "class": "DiffRowGeneratorTest", "method": "testNormalize_List", "module": "", "junit_selector": "com.github.difflib.text.DiffRowGeneratorTest#testNormalize_List", "old_test_code": null, "new_test_code": "@Test\npublic void testNormalize_List() {\n DiffRowGenerator generator = DiffRowGenerator.create().build();\n assertEquals(Collections.singletonList(\" test\"), generator.normalizeLines(Collections.singletonList(\"\\ttest\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-40"], "old_production_code": "", "new_production_code": "List normalizeLines(List list) {\n return list.stream().map(lineNormalizer::apply).collect(toList());\n}", "focal_file_path": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "focal_method_sign": "com/github/difflib/text/DiffRowGenerator.normalizeLines:(Ljava/util/List;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/difflib/text/DiffRowGenerator.normalizeLines:(Ljava/util/List;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "line_nums_new": "269-273", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2347, "method_coverage_gold": 4.2328, "line_coverage_gold": 3.85, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/difflib/text/DiffRowGenerator$Builder.build:()Lcom/github/difflib/text/DiffRowGenerator", "com/github/difflib/text/DiffRowGenerator.normalizeLines:(Ljava/util/List;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/difflib/text/DiffRowGenerator.normalizeLines:(Ljava/util/List;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/difflib/text/DiffRowGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "java-diff-utils-parent-4.16", "java_version": 8} {"task_id": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16__5cc2cf4_aff6bfe__UnifiedDiffReaderTest_2c7e9b19", "project_name": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16", "git_clone_url": "https://github.com/java-diff-utils/java-diff-utils.git", "rev1": "5cc2cf4021b2d5dd51394383e86b858ba7662b81", "rev2": "aff6bfed2953298d031c0b2a5601c6b3da72bfb0", "rev1_date": "2024-09-24T19:20:24Z", "rev2_date": "2024-09-24T19:46:04Z", "git_diff_url": "https://github.com/java-diff-utils/java-diff-utils/compare/5cc2cf4021b2d5dd51394383e86b858ba7662b81...aff6bfed2953298d031c0b2a5601c6b3da72bfb0", "test_file": "java-diff-utils/src/test/java/com/github/difflib/unifieddiff/UnifiedDiffReaderTest.java", "test_changes": [{"change_id": "113_java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16_5cc2cf4_aff6bfe_UnifiedDiffReaderTest", "test_sign": "com/github/difflib/unifieddiff/UnifiedDiffReaderTest.testParseIssue193Copy:()V", "class": "UnifiedDiffReaderTest", "method": "testParseIssue193Copy", "module": "java-diff-utils", "junit_selector": "com.github.difflib.unifieddiff.UnifiedDiffReaderTest#testParseIssue193Copy", "old_test_code": null, "new_test_code": "@Test\npublic void testParseIssue193Copy() throws IOException {\n UnifiedDiff diff = UnifiedDiffReader.parseUnifiedDiff(UnifiedDiffReaderTest.class.getResourceAsStream(\"problem_diff_parsing_issue193.diff\"));\n UnifiedDiffFile file1 = diff.getFiles().get(0);\n assertThat(file1.getCopyFrom()).isEqualTo(\"modules/configuration/config/web/pcf/account/AccountContactCV.pcf\");\n assertThat(file1.getCopyTo()).isEqualTo(\"modules/configuration/config/web/pcf/account/AccountContactCV.default.pcf\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["439-448"], "old_production_code": "", "new_production_code": "public String getCopyTo() {\n return copyTo;\n}", "focal_file_path": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "focal_method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyTo:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyTo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.1355, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.1765, "class": 0.0, "tfidf": 0.0356}}, {"dep_id": 0, "method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyFrom:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "line_nums_new": "124-126", "dependency_updated": "inserted", "score": 0.108, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.1176, "class": 0.0, "tfidf": 0.0356}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2999, "method_coverage_gold": 19.1275, "line_coverage_gold": 15.4707, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/difflib/unifieddiff/UnifiedDiff.getFiles:()Ljava/util/List", "com/github/difflib/unifieddiff/UnifiedDiffReader.parseUnifiedDiff:(Ljava/io/InputStream;)Lcom/github/difflib/unifieddiff/UnifiedDiff", "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyFrom:()Ljava/lang/String", "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyTo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyFrom:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getCopyTo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "java-diff-utils-parent-4.16", "java_version": 8} {"task_id": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16__f76abb5_21f9e9d__UnifiedDiffReaderTest_c18c4473", "project_name": "java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16", "git_clone_url": "https://github.com/java-diff-utils/java-diff-utils.git", "rev1": "f76abb58f6e022dc58ddb1805f1ce980996917d3", "rev2": "21f9e9d415bfa2e45161ff251fdb338e707dddd2", "rev1_date": "2020-09-27T16:13:03Z", "rev2_date": "2020-09-27T20:08:04Z", "git_diff_url": "https://github.com/java-diff-utils/java-diff-utils/compare/f76abb58f6e022dc58ddb1805f1ce980996917d3...21f9e9d415bfa2e45161ff251fdb338e707dddd2", "test_file": "java-diff-utils/src/test/java/com/github/difflib/unifieddiff/UnifiedDiffReaderTest.java", "test_changes": [{"change_id": "155_java-diff-utils_java-diff-utils-java-diff-utils-parent-4.16_f76abb5_21f9e9d_UnifiedDiffReaderTest", "test_sign": "com/github/difflib/unifieddiff/UnifiedDiffReaderTest.testParseIssue98:()V", "class": "UnifiedDiffReaderTest", "method": "testParseIssue98", "module": "java-diff-utils", "junit_selector": "com.github.difflib.unifieddiff.UnifiedDiffReaderTest#testParseIssue98", "old_test_code": null, "new_test_code": "@Test\npublic void testParseIssue98() throws IOException {\n UnifiedDiff diff = UnifiedDiffReader.parseUnifiedDiff(UnifiedDiffReaderTest.class.getResourceAsStream(\"problem_diff_issue98.diff\"));\n assertThat(diff.getFiles().size()).isEqualTo(1);\n assertEquals(1, diff.getFiles().size());\n final UnifiedDiffFile file1 = diff.getFiles().get(0);\n assertEquals(\"100644\", file1.getDeletedFileMode());\n assertEquals(\"src/test/java/se/bjurr/violations/lib/model/ViolationTest.java\", file1.getFromFile());\n assertThat(diff.getTail()).isEqualTo(\"2.25.1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["224-238"], "old_production_code": "", "new_production_code": "public String getDeletedFileMode() {\n return deletedFileMode;\n}", "focal_file_path": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "focal_method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getDeletedFileMode:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getDeletedFileMode:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "line_nums_new": "106-108", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.3673, "method_coverage_gold": 24.186, "line_coverage_gold": 18.1408, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/difflib/unifieddiff/UnifiedDiffFile.getFromFile:()Ljava/lang/String", "com/github/difflib/unifieddiff/UnifiedDiff.getFiles:()Ljava/util/List", "com/github/difflib/unifieddiff/UnifiedDiff.getTail:()Ljava/lang/String", "com/github/difflib/unifieddiff/UnifiedDiffFile.getDeletedFileMode:()Ljava/lang/String", "com/github/difflib/unifieddiff/UnifiedDiffReader.parseUnifiedDiff:(Ljava/io/InputStream;)Lcom/github/difflib/unifieddiff/UnifiedDiff"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/difflib/unifieddiff/UnifiedDiffFile.getDeletedFileMode:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "java-diff-utils/src/main/java/com/github/difflib/unifieddiff/UnifiedDiffFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "java-diff-utils-parent-4.16", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__029d282_451049a__DropwizardApnsClientMetricsListenerTest_959aca6a", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "029d2827f6722a9e16600593ae16bbbf50829f42", "rev2": "451049af0cf43fd72b4c8f7730db91cd6444c8ce", "rev1_date": "2020-02-24T01:19:13Z", "rev2_date": "2020-02-24T01:49:31Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/029d2827f6722a9e16600593ae16bbbf50829f42...451049af0cf43fd72b4c8f7730db91cd6444c8ce", "test_file": "dropwizard-metrics-listener/src/test/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.java", "test_changes": [{"change_id": "352_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleWriteFailure:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleWriteFailure", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleWriteFailure", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleWriteFailure() {\n final Meter writeFailures = (Meter) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.WRITE_FAILURES_METER_NAME);\n assertEquals(0, writeFailures.getCount());\n this.listener.handleWriteFailure(null, 1);\n assertEquals(1, writeFailures.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-53"], "old_production_code": "", "new_production_code": "@Override\npublic void handleWriteFailure(final ApnsClient apnsClient, final long notificationId) {\n this.stopTimerForNotification(notificationId);\n this.writeFailures.mark();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "172-176", "dependency_updated": "inserted", "score": 0.7907, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1103}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.302, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1667, "class": 1.0, "tfidf": 0.067}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 52.7778, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "353_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleNotificationAccepted:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleNotificationAccepted", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleNotificationAccepted", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationAccepted() {\n final Meter acceptedNotifications = (Meter) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.ACCEPTED_NOTIFICATIONS_METER_NAME);\n assertEquals(0, acceptedNotifications.getCount());\n this.listener.handleNotificationAccepted(null, 1);\n assertEquals(1, acceptedNotifications.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-71"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationAccepted(final ApnsClient apnsClient, final long notificationId) {\n this.stopTimerForNotification(notificationId);\n this.acceptedNotifications.mark();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "198-202", "dependency_updated": "inserted", "score": 0.7907, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1103}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.3176, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1538, "class": 1.0, "tfidf": 0.067}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 52.7778, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "354_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleNotificationRejected:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleNotificationRejected", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleNotificationRejected", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationRejected() {\n final Meter rejectedNotifications = (Meter) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.REJECTED_NOTIFICATIONS_METER_NAME);\n assertEquals(0, rejectedNotifications.getCount());\n this.listener.handleNotificationRejected(null, 1);\n assertEquals(1, rejectedNotifications.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-80"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationRejected(final ApnsClient apnsClient, final long notificationId) {\n this.stopTimerForNotification(notificationId);\n this.rejectedNotifications.mark();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "211-215", "dependency_updated": "inserted", "score": 0.7907, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1103}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.3239, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1923, "class": 1.0, "tfidf": 0.067}}], "coverage_gold": 1.0, "branch_coverage_gold": 50.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 52.7778, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "355_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleConnectionAddedAndRemoved:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleConnectionAddedAndRemoved", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleConnectionAddedAndRemoved", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleConnectionAddedAndRemoved() {\n @SuppressWarnings(\"unchecked\")\n final Gauge openConnectionGauge = (Gauge) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.OPEN_CONNECTIONS_GAUGE_NAME);\n this.listener.handleConnectionAdded(null);\n assertEquals(1, (long) openConnectionGauge.getValue());\n this.listener.handleConnectionRemoved(null);\n assertEquals(0, (long) openConnectionGauge.getValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-94"], "old_production_code": "", "new_production_code": "@Override\npublic void handleConnectionRemoved(final ApnsClient apnsClient) {\n this.openConnections.decrementAndGet();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "234-237", "dependency_updated": "inserted", "score": 0.4932, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7419, "class": 1.0, "tfidf": 0.0268}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "223-226", "dependency_updated": "inserted", "score": 0.4826, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6774, "class": 1.0, "tfidf": 0.0268}}, {"dep_id": 2, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.2931, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.129, "class": 1.0, "tfidf": 0.0554}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 50.0, "line_coverage_gold": 50.0, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "357_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testGetMetrics:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testGetMetrics", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testGetMetrics", "old_test_code": null, "new_test_code": "@Test\npublic void testGetMetrics() {\n final Map metrics = this.listener.getMetrics();\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.NOTIFICATION_TIMER_NAME) instanceof Timer);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.WRITE_FAILURES_METER_NAME) instanceof Meter);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.SENT_NOTIFICATIONS_METER_NAME) instanceof Meter);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.ACCEPTED_NOTIFICATIONS_METER_NAME) instanceof Meter);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.REJECTED_NOTIFICATIONS_METER_NAME) instanceof Meter);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.OPEN_CONNECTIONS_GAUGE_NAME) instanceof Gauge);\n assertTrue(metrics.get(DropwizardApnsClientMetricsListener.CONNECTION_FAILURES_METER_NAME) instanceof Meter);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["105-118"], "old_production_code": "", "new_production_code": "@Override\npublic Map getMetrics() {\n return this.metrics.getMetrics();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 25.0, "line_coverage_gold": 36.1111, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "358_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleConnectionCreationFailed:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleConnectionCreationFailed", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleConnectionCreationFailed", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleConnectionCreationFailed() {\n final Meter connectionFailures = (Meter) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.CONNECTION_FAILURES_METER_NAME);\n assertEquals(0, connectionFailures.getCount());\n this.listener.handleConnectionCreationFailed(null);\n assertEquals(1, connectionFailures.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-103"], "old_production_code": "", "new_production_code": "@Override\npublic void handleConnectionCreationFailed(final ApnsClient apnsClient) {\n this.connectionFailures.mark();\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "245-248", "dependency_updated": "inserted", "score": 0.7987, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1444}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.3197, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 1.0, "tfidf": 0.067}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 41.6667, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "363_jchambers_pushy-pushy-0.15.4_029d282_451049a_DropwizardApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListenerTest.testHandleNotificationSent:()V", "class": "DropwizardApnsClientMetricsListenerTest", "method": "testHandleNotificationSent", "module": "dropwizard-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.dropwizard.DropwizardApnsClientMetricsListenerTest#testHandleNotificationSent", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationSent() {\n final Meter sentNotifications = (Meter) this.listener.getMetrics().get(DropwizardApnsClientMetricsListener.SENT_NOTIFICATIONS_METER_NAME);\n assertEquals(0, sentNotifications.getCount());\n this.listener.handleNotificationSent(null, 1);\n assertEquals(1, sentNotifications.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-62"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationSent(final ApnsClient apnsClient, final long notificationId) {\n this.sentNotifications.mark();\n this.notificationTimerContexts.put(notificationId, this.notificationTimer.time());\n}", "focal_file_path": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "185-189", "dependency_updated": "inserted", "score": 0.7879, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0987}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "line_nums_new": "271-274", "dependency_updated": "inserted", "score": 0.3297, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2273, "class": 1.0, "tfidf": 0.067}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 44.4444, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.getMetrics:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "dropwizard-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/dropwizard/DropwizardApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__029d282_451049a__MicrometerApnsClientMetricsListenerTest_34db7779", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "029d2827f6722a9e16600593ae16bbbf50829f42", "rev2": "451049af0cf43fd72b4c8f7730db91cd6444c8ce", "rev1_date": "2020-02-24T01:19:13Z", "rev2_date": "2020-02-24T01:49:31Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/029d2827f6722a9e16600593ae16bbbf50829f42...451049af0cf43fd72b4c8f7730db91cd6444c8ce", "test_file": "micrometer-metrics-listener/src/test/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.java", "test_changes": [{"change_id": "351_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleNotificationRejected:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleNotificationRejected", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleNotificationRejected", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationRejected() {\n final Counter rejectedNotifications = this.meterRegistry.get(MicrometerApnsClientMetricsListener.REJECTED_NOTIFICATIONS_COUNTER_NAME).counter();\n assertEquals(0, (int) rejectedNotifications.count());\n this.listener.handleNotificationRejected(null, 1);\n assertEquals(1, (int) rejectedNotifications.count());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["105-112"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationRejected(final ApnsClient apnsClient, final long notificationId) {\n this.recordEndTimeForNotification(notificationId);\n this.rejectedNotifications.increment();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "222-226", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 25.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 53.8462, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationRejected:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "356_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleConnectionCreationFailed:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleConnectionCreationFailed", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleConnectionCreationFailed", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleConnectionCreationFailed() {\n final Counter connectionFailures = this.meterRegistry.get(MicrometerApnsClientMetricsListener.CONNECTION_FAILURES_COUNTER_NAME).counter();\n assertEquals(0, (int) connectionFailures.count());\n this.listener.handleConnectionCreationFailed(null);\n assertEquals(1, (int) connectionFailures.count());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["127-134"], "old_production_code": "", "new_production_code": "@Override\npublic void handleConnectionCreationFailed(final ApnsClient apnsClient) {\n this.connectionFailures.increment();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "265-268", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 41.0256, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionCreationFailed:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "359_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleConnectionAddedAndRemoved:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleConnectionAddedAndRemoved", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleConnectionAddedAndRemoved", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleConnectionAddedAndRemoved() {\n final Gauge openConnectionGauge = this.meterRegistry.get(MicrometerApnsClientMetricsListener.OPEN_CONNECTIONS_GAUGE_NAME).gauge();\n this.listener.handleConnectionAdded(null);\n assertEquals(1, (int) openConnectionGauge.value());\n this.listener.handleConnectionRemoved(null);\n assertEquals(0, (int) openConnectionGauge.value());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-125"], "old_production_code": "", "new_production_code": "@Override\npublic void handleConnectionRemoved(final ApnsClient apnsClient) {\n this.openConnections.decrementAndGet();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "254-257", "dependency_updated": "inserted", "score": 0.4941, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7419, "class": 1.0, "tfidf": 0.0306}}, {"dep_id": 1, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "243-246", "dependency_updated": "inserted", "score": 0.4835, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6774, "class": 1.0, "tfidf": 0.0306}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 46.1538, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionRemoved:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleConnectionAdded:(Lcom/eatthepath/pushy/apns/ApnsClient;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "360_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleWriteFailure:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleWriteFailure", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleWriteFailure", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleWriteFailure() {\n final Counter writeFailures = this.meterRegistry.get(MicrometerApnsClientMetricsListener.WRITE_FAILURES_COUNTER_NAME).counter();\n assertEquals(0, (int) writeFailures.count());\n this.listener.handleWriteFailure(null, 1);\n assertEquals(1, (int) writeFailures.count());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-85"], "old_production_code": "", "new_production_code": "@Override\npublic void handleWriteFailure(final ApnsClient apnsClient, final long notificationId) {\n this.notificationStartTimes.remove(notificationId);\n this.writeFailures.increment();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "183-187", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 43.5897, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleWriteFailure:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "361_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleNotificationSent:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleNotificationSent", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleNotificationSent", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationSent() {\n final Counter sentNotifications = this.meterRegistry.get(MicrometerApnsClientMetricsListener.SENT_NOTIFICATIONS_COUNTER_NAME).counter();\n assertEquals(0, (int) sentNotifications.count());\n this.listener.handleNotificationSent(null, 1);\n assertEquals(1, (int) sentNotifications.count());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["87-94"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationSent(final ApnsClient apnsClient, final long notificationId) {\n this.notificationStartTimes.put(notificationId, System.nanoTime());\n this.sentNotifications.increment();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "196-200", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 33.3333, "line_coverage_gold": 43.5897, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationSent:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "362_jchambers_pushy-pushy-0.15.4_029d282_451049a_MicrometerApnsClientMetricsListenerTest", "test_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListenerTest.testHandleNotificationAccepted:()V", "class": "MicrometerApnsClientMetricsListenerTest", "method": "testHandleNotificationAccepted", "module": "micrometer-metrics-listener", "junit_selector": "com.eatthepath.pushy.apns.metrics.micrometer.MicrometerApnsClientMetricsListenerTest#testHandleNotificationAccepted", "old_test_code": null, "new_test_code": "@Test\npublic void testHandleNotificationAccepted() {\n final Counter acceptedNotifications = this.meterRegistry.get(MicrometerApnsClientMetricsListener.ACCEPTED_NOTIFICATIONS_COUNTER_NAME).counter();\n assertEquals(0, (int) acceptedNotifications.count());\n this.listener.handleNotificationAccepted(null, 1);\n assertEquals(1, (int) acceptedNotifications.count());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-103"], "old_production_code": "", "new_production_code": "@Override\npublic void handleNotificationAccepted(final ApnsClient apnsClient, final long notificationId) {\n this.recordEndTimeForNotification(notificationId);\n this.acceptedNotifications.increment();\n}", "focal_file_path": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "focal_method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "line_nums_new": "209-213", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 25.0, "method_coverage_gold": 41.6667, "line_coverage_gold": 53.8462, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2449cdb466df89b736c958750666349833efce56"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.handleNotificationAccepted:(Lcom/eatthepath/pushy/apns/ApnsClient;J)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "micrometer-metrics-listener/src/main/java/com/eatthepath/pushy/apns/metrics/micrometer/MicrometerApnsClientMetricsListener.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__07ade9c_fc880ab__ApnsKeyTest_e67fadbe", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "07ade9c0040f0f3ff2f3e7eea2e86e24d45f7f1f", "rev2": "fc880ab64b82464515db2f215404dbd12217df6f", "rev1_date": "2018-04-13T21:06:21Z", "rev2_date": "2018-04-13T21:19:21Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/07ade9c0040f0f3ff2f3e7eea2e86e24d45f7f1f...fc880ab64b82464515db2f215404dbd12217df6f", "test_file": "pushy/src/test/java/com/turo/pushy/apns/auth/ApnsKeyTest.java", "test_changes": [{"change_id": "368_jchambers_pushy-pushy-0.15.4_07ade9c_fc880ab_ApnsKeyTest", "test_sign": "com/turo/pushy/apns/auth/ApnsKeyTest.testDecodeBase64EncodedString:(Ljava/lang/String;Ljava/lang/String;)V", "class": "ApnsKeyTest", "method": "testDecodeBase64EncodedString", "module": "pushy", "junit_selector": "com.turo.pushy.apns.auth.ApnsKeyTest#testDecodeBase64EncodedString", "old_test_code": null, "new_test_code": "@Test\n@Parameters({ \"Zg==, f\", \"Zm8=, fo\", \"Zm9v, foo\", \"Zm9vYg==, foob\", \"Zm9vYmE=, fooba\", \"Zm9vYmFy, foobar\" })\npublic void testDecodeBase64EncodedString(final String base64EncodedString, final String decodedAsciiString) {\n assertEquals(decodedAsciiString, new String(ApnsKey.decodeBase64EncodedString(base64EncodedString), StandardCharsets.US_ASCII));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-74"], "old_production_code": "", "new_production_code": "protected static byte[] decodeBase64EncodedString(final String base64EncodedString) {\n final ByteBuf base64EncodedByteBuf = Unpooled.wrappedBuffer(base64EncodedString.getBytes(StandardCharsets.US_ASCII));\n final ByteBuf decodedByteBuf = Base64.decode(base64EncodedByteBuf);\n final byte[] decodedBytes = new byte[decodedByteBuf.readableBytes()];\n decodedByteBuf.readBytes(decodedBytes);\n base64EncodedByteBuf.release();\n decodedByteBuf.release();\n return decodedBytes;\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/auth/ApnsKey.java", "focal_method_sign": "com/turo/pushy/apns/auth/ApnsKey.decodeBase64EncodedString:(Ljava/lang/String;)[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/auth/ApnsKey.decodeBase64EncodedString:(Ljava/lang/String;)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/ApnsKey.java", "line_nums_new": "105-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0, "line_coverage_gold": 0.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/auth/ApnsKey.decodeBase64EncodedString:(Ljava/lang/String;)[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/auth/ApnsKey.decodeBase64EncodedString:(Ljava/lang/String;)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/ApnsKey.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__07ade9c_fc880ab__AuthenticationTokenTest_46e8b831", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "07ade9c0040f0f3ff2f3e7eea2e86e24d45f7f1f", "rev2": "fc880ab64b82464515db2f215404dbd12217df6f", "rev1_date": "2018-04-13T21:06:21Z", "rev2_date": "2018-04-13T21:19:21Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/07ade9c0040f0f3ff2f3e7eea2e86e24d45f7f1f...fc880ab64b82464515db2f215404dbd12217df6f", "test_file": "pushy/src/test/java/com/turo/pushy/apns/auth/AuthenticationTokenTest.java", "test_changes": [{"change_id": "369_jchambers_pushy-pushy-0.15.4_07ade9c_fc880ab_AuthenticationTokenTest", "test_sign": "com/turo/pushy/apns/auth/AuthenticationTokenTest.testEncodeDecodeBase64:()V", "class": "AuthenticationTokenTest", "method": "testEncodeDecodeBase64", "module": "pushy", "junit_selector": "com.turo.pushy.apns.auth.AuthenticationTokenTest#testEncodeDecodeBase64", "old_test_code": null, "new_test_code": "@Test\npublic void testEncodeDecodeBase64() {\n final byte[] originalBytes = \"We expect to get these bytes back after encoding, then decoding as Base64.\".getBytes();\n final String encodedString = AuthenticationToken.encodeUnpaddedBase64UrlString(originalBytes);\n assertArrayEquals(originalBytes, AuthenticationToken.decodeBase64UrlEncodedString(encodedString));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["113-121"], "old_production_code": "", "new_production_code": "static String encodeUnpaddedBase64UrlString(final byte[] data) {\n final ByteBuf wrappedString = Unpooled.wrappedBuffer(data);\n final ByteBuf encodedString = Base64.encode(wrappedString, Base64Dialect.URL_SAFE);\n final String encodedUnpaddedString = encodedString.toString(StandardCharsets.US_ASCII).replace(\"=\", \"\");\n wrappedString.release();\n encodedString.release();\n return encodedUnpaddedString;\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/auth/AuthenticationToken.java", "focal_method_sign": "com/turo/pushy/apns/auth/AuthenticationToken.encodeUnpaddedBase64UrlString:([B)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/auth/AuthenticationToken.encodeUnpaddedBase64UrlString:([B)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/AuthenticationToken.java", "line_nums_new": "292-302", "dependency_updated": "inserted", "score": 0.3909, "signal_scores": {"nc": 0.0, "lcs_u": 0.5172, "ed": 0.4828, "class": 1.0, "tfidf": 0.1355}}, {"dep_id": 1, "method_sign": "com/turo/pushy/apns/auth/AuthenticationToken.decodeBase64UrlEncodedString:(Ljava/lang/String;)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/AuthenticationToken.java", "line_nums_new": "304-335", "dependency_updated": "inserted", "score": 0.3266, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.3214, "class": 1.0, "tfidf": 0.0416}}], "coverage_gold": 0.85, "branch_coverage_gold": 0.1876, "method_coverage_gold": 1.7115, "line_coverage_gold": 2.4303, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/auth/AuthenticationToken.decodeBase64UrlEncodedString:(Ljava/lang/String;)[B", "com/turo/pushy/apns/auth/AuthenticationToken.encodeUnpaddedBase64UrlString:([B)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/auth/AuthenticationToken.encodeUnpaddedBase64UrlString:([B)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/AuthenticationToken.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/auth/AuthenticationToken.decodeBase64UrlEncodedString:(Ljava/lang/String;)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/auth/AuthenticationToken.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__402661e_b2948e7__ParsingMockApnsServerListenerAdapterTest_38a91325", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "402661e2b0ab15b5186ada91ad301d921baf80f9", "rev2": "b2948e79c4059398d553cba7edc6825fd61e1177", "rev1_date": "2018-01-15T17:51:00Z", "rev2_date": "2018-01-15T18:30:29Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/402661e2b0ab15b5186ada91ad301d921baf80f9...b2948e79c4059398d553cba7edc6825fd61e1177", "test_file": "pushy/src/test/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapterTest.java", "test_changes": [{"change_id": "224_jchambers_pushy-pushy-0.15.4_402661e_b2948e7_ParsingMockApnsServerListenerAdapterTest", "test_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapterTest.testHandlePushNotificationAccepted:()V", "class": "ParsingMockApnsServerListenerAdapterTest", "method": "testHandlePushNotificationAccepted", "module": "pushy", "junit_selector": "com.turo.pushy.apns.server.ParsingMockApnsServerListenerAdapterTest#testHandlePushNotificationAccepted", "old_test_code": null, "new_test_code": "@Test\npublic void testHandlePushNotificationAccepted() {\n final TestParsingMockApnsServerListener listener = new TestParsingMockApnsServerListener();\n {\n final String token = \"test-token\";\n final Http2Headers headers = new DefaultHttp2Headers().path(APNS_PATH_PREFIX + token);\n listener.handlePushNotificationAccepted(headers, null);\n assertEquals(token, listener.mostRecentPushNotification.getToken());\n assertNull(listener.mostRecentPushNotification.getTopic());\n assertNull(listener.mostRecentPushNotification.getPriority());\n assertNull(listener.mostRecentPushNotification.getExpiration());\n assertNull(listener.mostRecentPushNotification.getCollapseId());\n assertNull(listener.mostRecentPushNotification.getPayload());\n }\n {\n final String topic = \"test-topic\";\n final Http2Headers headers = new DefaultHttp2Headers().add(APNS_TOPIC_HEADER, topic);\n listener.handlePushNotificationAccepted(headers, null);\n assertNull(listener.mostRecentPushNotification.getToken());\n assertEquals(topic, listener.mostRecentPushNotification.getTopic());\n assertNull(listener.mostRecentPushNotification.getPriority());\n assertNull(listener.mostRecentPushNotification.getExpiration());\n assertNull(listener.mostRecentPushNotification.getCollapseId());\n assertNull(listener.mostRecentPushNotification.getPayload());\n }\n {\n final DeliveryPriority priority = DeliveryPriority.CONSERVE_POWER;\n final Http2Headers headers = new DefaultHttp2Headers().addInt(APNS_PRIORITY_HEADER, priority.getCode());\n listener.handlePushNotificationAccepted(headers, null);\n assertNull(listener.mostRecentPushNotification.getToken());\n assertNull(listener.mostRecentPushNotification.getTopic());\n assertEquals(priority, listener.mostRecentPushNotification.getPriority());\n assertNull(listener.mostRecentPushNotification.getExpiration());\n assertNull(listener.mostRecentPushNotification.getCollapseId());\n assertNull(listener.mostRecentPushNotification.getPayload());\n }\n {\n final Date expiration = new Date(1_000_000_000);\n final Http2Headers headers = new DefaultHttp2Headers().addInt(APNS_EXPIRATION_HEADER, (int) (expiration.getTime() / 1000));\n listener.handlePushNotificationAccepted(headers, null);\n assertNull(listener.mostRecentPushNotification.getToken());\n assertNull(listener.mostRecentPushNotification.getTopic());\n assertNull(listener.mostRecentPushNotification.getPriority());\n assertEquals(expiration, listener.mostRecentPushNotification.getExpiration());\n assertNull(listener.mostRecentPushNotification.getCollapseId());\n assertNull(listener.mostRecentPushNotification.getPayload());\n }\n {\n final String collapseId = \"collapse-id\";\n final Http2Headers headers = new DefaultHttp2Headers().add(APNS_COLLAPSE_ID_HEADER, collapseId);\n listener.handlePushNotificationAccepted(headers, null);\n assertNull(listener.mostRecentPushNotification.getToken());\n assertNull(listener.mostRecentPushNotification.getTopic());\n assertNull(listener.mostRecentPushNotification.getPriority());\n assertNull(listener.mostRecentPushNotification.getExpiration());\n assertEquals(collapseId, listener.mostRecentPushNotification.getCollapseId());\n assertNull(listener.mostRecentPushNotification.getPayload());\n }\n {\n final String payload = \"A test payload!\";\n final Http2Headers headers = new DefaultHttp2Headers();\n final ByteBuf payloadBuffer = ByteBufUtil.writeUtf8(UnpooledByteBufAllocator.DEFAULT, payload);\n try {\n listener.handlePushNotificationAccepted(headers, payloadBuffer);\n assertNull(listener.mostRecentPushNotification.getToken());\n assertNull(listener.mostRecentPushNotification.getTopic());\n assertNull(listener.mostRecentPushNotification.getPriority());\n assertNull(listener.mostRecentPushNotification.getExpiration());\n assertNull(listener.mostRecentPushNotification.getCollapseId());\n assertEquals(payload, listener.mostRecentPushNotification.getPayload());\n } finally {\n payloadBuffer.release();\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-168"], "old_production_code": "", "new_production_code": "public void handlePushNotificationAccepted(final Http2Headers headers, final ByteBuf payload) {\n this.handlePushNotificationAccepted(parsePushNotification(headers, payload));\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "focal_method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationAccepted:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;)V", "focal_all_deps_scored": [{"dep_id": 6, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationAccepted:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "111-113", "dependency_updated": "inserted", "score": 0.8083, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1852}}, {"dep_id": 4, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getCollapseId:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.3517, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.2, "class": 1.0, "tfidf": 0.093}}, {"dep_id": 1, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getTopic:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "86-89", "dependency_updated": "inserted", "score": 0.3501, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1667, "class": 1.0, "tfidf": 0.1025}}, {"dep_id": 3, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getToken:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.3501, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1667, "class": 1.0, "tfidf": 0.1025}}, {"dep_id": 2, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPayload:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "71-74", "dependency_updated": "inserted", "score": 0.349, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.2, "class": 1.0, "tfidf": 0.0931}}, {"dep_id": 5, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getExpiration:()Ljava/util/Date", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "76-79", "dependency_updated": "inserted", "score": 0.3452, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.2333, "class": 1.0, "tfidf": 0.0424}}, {"dep_id": 0, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPriority:()Lcom/turo/pushy/apns/DeliveryPriority", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.3134, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.1667, "class": 1.0, "tfidf": 0.0743}}], "coverage_gold": 0.8857142857142857, "branch_coverage_gold": 3.0075, "method_coverage_gold": 4.1322, "line_coverage_gold": 3.0876, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["21669e876f1a9548d4f219385c9f385920e4b09c", "1bb213cff0f5b95363a6b5254914383ac5796e4f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getToken:()Ljava/lang/String", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getExpiration:()Ljava/util/Date", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPriority:()Lcom/turo/pushy/apns/DeliveryPriority", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getCollapseId:()Ljava/lang/String", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationAccepted:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;)V", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPayload:()Ljava/lang/String", "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getTopic:()Ljava/lang/String", "com/turo/pushy/apns/DeliveryPriority.getCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPriority:()Lcom/turo/pushy/apns/DeliveryPriority", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getTopic:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getPayload:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getToken:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getCollapseId:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter$LenientApnsPushNotification.getExpiration:()Ljava/util/Date", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationAccepted:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "225_jchambers_pushy-pushy-0.15.4_402661e_b2948e7_ParsingMockApnsServerListenerAdapterTest", "test_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapterTest.testHandlePushNotificationRejected:()V", "class": "ParsingMockApnsServerListenerAdapterTest", "method": "testHandlePushNotificationRejected", "module": "pushy", "junit_selector": "com.turo.pushy.apns.server.ParsingMockApnsServerListenerAdapterTest#testHandlePushNotificationRejected", "old_test_code": null, "new_test_code": "@Test\npublic void testHandlePushNotificationRejected() {\n final TestParsingMockApnsServerListener listener = new TestParsingMockApnsServerListener();\n {\n final RejectionReason rejectionReason = RejectionReason.BAD_DEVICE_TOKEN;\n listener.handlePushNotificationRejected(new DefaultHttp2Headers(), null, rejectionReason, null);\n assertEquals(rejectionReason, listener.mostRecentRejectionReason);\n assertNull(listener.mostRecentDeviceTokenExpiration);\n }\n {\n final RejectionReason rejectionReason = RejectionReason.BAD_PRIORITY;\n final Date deviceTokenExpiration = new Date();\n listener.handlePushNotificationRejected(new DefaultHttp2Headers(), null, rejectionReason, deviceTokenExpiration);\n assertEquals(rejectionReason, listener.mostRecentRejectionReason);\n assertEquals(deviceTokenExpiration, listener.mostRecentDeviceTokenExpiration);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["170-190"], "old_production_code": "", "new_production_code": "public void handlePushNotificationRejected(final Http2Headers headers, final ByteBuf payload, final RejectionReason rejectionReason, final Date deviceTokenExpirationTimestamp) {\n this.handlePushNotificationRejected(parsePushNotification(headers, payload), rejectionReason, deviceTokenExpirationTimestamp);\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "focal_method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationRejected:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;Lcom/turo/pushy/apns/server/RejectionReason;Ljava/util/Date;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationRejected:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;Lcom/turo/pushy/apns/server/RejectionReason;Ljava/util/Date;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "line_nums_new": "133-135", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.1278, "method_coverage_gold": 1.9284, "line_coverage_gold": 3.9698, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["21669e876f1a9548d4f219385c9f385920e4b09c", "1bb213cff0f5b95363a6b5254914383ac5796e4f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationRejected:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;Lcom/turo/pushy/apns/server/RejectionReason;Ljava/util/Date;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.handlePushNotificationRejected:(Lio/netty/handler/codec/http2/Http2Headers;Lio/netty/buffer/ByteBuf;Lcom/turo/pushy/apns/server/RejectionReason;Ljava/util/Date;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/server/ParsingMockApnsServerListenerAdapter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__46b67f9_6ef1b24__MockApnsServerTest_dac42ae6", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "46b67f9ebc14defbf413b3fdc27c000ba3b0dc85", "rev2": "6ef1b24c22a156298ba1a221763cf53fbe6c6bb2", "rev1_date": "2018-04-01T15:36:14Z", "rev2_date": "2018-04-01T15:42:47Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/46b67f9ebc14defbf413b3fdc27c000ba3b0dc85...6ef1b24c22a156298ba1a221763cf53fbe6c6bb2", "test_file": "pushy/src/test/java/com/turo/pushy/apns/server/MockApnsServerTest.java", "test_changes": [{"change_id": "222_jchambers_pushy-pushy-0.15.4_46b67f9_6ef1b24_MockApnsServerTest", "test_sign": "com/turo/pushy/apns/server/MockApnsServerTest.testApnsIdForRejectedNotification:()V", "class": "MockApnsServerTest", "method": "testApnsIdForRejectedNotification", "module": "pushy", "junit_selector": "com.turo.pushy.apns.server.MockApnsServerTest#testApnsIdForRejectedNotification", "old_test_code": null, "new_test_code": "@Test\npublic void testApnsIdForRejectedNotification() throws Exception {\n final MockApnsServer server = this.buildServer(new PushNotificationHandlerFactory() {\n\n @Override\n public PushNotificationHandler buildHandler(final SSLSession sslSession) {\n return new PushNotificationHandler() {\n\n @Override\n public void handlePushNotification(final Http2Headers headers, final ByteBuf payload) throws RejectedNotificationException {\n throw new RejectedNotificationException(RejectionReason.MISSING_TOPIC);\n }\n };\n }\n });\n final ApnsClient client = this.buildTokenAuthenticationClient();\n try {\n server.start(PORT).await();\n final SimpleApnsPushNotification pushNotification = new SimpleApnsPushNotification(DEVICE_TOKEN, TOPIC, PAYLOAD);\n final PushNotificationResponse response = client.sendNotification(pushNotification).get();\n assertFalse(response.isAccepted());\n assertNotNull(response.getApnsId());\n } finally {\n client.close().await();\n server.shutdown().await();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["322-354"], "old_production_code": "", "new_production_code": "@Override\npublic UUID getApnsId() {\n return this.apnsId;\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "focal_method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6496350364963503, "branch_coverage_gold": 21.3755, "method_coverage_gold": 48.7805, "line_coverage_gold": 46.1631, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/ApnsClient.sendNotification:(Lcom/turo/pushy/apns/ApnsPushNotification;)Lcom/turo/pushy/apns/util/concurrent/PushNotificationFuture", "com/turo/pushy/apns/SimplePushNotificationResponse.isAccepted:()Z", "com/turo/pushy/apns/AbstractClientServerTest.buildTokenAuthenticationClient:()Lcom/turo/pushy/apns/ApnsClient", "com/turo/pushy/apns/AbstractClientServerTest.buildServer:(Lcom/turo/pushy/apns/server/PushNotificationHandlerFactory;)Lcom/turo/pushy/apns/server/MockApnsServer", "com/turo/pushy/apns/ApnsClientHandler.userEventTriggered:(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V", "com/turo/pushy/apns/ApnsClientHandler.onStreamRemoved:(Lio/netty/handler/codec/http2/Http2Stream;)V", "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "com/turo/pushy/apns/ApnsClient.close:()Lio/netty/util/concurrent/Future", "com/turo/pushy/apns/ApnsChannelPool$2.run:()V", "com/turo/pushy/apns/ApnsClientHandler.onGoAwaySent:(IJLio/netty/buffer/ByteBuf;)V", "com/turo/pushy/apns/ApnsClientHandler.onStreamClosed:(Lio/netty/handler/codec/http2/Http2Stream;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "223_jchambers_pushy-pushy-0.15.4_46b67f9_6ef1b24_MockApnsServerTest", "test_sign": "com/turo/pushy/apns/server/MockApnsServerTest.testApnsIdForAcceptedNotification:()V", "class": "MockApnsServerTest", "method": "testApnsIdForAcceptedNotification", "module": "pushy", "junit_selector": "com.turo.pushy.apns.server.MockApnsServerTest#testApnsIdForAcceptedNotification", "old_test_code": null, "new_test_code": "@Test\npublic void testApnsIdForAcceptedNotification() throws Exception {\n final MockApnsServer server = this.buildServer(new AcceptAllPushNotificationHandlerFactory());\n final ApnsClient client = this.buildTokenAuthenticationClient();\n try {\n server.start(PORT).await();\n final SimpleApnsPushNotification pushNotification = new SimpleApnsPushNotification(DEVICE_TOKEN, TOPIC, PAYLOAD);\n final PushNotificationResponse response = client.sendNotification(pushNotification).get();\n assertTrue(response.isAccepted());\n assertNotNull(response.getApnsId());\n } finally {\n client.close().await();\n server.shutdown().await();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["301-320"], "old_production_code": "", "new_production_code": "@Override\npublic UUID getApnsId() {\n return this.apnsId;\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "focal_method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.704, "branch_coverage_gold": 20.0743, "method_coverage_gold": 46.3415, "line_coverage_gold": 41.247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/server/BaseHttp2Server$4.operationComplete:(Lio/netty/util/concurrent/Future;)V", "com/turo/pushy/apns/ApnsClient.sendNotification:(Lcom/turo/pushy/apns/ApnsPushNotification;)Lcom/turo/pushy/apns/util/concurrent/PushNotificationFuture", "com/turo/pushy/apns/SimplePushNotificationResponse.isAccepted:()Z", "com/turo/pushy/apns/AbstractClientServerTest.buildTokenAuthenticationClient:()Lcom/turo/pushy/apns/ApnsClient", "com/turo/pushy/apns/AbstractClientServerTest.buildServer:(Lcom/turo/pushy/apns/server/PushNotificationHandlerFactory;)Lcom/turo/pushy/apns/server/MockApnsServer", "com/turo/pushy/apns/ApnsClientHandler.onStreamClosed:(Lio/netty/handler/codec/http2/Http2Stream;)V", "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "com/turo/pushy/apns/ApnsClient.close:()Lio/netty/util/concurrent/Future", "com/turo/pushy/apns/ApnsChannelPool$2.run:()V", "com/turo/pushy/apns/ApnsClientHandler.onGoAwaySent:(IJLio/netty/buffer/ByteBuf;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/SimplePushNotificationResponse.getApnsId:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/SimplePushNotificationResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jchambers_pushy-pushy-0.15.4__6ef1b24_3d03307__SimpleApnsPushNotificationTest_bfa728a0", "project_name": "jchambers_pushy-pushy-0.15.4", "git_clone_url": "https://github.com/jchambers/pushy.git", "rev1": "6ef1b24c22a156298ba1a221763cf53fbe6c6bb2", "rev2": "3d033075bd05496a4847c28cb9c71b2e1e03ba6c", "rev1_date": "2018-04-01T15:42:47Z", "rev2_date": "2018-04-01T15:42:47Z", "git_diff_url": "https://github.com/jchambers/pushy/compare/6ef1b24c22a156298ba1a221763cf53fbe6c6bb2...3d033075bd05496a4847c28cb9c71b2e1e03ba6c", "test_file": "pushy/src/test/java/com/turo/pushy/apns/util/SimpleApnsPushNotificationTest.java", "test_changes": [{"change_id": "215_jchambers_pushy-pushy-0.15.4_6ef1b24_3d03307_SimpleApnsPushNotificationTest", "test_sign": "com/turo/pushy/apns/util/SimpleApnsPushNotificationTest.testSimpleApnsPushNotificationTokenTopicPayloadExpirationPriorityCollapseIdApnsId:()V", "class": "SimpleApnsPushNotificationTest", "method": "testSimpleApnsPushNotificationTokenTopicPayloadExpirationPriorityCollapseIdApnsId", "module": "pushy", "junit_selector": "com.turo.pushy.apns.util.SimpleApnsPushNotificationTest#testSimpleApnsPushNotificationTokenTopicPayloadExpirationPriorityCollapseIdApnsId", "old_test_code": null, "new_test_code": "@Test\npublic void testSimpleApnsPushNotificationTokenTopicPayloadExpirationPriorityCollapseIdApnsId() {\n final String token = \"test-token\";\n final String topic = \"test-topic\";\n final String payload = \"{\\\"test\\\": true}\";\n final Date expiration = new Date();\n final DeliveryPriority priority = DeliveryPriority.CONSERVE_POWER;\n final String collapseId = \"test-collapse-id\";\n final UUID apnsId = UUID.randomUUID();\n final SimpleApnsPushNotification pushNotification = new SimpleApnsPushNotification(token, topic, payload, expiration, priority, collapseId, apnsId);\n assertEquals(token, pushNotification.getToken());\n assertEquals(topic, pushNotification.getTopic());\n assertEquals(payload, pushNotification.getPayload());\n assertEquals(expiration, pushNotification.getExpiration());\n assertEquals(priority, pushNotification.getPriority());\n assertEquals(collapseId, pushNotification.getCollapseId());\n assertEquals(apnsId, pushNotification.getApnsId());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["129-149"], "old_production_code": "", "new_production_code": "@Override\npublic UUID getApnsId() {\n return this.apnsId;\n}", "focal_file_path": "pushy/src/main/java/com/turo/pushy/apns/util/SimpleApnsPushNotification.java", "focal_method_sign": "com/turo/pushy/apns/util/SimpleApnsPushNotification.getApnsId:()Ljava/util/UUID", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/turo/pushy/apns/util/SimpleApnsPushNotification.getApnsId:()Ljava/util/UUID", "file_path_old": null, "line_nums_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/util/SimpleApnsPushNotification.java", "line_nums_new": "209-212", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.4213, "line_coverage_gold": 1.4837, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/turo/pushy/apns/util/SimpleApnsPushNotification.getPriority:()Lcom/turo/pushy/apns/DeliveryPriority", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getApnsId:()Ljava/util/UUID", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getTopic:()Ljava/lang/String", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getCollapseId:()Ljava/lang/String", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getPayload:()Ljava/lang/String", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getToken:()Ljava/lang/String", "com/turo/pushy/apns/util/SimpleApnsPushNotification.getExpiration:()Ljava/util/Date"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/turo/pushy/apns/util/SimpleApnsPushNotification.getApnsId:()Ljava/util/UUID", "change_type": "ADD", "file_path_old": null, "file_path_new": "pushy/src/main/java/com/turo/pushy/apns/util/SimpleApnsPushNotification.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "pushy-0.15.4", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__0c518c9_4a19d01__LocalCacheHandlerTest_4b8af24b", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "0c518c9d5fc9a14f363bff5f16ef810703bb80b8", "rev2": "4a19d01e7211a2755e4c55d8006a617bff5c6b2c", "rev1_date": "2016-08-28T13:09:29Z", "rev2_date": "2016-08-28T15:07:50Z", "git_diff_url": "https://github.com/jfaster/mango/compare/0c518c9d5fc9a14f363bff5f16ef810703bb80b8...4a19d01e7211a2755e4c55d8006a617bff5c6b2c", "test_file": "src/test/java/org/jfaster/mango/cache/LocalCacheHandlerTest.java", "test_changes": [{"change_id": "1596_jfaster_mango-mango-2.0.1_0c518c9_4a19d01_LocalCacheHandlerTest", "test_sign": "org/jfaster/mango/cache/LocalCacheHandlerTest.testAdd:()V", "class": "LocalCacheHandlerTest", "method": "testAdd", "module": "", "junit_selector": "org.jfaster.mango.cache.LocalCacheHandlerTest#testAdd", "old_test_code": null, "new_test_code": "@Test\npublic void testAdd() throws Exception {\n Ticker4Test t = new Ticker4Test();\n LocalCacheHandler cache = new LocalCacheHandler(t);\n int seconds = 100;\n String key = \"key\";\n String value = \"value\";\n int seconds2 = 200;\n String key2 = \"key2\";\n String value2 = \"value2\";\n cache.set(key, value, seconds);\n cache.add(key, value2, seconds);\n cache.add(key2, value2, seconds2);\n assertThat((String) cache.get(key), equalTo(value));\n assertThat((String) cache.get(key2), equalTo(value2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-111"], "old_production_code": "", "new_production_code": "@Override\npublic void add(String key, Object value, int exptimeSeconds) {\n long now = ticker.read();\n Entry entry = new Entry(value, now + TimeUnit.SECONDS.toNanos(exptimeSeconds));\n cache.putIfAbsent(key, entry);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "focal_method_sign": "org/jfaster/mango/cache/LocalCacheHandler.add:(Ljava/lang/String;Ljava/lang/Object;I)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.add:(Ljava/lang/String;Ljava/lang/Object;I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "94-99", "dependency_updated": "inserted", "score": 0.8237, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2506}}, {"dep_id": 0, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "47-49", "dependency_updated": "inserted", "score": 0.2607, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.3079}}, {"dep_id": 2, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "82-87", "dependency_updated": "inserted", "score": 0.2452, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2422}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0565, "method_coverage_gold": 0.5976, "line_coverage_gold": 0.3251, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/cache/LocalCacheHandler.add:(Ljava/lang/String;Ljava/lang/Object;I)V", "org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.add:(Ljava/lang/String;Ljava/lang/Object;I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1599_jfaster_mango-mango-2.0.1_0c518c9_4a19d01_LocalCacheHandlerTest", "test_sign": "org/jfaster/mango/cache/LocalCacheHandlerTest.testDelete:()V", "class": "LocalCacheHandlerTest", "method": "testDelete", "module": "", "junit_selector": "org.jfaster.mango.cache.LocalCacheHandlerTest#testDelete", "old_test_code": null, "new_test_code": "@Test\npublic void testDelete() throws Exception {\n Ticker4Test t = new Ticker4Test();\n LocalCacheHandler cache = new LocalCacheHandler(t);\n int seconds = 100;\n String key = \"key\";\n String value = \"value\";\n cache.set(key, value, seconds);\n assertThat((String) cache.get(key), equalTo(value));\n cache.delete(key);\n assertThat(cache.get(key), nullValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-93"], "old_production_code": "", "new_production_code": "@Override\npublic void delete(String key) {\n cache.remove(key);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "focal_method_sign": "org/jfaster/mango/cache/LocalCacheHandler.delete:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.delete:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "89-92", "dependency_updated": "inserted", "score": 0.8843, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.5082}}, {"dep_id": 0, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "47-49", "dependency_updated": "inserted", "score": 0.4541, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.3333, "class": 1.0, "tfidf": 0.3964}}, {"dep_id": 2, "method_sign": "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "line_nums_new": "82-87", "dependency_updated": "inserted", "score": 0.4337, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.3333, "class": 1.0, "tfidf": 0.3101}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0848, "method_coverage_gold": 0.5976, "line_coverage_gold": 0.313, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V", "org/jfaster/mango/cache/LocalCacheHandler.delete:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.get:(Ljava/lang/String;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.delete:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/cache/LocalCacheHandler.set:(Ljava/lang/String;Ljava/lang/Object;I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/cache/LocalCacheHandler.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__208d171_e403036__StatCollectorTest_c891b96e", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "208d17109e2a849ddb61ea7462d9e1b526820b36", "rev2": "e40303608a6d156d4011389d4ffe7679a6563a46", "rev1_date": "2016-11-28T08:14:27Z", "rev2_date": "2016-11-28T13:15:27Z", "git_diff_url": "https://github.com/jfaster/mango/compare/208d17109e2a849ddb61ea7462d9e1b526820b36...e40303608a6d156d4011389d4ffe7679a6563a46", "test_file": "src/test/java/org/jfaster/mango/stat/StatCollectorTest.java", "test_changes": [{"change_id": "1746_jfaster_mango-mango-2.0.1_208d171_e403036_StatCollectorTest", "test_sign": "org/jfaster/mango/stat/StatCollectorTest.testMonitor:()V", "class": "StatCollectorTest", "method": "testMonitor", "module": "", "junit_selector": "org.jfaster.mango.stat.StatCollectorTest#testMonitor", "old_test_code": null, "new_test_code": "@Test\npublic void testMonitor() throws Exception {\n final Method m = StatCollectorTest.class.getDeclaredMethod(\"testMonitor\");\n StatCollector sc = new StatCollector();\n final CountDownLatch cdl1 = new CountDownLatch(1);\n final CountDownLatch cdl2 = new CountDownLatch(1);\n final AtomicInteger t = new AtomicInteger();\n sc.initStatMonitor(new StatMonitor() {\n\n @Override\n public void check(long statStartTime, long statEndTime, List stats) throws Exception {\n int round = t.incrementAndGet();\n if (round == 1) {\n assertThat(stats.size(), equalTo(1));\n assertThat(stats.get(0).getDatabaseExecuteSuccessCount(), equalTo(2L));\n assertThat(stats.get(0).getTotalDatabaseExecuteTime(), equalTo(300L));\n cdl1.countDown();\n } else if (round == 2) {\n assertThat(stats.size(), equalTo(1));\n assertThat(stats.get(0).getDatabaseExecuteSuccessCount(), equalTo(1L));\n assertThat(stats.get(0).getTotalDatabaseExecuteTime(), equalTo(100L));\n cdl2.countDown();\n } else {\n throw new Exception();\n }\n }\n\n @Override\n public int getCheckPeriodSecond() {\n return 1;\n }\n });\n OneExecuteStat stat = OneExecuteStat.create();\n stat.recordDatabaseExecuteSuccess(100);\n stat.recordDatabaseExecuteSuccess(200);\n sc.getCombinedStat(m).getExecuteStat().accumulate(stat);\n cdl1.await();\n stat = OneExecuteStat.create();\n stat.recordDatabaseExecuteSuccess(100);\n sc.getCombinedStat(m).getExecuteStat().accumulate(stat);\n cdl2.await();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-75"], "old_production_code": "", "new_production_code": "public synchronized void initStatMonitor(final StatMonitor statMonitor) {\n if (scheduler != null) {\n throw new IllegalStateException(\"StatMonitor is initialized many times\");\n }\n scheduler = Executors.newSingleThreadScheduledExecutor();\n long period = statMonitor.getCheckPeriodSecond();\n scheduler.scheduleAtFixedRate(new Runnable() {\n\n @Override\n public void run() {\n try {\n StatInfo statInfo = resetAndGetStatInfo();\n statMonitor.check(statInfo.getStatStartTime(), statInfo.getStatEndTime(), statInfo.getStats());\n } catch (Exception e) {\n logger.error(\"StatMonitor check error\", e);\n }\n }\n }, period, period, TimeUnit.SECONDS);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/stat/StatCollector.java", "focal_method_sign": "org/jfaster/mango/stat/StatCollector.initStatMonitor:(Lorg/jfaster/mango/stat/StatMonitor;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/stat/StatCollector.initStatMonitor:(Lorg/jfaster/mango/stat/StatMonitor;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/stat/StatCollector.java", "line_nums_new": "43-60", "dependency_updated": "inserted", "score": 0.3588, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.4667, "class": 1.0, "tfidf": 0.048}}, {"dep_id": 1, "method_sign": "org/jfaster/mango/stat/StatCollector$1.run:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/stat/StatCollector.java", "line_nums_new": "50-58", "dependency_updated": "inserted", "score": 0.2801, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1429, "class": 1.0, "tfidf": 0.0404}}], "coverage_gold": 0.8103448275862069, "branch_coverage_gold": 1.1117, "method_coverage_gold": 5.3822, "line_coverage_gold": 3.7288, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/stat/StatCollector$1.run:()V", "org/jfaster/mango/stat/StatCollector.initStatMonitor:(Lorg/jfaster/mango/stat/StatMonitor;)V", "org/jfaster/mango/stat/StatCollector.getCombinedStat:(Ljava/lang/reflect/Method;)Lorg/jfaster/mango/stat/CombinedStat", "org/jfaster/mango/stat/CombinedStat.getExecuteStat:()Lorg/jfaster/mango/stat/ExecuteStat", "org/jfaster/mango/stat/OneExecuteStat.recordDatabaseExecuteSuccess:(J)V", "org/jfaster/mango/stat/OneExecuteStat.create:()Lorg/jfaster/mango/stat/OneExecuteStat", "org/jfaster/mango/stat/ExecuteStat.accumulate:(Lorg/jfaster/mango/stat/OneExecuteStat;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/stat/StatCollector.initStatMonitor:(Lorg/jfaster/mango/stat/StatMonitor;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/stat/StatCollector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/stat/StatCollector$1.run:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/stat/StatCollector.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__4d5e587_437da1d__CommonFindAllBuilderFactoryTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "4d5e5879ea31bb49b957087587f8baa418be4a9a", "rev2": "437da1d069f1ffa45fa79340307e010fa88fddb4", "rev1_date": "2019-08-30T08:34:33Z", "rev2_date": "2019-08-30T09:27:05Z", "git_diff_url": "https://github.com/jfaster/mango/compare/4d5e5879ea31bb49b957087587f8baa418be4a9a...437da1d069f1ffa45fa79340307e010fa88fddb4", "test_file": "src/test/java/org/jfaster/mango/crud/common/factory/CommonFindAllBuilderFactoryTest.java", "test_changes": [{"change_id": "1714_jfaster_mango-mango-2.0.1_4d5e587_437da1d_CommonFindAllBuilderFactoryTest", "test_sign": "org/jfaster/mango/crud/common/factory/CommonFindAllBuilderFactoryTest.test:()V", "class": "CommonFindAllBuilderFactoryTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.crud.common.factory.CommonFindAllBuilderFactoryTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n CommonFindAllBuilderFactory factory = new CommonFindAllBuilderFactory();\n String name = \"findAll\";\n Class entityClass = Order.class;\n Class idClass = Integer.class;\n Type returnType = DynamicTokens.iterableToken(TypeToken.of(entityClass)).getType();\n List parameterTypes = Lists.newArrayList();\n Builder b = factory.doTryGetBuilder(name, returnType, parameterTypes, entityClass, idClass);\n assertThat(b, notNullValue());\n assertThat(b.buildSql(), equalTo(\"select id, userid, user_age from #table\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-49"], "old_production_code": "", "new_production_code": "public static TypeToken> iterableToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "26-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.033, "method_coverage_gold": 4.6618, "line_coverage_gold": 3.7913, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["93ed6f34b17833da101f5cde751823fc9d6e9be7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/crud/common/factory/AbstractCommonBuilderFactory.doTryGetBuilder:(Ljava/lang/String;Ljava/lang/reflect/Type;Ljava/util/List;Ljava/lang/Class;Ljava/lang/Class;)Lorg/jfaster/mango/crud/Builder", "org/jfaster/mango/crud/common/builder/CommonGetAllBuilder.buildSql:()Ljava/lang/String", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__4d5e587_437da1d__CommonFindByIdBuilderFactoryTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "4d5e5879ea31bb49b957087587f8baa418be4a9a", "rev2": "437da1d069f1ffa45fa79340307e010fa88fddb4", "rev1_date": "2019-08-30T08:34:33Z", "rev2_date": "2019-08-30T09:27:05Z", "git_diff_url": "https://github.com/jfaster/mango/compare/4d5e5879ea31bb49b957087587f8baa418be4a9a...437da1d069f1ffa45fa79340307e010fa88fddb4", "test_file": "src/test/java/org/jfaster/mango/crud/common/factory/CommonFindByIdBuilderFactoryTest.java", "test_changes": [{"change_id": "1712_jfaster_mango-mango-2.0.1_4d5e587_437da1d_CommonFindByIdBuilderFactoryTest", "test_sign": "org/jfaster/mango/crud/common/factory/CommonFindByIdBuilderFactoryTest.test:()V", "class": "CommonFindByIdBuilderFactoryTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.crud.common.factory.CommonFindByIdBuilderFactoryTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n CommonFindByIdBuilderFactory factory = new CommonFindByIdBuilderFactory();\n String name = \"findById\";\n Class entityClass = Order.class;\n Type returnType = DynamicTokens.optionalToken(TypeToken.of(entityClass)).getType();\n Class idClass = Integer.class;\n List types = Lists.newArrayList((Type) idClass);\n Builder b = factory.doTryGetBuilder(name, returnType, types, entityClass, idClass);\n assertThat(b, notNullValue());\n assertThat(b.buildSql(), equalTo(\"select id, userid, user_age from #table where id = :1\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-49"], "old_production_code": "", "new_production_code": "public static TypeToken> optionalToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0931, "method_coverage_gold": 4.7075, "line_coverage_gold": 3.8983, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["93ed6f34b17833da101f5cde751823fc9d6e9be7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/crud/common/factory/AbstractCommonBuilderFactory.doTryGetBuilder:(Ljava/lang/String;Ljava/lang/reflect/Type;Ljava/util/List;Ljava/lang/Class;Ljava/lang/Class;)Lorg/jfaster/mango/crud/Builder", "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/crud/common/builder/CommonGetBuilder.buildSql:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__4d5e587_437da1d__CommonFindByIdsBuilderFactoryTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "4d5e5879ea31bb49b957087587f8baa418be4a9a", "rev2": "437da1d069f1ffa45fa79340307e010fa88fddb4", "rev1_date": "2019-08-30T08:34:33Z", "rev2_date": "2019-08-30T09:27:05Z", "git_diff_url": "https://github.com/jfaster/mango/compare/4d5e5879ea31bb49b957087587f8baa418be4a9a...437da1d069f1ffa45fa79340307e010fa88fddb4", "test_file": "src/test/java/org/jfaster/mango/crud/common/factory/CommonFindByIdsBuilderFactoryTest.java", "test_changes": [{"change_id": "1713_jfaster_mango-mango-2.0.1_4d5e587_437da1d_CommonFindByIdsBuilderFactoryTest", "test_sign": "org/jfaster/mango/crud/common/factory/CommonFindByIdsBuilderFactoryTest.test:()V", "class": "CommonFindByIdsBuilderFactoryTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.crud.common.factory.CommonFindByIdsBuilderFactoryTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n CommonFindByIdsBuilderFactory factory = new CommonFindByIdsBuilderFactory();\n String name = \"findByIds\";\n Class entityClass = Order.class;\n Class idClass = Integer.class;\n Type returnType = DynamicTokens.iterableToken(TypeToken.of(entityClass)).getType();\n List parameterTypes = Lists.newArrayList(DynamicTokens.iterableToken(TypeToken.of(idClass)).getType());\n Builder b = factory.doTryGetBuilder(name, returnType, parameterTypes, entityClass, idClass);\n assertThat(b, notNullValue());\n assertThat(b.buildSql(), equalTo(\"select id, userid, user_age from #table where id in (:1)\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-49"], "old_production_code": "", "new_production_code": "public static TypeToken> iterableToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "26-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 3.0931, "method_coverage_gold": 4.7075, "line_coverage_gold": 3.8864, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["93ed6f34b17833da101f5cde751823fc9d6e9be7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/crud/common/factory/AbstractCommonBuilderFactory.doTryGetBuilder:(Ljava/lang/String;Ljava/lang/reflect/Type;Ljava/util/List;Ljava/lang/Class;Ljava/lang/Class;)Lorg/jfaster/mango/crud/Builder", "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/crud/common/builder/CommonGetBuilder.buildSql:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__4d5e587_93ed6f3__DynamicTokensTest_809d5ff0", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "4d5e5879ea31bb49b957087587f8baa418be4a9a", "rev2": "93ed6f34b17833da101f5cde751823fc9d6e9be7", "rev1_date": "2019-08-30T08:34:33Z", "rev2_date": "2019-08-30T09:22:51Z", "git_diff_url": "https://github.com/jfaster/mango/compare/4d5e5879ea31bb49b957087587f8baa418be4a9a...93ed6f34b17833da101f5cde751823fc9d6e9be7", "test_file": "src/test/java/org/jfaster/mango/util/reflect/DynamicTokensTest.java", "test_changes": [{"change_id": "1578_jfaster_mango-mango-2.0.1_4d5e587_93ed6f3_DynamicTokensTest", "test_sign": "org/jfaster/mango/util/reflect/DynamicTokensTest.testIterableToken:()V", "class": "DynamicTokensTest", "method": "testIterableToken", "module": "", "junit_selector": "org.jfaster.mango.util.reflect.DynamicTokensTest#testIterableToken", "old_test_code": null, "new_test_code": "@Test\npublic void testIterableToken() throws Exception {\n TypeToken> token = DynamicTokens.iterableToken(TypeToken.of(String.class));\n Type expectedType = DynamicTokensTest.class.getMethod(\"func\").getGenericReturnType();\n assertThat(token.getType(), equalTo(expectedType));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-39"], "old_production_code": "", "new_production_code": "public static TypeToken> iterableToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "26-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.19480519480519481, "branch_coverage_gold": 1.2913, "method_coverage_gold": 2.7879, "line_coverage_gold": 1.8184, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/Types$ParameterizedTypeImpl.equals:(Ljava/lang/Object;)Z", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.iterableToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1579_jfaster_mango-mango-2.0.1_4d5e587_93ed6f3_DynamicTokensTest", "test_sign": "org/jfaster/mango/util/reflect/DynamicTokensTest.testOptionalToken:()V", "class": "DynamicTokensTest", "method": "testOptionalToken", "module": "", "junit_selector": "org.jfaster.mango.util.reflect.DynamicTokensTest#testOptionalToken", "old_test_code": null, "new_test_code": "@Test\npublic void testOptionalToken() throws Exception {\n TypeToken> token = DynamicTokens.optionalToken(TypeToken.of(String.class));\n Type expectedType = DynamicTokensTest.class.getMethod(\"func2\").getGenericReturnType();\n assertThat(token.getType(), equalTo(expectedType));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-46"], "old_production_code": "", "new_production_code": "public static TypeToken> optionalToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.19480519480519481, "branch_coverage_gold": 1.2913, "method_coverage_gold": 2.7879, "line_coverage_gold": 1.8184, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/Types$ParameterizedTypeImpl.equals:(Ljava/lang/Object;)Z", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.optionalToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__81ea9c0_c20e97d__DefaultParameterContext1Test_192b326c", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "81ea9c0ce966f1c931570704e172d7584bbd1097", "rev2": "c20e97df17ee9266a07800e3dfda15acc8deb528", "rev1_date": "2016-08-26T02:54:21Z", "rev2_date": "2016-08-26T08:34:56Z", "git_diff_url": "https://github.com/jfaster/mango/compare/81ea9c0ce966f1c931570704e172d7584bbd1097...c20e97df17ee9266a07800e3dfda15acc8deb528", "test_file": "src/test/java/org/jfaster/mango/binding/DefaultParameterContext1Test.java", "test_changes": [{"change_id": "1676_jfaster_mango-mango-2.0.1_81ea9c0_c20e97d_DefaultParameterContext1Test", "test_sign": "org/jfaster/mango/binding/DefaultParameterContext1Test.testNotReadableParameterException:()V", "class": "DefaultParameterContext1Test", "method": "testNotReadableParameterException", "module": "", "junit_selector": "org.jfaster.mango.binding.DefaultParameterContext1Test#testNotReadableParameterException", "old_test_code": null, "new_test_code": "@Test\npublic void testNotReadableParameterException() throws Exception {\n thrown.expect(BindingException.class);\n thrown.expectMessage(\"Parameter '3' not found, available root parameters are [1, 2]\");\n List empty = Collections.emptyList();\n TypeToken t = new TypeToken() {\n };\n ParameterDescriptor p = ParameterDescriptor.create(0, t.getType(), empty, \"1\");\n ParameterDescriptor p2 = ParameterDescriptor.create(1, t.getType(), empty, \"2\");\n List pds = Arrays.asList(p, p2);\n ParameterContext ctx = DefaultParameterContext.create(pds);\n ctx.getBindingParameterInvoker(BindingParameter.create(\"3\", \"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-71"], "old_production_code": "", "new_production_code": "public static ParameterDescriptor create(int position, Type type, List annotations, String name) {\n return new ParameterDescriptor(position, type, annotations, name);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "focal_method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.2262, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1724, "class": 0.0, "tfidf": 0.2158}}, {"dep_id": 1, "method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "line_nums_new": "64-73", "dependency_updated": "inserted", "score": 0.1847, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.3793, "class": 0.0, "tfidf": 0.1445}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.5393, "method_coverage_gold": 1.7518, "line_coverage_gold": 1.1598, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "org/jfaster/mango/binding/BindingParameter.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jfaster/mango/binding/BindingParameter", "org/jfaster/mango/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "org/jfaster/mango/binding/DefaultParameterContext.create:(Ljava/util/List;)Lorg/jfaster/mango/binding/DefaultParameterContext"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1677_jfaster_mango-mango-2.0.1_81ea9c0_c20e97d_DefaultParameterContext1Test", "test_sign": "org/jfaster/mango/binding/DefaultParameterContext1Test.testSelectAndUpdate:()V", "class": "DefaultParameterContext1Test", "method": "testSelectAndUpdate", "module": "", "junit_selector": "org.jfaster.mango.binding.DefaultParameterContext1Test#testSelectAndUpdate", "old_test_code": null, "new_test_code": "@Test\npublic void testSelectAndUpdate() throws Exception {\n List empty = Collections.emptyList();\n TypeToken t0 = new TypeToken() {\n };\n ParameterDescriptor p0 = ParameterDescriptor.create(0, t0.getType(), empty, \"1\");\n TypeToken t1 = new TypeToken() {\n };\n ParameterDescriptor p1 = ParameterDescriptor.create(1, t1.getType(), empty, \"2\");\n List pds = Arrays.asList(p0, p1);\n ParameterContext ctx = DefaultParameterContext.create(pds);\n assertThat(ctx.getBindingParameterInvoker(BindingParameter.create(\"1\", \"\")).getTargetType(), equalTo(t0.getType()));\n assertThat(ctx.getBindingParameterInvoker(BindingParameter.create(\"2\", \"\")).getTargetType(), equalTo(t1.getType()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-52"], "old_production_code": "", "new_production_code": "public static ParameterDescriptor create(int position, Type type, List annotations, String name) {\n return new ParameterDescriptor(position, type, annotations, name);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "focal_method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.2014, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2667, "class": 0.0, "tfidf": 0.1692}}, {"dep_id": 1, "method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "line_nums_new": "64-73", "dependency_updated": "inserted", "score": 0.1083, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.1923, "class": 0.0, "tfidf": 0.0948}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.7096, "method_coverage_gold": 1.952, "line_coverage_gold": 1.3411, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "org/jfaster/mango/binding/FunctionalBindingParameterInvoker.getTargetType:()Ljava/lang/reflect/Type", "org/jfaster/mango/binding/BindingParameter.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jfaster/mango/binding/BindingParameter", "org/jfaster/mango/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "org/jfaster/mango/binding/DefaultParameterContext.create:(Ljava/util/List;)Lorg/jfaster/mango/binding/DefaultParameterContext"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1678_jfaster_mango-mango-2.0.1_81ea9c0_c20e97d_DefaultParameterContext1Test", "test_sign": "org/jfaster/mango/binding/DefaultParameterContext1Test.testNotReadablePropertyException:()V", "class": "DefaultParameterContext1Test", "method": "testNotReadablePropertyException", "module": "", "junit_selector": "org.jfaster.mango.binding.DefaultParameterContext1Test#testNotReadablePropertyException", "old_test_code": null, "new_test_code": "@Test\npublic void testNotReadablePropertyException() throws Exception {\n thrown.expect(BindingException.class);\n thrown.expectMessage(\"Parameter ':1.id' can't be readable; caused by: There is no getter for property named 'id' in 'class java.lang.String'\");\n List empty = Collections.emptyList();\n TypeToken t = new TypeToken() {\n };\n ParameterDescriptor p = ParameterDescriptor.create(0, t.getType(), empty, \"1\");\n List pds = Arrays.asList(p);\n ParameterContext ctx = DefaultParameterContext.create(pds);\n ctx.getBindingParameterInvoker(BindingParameter.create(\"1\", \"id\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-86"], "old_production_code": "", "new_production_code": "public static ParameterDescriptor create(int position, Type type, List annotations, String name) {\n return new ParameterDescriptor(position, type, annotations, name);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "focal_method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.2171, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1786, "class": 0.0, "tfidf": 0.1727}}, {"dep_id": 1, "method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "line_nums_new": "64-73", "dependency_updated": "inserted", "score": 0.1199, "signal_scores": {"nc": 0.0, "lcs_u": 0.3462, "ed": 0.2143, "class": 0.0, "tfidf": 0.1001}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.3909, "method_coverage_gold": 3.1532, "line_coverage_gold": 2.3922, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "org/jfaster/mango/binding/BindingParameter.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jfaster/mango/binding/BindingParameter", "org/jfaster/mango/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "org/jfaster/mango/binding/DefaultParameterContext.create:(Ljava/util/List;)Lorg/jfaster/mango/binding/DefaultParameterContext"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__81ea9c0_c20e97d__DefaultParameterContextTest_31fd3324", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "81ea9c0ce966f1c931570704e172d7584bbd1097", "rev2": "c20e97df17ee9266a07800e3dfda15acc8deb528", "rev1_date": "2016-08-26T02:54:21Z", "rev2_date": "2016-08-26T08:34:56Z", "git_diff_url": "https://github.com/jfaster/mango/compare/81ea9c0ce966f1c931570704e172d7584bbd1097...c20e97df17ee9266a07800e3dfda15acc8deb528", "test_file": "src/test/java/org/jfaster/mango/binding/DefaultParameterContextTest.java", "test_changes": [{"change_id": "1675_jfaster_mango-mango-2.0.1_81ea9c0_c20e97d_DefaultParameterContextTest", "test_sign": "org/jfaster/mango/binding/DefaultParameterContextTest.testGetParameterNameByPosition:()V", "class": "DefaultParameterContextTest", "method": "testGetParameterNameByPosition", "module": "", "junit_selector": "org.jfaster.mango.binding.DefaultParameterContextTest#testGetParameterNameByPosition", "old_test_code": null, "new_test_code": "@Test\npublic void testGetParameterNameByPosition() throws Exception {\n List empty = Collections.emptyList();\n TypeToken t0 = TypeToken.of(String.class);\n ParameterDescriptor p0 = ParameterDescriptor.create(0, t0.getType(), empty, \"1\");\n TypeToken t1 = new TypeToken() {\n };\n ParameterDescriptor p1 = ParameterDescriptor.create(1, t1.getType(), empty, \"2\");\n List pds = Arrays.asList(p0, p1);\n ParameterContext ctx = DefaultParameterContext.create(pds);\n assertThat(ctx.getBindingParameterInvoker(BindingParameter.create(\"1\", \"\")).getTargetType(), equalTo(t0.getType()));\n assertThat(ctx.getBindingParameterInvoker(BindingParameter.create(\"2\", \"\")).getTargetType(), equalTo(t1.getType()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-49"], "old_production_code": "", "new_production_code": "@Override\npublic BindingParameterInvoker getBindingParameterInvoker(BindingParameter bindingParameter) {\n String parameterName = bindingParameter.getParameterName();\n Type type = nameToTypeMap.get(parameterName);\n if (type == null) {\n throw new BindingException(\"Parameter '\" + parameterName + \"' not found, \" + \"available root parameters are \" + nameToTypeMap.keySet());\n }\n return FunctionalBindingParameterInvoker.create(type, bindingParameter);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "focal_method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "line_nums_new": "64-73", "dependency_updated": "inserted", "score": 0.3435, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2308, "class": 1.0, "tfidf": 0.0945}}, {"dep_id": 0, "method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.1827, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1538, "class": 0.0, "tfidf": 0.1687}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.7096, "method_coverage_gold": 2.002, "line_coverage_gold": 1.3531, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/reflect/TypeToken", "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "org/jfaster/mango/binding/DefaultParameterContext.create:(Ljava/util/List;)Lorg/jfaster/mango/binding/DefaultParameterContext", "org/jfaster/mango/binding/FunctionalBindingParameterInvoker.getTargetType:()Ljava/lang/reflect/Type", "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "org/jfaster/mango/binding/BindingParameter.create:(Ljava/lang/String;Ljava/lang/String;)Lorg/jfaster/mango/binding/BindingParameter"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/reflect/descriptor/ParameterDescriptor.create:(ILjava/lang/reflect/Type;Ljava/util/List;Ljava/lang/String;)Lorg/jfaster/mango/reflect/descriptor/ParameterDescriptor", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/reflect/descriptor/ParameterDescriptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/binding/DefaultParameterContext.getBindingParameterInvoker:(Lorg/jfaster/mango/binding/BindingParameter;)Lorg/jfaster/mango/binding/BindingParameterInvoker", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/binding/DefaultParameterContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__b10cc36_f698da8__CommonFindAllPageBuilderFactoryTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "b10cc367352913908c2f1433f256f9e34d4c88bc", "rev2": "f698da8539508ff96327bd6a339456f3b20d8bb5", "rev1_date": "2019-09-05T06:49:02Z", "rev2_date": "2019-09-05T10:06:02Z", "git_diff_url": "https://github.com/jfaster/mango/compare/b10cc367352913908c2f1433f256f9e34d4c88bc...f698da8539508ff96327bd6a339456f3b20d8bb5", "test_file": "src/test/java/org/jfaster/mango/crud/common/factory/CommonFindAllPageBuilderFactoryTest.java", "test_changes": [{"change_id": "1701_jfaster_mango-mango-2.0.1_b10cc36_f698da8_CommonFindAllPageBuilderFactoryTest", "test_sign": "org/jfaster/mango/crud/common/factory/CommonFindAllPageBuilderFactoryTest.test:()V", "class": "CommonFindAllPageBuilderFactoryTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.crud.common.factory.CommonFindAllPageBuilderFactoryTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n CommonFindAllPageBuilderFactory factory = new CommonFindAllPageBuilderFactory();\n String name = \"findAll\";\n Class entityClass = Order.class;\n Class idClass = Integer.class;\n Type returnType = DynamicTokens.pageResultToken(TypeToken.of(entityClass)).getType();\n List parameterTypes = Lists.newArrayList(Page.class);\n Builder b = factory.doTryGetBuilder(name, returnType, parameterTypes, entityClass, idClass);\n assertThat(b, notNullValue());\n assertThat(b.buildSql(), equalTo(\"select id, userid, user_age from #table\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-50"], "old_production_code": "", "new_production_code": "public static TypeToken> pageResultToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.pageResultToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.pageResultToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "44-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0221, "method_coverage_gold": 4.6112, "line_coverage_gold": 3.8029, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/crud/common/builder/CommonGetAllBuilder.buildSql:()Ljava/lang/String", "org/jfaster/mango/util/reflect/DynamicTokens.pageResultToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/crud/common/factory/AbstractCommonBuilderFactory.doTryGetBuilder:(Ljava/lang/String;Ljava/lang/reflect/Type;Ljava/util/List;Ljava/lang/Class;Ljava/lang/Class;)Lorg/jfaster/mango/crud/Builder", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.pageResultToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__b10cc36_f698da8__CommonFindAllSortBuilderFactoryTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "b10cc367352913908c2f1433f256f9e34d4c88bc", "rev2": "f698da8539508ff96327bd6a339456f3b20d8bb5", "rev1_date": "2019-09-05T06:49:02Z", "rev2_date": "2019-09-05T10:06:02Z", "git_diff_url": "https://github.com/jfaster/mango/compare/b10cc367352913908c2f1433f256f9e34d4c88bc...f698da8539508ff96327bd6a339456f3b20d8bb5", "test_file": "src/test/java/org/jfaster/mango/crud/common/factory/CommonFindAllSortBuilderFactoryTest.java", "test_changes": [{"change_id": "1702_jfaster_mango-mango-2.0.1_b10cc36_f698da8_CommonFindAllSortBuilderFactoryTest", "test_sign": "org/jfaster/mango/crud/common/factory/CommonFindAllSortBuilderFactoryTest.test:()V", "class": "CommonFindAllSortBuilderFactoryTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.crud.common.factory.CommonFindAllSortBuilderFactoryTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n CommonFindAllSortBuilderFactory factory = new CommonFindAllSortBuilderFactory();\n String name = \"findAll\";\n Class entityClass = Order.class;\n Class idClass = Integer.class;\n Type returnType = DynamicTokens.listToken(TypeToken.of(entityClass)).getType();\n List parameterTypes = Lists.newArrayList(Sort.class);\n Builder b = factory.doTryGetBuilder(name, returnType, parameterTypes, entityClass, idClass);\n assertThat(b, notNullValue());\n assertThat(b.buildSql(), equalTo(\"select id, userid, user_age from #table\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-50"], "old_production_code": "", "new_production_code": "public static TypeToken> listToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.listToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.listToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "34-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0221, "method_coverage_gold": 4.6112, "line_coverage_gold": 3.8029, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/crud/common/builder/CommonGetAllBuilder.buildSql:()Ljava/lang/String", "org/jfaster/mango/util/reflect/DynamicTokens.listToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/crud/common/factory/AbstractCommonBuilderFactory.doTryGetBuilder:(Ljava/lang/String;Ljava/lang/reflect/Type;Ljava/util/List;Ljava/lang/Class;Ljava/lang/Class;)Lorg/jfaster/mango/crud/Builder", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.listToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__da9a920_52ee091__PropertyTokenizerTest_098f6bcd", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "da9a920f4de48d120c315a9f6ceb9480652da613", "rev2": "52ee091d50931a56475c8fb5e88ea1af1e4731c6", "rev1_date": "2016-08-30T01:34:39Z", "rev2_date": "2016-08-30T08:27:28Z", "git_diff_url": "https://github.com/jfaster/mango/compare/da9a920f4de48d120c315a9f6ceb9480652da613...52ee091d50931a56475c8fb5e88ea1af1e4731c6", "test_file": "src/test/java/org/jfaster/mango/util/PropertyTokenizerTest.java", "test_changes": [{"change_id": "1577_jfaster_mango-mango-2.0.1_da9a920_52ee091_PropertyTokenizerTest", "test_sign": "org/jfaster/mango/util/PropertyTokenizerTest.test:()V", "class": "PropertyTokenizerTest", "method": "test", "module": "", "junit_selector": "org.jfaster.mango.util.PropertyTokenizerTest#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() throws Exception {\n PropertyTokenizer prop = new PropertyTokenizer(\"a.b.c\");\n assertThat(prop.getName(), equalTo(\"a\"));\n assertThat(prop.getChildren(), equalTo(\"b.c\"));\n PropertyTokenizer prop2 = new PropertyTokenizer(\"a\");\n assertThat(prop2.getName(), equalTo(\"a\"));\n assertThat(prop2.getChildren(), nullValue());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-23"], "old_production_code": "", "new_production_code": "@Nullable\npublic String getName() {\n return name;\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/PropertyTokenizer.java", "focal_method_sign": "org/jfaster/mango/util/PropertyTokenizer.getName:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/PropertyTokenizer.getName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/PropertyTokenizer.java", "line_nums_new": "41-44", "dependency_updated": "inserted", "score": 0.2773, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.0642}}, {"dep_id": 1, "method_sign": "org/jfaster/mango/util/PropertyTokenizer.getChildren:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/PropertyTokenizer.java", "line_nums_new": "46-49", "dependency_updated": "inserted", "score": 0.2504, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.0909, "class": 1.0, "tfidf": 0.0642}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1696, "method_coverage_gold": 0.2488, "line_coverage_gold": 0.1565, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/PropertyTokenizer.getName:()Ljava/lang/String", "org/jfaster/mango/util/PropertyTokenizer.getChildren:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/PropertyTokenizer.getName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/PropertyTokenizer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jfaster/mango/util/PropertyTokenizer.getChildren:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/PropertyTokenizer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__da9a920_52ee091__ConsoleLoggerTest_6bd91e09", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "da9a920f4de48d120c315a9f6ceb9480652da613", "rev2": "52ee091d50931a56475c8fb5e88ea1af1e4731c6", "rev1_date": "2016-08-30T01:34:39Z", "rev2_date": "2016-08-30T08:27:28Z", "git_diff_url": "https://github.com/jfaster/mango/compare/da9a920f4de48d120c315a9f6ceb9480652da613...52ee091d50931a56475c8fb5e88ea1af1e4731c6", "test_file": "src/test/java/org/jfaster/mango/util/logging/ConsoleLoggerTest.java", "test_changes": [{"change_id": "1576_jfaster_mango-mango-2.0.1_da9a920_52ee091_ConsoleLoggerTest", "test_sign": "org/jfaster/mango/util/logging/ConsoleLoggerTest.testMsg:()V", "class": "ConsoleLoggerTest", "method": "testMsg", "module": "", "junit_selector": "org.jfaster.mango.util.logging.ConsoleLoggerTest#testMsg", "old_test_code": null, "new_test_code": "@Test\npublic void testMsg() throws Exception {\n ConsoleLogger logger = new ConsoleLogger(\"org\");\n logger.trace(\"ok\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-30"], "old_production_code": "", "new_production_code": "@Override\npublic void trace(String msg) {\n println(msg);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/logging/ConsoleLogger.java", "focal_method_sign": "org/jfaster/mango/util/logging/ConsoleLogger.trace:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/logging/ConsoleLogger.trace:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/logging/ConsoleLogger.java", "line_nums_new": "36-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0283, "method_coverage_gold": 0.2488, "line_coverage_gold": 0.1444, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/logging/ConsoleLogger.trace:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/logging/ConsoleLogger.trace:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/logging/ConsoleLogger.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jfaster_mango-mango-2.0.1__f8db26d_4afb23a__DynamicTokensTest_f29539ab", "project_name": "jfaster_mango-mango-2.0.1", "git_clone_url": "https://github.com/jfaster/mango.git", "rev1": "f8db26dfaa6fee1751783c075c1937279a581a60", "rev2": "4afb23adeb73dad442606dce9c8c157184d67c1e", "rev1_date": "2017-04-27T07:06:08Z", "rev2_date": "2017-04-27T11:17:02Z", "git_diff_url": "https://github.com/jfaster/mango/compare/f8db26dfaa6fee1751783c075c1937279a581a60...4afb23adeb73dad442606dce9c8c157184d67c1e", "test_file": "src/test/java/org/jfaster/mango/util/reflect/DynamicTokensTest.java", "test_changes": [{"change_id": "1698_jfaster_mango-mango-2.0.1_f8db26d_4afb23a_DynamicTokensTest", "test_sign": "org/jfaster/mango/util/reflect/DynamicTokensTest.testCollectionToken:()V", "class": "DynamicTokensTest", "method": "testCollectionToken", "module": "", "junit_selector": "org.jfaster.mango.util.reflect.DynamicTokensTest#testCollectionToken", "old_test_code": null, "new_test_code": "@Test\npublic void testCollectionToken() throws Exception {\n TypeToken> token = DynamicTokens.collectionToken(TypeToken.of(String.class));\n Type expectedType = DynamicTokensTest.class.getMethod(\"func\").getGenericReturnType();\n assertThat(token.getType(), equalTo(expectedType));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-37"], "old_production_code": "", "new_production_code": "public static TypeToken> collectionToken(TypeToken entityToken) {\n return new TypeToken>() {\n }.where(new TypeParameter() {\n }, entityToken);\n}", "focal_file_path": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "focal_method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.collectionToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.collectionToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "line_nums_new": "26-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.19607843137254902, "branch_coverage_gold": 1.1882, "method_coverage_gold": 2.6304, "line_coverage_gold": 1.6798, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jfaster/mango/util/reflect/Types$ParameterizedTypeImpl.equals:(Ljava/lang/Object;)Z", "org/jfaster/mango/util/reflect/TypeToken.of:(Ljava/lang/Class;)Lorg/jfaster/mango/util/reflect/TypeToken", "org/jfaster/mango/util/reflect/TypeToken.getType:()Ljava/lang/reflect/Type", "org/jfaster/mango/util/reflect/DynamicTokens.collectionToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jfaster/mango/util/reflect/DynamicTokens.collectionToken:(Lorg/jfaster/mango/util/reflect/TypeToken;)Lorg/jfaster/mango/util/reflect/TypeToken", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jfaster/mango/util/reflect/DynamicTokens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "mango-2.0.1", "java_version": 8} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__ValidateTest_6c56e8c8", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/helper/ValidateTest.java", "test_changes": [{"change_id": "4034_jhy_jsoup-jsoup-1.22.1_1841811_0708871_ValidateTest", "test_sign": "org/jsoup/helper/ValidateTest.expectNotNull:()V", "class": "ValidateTest", "method": "expectNotNull", "module": "", "junit_selector": "org.jsoup.helper.ValidateTest#expectNotNull", "old_test_code": null, "new_test_code": "@Test\nvoid expectNotNull() {\n String foo = \"Foo\";\n String foo2 = Validate.expectNotNull(foo);\n assertSame(foo, foo2);\n String bar = null;\n boolean threw = false;\n try {\n Validate.expectNotNull(bar);\n } catch (ValidationException e) {\n threw = true;\n assertEquals(\"Object must not be null\", e.getMessage());\n }\n assertTrue(threw);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-127"], "old_production_code": "", "new_production_code": "public static T expectNotNull(@Nullable T obj) {\n if (obj == null)\n throw new ValidationException(\"Object must not be null\");\n else\n return obj;\n}", "focal_file_path": "src/main/java/org/jsoup/helper/Validate.java", "focal_method_sign": "org/jsoup/helper/Validate.expectNotNull:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/helper/Validate.expectNotNull:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/helper/Validate.java", "line_nums_new": "83-87", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1164, "method_coverage_gold": 0.1869, "line_coverage_gold": 0.1433, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/helper/Validate.expectNotNull:(Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/helper/Validate.expectNotNull:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/helper/Validate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__ElementTest_3c99ca34", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/nodes/ElementTest.java", "test_changes": [{"change_id": "4014_jhy_jsoup-jsoup-1.22.1_1841811_0708871_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.expectFirstThrows:()V", "class": "ElementTest", "method": "expectFirstThrows", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#expectFirstThrows", "old_test_code": null, "new_test_code": "@Test\nvoid expectFirstThrows() {\n Document doc = Jsoup.parse(\"One Two\");\n boolean threw = false;\n try {\n doc.expectFirstNode(\"::comment\", Comment.class);\n } catch (IllegalArgumentException e) {\n threw = true;\n assertEquals(\"No nodes matched the query '::comment' in the document.\", e.getMessage());\n }\n assertTrue(threw);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["3239-3249"], "old_production_code": "", "new_production_code": "public T expectFirstNode(String cssQuery, Class type) {\n return Validate.expectNotNull(selectFirstNode(cssQuery, type), parent() != null ? \"No nodes matched the query '%s' on element '%s'.\" : \"No nodes matched the query '%s' in the document.\", cssQuery, this.tagName());\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "690-698", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 8.7294, "method_coverage_gold": 21.9626, "line_coverage_gold": 15.413, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4016_jhy_jsoup-jsoup-1.22.1_1841811_0708871_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.expectFirstNode:()V", "class": "ElementTest", "method": "expectFirstNode", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#expectFirstNode", "old_test_code": null, "new_test_code": "@Test\nvoid expectFirstNode() {\n Document doc = Jsoup.parse(\"One Two\");\n TextNode text = doc.expectFirstNode(\"::text\", TextNode.class);\n assertEquals(\"1\", text.parent().id());\n TextNode text2 = doc.selectFirstNode(\"::text\", TextNode.class);\n assertSame(text, text2);\n assertNull(doc.selectFirstNode(\"::comment\", Comment.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["3228-3237"], "old_production_code": "", "new_production_code": "public T expectFirstNode(String cssQuery, Class type) {\n return Validate.expectNotNull(selectFirstNode(cssQuery, type), parent() != null ? \"No nodes matched the query '%s' on element '%s'.\" : \"No nodes matched the query '%s' in the document.\", cssQuery, this.tagName());\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "690-698", "dependency_updated": "inserted", "score": 0.7747, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0423}}, {"dep_id": 2, "method_sign": "org/jsoup/nodes/Element.selectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "664-666", "dependency_updated": "inserted", "score": 0.4849, "signal_scores": {"nc": 0.0, "lcs_u": 0.8667, "ed": 0.8, "class": 1.0, "tfidf": 0.0507}}, {"dep_id": 0, "method_sign": "org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "line_nums_new": "47-50", "dependency_updated": "inserted", "score": 0.1266, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 0.0, "tfidf": 0.023}}], "coverage_gold": 0.9, "branch_coverage_gold": 8.904, "method_coverage_gold": 22.2897, "line_coverage_gold": 15.5562, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Element.selectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Element.id:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.expectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectFirstNode:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__NodeTest_e15d9eb4", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/nodes/NodeTest.java", "test_changes": [{"change_id": "4031_jhy_jsoup-jsoup-1.22.1_1841811_0708871_NodeTest", "test_sign": "org/jsoup/nodes/NodeTest.firstLastSibling:()V", "class": "NodeTest", "method": "firstLastSibling", "module": "", "junit_selector": "org.jsoup.nodes.NodeTest#firstLastSibling", "old_test_code": null, "new_test_code": "@Test\nvoid firstLastSibling() {\n Document doc = Jsoup.parse(\"
One Two Three\");\n Elements spans = doc.select(\"span\");\n TextNode text = (TextNode) spans.first().nextSibling();\n assertSame(spans.get(0), text.firstSibling());\n assertSame(spans.get(1), text.lastSibling());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["466-472"], "old_production_code": "", "new_production_code": "public Node firstSibling() {\n if (parentNode != null) {\n return parentNode.firstChild();\n } else\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Node.java", "focal_method_sign": "org/jsoup/nodes/Node.firstSibling:()Lorg/jsoup/nodes/Node", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/nodes/Node.firstSibling:()Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "line_nums_new": "727-733", "dependency_updated": "inserted", "score": 0.4931, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.75, "class": 1.0, "tfidf": 0.0206}}, {"dep_id": 0, "method_sign": "org/jsoup/nodes/Node.lastSibling:()Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "line_nums_new": "741-747", "dependency_updated": "inserted", "score": 0.4828, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6875, "class": 1.0, "tfidf": 0.0206}}, {"dep_id": 2, "method_sign": "org/jsoup/select/Elements.first:()Lorg/jsoup/nodes/Element", "file_path_old": "src/main/java/org/jsoup/select/Elements.java", "line_nums_old": "635-637", "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "609-611", "dependency_updated": "updated", "score": 0.2512, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3125, "class": 0.0, "tfidf": 0.0987}}], "coverage_gold": 0.8125, "branch_coverage_gold": 8.1474, "method_coverage_gold": 21.3551, "line_coverage_gold": 14.7375, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements", "org/jsoup/select/Elements.first:()Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Node.nextSibling:()Lorg/jsoup/nodes/Node", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Node.firstSibling:()Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Node.lastSibling:()Lorg/jsoup/nodes/Node"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Node.lastSibling:()Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Node.firstSibling:()Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/select/Elements.first:()Lorg/jsoup/nodes/Element", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Elements.java", "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__TextNodeTest_a4f09cfe", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/nodes/TextNodeTest.java", "test_changes": [{"change_id": "4023_jhy_jsoup-jsoup-1.22.1_1841811_0708871_TextNodeTest", "test_sign": "org/jsoup/nodes/TextNodeTest.parentElement:()V", "class": "TextNodeTest", "method": "parentElement", "module": "", "junit_selector": "org.jsoup.nodes.TextNodeTest#parentElement", "old_test_code": null, "new_test_code": "@Test\nvoid parentElement() {\n Document doc = Jsoup.parse(\"

Text

\");\n TextNode text = doc.selectNodes(\"::text\", TextNode.class).first();\n assertNotNull(text);\n Element p = text.parent();\n assertNotNull(p);\n p = ((Node) text).parentElement();\n assertNotNull(p);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["230-238"], "old_production_code": "", "new_production_code": "@Nullable\npublic Element parentElement() {\n return parentNode;\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Node.java", "focal_method_sign": "org/jsoup/nodes/Node.parentElement:()Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/nodes/Node.parentElement:()Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "line_nums_new": "341-343", "dependency_updated": "inserted", "score": 0.6034, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.1144}}, {"dep_id": 0, "method_sign": "org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "line_nums_new": "47-50", "dependency_updated": "inserted", "score": 0.2678, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4615, "class": 0.0, "tfidf": 0.0652}}, {"dep_id": 3, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": 0.1121, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.2308, "class": 0.0, "tfidf": 0.0422}}, {"dep_id": 2, "method_sign": "org/jsoup/select/Nodes.first:()Lorg/jsoup/nodes/Node", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "line_nums_new": "173-175", "dependency_updated": "inserted", "score": 0.1031, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 0.0, "tfidf": 0.0307}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.3608, "method_coverage_gold": 21.3551, "line_coverage_gold": 14.6658, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Nodes.first:()Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Node.parentElement:()Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/LeafNode.parent:()Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Node.parentElement:()Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Node.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/select/Nodes.first:()Lorg/jsoup/nodes/Node", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__NodesTest_74ed77cc", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/select/NodesTest.java", "test_changes": [{"change_id": "4013_jhy_jsoup-jsoup-1.22.1_1841811_0708871_NodesTest", "test_sign": "org/jsoup/select/NodesTest.wrap:()V", "class": "NodesTest", "method": "wrap", "module": "", "junit_selector": "org.jsoup.select.NodesTest#wrap", "old_test_code": null, "new_test_code": "@Test\nvoid wrap() {\n Document doc = Jsoup.parse(\"One Two Three\");\n Nodes nodes = doc.selectNodes(\"::text:contains(o)\", TextNode.class);\n nodes.wrap(\"\");\n assertEquals(\"One Two Three\", doc.body().html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-30"], "old_production_code": "", "new_production_code": "public Nodes wrap(String html) {\n Validate.notEmpty(html);\n for (T node : this) {\n node.wrap(html);\n }\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/select/Nodes.java", "focal_method_sign": "org/jsoup/select/Nodes.wrap:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Nodes.wrap:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "line_nums_new": "160-166", "dependency_updated": "inserted", "score": 0.788, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 1, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": 0.0094, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0399}}], "coverage_gold": 0.9473684210526315, "branch_coverage_gold": 12.9195, "method_coverage_gold": 26.729, "line_coverage_gold": 19.3941, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Nodes.wrap:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Document.body:()Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Element.html:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Nodes.wrap:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4018_jhy_jsoup-jsoup-1.22.1_1841811_0708871_NodesTest", "test_sign": "org/jsoup/select/NodesTest.before:()V", "class": "NodesTest", "method": "before", "module": "", "junit_selector": "org.jsoup.select.NodesTest#before", "old_test_code": null, "new_test_code": "@Test\nvoid before() {\n Document doc = Jsoup.parse(\"One Two Three\");\n Nodes nodes = doc.selectNodes(\"::text:contains(o)\", TextNode.class);\n nodes.before(\"\");\n assertEquals(\"One Two Three\", doc.body().html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-16"], "old_production_code": "", "new_production_code": "public Nodes before(String html) {\n for (T node : this) {\n node.before(html);\n }\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/select/Nodes.java", "focal_method_sign": "org/jsoup/select/Nodes.before:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Nodes.before:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.7896, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1058}}, {"dep_id": 1, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": 0.1022, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.2727, "class": 0.0, "tfidf": 0.039}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 12.5897, "method_coverage_gold": 26.2617, "line_coverage_gold": 18.7698, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Document.body:()Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/select/Nodes.before:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Element.html:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Nodes.before:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4022_jhy_jsoup-jsoup-1.22.1_1841811_0708871_NodesTest", "test_sign": "org/jsoup/select/NodesTest.after:()V", "class": "NodesTest", "method": "after", "module": "", "junit_selector": "org.jsoup.select.NodesTest#after", "old_test_code": null, "new_test_code": "@Test\nvoid after() {\n Document doc = Jsoup.parse(\"One Two Three\");\n Nodes nodes = doc.selectNodes(\"::text:contains(o)\", TextNode.class);\n nodes.after(\"\");\n assertEquals(\"One Two Three\", doc.body().html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-23"], "old_production_code": "", "new_production_code": "public Nodes after(String html) {\n for (T node : this) {\n node.after(html);\n }\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/select/Nodes.java", "focal_method_sign": "org/jsoup/select/Nodes.after:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Nodes.after:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "line_nums_new": "144-149", "dependency_updated": "inserted", "score": 0.7896, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.1058}}, {"dep_id": 1, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": 0.0712, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.1818, "class": 0.0, "tfidf": 0.039}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 12.5897, "method_coverage_gold": 26.2617, "line_coverage_gold": 18.7698, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Document.body:()Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/select/Nodes.after:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Element.html:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Nodes.after:(Ljava/lang/String;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Nodes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__1841811_0708871__SelectorTest_1a3e1e89", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "1841811422d1f46d8efae5dfdcf7c8ed0f1643f8", "rev2": "070887196158c084e39eb7499111f1e0d513ec38", "rev1_date": "2025-06-18T02:11:45Z", "rev2_date": "2025-06-18T03:38:00Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/1841811422d1f46d8efae5dfdcf7c8ed0f1643f8...070887196158c084e39eb7499111f1e0d513ec38", "test_file": "src/test/java/org/jsoup/select/SelectorTest.java", "test_changes": [{"change_id": "4012_jhy_jsoup-jsoup-1.22.1_1841811_0708871_SelectorTest", "test_sign": "org/jsoup/select/SelectorTest.elementsViaNodeInterface:()V", "class": "SelectorTest", "method": "elementsViaNodeInterface", "module": "", "junit_selector": "org.jsoup.select.SelectorTest#elementsViaNodeInterface", "old_test_code": null, "new_test_code": "@Test\nvoid elementsViaNodeInterface() {\n Document doc = Jsoup.parse(\"

One

Two

\");\n Nodes ps = doc.selectNodes(\"p\", Element.class);\n assertEquals(2, ps.size());\n assertEquals(\"One\", ps.get(0).text());\n assertEquals(\"Two\", ps.get(1).text());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1620-1626"], "old_production_code": "", "new_production_code": "public Nodes selectNodes(String cssQuery, Class type) {\n Validate.notEmpty(cssQuery);\n return selectNodes(evaluatorOf(cssQuery), type);\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.88, "branch_coverage_gold": 8.9234, "method_coverage_gold": 21.8224, "line_coverage_gold": 15.2185, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Element.text:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4020_jhy_jsoup-jsoup-1.22.1_1841811_0708871_SelectorTest", "test_sign": "org/jsoup/select/SelectorTest.nonBlankText:()V", "class": "SelectorTest", "method": "nonBlankText", "module": "", "junit_selector": "org.jsoup.select.SelectorTest#nonBlankText", "old_test_code": null, "new_test_code": "@Test\nvoid nonBlankText() {\n Document doc = Jsoup.parse(\"

One

Two

\");\n Elements els = doc.select(\":not(:blank)\");\n assertSelectedIds(els, \"2\", \"4\");\n Nodes text = doc.selectNodes(\"::text:not(:blank)\", TextNode.class);\n assertEquals(2, text.size());\n assertEquals(\"One\", text.get(0).getWholeText());\n assertEquals(\"Two\", text.get(1).getWholeText());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1665-1674"], "old_production_code": "", "new_production_code": "public Nodes selectNodes(String cssQuery, Class type) {\n Validate.notEmpty(cssQuery);\n return selectNodes(evaluatorOf(cssQuery), type);\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0485, "method_coverage_gold": 24.6262, "line_coverage_gold": 16.8969, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/TextNode.getWholeText:()Ljava/lang/String", "org/jsoup/select/SelectorTest.assertSelectedIds:(Lorg/jsoup/select/Elements;[Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4021_jhy_jsoup-jsoup-1.22.1_1841811_0708871_SelectorTest", "test_sign": "org/jsoup/select/SelectorTest.nodeContains:()V", "class": "SelectorTest", "method": "nodeContains", "module": "", "junit_selector": "org.jsoup.select.SelectorTest#nodeContains", "old_test_code": null, "new_test_code": "@Test\nvoid nodeContains() {\n Document doc = Jsoup.parse(\"

One

Two
\");\n String q = \"div ::node:contains(One)\";\n Nodes nodes = doc.selectNodes(Selector.evaluatorOf(q));\n assertEquals(2, nodes.size());\n assertEquals(\"One\", nodes.get(0).nodeValue());\n assertEquals(\"p\", nodes.get(0).nodeName());\n assertEquals(\"One\", nodes.get(1).nodeValue());\n assertEquals(\"#text\", nodes.get(1).nodeName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1582-1592"], "old_production_code": "", "new_production_code": "@Override\npublic String nodeValue() {\n return wholeOwnText();\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.nodeValue:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.nodeValue:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "1591-1594", "dependency_updated": "inserted", "score": 0.1831, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.4167, "class": 0.0, "tfidf": 0.0697}}, {"dep_id": 2, "method_sign": "org/jsoup/nodes/LeafNode.nodeValue:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "line_nums_new": "52-55", "dependency_updated": "inserted", "score": 0.1831, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.4167, "class": 0.0, "tfidf": 0.0697}}, {"dep_id": 1, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Lorg/jsoup/select/Evaluator;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "601-603", "dependency_updated": "inserted", "score": 0.1715, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.3333, "class": 0.0, "tfidf": 0.1548}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 9.5441, "method_coverage_gold": 23.785, "line_coverage_gold": 16.0577, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.nodeValue:()Ljava/lang/String", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Lorg/jsoup/select/Evaluator;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/Element.nodeName:()Ljava/lang/String", "org/jsoup/nodes/TextNode.nodeName:()Ljava/lang/String", "org/jsoup/select/Selector.evaluatorOf:(Ljava/lang/String;)Lorg/jsoup/select/Evaluator", "org/jsoup/nodes/LeafNode.nodeValue:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.nodeValue:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.selectNodes:(Lorg/jsoup/select/Evaluator;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/LeafNode.nodeValue:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/LeafNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4029_jhy_jsoup-jsoup-1.22.1_1841811_0708871_SelectorTest", "test_sign": "org/jsoup/select/SelectorTest.selectTextNodes:()V", "class": "SelectorTest", "method": "selectTextNodes", "module": "", "junit_selector": "org.jsoup.select.SelectorTest#selectTextNodes", "old_test_code": null, "new_test_code": "@Test\nvoid selectTextNodes() {\n Document doc = Jsoup.parse(\"

One

Two

\");\n Nodes text = doc.selectNodes(\"p ::text\", TextNode.class);\n assertEquals(2, text.size());\n assertEquals(\"One\", text.get(0).getWholeText());\n assertEquals(\"Two\", text.get(1).getWholeText());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1612-1618"], "old_production_code": "", "new_production_code": "public Nodes selectNodes(String cssQuery, Class type) {\n Validate.notEmpty(cssQuery);\n return selectNodes(evaluatorOf(cssQuery), type);\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "647-650", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.7488, "method_coverage_gold": 22.3364, "line_coverage_gold": 15.2594, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "org/jsoup/nodes/TextNode.getWholeText:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.selectNodes:(Ljava/lang/String;Ljava/lang/Class;)Lorg/jsoup/select/Nodes", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__41dc7cd_5e498c6__TagTest_c0bb9807", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "41dc7cdc29becc144ec4ce7b9da8d2e1b1b163b9", "rev2": "5e498c66c54966479c523b421466ace40c6d2ea6", "rev1_date": "2025-05-11T23:42:41Z", "rev2_date": "2025-05-12T00:11:32Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/41dc7cdc29becc144ec4ce7b9da8d2e1b1b163b9...5e498c66c54966479c523b421466ace40c6d2ea6", "test_file": "src/test/java/org/jsoup/parser/TagTest.java", "test_changes": [{"change_id": "4098_jhy_jsoup-jsoup-1.22.1_41dc7cd_5e498c6_TagTest", "test_sign": "org/jsoup/parser/TagTest.stableHashcode:()V", "class": "TagTest", "method": "stableHashcode", "module": "", "junit_selector": "org.jsoup.parser.TagTest#stableHashcode", "old_test_code": null, "new_test_code": "@Test\nvoid stableHashcode() {\n HashSet tags = new HashSet<>();\n Tag img = Tag.valueOf(\"img\");\n Tag IMG = Tag.valueOf(\"IMG\");\n Tag imgS = Tag.valueOf(\"img\", NamespaceSvg, ParseSettings.htmlDefault);\n assertEquals(-2074969810, img.hashCode());\n assertEquals(-2075954866, IMG.hashCode());\n assertEquals(-292873947, imgS.hashCode());\n tags.add(img);\n tags.add(IMG);\n tags.add(imgS);\n imgS.set(Tag.Block);\n assertEquals(-292873947, imgS.hashCode());\n assertTrue(tags.contains(img));\n assertTrue(tags.contains(IMG));\n assertTrue(tags.contains(imgS));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["174-195"], "old_production_code": "@Override\npublic int hashCode() {\n return Objects.hash(tagName, namespace, normalName, options);\n}", "new_production_code": "@Override\npublic int hashCode() {\n return Objects.hash(tagName, namespace);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.hashCode:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.hashCode:()I", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "342-345", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "345-348", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4719, "method_coverage_gold": 1.937, "line_coverage_gold": 1.251, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.valueOf:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.hashCode:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.hashCode:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__4fcd4f8_aa6e0d9__ElementTest_1d391598", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "4fcd4f855e0d4a6424353b7e2d70c37cfbc6fde7", "rev2": "aa6e0d92728d67e242515d41c14188d5efe1c730", "rev1_date": "2025-03-10T23:39:45Z", "rev2_date": "2025-03-11T00:01:12Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/4fcd4f855e0d4a6424353b7e2d70c37cfbc6fde7...aa6e0d92728d67e242515d41c14188d5efe1c730", "test_file": "src/test/java/org/jsoup/nodes/ElementTest.java", "test_changes": [{"change_id": "3885_jhy_jsoup-jsoup-1.22.1_4fcd4f8_aa6e0d9_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.asList:()V", "class": "ElementTest", "method": "asList", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#asList", "old_test_code": null, "new_test_code": "@Test\npublic void asList() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n Elements els = doc.select(\"p\");\n ArrayList list = els.asList();\n assertEquals(els.size(), list.size());\n list.remove(0);\n assertEquals(3, els.size());\n assertEquals(2, list.size());\n Element el = doc.expectFirst(\"#1\");\n assertSame(doc, el.ownerDocument());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["3065-3080"], "old_production_code": "", "new_production_code": "public ArrayList asList() {\n return new ArrayList<>(this);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.asList:()Ljava/util/ArrayList", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.asList:()Ljava/util/ArrayList", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.8569, "method_coverage_gold": 20.9456, "line_coverage_gold": 14.2993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Elements.asList:()Ljava/util/ArrayList", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Node.ownerDocument:()Lorg/jsoup/nodes/Document", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.asList:()Ljava/util/ArrayList", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3886_jhy_jsoup-jsoup-1.22.1_4fcd4f8_aa6e0d9_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.deselect:()V", "class": "ElementTest", "method": "deselect", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#deselect", "old_test_code": null, "new_test_code": "@Test\npublic void deselect() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n Elements els = doc.select(\"p\");\n Element parent = doc.expectFirst(\"div\");\n Element removedByIndex = els.deselect(1);\n assertEquals(\"Two\", removedByIndex.text());\n assertEquals(2, els.size());\n assertEquals(3, parent.childrenSize());\n Element toRemove = doc.expectFirst(\"p:contains(Three)\");\n boolean removedByObject = els.deselect(toRemove);\n assertTrue(removedByObject);\n assertEquals(1, els.size());\n assertEquals(3, parent.childrenSize());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["3082-3099"], "old_production_code": "", "new_production_code": "public Element deselect(int index) {\n return super.remove(index);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.deselect:(I)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.deselect:(I)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "767-769", "dependency_updated": "inserted", "score": 0.6033, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.114}}, {"dep_id": 1, "method_sign": "org/jsoup/select/Elements.deselect:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "777-779", "dependency_updated": "inserted", "score": 0.5969, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.0867}}], "coverage_gold": 0.8787878787878788, "branch_coverage_gold": 9.0364, "method_coverage_gold": 22.0641, "line_coverage_gold": 15.2089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.childrenSize:()I", "org/jsoup/nodes/Element.text:()Ljava/lang/String", "org/jsoup/select/Elements.deselect:(I)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements", "org/jsoup/select/Elements.deselect:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.deselect:(I)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/select/Elements.deselect:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__9cb943a_005da92__ElementTest_a1bf3fa9", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "9cb943a9f2ffeeca2adcd9aa3d127df249b75515", "rev2": "005da925db2ff5fe592b79c1a4d77cb91882fcf0", "rev1_date": "2025-04-11T23:56:58Z", "rev2_date": "2025-04-12T01:06:53Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/9cb943a9f2ffeeca2adcd9aa3d127df249b75515...005da925db2ff5fe592b79c1a4d77cb91882fcf0", "test_file": "src/test/java/org/jsoup/nodes/ElementTest.java", "test_changes": [{"change_id": "3876_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.testSetTag:()V", "class": "ElementTest", "method": "testSetTag", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#testSetTag", "old_test_code": null, "new_test_code": "@Test\nvoid testSetTag() {\n Document doc = Jsoup.parse(\"
Hello
\");\n Element el = doc.expectFirst(\"em\");\n el.tag(new Tag(\"I\", NamespaceHtml));\n assertEquals(\"Hello\", el.outerHtml());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1047-1052"], "old_production_code": "", "new_production_code": "public Element tag(Tag tag) {\n Validate.notNull(tag);\n this.tag = tag;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Element.java", "focal_method_sign": "org/jsoup/nodes/Element.tag:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/nodes/Element.tag:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "239-243", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 8.7914, "method_coverage_gold": 22.8826, "line_coverage_gold": 15.4513, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Node.outerHtml:()Ljava/lang/String", "org/jsoup/nodes/Element.tag:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Element.tag:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__9cb943a_005da92__HtmlTreeBuilderTest_25de6c93", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "9cb943a9f2ffeeca2adcd9aa3d127df249b75515", "rev2": "005da925db2ff5fe592b79c1a4d77cb91882fcf0", "rev1_date": "2025-04-11T23:56:58Z", "rev2_date": "2025-04-12T01:06:53Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/9cb943a9f2ffeeca2adcd9aa3d127df249b75515...005da925db2ff5fe592b79c1a4d77cb91882fcf0", "test_file": "src/test/java/org/jsoup/parser/HtmlTreeBuilderTest.java", "test_changes": [{"change_id": "3877_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_HtmlTreeBuilderTest", "test_sign": "org/jsoup/parser/HtmlTreeBuilderTest.customRcdataTag:()V", "class": "HtmlTreeBuilderTest", "method": "customRcdataTag", "module": "", "junit_selector": "org.jsoup.parser.HtmlTreeBuilderTest#customRcdataTag", "old_test_code": null, "new_test_code": "@Test\nvoid customRcdataTag() {\n String inner = \"Blah\\nblah\\nFoo\\n"\";\n String innerText = \"Blah\\nblah\\nFoo\\n\\\"\";\n String html = \"
\" + inner + \"
\";\n TagSet custom = TagSet.Html();\n Tag x = custom.valueOf(\"x\", NamespaceHtml);\n x.set(Tag.RcData);\n Document doc = Jsoup.parse(html, Parser.htmlParser().tagSet(custom));\n Element xEl = doc.expectFirst(\"x\");\n assertEquals(x, xEl.tag());\n assertEquals(innerText, xEl.wholeText());\n Element x2 = doc.expectFirst(\"#2\");\n x2.html(inner);\n assertEquals(innerText, x2.wholeText());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-85"], "old_production_code": "", "new_production_code": "public static TagSet Html() {\n return new TagSet(HtmlTagSet);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/TagSet.java", "focal_method_sign": "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.1576, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1333, "class": 0.0, "tfidf": 0.2016}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.1576, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1333, "class": 0.0, "tfidf": 0.0765}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "171-175", "dependency_updated": "inserted", "score": 0.1469, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1333, "class": 0.0, "tfidf": 0.1562}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "224-239", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "317-326", "dependency_updated": "updated", "score": 0.0951, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0667, "class": 0.0, "tfidf": 0.1076}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.0869, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0667, "class": 0.0, "tfidf": 0.1083}}], "coverage_gold": 0.9722222222222222, "branch_coverage_gold": 11.0935, "method_coverage_gold": 25.0124, "line_coverage_gold": 17.7497, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.wholeText:()Ljava/lang/String", "org/jsoup/nodes/Element.html:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Parser.htmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3880_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_HtmlTreeBuilderTest", "test_sign": "org/jsoup/parser/HtmlTreeBuilderTest.customDataTag:()V", "class": "HtmlTreeBuilderTest", "method": "customDataTag", "module": "", "junit_selector": "org.jsoup.parser.HtmlTreeBuilderTest#customDataTag", "old_test_code": null, "new_test_code": "@Test\nvoid customDataTag() {\n String inner = \"Blah\\nblah\\nFoo\\n"\";\n String html = \"
\" + inner + \"
\";\n TagSet custom = TagSet.Html();\n Tag x = custom.valueOf(\"x\", NamespaceHtml);\n x.set(Tag.Data);\n Document doc = Jsoup.parse(html, Parser.htmlParser().tagSet(custom));\n Element xEl = doc.expectFirst(\"x\");\n assertEquals(x, xEl.tag());\n assertEquals(inner, xEl.data());\n Element x2 = doc.expectFirst(\"#2\");\n x2.html(inner);\n assertEquals(inner, xEl.data());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["87-103"], "old_production_code": "", "new_production_code": "public Tag set(int option) {\n options |= option;\n options |= Tag.Known;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.1641, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1538, "class": 0.0, "tfidf": 0.0898}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "171-175", "dependency_updated": "inserted", "score": 0.1567, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1538, "class": 0.0, "tfidf": 0.1834}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "224-239", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "317-326", "dependency_updated": "updated", "score": 0.1012, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 0.0, "tfidf": 0.1262}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.0874, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0769, "class": 0.0, "tfidf": 0.1035}}], "coverage_gold": 0.9629629629629629, "branch_coverage_gold": 10.26, "method_coverage_gold": 24.2199, "line_coverage_gold": 17.0811, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.html:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Parser.htmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.data:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__9cb943a_005da92__TagSetTest_58c92b18", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "9cb943a9f2ffeeca2adcd9aa3d127df249b75515", "rev2": "005da925db2ff5fe592b79c1a4d77cb91882fcf0", "rev1_date": "2025-04-11T23:56:58Z", "rev2_date": "2025-04-12T01:06:53Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/9cb943a9f2ffeeca2adcd9aa3d127df249b75515...005da925db2ff5fe592b79c1a4d77cb91882fcf0", "test_file": "src/test/java/org/jsoup/parser/TagSetTest.java", "test_changes": [{"change_id": "3875_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagSetTest", "test_sign": "org/jsoup/parser/TagSetTest.canRetrieveNewTagsInsensitive:()V", "class": "TagSetTest", "method": "canRetrieveNewTagsInsensitive", "module": "", "junit_selector": "org.jsoup.parser.TagSetTest#canRetrieveNewTagsInsensitive", "old_test_code": null, "new_test_code": "@Test\nvoid canRetrieveNewTagsInsensitive() {\n Document doc = Jsoup.parse(\"

One

\");\n TagSet tags = doc.parser().tagSet();\n Tag meta = tags.get(\"meta\", NamespaceHtml);\n assertNotNull(meta);\n assertTrue(meta.isKnownTag());\n Element p = doc.expectFirst(\"p\");\n assertTrue(p.tag().isKnownTag());\n assertNull(tags.get(\"FOO\", NamespaceHtml));\n p.tagName(\"FOO\");\n Tag foo = p.tag();\n assertEquals(\"foo\", foo.name());\n assertEquals(\"foo\", foo.normalName());\n assertEquals(NamespaceHtml, foo.namespace());\n assertFalse(foo.isKnownTag());\n assertSame(foo, tags.get(\"foo\", NamespaceHtml));\n assertSame(foo, tags.valueOf(\"FOO\", NamespaceHtml, doc.parser().settings()));\n assertNull(tags.get(\"foo\", \"SomeOtherNamespace\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-57"], "old_production_code": "", "new_production_code": "@Nullable\npublic Tag get(String tagName, String namespace) {\n Validate.notNull(tagName);\n Validate.notNull(namespace);\n HashMap nsTags = tags.get(namespace);\n if (nsTags == null)\n return null;\n return nsTags.get(tagName);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/TagSet.java", "focal_method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "73-80", "dependency_updated": "inserted", "score": 0.4113, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1034, "class": 1.0, "tfidf": 0.1255}}, {"dep_id": 4, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.3, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1034, "class": 1.0, "tfidf": 0.0811}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "182-186", "dependency_updated": "inserted", "score": 0.226, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2069, "class": 0.0, "tfidf": 0.0658}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.158, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1034, "class": 0.0, "tfidf": 0.0367}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "180-182", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "263-265", "dependency_updated": "updated", "score": 0.1562, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1724, "class": 0.0, "tfidf": 0.093}}], "coverage_gold": 0.9583333333333334, "branch_coverage_gold": 6.8863, "method_coverage_gold": 20.109, "line_coverage_gold": 13.2888, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.normalName:()Ljava/lang/String", "org/jsoup/nodes/Element.tagName:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "org/jsoup/parser/Tag.name:()Ljava/lang/String", "org/jsoup/parser/Tag.isKnownTag:()Z", "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.namespace:()Ljava/lang/String", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Document.parser:()Lorg/jsoup/parser/Parser", "org/jsoup/parser/Parser.settings:()Lorg/jsoup/parser/ParseSettings", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3878_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagSetTest", "test_sign": "org/jsoup/parser/TagSetTest.supplyCustomTagSet:()V", "class": "TagSetTest", "method": "supplyCustomTagSet", "module": "", "junit_selector": "org.jsoup.parser.TagSetTest#supplyCustomTagSet", "old_test_code": null, "new_test_code": "@Test\nvoid supplyCustomTagSet() {\n TagSet tags = TagSet.Html();\n tags.valueOf(\"custom\", NamespaceHtml).set(Tag.PreserveWhitespace).set(Tag.Block);\n Parser parser = Parser.htmlParser().tagSet(tags);\n Document doc = Jsoup.parse(\"\\n\\nFoo\\n Bar\", parser);\n Element custom = doc.expectFirst(\"custom\");\n assertTrue(custom.tag().preserveWhitespace());\n assertTrue(custom.tag().isBlock());\n assertEquals(\"\\n\" + \"\\n\" + \"Foo\\n\" + \" Bar\" + \"\", custom.outerHtml());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-73"], "old_production_code": "", "new_production_code": "public Tag valueOf(String tagName, String namespace) {\n return valueOf(tagName, namespace, ParseSettings.preserveCase);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/TagSet.java", "focal_method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.3043, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1667, "class": 1.0, "tfidf": 0.0553}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "171-175", "dependency_updated": "inserted", "score": 0.274, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 0.0, "tfidf": 0.1812}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.23, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1667, "class": 0.0, "tfidf": 0.1108}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.isBlock:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "135-137", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "217-219", "dependency_updated": "updated", "score": 0.1061, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1111, "class": 0.0, "tfidf": 0.0518}}, {"dep_id": 4, "method_sign": "org/jsoup/parser/Tag.preserveWhitespace:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "199-201", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "282-284", "dependency_updated": "updated", "score": 0.0781, "signal_scores": {"nc": 0.0, "lcs_u": 0.2778, "ed": 0.0556, "class": 0.0, "tfidf": 0.0847}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 8.0572, "method_coverage_gold": 22.3378, "line_coverage_gold": 14.814, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Parser.htmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Node.outerHtml:()Ljava/lang/String", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.isBlock:()Z", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/parser/Tag.preserveWhitespace:()Z", "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.isBlock:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.preserveWhitespace:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3879_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagSetTest", "test_sign": "org/jsoup/parser/TagSetTest.canRetrieveNewTagsSensitive:()V", "class": "TagSetTest", "method": "canRetrieveNewTagsSensitive", "module": "", "junit_selector": "org.jsoup.parser.TagSetTest#canRetrieveNewTagsSensitive", "old_test_code": null, "new_test_code": "@Test\nvoid canRetrieveNewTagsSensitive() {\n Document doc = Jsoup.parse(\"

One

\", \"\", Parser.htmlParser().settings(ParseSettings.preserveCase));\n TagSet tags = doc.parser().tagSet();\n Tag meta = tags.get(\"meta\", NamespaceHtml);\n assertNotNull(meta);\n assertTrue(meta.isKnownTag());\n Element p = doc.expectFirst(\"p\");\n assertTrue(p.tag().isKnownTag());\n assertNull(tags.get(\"FOO\", NamespaceHtml));\n p.tagName(\"FOO\");\n Tag foo = p.tag();\n assertEquals(\"FOO\", foo.name());\n assertEquals(\"foo\", foo.normalName());\n assertEquals(NamespaceHtml, foo.namespace());\n assertFalse(foo.isKnownTag());\n assertSame(foo, tags.get(\"FOO\", NamespaceHtml));\n assertSame(foo, tags.valueOf(\"FOO\", NamespaceHtml));\n assertNull(tags.get(\"FOO\", \"SomeOtherNamespace\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-33"], "old_production_code": "", "new_production_code": "@Nullable\npublic Tag get(String tagName, String namespace) {\n Validate.notNull(tagName);\n Validate.notNull(namespace);\n HashMap nsTags = tags.get(namespace);\n if (nsTags == null)\n return null;\n return nsTags.get(tagName);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/TagSet.java", "focal_method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "73-80", "dependency_updated": "inserted", "score": 0.4127, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.1263}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.3041, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1111, "class": 1.0, "tfidf": 0.0933}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "182-186", "dependency_updated": "inserted", "score": 0.2286, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 0.0, "tfidf": 0.0662}}, {"dep_id": 4, "method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1593, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1111, "class": 0.0, "tfidf": 0.0369}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "180-182", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "263-265", "dependency_updated": "updated", "score": 0.1584, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1852, "class": 0.0, "tfidf": 0.0935}}], "coverage_gold": 0.9615384615384616, "branch_coverage_gold": 6.8466, "method_coverage_gold": 20.2576, "line_coverage_gold": 13.2992, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.normalName:()Ljava/lang/String", "org/jsoup/parser/Parser.htmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.tagName:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "org/jsoup/parser/Tag.name:()Ljava/lang/String", "org/jsoup/parser/Tag.isKnownTag:()Z", "org/jsoup/parser/Parser.settings:(Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Parser", "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/parser/Tag.namespace:()Ljava/lang/String", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Document.parser:()Lorg/jsoup/parser/Parser"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:()Lorg/jsoup/parser/TagSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3884_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagSetTest", "test_sign": "org/jsoup/parser/TagSetTest.knownTags:()V", "class": "TagSetTest", "method": "knownTags", "module": "", "junit_selector": "org.jsoup.parser.TagSetTest#knownTags", "old_test_code": null, "new_test_code": "@Test\nvoid knownTags() {\n TagSet tags = TagSet.Html();\n Tag custom = new Tag(\"custom\");\n assertEquals(\"custom\", custom.name());\n assertEquals(NamespaceHtml, custom.namespace());\n assertFalse(custom.isKnownTag());\n Tag br = tags.get(\"br\", NamespaceHtml);\n assertNotNull(br);\n assertTrue(br.isKnownTag());\n assertSame(br, tags.valueOf(\"br\", NamespaceHtml));\n Tag foo = tags.valueOf(\"foo\", NamespaceHtml);\n assertFalse(foo.isKnownTag());\n tags.add(custom);\n assertTrue(custom.isKnownTag());\n assertSame(custom, tags.get(\"custom\", NamespaceHtml));\n assertSame(custom, tags.valueOf(\"custom\", NamespaceHtml));\n Tag capCustom = tags.valueOf(\"Custom\", NamespaceHtml);\n assertTrue(capCustom.isKnownTag());\n Tag c1 = new Tag(\"bar\");\n assertFalse(c1.isKnownTag());\n c1.set(Tag.Block);\n assertTrue(c1.isKnownTag());\n c1.clear(Tag.Block);\n assertTrue(c1.isKnownTag());\n c1.clear(Tag.Known);\n assertFalse(c1.isKnownTag());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-107"], "old_production_code": "", "new_production_code": "public TagSet add(Tag tag) {\n tag.set(Tag.Known);\n doAdd(tag);\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/TagSet.java", "focal_method_sign": "org/jsoup/parser/TagSet.add:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/parser/TagSet", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/jsoup/parser/TagSet.add:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/parser/TagSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "53-57", "dependency_updated": "inserted", "score": 0.3363, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1111, "class": 1.0, "tfidf": 0.3017}}, {"dep_id": 4, "method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "73-80", "dependency_updated": "inserted", "score": 0.2922, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1111, "class": 1.0, "tfidf": 0.114}}, {"dep_id": 5, "method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "180-182", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "263-265", "dependency_updated": "updated", "score": 0.279, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.7, "class": 0.0, "tfidf": 0.0958}}, {"dep_id": 7, "method_sign": "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.2637, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1111, "class": 1.0, "tfidf": 0.0553}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "132-134", "dependency_updated": "inserted", "score": 0.2404, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.0, "class": 1.0, "tfidf": 0.1144}}, {"dep_id": 6, "method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.1279, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2222, "class": 0.0, "tfidf": 0.0131}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.1109, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1111, "class": 0.0, "tfidf": 0.1435}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.clear:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "160-165", "dependency_updated": "inserted", "score": 0.0923, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1111, "class": 0.0, "tfidf": 0.1646}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4961, "method_coverage_gold": 2.1298, "line_coverage_gold": 1.2432, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.clear:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.name:()Ljava/lang/String", "org/jsoup/parser/Tag.isKnownTag:()Z", "org/jsoup/parser/TagSet.add:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/parser/TagSet", "org/jsoup/parser/Tag.namespace:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.clear:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.add:(Lorg/jsoup/parser/Tag;)Lorg/jsoup/parser/TagSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.get:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.Html:()Lorg/jsoup/parser/TagSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__9cb943a_005da92__TagTest_5242ceb4", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "9cb943a9f2ffeeca2adcd9aa3d127df249b75515", "rev2": "005da925db2ff5fe592b79c1a4d77cb91882fcf0", "rev1_date": "2025-04-11T23:56:58Z", "rev2_date": "2025-04-12T01:06:53Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/9cb943a9f2ffeeca2adcd9aa3d127df249b75515...005da925db2ff5fe592b79c1a4d77cb91882fcf0", "test_file": "src/test/java/org/jsoup/parser/TagTest.java", "test_changes": [{"change_id": "3881_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagTest", "test_sign": "org/jsoup/parser/TagTest.updateNameAndNamespace:()V", "class": "TagTest", "method": "updateNameAndNamespace", "module": "", "junit_selector": "org.jsoup.parser.TagTest#updateNameAndNamespace", "old_test_code": null, "new_test_code": "@Test\nvoid updateNameAndNamespace() {\n Tag tag = new Tag(\"foo\", NamespaceHtml);\n tag.name(\"bar\").namespace(NamespaceSvg);\n tag.set(Tag.Block);\n assertEquals(\"bar\", tag.name());\n assertEquals(NamespaceSvg, tag.namespace());\n assertTrue(tag.isBlock());\n Document doc = Jsoup.parse(\"OneTwo\");\n Tag foo = doc.expectFirst(\"foo\").tag();\n foo.name(\"BAR\");\n assertEquals(\"OneTwo\", doc.body().html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["145-158"], "old_production_code": "", "new_production_code": "public Tag namespace(String namespace) {\n this.namespace = namespace;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "109-112", "dependency_updated": "inserted", "score": 0.4804, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4091, "class": 1.0, "tfidf": 0.2054}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "97-101", "dependency_updated": "inserted", "score": 0.4178, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1818, "class": 1.0, "tfidf": 0.0983}}, {"dep_id": 4, "method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "87-89", "dependency_updated": "inserted", "score": 0.408, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1818, "class": 1.0, "tfidf": 0.0568}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.3666, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0455, "class": 1.0, "tfidf": 0.2262}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.isBlock:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "135-137", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "217-219", "dependency_updated": "updated", "score": 0.256, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0455, "class": 1.0, "tfidf": 0.042}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 8.7517, "method_coverage_gold": 22.635, "line_coverage_gold": 15.1483, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.isBlock:()Z", "org/jsoup/parser/Tag.name:()Ljava/lang/String", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.namespace:()Ljava/lang/String", "org/jsoup/nodes/Element.html:()Ljava/lang/String", "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Document.body:()Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.isBlock:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.name:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3882_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_TagTest", "test_sign": "org/jsoup/parser/TagTest.canSetOptions:()V", "class": "TagTest", "method": "canSetOptions", "module": "", "junit_selector": "org.jsoup.parser.TagTest#canSetOptions", "old_test_code": null, "new_test_code": "@Test\nvoid canSetOptions() {\n Tag tag = new Tag(\"foo\", NamespaceHtml);\n assertFalse(tag.isKnownTag());\n assertFalse(tag.isEmpty());\n tag.set(Tag.Void);\n assertTrue(tag.isEmpty());\n assertTrue(tag.isKnownTag());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-143"], "old_production_code": "", "new_production_code": "public Tag set(int option) {\n options |= option;\n options |= Tag.Known;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.487, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2308, "class": 1.0, "tfidf": 0.3583}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.isEmpty:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "162-164", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "245-247", "dependency_updated": "updated", "score": 0.3472, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.3077, "class": 1.0, "tfidf": 0.0316}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "180-182", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "263-265", "dependency_updated": "updated", "score": 0.2665, "signal_scores": {"nc": 0.0, "lcs_u": 0.3, "ed": 0.1538, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0992, "method_coverage_gold": 0.5448, "line_coverage_gold": 0.3448, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.isKnownTag:()Z", "org/jsoup/parser/Tag.isEmpty:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.isKnownTag:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.isEmpty:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__9cb943a_005da92__XmlTreeBuilderTest_b60db668", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "9cb943a9f2ffeeca2adcd9aa3d127df249b75515", "rev2": "005da925db2ff5fe592b79c1a4d77cb91882fcf0", "rev1_date": "2025-04-11T23:56:58Z", "rev2_date": "2025-04-12T01:06:53Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/9cb943a9f2ffeeca2adcd9aa3d127df249b75515...005da925db2ff5fe592b79c1a4d77cb91882fcf0", "test_file": "src/test/java/org/jsoup/parser/XmlTreeBuilderTest.java", "test_changes": [{"change_id": "3873_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_XmlTreeBuilderTest", "test_sign": "org/jsoup/parser/XmlTreeBuilderTest.canSetCustomDataTag:()V", "class": "XmlTreeBuilderTest", "method": "canSetCustomDataTag", "module": "", "junit_selector": "org.jsoup.parser.XmlTreeBuilderTest#canSetCustomDataTag", "old_test_code": null, "new_test_code": "@Test\nvoid canSetCustomDataTag() {\n String inner = \"Blah\\nblah\\n"\";\n String xml = \"\" + inner + \"\";\n TagSet custom = new TagSet();\n Tag z = custom.valueOf(\"z\", NamespaceXml, ParseSettings.preserveCase);\n z.set(Tag.Data);\n Document doc = Jsoup.parse(xml, Parser.xmlParser().tagSet(custom));\n Element zEl = doc.expectFirst(\"z\");\n assertNotSame(z, zEl.tag());\n assertEquals(z, zEl.tag());\n assertEquals(1, zEl.childNodeSize());\n Node child = zEl.childNode(0);\n assertTrue(child instanceof DataNode);\n assertEquals(inner, ((DataNode) child).getWholeData());\n assertEquals(inner, zEl.data());\n Element z2 = doc.expectFirst(\"#2\");\n z2.html(inner);\n assertEquals(inner, ((DataNode) child).getWholeData());\n assertEquals(inner, zEl.data());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["419-443"], "old_production_code": "", "new_production_code": "public Tag set(int option) {\n options |= option;\n options |= Tag.Known;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.2263, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1579, "class": 0.0, "tfidf": 0.1012}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "171-175", "dependency_updated": "inserted", "score": 0.1898, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2105, "class": 0.0, "tfidf": 0.1593}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "224-239", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "317-326", "dependency_updated": "updated", "score": 0.149, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1579, "class": 0.0, "tfidf": 0.1476}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.1231, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1579, "class": 0.0, "tfidf": 0.0913}}], "coverage_gold": 0.9666666666666667, "branch_coverage_gold": 7.442, "method_coverage_gold": 20.3566, "line_coverage_gold": 13.7902, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.data:()Ljava/lang/String", "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Node.childNode:(I)Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/DataNode.getWholeData:()Ljava/lang/String", "org/jsoup/nodes/Element.html:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.childNodeSize:()I", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3874_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_XmlTreeBuilderTest", "test_sign": "org/jsoup/parser/XmlTreeBuilderTest.canSetCustomRcdataTag:()V", "class": "XmlTreeBuilderTest", "method": "canSetCustomRcdataTag", "module": "", "junit_selector": "org.jsoup.parser.XmlTreeBuilderTest#canSetCustomRcdataTag", "old_test_code": null, "new_test_code": "@Test\nvoid canSetCustomRcdataTag() {\n String inner = \"Blah\\nblah\\n"\";\n String innerText = \"Blah\\nblah\\n\\\"\";\n String xml = \"\" + inner + \"\";\n TagSet custom = new TagSet();\n Tag z = custom.valueOf(\"z\", NamespaceXml, ParseSettings.preserveCase);\n z.set(Tag.RcData);\n Document doc = Jsoup.parse(xml, Parser.xmlParser().tagSet(custom));\n Element zEl = doc.expectFirst(\"z\");\n assertNotSame(z, zEl.tag());\n assertEquals(z, zEl.tag());\n assertEquals(1, zEl.childNodeSize());\n Node child = zEl.childNode(0);\n assertTrue(child instanceof TextNode);\n assertEquals(innerText, ((TextNode) child).getWholeText());\n Element z2 = doc.expectFirst(\"#2\");\n z2.html(inner);\n assertEquals(innerText, z2.wholeText());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["394-417"], "old_production_code": "", "new_production_code": "public Tag set(int option) {\n options |= option;\n options |= Tag.Known;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": 0.2233, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1429, "class": 0.0, "tfidf": 0.099}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "171-175", "dependency_updated": "inserted", "score": 0.1857, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1905, "class": 0.0, "tfidf": 0.1558}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_old": "224-239", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "317-326", "dependency_updated": "updated", "score": 0.1457, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 0.0, "tfidf": 0.1444}}, {"dep_id": 3, "method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.1238, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1429, "class": 0.0, "tfidf": 0.1048}}], "coverage_gold": 0.9655172413793104, "branch_coverage_gold": 8.2556, "method_coverage_gold": 21.0996, "line_coverage_gold": 14.4379, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Node.childNode:(I)Lorg/jsoup/nodes/Node", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.html:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/TextNode.getWholeText:()Ljava/lang/String", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.childNodeSize:()I", "org/jsoup/nodes/Element.wholeText:()Ljava/lang/String", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.tagSet:(Lorg/jsoup/parser/TagSet;)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Tag.java", "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/TagSet.valueOf:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/ParseSettings;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/TagSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3883_jhy_jsoup-jsoup-1.22.1_9cb943a_005da92_XmlTreeBuilderTest", "test_sign": "org/jsoup/parser/XmlTreeBuilderTest.prettyFormatsTextInline:()V", "class": "XmlTreeBuilderTest", "method": "prettyFormatsTextInline", "module": "", "junit_selector": "org.jsoup.parser.XmlTreeBuilderTest#prettyFormatsTextInline", "old_test_code": null, "new_test_code": "@Test\nvoid prettyFormatsTextInline() {\n String xml = \"\\n\" + \"id\\n\" + \"title\\n\" + \"ja\\n\" + \"desc\\n\" + \"\";\n Document doc = Jsoup.parse(xml, Parser.xmlParser());\n doc.outputSettings().prettyPrint(true);\n assertEquals(\"\\n\" + \" \\n\" + \" idtitle ja desc\\n\" + \" \\n\" + \"\", doc.html());\n Element meta = doc.expectFirst(\"metadata\");\n Tag metaTag = meta.tag();\n metaTag.set(Tag.Block);\n for (Element inner : meta) inner.tag().set(Tag.Block);\n assertEquals(\"\\n\" + \" \\n\" + \" id\\n\" + \" title\\n\" + \" ja\\n\" + \" desc\\n\" + \" \\n\" + \"\", doc.html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["445-476"], "old_production_code": "", "new_production_code": "public Tag set(int option) {\n options |= option;\n options |= Tag.Known;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "137-141", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9545454545454546, "branch_coverage_gold": 9.1288, "method_coverage_gold": 20.8024, "line_coverage_gold": 14.3335, "is_traceback": false, "commit_gap": {"count": 4, "skipped_commits": ["29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "6681be4553ae9e4153fdabf006655b84dd161160", "37043421d95508823b888c6ddabd45deab62c496"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.html:()Ljava/lang/String", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/NodeIterator.hasNext:()Z", "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Document.outputSettings:()Lorg/jsoup/nodes/Document$OutputSettings", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Document$OutputSettings.prettyPrint:(Z)Lorg/jsoup/nodes/Document$OutputSettings", "org/jsoup/nodes/Element.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.set:(I)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__a78bcab_eb35cdc__CleanerTest_db1c8184", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "a78bcab52cbdb79dbd5a06ea7385907450c3906c", "rev2": "eb35cdcbcd22b281e585238842321c3b53052eaf", "rev1_date": "2024-12-14T23:27:53Z", "rev2_date": "2024-12-15T01:11:12Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/a78bcab52cbdb79dbd5a06ea7385907450c3906c...eb35cdcbcd22b281e585238842321c3b53052eaf", "test_file": "src/test/java/org/jsoup/safety/CleanerTest.java", "test_changes": [{"change_id": "3856_jhy_jsoup-jsoup-1.22.1_a78bcab_eb35cdc_CleanerTest", "test_sign": "org/jsoup/safety/CleanerTest.nofollowOnlyOnExternalLinks:()V", "class": "CleanerTest", "method": "nofollowOnlyOnExternalLinks", "module": "", "junit_selector": "org.jsoup.safety.CleanerTest#nofollowOnlyOnExternalLinks", "old_test_code": null, "new_test_code": "@Test\nvoid nofollowOnlyOnExternalLinks() {\n String html = \"One Two Three Four\";\n Safelist basic = Safelist.basic().preserveRelativeLinks(true);\n String clean = Jsoup.clean(html, \"http://example.com/\", basic);\n assertEquals(\"One Two Three Four\", clean);\n String clean2 = Jsoup.clean(html, basic);\n assertEquals(\"One Two Three Four\", clean2);\n assertTrue(Jsoup.isValid(html, basic));\n Safelist relaxed = Safelist.relaxed().preserveRelativeLinks(true).addEnforcedAttribute(\"a\", \"rel\", \"nofollow\");\n String clean3 = Jsoup.clean(html, \"http://example.com/\", relaxed);\n assertEquals(\"One Two Three Four\", clean3);\n assertTrue(Jsoup.isValid(html, relaxed));\n String clean4 = Jsoup.clean(html, relaxed);\n assertEquals(\"One Two Three Four\", clean4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["449-473"], "old_production_code": "public static String clean(String bodyHtml, String baseUri, Safelist safelist) {\n Document dirty = parseBodyFragment(bodyHtml, baseUri);\n Cleaner cleaner = new Cleaner(safelist);\n Document clean = cleaner.clean(dirty);\n return clean.body().html();\n}", "new_production_code": "public static String clean(String bodyHtml, String baseUri, Safelist safelist) {\n if (baseUri.isEmpty() && safelist.preserveRelativeLinks()) {\n baseUri = DummyUri;\n }\n Document dirty = parseBodyFragment(bodyHtml, baseUri);\n Cleaner cleaner = new Cleaner(safelist);\n Document clean = cleaner.clean(dirty);\n return clean.body().html();\n}", "focal_file_path": "src/main/java/org/jsoup/Jsoup.java", "focal_method_sign": "org/jsoup/Jsoup.clean:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/Jsoup.clean:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/Jsoup.java", "line_nums_old": "344-349", "file_path_new": "src/main/java/org/jsoup/Jsoup.java", "line_nums_new": "346-355", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 12.4207, "method_coverage_gold": 26.4553, "line_coverage_gold": 20.1361, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.clean:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Ljava/lang/String", "org/jsoup/Jsoup.isValid:(Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Z", "org/jsoup/Jsoup.clean:(Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Ljava/lang/String", "org/jsoup/safety/Safelist.addEnforcedAttribute:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/safety/Safelist", "org/jsoup/safety/Safelist.preserveRelativeLinks:(Z)Lorg/jsoup/safety/Safelist", "org/jsoup/safety/Safelist.relaxed:()Lorg/jsoup/safety/Safelist", "org/jsoup/safety/Safelist.basic:()Lorg/jsoup/safety/Safelist"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/Jsoup.clean:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/safety/Safelist;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/Jsoup.java", "file_path_new": "src/main/java/org/jsoup/Jsoup.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__aa6e0d9_63023f8__ElementTest_e34e594e", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "aa6e0d92728d67e242515d41c14188d5efe1c730", "rev2": "63023f8b29048e2768cb6c0cfa5c168357b2955d", "rev1_date": "2025-03-11T00:01:12Z", "rev2_date": "2025-03-11T00:51:30Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/aa6e0d92728d67e242515d41c14188d5efe1c730...63023f8b29048e2768cb6c0cfa5c168357b2955d", "test_file": "src/test/java/org/jsoup/nodes/ElementTest.java", "test_changes": [{"change_id": "4082_jhy_jsoup-jsoup-1.22.1_aa6e0d9_63023f8_ElementTest", "test_sign": "org/jsoup/nodes/ElementTest.deselectAll:()V", "class": "ElementTest", "method": "deselectAll", "module": "", "junit_selector": "org.jsoup.nodes.ElementTest#deselectAll", "old_test_code": null, "new_test_code": "@Test\npublic void deselectAll() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n Elements els = doc.select(\"p\");\n Element parent = doc.expectFirst(\"div\");\n els.deselectAll();\n assertEquals(0, els.size());\n assertEquals(3, parent.childrenSize());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["3101-3110"], "old_production_code": "", "new_production_code": "public void deselectAll() {\n super.clear();\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.deselectAll:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.deselectAll:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "800-802", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 6.9772, "method_coverage_gold": 19.7154, "line_coverage_gold": 13.2071, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements", "org/jsoup/select/Elements.deselectAll:()V", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.childrenSize:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.deselectAll:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__b60c480_2a7918c__AttributesTest_0bade352", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "b60c480804bb00b8e2ab5821d30f93fd1a07f063", "rev2": "2a7918cc48d6625c303ee9d037613b8125bcc346", "rev1_date": "2025-07-10T01:51:20Z", "rev2_date": "2025-07-10T02:42:27Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/b60c480804bb00b8e2ab5821d30f93fd1a07f063...2a7918cc48d6625c303ee9d037613b8125bcc346", "test_file": "src/test/java/org/jsoup/nodes/AttributesTest.java", "test_changes": [{"change_id": "3951_jhy_jsoup-jsoup-1.22.1_b60c480_2a7918c_AttributesTest", "test_sign": "org/jsoup/nodes/AttributesTest.sizeDoesNotIncludeInternal:()V", "class": "AttributesTest", "method": "sizeDoesNotIncludeInternal", "module": "", "junit_selector": "org.jsoup.nodes.AttributesTest#sizeDoesNotIncludeInternal", "old_test_code": null, "new_test_code": "@Test\nvoid sizeDoesNotIncludeInternal() {\n Element el = new Element(\"el\");\n Attributes attrs = el.attributes();\n assertEquals(0, attrs.size());\n assertTrue(attrs.isEmpty());\n attrs.userData(\"foo\", \"bar\");\n attrs.put(Attributes.internalKey(\"qux\"), \"bar\");\n assertEquals(0, attrs.size());\n assertEquals(2, attrs.size);\n assertTrue(attrs.isEmpty());\n attrs.put(\"foo\", \"bar\");\n attrs.put(\"qux\", \"bar\");\n assertEquals(2, attrs.size());\n assertEquals(4, attrs.size);\n el.clearAttributes();\n assertEquals(0, attrs.size());\n assertEquals(2, attrs.size);\n assertTrue(attrs.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["412-433"], "old_production_code": "public int size() {\n return size;\n}", "new_production_code": "public int size() {\n if (size == 0)\n return 0;\n int count = 0;\n for (int i = 0; i < size; i++) {\n if (!isInternalKey(keys[i]))\n count++;\n }\n return count;\n}", "focal_file_path": "src/main/java/org/jsoup/nodes/Attributes.java", "focal_method_sign": "org/jsoup/nodes/Attributes.size:()I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/nodes/Attributes.size:()I", "file_path_old": "src/main/java/org/jsoup/nodes/Attributes.java", "line_nums_old": "335-338", "file_path_new": "src/main/java/org/jsoup/nodes/Attributes.java", "line_nums_new": "335-342", "dependency_updated": "updated", "score": 0.4161, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1538, "class": 1.0, "tfidf": 0.1108}}, {"dep_id": 0, "method_sign": "org/jsoup/nodes/Attributes.isEmpty:()Z", "file_path_old": "src/main/java/org/jsoup/nodes/Attributes.java", "line_nums_old": "343-345", "file_path_new": "src/main/java/org/jsoup/nodes/Attributes.java", "line_nums_new": "348-350", "dependency_updated": "updated", "score": 0.3626, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1538, "class": 1.0, "tfidf": 0.2048}}, {"dep_id": 2, "method_sign": "org/jsoup/nodes/Element.clearAttributes:()Lorg/jsoup/nodes/Element", "file_path_old": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_old": "2012-2021", "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "line_nums_new": "2012-2021", "dependency_updated": "updated", "score": 0.1626, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1923, "class": 0.0, "tfidf": 0.2564}}], "coverage_gold": 0.8846153846153846, "branch_coverage_gold": 1.1937, "method_coverage_gold": 3.4547, "line_coverage_gold": 2.4472, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Attributes.userData:(Ljava/lang/String;Ljava/lang/Object;)Lorg/jsoup/nodes/Attributes", "org/jsoup/nodes/Attributes.isEmpty:()Z", "org/jsoup/nodes/Attributes.put:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/nodes/Attributes", "org/jsoup/nodes/Attributes.internalKey:(Ljava/lang/String;)Ljava/lang/String", "org/jsoup/nodes/Element.attributes:()Lorg/jsoup/nodes/Attributes", "org/jsoup/nodes/Element.clearAttributes:()Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Attributes.size:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/nodes/Attributes.isEmpty:()Z", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/nodes/Attributes.java", "file_path_new": "src/main/java/org/jsoup/nodes/Attributes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Attributes.size:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/nodes/Attributes.java", "file_path_new": "src/main/java/org/jsoup/nodes/Attributes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/nodes/Element.clearAttributes:()Lorg/jsoup/nodes/Element", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/nodes/Element.java", "file_path_new": "src/main/java/org/jsoup/nodes/Element.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__bcbac42_408a235__XmlTreeBuilderTest_fb95c0fc", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "bcbac427ff4bca1748f8eb5125a23d4c739b75e9", "rev2": "408a2357aee6495c8f502a49711d9c97078847cc", "rev1_date": "2025-11-13T03:06:34Z", "rev2_date": "2025-11-13T05:29:59Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/bcbac427ff4bca1748f8eb5125a23d4c739b75e9...408a2357aee6495c8f502a49711d9c97078847cc", "test_file": "src/test/java/org/jsoup/parser/XmlTreeBuilderTest.java", "test_changes": [{"change_id": "3840_jhy_jsoup-jsoup-1.22.1_bcbac42_408a235_XmlTreeBuilderTest", "test_sign": "org/jsoup/parser/XmlTreeBuilderTest.xmlParserRespectsConfiguredMaxDepth:()V", "class": "XmlTreeBuilderTest", "method": "xmlParserRespectsConfiguredMaxDepth", "module": "", "junit_selector": "org.jsoup.parser.XmlTreeBuilderTest#xmlParserRespectsConfiguredMaxDepth", "old_test_code": null, "new_test_code": "@Test\npublic void xmlParserRespectsConfiguredMaxDepth() {\n Parser parser = Parser.xmlParser().setMaxDepth(5);\n Document doc = Jsoup.parse(deepXml(100), \"\", parser);\n Element target = doc.selectFirst(\"target\");\n assertNotNull(target);\n assertEquals(parser.getMaxDepth(), depth(target));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["659-665"], "old_production_code": "public static Parser xmlParser() {\n return new Parser(new XmlTreeBuilder());\n}", "new_production_code": "public static Parser xmlParser() {\n return new Parser(new XmlTreeBuilder()).setMaxDepth(Integer.MAX_VALUE);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Parser.java", "focal_method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "file_path_old": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_old": "353-355", "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "378-380", "dependency_updated": "updated", "score": 0.2841, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2571, "class": 0.0, "tfidf": 0.2776}}, {"dep_id": 1, "method_sign": "org/jsoup/parser/Parser.setMaxDepth:(I)Lorg/jsoup/parser/Parser", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "209-213", "dependency_updated": "inserted", "score": 0.2472, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3143, "class": 0.0, "tfidf": 0.0807}}, {"dep_id": 2, "method_sign": "org/jsoup/parser/Parser.getMaxDepth:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "219-221", "dependency_updated": "inserted", "score": 0.2201, "signal_scores": {"nc": 0.0, "lcs_u": 0.9091, "ed": 0.2857, "class": 0.0, "tfidf": 0.0535}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.6507, "method_coverage_gold": 16.6363, "line_coverage_gold": 11.4794, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ac4edeb4f74741c8537d8df66c9c33e55a5d9e4f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Parser.setMaxDepth:(I)Lorg/jsoup/parser/Parser", "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/parser/Parser.getMaxDepth:()I", "org/jsoup/nodes/Element.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Parser.java", "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.setMaxDepth:(I)Lorg/jsoup/parser/Parser", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Parser.getMaxDepth:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3841_jhy_jsoup-jsoup-1.22.1_bcbac42_408a235_XmlTreeBuilderTest", "test_sign": "org/jsoup/parser/XmlTreeBuilderTest.xmlParserHasUnlimitedDepthByDefault:()V", "class": "XmlTreeBuilderTest", "method": "xmlParserHasUnlimitedDepthByDefault", "module": "", "junit_selector": "org.jsoup.parser.XmlTreeBuilderTest#xmlParserHasUnlimitedDepthByDefault", "old_test_code": null, "new_test_code": "@Test\npublic void xmlParserHasUnlimitedDepthByDefault() {\n Parser parser = Parser.xmlParser();\n Document doc = Jsoup.parse(deepXml(600), \"\", parser);\n Element target = doc.selectFirst(\"target\");\n assertNotNull(target);\n assertTrue(depth(target) > 512);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["651-657"], "old_production_code": "public static Parser xmlParser() {\n return new Parser(new XmlTreeBuilder());\n}", "new_production_code": "public static Parser xmlParser() {\n return new Parser(new XmlTreeBuilder()).setMaxDepth(Integer.MAX_VALUE);\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Parser.java", "focal_method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "file_path_old": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_old": "353-355", "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "line_nums_new": "378-380", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.4224, "method_coverage_gold": 16.454, "line_coverage_gold": 11.2785, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ac4edeb4f74741c8537d8df66c9c33e55a5d9e4f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "org/jsoup/Jsoup.parse:(Ljava/lang/String;Ljava/lang/String;Lorg/jsoup/parser/Parser;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Parser.xmlParser:()Lorg/jsoup/parser/Parser", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/parser/Parser.java", "file_path_new": "src/main/java/org/jsoup/parser/Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__c09c1f5_29bc6f5__TagTest_7afcc3f5", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "c09c1f51f4779d259df0423119a83ebe8aa3b86d", "rev2": "29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "rev1_date": "2025-04-12T00:42:28Z", "rev2_date": "2025-04-12T01:02:46Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/c09c1f51f4779d259df0423119a83ebe8aa3b86d...29bc6f50c0a31614835e9378f0d30fcae9bcc2e8", "test_file": "src/test/java/org/jsoup/parser/TagTest.java", "test_changes": [{"change_id": "3959_jhy_jsoup-jsoup-1.22.1_c09c1f5_29bc6f5_TagTest", "test_sign": "org/jsoup/parser/TagTest.updateNameAndNamespace:()V", "class": "TagTest", "method": "updateNameAndNamespace", "module": "", "junit_selector": "org.jsoup.parser.TagTest#updateNameAndNamespace", "old_test_code": null, "new_test_code": "@Test\nvoid updateNameAndNamespace() {\n Tag tag = new Tag(\"foo\", NamespaceHtml);\n tag.name(\"bar\").namespace(NamespaceSvg);\n assertEquals(\"bar\", tag.name());\n assertEquals(NamespaceSvg, tag.namespace());\n Document doc = Jsoup.parse(\"OneTwo\");\n Tag foo = doc.expectFirst(\"foo\").tag();\n foo.name(\"BAR\");\n assertEquals(\"OneTwo\", doc.body().html());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["145-156"], "old_production_code": "", "new_production_code": "public Tag namespace(String namespace) {\n this.namespace = namespace;\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/parser/Tag.java", "focal_method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "109-112", "dependency_updated": "inserted", "score": 0.4761, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4091, "class": 1.0, "tfidf": 0.1869}}, {"dep_id": 0, "method_sign": "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "line_nums_new": "97-101", "dependency_updated": "inserted", "score": 0.4143, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1818, "class": 1.0, "tfidf": 0.0836}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 8.7517, "method_coverage_gold": 22.635, "line_coverage_gold": 15.1483, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/parser/Tag.namespace:()Ljava/lang/String", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.html:()Ljava/lang/String", "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Element.tag:()Lorg/jsoup/parser/Tag", "org/jsoup/nodes/Document.body:()Lorg/jsoup/nodes/Element", "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "org/jsoup/parser/Tag.name:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/parser/Tag.name:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/jsoup/parser/Tag.namespace:(Ljava/lang/String;)Lorg/jsoup/parser/Tag", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/parser/Tag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__c4dd25e_dcb4f79__StringUtilTest_0db4b433", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "c4dd25ee7257748cbf1f9e54ee0885d462d18694", "rev2": "dcb4f799123febff991e64ff24b7d20538e34ff1", "rev1_date": "2025-04-24T20:29:04Z", "rev2_date": "2025-04-25T01:02:17Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/c4dd25ee7257748cbf1f9e54ee0885d462d18694...dcb4f799123febff991e64ff24b7d20538e34ff1", "test_file": "src/test/java/org/jsoup/internal/StringUtilTest.java", "test_changes": [{"change_id": "4087_jhy_jsoup-jsoup-1.22.1_c4dd25e_dcb4f79_StringUtilTest", "test_sign": "org/jsoup/internal/StringUtilTest.isAsciiLetter:()V", "class": "StringUtilTest", "method": "isAsciiLetter", "module": "", "junit_selector": "org.jsoup.internal.StringUtilTest#isAsciiLetter", "old_test_code": null, "new_test_code": "@Test\nvoid isAsciiLetter() {\n assertTrue(StringUtil.isAsciiLetter('a'));\n assertTrue(StringUtil.isAsciiLetter('n'));\n assertTrue(StringUtil.isAsciiLetter('z'));\n assertTrue(StringUtil.isAsciiLetter('A'));\n assertTrue(StringUtil.isAsciiLetter('N'));\n assertTrue(StringUtil.isAsciiLetter('Z'));\n assertFalse(StringUtil.isAsciiLetter(' '));\n assertFalse(StringUtil.isAsciiLetter('-'));\n assertFalse(StringUtil.isAsciiLetter('0'));\n assertFalse(StringUtil.isAsciiLetter('ß'));\n assertFalse(StringUtil.isAsciiLetter('Ě'));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["169-182"], "old_production_code": "", "new_production_code": "public static boolean isAsciiLetter(char c) {\n return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z';\n}", "focal_file_path": "src/main/java/org/jsoup/internal/StringUtil.java", "focal_method_sign": "org/jsoup/internal/StringUtil.isAsciiLetter:(C)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/internal/StringUtil.isAsciiLetter:(C)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "line_nums_new": "398-400", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1577, "method_coverage_gold": 0.1456, "line_coverage_gold": 0.1043, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/internal/StringUtil.isAsciiLetter:(C)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/internal/StringUtil.isAsciiLetter:(C)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4088_jhy_jsoup-jsoup-1.22.1_c4dd25e_dcb4f79_StringUtilTest", "test_sign": "org/jsoup/internal/StringUtilTest.isDigit:()V", "class": "StringUtilTest", "method": "isDigit", "module": "", "junit_selector": "org.jsoup.internal.StringUtilTest#isDigit", "old_test_code": null, "new_test_code": "@Test\nvoid isDigit() {\n assertTrue(StringUtil.isDigit('0'));\n assertTrue(StringUtil.isDigit('1'));\n assertTrue(StringUtil.isDigit('2'));\n assertTrue(StringUtil.isDigit('3'));\n assertTrue(StringUtil.isDigit('4'));\n assertTrue(StringUtil.isDigit('5'));\n assertTrue(StringUtil.isDigit('6'));\n assertTrue(StringUtil.isDigit('7'));\n assertTrue(StringUtil.isDigit('8'));\n assertTrue(StringUtil.isDigit('9'));\n assertFalse(StringUtil.isDigit('a'));\n assertFalse(StringUtil.isDigit('A'));\n assertFalse(StringUtil.isDigit('ä'));\n assertFalse(StringUtil.isDigit('Ä'));\n assertFalse(StringUtil.isDigit('١'));\n assertFalse(StringUtil.isDigit('୳'));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["184-202"], "old_production_code": "", "new_production_code": "public static boolean isDigit(char c) {\n return c >= '0' && c <= '9';\n}", "focal_file_path": "src/main/java/org/jsoup/internal/StringUtil.java", "focal_method_sign": "org/jsoup/internal/StringUtil.isDigit:(C)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/internal/StringUtil.isDigit:(C)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "line_nums_new": "402-404", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0591, "method_coverage_gold": 0.1456, "line_coverage_gold": 0.1043, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/internal/StringUtil.isDigit:(C)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/internal/StringUtil.isDigit:(C)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4089_jhy_jsoup-jsoup-1.22.1_c4dd25e_dcb4f79_StringUtilTest", "test_sign": "org/jsoup/internal/StringUtilTest.isHexDigit:()V", "class": "StringUtilTest", "method": "isHexDigit", "module": "", "junit_selector": "org.jsoup.internal.StringUtilTest#isHexDigit", "old_test_code": null, "new_test_code": "@Test\nvoid isHexDigit() {\n assertTrue(StringUtil.isHexDigit('0'));\n assertTrue(StringUtil.isHexDigit('1'));\n assertTrue(StringUtil.isHexDigit('2'));\n assertTrue(StringUtil.isHexDigit('3'));\n assertTrue(StringUtil.isHexDigit('4'));\n assertTrue(StringUtil.isHexDigit('5'));\n assertTrue(StringUtil.isHexDigit('6'));\n assertTrue(StringUtil.isHexDigit('7'));\n assertTrue(StringUtil.isHexDigit('8'));\n assertTrue(StringUtil.isHexDigit('9'));\n assertTrue(StringUtil.isHexDigit('a'));\n assertTrue(StringUtil.isHexDigit('b'));\n assertTrue(StringUtil.isHexDigit('c'));\n assertTrue(StringUtil.isHexDigit('d'));\n assertTrue(StringUtil.isHexDigit('e'));\n assertTrue(StringUtil.isHexDigit('f'));\n assertTrue(StringUtil.isHexDigit('A'));\n assertTrue(StringUtil.isHexDigit('B'));\n assertTrue(StringUtil.isHexDigit('C'));\n assertTrue(StringUtil.isHexDigit('D'));\n assertTrue(StringUtil.isHexDigit('E'));\n assertTrue(StringUtil.isHexDigit('F'));\n assertFalse(StringUtil.isHexDigit('g'));\n assertFalse(StringUtil.isHexDigit('G'));\n assertFalse(StringUtil.isHexDigit('ä'));\n assertFalse(StringUtil.isHexDigit('Ä'));\n assertFalse(StringUtil.isHexDigit('١'));\n assertFalse(StringUtil.isHexDigit('୳'));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["204-234"], "old_production_code": "", "new_production_code": "public static boolean isHexDigit(char c) {\n return isDigit(c) || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F';\n}", "focal_file_path": "src/main/java/org/jsoup/internal/StringUtil.java", "focal_method_sign": "org/jsoup/internal/StringUtil.isHexDigit:(C)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/internal/StringUtil.isHexDigit:(C)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "line_nums_new": "406-408", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2366, "method_coverage_gold": 0.1942, "line_coverage_gold": 0.1148, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/internal/StringUtil.isHexDigit:(C)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/internal/StringUtil.isHexDigit:(C)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/internal/StringUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__d5bbe25_34fb153__EvaluatorTest_3356e6bd", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "d5bbe252f1472f95372612fa9f9fe1616f0b5dbc", "rev2": "34fb15336ecb6504338c5a17052c158d17241958", "rev1_date": "2024-12-14T00:42:39Z", "rev2_date": "2024-12-14T01:18:07Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/d5bbe252f1472f95372612fa9f9fe1616f0b5dbc...34fb15336ecb6504338c5a17052c158d17241958", "test_file": "src/test/java/org/jsoup/select/EvaluatorTest.java", "test_changes": [{"change_id": "4037_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testIsNthLastOfTypeToString:()V", "class": "EvaluatorTest", "method": "testIsNthLastOfTypeToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testIsNthLastOfTypeToString", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNthLastOfTypeToString() {\n Evaluator.IsNthLastOfType evaluator = new Evaluator.IsNthLastOfType(2, 3);\n assertEquals(\":nth-last-of-type(2n+3)\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["164-168"], "old_production_code": "@Override\npublic String toString() {\n if (a == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), b);\n if (b == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), a);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), a, b);\n}", "new_production_code": "@Override\npublic String toString() {\n if (step == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), offset);\n if (offset == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), step);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), step, offset);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "551-558", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "552-559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.04081632653061224, "branch_coverage_gold": 0.0411, "method_coverage_gold": 0.26, "line_coverage_gold": 0.1297, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4038_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testIsNthChildToStringVariants:()V", "class": "EvaluatorTest", "method": "testIsNthChildToStringVariants", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testIsNthChildToStringVariants", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNthChildToStringVariants() {\n Evaluator.IsNthChild evaluator1 = new Evaluator.IsNthChild(0, 3);\n assertEquals(\":nth-child(3)\", evaluator1.toString());\n Evaluator.IsNthChild evaluator2 = new Evaluator.IsNthChild(2, 0);\n assertEquals(\":nth-child(2n)\", evaluator2.toString());\n Evaluator.IsNthChild evaluator3 = new Evaluator.IsNthChild(2, 3);\n assertEquals(\":nth-child(2n+3)\", evaluator3.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["134-144"], "old_production_code": "@Override\npublic String toString() {\n if (a == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), b);\n if (b == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), a);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), a, b);\n}", "new_production_code": "@Override\npublic String toString() {\n if (step == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), offset);\n if (offset == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), step);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), step, offset);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "551-558", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "552-559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.05442176870748299, "branch_coverage_gold": 0.0821, "method_coverage_gold": 0.26, "line_coverage_gold": 0.1514, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4039_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testIsNthOfTypeToString:()V", "class": "EvaluatorTest", "method": "testIsNthOfTypeToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testIsNthOfTypeToString", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNthOfTypeToString() {\n Evaluator.IsNthOfType evaluator = new Evaluator.IsNthOfType(2, 3);\n assertEquals(\":nth-of-type(2n+3)\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["158-162"], "old_production_code": "@Override\npublic String toString() {\n if (a == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), b);\n if (b == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), a);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), a, b);\n}", "new_production_code": "@Override\npublic String toString() {\n if (step == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), offset);\n if (offset == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), step);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), step, offset);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "551-558", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "552-559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.04081632653061224, "branch_coverage_gold": 0.0411, "method_coverage_gold": 0.26, "line_coverage_gold": 0.1297, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4040_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testTagStartsWithToString:()V", "class": "EvaluatorTest", "method": "testTagStartsWithToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testTagStartsWithToString", "old_test_code": null, "new_test_code": "@Test\npublic void testTagStartsWithToString() {\n Evaluator.TagStartsWith evaluator = new Evaluator.TagStartsWith(\"ns\");\n assertEquals(\"ns|*\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-22"], "old_production_code": "@Override\npublic String toString() {\n return String.format(\"%s\", tagName);\n}", "new_production_code": "@Override\npublic String toString() {\n return String.format(\"%s|*\", tagName);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$TagStartsWith.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$TagStartsWith.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "105-108", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "105-108", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.003787878787878788, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.156, "line_coverage_gold": 0.0649, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$TagStartsWith.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$TagStartsWith.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4041_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testIsNthLastChildToString:()V", "class": "EvaluatorTest", "method": "testIsNthLastChildToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testIsNthLastChildToString", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNthLastChildToString() {\n Evaluator.IsNthLastChild evaluator = new Evaluator.IsNthLastChild(2, 3);\n assertEquals(\":nth-last-child(2n+3)\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["152-156"], "old_production_code": "@Override\npublic String toString() {\n if (a == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), b);\n if (b == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), a);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), a, b);\n}", "new_production_code": "@Override\npublic String toString() {\n if (step == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), offset);\n if (offset == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), step);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), step, offset);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "551-558", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "552-559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.04081632653061224, "branch_coverage_gold": 0.0411, "method_coverage_gold": 0.26, "line_coverage_gold": 0.1297, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4042_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testIsNthChildToString:()V", "class": "EvaluatorTest", "method": "testIsNthChildToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testIsNthChildToString", "old_test_code": null, "new_test_code": "@Test\npublic void testIsNthChildToString() {\n Evaluator.IsNthChild evaluator = new Evaluator.IsNthChild(2, 3);\n assertEquals(\":nth-child(2n+3)\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["146-150"], "old_production_code": "@Override\npublic String toString() {\n if (a == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), b);\n if (b == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), a);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), a, b);\n}", "new_production_code": "@Override\npublic String toString() {\n if (step == 0)\n return String.format(\":%s(%d)\", getPseudoClass(), offset);\n if (offset == 0)\n return String.format(\":%s(%dn)\", getPseudoClass(), step);\n return String.format(\":%s(%dn%+d)\", getPseudoClass(), step, offset);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "551-558", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "552-559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.04081632653061224, "branch_coverage_gold": 0.0411, "method_coverage_gold": 0.26, "line_coverage_gold": 0.1297, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$CssNthEvaluator.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4043_jhy_jsoup-jsoup-1.22.1_d5bbe25_34fb153_EvaluatorTest", "test_sign": "org/jsoup/select/EvaluatorTest.testTagEndsWithToString:()V", "class": "EvaluatorTest", "method": "testTagEndsWithToString", "module": "", "junit_selector": "org.jsoup.select.EvaluatorTest#testTagEndsWithToString", "old_test_code": null, "new_test_code": "@Test\npublic void testTagEndsWithToString() {\n Evaluator.TagEndsWith evaluator = new Evaluator.TagEndsWith(\"div\");\n assertEquals(\"*|div\", evaluator.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-28"], "old_production_code": "@Override\npublic String toString() {\n return String.format(\"%s\", tagName);\n}", "new_production_code": "@Override\npublic String toString() {\n return String.format(\"*|%s\", tagName);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Evaluator.java", "focal_method_sign": "org/jsoup/select/Evaluator$TagEndsWith.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Evaluator$TagEndsWith.toString:()Ljava/lang/String", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_old": "127-130", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "line_nums_new": "127-130", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.003861003861003861, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.156, "line_coverage_gold": 0.0649, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Evaluator$TagEndsWith.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Evaluator$TagEndsWith.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/org/jsoup/select/Evaluator.java", "file_path_new": "src/main/java/org/jsoup/select/Evaluator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__df34774_e10e04d__ConnectTest_152e7ad2", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "df347747385e6d30d2899262125cd20a08bfa9e6", "rev2": "e10e04da6c7d93daf5f74d449594cba7ea3683e3", "rev1_date": "2025-04-02T23:49:55Z", "rev2_date": "2025-04-03T02:35:21Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/df347747385e6d30d2899262125cd20a08bfa9e6...e10e04da6c7d93daf5f74d449594cba7ea3683e3", "test_file": "src/test/java/org/jsoup/integration/ConnectTest.java", "test_changes": [{"change_id": "3957_jhy_jsoup-jsoup-1.22.1_df34774_e10e04d_ConnectTest", "test_sign": "org/jsoup/integration/ConnectTest.sendsRequestBodyStream:()V", "class": "ConnectTest", "method": "sendsRequestBodyStream", "module": "", "junit_selector": "org.jsoup.integration.ConnectTest#sendsRequestBodyStream", "old_test_code": null, "new_test_code": "@Test\nvoid sendsRequestBodyStream() throws IOException {\n final String body = \"{key:value}\";\n InputStream stream = new ByteArrayInputStream(body.getBytes(StandardCharsets.UTF_8));\n Document doc = Jsoup.connect(echoUrl).requestBodyStream(stream).header(\"Content-Type\", \"application/json\").data(\"foo\", \"true\").post();\n assertEquals(\"POST\", ihVal(\"Method\", doc));\n assertEquals(\"application/json\", ihVal(\"Content-Type\", doc));\n assertEquals(\"foo=true\", ihVal(\"Query String\", doc));\n assertEquals(body, ihVal(\"Post Data\", doc));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["262-275"], "old_production_code": "", "new_production_code": "@Override\npublic Connection requestBodyStream(InputStream stream) {\n req.requestBodyStream(stream);\n return this;\n}", "focal_file_path": "src/main/java/org/jsoup/helper/HttpConnection.java", "focal_method_sign": "org/jsoup/helper/HttpConnection.requestBodyStream:(Ljava/io/InputStream;)Lorg/jsoup/Connection", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/helper/HttpConnection.requestBodyStream:(Ljava/io/InputStream;)Lorg/jsoup/Connection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/helper/HttpConnection.java", "line_nums_new": "284-288", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.3135, "method_coverage_gold": 32.3022, "line_coverage_gold": 25.6104, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/helper/HttpConnection.header:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection", "org/jsoup/Jsoup.connect:(Ljava/lang/String;)Lorg/jsoup/Connection", "org/jsoup/helper/HttpConnection.data:(Ljava/lang/String;Ljava/lang/String;)Lorg/jsoup/Connection", "org/jsoup/helper/HttpConnection.requestBodyStream:(Ljava/io/InputStream;)Lorg/jsoup/Connection", "org/jsoup/helper/HttpConnection.post:()Lorg/jsoup/nodes/Document", "org/jsoup/integration/ConnectTest.ihVal:(Ljava/lang/String;Lorg/jsoup/nodes/Document;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/helper/HttpConnection.requestBodyStream:(Ljava/io/InputStream;)Lorg/jsoup/Connection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/helper/HttpConnection.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "jhy_jsoup-jsoup-1.22.1__eff923d_8086b1e__ElementsTest_73c17aa3", "project_name": "jhy_jsoup-jsoup-1.22.1", "git_clone_url": "https://github.com/jhy/jsoup.git", "rev1": "eff923da81dd3a4893ca30986de5ec30fddcaf5c", "rev2": "8086b1e4088eb586e0abf939af18cf2d4beb4acb", "rev1_date": "2025-01-24T01:02:57Z", "rev2_date": "2025-01-24T01:49:12Z", "git_diff_url": "https://github.com/jhy/jsoup/compare/eff923da81dd3a4893ca30986de5ec30fddcaf5c...8086b1e4088eb586e0abf939af18cf2d4beb4acb", "test_file": "src/test/java/org/jsoup/select/ElementsTest.java", "test_changes": [{"change_id": "4044_jhy_jsoup-jsoup-1.22.1_eff923d_8086b1e_ElementsTest", "test_sign": "org/jsoup/select/ElementsTest.expectFirst:()V", "class": "ElementsTest", "method": "expectFirst", "module": "", "junit_selector": "org.jsoup.select.ElementsTest#expectFirst", "old_test_code": null, "new_test_code": "@Test\nvoid expectFirst() {\n Document doc = Jsoup.parse(\"

One

Two Jsoup

Three

\");\n Element span = doc.children().expectFirst(\"span\");\n assertNotNull(span);\n assertEquals(\"Jsoup\", span.text());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["616-621"], "old_production_code": "", "new_production_code": "public Element expectFirst(String cssQuery) {\n return (Element) Validate.ensureNotNull(Selector.selectFirst(cssQuery, this), \"No elements matched the query '%s' in the elements.\", cssQuery);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "477-482", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 7.8316, "method_coverage_gold": 20.626, "line_coverage_gold": 14.1802, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.text:()Ljava/lang/String", "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.children:()Lorg/jsoup/select/Elements"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4045_jhy_jsoup-jsoup-1.22.1_eff923d_8086b1e_ElementsTest", "test_sign": "org/jsoup/select/ElementsTest.selectFirstFromPreviousSelect:()V", "class": "ElementsTest", "method": "selectFirstFromPreviousSelect", "module": "", "junit_selector": "org.jsoup.select.ElementsTest#selectFirstFromPreviousSelect", "old_test_code": null, "new_test_code": "@Test\nvoid selectFirstFromPreviousSelect() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n Elements divs = doc.select(\"div\");\n assertEquals(3, divs.size());\n Element span = divs.selectFirst(\"p span\");\n assertNotNull(span);\n assertEquals(\"Two\", span.text());\n assertNotNull(span.selectFirst(\"span\"));\n assertNull(span.selectFirst(\">span\"));\n assertNotNull(divs.selectFirst(\"div\"));\n assertNull(divs.selectFirst(\">div\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["636-651"], "old_production_code": "", "new_production_code": "@Nullable\npublic Element selectFirst(String cssQuery) {\n return Selector.selectFirst(cssQuery, this);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "465-467", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 8.8893, "method_coverage_gold": 22.3191, "line_coverage_gold": 15.5822, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.select:(Ljava/lang/String;)Lorg/jsoup/select/Elements", "org/jsoup/nodes/Element.text:()Ljava/lang/String", "org/jsoup/nodes/Element.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4046_jhy_jsoup-jsoup-1.22.1_eff923d_8086b1e_ElementsTest", "test_sign": "org/jsoup/select/ElementsTest.selectFirst:()V", "class": "ElementsTest", "method": "selectFirst", "module": "", "junit_selector": "org.jsoup.select.ElementsTest#selectFirst", "old_test_code": null, "new_test_code": "@Test\nvoid selectFirst() {\n Document doc = Jsoup.parse(\"

One

Two Jsoup

Three

\");\n Element span = doc.children().selectFirst(\"span\");\n assertNotNull(span);\n assertEquals(\"Jsoup\", span.text());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["603-608"], "old_production_code": "", "new_production_code": "@Nullable\npublic Element selectFirst(String cssQuery) {\n return Selector.selectFirst(cssQuery, this);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "465-467", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.84, "branch_coverage_gold": 7.8112, "method_coverage_gold": 20.5747, "line_coverage_gold": 14.1481, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/nodes/Element.text:()Ljava/lang/String", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.children:()Lorg/jsoup/select/Elements"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4047_jhy_jsoup-jsoup-1.22.1_eff923d_8086b1e_ElementsTest", "test_sign": "org/jsoup/select/ElementsTest.expectFirstThrowsOnNoMatch:()V", "class": "ElementsTest", "method": "expectFirstThrowsOnNoMatch", "module": "", "junit_selector": "org.jsoup.select.ElementsTest#expectFirstThrowsOnNoMatch", "old_test_code": null, "new_test_code": "@Test\nvoid expectFirstThrowsOnNoMatch() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n boolean threw = false;\n try {\n Element span = doc.children().expectFirst(\"span\");\n } catch (IllegalArgumentException e) {\n threw = true;\n assertEquals(\"No elements matched the query 'span' in the elements.\", e.getMessage());\n }\n assertTrue(threw);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["623-634"], "old_production_code": "", "new_production_code": "public Element expectFirst(String cssQuery) {\n return (Element) Validate.ensureNotNull(Selector.selectFirst(cssQuery, this), \"No elements matched the query '%s' in the elements.\", cssQuery);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "477-482", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.9976, "method_coverage_gold": 19.3946, "line_coverage_gold": 13.1635, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/nodes/Element.children:()Lorg/jsoup/select/Elements"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.expectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4048_jhy_jsoup-jsoup-1.22.1_eff923d_8086b1e_ElementsTest", "test_sign": "org/jsoup/select/ElementsTest.selectFirstNullOnNoMatch:()V", "class": "ElementsTest", "method": "selectFirstNullOnNoMatch", "module": "", "junit_selector": "org.jsoup.select.ElementsTest#selectFirstNullOnNoMatch", "old_test_code": null, "new_test_code": "@Test\nvoid selectFirstNullOnNoMatch() {\n Document doc = Jsoup.parse(\"

One

Two

Three

\");\n Element span = doc.children().selectFirst(\"span\");\n assertNull(span);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["610-614"], "old_production_code": "", "new_production_code": "@Nullable\npublic Element selectFirst(String cssQuery) {\n return Selector.selectFirst(cssQuery, this);\n}", "focal_file_path": "src/main/java/org/jsoup/select/Elements.java", "focal_method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "line_nums_new": "465-467", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.8959, "method_coverage_gold": 19.1893, "line_coverage_gold": 13.0137, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/jsoup/Jsoup.parse:(Ljava/lang/String;)Lorg/jsoup/nodes/Document", "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "org/jsoup/nodes/Element.children:()Lorg/jsoup/select/Elements"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/jsoup/select/Elements.selectFirst:(Ljava/lang/String;)Lorg/jsoup/nodes/Element", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/jsoup/select/Elements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jsoup-1.22.1", "java_version": 11} {"task_id": "justauth_JustAuth-v1.16.7__81ea4b1_30f4a29__AuthWeChatEnterpriseWebRequestTest_0c5c43c7", "project_name": "justauth_JustAuth-v1.16.7", "git_clone_url": "https://github.com/justauth/JustAuth.git", "rev1": "81ea4b1620dd38383b13582424d4466607eb97db", "rev2": "30f4a29f481c2aaf64fdd6bea06c7d80c4975915", "rev1_date": "2023-02-26T08:19:28Z", "rev2_date": "2023-02-26T08:27:49Z", "git_diff_url": "https://github.com/justauth/JustAuth/compare/81ea4b1620dd38383b13582424d4466607eb97db...30f4a29f481c2aaf64fdd6bea06c7d80c4975915", "test_file": "src/test/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequestTest.java", "test_changes": [{"change_id": "28_justauth_JustAuth-v1.16.7_81ea4b1_30f4a29_AuthWeChatEnterpriseWebRequestTest", "test_sign": "me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequestTest.authorize:()V", "class": "AuthWeChatEnterpriseWebRequestTest", "method": "authorize", "module": "", "junit_selector": "me.zhyd.oauth.request.AuthWeChatEnterpriseWebRequestTest#authorize", "old_test_code": null, "new_test_code": "@Test\npublic void authorize() {\n AuthRequest request = new AuthWeChatEnterpriseWebRequest(AuthConfig.builder().clientId(\"a\").clientSecret(\"a\").redirectUri(\"https://www.justauth.cn\").build());\n System.out.println(request.authorize(AuthStateUtils.createState()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-19"], "old_production_code": "@Override\npublic String authorize(String state) {\n return UrlBuilder.fromBaseUrl(source.authorize()).queryParam(\"appid\", config.getClientId()).queryParam(\"agentid\", config.getAgentId()).queryParam(\"redirect_uri\", GlobalAuthUtils.urlEncode(config.getRedirectUri())).queryParam(\"response_type\", \"code\").queryParam(\"scope\", this.getScopes(\",\", false, AuthScopeUtils.getDefaultScopes(AuthWeChatEnterpriseWebScope.values()))).queryParam(\"state\", getRealState(state).concat(\"#wechat_redirect\")).build();\n}", "new_production_code": "@Override\npublic String authorize(String state) {\n return UrlBuilder.fromBaseUrl(source.authorize()).queryParam(\"appid\", config.getClientId()).queryParam(\"redirect_uri\", GlobalAuthUtils.urlEncode(config.getRedirectUri())).queryParam(\"response_type\", \"code\").queryParam(\"scope\", this.getScopes(\",\", false, AuthScopeUtils.getDefaultScopes(AuthWeChatEnterpriseWebScope.values()))).queryParam(\"state\", getRealState(state).concat(\"#wechat_redirect\")).build();\n}", "focal_file_path": "src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.java", "focal_method_sign": "me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.authorize:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.authorize:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": "src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.java", "line_nums_old": "28-38", "file_path_new": "src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.java", "line_nums_new": "28-37", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.6792, "method_coverage_gold": 9.1623, "line_coverage_gold": 4.8673, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ca8e194c4ebc2fc38dafd1b7cc70531cc00e29f3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.authorize:(Ljava/lang/String;)Ljava/lang/String", "me/zhyd/oauth/utils/AuthStateUtils.createState:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.authorize:(Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.java", "file_path_new": "src/main/java/me/zhyd/oauth/request/AuthWeChatEnterpriseWebRequest.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.16.7", "java_version": 8} {"task_id": "leangen_graphql-spqr-graphql-spqr-v0.12.4__0c076ee_f7fad00__InterfaceMappingStrategyTest_a940ce18", "project_name": "leangen_graphql-spqr-graphql-spqr-v0.12.4", "git_clone_url": "https://github.com/leangen/graphql-spqr.git", "rev1": "0c076ee92417f46024404bc083e67fa92e24015c", "rev2": "f7fad003e8e6bee5e55f339d35e84dc2f5332b6b", "rev1_date": "2019-08-18T19:04:20Z", "rev2_date": "2019-08-18T19:30:59Z", "git_diff_url": "https://github.com/leangen/graphql-spqr/compare/0c076ee92417f46024404bc083e67fa92e24015c...f7fad003e8e6bee5e55f339d35e84dc2f5332b6b", "test_file": "src/test/java/io/leangen/graphql/InterfaceMappingStrategyTest.java", "test_changes": [{"change_id": "1722_leangen_graphql-spqr-graphql-spqr-v0.12.4_0c076ee_f7fad00_InterfaceMappingStrategyTest", "test_sign": "io/leangen/graphql/InterfaceMappingStrategyTest.testClassMapping:()V", "class": "InterfaceMappingStrategyTest", "method": "testClassMapping", "module": "", "junit_selector": "io.leangen.graphql.InterfaceMappingStrategyTest#testClassMapping", "old_test_code": null, "new_test_code": "@Test\npublic void testClassMapping() {\n Collection> interfaces = new AnnotatedInterfaceStrategy().withClassMapping(false).getInterfaces(GenericTypeReflector.annotate(Child.class)).stream().map(inter -> ClassUtils.getRawType(inter.getType())).collect(Collectors.toList());\n assertEquals(5, interfaces.size());\n assertTrue(interfaces.containsAll(Arrays.asList(Zero.class, One.class, Two.class, Three.class, Four.class)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-39"], "old_production_code": "", "new_production_code": "public AbstractInterfaceMappingStrategy withClassMapping(boolean mapClasses) {\n this.mapClasses = mapClasses;\n return this;\n}", "focal_file_path": "src/main/java/io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.java", "focal_method_sign": "io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.withClassMapping:(Z)Lio/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.withClassMapping:(Z)Lio/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8586, "method_coverage_gold": 0.8901, "line_coverage_gold": 0.8471, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.withClassMapping:(Z)Lio/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy", "io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.getInterfaces:(Ljava/lang/reflect/AnnotatedType;)Ljava/util/Collection"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.withClassMapping:(Z)Lio/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/io/leangen/graphql/generator/mapping/strategy/AbstractInterfaceMappingStrategy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "graphql-spqr-v0.12.4", "java_version": 11} {"task_id": "leangen_graphql-spqr-graphql-spqr-v0.12.4__9489735_bd9bc34__RelayTest_3a3c34ee", "project_name": "leangen_graphql-spqr-graphql-spqr-v0.12.4", "git_clone_url": "https://github.com/leangen/graphql-spqr.git", "rev1": "94897355a6d4be891e772965bd515082ee0405ef", "rev2": "bd9bc34d9a54bd7f013b83aa43bf246fa685f307", "rev1_date": "2018-08-12T02:24:15Z", "rev2_date": "2018-08-12T02:32:36Z", "git_diff_url": "https://github.com/leangen/graphql-spqr/compare/94897355a6d4be891e772965bd515082ee0405ef...bd9bc34d9a54bd7f013b83aa43bf246fa685f307", "test_file": "src/test/java/io/leangen/graphql/RelayTest.java", "test_changes": [{"change_id": "1686_leangen_graphql-spqr-graphql-spqr-v0.12.4_9489735_bd9bc34_RelayTest", "test_sign": "io/leangen/graphql/RelayTest.testAllowedInvalidPaginationArguments:()V", "class": "RelayTest", "method": "testAllowedInvalidPaginationArguments", "module": "", "junit_selector": "io.leangen.graphql.RelayTest#testAllowedInvalidPaginationArguments", "old_test_code": null, "new_test_code": "@Test\npublic void testAllowedInvalidPaginationArguments() {\n new TestSchemaGenerator().withRelayConnectionCheckRelaxed().withOperationsFromSingleton(new InvalidArgsPagingService()).generate();\n new TestSchemaGenerator().withRelayConnectionCheckRelaxed().withOperationsFromSingleton(new MissingArgsPagingService()).generate();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["221-232"], "old_production_code": "", "new_production_code": "public GraphQLSchemaGenerator withRelayConnectionCheckRelaxed() {\n this.relayMappingConfig.strictConnectionSpec = false;\n return this;\n}", "focal_file_path": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "focal_method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withRelayConnectionCheckRelaxed:()Lio/leangen/graphql/GraphQLSchemaGenerator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withRelayConnectionCheckRelaxed:()Lio/leangen/graphql/GraphQLSchemaGenerator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "line_nums_new": "717-720", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.696969696969697, "branch_coverage_gold": 18.8139, "method_coverage_gold": 35.6259, "line_coverage_gold": 35.3796, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/leangen/graphql/GraphQLSchemaGenerator.withOperationsFromSingleton:(Ljava/lang/Object;)Lio/leangen/graphql/GraphQLSchemaGenerator", "io/leangen/graphql/GraphQLSchemaGenerator.withRelayConnectionCheckRelaxed:()Lio/leangen/graphql/GraphQLSchemaGenerator", "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withRelayConnectionCheckRelaxed:()Lio/leangen/graphql/GraphQLSchemaGenerator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "graphql-spqr-v0.12.4", "java_version": 11} {"task_id": "leangen_graphql-spqr-graphql-spqr-v0.12.4__ef1ecb7_68fe839__SchemaGeneratorConfigurationTest_627cfb49", "project_name": "leangen_graphql-spqr-graphql-spqr-v0.12.4", "git_clone_url": "https://github.com/leangen/graphql-spqr.git", "rev1": "ef1ecb718c9034d413876034906d12cc5e972751", "rev2": "68fe839b541292b461258176ea65db15a545afcf", "rev1_date": "2018-02-07T14:46:01Z", "rev2_date": "2018-02-07T14:46:01Z", "git_diff_url": "https://github.com/leangen/graphql-spqr/compare/ef1ecb718c9034d413876034906d12cc5e972751...68fe839b541292b461258176ea65db15a545afcf", "test_file": "src/test/java/io/leangen/graphql/SchemaGeneratorConfigurationTest.java", "test_changes": [{"change_id": "1776_leangen_graphql-spqr-graphql-spqr-v0.12.4_ef1ecb7_68fe839_SchemaGeneratorConfigurationTest", "test_sign": "io/leangen/graphql/SchemaGeneratorConfigurationTest.testNoMappers:()V", "class": "SchemaGeneratorConfigurationTest", "method": "testNoMappers", "module": "", "junit_selector": "io.leangen.graphql.SchemaGeneratorConfigurationTest#testNoMappers", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void testNoMappers() {\n GraphQLSchemaGenerator generator = new GraphQLSchemaGenerator().withOperationsFromSingleton(new Dummy()).withTypeMappers((conf, mappers) -> Collections.emptyList());\n generator.generate();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-137"], "old_production_code": "", "new_production_code": "public GraphQLSchemaGenerator withTypeMappers(ExtensionProvider provider) {\n this.typeMapperProviders.add(provider);\n return this;\n}", "focal_file_path": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "focal_method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withTypeMappers:(Lio/leangen/graphql/GraphQLSchemaGenerator$ExtensionProvider;)Lio/leangen/graphql/GraphQLSchemaGenerator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withTypeMappers:(Lio/leangen/graphql/GraphQLSchemaGenerator$ExtensionProvider;)Lio/leangen/graphql/GraphQLSchemaGenerator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "line_nums_new": "451-454", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 8.5759, "method_coverage_gold": 23.7607, "line_coverage_gold": 22.9686, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/leangen/graphql/GraphQLSchemaGenerator.withOperationsFromSingleton:(Ljava/lang/Object;)Lio/leangen/graphql/GraphQLSchemaGenerator", "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema", "io/leangen/graphql/GraphQLSchemaGenerator.withTypeMappers:(Lio/leangen/graphql/GraphQLSchemaGenerator$ExtensionProvider;)Lio/leangen/graphql/GraphQLSchemaGenerator"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.withTypeMappers:(Lio/leangen/graphql/GraphQLSchemaGenerator$ExtensionProvider;)Lio/leangen/graphql/GraphQLSchemaGenerator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "graphql-spqr-v0.12.4", "java_version": 11} {"task_id": "leangen_graphql-spqr-graphql-spqr-v0.12.4__f19f2ba_a1034c3__RelayTest_f257a978", "project_name": "leangen_graphql-spqr-graphql-spqr-v0.12.4", "git_clone_url": "https://github.com/leangen/graphql-spqr.git", "rev1": "f19f2baf8d4fd5d480a752b441d3bdf7dcc7f9f0", "rev2": "a1034c3e614f8bb43b3d7df816dec6d85a5f4763", "rev1_date": "2018-07-20T00:59:05Z", "rev2_date": "2018-07-20T12:47:52Z", "git_diff_url": "https://github.com/leangen/graphql-spqr/compare/f19f2baf8d4fd5d480a752b441d3bdf7dcc7f9f0...a1034c3e614f8bb43b3d7df816dec6d85a5f4763", "test_file": "src/test/java/io/leangen/graphql/RelayTest.java", "test_changes": [{"change_id": "1671_leangen_graphql-spqr-graphql-spqr-v0.12.4_f19f2ba_a1034c3_RelayTest", "test_sign": "io/leangen/graphql/RelayTest.testRelayId:()V", "class": "RelayTest", "method": "testRelayId", "module": "", "junit_selector": "io.leangen.graphql.RelayTest#testRelayId", "old_test_code": null, "new_test_code": "@Test\npublic void testRelayId() {\n GraphQLSchema schema = new GraphQLSchemaGenerator().withOperationsFromSingletons(new BookService()).generate();\n assertNotNull(schema.getQueryType().getFieldDefinition(\"node\"));\n String globalId = new Relay().toGlobalId(Book.class.getSimpleName(), \"x123\");\n GraphQL exe = GraphQL.newGraphQL(schema).build();\n ExecutionResult result = exe.execute(\"{node(id: \\\"\" + globalId + \"\\\") {id ... on Book {title}}}\");\n assertTrue(result.getErrors().isEmpty());\n assertValueAtPathEquals(globalId, result, \"node.id\");\n assertValueAtPathEquals(\"Node Book\", result, \"node.title\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["221-235"], "old_production_code": "public GraphQLSchema generate() {\n init();\n BuildContext buildContext = new BuildContext(basePackages, environment, new OperationRepository(operationSourceRepository, operationBuilder, inclusionStrategy, typeTransformer, basePackages), new TypeMapperRepository(typeMappers), valueMapperFactory, typeInfoGenerator, interfaceStrategy, scalarStrategy, typeTransformer, abstractInputHandler, inputFieldStrategy, inclusionStrategy, relayMappingConfig, additionalTypes, aliasGroups, implDiscoveryStrategy);\n OperationMapper operationMapper = new OperationMapper(buildContext);\n GraphQLSchema.Builder builder = GraphQLSchema.newSchema().query(newObject().name(queryRoot).description(\"Query root type\").fields(operationMapper.getQueries()).build());\n List mutations = operationMapper.getMutations();\n if (!mutations.isEmpty()) {\n builder.mutation(newObject().name(mutationRoot).description(\"Mutation root type\").fields(mutations).build());\n }\n List subscriptions = operationMapper.getSubscriptions();\n if (!subscriptions.isEmpty()) {\n builder.subscription(newObject().name(subscriptionRoot).description(\"Subscription root type\").fields(subscriptions).build());\n }\n applyProcessors(builder, buildContext);\n additionalTypes.addAll(buildContext.typeRepository.getDiscoveredTypes());\n return builder.build(additionalTypes);\n}", "new_production_code": "public GraphQLSchema generate() {\n init();\n BuildContext buildContext = new BuildContext(basePackages, environment, new OperationRepository(operationSourceRepository, operationBuilder, inclusionStrategy, typeTransformer, basePackages), new TypeMapperRepository(typeMappers), valueMapperFactory, typeInfoGenerator, interfaceStrategy, scalarStrategy, typeTransformer, abstractInputHandler, inputFieldStrategy, inclusionStrategy, relayMappingConfig, additionalTypes, aliasGroups, implDiscoveryStrategy);\n OperationMapper operationMapper = new OperationMapper(buildContext);\n GraphQLSchema.Builder builder = GraphQLSchema.newSchema().query(newObject().name(queryRoot).description(\"Query root type\").fields(operationMapper.getQueries()).build());\n List mutations = operationMapper.getMutations();\n if (!mutations.isEmpty()) {\n builder.mutation(newObject().name(mutationRoot).description(\"Mutation root type\").fields(mutations).build());\n }\n List subscriptions = operationMapper.getSubscriptions();\n if (!subscriptions.isEmpty()) {\n builder.subscription(newObject().name(subscriptionRoot).description(\"Subscription root type\").fields(subscriptions).build());\n }\n additionalTypes.addAll(buildContext.typeRepository.getDiscoveredTypes());\n builder.additionalTypes(additionalTypes);\n applyProcessors(builder, buildContext);\n return builder.build();\n}", "focal_file_path": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "focal_method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema", "file_path_old": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "line_nums_old": "803-841", "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "line_nums_new": "809-848", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6551724137931034, "branch_coverage_gold": 21.5207, "method_coverage_gold": 39.3939, "line_coverage_gold": 38.1409, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["87837fafa32355de5a0b111ebe625960155ce5de", "d0a1cfee1982202dae5d6749b70924c7fffedcf8", "b68471fcea212dfd4502f2b78f43fcc7b2c1bfce", "e1afd6827eda1a63c4791d79a078f7ae0393d451"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/leangen/graphql/GraphQLSchemaGenerator.withOperationsFromSingletons:([Ljava/lang/Object;)Lio/leangen/graphql/GraphQLSchemaGenerator", "io/leangen/graphql/support/QueryResultAssertions.assertValueAtPathEquals:(Ljava/lang/Object;Lgraphql/ExecutionResult;Ljava/lang/String;)V", "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/leangen/graphql/GraphQLSchemaGenerator.generate:()Lgraphql/schema/GraphQLSchema", "change_type": "UPDATE", "file_path_old": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "file_path_new": "src/main/java/io/leangen/graphql/GraphQLSchemaGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "graphql-spqr-v0.12.4", "java_version": 11} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__00926b2_df0b41b__EWAHCompressedBitmapTest_9198d872", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "00926b276b4bfb244ce722e3fd692d2fe9eff317", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T15:33:20Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/00926b276b4bfb244ce722e3fd692d2fe9eff317...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2598_lemire_javaewah-JavaEWAH-1.2.3_00926b2_df0b41b_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.example:()V", "class": "EWAHCompressedBitmapTest", "method": "example", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#example", "old_test_code": null, "new_test_code": "@Test\npublic void example() throws Exception {\n EWAHCompressedBitmap ewahBitmap1 = EWAHCompressedBitmap.bitmapOf(0, 2, 55, 64, 1 << 30);\n EWAHCompressedBitmap ewahBitmap2 = EWAHCompressedBitmap.bitmapOf(1, 3, 64, 1 << 30);\n System.out.println(\"bitmap 1: \" + ewahBitmap1);\n System.out.println(\"bitmap 2: \" + ewahBitmap2);\n EWAHCompressedBitmap orbitmap = ewahBitmap1.or(ewahBitmap2);\n System.out.println(\"bitmap 1 OR bitmap 2: \" + orbitmap);\n System.out.println(\"memory usage: \" + orbitmap.sizeInBytes() + \" bytes\");\n EWAHCompressedBitmap andbitmap = ewahBitmap1.and(ewahBitmap2);\n System.out.println(\"bitmap 1 AND bitmap 2: \" + andbitmap);\n System.out.println(\"memory usage: \" + andbitmap.sizeInBytes() + \" bytes\");\n EWAHCompressedBitmap xorbitmap = ewahBitmap1.xor(ewahBitmap2);\n System.out.println(\"bitmap 1 XOR bitmap 2:\" + xorbitmap);\n System.out.println(\"memory usage: \" + xorbitmap.sizeInBytes() + \" bytes\");\n EWAHCompressedBitmap ewahBitmap3 = EWAHCompressedBitmap.bitmapOf(5, 55, 1 << 30);\n EWAHCompressedBitmap ewahBitmap4 = EWAHCompressedBitmap.bitmapOf(4, 66, 1 << 30);\n System.out.println(\"bitmap 3: \" + ewahBitmap3);\n System.out.println(\"bitmap 4: \" + ewahBitmap4);\n andbitmap = EWAHCompressedBitmap.and(ewahBitmap1, ewahBitmap2, ewahBitmap3, ewahBitmap4);\n System.out.println(\"b1 AND b2 AND b3 AND b4: \" + andbitmap);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ewahBitmap1.serialize(new DataOutputStream(bos));\n EWAHCompressedBitmap ewahBitmap1new = new EWAHCompressedBitmap();\n byte[] bout = bos.toByteArray();\n ewahBitmap1new.deserialize(new DataInputStream(new ByteArrayInputStream(bout)));\n System.out.println(\"bitmap 1 (recovered) : \" + ewahBitmap1new);\n if (!ewahBitmap1.equals(ewahBitmap1new))\n throw new RuntimeException(\"Will not happen\");\n ByteBuffer bb = ByteBuffer.wrap(bout);\n EWAHCompressedBitmap rmap = new EWAHCompressedBitmap(bb);\n System.out.println(\"bitmap 1 (mapped) : \" + rmap);\n if (!rmap.equals(ewahBitmap1))\n throw new RuntimeException(\"Will not happen\");\n EWAHCompressedBitmap threshold2 = EWAHCompressedBitmap.threshold(2, ewahBitmap1, ewahBitmap2, ewahBitmap3, ewahBitmap4);\n System.out.println(\"threshold 2 : \" + threshold2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-81"], "old_production_code": "public void deserialize(DataInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readLong());\n }\n this.rlw = new RunningLengthWord(this.buffer, in.readInt());\n}", "new_production_code": "public void deserialize(DataInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.removeLastWord();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readLong());\n }\n this.rlw = new RunningLengthWord(this.buffer, in.readInt());\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "605-614", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "626-636", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 10.15, "method_coverage_gold": 19.7304, "line_coverage_gold": 14.7725, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBytes:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.serialize:(Ljava/io/DataOutput;)V", "com/googlecode/javaewah/EWAHCompressedBitmap.and:([Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.xor:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.or:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.toString:()Ljava/lang/String", "com/googlecode/javaewah/EWAHCompressedBitmap.threshold:(I[Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.and:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2600_lemire_javaewah-JavaEWAH-1.2.3_00926b2_df0b41b_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.safeSerialization:()V", "class": "EWAHCompressedBitmapTest", "method": "safeSerialization", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#safeSerialization", "old_test_code": null, "new_test_code": "@Test\npublic void safeSerialization() throws IOException {\n EWAHCompressedBitmap ewahBitmap = EWAHCompressedBitmap.bitmapOf(0, 2, 55, 64, 1 << 30);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ewahBitmap.serialize(new DataOutputStream(bos));\n EWAHCompressedBitmap ewahBitmapnew = new EWAHCompressedBitmap();\n byte[] bout = bos.toByteArray();\n ewahBitmapnew.deserialize(new DataInputStream(new ByteArrayInputStream(bout)));\n assertEquals(ewahBitmapnew, ewahBitmap);\n Assert.assertEquals(ewahBitmapnew.serializedSizeInBytes(), ewahBitmap.serializedSizeInBytes());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-102"], "old_production_code": "public void deserialize(DataInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readLong());\n }\n this.rlw = new RunningLengthWord(this.buffer, in.readInt());\n}", "new_production_code": "public void deserialize(DataInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.removeLastWord();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readLong());\n }\n this.rlw = new RunningLengthWord(this.buffer, in.readInt());\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "605-614", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "626-636", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.2948, "method_coverage_gold": 5.8824, "line_coverage_gold": 3.9896, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "com/googlecode/javaewah/EWAHCompressedBitmap.serialize:(Ljava/io/DataOutput;)V", "com/googlecode/javaewah/EWAHCompressedBitmapTest.assertEquals:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;Lcom/googlecode/javaewah/EWAHCompressedBitmap;)V", "com/googlecode/javaewah/EWAHCompressedBitmap.serializedSizeInBytes:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.deserialize:(Ljava/io/DataInput;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__00926b2_df0b41b__EWAHCompressedBitmap32Test_86e8f073", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "00926b276b4bfb244ce722e3fd692d2fe9eff317", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T15:33:20Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/00926b276b4bfb244ce722e3fd692d2fe9eff317...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2599_lemire_javaewah-JavaEWAH-1.2.3_00926b2_df0b41b_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.safeSerialization:()V", "class": "EWAHCompressedBitmap32Test", "method": "safeSerialization", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#safeSerialization", "old_test_code": null, "new_test_code": "@Test\npublic void safeSerialization() throws IOException {\n EWAHCompressedBitmap32 ewahBitmap = EWAHCompressedBitmap32.bitmapOf(0, 2, 55, 64, 1 << 30);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ewahBitmap.serialize(new DataOutputStream(bos));\n EWAHCompressedBitmap32 ewahBitmapnew = new EWAHCompressedBitmap32();\n byte[] bout = bos.toByteArray();\n ewahBitmapnew.deserialize(new DataInputStream(new ByteArrayInputStream(bout)));\n assertEquals(ewahBitmapnew, ewahBitmap);\n Assert.assertEquals(ewahBitmapnew.serializedSizeInBytes(), ewahBitmap.serializedSizeInBytes());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-46"], "old_production_code": "public void deserialize(ObjectInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readInt());\n }\n this.rlw = new RunningLengthWord32(this.buffer, in.readInt());\n}", "new_production_code": "public void deserialize(DataInput in) throws IOException {\n this.sizeInBits = in.readInt();\n int sizeInWords = in.readInt();\n this.buffer.clear();\n this.buffer.removeLastWord();\n this.buffer.ensureCapacity(sizeInWords);\n for (int i = 0; i < sizeInWords; ++i) {\n this.buffer.push_back(in.readInt());\n }\n this.rlw = new RunningLengthWord32(this.buffer, in.readInt());\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.deserialize:(Ljava/io/DataInput;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.deserialize:(Ljava/io/DataInput;)V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "617-626", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "636-646", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.4272, "method_coverage_gold": 5.8824, "line_coverage_gold": 4.1837, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.assertEquals:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.deserialize:(Ljava/io/DataInput;)V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.serializedSizeInBytes:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.serialize:(Ljava/io/DataOutput;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.deserialize:(Ljava/io/DataInput;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__08e895e_7983566__EWAHCompressedBitmapTest_03b6b73b", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "08e895eca570526ec4f938fcc31143c36539ab2d", "rev2": "7983566a23a82291459fffcbeaad465c095aa4b2", "rev1_date": "2014-09-03T22:17:05Z", "rev2_date": "2014-09-03T22:17:18Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/08e895eca570526ec4f938fcc31143c36539ab2d...7983566a23a82291459fffcbeaad465c095aa4b2", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2504_lemire_javaewah-JavaEWAH-1.2.3_08e895e_7983566_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.setSizeInBits:()V", "class": "EWAHCompressedBitmapTest", "method": "setSizeInBits", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#setSizeInBits", "old_test_code": null, "new_test_code": "@Test\npublic void setSizeInBits() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS / 2, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n bitmap.setSizeInBits(WORD_IN_BITS + WORD_IN_BITS / 2, true);\n IntIterator iterator = bitmap.intIterator();\n for (int i = 0; i < WORD_IN_BITS / 2; ++i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n for (int i = WORD_IN_BITS; i < WORD_IN_BITS + WORD_IN_BITS / 2; ++i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-39"], "old_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits)\n return false;\n if (!defaultValue) {\n extendEmptyBits(this, this.sizeInBits, size);\n } else {\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n if (this.sizeInBits + WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS < size) {\n maskWidth = WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS;\n } else {\n maskWidth = size - this.sizeInBits;\n }\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == ~0l) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - this.sizeInBits / WORD_IN_BITS);\n if (this.sizeInBits < size) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n addLiteralWord(0);\n }\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n }\n this.sizeInBits = size;\n return true;\n}", "new_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits)\n return false;\n if (!defaultValue) {\n extendEmptyBits(this, this.sizeInBits, size);\n } else {\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n if (this.sizeInBits + WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS < size) {\n maskWidth = WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS;\n } else {\n maskWidth = size - this.sizeInBits;\n }\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == ~0l) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = (size + WORD_IN_BITS) / WORD_IN_BITS - (this.sizeInBits + WORD_IN_BITS - 1) / WORD_IN_BITS;\n if (dist > 0 || this.rlw.getNumberOfLiteralWords() == 0) {\n addLiteralWord(0);\n }\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n }\n this.sizeInBits = size;\n return true;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1315-1357", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1315-1358", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5952380952380952, "branch_coverage_gold": 1.3218, "method_coverage_gold": 3.9589, "line_coverage_gold": 2.1759, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/IntIteratorImpl.next:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.intIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/IntIteratorImpl.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__08e895e_7983566__EWAHCompressedBitmap32Test_03b6b73b", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "08e895eca570526ec4f938fcc31143c36539ab2d", "rev2": "7983566a23a82291459fffcbeaad465c095aa4b2", "rev1_date": "2014-09-03T22:17:05Z", "rev2_date": "2014-09-03T22:17:18Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/08e895eca570526ec4f938fcc31143c36539ab2d...7983566a23a82291459fffcbeaad465c095aa4b2", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2505_lemire_javaewah-JavaEWAH-1.2.3_08e895e_7983566_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.setSizeInBits:()V", "class": "EWAHCompressedBitmap32Test", "method": "setSizeInBits", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#setSizeInBits", "old_test_code": null, "new_test_code": "@Test\npublic void setSizeInBits() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS / 2, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n bitmap.setSizeInBits(WORD_IN_BITS + WORD_IN_BITS / 2, true);\n IntIterator iterator = bitmap.intIterator();\n for (int i = 0; i < WORD_IN_BITS / 2; ++i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n for (int i = WORD_IN_BITS; i < WORD_IN_BITS + WORD_IN_BITS / 2; ++i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-41"], "old_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits)\n return false;\n if (!defaultValue) {\n extendEmptyBits(this, this.sizeInBits, size);\n } else {\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n if (this.sizeInBits + WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS < size) {\n maskWidth = WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS;\n } else {\n maskWidth = size - this.sizeInBits;\n }\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == (~0)) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - this.sizeInBits / WORD_IN_BITS);\n if (this.sizeInBits < size) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n addLiteralWord(0);\n }\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n }\n this.sizeInBits = size;\n return true;\n}", "new_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits)\n return false;\n if (!defaultValue) {\n extendEmptyBits(this, this.sizeInBits, size);\n } else {\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n if (this.sizeInBits + WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS < size) {\n maskWidth = WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS;\n } else {\n maskWidth = size - this.sizeInBits;\n }\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == (~0)) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = (size + WORD_IN_BITS) / WORD_IN_BITS - (this.sizeInBits + WORD_IN_BITS - 1) / WORD_IN_BITS;\n if (dist > 0 || this.rlw.getNumberOfLiteralWords() == 0) {\n addLiteralWord(0);\n }\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n }\n this.sizeInBits = size;\n return true;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1353-1395", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1353-1396", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5952380952380952, "branch_coverage_gold": 1.3218, "method_coverage_gold": 3.8123, "line_coverage_gold": 2.1526, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/IntIteratorImpl32.next:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.intIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/IntIteratorImpl32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__2b38f1c_ad74ab4__EWAHCompressedBitmapTest_4cc7de84", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "2b38f1c82105338c9bb4d98e9a96328a499c529b", "rev2": "ad74ab44c2df6fa512c73deeab17f75e18d21ea1", "rev1_date": "2014-08-25T15:27:15Z", "rev2_date": "2014-08-25T15:28:47Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/2b38f1c82105338c9bb4d98e9a96328a499c529b...ad74ab44c2df6fa512c73deeab17f75e18d21ea1", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2601_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfOnes:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfOnes", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnes() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, true);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-45"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.472, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5143, "class": 1.0, "tfidf": 0.0962}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1569, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1143, "class": 0.0, "tfidf": 0.1584}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.155, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0857, "class": 0.0, "tfidf": 0.0361}}], "coverage_gold": 0.3902439024390244, "branch_coverage_gold": 1.4155, "method_coverage_gold": 3.9589, "line_coverage_gold": 2.1536, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2603_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIterator:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIterator", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIterator", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIterator() {\n int[] positions = new int[] { 0, 1, 2, 3, 5, 8, 13, 21 };\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(positions);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = positions.length - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(positions[i], iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-33"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.7995, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.148}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.1444}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.1676, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1667, "class": 0.0, "tfidf": 0.0329}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.6657, "line_coverage_gold": 2.294, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2606_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfOnesAndZeros:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfOnesAndZeros", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfOnesAndZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnesAndZeros() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS - 10, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 10; i > 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i - 1, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-66"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.4532, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4186, "class": 1.0, "tfidf": 0.0829}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.1511, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0698, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1482, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.093, "class": 0.0, "tfidf": 0.1362}}], "coverage_gold": 0.5853658536585366, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.9589, "line_coverage_gold": 2.411, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2608_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfZeros:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfZeros", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfZeros() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.48, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1399}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1457, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1111, "class": 0.0, "tfidf": 0.1131}}], "coverage_gold": 0.29411764705882354, "branch_coverage_gold": 1.1416, "method_coverage_gold": 3.6657, "line_coverage_gold": 1.9897, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__2b38f1c_ad74ab4__EWAHCompressedBitmap32Test_4cc7de84", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "2b38f1c82105338c9bb4d98e9a96328a499c529b", "rev2": "ad74ab44c2df6fa512c73deeab17f75e18d21ea1", "rev1_date": "2014-08-25T15:27:15Z", "rev2_date": "2014-08-25T15:28:47Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/2b38f1c82105338c9bb4d98e9a96328a499c529b...ad74ab44c2df6fa512c73deeab17f75e18d21ea1", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2602_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfOnesAndZeros:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfOnesAndZeros", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfOnesAndZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnesAndZeros() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS - 10, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 10; i > 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i - 1, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-68"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4475, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4186, "class": 1.0, "tfidf": 0.0588}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.1511, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0698, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1482, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.093, "class": 0.0, "tfidf": 0.1362}}], "coverage_gold": 0.5853658536585366, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.8123, "line_coverage_gold": 2.3642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2604_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfZeros:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfZeros", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfZeros() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-55"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4704, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1457, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1111, "class": 0.0, "tfidf": 0.1131}}], "coverage_gold": 0.29411764705882354, "branch_coverage_gold": 1.1416, "method_coverage_gold": 3.5191, "line_coverage_gold": 1.9663, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2605_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIterator:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIterator", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIterator", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIterator() {\n int[] positions = new int[] { 0, 1, 2, 3, 5, 8, 13, 21 };\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf(positions);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = positions.length - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(positions[i], iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-35"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.7869, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0944}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.1444}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.1676, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1667, "class": 0.0, "tfidf": 0.0329}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.5191, "line_coverage_gold": 2.2472, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2607_lemire_javaewah-JavaEWAH-1.2.3_2b38f1c_ad74ab4_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfOnes:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfOnes", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnes() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, true);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-47"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4654, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5143, "class": 1.0, "tfidf": 0.0681}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1569, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1143, "class": 0.0, "tfidf": 0.1584}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.155, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0857, "class": 0.0, "tfidf": 0.0361}}], "coverage_gold": 0.3902439024390244, "branch_coverage_gold": 1.4155, "method_coverage_gold": 3.8123, "line_coverage_gold": 2.1067, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__2f7fb1c_df0b41b__MemoryMapTest_6f472064", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "2f7fb1c254a52ef8ceeaa1f91af2f9ebbc896117", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T09:53:19Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/2f7fb1c254a52ef8ceeaa1f91af2f9ebbc896117...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah/MemoryMapTest.java", "test_changes": [{"change_id": "2555_lemire_javaewah-JavaEWAH-1.2.3_2f7fb1c_df0b41b_MemoryMapTest", "test_sign": "com/googlecode/javaewah/MemoryMapTest.basicTest:()V", "class": "MemoryMapTest", "method": "basicTest", "module": "", "junit_selector": "com.googlecode.javaewah.MemoryMapTest#basicTest", "old_test_code": null, "new_test_code": "@Test\npublic void basicTest() throws IOException, CloneNotSupportedException {\n EWAHCompressedBitmap ewahBitmap = EWAHCompressedBitmap.bitmapOf(0, 2, 55, 64, 1 << 30);\n EWAHCompressedBitmap newewahBitmap = ewahBitmap.clone();\n Assert.assertEquals(newewahBitmap, ewahBitmap);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ewahBitmap.serialize(new DataOutputStream(bos));\n ByteBuffer bb = ByteBuffer.wrap(bos.toByteArray());\n EWAHCompressedBitmap mapped = new EWAHCompressedBitmap(bb);\n Assert.assertEquals(mapped, ewahBitmap);\n EWAHCompressedBitmap newmapped;\n newmapped = mapped.clone();\n Assert.assertEquals(newmapped, ewahBitmap);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-28"], "old_production_code": "@Override\npublic EWAHCompressedBitmap clone() {\n EWAHCompressedBitmap clone = new EWAHCompressedBitmap(this.buffer.clone());\n clone.sizeInBits = this.sizeInBits;\n clone.rlw = new RunningLengthWord(clone.buffer, this.rlw.position);\n return clone;\n}", "new_production_code": "@Override\npublic EWAHCompressedBitmap clone() throws CloneNotSupportedException {\n EWAHCompressedBitmap clone = new EWAHCompressedBitmap(this.buffer.clone());\n clone.sizeInBits = this.sizeInBits;\n clone.rlw = new RunningLengthWord(clone.buffer, this.rlw.position);\n return clone;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clone:()Lcom/googlecode/javaewah/EWAHCompressedBitmap", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clone:()Lcom/googlecode/javaewah/EWAHCompressedBitmap", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "561-567", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "595-601", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.85, "branch_coverage_gold": 2.9126, "method_coverage_gold": 9.5588, "line_coverage_gold": 5.758, "is_traceback": true, "commit_gap": {"count": 10, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc", "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "f07ad2445acc211917b5d92a031684a51033e9ba", "b75f65456718f743ba0a6643d486a16d0ff69363"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.clone:()Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.serialize:(Ljava/io/DataOutput;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clone:()Lcom/googlecode/javaewah/EWAHCompressedBitmap", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__385866e_fcf8684__PerformanceTest_dcca07f3", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "385866e36056b4f02e57df2ca4945dcdb05bfa72", "rev2": "fcf8684de40c8392b012e8fc39db0f505349dc10", "rev1_date": "2014-12-09T19:48:06Z", "rev2_date": "2014-12-09T20:32:32Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/385866e36056b4f02e57df2ca4945dcdb05bfa72...fcf8684de40c8392b012e8fc39db0f505349dc10", "test_file": "src/test/java/com/googlecode/javaewah/PerformanceTest.java", "test_changes": [{"change_id": "2556_lemire_javaewah-JavaEWAH-1.2.3_385866e_fcf8684_PerformanceTest", "test_sign": "com/googlecode/javaewah/PerformanceTest.bigunion:()V", "class": "PerformanceTest", "method": "bigunion", "module": "", "junit_selector": "com.googlecode.javaewah.PerformanceTest#bigunion", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void bigunion() throws Exception {\n for (int k = 1; k < N; k += 10) {\n EWAHCompressedBitmap bitmapor = EWAHCompressedBitmap.or(Arrays.copyOf(ewah, k + 1));\n bogus += bitmapor.cardinality();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-25"], "old_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n counter += Long.bitCount(i.buffer().getWord(i.literalWords() + j));\n }\n }\n return counter;\n}", "new_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n counter += Long.bitCount(i.buffer()[i.literalWords() + j]);\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "530-543", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "531-544", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9375, "branch_coverage_gold": 5.8902, "method_coverage_gold": 10.4457, "line_coverage_gold": 8.1124, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.or:([Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__45fb935_014e2fa__IteratorAggregation32Test_02fc1688", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "45fb935473a9f62402ad442fd414534ae4fac81e", "rev2": "014e2fa7664f0f11c73ad82dd7529d725976b157", "rev1_date": "2014-12-02T18:07:43Z", "rev2_date": "2014-12-02T22:20:02Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/45fb935473a9f62402ad442fd414534ae4fac81e...014e2fa7664f0f11c73ad82dd7529d725976b157", "test_file": "src/test/java/com/googlecode/javaewah32/IteratorAggregation32Test.java", "test_changes": [{"change_id": "2597_lemire_javaewah-JavaEWAH-1.2.3_45fb935_014e2fa_IteratorAggregation32Test", "test_sign": "com/googlecode/javaewah32/IteratorAggregation32Test.testMat:()V", "class": "IteratorAggregation32Test", "method": "testMat", "module": "", "junit_selector": "com.googlecode.javaewah32.IteratorAggregation32Test#testMat", "old_test_code": null, "new_test_code": "@Test\npublic void testMat() {\n System.out.println(\"testMat \");\n EWAHCompressedBitmap32 b = EWAHCompressedBitmap32.bitmapOf(0, 3);\n EWAHCompressedBitmap32 n = IteratorUtil32.materialize(b.getIteratingRLW());\n assertTrue(n.sizeInBits() == 32);\n n.setSizeInBitsWithinLastWord(b.sizeInBits());\n assertTrue(n.sizeInBits() == b.sizeInBits());\n assertTrue(n.equals(b));\n EWAHCompressedBitmap32 neg = IteratorUtil32.materialize(IteratorAggregation32.not(b.getIteratingRLW()));\n neg.setSizeInBitsWithinLastWord(b.sizeInBits());\n EWAHCompressedBitmap32 x = ((EWAHCompressedBitmap32) b.clone());\n x.not();\n assertTrue(x.equals(neg));\n for (int k = 145; k < 1024; ++k) b.set(k);\n n = IteratorUtil32.materialize(b.getIteratingRLW());\n assertTrue(n.sizeInBits() / 64 * 64 == n.sizeInBits());\n n.setSizeInBitsWithinLastWord(b.sizeInBits());\n assertTrue(n.sizeInBits() == b.sizeInBits());\n assertTrue(n.equals(b));\n neg = IteratorUtil32.materialize(IteratorAggregation32.not(b.getIteratingRLW()));\n neg.setSizeInBitsWithinLastWord(b.sizeInBits());\n x = ((EWAHCompressedBitmap32) b.clone());\n x.not();\n assertTrue(x.equals(neg));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["166-192"], "old_production_code": "@Override\npublic void not() {\n final EWAHIterator32 i = this.getEWAHIterator();\n if (!i.hasNext())\n return;\n while (true) {\n final RunningLengthWord32 rlw1 = i.next();\n rlw1.setRunningBit(!rlw1.getRunningBit());\n for (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n i.buffer()[i.literalWords() + j] = ~i.buffer()[i.literalWords() + j];\n }\n if (!i.hasNext()) {\n final int usedbitsinlast = this.sizeInBits % WORD_IN_BITS;\n if (usedbitsinlast == 0)\n return;\n if (rlw1.getNumberOfLiteralWords() == 0) {\n if ((rlw1.getRunningLength() > 0) && (rlw1.getRunningBit())) {\n if ((rlw1.getRunningLength() == 1) && (rlw1.position > 0)) {\n final EWAHIterator32 j = this.getEWAHIterator();\n int newrlwpos = this.rlw.position;\n while (j.hasNext()) {\n RunningLengthWord32 r = j.next();\n if (r.position < rlw1.position) {\n newrlwpos = r.position;\n } else\n break;\n }\n this.rlw.position = newrlwpos;\n this.actualSizeInWords -= 1;\n } else\n rlw1.setRunningLength(rlw1.getRunningLength() - 1);\n this.addLiteralWord((~0) >>> (WORD_IN_BITS - usedbitsinlast));\n }\n return;\n }\n i.buffer()[i.literalWords() + rlw1.getNumberOfLiteralWords() - 1] &= ((~0) >>> (WORD_IN_BITS - usedbitsinlast));\n return;\n }\n }\n}", "new_production_code": "@Override\npublic void not() {\n final EWAHIterator32 i = this.getEWAHIterator();\n if (!i.hasNext())\n return;\n while (true) {\n final RunningLengthWord32 rlw1 = i.next();\n rlw1.setRunningBit(!rlw1.getRunningBit());\n for (int j = 0; j < rlw1.getNumberOfLiteralWords(); ++j) {\n i.buffer()[i.literalWords() + j] = ~i.buffer()[i.literalWords() + j];\n }\n if (!i.hasNext()) {\n final int usedbitsinlast = this.sizeInBits % WORD_IN_BITS;\n if (usedbitsinlast == 0)\n return;\n if (rlw1.getNumberOfLiteralWords() == 0) {\n if ((rlw1.getRunningLength() > 0) && (rlw1.getRunningBit())) {\n if ((rlw1.getRunningLength() == 1) && (rlw1.position > 0)) {\n final EWAHIterator32 j = this.getEWAHIterator();\n int newrlwpos = this.rlw.position;\n while (j.hasNext()) {\n RunningLengthWord32 r = j.next();\n if (r.position < rlw1.position) {\n newrlwpos = r.position;\n } else\n break;\n }\n this.rlw.position = newrlwpos;\n this.actualSizeInWords -= 1;\n } else\n rlw1.setRunningLength(rlw1.getRunningLength() - 1);\n this.insertLiteralWord((~0) >>> (WORD_IN_BITS - usedbitsinlast));\n }\n return;\n }\n i.buffer()[i.literalWords() + rlw1.getNumberOfLiteralWords() - 1] &= ((~0) >>> (WORD_IN_BITS - usedbitsinlast));\n return;\n }\n }\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "926-972", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "934-980", "dependency_updated": "updated", "score": 0.1137, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.3333, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBitsWithinLastWord:(I)V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1430-1467", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1438-1475", "dependency_updated": "updated", "score": 0.0253, "signal_scores": {"nc": 0.0, "lcs_u": 0.0741, "ed": 0.0741, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5339805825242718, "branch_coverage_gold": 5.2863, "method_coverage_gold": 11.5922, "line_coverage_gold": 7.4787, "is_traceback": true, "commit_gap": {"count": 3, "skipped_commits": ["85d036618aedf7e17719c65edf193ca0064311c0", "4ae853fbcbe27a66482489a2204ec3897272181d", "d6cc01e81b5edd74b9d97ecf2242637f34ef3602"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBitsWithinLastWord:(I)V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBits:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.getIteratingRLW:()Lcom/googlecode/javaewah32/IteratingRLW32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/IteratorAggregation32.not:(Lcom/googlecode/javaewah32/IteratingRLW32;)Lcom/googlecode/javaewah32/IteratingRLW32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah32/IteratorUtil32.materialize:(Lcom/googlecode/javaewah32/IteratingRLW32;)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBitsWithinLastWord:(I)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__45fb935_d6cc01e__EWAHCompressedBitmapTest_6250a143", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "45fb935473a9f62402ad442fd414534ae4fac81e", "rev2": "d6cc01e81b5edd74b9d97ecf2242637f34ef3602", "rev1_date": "2014-12-02T18:07:43Z", "rev2_date": "2014-12-02T20:50:18Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/45fb935473a9f62402ad442fd414534ae4fac81e...d6cc01e81b5edd74b9d97ecf2242637f34ef3602", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2562_lemire_javaewah-JavaEWAH-1.2.3_45fb935_d6cc01e_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.testBug090:()V", "class": "EWAHCompressedBitmapTest", "method": "testBug090", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#testBug090", "old_test_code": null, "new_test_code": "@Test\npublic void testBug090() {\n EWAHCompressedBitmap bm = new EWAHCompressedBitmap();\n bm.setSizeInBits(8, false);\n EWAHCompressedBitmap bm1 = bm.clone();\n bm1.not();\n bm1 = bm1.and(bm);\n Assert.assertEquals(0, bm.cardinality());\n Assert.assertEquals(0, bm1.cardinality());\n Assert.assertEquals(bm.sizeInBits(), bm1.sizeInBits());\n Assert.assertTrue(bm.equals(bm1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-36"], "old_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits) {\n return false;\n }\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (!defaultValue) {\n if (this.rlw.getNumberOfLiteralWords() > 0) {\n final int bitsToAdd = size - this.sizeInBits;\n final int usedBitsInLast = this.sizeInBits % WORD_IN_BITS;\n final int freeBitsInLast = WORD_IN_BITS - usedBitsInLast;\n if (this.buffer[this.actualSizeInWords - 1] == 0l) {\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n this.actualSizeInWords--;\n this.sizeInBits -= usedBitsInLast;\n } else if (usedBitsInLast > 0) {\n this.sizeInBits += Math.min(bitsToAdd, freeBitsInLast);\n }\n }\n } else {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth = Math.min(WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS, size - this.sizeInBits);\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == ~0l) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = distanceInWords(size - 1);\n if (dist > 0) {\n addLiteralWord(0);\n }\n if (defaultValue) {\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n this.sizeInBits = size;\n }\n return true;\n}", "new_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits) {\n return false;\n }\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (!defaultValue) {\n if (this.rlw.getNumberOfLiteralWords() > 0) {\n final int bitsToAdd = size - this.sizeInBits;\n final int usedBitsInLast = this.sizeInBits % WORD_IN_BITS;\n final int freeBitsInLast = WORD_IN_BITS - usedBitsInLast;\n if (this.buffer[this.actualSizeInWords - 1] == 0l) {\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n this.actualSizeInWords--;\n this.sizeInBits -= usedBitsInLast;\n } else if (usedBitsInLast > 0) {\n this.sizeInBits += Math.min(bitsToAdd, freeBitsInLast);\n }\n }\n } else {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n insertLiteralWord(0);\n }\n final int maskWidth = Math.min(WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS, size - this.sizeInBits);\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == ~0l) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n insertEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = distanceInWords(size - 1);\n if (dist > 0) {\n insertLiteralWord(0);\n }\n if (defaultValue) {\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0l) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n this.sizeInBits = size;\n }\n return true;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1449-1501", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1462-1514", "dependency_updated": "updated", "score": 0.2018, "signal_scores": {"nc": 0.0, "lcs_u": 0.0769, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.not:()V", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "913-962", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "926-975", "dependency_updated": "updated", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.47572815533980584, "branch_coverage_gold": 2.9515, "method_coverage_gold": 8.1006, "line_coverage_gold": 5.0381, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.not:()V", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBits:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.and:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clone:()Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.not:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__45fb935_d6cc01e__EWAHCompressedBitmap32Test_6250a143", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "45fb935473a9f62402ad442fd414534ae4fac81e", "rev2": "d6cc01e81b5edd74b9d97ecf2242637f34ef3602", "rev1_date": "2014-12-02T18:07:43Z", "rev2_date": "2014-12-02T20:50:18Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/45fb935473a9f62402ad442fd414534ae4fac81e...d6cc01e81b5edd74b9d97ecf2242637f34ef3602", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2563_lemire_javaewah-JavaEWAH-1.2.3_45fb935_d6cc01e_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.testBug090:()V", "class": "EWAHCompressedBitmap32Test", "method": "testBug090", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#testBug090", "old_test_code": null, "new_test_code": "@Test\npublic void testBug090() {\n EWAHCompressedBitmap32 bm = new EWAHCompressedBitmap32();\n bm.setSizeInBits(8, false);\n EWAHCompressedBitmap32 bm1 = bm.clone();\n bm1.not();\n bm1 = bm1.and(bm);\n Assert.assertEquals(0, bm.cardinality());\n Assert.assertEquals(0, bm1.cardinality());\n Assert.assertEquals(bm.sizeInBits(), bm1.sizeInBits());\n Assert.assertTrue(bm.equals(bm1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-38"], "old_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits) {\n return false;\n }\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (!defaultValue) {\n if (this.rlw.getNumberOfLiteralWords() > 0) {\n final int bitsToAdd = size - this.sizeInBits;\n final int usedBitsInLast = this.sizeInBits % WORD_IN_BITS;\n final int freeBitsInLast = WORD_IN_BITS - usedBitsInLast;\n if (this.buffer[this.actualSizeInWords - 1] == 0) {\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n this.actualSizeInWords--;\n this.sizeInBits -= usedBitsInLast;\n } else if (usedBitsInLast > 0) {\n this.sizeInBits += Math.min(bitsToAdd, freeBitsInLast);\n }\n }\n } else {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n addLiteralWord(0);\n }\n final int maskWidth = Math.min(WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS, size - this.sizeInBits);\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == (~0)) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n addEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = distanceInWords(size - 1);\n if (dist > 0) {\n addLiteralWord(0);\n }\n if (defaultValue) {\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n this.sizeInBits = size;\n }\n return true;\n}", "new_production_code": "public boolean setSizeInBits(final int size, final boolean defaultValue) {\n if (size <= this.sizeInBits) {\n return false;\n }\n if ((this.sizeInBits % WORD_IN_BITS) != 0) {\n if (!defaultValue) {\n if (this.rlw.getNumberOfLiteralWords() > 0) {\n final int bitsToAdd = size - this.sizeInBits;\n final int usedBitsInLast = this.sizeInBits % WORD_IN_BITS;\n final int freeBitsInLast = WORD_IN_BITS - usedBitsInLast;\n if (this.buffer[this.actualSizeInWords - 1] == 0) {\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n this.actualSizeInWords--;\n this.sizeInBits -= usedBitsInLast;\n } else if (usedBitsInLast > 0) {\n this.sizeInBits += Math.min(bitsToAdd, freeBitsInLast);\n }\n }\n } else {\n if (this.rlw.getNumberOfLiteralWords() == 0) {\n this.rlw.setRunningLength(this.rlw.getRunningLength() - 1);\n insertLiteralWord(0);\n }\n final int maskWidth = Math.min(WORD_IN_BITS - this.sizeInBits % WORD_IN_BITS, size - this.sizeInBits);\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n if (this.buffer[this.actualSizeInWords - 1] == (~0)) {\n this.buffer[this.actualSizeInWords - 1] = 0;\n --this.actualSizeInWords;\n this.rlw.setNumberOfLiteralWords(this.rlw.getNumberOfLiteralWords() - 1);\n insertEmptyWord(true);\n }\n this.sizeInBits += maskWidth;\n }\n }\n this.addStreamOfEmptyWords(defaultValue, (size / WORD_IN_BITS) - (this.sizeInBits / WORD_IN_BITS));\n if (this.sizeInBits < size) {\n final int dist = distanceInWords(size - 1);\n if (dist > 0) {\n addLiteralWord(0);\n }\n if (defaultValue) {\n final int maskWidth = size - this.sizeInBits;\n final int maskShift = this.sizeInBits % WORD_IN_BITS;\n this.buffer[this.actualSizeInWords - 1] |= ((~0) >>> (WORD_IN_BITS - maskWidth)) << maskShift;\n }\n this.sizeInBits = size;\n }\n return true;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1482-1534", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1490-1542", "dependency_updated": "updated", "score": 0.2018, "signal_scores": {"nc": 0.0, "lcs_u": 0.0769, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "926-972", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "934-980", "dependency_updated": "updated", "score": 0.1882, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.4857142857142857, "branch_coverage_gold": 2.9515, "method_coverage_gold": 8.1006, "line_coverage_gold": 5.3963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.and:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBits:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__49d67c0_53c8720__BitSetTest_4baf7efd", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "49d67c067729a1c78ad6015b266a71f76d6603d3", "rev2": "53c872063c8799d2db16b6deba9c0e907295408a", "rev1_date": "2015-01-02T16:34:14Z", "rev2_date": "2015-01-02T18:16:33Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/49d67c067729a1c78ad6015b266a71f76d6603d3...53c872063c8799d2db16b6deba9c0e907295408a", "test_file": "src/test/java/com/googlecode/javaewah/datastructure/BitSetTest.java", "test_changes": [{"change_id": "2474_lemire_javaewah-JavaEWAH-1.2.3_49d67c0_53c8720_BitSetTest", "test_sign": "com/googlecode/javaewah/datastructure/BitSetTest.simpleExample:()V", "class": "BitSetTest", "method": "simpleExample", "module": "", "junit_selector": "com.googlecode.javaewah.datastructure.BitSetTest#simpleExample", "old_test_code": null, "new_test_code": "@Test\npublic void simpleExample() throws IOException {\n BitSet Bitmap1 = BitSet.bitmapOf(0, 2, 55, 64, 512);\n BitSet Bitmap2 = BitSet.bitmapOf(1, 3, 64, 512);\n System.out.println(\"bitmap 1: \" + Bitmap1);\n System.out.println(\"bitmap 2: \" + Bitmap2);\n BitSet orbitmap = Bitmap1.clone();\n orbitmap.or(Bitmap2);\n System.out.println(\"bitmap 1 OR bitmap 2: \" + orbitmap);\n BitSet andbitmap = Bitmap1.clone();\n andbitmap.and(Bitmap2);\n System.out.println(\"bitmap 1 AND bitmap 2: \" + andbitmap);\n BitSet xorbitmap = Bitmap1.clone();\n xorbitmap.xor(Bitmap2);\n System.out.println(\"bitmap 1 XOR bitmap 2:\" + xorbitmap);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n Bitmap1.serialize(new DataOutputStream(bos));\n BitSet Bitmap1new = new BitSet();\n byte[] bout = bos.toByteArray();\n Bitmap1new.deserialize(new DataInputStream(new ByteArrayInputStream(bout)));\n System.out.println(\"bitmap 1 (recovered) : \" + Bitmap1new);\n if (!Bitmap1.equals(Bitmap1new))\n throw new RuntimeException(\"Will not happen\");\n ByteBuffer bb = ByteBuffer.wrap(bout);\n ImmutableBitSet rmap = new ImmutableBitSet(bb.asLongBuffer());\n System.out.println(\"bitmap 1 (mapped) : \" + rmap);\n if (!rmap.equals(Bitmap1))\n throw new RuntimeException(\"Will not happen\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-59"], "old_production_code": "", "new_production_code": "public void serialize(DataOutput out) throws IOException {\n out.writeLong(this.getNumberOfWords());\n for (long w : this.data) out.writeLong(w);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "focal_method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "focal_all_deps_scored": [{"dep_id": 8, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "454-458", "dependency_updated": "inserted", "score": 0.3704, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.3077, "class": 1.0, "tfidf": 0.1423}}, {"dep_id": 3, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "529-537", "dependency_updated": "inserted", "score": 0.3418, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 1.0, "tfidf": 0.116}}, {"dep_id": 4, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "127-141", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "136-157", "dependency_updated": "updated", "score": 0.323, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 1.0, "tfidf": 0.0363}}, {"dep_id": 10, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "466-471", "dependency_updated": "inserted", "score": 0.3084, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2308, "class": 1.0, "tfidf": 0.0081}}, {"dep_id": 9, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "115-125", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "124-134", "dependency_updated": "updated", "score": 0.3041, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.0847}}, {"dep_id": 6, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "44-48", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "53-57", "dependency_updated": "updated", "score": 0.2673, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 1.0, "tfidf": 0.0321}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "441-447", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "480-486", "dependency_updated": "updated", "score": 0.2671, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 1.0, "tfidf": 0.0312}}, {"dep_id": 5, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "539-552", "dependency_updated": "inserted", "score": 0.2324, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "303-309", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "317-323", "dependency_updated": "updated", "score": 0.1956, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0312}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "77-98", "dependency_updated": "inserted", "score": 0.127, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 0.0, "tfidf": 0.0034}}, {"dep_id": 7, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "298-311", "dependency_updated": "inserted", "score": 0.0441, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8536585365853658, "branch_coverage_gold": 2.3057, "method_coverage_gold": 3.4238, "line_coverage_gold": 2.6112, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["788238fae3298b19c658fb1353bbe757a97338ab", "bf5a4a33bfc306f1419ea40b6181a7ec1b058a5f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__49d67c0_bf5a4a3__BitSetTest_3c08ee0b", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "49d67c067729a1c78ad6015b266a71f76d6603d3", "rev2": "bf5a4a33bfc306f1419ea40b6181a7ec1b058a5f", "rev1_date": "2015-01-02T16:34:14Z", "rev2_date": "2015-01-02T17:41:11Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/49d67c067729a1c78ad6015b266a71f76d6603d3...bf5a4a33bfc306f1419ea40b6181a7ec1b058a5f", "test_file": "src/test/java/com/googlecode/javaewah/datastructure/BitSetTest.java", "test_changes": [{"change_id": "2493_lemire_javaewah-JavaEWAH-1.2.3_49d67c0_bf5a4a3_BitSetTest", "test_sign": "com/googlecode/javaewah/datastructure/BitSetTest.serializationExample:()V", "class": "BitSetTest", "method": "serializationExample", "module": "", "junit_selector": "com.googlecode.javaewah.datastructure.BitSetTest#serializationExample", "old_test_code": null, "new_test_code": "@Test\npublic void serializationExample() throws IOException {\n File tmpfile = File.createTempFile(\"javaewah\", \"bin\");\n tmpfile.deleteOnExit();\n final FileOutputStream fos = new FileOutputStream(tmpfile);\n BitSet Bitmap = BitSet.bitmapOf(0, 2, 55, 64, 512);\n System.out.println(\"Created the bitmap \" + Bitmap);\n Bitmap.serialize(new DataOutputStream(fos));\n long totalcount = fos.getChannel().position();\n System.out.println(\"Serialized total count = \" + totalcount + \" bytes\");\n fos.close();\n RandomAccessFile memoryMappedFile = new RandomAccessFile(tmpfile, \"r\");\n ByteBuffer bb = memoryMappedFile.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, totalcount);\n ImmutableBitSet mapped = new ImmutableBitSet(bb.asLongBuffer());\n System.out.println(\"Mapped the bitmap \" + mapped);\n memoryMappedFile.close();\n if (!mapped.equals(Bitmap))\n throw new RuntimeException(\"Will not happen\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-80"], "old_production_code": "", "new_production_code": "public void serialize(DataOutput out) throws IOException {\n out.writeLong(this.getNumberOfWords());\n for (long w : this.data) out.writeLong(w);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "focal_method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "454-458", "dependency_updated": "inserted", "score": 0.4657, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.45, "class": 1.0, "tfidf": 0.1141}}, {"dep_id": 4, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "529-537", "dependency_updated": "inserted", "score": 0.3202, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 1.0, "tfidf": 0.0458}}, {"dep_id": 3, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "539-552", "dependency_updated": "inserted", "score": 0.2929, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "77-98", "dependency_updated": "inserted", "score": 0.1136, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.15, "class": 0.0, "tfidf": 0.0029}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "298-311", "dependency_updated": "inserted", "score": 0.1047, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9111111111111111, "branch_coverage_gold": 1.6225, "method_coverage_gold": 2.5974, "line_coverage_gold": 1.9428, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2494_lemire_javaewah-JavaEWAH-1.2.3_49d67c0_bf5a4a3_BitSetTest", "test_sign": "com/googlecode/javaewah/datastructure/BitSetTest.simpleExample:()V", "class": "BitSetTest", "method": "simpleExample", "module": "", "junit_selector": "com.googlecode.javaewah.datastructure.BitSetTest#simpleExample", "old_test_code": null, "new_test_code": "@Test\npublic void simpleExample() throws IOException {\n BitSet Bitmap1 = BitSet.bitmapOf(0, 2, 55, 64, 1 << 30);\n BitSet Bitmap2 = BitSet.bitmapOf(1, 3, 64, 1 << 30);\n System.out.println(\"bitmap 1: \" + Bitmap1);\n System.out.println(\"bitmap 2: \" + Bitmap2);\n BitSet orbitmap = Bitmap1.clone();\n orbitmap.or(Bitmap2);\n System.out.println(\"bitmap 1 OR bitmap 2: \" + orbitmap);\n BitSet andbitmap = Bitmap1.clone();\n andbitmap.and(Bitmap2);\n System.out.println(\"bitmap 1 AND bitmap 2: \" + andbitmap);\n BitSet xorbitmap = Bitmap1.clone();\n xorbitmap.xor(Bitmap2);\n System.out.println(\"bitmap 1 XOR bitmap 2:\" + xorbitmap);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n Bitmap1.serialize(new DataOutputStream(bos));\n BitSet Bitmap1new = new BitSet();\n byte[] bout = bos.toByteArray();\n Bitmap1new.deserialize(new DataInputStream(new ByteArrayInputStream(bout)));\n System.out.println(\"bitmap 1 (recovered) : \" + Bitmap1new);\n if (!Bitmap1.equals(Bitmap1new))\n throw new RuntimeException(\"Will not happen\");\n ByteBuffer bb = ByteBuffer.wrap(bout);\n ImmutableBitSet rmap = new ImmutableBitSet(bb.asLongBuffer());\n System.out.println(\"bitmap 1 (mapped) : \" + rmap);\n if (!rmap.equals(Bitmap1))\n throw new RuntimeException(\"Will not happen\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-59"], "old_production_code": "", "new_production_code": "public void serialize(DataOutput out) throws IOException {\n out.writeLong(this.getNumberOfWords());\n for (long w : this.data) out.writeLong(w);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "focal_method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "focal_all_deps_scored": [{"dep_id": 8, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "454-458", "dependency_updated": "inserted", "score": 0.3704, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.3077, "class": 1.0, "tfidf": 0.1423}}, {"dep_id": 3, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "529-537", "dependency_updated": "inserted", "score": 0.3418, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 1.0, "tfidf": 0.116}}, {"dep_id": 4, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "127-141", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "136-157", "dependency_updated": "updated", "score": 0.323, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 1.0, "tfidf": 0.0363}}, {"dep_id": 10, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "466-471", "dependency_updated": "inserted", "score": 0.3084, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.2308, "class": 1.0, "tfidf": 0.0081}}, {"dep_id": 9, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "115-125", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "124-134", "dependency_updated": "updated", "score": 0.3041, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.0847}}, {"dep_id": 6, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "44-48", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "53-57", "dependency_updated": "updated", "score": 0.2673, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 1.0, "tfidf": 0.0321}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "441-447", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "480-486", "dependency_updated": "updated", "score": 0.2671, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 1.0, "tfidf": 0.0312}}, {"dep_id": 5, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "539-552", "dependency_updated": "inserted", "score": 0.2324, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_old": "303-309", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "line_nums_new": "317-323", "dependency_updated": "updated", "score": 0.1956, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0312}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "77-98", "dependency_updated": "inserted", "score": 0.127, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 0.0, "tfidf": 0.0034}}, {"dep_id": 7, "method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "line_nums_new": "298-311", "dependency_updated": "inserted", "score": 0.0441, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8536585365853658, "branch_coverage_gold": 2.3057, "method_coverage_gold": 3.4238, "line_coverage_gold": 2.6112, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/datastructure/BitSet.or:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.xor:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.bitmapOf:([I)Lcom/googlecode/javaewah/datastructure/BitSet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.equals:(Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.and:(Lcom/googlecode/javaewah/datastructure/WordArray;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah/datastructure/ImmutableBitSet.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/ImmutableBitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.serialize:(Ljava/io/DataOutput;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.clone:()Lcom/googlecode/javaewah/datastructure/BitSet", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah/datastructure/BitSet.deserialize:(Ljava/io/DataInput;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/datastructure/BitSet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__8376d21_49d67c0__EWAHCompressedBitmapTest_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "8376d211624b048002aceccb52a780361d16f1c8", "rev2": "49d67c067729a1c78ad6015b266a71f76d6603d3", "rev1_date": "2015-01-02T16:10:55Z", "rev2_date": "2015-01-02T16:34:14Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/8376d211624b048002aceccb52a780361d16f1c8...49d67c067729a1c78ad6015b266a71f76d6603d3", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2593_lemire_javaewah-JavaEWAH-1.2.3_8376d21_49d67c0_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clear:()V", "class": "EWAHCompressedBitmapTest", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-121"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6933, "method_coverage_gold": 7.598, "line_coverage_gold": 4.5425, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.get:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBits:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2595_lemire_javaewah-JavaEWAH-1.2.3_8376d21_49d67c0_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clearStressTest:()V", "class": "EWAHCompressedBitmapTest", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-107"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1205-1217", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1225-1227", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8421052631578947, "branch_coverage_gold": 3.7793, "method_coverage_gold": 6.1275, "line_coverage_gold": 4.7139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBytes:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__8376d21_49d67c0__EWAHCompressedBitmap32Test_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "8376d211624b048002aceccb52a780361d16f1c8", "rev2": "49d67c067729a1c78ad6015b266a71f76d6603d3", "rev1_date": "2015-01-02T16:10:55Z", "rev2_date": "2015-01-02T16:34:14Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/8376d211624b048002aceccb52a780361d16f1c8...49d67c067729a1c78ad6015b266a71f76d6603d3", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2594_lemire_javaewah-JavaEWAH-1.2.3_8376d21_49d67c0_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clearStressTest:()V", "class": "EWAHCompressedBitmap32Test", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-51"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1207-1219", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1227-1229", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.7793, "method_coverage_gold": 6.1275, "line_coverage_gold": 4.6925, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBytes:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2596_lemire_javaewah-JavaEWAH-1.2.3_8376d21_49d67c0_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clear:()V", "class": "EWAHCompressedBitmap32Test", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-65"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6933, "method_coverage_gold": 7.598, "line_coverage_gold": 4.5425, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.get:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBits:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__9886242_7d5284a__EWAHCompressedBitmapTest_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "9886242dd6d38830ef0b75c39c08ee3e8bde658c", "rev2": "7d5284a6c3955aed35a30b13c533a38edc6014dd", "rev1_date": "2015-01-02T18:46:27Z", "rev2_date": "2015-01-02T19:22:06Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/9886242dd6d38830ef0b75c39c08ee3e8bde658c...7d5284a6c3955aed35a30b13c533a38edc6014dd", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2576_lemire_javaewah-JavaEWAH-1.2.3_9886242_7d5284a_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clear:()V", "class": "EWAHCompressedBitmapTest", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-121"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6249, "method_coverage_gold": 7.2855, "line_coverage_gold": 4.4139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.get:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBits:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2578_lemire_javaewah-JavaEWAH-1.2.3_9886242_7d5284a_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clearStressTest:()V", "class": "EWAHCompressedBitmapTest", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-107"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1205-1217", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1225-1227", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8421052631578947, "branch_coverage_gold": 3.641, "method_coverage_gold": 5.8754, "line_coverage_gold": 4.5597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBytes:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__9886242_7d5284a__EWAHCompressedBitmap32Test_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "9886242dd6d38830ef0b75c39c08ee3e8bde658c", "rev2": "7d5284a6c3955aed35a30b13c533a38edc6014dd", "rev1_date": "2015-01-02T18:46:27Z", "rev2_date": "2015-01-02T19:22:06Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/9886242dd6d38830ef0b75c39c08ee3e8bde658c...7d5284a6c3955aed35a30b13c533a38edc6014dd", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2577_lemire_javaewah-JavaEWAH-1.2.3_9886242_7d5284a_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clearStressTest:()V", "class": "EWAHCompressedBitmap32Test", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-51"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1207-1219", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1227-1229", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.6833, "method_coverage_gold": 5.8754, "line_coverage_gold": 4.5597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBytes:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2579_lemire_javaewah-JavaEWAH-1.2.3_9886242_7d5284a_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clear:()V", "class": "EWAHCompressedBitmap32Test", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-65"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6249, "method_coverage_gold": 7.2855, "line_coverage_gold": 4.4139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.get:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBits:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b5fd58e_d020026__EWAHCompressedBitmap32Test_49fa7257", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "rev2": "d020026f824c9d6a5876139ab66898b85dd218bc", "rev1_date": "2014-12-31T12:35:33Z", "rev2_date": "2014-12-31T15:07:15Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c...d020026f824c9d6a5876139ab66898b85dd218bc", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2503_lemire_javaewah-JavaEWAH-1.2.3_b5fd58e_d020026_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.simpleTestWithIntBuffer:()V", "class": "EWAHCompressedBitmap32Test", "method": "simpleTestWithIntBuffer", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#simpleTestWithIntBuffer", "old_test_code": null, "new_test_code": "@Test\npublic void simpleTestWithIntBuffer() {\n java.nio.IntBuffer buffer = java.nio.IntBuffer.wrap(new int[10]);\n EWAHCompressedBitmap32 bitmap = new EWAHCompressedBitmap32(buffer);\n int maxPosition = 666;\n int[] positions = new int[] { 1, maxPosition, 99, 5 };\n for (int position : positions) {\n bitmap.set(position);\n }\n Assert.assertEquals(positions.length, bitmap.cardinality());\n int[] sortedPositions = positions.clone();\n Arrays.sort(sortedPositions);\n Assert.assertArrayEquals(sortedPositions, bitmap.toArray());\n bitmap.not();\n Assert.assertEquals(maxPosition + 1 - positions.length, bitmap.cardinality());\n for (int i = 0; i <= maxPosition; i++) {\n bitmap.set(i);\n }\n Assert.assertEquals(maxPosition + 1, bitmap.cardinality());\n bitmap.clear();\n Assert.assertEquals(0, bitmap.cardinality());\n bitmap.swap(EWAHCompressedBitmap32.bitmapOf(1));\n Assert.assertEquals(1, bitmap.cardinality());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-56"], "old_production_code": "public void swap(final EWAHCompressedBitmap32 other) {\n IntArray tmp = this.buffer;\n this.buffer = other.buffer;\n other.buffer = tmp;\n int tmp2 = this.rlw.position;\n this.rlw.position = other.rlw.position;\n other.rlw.position = tmp2;\n IntArray tmp3 = this.rlw.buffer;\n this.rlw.buffer = other.rlw.buffer;\n other.rlw.buffer = tmp3;\n int tmp4 = this.sizeInBits;\n this.sizeInBits = other.sizeInBits;\n other.sizeInBits = tmp4;\n}", "new_production_code": "public void swap(final EWAHCompressedBitmap32 other) {\n this.buffer.swap(other.buffer);\n int tmp2 = this.rlw.position;\n this.rlw.position = other.rlw.position;\n other.rlw.position = tmp2;\n int tmp3 = this.sizeInBits;\n this.sizeInBits = other.sizeInBits;\n other.sizeInBits = tmp3;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1591-1607", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1599-1609", "dependency_updated": "updated", "score": 0.3016, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.087, "class": 1.0, "tfidf": 0.0457}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "541-556", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "553-569", "dependency_updated": "updated", "score": 0.2705, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.087, "class": 1.0, "tfidf": 0.0162}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1508-1538", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1515-1546", "dependency_updated": "updated", "score": 0.2486, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0435, "class": 1.0, "tfidf": 0.0119}}], "coverage_gold": 0.7582417582417582, "branch_coverage_gold": 3.3981, "method_coverage_gold": 8.642, "line_coverage_gold": 6.0817, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b5fd58e_df0b41b__EWAHCompressedBitmap32Test_49fa7257", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T12:35:33Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2470_lemire_javaewah-JavaEWAH-1.2.3_b5fd58e_df0b41b_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.simpleTestWithIntBuffer:()V", "class": "EWAHCompressedBitmap32Test", "method": "simpleTestWithIntBuffer", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#simpleTestWithIntBuffer", "old_test_code": null, "new_test_code": "@Test\npublic void simpleTestWithIntBuffer() {\n EWAHCompressedBitmap32 bitmap = new EWAHCompressedBitmap32(IntBuffer.wrap(new int[10]));\n int maxPosition = 666;\n int[] positions = new int[] { 1, maxPosition, 99, 5 };\n for (int position : positions) {\n bitmap.set(position);\n }\n Assert.assertEquals(positions.length, bitmap.cardinality());\n int[] sortedPositions = positions.clone();\n Arrays.sort(sortedPositions);\n Assert.assertArrayEquals(sortedPositions, bitmap.toArray());\n bitmap.not();\n Assert.assertEquals(maxPosition + 1 - positions.length, bitmap.cardinality());\n for (int i = 0; i <= maxPosition; i++) {\n bitmap.set(i);\n }\n Assert.assertEquals(maxPosition + 1, bitmap.cardinality());\n bitmap.clear();\n Assert.assertEquals(0, bitmap.cardinality());\n bitmap.swap(EWAHCompressedBitmap32.bitmapOf(1));\n Assert.assertEquals(1, bitmap.cardinality());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-77"], "old_production_code": "public void swap(final EWAHCompressedBitmap32 other) {\n IntArray tmp = this.buffer;\n this.buffer = other.buffer;\n other.buffer = tmp;\n int tmp2 = this.rlw.position;\n this.rlw.position = other.rlw.position;\n other.rlw.position = tmp2;\n IntArray tmp3 = this.rlw.buffer;\n this.rlw.buffer = other.rlw.buffer;\n other.rlw.buffer = tmp3;\n int tmp4 = this.sizeInBits;\n this.sizeInBits = other.sizeInBits;\n other.sizeInBits = tmp4;\n}", "new_production_code": "public void swap(final EWAHCompressedBitmap32 other) {\n this.buffer.swap(other.buffer);\n int tmp2 = this.rlw.position;\n this.rlw.position = other.rlw.position;\n other.rlw.position = tmp2;\n int tmp3 = this.sizeInBits;\n this.sizeInBits = other.sizeInBits;\n other.sizeInBits = tmp3;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1591-1607", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1621-1631", "dependency_updated": "updated", "score": 0.2912, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.087, "class": 1.0, "tfidf": 0.0019}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "541-556", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "574-590", "dependency_updated": "updated", "score": 0.2667, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.087, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1508-1538", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1537-1568", "dependency_updated": "updated", "score": 0.2458, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0435, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.7582417582417582, "branch_coverage_gold": 3.3981, "method_coverage_gold": 8.5784, "line_coverage_gold": 6.06, "is_traceback": true, "commit_gap": {"count": 7, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.not:()V", "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.swap:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b5fd58e_df0b41b__MemoryMapTest_6f472064", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T12:35:33Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah32/MemoryMapTest.java", "test_changes": [{"change_id": "2465_lemire_javaewah-JavaEWAH-1.2.3_b5fd58e_df0b41b_MemoryMapTest", "test_sign": "com/googlecode/javaewah32/MemoryMapTest.basicTest:()V", "class": "MemoryMapTest", "method": "basicTest", "module": "", "junit_selector": "com.googlecode.javaewah32.MemoryMapTest#basicTest", "old_test_code": null, "new_test_code": "@Test\npublic void basicTest() throws IOException, CloneNotSupportedException {\n EWAHCompressedBitmap32 ewahBitmap = EWAHCompressedBitmap32.bitmapOf(0, 2, 55, 64, 1 << 30);\n EWAHCompressedBitmap32 newewahBitmap = ewahBitmap.clone();\n Assert.assertEquals(newewahBitmap, ewahBitmap);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ewahBitmap.serialize(new DataOutputStream(bos));\n ByteBuffer bb = ByteBuffer.wrap(bos.toByteArray());\n EWAHCompressedBitmap32 mapped = new EWAHCompressedBitmap32(bb);\n Assert.assertEquals(mapped, ewahBitmap);\n EWAHCompressedBitmap32 newmapped;\n newmapped = mapped.clone();\n Assert.assertEquals(newmapped, ewahBitmap);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-29"], "old_production_code": "@Override\npublic EWAHCompressedBitmap32 clone() {\n EWAHCompressedBitmap32 clone = null;\n try {\n clone = (EWAHCompressedBitmap32) super.clone();\n clone.buffer = this.buffer.clone();\n clone.sizeInBits = this.sizeInBits;\n clone.rlw = new RunningLengthWord32(clone.buffer, this.rlw.position);\n } catch (CloneNotSupportedException e) {\n e.printStackTrace();\n }\n return clone;\n}", "new_production_code": "@Override\npublic EWAHCompressedBitmap32 clone() throws CloneNotSupportedException {\n EWAHCompressedBitmap32 clone = new EWAHCompressedBitmap32(this.buffer.clone());\n clone.sizeInBits = this.sizeInBits;\n clone.rlw = new RunningLengthWord32(clone.buffer, this.rlw.position);\n return clone;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "571-584", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "605-611", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.85, "branch_coverage_gold": 3.1774, "method_coverage_gold": 9.6814, "line_coverage_gold": 6.254, "is_traceback": true, "commit_gap": {"count": 7, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.equals:(Ljava/lang/Object;)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.serialize:(Ljava/io/DataOutput;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clone:()Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b5fd58e_df0b41b__PerformanceTest_6cfa91c3", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T12:35:33Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah32/PerformanceTest.java", "test_changes": [{"change_id": "2464_lemire_javaewah-JavaEWAH-1.2.3_b5fd58e_df0b41b_PerformanceTest", "test_sign": "com/googlecode/javaewah32/PerformanceTest.toarraybuf:()V", "class": "PerformanceTest", "method": "toarraybuf", "module": "", "junit_selector": "com.googlecode.javaewah32.PerformanceTest#toarraybuf", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void toarraybuf() throws Exception {\n for (int k = 1; k < N * 100; ++k) {\n bogus += ewahbuf[k % N].toArray().length;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-64"], "old_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inanspos = 0;\n int pos = 0;\n final EWAHIterator32 i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord32 localrlw = i.next();\n if (localrlw.getRunningBit()) {\n for (int j = 0; j < localrlw.getRunningLength(); ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inanspos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n int data = i.buffer().getWord(i.literalWords() + j);\n while (data != 0) {\n final int t = data & -data;\n ans[inanspos++] = Integer.bitCount(t - 1) + pos;\n data ^= t;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "new_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inanspos = 0;\n int pos = 0;\n final EWAHIterator32 i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord32 localrlw = i.next();\n final int runningLength = localrlw.getRunningLength();\n if (localrlw.getRunningBit()) {\n for (int j = 0; j < runningLength; ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inanspos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * runningLength;\n }\n final int numberOfLiteralWords = localrlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n int data = i.buffer().getWord(literalWords + j);\n while (data != 0) {\n final int t = data & -data;\n ans[inanspos++] = Integer.bitCount(t - 1) + pos;\n data ^= t;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1508-1538", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1537-1568", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.7211, "method_coverage_gold": 5.3922, "line_coverage_gold": 3.4721, "is_traceback": true, "commit_gap": {"count": 7, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2466_lemire_javaewah-JavaEWAH-1.2.3_b5fd58e_df0b41b_PerformanceTest", "test_sign": "com/googlecode/javaewah32/PerformanceTest.toarray:()V", "class": "PerformanceTest", "method": "toarray", "module": "", "junit_selector": "com.googlecode.javaewah32.PerformanceTest#toarray", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void toarray() throws Exception {\n for (int k = 1; k < N * 100; ++k) {\n bogus += ewah[k % N].toArray().length;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-56"], "old_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inanspos = 0;\n int pos = 0;\n final EWAHIterator32 i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord32 localrlw = i.next();\n if (localrlw.getRunningBit()) {\n for (int j = 0; j < localrlw.getRunningLength(); ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inanspos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n int data = i.buffer().getWord(i.literalWords() + j);\n while (data != 0) {\n final int t = data & -data;\n ans[inanspos++] = Integer.bitCount(t - 1) + pos;\n data ^= t;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "new_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inanspos = 0;\n int pos = 0;\n final EWAHIterator32 i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord32 localrlw = i.next();\n final int runningLength = localrlw.getRunningLength();\n if (localrlw.getRunningBit()) {\n for (int j = 0; j < runningLength; ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inanspos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * runningLength;\n }\n final int numberOfLiteralWords = localrlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n int data = i.buffer().getWord(literalWords + j);\n while (data != 0) {\n final int t = data & -data;\n ans[inanspos++] = Integer.bitCount(t - 1) + pos;\n data ^= t;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1508-1538", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1537-1568", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.7211, "method_coverage_gold": 5.1471, "line_coverage_gold": 3.4289, "is_traceback": true, "commit_gap": {"count": 7, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b75f654_b5fd58e__EWAHCompressedBitmapTest_ef01f342", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b75f65456718f743ba0a6643d486a16d0ff69363", "rev2": "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "rev1_date": "2014-12-31T10:11:49Z", "rev2_date": "2014-12-31T12:35:33Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b75f65456718f743ba0a6643d486a16d0ff69363...b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2580_lemire_javaewah-JavaEWAH-1.2.3_b75f654_b5fd58e_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.simpleTestWithLongBuffer:()V", "class": "EWAHCompressedBitmapTest", "method": "simpleTestWithLongBuffer", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#simpleTestWithLongBuffer", "old_test_code": null, "new_test_code": "@Test\npublic void simpleTestWithLongBuffer() {\n java.nio.LongBuffer buffer = java.nio.LongBuffer.wrap(new long[10]);\n EWAHCompressedBitmap bitmap = new EWAHCompressedBitmap(buffer);\n int maxPosition = 666;\n int[] positions = new int[] { 1, maxPosition, 99, 5 };\n for (int position : positions) {\n bitmap.set(position);\n }\n Assert.assertEquals(positions.length, bitmap.cardinality());\n int[] sortedPositions = positions.clone();\n Arrays.sort(sortedPositions);\n Assert.assertArrayEquals(sortedPositions, bitmap.toArray());\n bitmap.not();\n Assert.assertEquals(maxPosition + 1 - positions.length, bitmap.cardinality());\n for (int i = 0; i <= maxPosition; i++) {\n bitmap.set(i);\n }\n Assert.assertEquals(maxPosition + 1, bitmap.cardinality());\n bitmap.clear();\n Assert.assertEquals(0, bitmap.cardinality());\n bitmap.swap(EWAHCompressedBitmap.bitmapOf(1));\n Assert.assertEquals(1, bitmap.cardinality());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-54"], "old_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < localRlw.getRunningLength(); ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * localRlw.getRunningLength();\n }\n for (int j = 0; j < localRlw.getNumberOfLiteralWords(); ++j) {\n long data = i.buffer().getWord(i.literalWords() + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "new_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n final long runningLength = localRlw.getRunningLength();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < runningLength; ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * runningLength;\n }\n final int numberOfLiteralWords = localRlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n long data = i.buffer().getWord(literalWords + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1492-1521", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1502-1534", "dependency_updated": "updated", "score": 0.2804, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.0833, "class": 1.0, "tfidf": 0.0119}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "533-546", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "541-556", "dependency_updated": "updated", "score": 0.2699, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.0833, "class": 1.0, "tfidf": 0.0162}}], "coverage_gold": 0.7472527472527473, "branch_coverage_gold": 3.3274, "method_coverage_gold": 8.4184, "line_coverage_gold": 5.9315, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["f07ad2445acc211917b5d92a031684a51033e9ba"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.swap:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)V", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:()V", "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.not:()V", "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b75f654_df0b41b__EWAHCompressedBitmapTest_ef01f342", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b75f65456718f743ba0a6643d486a16d0ff69363", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T10:11:49Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b75f65456718f743ba0a6643d486a16d0ff69363...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2481_lemire_javaewah-JavaEWAH-1.2.3_b75f654_df0b41b_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.simpleTestWithLongBuffer:()V", "class": "EWAHCompressedBitmapTest", "method": "simpleTestWithLongBuffer", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#simpleTestWithLongBuffer", "old_test_code": null, "new_test_code": "@Test\npublic void simpleTestWithLongBuffer() {\n EWAHCompressedBitmap bitmap = new EWAHCompressedBitmap(LongBuffer.wrap(new long[10]));\n int maxPosition = 666;\n int[] positions = new int[] { 1, maxPosition, 99, 5 };\n for (int position : positions) {\n bitmap.set(position);\n }\n Assert.assertEquals(positions.length, bitmap.cardinality());\n int[] sortedPositions = positions.clone();\n Arrays.sort(sortedPositions);\n Assert.assertArrayEquals(sortedPositions, bitmap.toArray());\n bitmap.not();\n Assert.assertEquals(maxPosition + 1 - positions.length, bitmap.cardinality());\n for (int i = 0; i <= maxPosition; i++) {\n bitmap.set(i);\n }\n Assert.assertEquals(maxPosition + 1, bitmap.cardinality());\n bitmap.clear();\n Assert.assertEquals(0, bitmap.cardinality());\n bitmap.swap(EWAHCompressedBitmap.bitmapOf(1));\n Assert.assertEquals(1, bitmap.cardinality());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["104-133"], "old_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < localRlw.getRunningLength(); ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * localRlw.getRunningLength();\n }\n for (int j = 0; j < localRlw.getNumberOfLiteralWords(); ++j) {\n long data = i.buffer().getWord(i.literalWords() + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "new_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n final long runningLength = localRlw.getRunningLength();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < runningLength; ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * runningLength;\n }\n final int numberOfLiteralWords = localRlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n long data = i.buffer().getWord(literalWords + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1492-1521", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1527-1559", "dependency_updated": "updated", "score": 0.2776, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.0833, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "533-546", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "565-580", "dependency_updated": "updated", "score": 0.2661, "signal_scores": {"nc": 0.0, "lcs_u": 0.3636, "ed": 0.0833, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.7472527472527473, "branch_coverage_gold": 3.3098, "method_coverage_gold": 8.0882, "line_coverage_gold": 5.8443, "is_traceback": true, "commit_gap": {"count": 9, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc", "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "f07ad2445acc211917b5d92a031684a51033e9ba"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:()V", "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.not:()V", "com/googlecode/javaewah/EWAHCompressedBitmap.swap:(Lcom/googlecode/javaewah/EWAHCompressedBitmap;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__b75f654_df0b41b__PerformanceTest_cde5a8ad", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "b75f65456718f743ba0a6643d486a16d0ff69363", "rev2": "df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "rev1_date": "2014-12-31T10:11:49Z", "rev2_date": "2014-12-31T20:36:43Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/b75f65456718f743ba0a6643d486a16d0ff69363...df0b41bc2e3ca7d5c67d63c4d77a088ec8e12e44", "test_file": "src/test/java/com/googlecode/javaewah/PerformanceTest.java", "test_changes": [{"change_id": "2482_lemire_javaewah-JavaEWAH-1.2.3_b75f654_df0b41b_PerformanceTest", "test_sign": "com/googlecode/javaewah/PerformanceTest.cardinalitybuf:()V", "class": "PerformanceTest", "method": "cardinalitybuf", "module": "", "junit_selector": "com.googlecode.javaewah.PerformanceTest#cardinalitybuf", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void cardinalitybuf() throws Exception {\n for (int k = 1; k < N * 100; ++k) {\n bogus += ewahbuf[k % N].cardinality();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-80"], "old_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n counter += Long.bitCount(i.buffer().getWord(i.literalWords() + j));\n }\n }\n return counter;\n}", "new_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n final int numberOfLiteralWords = localrlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n counter += Long.bitCount(i.buffer().getWord(literalWords + j));\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "533-546", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "565-580", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 1.4122, "method_coverage_gold": 5.2696, "line_coverage_gold": 3.0623, "is_traceback": true, "commit_gap": {"count": 9, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc", "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "f07ad2445acc211917b5d92a031684a51033e9ba"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2483_lemire_javaewah-JavaEWAH-1.2.3_b75f654_df0b41b_PerformanceTest", "test_sign": "com/googlecode/javaewah/PerformanceTest.bigunionbuf:()V", "class": "PerformanceTest", "method": "bigunionbuf", "module": "", "junit_selector": "com.googlecode.javaewah.PerformanceTest#bigunionbuf", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void bigunionbuf() throws Exception {\n for (int k = 1; k < N; k += 10) {\n EWAHCompressedBitmap bitmapor = EWAHCompressedBitmap.or(Arrays.copyOf(ewahbuf, k + 1));\n bogus += bitmapor.cardinality();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-46"], "old_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n for (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n counter += Long.bitCount(i.buffer().getWord(i.literalWords() + j));\n }\n }\n return counter;\n}", "new_production_code": "public int cardinality() {\n int counter = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localrlw = i.next();\n if (localrlw.getRunningBit()) {\n counter += WORD_IN_BITS * localrlw.getRunningLength();\n }\n final int numberOfLiteralWords = localrlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n counter += Long.bitCount(i.buffer().getWord(literalWords + j));\n }\n }\n return counter;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "533-546", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "565-580", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 5.8694, "method_coverage_gold": 11.5196, "line_coverage_gold": 8.7988, "is_traceback": true, "commit_gap": {"count": 9, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc", "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "f07ad2445acc211917b5d92a031684a51033e9ba"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.or:([Lcom/googlecode/javaewah/EWAHCompressedBitmap;)Lcom/googlecode/javaewah/EWAHCompressedBitmap"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2484_lemire_javaewah-JavaEWAH-1.2.3_b75f654_df0b41b_PerformanceTest", "test_sign": "com/googlecode/javaewah/PerformanceTest.toarraybuf:()V", "class": "PerformanceTest", "method": "toarraybuf", "module": "", "junit_selector": "com.googlecode.javaewah.PerformanceTest#toarraybuf", "old_test_code": null, "new_test_code": "@BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 3)\n@Test\npublic void toarraybuf() throws Exception {\n for (int k = 1; k < N * 100; ++k) {\n bogus += ewahbuf[k % N].toArray().length;\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-63"], "old_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < localRlw.getRunningLength(); ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * localRlw.getRunningLength();\n }\n for (int j = 0; j < localRlw.getNumberOfLiteralWords(); ++j) {\n long data = i.buffer().getWord(i.literalWords() + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "new_production_code": "public int[] toArray() {\n int[] ans = new int[this.cardinality()];\n int inAnsPos = 0;\n int pos = 0;\n final EWAHIterator i = this.getEWAHIterator();\n while (i.hasNext()) {\n RunningLengthWord localRlw = i.next();\n final long runningLength = localRlw.getRunningLength();\n if (localRlw.getRunningBit()) {\n for (int j = 0; j < runningLength; ++j) {\n for (int c = 0; c < WORD_IN_BITS; ++c) {\n ans[inAnsPos++] = pos++;\n }\n }\n } else {\n pos += WORD_IN_BITS * runningLength;\n }\n final int numberOfLiteralWords = localRlw.getNumberOfLiteralWords();\n final int literalWords = i.literalWords();\n for (int j = 0; j < numberOfLiteralWords; ++j) {\n long data = i.buffer().getWord(literalWords + j);\n while (data != 0) {\n final long T = data & -data;\n ans[inAnsPos++] = Long.bitCount(T - 1) + pos;\n data ^= T;\n }\n pos += WORD_IN_BITS;\n }\n }\n return ans;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1492-1521", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1527-1559", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.7211, "method_coverage_gold": 5.3922, "line_coverage_gold": 3.5152, "is_traceback": true, "commit_gap": {"count": 9, "skipped_commits": ["13ea7bdefc2b954112c00db957045e166ab9270b", "7b0c3805724dbeb347b38c43c78f8d1f34c7ef10", "a08aeef2c2cfdfaa8ccb444543bac3ade57c2131", "81e1b6f6a90dcfc10582963ba4a659448b055e52", "37ba7694e9aff3f0ec9816988e353af7c1b0175e", "00926b276b4bfb244ce722e3fd692d2fe9eff317", "d020026f824c9d6a5876139ab66898b85dd218bc", "b5fd58e2b25d20eaf091f4ed4cff76f2cd01d98c", "f07ad2445acc211917b5d92a031684a51033e9ba"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.toArray:()[I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__e436108_fc6d221__EWAHCompressedBitmapTest_4cc7de84", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "e436108cc4d553f43aa139a23d4e8f2edab74911", "rev2": "fc6d22197c2bfa7236a7f29c48080adcf315211a", "rev1_date": "2014-08-22T19:43:25Z", "rev2_date": "2014-08-22T20:14:32Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/e436108cc4d553f43aa139a23d4e8f2edab74911...fc6d22197c2bfa7236a7f29c48080adcf315211a", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2566_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfOnes:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfOnes", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnes() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, true);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-45"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.472, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5143, "class": 1.0, "tfidf": 0.0962}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1569, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1143, "class": 0.0, "tfidf": 0.1584}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.155, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0857, "class": 0.0, "tfidf": 0.0361}}], "coverage_gold": 0.3902439024390244, "branch_coverage_gold": 1.4155, "method_coverage_gold": 3.9589, "line_coverage_gold": 2.1536, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2568_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIterator:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIterator", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIterator", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIterator() {\n int[] positions = new int[] { 0, 1, 2, 3, 5, 8, 13, 21 };\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(positions);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = positions.length - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(positions[i], iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-33"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.7995, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.148}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.1444}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.1676, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1667, "class": 0.0, "tfidf": 0.0329}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.6657, "line_coverage_gold": 2.294, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2571_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfOnesAndZeros:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfOnesAndZeros", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfOnesAndZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnesAndZeros() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS - 10, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 10; i > 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i - 1, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-66"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.4532, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4186, "class": 1.0, "tfidf": 0.0829}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "45-57", "dependency_updated": "inserted", "score": 0.1511, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0698, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1482, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.093, "class": 0.0, "tfidf": 0.1362}}], "coverage_gold": 0.5853658536585366, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.9589, "line_coverage_gold": 2.411, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.next:()I", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/ReverseIntIterator.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2573_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.reverseIntIteratorOverBitmapsOfZeros:()V", "class": "EWAHCompressedBitmapTest", "method": "reverseIntIteratorOverBitmapsOfZeros", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#reverseIntIteratorOverBitmapsOfZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfZeros() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "810-812", "dependency_updated": "inserted", "score": 0.48, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1399}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.1457, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1111, "class": 0.0, "tfidf": 0.1131}}], "coverage_gold": 0.29411764705882354, "branch_coverage_gold": 1.1416, "method_coverage_gold": 3.6657, "line_coverage_gold": 1.9897, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.setSizeInBits:(IZ)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/ReverseIntIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/ReverseIntIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__e436108_fc6d221__EWAHCompressedBitmap32Test_4cc7de84", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "e436108cc4d553f43aa139a23d4e8f2edab74911", "rev2": "fc6d22197c2bfa7236a7f29c48080adcf315211a", "rev1_date": "2014-08-22T19:43:25Z", "rev2_date": "2014-08-22T20:14:32Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/e436108cc4d553f43aa139a23d4e8f2edab74911...fc6d22197c2bfa7236a7f29c48080adcf315211a", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2567_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfOnesAndZeros:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfOnesAndZeros", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfOnesAndZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnesAndZeros() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS - 10, true);\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 10; i > 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i - 1, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-68"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4475, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4186, "class": 1.0, "tfidf": 0.0588}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.1511, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0698, "class": 0.0, "tfidf": 0.031}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1482, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.093, "class": 0.0, "tfidf": 0.1362}}], "coverage_gold": 0.5853658536585366, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.8123, "line_coverage_gold": 2.3642, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2569_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfZeros:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfZeros", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfZeros", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfZeros() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, false);\n IntIterator iterator = bitmap.reverseIntIterator();\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-55"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4704, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.0991}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1457, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1111, "class": 0.0, "tfidf": 0.1131}}], "coverage_gold": 0.29411764705882354, "branch_coverage_gold": 1.1416, "method_coverage_gold": 3.5191, "line_coverage_gold": 1.9663, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2570_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIterator:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIterator", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIterator", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIterator() {\n int[] positions = new int[] { 0, 1, 2, 3, 5, 8, 13, 21 };\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf(positions);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = positions.length - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(positions[i], iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-35"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.7869, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0944}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.2222, "class": 0.0, "tfidf": 0.1444}}, {"dep_id": 1, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.1676, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1667, "class": 0.0, "tfidf": 0.0329}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 1.4612, "method_coverage_gold": 3.5191, "line_coverage_gold": 2.2472, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2572_lemire_javaewah-JavaEWAH-1.2.3_e436108_fc6d221_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.reverseIntIteratorOverBitmapsOfOnes:()V", "class": "EWAHCompressedBitmap32Test", "method": "reverseIntIteratorOverBitmapsOfOnes", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#reverseIntIteratorOverBitmapsOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void reverseIntIteratorOverBitmapsOfOnes() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n bitmap.setSizeInBits(WORD_IN_BITS, true);\n IntIterator iterator = bitmap.reverseIntIterator();\n for (int i = WORD_IN_BITS - 1; i >= 0; --i) {\n Assert.assertTrue(iterator.hasNext());\n Assert.assertEquals(i, iterator.next());\n }\n Assert.assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-47"], "old_production_code": "", "new_production_code": "public IntIterator reverseIntIterator() {\n return new ReverseIntIterator32(this.getReverseEWAHIterator(), this.sizeInBits);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "823-825", "dependency_updated": "inserted", "score": 0.4654, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5143, "class": 1.0, "tfidf": 0.0681}}, {"dep_id": 2, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.1569, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1143, "class": 0.0, "tfidf": 0.1584}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": 0.155, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0857, "class": 0.0, "tfidf": 0.0361}}], "coverage_gold": 0.3902439024390244, "branch_coverage_gold": 1.4155, "method_coverage_gold": 3.8123, "line_coverage_gold": 2.1067, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af6aefe8055f746d5775398b0d45a88fdb26d9e3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.setSizeInBits:(IZ)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.next:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.reverseIntIterator:()Lcom/googlecode/javaewah/IntIterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/ReverseIntIterator32.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/ReverseIntIterator32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__f0a918a_cfca408__EWAHCompressedBitmapTest_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "f0a918a2622cc6e2a816a7bf74a2823f8fe63601", "rev2": "cfca4082e03933eac565bc3941677eaf5d34525f", "rev1_date": "2015-01-06T20:08:44Z", "rev2_date": "2015-01-06T20:08:58Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/f0a918a2622cc6e2a816a7bf74a2823f8fe63601...cfca4082e03933eac565bc3941677eaf5d34525f", "test_file": "src/test/java/com/googlecode/javaewah/EWAHCompressedBitmapTest.java", "test_changes": [{"change_id": "2551_lemire_javaewah-JavaEWAH-1.2.3_f0a918a_cfca408_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clear:()V", "class": "EWAHCompressedBitmapTest", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-121"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6249, "method_coverage_gold": 7.2855, "line_coverage_gold": 4.4139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.get:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBits:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2553_lemire_javaewah-JavaEWAH-1.2.3_f0a918a_cfca408_EWAHCompressedBitmapTest", "test_sign": "com/googlecode/javaewah/EWAHCompressedBitmapTest.clearStressTest:()V", "class": "EWAHCompressedBitmapTest", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah.EWAHCompressedBitmapTest#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap bitmap = EWAHCompressedBitmap.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-107"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "focal_method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1204-1206", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_old": "1205-1217", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "line_nums_new": "1225-1227", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8421052631578947, "branch_coverage_gold": 3.5986, "method_coverage_gold": 5.8754, "line_coverage_gold": 4.3931, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah/EWAHCompressedBitmap.bitmapOf:([I)Lcom/googlecode/javaewah/EWAHCompressedBitmap", "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.sizeInBytes:()I", "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "com/googlecode/javaewah/EWAHCompressedBitmap.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah/EWAHCompressedBitmap.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah/EWAHCompressedBitmap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__f0a918a_cfca408__EWAHCompressedBitmap32Test_f29cb0a9", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "f0a918a2622cc6e2a816a7bf74a2823f8fe63601", "rev2": "cfca4082e03933eac565bc3941677eaf5d34525f", "rev1_date": "2015-01-06T20:08:44Z", "rev2_date": "2015-01-06T20:08:58Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/f0a918a2622cc6e2a816a7bf74a2823f8fe63601...cfca4082e03933eac565bc3941677eaf5d34525f", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2552_lemire_javaewah-JavaEWAH-1.2.3_f0a918a_cfca408_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clearStressTest:()V", "class": "EWAHCompressedBitmap32Test", "method": "clearStressTest", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clearStressTest", "old_test_code": null, "new_test_code": "@Test\npublic void clearStressTest() {\n System.out.println(\"clear stress test\");\n int n = 10 * WORD_IN_BITS;\n for (int k = 0; k < 100; ++k) {\n List setPositions = new ArrayList(n);\n List clearPositions = new ArrayList(n);\n for (int i = 0; i < n; ++i) {\n setPositions.add(i);\n clearPositions.add(i);\n }\n Collections.shuffle(setPositions);\n Collections.shuffle(clearPositions);\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf();\n for (int i = 0; i < n; ++i) {\n bitmap.set(setPositions.get(i));\n bitmap.clear(clearPositions.get(i));\n }\n for (int i = 0; i < n; ++i) {\n bitmap.clear(i);\n }\n Assert.assertEquals(0, bitmap.cardinality());\n Assert.assertEquals(WORD_IN_BITS / 8, bitmap.sizeInBytes());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-51"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": 0.4592, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1683}}, {"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1207-1219", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1227-1229", "dependency_updated": "updated", "score": 0.4302, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.1383}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.6833, "method_coverage_gold": 5.8754, "line_coverage_gold": 4.5597, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBytes:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.cardinality:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2554_lemire_javaewah-JavaEWAH-1.2.3_f0a918a_cfca408_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.clear:()V", "class": "EWAHCompressedBitmap32Test", "method": "clear", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#clear", "old_test_code": null, "new_test_code": "@Test\npublic void clear() {\n EWAHCompressedBitmap32 bitmap = EWAHCompressedBitmap32.bitmapOf(0, 1, 3, 199, 666);\n Assert.assertEquals(667, bitmap.sizeInBits());\n bitmap.clear(900);\n Assert.assertEquals(901, bitmap.sizeInBits());\n for (int i = 667; i < 901; ++i) {\n Assert.assertFalse(bitmap.get(i));\n }\n Assert.assertTrue(bitmap.get(199));\n bitmap.clear(199);\n Assert.assertFalse(bitmap.get(199));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-65"], "old_production_code": "", "new_production_code": "public boolean clear(final int i) {\n return set(i, false);\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1205-1207", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 2.6249, "method_coverage_gold": 7.2855, "line_coverage_gold": 4.4139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.bitmapOf:([I)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.get:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.sizeInBits:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.clear:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "lemire_javaewah-JavaEWAH-1.2.3__fe31cc1_a618452__EWAHCompressedBitmap32Test_63c767a0", "project_name": "lemire_javaewah-JavaEWAH-1.2.3", "git_clone_url": "https://github.com/lemire/javaewah.git", "rev1": "fe31cc1a8a1879c356a2f95fb85ca98e6bb905c4", "rev2": "a618452efac4f3be1a945168382dbb6f7b8c2076", "rev1_date": "2021-05-07T19:15:44Z", "rev2_date": "2021-05-07T19:27:19Z", "git_diff_url": "https://github.com/lemire/javaewah/compare/fe31cc1a8a1879c356a2f95fb85ca98e6bb905c4...a618452efac4f3be1a945168382dbb6f7b8c2076", "test_file": "src/test/java/com/googlecode/javaewah32/EWAHCompressedBitmap32Test.java", "test_changes": [{"change_id": "2546_lemire_javaewah-JavaEWAH-1.2.3_fe31cc1_a618452_EWAHCompressedBitmap32Test", "test_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32Test.issue68:()V", "class": "EWAHCompressedBitmap32Test", "method": "issue68", "module": "", "junit_selector": "com.googlecode.javaewah32.EWAHCompressedBitmap32Test#issue68", "old_test_code": null, "new_test_code": "@Test\npublic void issue68() {\n EWAHCompressedBitmap32 one = new EWAHCompressedBitmap32();\n EWAHCompressedBitmap32 other = new EWAHCompressedBitmap32();\n one.set(18308);\n other.set(24608);\n other = other.and(one);\n Assert.assertEquals((long) other.getFirstSetBit(), -1);\n other.set(82764);\n Assert.assertEquals((long) other.getFirstSetBit(), (long) other.iterator().next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-36"], "old_production_code": "public int getFirstSetBit() {\n int nword = 0;\n final int siw = this.buffer.sizeInWords();\n for (int pos = 0; pos < siw; ++pos) {\n int rl = RunningLengthWord32.getRunningLength(this.buffer, pos);\n boolean rb = RunningLengthWord32.getRunningBit(this.buffer, pos);\n if ((rl > 0) && rb) {\n return nword * WORD_IN_BITS;\n }\n nword += rl;\n int lw = RunningLengthWord32.getNumberOfLiteralWords(this.buffer, pos);\n if (lw > 0) {\n int word = this.buffer.getWord(pos + 1);\n if (word != 0) {\n int T = word & -word;\n return nword * WORD_IN_BITS + Integer.bitCount(T - 1);\n }\n }\n }\n return -1;\n}", "new_production_code": "public int getFirstSetBit() {\n int nword = 0;\n final int siw = this.buffer.sizeInWords();\n for (int pos = 0; pos < siw; ++pos) {\n int rl = RunningLengthWord32.getRunningLength(this.buffer, pos);\n boolean rb = RunningLengthWord32.getRunningBit(this.buffer, pos);\n if ((rl > 0) && rb) {\n return nword * WORD_IN_BITS;\n }\n nword += rl;\n int lw = RunningLengthWord32.getNumberOfLiteralWords(this.buffer, pos);\n if (lw > 0) {\n int word = this.buffer.getWord(pos + 1);\n if (word != 0l) {\n int T = word & -word;\n return nword * WORD_IN_BITS + Integer.bitCount(T - 1);\n }\n }\n }\n return -1;\n}", "focal_file_path": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "focal_method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.getFirstSetBit:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.getFirstSetBit:()I", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_old": "1170-1190", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "line_nums_new": "1170-1193", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8846153846153846, "branch_coverage_gold": 3.5319, "method_coverage_gold": 7.9365, "line_coverage_gold": 5.3938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/googlecode/javaewah32/EWAHCompressedBitmap32.getFirstSetBit:()I", "com/googlecode/javaewah32/EWAHCompressedBitmap32.set:(I)Z", "com/googlecode/javaewah32/EWAHCompressedBitmap32.and:(Lcom/googlecode/javaewah32/EWAHCompressedBitmap32;)Lcom/googlecode/javaewah32/EWAHCompressedBitmap32", "com/googlecode/javaewah32/EWAHCompressedBitmap32.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/googlecode/javaewah32/EWAHCompressedBitmap32.getFirstSetBit:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "file_path_new": "src/main/java/com/googlecode/javaewah32/EWAHCompressedBitmap32.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "JavaEWAH-1.2.3", "java_version": 8} {"task_id": "mircokroon_minecraft-world-downloader-v1.18.1__c9e2416_ea81ded__CircleGeneratorTest_d19ce398", "project_name": "mircokroon_minecraft-world-downloader-v1.18.1", "git_clone_url": "https://github.com/mircokroon/minecraft-world-downloader.git", "rev1": "c9e241694e2504292027cc8db2d68b6a13b9c8aa", "rev2": "ea81dedb866560a865870b23a38e11d33c8dce62", "rev1_date": "2023-03-12T23:51:50Z", "rev2_date": "2023-03-13T11:06:17Z", "git_diff_url": "https://github.com/mircokroon/minecraft-world-downloader/compare/c9e241694e2504292027cc8db2d68b6a13b9c8aa...ea81dedb866560a865870b23a38e11d33c8dce62", "test_file": "src/test/java/game/data/CircleGeneratorTest.java", "test_changes": [{"change_id": "34_mircokroon_minecraft-world-downloader-v1.18.1_c9e2416_ea81ded_CircleGeneratorTest", "test_sign": "game/data/CircleGeneratorTest.circleTest:()V", "class": "CircleGeneratorTest", "method": "circleTest", "module": "", "junit_selector": "game.data.CircleGeneratorTest#circleTest", "old_test_code": null, "new_test_code": "@Test\npublic void circleTest() {\n CircleGenerator g = new CircleGenerator();\n g.computeUpToRadius(16);\n List> circles = g.getResult();\n Coordinate2D center = new Coordinate2D(0, 0);\n for (int radius = 0; radius < circles.size(); radius++) {\n for (Coordinate2D coord : circles.get(radius)) {\n assertThat(center.isInRangeEuclidean(coord, radius)).withFailMessage(coord + \" not in range \" + radius).isTrue();\n assertThat(center.isInRangeEuclidean(coord, radius - 1)).withFailMessage(coord + \" should not be in range \" + (radius - 1)).isFalse();\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-28"], "old_production_code": "public void computeUpToRadius(int radius) {\n for (int i = 0; i < radius + 1; i++) {\n circles.add(new ArrayList<>());\n }\n int grid = radius * 2 + 1;\n for (int x = 0; x < grid; x++) {\n for (int z = 0; z < grid; z++) {\n int centerX = x - radius;\n int centerZ = z - radius;\n int dist = distance(centerX, centerZ);\n if (dist > radius || dist < 2) {\n continue;\n }\n circles.get(dist).add(new Coordinate2D(centerX, centerZ));\n }\n }\n}", "new_production_code": "public void computeUpToRadius(int radius) {\n for (int i = 0; i < radius + 1; i++) {\n circles.add(new ArrayList<>());\n }\n int grid = radius * 2 + 1;\n for (int x = 0; x < grid; x++) {\n for (int z = 0; z < grid; z++) {\n int centerX = x - radius;\n int centerZ = z - radius;\n int dist = distance(centerX, centerZ);\n if (centerX == 0 || centerZ == 0) {\n dist += 1;\n }\n if (dist > radius || dist < 3) {\n continue;\n }\n circles.get(dist).add(new Coordinate2D(centerX, centerZ));\n }\n }\n}", "focal_file_path": "src/main/java/game/data/CircleGenerator.java", "focal_method_sign": "game/data/CircleGenerator.computeUpToRadius:(I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "game/data/CircleGenerator.computeUpToRadius:(I)V", "file_path_old": "src/main/java/game/data/CircleGenerator.java", "line_nums_old": "13-34", "file_path_new": "src/main/java/game/data/CircleGenerator.java", "line_nums_new": "13-38", "dependency_updated": "updated", "score": 0.2893, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.1765, "class": 1.0, "tfidf": 0.1297}}, {"dep_id": 1, "method_sign": "game/data/coordinates/Coordinate2D.isInRangeEuclidean:(Lgame/data/coordinates/Coordinate2D;I)Z", "file_path_old": "src/main/java/game/data/coordinates/Coordinate2D.java", "line_nums_old": "52-56", "file_path_new": "src/main/java/game/data/coordinates/Coordinate2D.java", "line_nums_new": "52-62", "dependency_updated": "updated", "score": 0.0948, "signal_scores": {"nc": 0.0, "lcs_u": 0.2778, "ed": 0.2778, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8333, "method_coverage_gold": 0.3564, "line_coverage_gold": 0.3768, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["game/data/coordinates/Coordinate2D.isInRangeEuclidean:(Lgame/data/coordinates/Coordinate2D;I)Z", "game/data/CircleGenerator.getResult:()Ljava/util/List", "game/data/coordinates/Coordinate2D.toString:()Ljava/lang/String", "game/data/CircleGenerator.computeUpToRadius:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "game/data/CircleGenerator.computeUpToRadius:(I)V", "change_type": "UPDATE", "file_path_old": "src/main/java/game/data/CircleGenerator.java", "file_path_new": "src/main/java/game/data/CircleGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "game/data/coordinates/Coordinate2D.isInRangeEuclidean:(Lgame/data/coordinates/Coordinate2D;I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/game/data/coordinates/Coordinate2D.java", "file_path_new": "src/main/java/game/data/coordinates/Coordinate2D.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.18.1", "java_version": 21} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__14e3180_23a158d__MySqlConnectionConfigurationTest_39ae1f5e", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "14e318088375a6f209f19cde826cf37cc569179b", "rev2": "23a158debe2ae2c3b982907a5f4bc33b5d74824b", "rev1_date": "2020-06-11T14:23:02Z", "rev2_date": "2020-06-11T14:23:02Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/14e318088375a6f209f19cde826cf37cc569179b...23a158debe2ae2c3b982907a5f4bc33b5d74824b", "test_file": "src/test/java/dev/miku/r2dbc/mysql/MySqlConnectionConfigurationTest.java", "test_changes": [{"change_id": "198_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_14e3180_23a158d_MySqlConnectionConfigurationTest", "test_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfigurationTest.autodetectExtensions:()V", "class": "MySqlConnectionConfigurationTest", "method": "autodetectExtensions", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.MySqlConnectionConfigurationTest#autodetectExtensions", "old_test_code": null, "new_test_code": "@Test\nvoid autodetectExtensions() {\n List list = new ArrayList<>();\n MySqlConnectionConfiguration.builder().host(HOST).username(USERNAME).build().getExtensions().forEach(Extension.class, list::add);\n assertThat(list).isNotEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["148-158"], "old_production_code": "", "new_production_code": "Extensions getExtensions() {\n return extensions;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "focal_method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_new": "146-148", "dependency_updated": "inserted", "score": 0.459, "signal_scores": {"nc": 0.0, "lcs_u": 0.9231, "ed": 0.6, "class": 1.0, "tfidf": 0.0384}}, {"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_old": "223-236", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_new": "239-252", "dependency_updated": "updated", "score": 0.2959, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.0875}}, {"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/Extensions.java", "line_nums_new": "56-62", "dependency_updated": "inserted", "score": 0.1364, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.15, "class": 0.0, "tfidf": 0.1532}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 0.7763, "method_coverage_gold": 1.6938, "line_coverage_gold": 1.5524, "is_traceback": true, "commit_gap": {"count": 5, "skipped_commits": ["22ce808c025e7fa06436b849eb727253e63b44e2", "603efe9e57f327d502dcdd358393b7e7286d3c23", "56c0decc1cf9ca0747f6ca69d7661bdc8326bcc5", "d29398eb8fb43e63149b971620182cad81bdfaf8", "b5166ea9f8c16a42ce40b966f7b625b5a77729a3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.builder:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.host:(Ljava/lang/String;)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.username:(Ljava/lang/String;)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "change_type": "UPDATE", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/Extensions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "199_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_14e3180_23a158d_MySqlConnectionConfigurationTest", "test_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfigurationTest.nonAutodetectExtensions:()V", "class": "MySqlConnectionConfigurationTest", "method": "nonAutodetectExtensions", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.MySqlConnectionConfigurationTest#nonAutodetectExtensions", "old_test_code": null, "new_test_code": "@Test\nvoid nonAutodetectExtensions() {\n List list = new ArrayList<>();\n MySqlConnectionConfiguration.builder().host(HOST).username(USERNAME).autodetectExtensions(false).build().getExtensions().forEach(Extension.class, list::add);\n assertThat(list).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["160-171"], "old_production_code": "", "new_production_code": "public Builder autodetectExtensions(boolean autodetectExtensions) {\n this.autodetectExtensions = autodetectExtensions;\n return this;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "focal_method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.autodetectExtensions:(Z)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.autodetectExtensions:(Z)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_new": "365-368", "dependency_updated": "inserted", "score": 0.5404, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8696, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 3, "method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_new": "146-148", "dependency_updated": "inserted", "score": 0.446, "signal_scores": {"nc": 0.0, "lcs_u": 0.9231, "ed": 0.5217, "class": 1.0, "tfidf": 0.0379}}, {"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_old": "223-236", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "line_nums_new": "239-252", "dependency_updated": "updated", "score": 0.2935, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.087, "class": 1.0, "tfidf": 0.0863}}, {"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/Extensions.java", "line_nums_new": "56-62", "dependency_updated": "inserted", "score": 0.1327, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1304, "class": 0.0, "tfidf": 0.1512}}], "coverage_gold": 0.8095238095238095, "branch_coverage_gold": 0.6351, "method_coverage_gold": 1.6287, "line_coverage_gold": 1.4203, "is_traceback": true, "commit_gap": {"count": 5, "skipped_commits": ["22ce808c025e7fa06436b849eb727253e63b44e2", "603efe9e57f327d502dcdd358393b7e7286d3c23", "56c0decc1cf9ca0747f6ca69d7661bdc8326bcc5", "d29398eb8fb43e63149b971620182cad81bdfaf8", "b5166ea9f8c16a42ce40b966f7b625b5a77729a3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.builder:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.host:(Ljava/lang/String;)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.autodetectExtensions:(Z)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.username:(Ljava/lang/String;)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.build:()Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration", "change_type": "UPDATE", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/Extensions.forEach:(Ljava/lang/Class;Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/Extensions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder.autodetectExtensions:(Z)Ldev/miku/r2dbc/mysql/MySqlConnectionConfiguration$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.getExtensions:()Ldev/miku/r2dbc/mysql/Extensions", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/MySqlConnectionConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__14e3180_b5166ea__CodecsTest_7e29ba3c", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "14e318088375a6f209f19cde826cf37cc569179b", "rev2": "b5166ea9f8c16a42ce40b966f7b625b5a77729a3", "rev1_date": "2020-06-11T14:23:02Z", "rev2_date": "2020-06-11T14:23:02Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/14e318088375a6f209f19cde826cf37cc569179b...b5166ea9f8c16a42ce40b966f7b625b5a77729a3", "test_file": "src/test/java/dev/miku/r2dbc/mysql/codec/CodecsTest.java", "test_changes": [{"change_id": "228_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_14e3180_b5166ea_CodecsTest", "test_sign": "dev/miku/r2dbc/mysql/codec/CodecsTest.addLast:()V", "class": "CodecsTest", "method": "addLast", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.codec.CodecsTest#addLast", "old_test_code": null, "new_test_code": "@Test\nvoid addLast() {\n CodecsBuilder builder = Codecs.builder().addLast(mock(Codec.class));\n assertThat(builder.build()).isNotSameAs(builder.build()).isNotSameAs(Codecs.builder().addLast(mock(Codec.class)).build());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-51"], "old_production_code": "", "new_production_code": "@Override\npublic CodecsBuilder addLast(Codec codec) {\n synchronized (this) {\n if (isEmpty()) {\n addAll(InternalArrays.asReadOnlyList(defaultCodecs()));\n }\n add(codec);\n }\n return this;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "focal_method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addLast:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addLast:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "line_nums_new": "278-287", "dependency_updated": "inserted", "score": 0.6217, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.1924}}, {"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "line_nums_new": "42-44", "dependency_updated": "inserted", "score": 0.3364, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.4226}}, {"dep_id": 2, "method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "line_nums_new": "289-297", "dependency_updated": "inserted", "score": 0.1105, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1429, "class": 0.0, "tfidf": 0.2195}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 0.4255, "method_coverage_gold": 3.5317, "line_coverage_gold": 1.7364, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addLast:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addLast:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "229_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_14e3180_b5166ea_CodecsTest", "test_sign": "dev/miku/r2dbc/mysql/codec/CodecsTest.defaultSingleton:()V", "class": "CodecsTest", "method": "defaultSingleton", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.codec.CodecsTest#defaultSingleton", "old_test_code": null, "new_test_code": "@Test\nvoid defaultSingleton() {\n CodecsBuilder builder = Codecs.builder();\n assertThat(builder.build()).isSameAs(builder.build()).isSameAs(Codecs.builder().build());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-35"], "old_production_code": "", "new_production_code": "static CodecsBuilder builder() {\n return new DefaultCodecs.Builder();\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "focal_method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "line_nums_new": "42-44", "dependency_updated": "inserted", "score": 0.441, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1875, "class": 1.0, "tfidf": 0.5146}}, {"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "line_nums_new": "289-297", "dependency_updated": "inserted", "score": 0.1821, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1875, "class": 0.0, "tfidf": 0.1928}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.3546, "method_coverage_gold": 3.2701, "line_coverage_gold": 1.5049, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "230_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_14e3180_b5166ea_CodecsTest", "test_sign": "dev/miku/r2dbc/mysql/codec/CodecsTest.addFirst:()V", "class": "CodecsTest", "method": "addFirst", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.codec.CodecsTest#addFirst", "old_test_code": null, "new_test_code": "@Test\nvoid addFirst() {\n CodecsBuilder builder = Codecs.builder().addFirst(mock(Codec.class));\n assertThat(builder.build()).isNotSameAs(builder.build()).isNotSameAs(Codecs.builder().addFirst(mock(Codec.class)).build());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-43"], "old_production_code": "", "new_production_code": "@Override\npublic CodecsBuilder addFirst(Codec codec) {\n synchronized (this) {\n if (isEmpty()) {\n addAll(InternalArrays.asReadOnlyList(defaultCodecs()));\n }\n add(0, codec);\n }\n return this;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "focal_method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addFirst:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addFirst:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "line_nums_new": "267-276", "dependency_updated": "inserted", "score": 0.6217, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.1924}}, {"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "line_nums_new": "42-44", "dependency_updated": "inserted", "score": 0.3381, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0, "class": 1.0, "tfidf": 0.4226}}, {"dep_id": 2, "method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "line_nums_new": "289-297", "dependency_updated": "inserted", "score": 0.1075, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.125, "class": 0.0, "tfidf": 0.2195}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 0.4255, "method_coverage_gold": 3.5317, "line_coverage_gold": 1.7364, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addFirst:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/codec/Codecs.builder:()Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/Codecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.addFirst:(Ldev/miku/r2dbc/mysql/codec/Codec;)Ldev/miku/r2dbc/mysql/codec/CodecsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/codec/DefaultCodecs$Builder.build:()Ldev/miku/r2dbc/mysql/codec/Codecs", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/codec/DefaultCodecs.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__6cfa459_755cdae__InternalArraysTest_c32529d4", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "6cfa459eed9163e3f4f671fc5fe3841756653a8a", "rev2": "755cdaea20d83165e2e02de66a3370e7af22659f", "rev1_date": "2019-11-19T07:30:56Z", "rev2_date": "2019-11-19T08:14:49Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/6cfa459eed9163e3f4f671fc5fe3841756653a8a...755cdaea20d83165e2e02de66a3370e7af22659f", "test_file": "src/test/java/dev/miku/r2dbc/mysql/util/InternalArraysTest.java", "test_changes": [{"change_id": "157_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_6cfa459_755cdae_InternalArraysTest", "test_sign": "dev/miku/r2dbc/mysql/util/InternalArraysTest.toReadOnlyList:()V", "class": "InternalArraysTest", "method": "toReadOnlyList", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.util.InternalArraysTest#toReadOnlyList", "old_test_code": null, "new_test_code": "@Test\nvoid toReadOnlyList() {\n Integer[] arr = new Integer[] { 1, 2, 3, 4 };\n ListAssert listAssert = assertThat(InternalArrays.toReadOnlyList(arr)).isEqualTo(Arrays.asList(1, 2, 3, 4)).isNotInstanceOf(Arrays.asList(1, 2, 3, 4).getClass());\n Arrays.fill(arr, 6);\n listAssert.isEqualTo(Arrays.asList(1, 2, 3, 4));\n assertThat(InternalArrays.toReadOnlyList(1)).isEqualTo(Collections.singletonList(1)).isExactlyInstanceOf(Collections.singletonList(1).getClass());\n assertThat(InternalArrays.toReadOnlyList()).isEqualTo(Collections.emptyList()).isExactlyInstanceOf(Collections.emptyList().getClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-65"], "old_production_code": "@SuppressWarnings(\"varargs\")\n@SafeVarargs\npublic static List toReadOnlyList(E... a) {\n requireNonNull(a, \"array must not be null\");\n return new ArrList<>(Arrays.copyOf(a, a.length));\n}", "new_production_code": "@SuppressWarnings(\"varargs\")\n@SafeVarargs\npublic static List toReadOnlyList(E... a) {\n requireNonNull(a, \"array must not be null\");\n switch(a.length) {\n case 0:\n return Collections.emptyList();\n case 1:\n return Collections.singletonList(a[0]);\n default:\n return new ArrList<>(Arrays.copyOf(a, a.length));\n }\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "focal_method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.toReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.toReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "line_nums_old": "70-75", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "line_nums_new": "79-92", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.3389, "method_coverage_gold": 0.5722, "line_coverage_gold": 0.3716, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/util/InternalArrays.toReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "dev/miku/r2dbc/mysql/util/ArrList.listIterator:(I)Ljava/util/ListIterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.toReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "158_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_6cfa459_755cdae_InternalArraysTest", "test_sign": "dev/miku/r2dbc/mysql/util/InternalArraysTest.asReadOnlyList:()V", "class": "InternalArraysTest", "method": "asReadOnlyList", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.util.InternalArraysTest#asReadOnlyList", "old_test_code": null, "new_test_code": "@Test\nvoid asReadOnlyList() {\n assertThat(InternalArrays.asReadOnlyList(1, 2, 3, 4)).isEqualTo(Arrays.asList(1, 2, 3, 4)).isNotInstanceOf(Arrays.asList(1, 2, 3, 4).getClass());\n assertThat(InternalArrays.asReadOnlyList(1)).isEqualTo(Collections.singletonList(1)).isExactlyInstanceOf(Collections.singletonList(1).getClass());\n assertThat(InternalArrays.asReadOnlyList()).isEqualTo(Collections.emptyList()).isExactlyInstanceOf(Collections.emptyList().getClass());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-45"], "old_production_code": "@SuppressWarnings(\"varargs\")\n@SafeVarargs\npublic static List asReadOnlyList(E... a) {\n requireNonNull(a, \"array must not be null\");\n return new ArrList<>(a);\n}", "new_production_code": "@SuppressWarnings(\"varargs\")\n@SafeVarargs\npublic static List asReadOnlyList(E... a) {\n requireNonNull(a, \"array must not be null\");\n switch(a.length) {\n case 0:\n return Collections.emptyList();\n case 1:\n return Collections.singletonList(a[0]);\n default:\n return new ArrList<>(a);\n }\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "focal_method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.asReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.asReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "line_nums_old": "55-60", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "line_nums_new": "56-69", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.3389, "method_coverage_gold": 0.5722, "line_coverage_gold": 0.3716, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/util/InternalArrays.asReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "dev/miku/r2dbc/mysql/util/ArrList.listIterator:(I)Ljava/util/ListIterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/util/InternalArrays.asReadOnlyList:([Ljava/lang/Object;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/InternalArrays.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__a0dcea1_0ef6fd7__ConnectionContextTest_e279137c", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "a0dcea1ee828796bb0790b0a9ebde818cd1d14da", "rev2": "0ef6fd75b31287eda03694221ad408a044448a04", "rev1_date": "2020-06-27T16:15:37Z", "rev2_date": "2020-06-27T16:15:37Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/a0dcea1ee828796bb0790b0a9ebde818cd1d14da...0ef6fd75b31287eda03694221ad408a044448a04", "test_file": "src/test/java/dev/miku/r2dbc/mysql/ConnectionContextTest.java", "test_changes": [{"change_id": "172_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_a0dcea1_0ef6fd7_ConnectionContextTest", "test_sign": "dev/miku/r2dbc/mysql/ConnectionContextTest.setTwiceServerZoneId:()V", "class": "ConnectionContextTest", "method": "setTwiceServerZoneId", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.ConnectionContextTest#setTwiceServerZoneId", "old_test_code": null, "new_test_code": "@Test\nvoid setTwiceServerZoneId() {\n ConnectionContext context = new ConnectionContext(ZeroDateOption.USE_NULL, null);\n context.setServerZoneId(ZoneId.systemDefault());\n assertThatIllegalStateException().isThrownBy(() -> context.setServerZoneId(ZoneId.systemDefault()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-63"], "old_production_code": "", "new_production_code": "void setServerZoneId(ZoneId serverZoneId) {\n if (this.serverZoneId != null) {\n throw new IllegalStateException(\"Server timezone have been initialized\");\n }\n this.serverZoneId = serverZoneId;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "focal_method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "line_nums_new": "96-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2392, "method_coverage_gold": 0.6394, "line_coverage_gold": 0.5363, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "173_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_a0dcea1_0ef6fd7_ConnectionContextTest", "test_sign": "dev/miku/r2dbc/mysql/ConnectionContextTest.shouldNotSetServerZoneId:()V", "class": "ConnectionContextTest", "method": "shouldNotSetServerZoneId", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.ConnectionContextTest#shouldNotSetServerZoneId", "old_test_code": null, "new_test_code": "@Test\nvoid shouldNotSetServerZoneId() {\n ConnectionContext context = new ConnectionContext(ZeroDateOption.USE_NULL, ZoneId.systemDefault());\n assertThat(context.shouldSetServerZoneId()).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-56"], "old_production_code": "", "new_production_code": "boolean shouldSetServerZoneId() {\n return serverZoneId == null;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "focal_method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "line_nums_new": "92-94", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2051, "method_coverage_gold": 0.6394, "line_coverage_gold": 0.4876, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "174_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_a0dcea1_0ef6fd7_ConnectionContextTest", "test_sign": "dev/miku/r2dbc/mysql/ConnectionContextTest.shouldSetServerZoneId:()V", "class": "ConnectionContextTest", "method": "shouldSetServerZoneId", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.ConnectionContextTest#shouldSetServerZoneId", "old_test_code": null, "new_test_code": "@Test\nvoid shouldSetServerZoneId() {\n ConnectionContext context = new ConnectionContext(ZeroDateOption.USE_NULL, null);\n assertThat(context.shouldSetServerZoneId()).isTrue();\n context.setServerZoneId(ZoneId.systemDefault());\n assertThat(context.shouldSetServerZoneId()).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-50"], "old_production_code": "", "new_production_code": "boolean shouldSetServerZoneId() {\n return serverZoneId == null;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "focal_method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "line_nums_new": "92-94", "dependency_updated": "inserted", "score": 0.8199, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2345}}, {"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "line_nums_new": "96-101", "dependency_updated": "inserted", "score": 0.4939, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7143, "class": 1.0, "tfidf": 0.0492}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.2734, "method_coverage_gold": 0.7033, "line_coverage_gold": 0.5363, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.setServerZoneId:(Ljava/time/ZoneId;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.shouldSetServerZoneId:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "175_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_a0dcea1_0ef6fd7_ConnectionContextTest", "test_sign": "dev/miku/r2dbc/mysql/ConnectionContextTest.getServerZoneId:()V", "class": "ConnectionContextTest", "method": "getServerZoneId", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.ConnectionContextTest#getServerZoneId", "old_test_code": null, "new_test_code": "@Test\nvoid getServerZoneId() {\n for (int i = -12; i <= 12; ++i) {\n String id = i < 0 ? \"UTC\" + i : \"UTC+\" + i;\n ConnectionContext context = new ConnectionContext(ZeroDateOption.USE_NULL, ZoneId.of(id));\n assertThat(context.getServerZoneId()).isEqualTo(ZoneId.of(id));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-42"], "old_production_code": "", "new_production_code": "@Override\npublic ZoneId getServerZoneId() {\n if (serverZoneId == null) {\n throw new IllegalStateException(\"Server timezone have not initialization\");\n }\n return serverZoneId;\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "focal_method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.getServerZoneId:()Ljava/time/ZoneId", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.getServerZoneId:()Ljava/time/ZoneId", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "line_nums_new": "84-90", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.2051, "method_coverage_gold": 0.6394, "line_coverage_gold": 0.5038, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/ConnectionContext.getServerZoneId:()Ljava/time/ZoneId"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/ConnectionContext.getServerZoneId:()Ljava/time/ZoneId", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/ConnectionContext.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__b511c65_d57dfbf__RequestQueueTest_d626d871", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "b511c654b66d4ae52b5f749626f916d49cd580e5", "rev2": "d57dfbf4cc8592e5e674ff981af7057fee1dd22e", "rev1_date": "2019-11-08T06:09:50Z", "rev2_date": "2019-11-08T06:09:50Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/b511c654b66d4ae52b5f749626f916d49cd580e5...d57dfbf4cc8592e5e674ff981af7057fee1dd22e", "test_file": "src/test/java/dev/miku/r2dbc/mysql/client/RequestQueueTest.java", "test_changes": [{"change_id": "207_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_b511c65_d57dfbf_RequestQueueTest", "test_sign": "dev/miku/r2dbc/mysql/client/RequestQueueTest.dispose:()V", "class": "RequestQueueTest", "method": "dispose", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.client.RequestQueueTest#dispose", "old_test_code": null, "new_test_code": "@Test\nvoid dispose() {\n RequestQueue queue = new RequestQueue();\n List arr = new AddEventList(queue);\n queue.submit(() -> arr.add(1));\n queue.submit(() -> arr.add(2));\n queue.dispose();\n queue.submit(() -> arr.add(3));\n queue.submit(() -> arr.add(4));\n assertEquals(arr, Arrays.asList(1, 2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-56"], "old_production_code": "", "new_production_code": "void dispose() {\n ACTIVE_UPDATER.lazySet(this, 1);\n queue.clear();\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/client/RequestQueue.java", "focal_method_sign": "dev/miku/r2dbc/mysql/client/RequestQueue.dispose:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/client/RequestQueue.dispose:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/client/RequestQueue.java", "line_nums_new": "96-99", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.1969, "method_coverage_gold": 0.5319, "line_coverage_gold": 0.3139, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/client/RequestQueue.submit:(Ljava/lang/Runnable;)V", "dev/miku/r2dbc/mysql/client/RequestQueue.dispose:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/client/RequestQueue.dispose:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/client/RequestQueue.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE__d1d5d68_e10f81b__FluxDiscardOnCancelTest_425a6b46", "project_name": "mirromutth_r2dbc-mysql-v0.8.2.RELEASE", "git_clone_url": "https://github.com/mirromutth/r2dbc-mysql.git", "rev1": "d1d5d68aed42672a46dafd701c7dbba010a5e173", "rev2": "e10f81b88c4bfaf17bf760dcccee03034b474e0a", "rev1_date": "2019-09-28T06:45:53Z", "rev2_date": "2019-09-28T06:45:53Z", "git_diff_url": "https://github.com/mirromutth/r2dbc-mysql/compare/d1d5d68aed42672a46dafd701c7dbba010a5e173...e10f81b88c4bfaf17bf760dcccee03034b474e0a", "test_file": "src/test/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancelTest.java", "test_changes": [{"change_id": "227_mirromutth_r2dbc-mysql-v0.8.2.RELEASE_d1d5d68_e10f81b_FluxDiscardOnCancelTest", "test_sign": "dev/miku/r2dbc/mysql/util/FluxDiscardOnCancelTest.errorDropped:()V", "class": "FluxDiscardOnCancelTest", "method": "errorDropped", "module": "", "junit_selector": "dev.miku.r2dbc.mysql.util.FluxDiscardOnCancelTest#errorDropped", "old_test_code": null, "new_test_code": "@Test\nvoid errorDropped() {\n int size = 10;\n int takeSize = 2;\n int halfSize = size >>> 1;\n List es = new ArrayList<>();\n String message = \"Some random text just for test\";\n Iterator items = createItems(size);\n assertThat(halfSize).isGreaterThan(takeSize << 1);\n Hooks.onErrorDropped(es::add);\n Flux.fromIterable(() -> items).doOnNext(it -> {\n if (it == halfSize) {\n throw new IllegalStateException(message);\n }\n }).as(OperatorUtils::discardOnCancel).as(it -> StepVerifier.create(it, 0)).thenRequest(takeSize).expectNext(0, 1).thenCancel().verify();\n assertThat(es).hasSize(1).element(0).isExactlyInstanceOf(IllegalStateException.class).extracting(Throwable::getMessage).isEqualTo(message);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-71"], "old_production_code": "@Override\npublic void subscribe(CoreSubscriber actual) {\n this.source.subscribe(new Subscriber<>(actual));\n}", "new_production_code": "@Override\npublic void subscribe(CoreSubscriber actual) {\n this.source.subscribe(new DiscardOnCancelSubscriber<>(actual));\n}", "focal_file_path": "src/main/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.java", "focal_method_sign": "dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.subscribe:(Lreactor/core/CoreSubscriber;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.subscribe:(Lreactor/core/CoreSubscriber;)V", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.java", "line_nums_old": "49-52", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.java", "line_nums_new": "49-52", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.1996, "method_coverage_gold": 0.771, "line_coverage_gold": 0.5239, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.subscribe:(Lreactor/core/CoreSubscriber;)V", "dev/miku/r2dbc/mysql/util/OperatorUtils.discardOnCancel:(Lreactor/core/publisher/Flux;)Lreactor/core/publisher/Flux", "dev/miku/r2dbc/mysql/util/FluxDiscardOnCancelTest.createItems:(I)Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.subscribe:(Lreactor/core/CoreSubscriber;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.java", "file_path_new": "src/main/java/dev/miku/r2dbc/mysql/util/FluxDiscardOnCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v0.8.2.RELEASE", "java_version": 8} {"task_id": "moditect_moditect-1.3.0.Final__1fcb3a1_301c008__JavaVersionHelperTest_c3b517cf", "project_name": "moditect_moditect-1.3.0.Final", "git_clone_url": "https://github.com/moditect/moditect.git", "rev1": "1fcb3a19913e6c434f6d8a097d4eb6797084c227", "rev2": "301c008c8fc0bec4663e5f985ff4d8b953a7ca04", "rev1_date": "2023-03-02T12:00:17Z", "rev2_date": "2023-03-02T12:00:45Z", "git_diff_url": "https://github.com/moditect/moditect/compare/1fcb3a19913e6c434f6d8a097d4eb6797084c227...301c008c8fc0bec4663e5f985ff4d8b953a7ca04", "test_file": "core/src/test/java/org/moditect/internal/parser/JavaVersionHelperTest.java", "test_changes": [{"change_id": "44_moditect_moditect-1.3.0.Final_1fcb3a1_301c008_JavaVersionHelperTest", "test_sign": "org/moditect/internal/parser/JavaVersionHelperTest.simple:()V", "class": "JavaVersionHelperTest", "method": "simple", "module": "core", "junit_selector": "org.moditect.internal.parser.JavaVersionHelperTest#simple", "old_test_code": null, "new_test_code": "@Test\npublic void simple() {\n JavaVersionHelper.Version version = testTarget.javaVersion(\"11.0.10\");\n assertThat(version.major()).isEqualTo(11);\n assertThat(version.minor()).isEqualTo(0);\n assertThat(version.mini()).isEqualTo(10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-40"], "old_production_code": "", "new_production_code": "Version javaVersion(String versionString) {\n Matcher matcher = VERSION_PATTERN.matcher(versionString);\n if (!matcher.matches()) {\n warn(\"The java version \" + versionString + \" cannot be parsed as \" + VERSION_REGEXP);\n return null;\n }\n try {\n Version version = new Version(Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)), Integer.parseInt(matcher.group(3)));\n debug(\"parsed.version -> \" + version);\n return version;\n } catch (IndexOutOfBoundsException | NumberFormatException ex) {\n error(\"The java version \" + versionString + \" has an invalid format. \" + ex.getMessage());\n return null;\n }\n}", "focal_file_path": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "focal_method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "70-88", "dependency_updated": "inserted", "score": 0.2976, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.0909, "class": 1.0, "tfidf": 0.2648}}, {"dep_id": 0, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "125-127", "dependency_updated": "inserted", "score": 0.2817, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1667, "class": 1.0, "tfidf": 0.093}}, {"dep_id": 2, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "122-124", "dependency_updated": "inserted", "score": 0.2729, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1667, "class": 1.0, "tfidf": 0.093}}, {"dep_id": 1, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.2454, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.093}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.7407, "method_coverage_gold": 6.7164, "line_coverage_gold": 3.0261, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "45_moditect_moditect-1.3.0.Final_1fcb3a1_301c008_JavaVersionHelperTest", "test_sign": "org/moditect/internal/parser/JavaVersionHelperTest.otherStuff:()V", "class": "JavaVersionHelperTest", "method": "otherStuff", "module": "core", "junit_selector": "org.moditect.internal.parser.JavaVersionHelperTest#otherStuff", "old_test_code": null, "new_test_code": "@Test\npublic void otherStuff() {\n JavaVersionHelper.Version version = testTarget.javaVersion(\"1.6.0_23-otherStuff\");\n assertThat(version.major()).isEqualTo(1);\n assertThat(version.minor()).isEqualTo(6);\n assertThat(version.mini()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-62"], "old_production_code": "", "new_production_code": "Version javaVersion(String versionString) {\n Matcher matcher = VERSION_PATTERN.matcher(versionString);\n if (!matcher.matches()) {\n warn(\"The java version \" + versionString + \" cannot be parsed as \" + VERSION_REGEXP);\n return null;\n }\n try {\n Version version = new Version(Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)), Integer.parseInt(matcher.group(3)));\n debug(\"parsed.version -> \" + version);\n return version;\n } catch (IndexOutOfBoundsException | NumberFormatException ex) {\n error(\"The java version \" + versionString + \" has an invalid format. \" + ex.getMessage());\n return null;\n }\n}", "focal_file_path": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "focal_method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "70-88", "dependency_updated": "inserted", "score": 0.3348, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.1818, "class": 1.0, "tfidf": 0.2913}}, {"dep_id": 1, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.2988, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.1001}}, {"dep_id": 2, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "122-124", "dependency_updated": "inserted", "score": 0.2988, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.1001}}, {"dep_id": 0, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "125-127", "dependency_updated": "inserted", "score": 0.2118, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1001}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.7407, "method_coverage_gold": 6.7164, "line_coverage_gold": 3.0261, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "46_moditect_moditect-1.3.0.Final_1fcb3a1_301c008_JavaVersionHelperTest", "test_sign": "org/moditect/internal/parser/JavaVersionHelperTest.incomplete:()V", "class": "JavaVersionHelperTest", "method": "incomplete", "module": "core", "junit_selector": "org.moditect.internal.parser.JavaVersionHelperTest#incomplete", "old_test_code": null, "new_test_code": "@Test\npublic void incomplete() {\n JavaVersionHelper.Version version = testTarget.javaVersion(\"11\");\n assertThat(version).isNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-46"], "old_production_code": "", "new_production_code": "Version javaVersion(String versionString) {\n Matcher matcher = VERSION_PATTERN.matcher(versionString);\n if (!matcher.matches()) {\n warn(\"The java version \" + versionString + \" cannot be parsed as \" + VERSION_REGEXP);\n return null;\n }\n try {\n Version version = new Version(Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)), Integer.parseInt(matcher.group(3)));\n debug(\"parsed.version -> \" + version);\n return version;\n } catch (IndexOutOfBoundsException | NumberFormatException ex) {\n error(\"The java version \" + versionString + \" has an invalid format. \" + ex.getMessage());\n return null;\n }\n}", "focal_file_path": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "focal_method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "70-88", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.7407, "method_coverage_gold": 2.9851, "line_coverage_gold": 1.3755, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "47_moditect_moditect-1.3.0.Final_1fcb3a1_301c008_JavaVersionHelperTest", "test_sign": "org/moditect/internal/parser/JavaVersionHelperTest.oldStyle:()V", "class": "JavaVersionHelperTest", "method": "oldStyle", "module": "core", "junit_selector": "org.moditect.internal.parser.JavaVersionHelperTest#oldStyle", "old_test_code": null, "new_test_code": "@Test\npublic void oldStyle() {\n JavaVersionHelper.Version version = testTarget.javaVersion(\"1.6.0_23\");\n assertThat(version.major()).isEqualTo(1);\n assertThat(version.minor()).isEqualTo(6);\n assertThat(version.mini()).isZero();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-54"], "old_production_code": "", "new_production_code": "Version javaVersion(String versionString) {\n Matcher matcher = VERSION_PATTERN.matcher(versionString);\n if (!matcher.matches()) {\n warn(\"The java version \" + versionString + \" cannot be parsed as \" + VERSION_REGEXP);\n return null;\n }\n try {\n Version version = new Version(Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)), Integer.parseInt(matcher.group(3)));\n debug(\"parsed.version -> \" + version);\n return version;\n } catch (IndexOutOfBoundsException | NumberFormatException ex) {\n error(\"The java version \" + versionString + \" has an invalid format. \" + ex.getMessage());\n return null;\n }\n}", "focal_file_path": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "focal_method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "70-88", "dependency_updated": "inserted", "score": 0.2757, "signal_scores": {"nc": 0.0, "lcs_u": 0.0909, "ed": 0.0, "class": 1.0, "tfidf": 0.3034}}, {"dep_id": 1, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.2478, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.1032}}, {"dep_id": 2, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "122-124", "dependency_updated": "inserted", "score": 0.2478, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.1032}}, {"dep_id": 0, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "125-127", "dependency_updated": "inserted", "score": 0.2125, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1032}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.7407, "method_coverage_gold": 6.7164, "line_coverage_gold": 3.0261, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:(Ljava/lang/String;)Lorg/moditect/internal/parser/JavaVersionHelper$Version", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "48_moditect_moditect-1.3.0.Final_1fcb3a1_301c008_JavaVersionHelperTest", "test_sign": "org/moditect/internal/parser/JavaVersionHelperTest.current:()V", "class": "JavaVersionHelperTest", "method": "current", "module": "core", "junit_selector": "org.moditect.internal.parser.JavaVersionHelperTest#current", "old_test_code": null, "new_test_code": "@Test\npublic void current() {\n JavaVersionHelper.Version version = testTarget.javaVersion();\n assertThat(version.major()).isPositive();\n assertThat(version.minor()).isNotNull();\n assertThat(version.mini()).isNotNull();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-32"], "old_production_code": "", "new_production_code": "int mini() {\n return mini;\n}", "focal_file_path": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "focal_method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "125-127", "dependency_updated": "inserted", "score": 0.2804, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1429, "class": 1.0, "tfidf": 0.1043}}, {"dep_id": 1, "method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:()Lorg/moditect/internal/parser/JavaVersionHelper$Version", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "63-68", "dependency_updated": "inserted", "score": 0.2676, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.0909, "class": 1.0, "tfidf": 0.1372}}, {"dep_id": 2, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": 0.2481, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.1043}}, {"dep_id": 3, "method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "line_nums_new": "122-124", "dependency_updated": "inserted", "score": 0.2481, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.1043}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.7407, "method_coverage_gold": 7.4627, "line_coverage_gold": 3.4388, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "org/moditect/internal/parser/JavaVersionHelper.javaVersion:()Lorg/moditect/internal/parser/JavaVersionHelper$Version"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.mini:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper.javaVersion:()Lorg/moditect/internal/parser/JavaVersionHelper$Version", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.major:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/moditect/internal/parser/JavaVersionHelper$Version.minor:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/moditect/internal/parser/JavaVersionHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "1.3.0.Final", "java_version": 11} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__045de72_a83c001__StreamingReaderTest_4f0ac3b4", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "045de72ce9460787e9c58357598decd2895e3b22", "rev2": "a83c00131d8661dc18715390efaa53b713e8124b", "rev1_date": "2017-01-26T05:27:19Z", "rev2_date": "2017-01-26T05:31:17Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/045de72ce9460787e9c58357598decd2895e3b22...a83c00131d8661dc18715390efaa53b713e8124b", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "488_monitorjbl_excel-streaming-reader-2.2.0_045de72_a83c001_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testShouldReturnNullForMissingCellPolicy_RETURN_BLANK_AS_NULL:()V", "class": "StreamingReaderTest", "method": "testShouldReturnNullForMissingCellPolicy_RETURN_BLANK_AS_NULL", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testShouldReturnNullForMissingCellPolicy_RETURN_BLANK_AS_NULL", "old_test_code": null, "new_test_code": "@Test\npublic void testShouldReturnNullForMissingCellPolicy_RETURN_BLANK_AS_NULL() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/blank_cells.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n Row row = reader.iterator().next();\n assertNotNull(row.getCell(0, Row.RETURN_BLANK_AS_NULL));\n assertNull(row.getCell(1, Row.RETURN_BLANK_AS_NULL));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["584-595"], "old_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n StreamingCell cell = (StreamingCell) cellMap.get(cellnum);\n if (policy == Row.CREATE_NULL_AS_BLANK) {\n if (cell == null)\n return new StreamingCell(cellnum, rowIndex, false);\n } else if (policy == Row.RETURN_BLANK_AS_NULL) {\n if (cell.getCellType() == Cell.CELL_TYPE_BLANK)\n return null;\n }\n return cell;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_old": "151-154", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_new": "151-161", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.49056603773584906, "branch_coverage_gold": 31.6206, "method_coverage_gold": 10.4513, "line_coverage_gold": 24.6941, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "489_monitorjbl_excel-streaming-reader-2.2.0_045de72_a83c001_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK:()V", "class": "StreamingReaderTest", "method": "testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK", "old_test_code": null, "new_test_code": "@Test\npublic void testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/null_cell.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n Row row = reader.iterator().next();\n assertEquals(\"B1 is Null ->\", row.getCell(0, Row.CREATE_NULL_AS_BLANK).getStringCellValue());\n assertNotNull(row.getCell(1, Row.CREATE_NULL_AS_BLANK));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["597-608"], "old_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n StreamingCell cell = (StreamingCell) cellMap.get(cellnum);\n if (policy == Row.CREATE_NULL_AS_BLANK) {\n if (cell == null)\n return new StreamingCell(cellnum, rowIndex, false);\n } else if (policy == Row.RETURN_BLANK_AS_NULL) {\n if (cell.getCellType() == Cell.CELL_TYPE_BLANK)\n return null;\n }\n return cell;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_old": "151-154", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_new": "151-161", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4766355140186916, "branch_coverage_gold": 28.0632, "method_coverage_gold": 10.2138, "line_coverage_gold": 23.3593, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__045de72_c40aa26__StreamingReaderTest_75ccf3c2", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "045de72ce9460787e9c58357598decd2895e3b22", "rev2": "c40aa2672eb6c2403b7c8c8fba3ad0430cbdda7e", "rev1_date": "2017-01-26T05:27:19Z", "rev2_date": "2017-01-26T05:31:41Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/045de72ce9460787e9c58357598decd2895e3b22...c40aa2672eb6c2403b7c8c8fba3ad0430cbdda7e", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "499_monitorjbl_excel-streaming-reader-2.2.0_045de72_c40aa26_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK:()V", "class": "StreamingReaderTest", "method": "testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK", "old_test_code": null, "new_test_code": "@Test\npublic void testShouldReturnBlankForMissingCellPolicy_CREATE_NULL_AS_BLANK() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/null_cell.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n Row row = reader.iterator().next();\n assertEquals(\"B1 is Null ->\", row.getCell(0, Row.CREATE_NULL_AS_BLANK).getStringCellValue());\n assertThat(row.getCell(1), is(nullValue()));\n assertNotNull(row.getCell(1, Row.CREATE_NULL_AS_BLANK));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["597-609"], "old_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic Cell getCell(int cellnum, MissingCellPolicy policy) {\n StreamingCell cell = (StreamingCell) cellMap.get(cellnum);\n if (policy == Row.CREATE_NULL_AS_BLANK) {\n if (cell == null)\n return new StreamingCell(cellnum, rowIndex, false);\n } else if (policy == Row.RETURN_BLANK_AS_NULL) {\n if (cell.getCellType() == Cell.CELL_TYPE_BLANK)\n return null;\n }\n return cell;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_old": "151-154", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_new": "151-161", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.494949494949495, "branch_coverage_gold": 29.7414, "method_coverage_gold": 13.5802, "line_coverage_gold": 28.3541, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["a83c00131d8661dc18715390efaa53b713e8124b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(ILorg/apache/poi/ss/usermodel/Row$MissingCellPolicy;)Lorg/apache/poi/ss/usermodel/Cell", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__1743f9e_3e273ec__StreamingWorkbookTest_72a7fffe", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "1743f9ed582d2b0f16800e910cdc31ad2a5824d9", "rev2": "3e273ecf5e873fc3a1350db5ae2ac3c5f2a8384f", "rev1_date": "2016-03-01T04:43:16Z", "rev2_date": "2016-03-01T04:45:06Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/1743f9ed582d2b0f16800e910cdc31ad2a5824d9...3e273ecf5e873fc3a1350db5ae2ac3c5f2a8384f", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "470_monitorjbl_excel-streaming-reader-2.2.0_1743f9e_3e273ec_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testIterateSheets:()V", "class": "StreamingWorkbookTest", "method": "testIterateSheets", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testIterateSheets", "old_test_code": null, "new_test_code": "@Test\npublic void testIterateSheets() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/sheets.xlsx\"));\n StreamingWorkbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(2, workbook.getNumberOfSheets());\n Sheet alpha = workbook.getSheetAt(0);\n Sheet zulu = workbook.getSheetAt(1);\n assertEquals(\"SheetAlpha\", alpha.getSheetName());\n assertEquals(\"SheetZulu\", zulu.getSheetName());\n Row rowA = alpha.rowIterator().next();\n Row rowZ = zulu.rowIterator().next();\n assertEquals(\"stuff\", rowA.getCell(0).getStringCellValue());\n assertEquals(\"yeah\", rowZ.getCell(0).getStringCellValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-42"], "old_production_code": "", "new_production_code": "@Override\npublic Sheet getSheetAt(int index) {\n return reader.getSheets().get(index);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "75-78", "dependency_updated": "inserted", "score": 0.4022, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.4615, "class": 1.0, "tfidf": 0.0613}}, {"dep_id": 3, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": 0.3642, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.4706, "class": 1.0, "tfidf": 0.0214}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.2842, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.1651, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.3077, "class": 0.0, "tfidf": 0.0487}}, {"dep_id": 4, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "51-54", "dependency_updated": "inserted", "score": 0.1506, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 0.0, "tfidf": 0.0695}}, {"dep_id": 2, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "204-208", "dependency_updated": "inserted", "score": 0.1152, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0769, "class": 0.0, "tfidf": 0.2484}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.5217, "method_coverage_gold": 16.0377, "line_coverage_gold": 29.3831, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9a9b2c9a739b980445a721e07e61cf4501898cab"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__1c2b612_94894fd__StreamingReaderTest_4fc8a48b", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "1c2b61219e5b1e0f7bb07909b0fe085aeebd3783", "rev2": "94894fd22fd763c25148dd814328b1b68fdbde40", "rev1_date": "2018-10-04T16:12:11Z", "rev2_date": "2018-10-04T19:05:15Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/1c2b61219e5b1e0f7bb07909b0fe085aeebd3783...94894fd22fd763c25148dd814328b1b68fdbde40", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "486_monitorjbl_excel-streaming-reader-2.2.0_1c2b612_94894fd_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testFormulaWithDifferentTypes:()V", "class": "StreamingReaderTest", "method": "testFormulaWithDifferentTypes", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testFormulaWithDifferentTypes", "old_test_code": null, "new_test_code": "@Test\npublic void testFormulaWithDifferentTypes() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/formula_test.xlsx\"));\n Workbook wb = StreamingReader.builder().open(is)) {\n Sheet sheet = wb.getSheetAt(0);\n Iterator rowIterator = sheet.rowIterator();\n Row next = rowIterator.next();\n Cell cell = next.getCell(0);\n assertThat(cell.getCellTypeEnum(), is(CellType.STRING));\n next = rowIterator.next();\n cell = next.getCell(0);\n assertThat(cell.getCellTypeEnum(), is(CellType.FORMULA));\n assertThat(cell.getCachedFormulaResultTypeEnum(), is(CellType.STRING));\n next = rowIterator.next();\n cell = next.getCell(0);\n assertThat(cell.getCellTypeEnum(), is(CellType.FORMULA));\n assertThat(cell.getCachedFormulaResultTypeEnum(), is(CellType.BOOLEAN));\n next = rowIterator.next();\n cell = next.getCell(0);\n assertThat(cell.getCellTypeEnum(), is(CellType.FORMULA));\n assertThat(cell.getCachedFormulaResultTypeEnum(), is(CellType.NUMERIC));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["698-730"], "old_production_code": "@Override\npublic CellType getCachedFormulaResultTypeEnum() {\n if (type != null && \"str\".equals(type)) {\n if (contentsSupplier.getContent() == null || cachedFormulaResultType == null) {\n return CellType.BLANK;\n } else if (\"n\".equals(cachedFormulaResultType)) {\n return CellType.NUMERIC;\n } else if (\"s\".equals(cachedFormulaResultType) || \"inlineStr\".equals(cachedFormulaResultType)) {\n return CellType.STRING;\n } else if (\"str\".equals(cachedFormulaResultType)) {\n return CellType.FORMULA;\n } else if (\"b\".equals(cachedFormulaResultType)) {\n return CellType.BOOLEAN;\n } else if (\"e\".equals(cachedFormulaResultType)) {\n return CellType.ERROR;\n } else {\n throw new UnsupportedOperationException(\"Unsupported cell type '\" + cachedFormulaResultType + \"'\");\n }\n } else {\n throw new IllegalStateException(\"Only formula cells have cached results\");\n }\n}", "new_production_code": "@Deprecated\n@Override\npublic CellType getCachedFormulaResultTypeEnum() {\n return getCachedFormulaResultType();\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "300-322", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "309-313", "dependency_updated": "updated", "score": 0.1473, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.2333, "class": 0.0, "tfidf": 0.1125}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "162-179", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "171-175", "dependency_updated": "updated", "score": 0.1311, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.2, "class": 0.0, "tfidf": 0.1171}}], "coverage_gold": 0.19801980198019803, "branch_coverage_gold": 34.5515, "method_coverage_gold": 17.5532, "line_coverage_gold": 31.5847, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["04ab309541f3cce3ae00d512edf23eea0077b34a", "3609c86c15c9f1d8e2cff662cf380dd19f905bfe"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lorg/apache/poi/ss/usermodel/Workbook", "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingCell.getCellTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultTypeEnum:()Lorg/apache/poi/ss/usermodel/CellType", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__41dda3f_35797ed__StreamingReaderTest_54008846", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "41dda3f09c89af6555f11557c8f94ed5a7a31b9d", "rev2": "35797ed83c4b79200b36ba8a3b1839989ec8d5e3", "rev1_date": "2015-04-09T00:41:59Z", "rev2_date": "2015-04-09T03:00:09Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/41dda3f09c89af6555f11557c8f94ed5a7a31b9d...35797ed83c4b79200b36ba8a3b1839989ec8d5e3", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "508_monitorjbl_excel-streaming-reader-2.2.0_41dda3f_35797ed_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testSheetName_missingInFile:()V", "class": "StreamingReaderTest", "method": "testSheetName_missingInFile", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testSheetName_missingInFile", "old_test_code": null, "new_test_code": "@Test\npublic void testSheetName_missingInFile() throws Exception {\n File f = new File(\"src/test/resources/sheets.xlsx\");\n try (StreamingReader reader = StreamingReader.builder().sheetName(\"adsfasdfasdfasdf\").read(f)) {\n fail(\"Should have failed\");\n } catch (MissingSheetException e) {\n assertTrue(f.exists());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["277-289"], "old_production_code": "public StreamingReader read(File f) {\n try {\n OPCPackage pkg = OPCPackage.open(f);\n XSSFReader reader = new XSSFReader(pkg);\n SharedStringsTable sst = reader.getSharedStringsTable();\n InputStream sheet = findSheet(reader);\n if (sheet == null) {\n throw new MissingSheetException(\"Unable to find sheet at index [\" + sheetIndex + \"]\");\n }\n XMLEventReader parser = XMLInputFactory.newInstance().createXMLEventReader(sheet);\n return new StreamingReader(sst, parser, rowCacheSize);\n } catch (IOException e) {\n f.delete();\n throw new OpenException(\"Failed to open file\", e);\n } catch (OpenXML4JException | XMLStreamException e) {\n f.delete();\n throw new ReadException(\"Unable to read workbook\", e);\n } catch (RuntimeException e) {\n f.delete();\n throw e;\n }\n}", "new_production_code": "public StreamingReader read(File f) {\n try {\n OPCPackage pkg = OPCPackage.open(f);\n XSSFReader reader = new XSSFReader(pkg);\n SharedStringsTable sst = reader.getSharedStringsTable();\n InputStream sheet = findSheet(reader);\n if (sheet == null) {\n throw new MissingSheetException(\"Unable to find sheet at index [\" + sheetIndex + \"]\");\n }\n XMLEventReader parser = XMLInputFactory.newInstance().createXMLEventReader(sheet);\n return new StreamingReader(sst, parser, rowCacheSize);\n } catch (IOException e) {\n throw new OpenException(\"Failed to open file\", e);\n } catch (OpenXML4JException | XMLStreamException e) {\n throw new ReadException(\"Unable to read workbook\", e);\n }\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "focal_method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/File;)Lcom/monitorjbl/xlsx/StreamingReader", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/File;)Lcom/monitorjbl/xlsx/StreamingReader", "file_path_old": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_old": "290-313", "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "294-312", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.35, "branch_coverage_gold": 10.3448, "method_coverage_gold": 8.2569, "line_coverage_gold": 10.6299, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/File;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/File;)Lcom/monitorjbl/xlsx/StreamingReader", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__64d1ec4_ee2de0f__StreamingWorkbookTest_85f20c1d", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "64d1ec4c05f838f99817a5582bc22789c07fd54c", "rev2": "ee2de0f91c20898d1f03e6c342e1b201955ba8d4", "rev1_date": "2016-11-25T15:52:31Z", "rev2_date": "2016-11-25T15:55:54Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/64d1ec4c05f838f99817a5582bc22789c07fd54c...ee2de0f91c20898d1f03e6c342e1b201955ba8d4", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "492_monitorjbl_excel-streaming-reader-2.2.0_64d1ec4_ee2de0f_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testFormulaCells:()V", "class": "StreamingWorkbookTest", "method": "testFormulaCells", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testFormulaCells", "old_test_code": null, "new_test_code": "@Test\npublic void testFormulaCells() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/formula_cell.xlsx\"));\n Workbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(1, workbook.getNumberOfSheets());\n Sheet sheet = workbook.getSheetAt(0);\n Iterator rowIterator = sheet.rowIterator();\n rowIterator.next();\n rowIterator.next();\n Row row3 = rowIterator.next();\n Cell A3 = row3.getCell(0);\n assertEquals(\"Cell A3 should be of type formula\", CELL_TYPE_FORMULA, A3.getCellType());\n assertEquals(\"Cell A3's value should be of type numeric\", CELL_TYPE_NUMERIC, A3.getCachedFormulaResultType());\n assertEquals(\"Wrong formula\", \"SUM(A1:A2)\", A3.getCellFormula());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-88"], "old_production_code": "@Override\npublic String getCellFormula() {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic String getCellFormula() {\n if (type == null || !\"str\".equals(type))\n throw new IllegalStateException(\"This cell does not have a formula\");\n return formula;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "318-321", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "256-261", "dependency_updated": "updated", "score": 0.1398, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 0.0, "tfidf": 0.1193}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "262-265", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "269-291", "dependency_updated": "updated", "score": 0.1282, "signal_scores": {"nc": 0.0, "lcs_u": 0.3462, "ed": 0.3462, "class": 0.0, "tfidf": 0.0429}}], "coverage_gold": 0.2413793103448276, "branch_coverage_gold": 39.6907, "method_coverage_gold": 16.7183, "line_coverage_gold": 31.6401, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lorg/apache/poi/ss/usermodel/Workbook", "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "com/monitorjbl/xlsx/impl/StreamingCell.getCellType:()I", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__78bd5a7_fa1d344__StreamingReaderTest_defc46ff", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "78bd5a799d9e264f9c236e42143251d0b0c38fdb", "rev2": "fa1d344498de3497f16758cc7b48f977285eb46a", "rev1_date": "2017-01-17T00:38:10Z", "rev2_date": "2017-01-17T01:37:09Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/78bd5a799d9e264f9c236e42143251d0b0c38fdb...fa1d344498de3497f16758cc7b48f977285eb46a", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "502_monitorjbl_excel-streaming-reader-2.2.0_78bd5a7_fa1d344_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testGetFirstCellNum:()V", "class": "StreamingReaderTest", "method": "testGetFirstCellNum", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testGetFirstCellNum", "old_test_code": null, "new_test_code": "@Test\npublic void testGetFirstCellNum() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/gaps.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n List> obj = new ArrayList<>();\n List rows = new ArrayList<>();\n for (Row r : reader) {\n rows.add(r);\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n assertEquals(3, rows.size());\n assertEquals(3, rows.get(2).getFirstCellNum());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["151-172"], "old_production_code": "@Override\npublic short getFirstCellNum() {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic short getFirstCellNum() {\n if (cellMap.size() == 0) {\n return -1;\n }\n return cellMap.firstKey().shortValue();\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_old": "148-151", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_new": "106-112", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4666666666666667, "branch_coverage_gold": 30.5556, "method_coverage_gold": 12.963, "line_coverage_gold": 27.4148, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["ad652a07136613ea93a7e6006a3ac2f40bc1f83d", "7606725365be1bcd2732c91ba1c870cdc9b79f9b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "com/monitorjbl/xlsx/impl/StreamingSheetReader$StreamingRowIterator.hasNext:()Z", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__78bd5a7_fa1d344__StreamingWorkbookTest_9793aee8", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "78bd5a799d9e264f9c236e42143251d0b0c38fdb", "rev2": "fa1d344498de3497f16758cc7b48f977285eb46a", "rev1_date": "2017-01-17T00:38:10Z", "rev2_date": "2017-01-17T01:37:09Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/78bd5a799d9e264f9c236e42143251d0b0c38fdb...fa1d344498de3497f16758cc7b48f977285eb46a", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "501_monitorjbl_excel-streaming-reader-2.2.0_78bd5a7_fa1d344_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testHiddenSheets:()V", "class": "StreamingWorkbookTest", "method": "testHiddenSheets", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testHiddenSheets", "old_test_code": null, "new_test_code": "@Test\npublic void testHiddenSheets() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/hidden.xlsx\"));\n Workbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(3, workbook.getNumberOfSheets());\n assertFalse(workbook.isSheetHidden(0));\n assertTrue(workbook.isSheetHidden(1));\n assertFalse(workbook.isSheetVeryHidden(1));\n assertFalse(workbook.isSheetHidden(2));\n assertTrue(workbook.isSheetVeryHidden(2));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-84"], "old_production_code": "@Override\npublic boolean isSheetHidden(int sheetIx) {\n throw new UnsupportedOperationException();\n}", "new_production_code": "@Override\npublic boolean isSheetHidden(int sheetIx) {\n return \"hidden\".equals(reader.getSheetProperties().get(sheetIx).get(\"state\"));\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_old": "429-432", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "100-103", "dependency_updated": "updated", "score": 0.2985, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.1538, "class": 1.0, "tfidf": 0.0148}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_old": "437-440", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "108-111", "dependency_updated": "updated", "score": 0.2796, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.1765, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.19047619047619047, "branch_coverage_gold": 5.0926, "method_coverage_gold": 8.9506, "line_coverage_gold": 13.7784, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["ad652a07136613ea93a7e6006a3ac2f40bc1f83d", "7606725365be1bcd2732c91ba1c870cdc9b79f9b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lorg/apache/poi/ss/usermodel/Workbook", "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__8c439f5_f39a288__StreamingWorkbookTest_85f20c1d", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "8c439f5c9792f01539040090a1990d19a755dc15", "rev2": "f39a288dc3f97c7f56ec9e4e55aa81177fd32eda", "rev1_date": "2016-11-03T20:21:16Z", "rev2_date": "2016-11-04T04:16:00Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/8c439f5c9792f01539040090a1990d19a755dc15...f39a288dc3f97c7f56ec9e4e55aa81177fd32eda", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "480_monitorjbl_excel-streaming-reader-2.2.0_8c439f5_f39a288_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testFormulaCells:()V", "class": "StreamingWorkbookTest", "method": "testFormulaCells", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testFormulaCells", "old_test_code": null, "new_test_code": "@Test\npublic void testFormulaCells() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/formula_cell.xlsx\"));\n Workbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(1, workbook.getNumberOfSheets());\n Sheet sheet = workbook.getSheetAt(0);\n Iterator rowIterator = sheet.rowIterator();\n rowIterator.next();\n rowIterator.next();\n Row row3 = rowIterator.next();\n Cell A3 = row3.getCell(0);\n assertEquals(\"Cell A3 should be of type formula\", CELL_TYPE_FORMULA, A3.getCellType());\n assertEquals(\"Cell A3's value should be of type numeric\", CELL_TYPE_NUMERIC, A3.getCachedFormulaResultType());\n assertEquals(\"Wrong formula\", \"SUM(A1:A2)\", A3.getCellFormula());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-88"], "old_production_code": "@Override\npublic String getCellFormula() {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic String getCellFormula() {\n if (type == null || !\"str\".equals(type))\n throw new IllegalStateException(\"This cell does not have a formula\");\n return formula;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "318-321", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "256-261", "dependency_updated": "updated", "score": 0.1398, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1429, "class": 0.0, "tfidf": 0.1193}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "262-265", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "269-291", "dependency_updated": "updated", "score": 0.1282, "signal_scores": {"nc": 0.0, "lcs_u": 0.3462, "ed": 0.3462, "class": 0.0, "tfidf": 0.0429}}], "coverage_gold": 0.2413793103448276, "branch_coverage_gold": 39.6907, "method_coverage_gold": 16.7183, "line_coverage_gold": 31.6401, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lorg/apache/poi/ss/usermodel/Workbook", "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "com/monitorjbl/xlsx/impl/StreamingCell.getCellType:()I", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCellFormula:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getCachedFormulaResultType:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__a6bca3f_1dc902c__StreamingReaderTest_a339ee9c", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "a6bca3f0d7ed8854f72f54e64fd2ae1d2f50c71c", "rev2": "1dc902c629bb8a08097d3e4607f7601ce25f3336", "rev1_date": "2015-11-23T10:52:26Z", "rev2_date": "2015-11-23T11:14:53Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/a6bca3f0d7ed8854f72f54e64fd2ae1d2f50c71c...1dc902c629bb8a08097d3e4607f7601ce25f3336", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "482_monitorjbl_excel-streaming-reader-2.2.0_a6bca3f_1dc902c_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testStringCellValue:()V", "class": "StreamingReaderTest", "method": "testStringCellValue", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testStringCellValue", "old_test_code": null, "new_test_code": "@Test\npublic void testStringCellValue() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/blank_cell_StringCellValue.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n for (Row r : reader) {\n if (r.getRowNum() == 1) {\n assertEquals(\"\", r.getCell(1).getStringCellValue());\n }\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["421-433"], "old_production_code": "@Override\npublic String getStringCellValue() {\n return (String) contents;\n}", "new_production_code": "@Override\npublic String getStringCellValue() {\n return contents == null ? \"\" : (String) contents;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "149-152", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "149-152", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5517241379310345, "branch_coverage_gold": 49.505, "method_coverage_gold": 25.4098, "line_coverage_gold": 43.0769, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["18006bbc41e00ec394ad38908d2fc7106765fb6d"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingRow.getRowNum:()I", "com/monitorjbl/xlsx/StreamingReader$StreamingIterator.hasNext:()Z", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__b1cdfcd_a3b1109__StreamingWorkbookTest_72a7fffe", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "b1cdfcdf518139414c5169f0d0443728f6ffea0a", "rev2": "a3b1109989e664dac12ec93c88434bba6c09b5d7", "rev1_date": "2016-04-24T17:01:58Z", "rev2_date": "2016-04-24T17:13:31Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/b1cdfcdf518139414c5169f0d0443728f6ffea0a...a3b1109989e664dac12ec93c88434bba6c09b5d7", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "467_monitorjbl_excel-streaming-reader-2.2.0_b1cdfcd_a3b1109_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testIterateSheets:()V", "class": "StreamingWorkbookTest", "method": "testIterateSheets", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testIterateSheets", "old_test_code": null, "new_test_code": "@Test\npublic void testIterateSheets() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/sheets.xlsx\"));\n StreamingWorkbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(2, workbook.getNumberOfSheets());\n Sheet alpha = workbook.getSheetAt(0);\n Sheet zulu = workbook.getSheetAt(1);\n assertEquals(\"SheetAlpha\", alpha.getSheetName());\n assertEquals(\"SheetZulu\", zulu.getSheetName());\n Row rowA = alpha.rowIterator().next();\n Row rowZ = zulu.rowIterator().next();\n assertEquals(\"stuff\", rowA.getCell(0).getStringCellValue());\n assertEquals(\"yeah\", rowZ.getCell(0).getStringCellValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-42"], "old_production_code": "", "new_production_code": "@Override\npublic Sheet getSheetAt(int index) {\n return reader.getSheets().get(index);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "75-78", "dependency_updated": "inserted", "score": 0.4022, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.4615, "class": 1.0, "tfidf": 0.0613}}, {"dep_id": 3, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": 0.3642, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.4706, "class": 1.0, "tfidf": 0.0214}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.2842, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.1651, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.3077, "class": 0.0, "tfidf": 0.0487}}, {"dep_id": 4, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "51-54", "dependency_updated": "inserted", "score": 0.1506, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 0.0, "tfidf": 0.0695}}, {"dep_id": 2, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "204-208", "dependency_updated": "inserted", "score": 0.1152, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0769, "class": 0.0, "tfidf": 0.2484}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.7521, "method_coverage_gold": 16.0377, "line_coverage_gold": 29.4498, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__d02c5fe_c95ce11__StreamingReaderTest_846b77bd", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "d02c5fed2a1d1680e038eca4e9c7d3a33e185b76", "rev2": "c95ce11f8432bb2544b28e0cd6e303d08b6fbb80", "rev1_date": "2015-02-24T02:42:45Z", "rev2_date": "2015-02-24T02:43:04Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/d02c5fed2a1d1680e038eca4e9c7d3a33e185b76...c95ce11f8432bb2544b28e0cd6e303d08b6fbb80", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "471_monitorjbl_excel-streaming-reader-2.2.0_d02c5fe_c95ce11_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testSheetName_alpha:()V", "class": "StreamingReaderTest", "method": "testSheetName_alpha", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testSheetName_alpha", "old_test_code": null, "new_test_code": "@Test\npublic void testSheetName_alpha() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/sheets.xlsx\"));\n StreamingReader reader = StreamingReader.builder().sheetName(\"SheetAlpha\").read(is)) {\n List> obj = new ArrayList<>();\n for (Row r : reader) {\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n assertEquals(1, obj.size());\n List row;\n row = obj.get(0);\n assertEquals(1, row.size());\n assertEquals(\"stuff\", row.get(0).getStringCellValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["235-260"], "old_production_code": "", "new_production_code": "public Builder sheetName(String sheetName) {\n this.sheetName = sheetName;\n return this;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "focal_method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "240-243", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7313432835820896, "branch_coverage_gold": 67.2414, "method_coverage_gold": 24.7619, "line_coverage_gold": 47.5207, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader$StreamingIterator.hasNext:()Z", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "472_monitorjbl_excel-streaming-reader-2.2.0_d02c5fe_c95ce11_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testSheetName_zulu:()V", "class": "StreamingReaderTest", "method": "testSheetName_zulu", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testSheetName_zulu", "old_test_code": null, "new_test_code": "@Test\npublic void testSheetName_zulu() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/sheets.xlsx\"));\n StreamingReader reader = StreamingReader.builder().sheetName(\"SheetZulu\").read(is)) {\n List> obj = new ArrayList<>();\n for (Row r : reader) {\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n assertEquals(1, obj.size());\n List row;\n row = obj.get(0);\n assertEquals(1, row.size());\n assertEquals(\"yeah\", row.get(0).getStringCellValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["207-233"], "old_production_code": "", "new_production_code": "public Builder sheetName(String sheetName) {\n this.sheetName = sheetName;\n return this;\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "focal_method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "240-243", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.746268656716418, "branch_coverage_gold": 68.9655, "method_coverage_gold": 24.7619, "line_coverage_gold": 47.9339, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader$StreamingIterator.hasNext:()Z", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.sheetName:(Ljava/lang/String;)Lcom/monitorjbl/xlsx/StreamingReader$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__e36f3b4_112d1e2__StreamingReaderTest_5a9acecd", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "e36f3b4a3cbca4bebe1ca47ff1510a5fbc91defa", "rev2": "112d1e2cb5a962b68bc750cd7df44087589aad12", "rev1_date": "2015-11-13T19:17:19Z", "rev2_date": "2015-11-13T19:17:19Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/e36f3b4a3cbca4bebe1ca47ff1510a5fbc91defa...112d1e2cb5a962b68bc750cd7df44087589aad12", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "496_monitorjbl_excel-streaming-reader-2.2.0_e36f3b4_112d1e2_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testBlankNumerics:()V", "class": "StreamingReaderTest", "method": "testBlankNumerics", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testBlankNumerics", "old_test_code": null, "new_test_code": "@Test\npublic void testBlankNumerics() throws Exception {\n File f = new File(\"src/test/resources/blank_cells.xlsx\");\n try (StreamingReader reader = StreamingReader.builder().read(f)) {\n Row row = reader.iterator().next();\n assertThat(row.getCell(1).getStringCellValue(), is(nullValue()));\n assertThat(row.getCell(1).getDateCellValue(), is(nullValue()));\n assertThat(row.getCell(1).getNumericCellValue(), equalTo(0.0));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["368-377"], "old_production_code": "@Override\npublic double getNumericCellValue() {\n return Double.parseDouble((String) rawContents);\n}", "new_production_code": "@Override\npublic double getNumericCellValue() {\n return rawContents == null ? 0.0 : Double.parseDouble((String) rawContents);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getNumericCellValue:()D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getNumericCellValue:()D", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "161-164", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "161-164", "dependency_updated": "updated", "score": 0.1084, "signal_scores": {"nc": 0.0, "lcs_u": 0.3684, "ed": 0.2632, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "174-177", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "174-177", "dependency_updated": "updated", "score": 0.0613, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0625, "class": 0.0, "tfidf": 0.0291}}], "coverage_gold": 0.5194805194805194, "branch_coverage_gold": 40.8602, "method_coverage_gold": 25.2101, "line_coverage_gold": 39.1026, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "com/monitorjbl/xlsx/impl/StreamingCell.getNumericCellValue:()D", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/File;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getNumericCellValue:()D", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__e5633d0_f80a8d7__StreamingWorkbookTest_72a7fffe", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "e5633d07170640135fff2785442e61d8ea316381", "rev2": "f80a8d72621dab651e6defecb377f38f2dead38e", "rev1_date": "2016-04-30T20:30:31Z", "rev2_date": "2016-04-30T20:36:53Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/e5633d07170640135fff2785442e61d8ea316381...f80a8d72621dab651e6defecb377f38f2dead38e", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "500_monitorjbl_excel-streaming-reader-2.2.0_e5633d0_f80a8d7_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testIterateSheets:()V", "class": "StreamingWorkbookTest", "method": "testIterateSheets", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testIterateSheets", "old_test_code": null, "new_test_code": "@Test\npublic void testIterateSheets() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/sheets.xlsx\"));\n StreamingWorkbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(2, workbook.getNumberOfSheets());\n Sheet alpha = workbook.getSheetAt(0);\n Sheet zulu = workbook.getSheetAt(1);\n assertEquals(\"SheetAlpha\", alpha.getSheetName());\n assertEquals(\"SheetZulu\", zulu.getSheetName());\n Row rowA = alpha.rowIterator().next();\n Row rowZ = zulu.rowIterator().next();\n assertEquals(\"stuff\", rowA.getCell(0).getStringCellValue());\n assertEquals(\"yeah\", rowZ.getCell(0).getStringCellValue());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-42"], "old_production_code": "", "new_production_code": "@Override\npublic Sheet getSheetAt(int index) {\n return reader.getSheets().get(index);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "75-78", "dependency_updated": "inserted", "score": 0.4022, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.4615, "class": 1.0, "tfidf": 0.0613}}, {"dep_id": 3, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "67-70", "dependency_updated": "inserted", "score": 0.3642, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.4706, "class": 1.0, "tfidf": 0.0214}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "91-94", "dependency_updated": "inserted", "score": 0.2842, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.1651, "signal_scores": {"nc": 0.0, "lcs_u": 0.5833, "ed": 0.3077, "class": 0.0, "tfidf": 0.0487}}, {"dep_id": 4, "method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "line_nums_new": "51-54", "dependency_updated": "inserted", "score": 0.1506, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.2308, "class": 0.0, "tfidf": 0.0695}}, {"dep_id": 2, "method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "line_nums_new": "204-208", "dependency_updated": "inserted", "score": 0.1152, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0769, "class": 0.0, "tfidf": 0.2484}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.7521, "method_coverage_gold": 16.0377, "line_coverage_gold": 29.4498, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/impl/StreamingRow.getCell:(I)Lorg/apache/poi/ss/usermodel/Cell", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "com/monitorjbl/xlsx/impl/StreamingCell.getStringCellValue:()Ljava/lang/String", "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.getSheetName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/impl/StreamingWorkbook", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/StreamingReader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingSheet.rowIterator:()Ljava/util/Iterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingSheet.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.getSheetAt:(I)Lorg/apache/poi/ss/usermodel/Sheet", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__f952a62_34fac11__StreamingReaderTest_ea58d3b2", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "f952a625c654db825affb93987cd28f21ce8e015", "rev2": "34fac1131178d63a1e223177f140282ad0e7576a", "rev1_date": "2017-01-25T20:26:41Z", "rev2_date": "2017-01-25T20:39:22Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/f952a625c654db825affb93987cd28f21ce8e015...34fac1131178d63a1e223177f140282ad0e7576a", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingReaderTest.java", "test_changes": [{"change_id": "503_monitorjbl_excel-streaming-reader-2.2.0_f952a62_34fac11_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testGetDateCellValue1904:()V", "class": "StreamingReaderTest", "method": "testGetDateCellValue1904", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testGetDateCellValue1904", "old_test_code": null, "new_test_code": "@Test\npublic void testGetDateCellValue1904() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/1904Dates.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n List> obj = new ArrayList<>();\n for (Row r : reader) {\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n Date dt = obj.get(1).get(5).getDateCellValue();\n assertNotNull(dt);\n final GregorianCalendar cal = new GregorianCalendar();\n cal.setTime(dt);\n assertEquals(cal.get(Calendar.YEAR), 1991);\n try {\n obj.get(0).get(0).getDateCellValue();\n fail(\"Should have thrown IllegalStateException\");\n } catch (IllegalStateException e) {\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["156-184"], "old_production_code": "@Override\npublic Date getDateCellValue() {\n return rawContents == null ? null : HSSFDateUtil.getJavaDate(getNumericCellValue());\n}", "new_production_code": "@Override\npublic Date getDateCellValue() {\n if (getCellType() == CELL_TYPE_STRING) {\n throw new IllegalStateException(\"Cell type cannot be CELL_TYPE_STRING\");\n }\n return rawContents == null ? null : HSSFDateUtil.getJavaDate(getNumericCellValue(), use1904Dates);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "194-197", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "196-202", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5104166666666666, "branch_coverage_gold": 37.5, "method_coverage_gold": 15.1235, "line_coverage_gold": 31.8119, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8698befdf4723828508473c9133fe1afc8290dd7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/impl/StreamingSheetReader$StreamingRowIterator.hasNext:()Z", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "504_monitorjbl_excel-streaming-reader-2.2.0_f952a62_34fac11_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testGetDateCellValue:()V", "class": "StreamingReaderTest", "method": "testGetDateCellValue", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testGetDateCellValue", "old_test_code": null, "new_test_code": "@Test\npublic void testGetDateCellValue() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/data_types.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n List> obj = new ArrayList<>();\n for (Row r : reader) {\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n Date dt = obj.get(4).get(1).getDateCellValue();\n assertNotNull(dt);\n final GregorianCalendar cal = new GregorianCalendar();\n cal.setTime(dt);\n assertEquals(cal.get(Calendar.YEAR), 2014);\n try {\n obj.get(0).get(0).getDateCellValue();\n fail(\"Should have thrown IllegalStateException\");\n } catch (IllegalStateException e) {\n }\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["127-155"], "old_production_code": "@Override\npublic Date getDateCellValue() {\n return rawContents == null ? null : HSSFDateUtil.getJavaDate(getNumericCellValue());\n}", "new_production_code": "@Override\npublic Date getDateCellValue() {\n if (getCellType() == CELL_TYPE_STRING) {\n throw new IllegalStateException(\"Cell type cannot be CELL_TYPE_STRING\");\n }\n return rawContents == null ? null : HSSFDateUtil.getJavaDate(getNumericCellValue(), use1904Dates);\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_old": "194-197", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "line_nums_new": "196-202", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 37.5, "method_coverage_gold": 14.8148, "line_coverage_gold": 31.2586, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8698befdf4723828508473c9133fe1afc8290dd7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/impl/StreamingSheetReader$StreamingRowIterator.hasNext:()Z", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingCell.getDateCellValue:()Ljava/util/Date", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingCell.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "506_monitorjbl_excel-streaming-reader-2.2.0_f952a62_34fac11_StreamingReaderTest", "test_sign": "com/monitorjbl/xlsx/StreamingReaderTest.testGetFirstCellNum:()V", "class": "StreamingReaderTest", "method": "testGetFirstCellNum", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingReaderTest#testGetFirstCellNum", "old_test_code": null, "new_test_code": "@Test\npublic void testGetFirstCellNum() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/gaps.xlsx\"));\n StreamingReader reader = StreamingReader.builder().read(is)) {\n List> obj = new ArrayList<>();\n List rows = new ArrayList<>();\n for (Row r : reader) {\n rows.add(r);\n List o = new ArrayList<>();\n for (Cell c : r) {\n o.add(c);\n }\n obj.add(o);\n }\n assertEquals(3, rows.size());\n assertEquals(3, rows.get(2).getFirstCellNum());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["186-207"], "old_production_code": "@Override\npublic short getFirstCellNum() {\n throw new NotSupportedException();\n}", "new_production_code": "@Override\npublic short getFirstCellNum() {\n if (cellMap.size() == 0) {\n return -1;\n }\n return cellMap.firstKey().shortValue();\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_old": "155-158", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "line_nums_new": "106-112", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 29.3103, "method_coverage_gold": 13.5802, "line_coverage_gold": 28.3541, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8698befdf4723828508473c9133fe1afc8290dd7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.close:()V", "com/monitorjbl/xlsx/impl/StreamingRow.iterator:()Ljava/util/Iterator", "com/monitorjbl/xlsx/StreamingReader$Builder.read:(Ljava/io/InputStream;)Lcom/monitorjbl/xlsx/StreamingReader", "com/monitorjbl/xlsx/impl/StreamingSheetReader$StreamingRowIterator.hasNext:()Z", "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/StreamingReader.iterator:()Ljava/util/Iterator"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingRow.getFirstCellNum:()S", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingRow.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "monitorjbl_excel-streaming-reader-2.2.0__f952a62_34fac11__StreamingWorkbookTest_9793aee8", "project_name": "monitorjbl_excel-streaming-reader-2.2.0", "git_clone_url": "https://github.com/monitorjbl/excel-streaming-reader.git", "rev1": "f952a625c654db825affb93987cd28f21ce8e015", "rev2": "34fac1131178d63a1e223177f140282ad0e7576a", "rev1_date": "2017-01-25T20:26:41Z", "rev2_date": "2017-01-25T20:39:22Z", "git_diff_url": "https://github.com/monitorjbl/excel-streaming-reader/compare/f952a625c654db825affb93987cd28f21ce8e015...34fac1131178d63a1e223177f140282ad0e7576a", "test_file": "src/test/java/com/monitorjbl/xlsx/StreamingWorkbookTest.java", "test_changes": [{"change_id": "505_monitorjbl_excel-streaming-reader-2.2.0_f952a62_34fac11_StreamingWorkbookTest", "test_sign": "com/monitorjbl/xlsx/StreamingWorkbookTest.testHiddenSheets:()V", "class": "StreamingWorkbookTest", "method": "testHiddenSheets", "module": "", "junit_selector": "com.monitorjbl.xlsx.StreamingWorkbookTest#testHiddenSheets", "old_test_code": null, "new_test_code": "@Test\npublic void testHiddenSheets() throws Exception {\n try (InputStream is = new FileInputStream(new File(\"src/test/resources/hidden.xlsx\"));\n Workbook workbook = StreamingReader.builder().open(is)) {\n assertEquals(3, workbook.getNumberOfSheets());\n assertFalse(workbook.isSheetHidden(0));\n assertTrue(workbook.isSheetHidden(1));\n assertFalse(workbook.isSheetVeryHidden(1));\n assertFalse(workbook.isSheetHidden(2));\n assertTrue(workbook.isSheetVeryHidden(2));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-84"], "old_production_code": "@Override\npublic boolean isSheetHidden(int sheetIx) {\n throw new UnsupportedOperationException();\n}", "new_production_code": "@Override\npublic boolean isSheetHidden(int sheetIx) {\n return \"hidden\".equals(reader.getSheetProperties().get(sheetIx).get(\"state\"));\n}", "focal_file_path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "focal_method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_old": "429-432", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "100-103", "dependency_updated": "updated", "score": 0.2985, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.1538, "class": 1.0, "tfidf": 0.0148}}, {"dep_id": 0, "method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_old": "437-440", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "line_nums_new": "108-111", "dependency_updated": "updated", "score": 0.2796, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.1765, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.17777777777777778, "branch_coverage_gold": 5.6034, "method_coverage_gold": 8.9506, "line_coverage_gold": 14.3845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8698befdf4723828508473c9133fe1afc8290dd7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/monitorjbl/xlsx/StreamingReader.builder:()Lcom/monitorjbl/xlsx/StreamingReader$Builder", "com/monitorjbl/xlsx/impl/StreamingWorkbook.getNumberOfSheets:()I", "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "com/monitorjbl/xlsx/StreamingReader$Builder.open:(Ljava/io/InputStream;)Lorg/apache/poi/ss/usermodel/Workbook", "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "com/monitorjbl/xlsx/impl/StreamingWorkbook.close:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetVeryHidden:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/monitorjbl/xlsx/impl/StreamingWorkbook.isSheetHidden:(I)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "file_path_new": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.2.0", "java_version": 8} {"task_id": "mttkay_signpost-oauth-signpost-2.1.1__0a02f4f_65933c4__HttpParametersTest_5910a972", "project_name": "mttkay_signpost-oauth-signpost-2.1.1", "git_clone_url": "https://github.com/mttkay/signpost.git", "rev1": "0a02f4fd60a29f6ef787c053b31b1a6ed411657a", "rev2": "65933c4fa39aa0e7b6ed9c3fd0d2316ac0ec9a1e", "rev1_date": "2010-04-26T07:45:29Z", "rev2_date": "2010-04-26T07:49:23Z", "git_diff_url": "https://github.com/mttkay/signpost/compare/0a02f4fd60a29f6ef787c053b31b1a6ed411657a...65933c4fa39aa0e7b6ed9c3fd0d2316ac0ec9a1e", "test_file": "signpost-core/src/test/java/oauth/signpost/http/HttpParametersTest.java", "test_changes": [{"change_id": "246_mttkay_signpost-oauth-signpost-2.1.1_0a02f4f_65933c4_HttpParametersTest", "test_sign": "oauth/signpost/http/HttpParametersTest.testGetOAuthParameters:()V", "class": "HttpParametersTest", "method": "testGetOAuthParameters", "module": "signpost-core", "junit_selector": "oauth.signpost.http.HttpParametersTest#testGetOAuthParameters", "old_test_code": null, "new_test_code": "@Test\npublic void testGetOAuthParameters() {\n HttpParameters params = new HttpParameters();\n params.put(\"a\", \"5\");\n params.put(\"oauth_token\", \"1\");\n params.put(\"x_oauth_token\", \"1\");\n HttpParameters oauthParams = params.getOAuthParameters();\n assertFalse(oauthParams.containsKey(\"a\"));\n assertTrue(oauthParams.containsKey(\"oauth_token\"));\n assertTrue(oauthParams.containsKey(\"x_oauth_token\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-72"], "old_production_code": "", "new_production_code": "public HttpParameters getOAuthParameters() {\n HttpParameters oauthParams = new HttpParameters();\n for (Entry> param : this.entrySet()) {\n String key = param.getKey();\n if (key.startsWith(\"oauth_\") || key.startsWith(\"x_oauth_\")) {\n oauthParams.put(key, param.getValue());\n }\n }\n return oauthParams;\n}", "focal_file_path": "signpost-core/src/main/java/oauth/signpost/http/HttpParameters.java", "focal_method_sign": "oauth/signpost/http/HttpParameters.getOAuthParameters:()Loauth/signpost/http/HttpParameters", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "oauth/signpost/http/HttpParameters.getOAuthParameters:()Loauth/signpost/http/HttpParameters", "file_path_old": null, "line_nums_old": null, "file_path_new": "signpost-core/src/main/java/oauth/signpost/http/HttpParameters.java", "line_nums_new": "271-282", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5381, "method_coverage_gold": 3.7838, "line_coverage_gold": 2.3783, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["d12c925c72f7129a568f0a17fd1410885b2060a2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["oauth/signpost/http/HttpParameters.containsKey:(Ljava/lang/Object;)Z", "oauth/signpost/http/HttpParameters.getOAuthParameters:()Loauth/signpost/http/HttpParameters", "oauth/signpost/http/HttpParameters.put:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "oauth/signpost/http/HttpParameters.getOAuthParameters:()Loauth/signpost/http/HttpParameters", "change_type": "ADD", "file_path_old": null, "file_path_new": "signpost-core/src/main/java/oauth/signpost/http/HttpParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "oauth-signpost-2.1.1", "java_version": 8} {"task_id": "networknt_json-schema-validator-3.0.0__3957163_2d645e6__CachedSupplierTest_b879c2ca", "project_name": "networknt_json-schema-validator-3.0.0", "git_clone_url": "https://github.com/networknt/json-schema-validator.git", "rev1": "39571635d96b31eb50902ac2bf8fe4bcefe425bf", "rev2": "2d645e60d8d3b987368fac8433e6e45519516d02", "rev1_date": "2024-06-11T12:17:34Z", "rev2_date": "2024-06-11T12:30:45Z", "git_diff_url": "https://github.com/networknt/json-schema-validator/compare/39571635d96b31eb50902ac2bf8fe4bcefe425bf...2d645e60d8d3b987368fac8433e6e45519516d02", "test_file": "src/test/java/com/networknt/schema/CachedSupplierTest.java", "test_changes": [{"change_id": "1868_networknt_json-schema-validator-3.0.0_3957163_2d645e6_CachedSupplierTest", "test_sign": "com/networknt/schema/CachedSupplierTest.nullValue:()V", "class": "CachedSupplierTest", "method": "nullValue", "module": "", "junit_selector": "com.networknt.schema.CachedSupplierTest#nullValue", "old_test_code": null, "new_test_code": "@Test\nvoid nullValue() {\n CachedSupplier supplier = new CachedSupplier<>(null);\n assertNull(supplier.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-36"], "old_production_code": "@Override\npublic T get() {\n if (cache == null) {\n cache = delegate.get();\n }\n return cache;\n}", "new_production_code": "@Override\npublic T get() {\n if (this.delegate == null) {\n return this.cache;\n }\n synchronized (this) {\n if (this.delegate != null) {\n this.cache = this.delegate.get();\n this.delegate = null;\n }\n }\n return this.cache;\n}", "focal_file_path": "src/main/java/com/networknt/schema/CachedSupplier.java", "focal_method_sign": "com/networknt/schema/CachedSupplier.get:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/networknt/schema/CachedSupplier.get:()Ljava/lang/Object", "file_path_old": "src/main/java/com/networknt/schema/CachedSupplier.java", "line_nums_old": "33-39", "file_path_new": "src/main/java/com/networknt/schema/CachedSupplier.java", "line_nums_new": "33-46", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.0263, "method_coverage_gold": 0.1296, "line_coverage_gold": 0.0868, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/networknt/schema/CachedSupplier.get:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/networknt/schema/CachedSupplier.get:()Ljava/lang/Object", "change_type": "UPDATE", "file_path_old": "src/main/java/com/networknt/schema/CachedSupplier.java", "file_path_new": "src/main/java/com/networknt/schema/CachedSupplier.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.0.0", "java_version": 8} {"task_id": "networknt_json-schema-validator-3.0.0__d92caed_6621810__CollectorContextTest_ce6dc6f4", "project_name": "networknt_json-schema-validator-3.0.0", "git_clone_url": "https://github.com/networknt/json-schema-validator.git", "rev1": "d92caed93c7ebf29f3dde0f19f8ce5ff7cb76482", "rev2": "6621810af88ab5074824f5f45d2ce97f569558f5", "rev1_date": "2024-06-13T01:26:50Z", "rev2_date": "2024-06-13T12:55:48Z", "git_diff_url": "https://github.com/networknt/json-schema-validator/compare/d92caed93c7ebf29f3dde0f19f8ce5ff7cb76482...6621810af88ab5074824f5f45d2ce97f569558f5", "test_file": "src/test/java/com/networknt/schema/CollectorContextTest.java", "test_changes": [{"change_id": "1939_networknt_json-schema-validator-3.0.0_d92caed_6621810_CollectorContextTest", "test_sign": "com/networknt/schema/CollectorContextTest.iterateWalkValidate:()V", "class": "CollectorContextTest", "method": "iterateWalkValidate", "module": "", "junit_selector": "com.networknt.schema.CollectorContextTest#iterateWalkValidate", "old_test_code": null, "new_test_code": "@Test\nvoid iterateWalkValidate() {\n CollectorContext collectorContext = new CollectorContext(new ConcurrentHashMap<>(), new ConcurrentHashMap<>());\n JsonMetaSchema metaSchema = JsonMetaSchema.builder(JsonMetaSchema.getV202012()).keyword(new CollectKeyword()).build();\n JsonSchemaFactory factory = JsonSchemaFactory.getInstance(VersionFlag.V202012, builder -> builder.metaSchema(metaSchema));\n JsonSchema schema = factory.getSchema(\"{\\n\" + \" \\\"collect\\\": true\\n\" + \"}\");\n for (int i = 0; i < 50; ++i) {\n schema.walk(\"1\", InputFormat.JSON, true, executionContext -> {\n executionContext.setCollectorContext(collectorContext);\n });\n }\n collectorContext.loadCollectors();\n AtomicInteger result = (AtomicInteger) collectorContext.get(\"collect\");\n assertEquals(50, result.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["541-557"], "old_production_code": "", "new_production_code": "public ValidationResult walk(String input, InputFormat inputFormat, boolean validate, Consumer executionCustomizer) {\n return walk(createExecutionContext(), deserialize(input, inputFormat), validate, executionCustomizer);\n}", "focal_file_path": "src/main/java/com/networknt/schema/JsonSchema.java", "focal_method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/networknt/schema/JsonSchema.java", "line_nums_new": "1207-1210", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8392857142857143, "branch_coverage_gold": 6.2957, "method_coverage_gold": 20.5193, "line_coverage_gold": 16.4736, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/networknt/schema/CollectorContext.get:(Ljava/lang/String;)Ljava/lang/Object", "com/networknt/schema/CollectorContext.loadCollectors:()V", "com/networknt/schema/JsonMetaSchema.builder:(Lcom/networknt/schema/JsonMetaSchema;)Lcom/networknt/schema/JsonMetaSchema$Builder", "com/networknt/schema/JsonSchemaFactory.getInstance:(Lcom/networknt/schema/SpecVersion$VersionFlag;Ljava/util/function/Consumer;)Lcom/networknt/schema/JsonSchemaFactory", "com/networknt/schema/JsonMetaSchema$Builder.keyword:(Lcom/networknt/schema/Keyword;)Lcom/networknt/schema/JsonMetaSchema$Builder", "com/networknt/schema/JsonMetaSchema.getV202012:()Lcom/networknt/schema/JsonMetaSchema", "com/networknt/schema/JsonMetaSchema$Builder.build:()Lcom/networknt/schema/JsonMetaSchema", "com/networknt/schema/JsonSchemaFactory.getSchema:(Ljava/lang/String;)Lcom/networknt/schema/JsonSchema", "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/networknt/schema/JsonSchema.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1941_networknt_json-schema-validator-3.0.0_d92caed_6621810_CollectorContextTest", "test_sign": "com/networknt/schema/CollectorContextTest.iterateWalk:()V", "class": "CollectorContextTest", "method": "iterateWalk", "module": "", "junit_selector": "com.networknt.schema.CollectorContextTest#iterateWalk", "old_test_code": null, "new_test_code": "@Test\nvoid iterateWalk() {\n CollectorContext collectorContext = new CollectorContext(new ConcurrentHashMap<>(), new ConcurrentHashMap<>());\n JsonMetaSchema metaSchema = JsonMetaSchema.builder(JsonMetaSchema.getV202012()).keyword(new CollectKeyword()).build();\n JsonSchemaFactory factory = JsonSchemaFactory.getInstance(VersionFlag.V202012, builder -> builder.metaSchema(metaSchema));\n JsonSchema schema = factory.getSchema(\"{\\n\" + \" \\\"collect\\\": true\\n\" + \"}\");\n for (int i = 0; i < 50; ++i) {\n schema.walk(\"1\", InputFormat.JSON, false, executionContext -> {\n executionContext.setCollectorContext(collectorContext);\n });\n }\n collectorContext.loadCollectors();\n AtomicInteger result = (AtomicInteger) collectorContext.get(\"collect\");\n assertEquals(50, result.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["523-539"], "old_production_code": "", "new_production_code": "public ValidationResult walk(String input, InputFormat inputFormat, boolean validate, Consumer executionCustomizer) {\n return walk(createExecutionContext(), deserialize(input, inputFormat), validate, executionCustomizer);\n}", "focal_file_path": "src/main/java/com/networknt/schema/JsonSchema.java", "focal_method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/networknt/schema/JsonSchema.java", "line_nums_new": "1207-1210", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8392857142857143, "branch_coverage_gold": 6.2957, "method_coverage_gold": 20.5193, "line_coverage_gold": 16.4879, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/networknt/schema/CollectorContext.get:(Ljava/lang/String;)Ljava/lang/Object", "com/networknt/schema/CollectorContext.loadCollectors:()V", "com/networknt/schema/JsonMetaSchema.builder:(Lcom/networknt/schema/JsonMetaSchema;)Lcom/networknt/schema/JsonMetaSchema$Builder", "com/networknt/schema/JsonSchemaFactory.getInstance:(Lcom/networknt/schema/SpecVersion$VersionFlag;Ljava/util/function/Consumer;)Lcom/networknt/schema/JsonSchemaFactory", "com/networknt/schema/JsonMetaSchema$Builder.keyword:(Lcom/networknt/schema/Keyword;)Lcom/networknt/schema/JsonMetaSchema$Builder", "com/networknt/schema/JsonMetaSchema.getV202012:()Lcom/networknt/schema/JsonMetaSchema", "com/networknt/schema/JsonMetaSchema$Builder.build:()Lcom/networknt/schema/JsonMetaSchema", "com/networknt/schema/JsonSchemaFactory.getSchema:(Ljava/lang/String;)Lcom/networknt/schema/JsonSchema", "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/networknt/schema/JsonSchema.walk:(Ljava/lang/String;Lcom/networknt/schema/InputFormat;ZLjava/util/function/Consumer;)Lcom/networknt/schema/ValidationResult", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/networknt/schema/JsonSchema.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.0.0", "java_version": 8} {"task_id": "openjdk_jol-0.17__2c9ae4d_293e726__ClassLayoutInstanceTest_102f5bb0", "project_name": "openjdk_jol-0.17", "git_clone_url": "https://github.com/openjdk/jol.git", "rev1": "2c9ae4de14909be502eb5325ff8bede12aab1394", "rev2": "293e726b5927ff8d7b29dde3eb6a9d5fc5f1e597", "rev1_date": "2016-04-13T13:13:50Z", "rev2_date": "2016-04-13T20:33:56Z", "git_diff_url": "https://github.com/openjdk/jol/compare/2c9ae4de14909be502eb5325ff8bede12aab1394...293e726b5927ff8d7b29dde3eb6a9d5fc5f1e597", "test_file": "jol-core/src/test/java/org/openjdk/jol/info/ClassLayoutInstanceTest.java", "test_changes": [{"change_id": "96_openjdk_jol-0.17_2c9ae4d_293e726_ClassLayoutInstanceTest", "test_sign": "org/openjdk/jol/info/ClassLayoutInstanceTest.testPrint:()V", "class": "ClassLayoutInstanceTest", "method": "testPrint", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.ClassLayoutInstanceTest#testPrint", "old_test_code": null, "new_test_code": "@Test\npublic void testPrint() {\n ClassLayout.parseInstance(new A()).toPrintable();\n ClassLayout.parseInstance(new B()).toPrintable();\n ClassLayout.parseClass(A.class).toPrintable();\n ClassLayout.parseClass(B.class).toPrintable();\n ClassLayout.parseClass(A.class).toPrintable(new A());\n ClassLayout.parseClass(B.class).toPrintable(new B());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-34"], "old_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = VM.current().sizeOf(instance);\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "new_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n if (instance != null) {\n try {\n Class klass = Class.forName(classData.name());\n if (!klass.isAssignableFrom(instance.getClass())) {\n throw new IllegalArgumentException(\"Passed instance type \" + instance.getClass() + \" is not assignable from \" + klass + \".\");\n }\n } catch (ClassNotFoundException e) {\n throw new IllegalArgumentException(\"Class is not found: \" + classData.name() + \".\");\n }\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = (instance != null) ? VM.current().sizeOf(instance) : instanceSize();\n ;\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "focal_method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_old": "195-267", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_new": "195-278", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 13.7195, "method_coverage_gold": 27.758, "line_coverage_gold": 20.204, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["13e07e03a583acd0a9a0af06a1c556f372ea63c1", "e63ebb5b00429c772c3f00b46c4cca696deea240"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/ClassLayout.parseClass:(Ljava/lang/Class;)Lorg/openjdk/jol/info/ClassLayout", "org/openjdk/jol/info/ClassLayout.toPrintable:()Ljava/lang/String", "org/openjdk/jol/info/ClassLayout.parseInstance:(Ljava/lang/Object;)Lorg/openjdk/jol/info/ClassLayout", "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "97_openjdk_jol-0.17_2c9ae4d_293e726_ClassLayoutInstanceTest", "test_sign": "org/openjdk/jol/info/ClassLayoutInstanceTest.testInconsistentTypes:()V", "class": "ClassLayoutInstanceTest", "method": "testInconsistentTypes", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.ClassLayoutInstanceTest#testInconsistentTypes", "old_test_code": null, "new_test_code": "@Test\npublic void testInconsistentTypes() {\n try {\n ClassLayout.parseClass(A.class).toPrintable(new B());\n Assert.fail(\"Trying to pass instance B over the class A succeeded\");\n } catch (Exception e) {\n }\n try {\n ClassLayout.parseClass(B.class).toPrintable(new A());\n Assert.fail(\"Trying to pass instance A over the class B succeeded\");\n } catch (Exception e) {\n }\n try {\n ClassLayout.parseClass(B.class).toPrintable(new C());\n } catch (Exception e) {\n Assert.fail(\"Trying to pass instance C over the class B failed\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-57"], "old_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = VM.current().sizeOf(instance);\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "new_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n if (instance != null) {\n try {\n Class klass = Class.forName(classData.name());\n if (!klass.isAssignableFrom(instance.getClass())) {\n throw new IllegalArgumentException(\"Passed instance type \" + instance.getClass() + \" is not assignable from \" + klass + \".\");\n }\n } catch (ClassNotFoundException e) {\n throw new IllegalArgumentException(\"Class is not found: \" + classData.name() + \".\");\n }\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = (instance != null) ? VM.current().sizeOf(instance) : instanceSize();\n ;\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "focal_method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_old": "195-267", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_new": "195-278", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8793103448275862, "branch_coverage_gold": 13.1098, "method_coverage_gold": 26.3345, "line_coverage_gold": 19.8215, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["13e07e03a583acd0a9a0af06a1c556f372ea63c1", "e63ebb5b00429c772c3f00b46c4cca696deea240"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/ClassLayout.parseClass:(Ljava/lang/Class;)Lorg/openjdk/jol/info/ClassLayout", "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.17", "java_version": 11} {"task_id": "openjdk_jol-0.17__2c9ae4d_e63ebb5__ClassLayoutInstanceTest_2c6541e2", "project_name": "openjdk_jol-0.17", "git_clone_url": "https://github.com/openjdk/jol.git", "rev1": "2c9ae4de14909be502eb5325ff8bede12aab1394", "rev2": "e63ebb5b00429c772c3f00b46c4cca696deea240", "rev1_date": "2016-04-13T13:13:50Z", "rev2_date": "2016-04-13T18:46:35Z", "git_diff_url": "https://github.com/openjdk/jol/compare/2c9ae4de14909be502eb5325ff8bede12aab1394...e63ebb5b00429c772c3f00b46c4cca696deea240", "test_file": "jol-core/src/test/java/ClassLayoutInstanceTest.java", "test_changes": [{"change_id": "116_openjdk_jol-0.17_2c9ae4d_e63ebb5_ClassLayoutInstanceTest", "test_sign": "ClassLayoutInstanceTest.testInconsistentTypes:()V", "class": "ClassLayoutInstanceTest", "method": "testInconsistentTypes", "module": "jol-core", "junit_selector": "ClassLayoutInstanceTest#testInconsistentTypes", "old_test_code": null, "new_test_code": "@Test\npublic void testInconsistentTypes() {\n try {\n ClassLayout.parseClass(A.class).toPrintable(new B());\n Assert.fail(\"Trying to pass instance B over the class A succeeded\");\n } catch (Exception e) {\n }\n try {\n ClassLayout.parseClass(B.class).toPrintable(new A());\n Assert.fail(\"Trying to pass instance A over the class B succeeded\");\n } catch (Exception e) {\n }\n try {\n ClassLayout.parseClass(B.class).toPrintable(new C());\n } catch (Exception e) {\n Assert.fail(\"Trying to pass instance C over the class B failed\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-55"], "old_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = VM.current().sizeOf(instance);\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "new_production_code": "public String toPrintable(Object instance) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n int maxTypeLen = 5;\n for (FieldLayout f : fields()) {\n maxTypeLen = Math.max(f.typeClass().length(), maxTypeLen);\n }\n int maxDescrLen = 30;\n for (FieldLayout f : fields()) {\n maxDescrLen = Math.max((f.hostClass() + \"\" + f.name()).length(), maxDescrLen);\n }\n if (instance != null) {\n try {\n Class klass = Class.forName(classData.name());\n if (!klass.isAssignableFrom(instance.getClass())) {\n throw new IllegalArgumentException(\"Passed instance type \" + instance.getClass() + \" is not assignable from \" + klass + \".\");\n }\n } catch (ClassNotFoundException e) {\n throw new IllegalArgumentException(\"Class is not found: \" + classData.name() + \".\");\n }\n }\n pw.println(classData.name() + \" object internals:\");\n pw.printf(\" %6s %5s %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", \"OFFSET\", \"SIZE\", \"TYPE\", \"DESCRIPTION\", \"VALUE\");\n if (instance != null) {\n VirtualMachine vm = VM.current();\n for (long off = 0; off < headerSize(); off += 4) {\n int word = vm.getInt(instance, off);\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", off, 4, \"\", \"(object header)\", toHex((word >> 0) & 0xFF) + \" \" + toHex((word >> 8) & 0xFF) + \" \" + toHex((word >> 16) & 0xFF) + \" \" + toHex((word >> 24) & 0xFF) + \" \" + \"(\" + toBinary((word >> 0) & 0xFF) + \" \" + toBinary((word >> 8) & 0xFF) + \" \" + toBinary((word >> 16) & 0xFF) + \" \" + toBinary((word >> 24) & 0xFF) + \") \" + \"(\" + word + \")\");\n }\n } else {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", 0, headerSize(), \"\", \"(object header)\", \"N/A\");\n }\n long nextFree = headerSize();\n long interLoss = 0;\n long exterLoss = 0;\n for (FieldLayout f : fields()) {\n if (f.offset() > nextFree) {\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", nextFree, (f.offset() - nextFree), \"\", \"(alignment/padding gap)\", \"N/A\");\n interLoss += (f.offset() - nextFree);\n }\n pw.printf(\" %6d %5d %\" + maxTypeLen + \"s %-\" + maxDescrLen + \"s %s%n\", f.offset(), f.size(), f.typeClass(), f.hostClass() + \".\" + f.name(), (instance != null) ? f.safeValue(instance) : \"N/A\");\n nextFree = f.offset() + f.size();\n }\n long sizeOf = (instance != null) ? VM.current().sizeOf(instance) : instanceSize();\n ;\n if (sizeOf != nextFree) {\n exterLoss = sizeOf - nextFree;\n pw.printf(\" %6d %5s %\" + maxTypeLen + \"s %s%n\", nextFree, exterLoss, \"\", \"(loss due to the next object alignment)\");\n }\n pw.printf(\"Instance size: %d bytes%n\", sizeOf);\n pw.printf(\"Space losses: %d bytes internal + %d bytes external = %d bytes total%n\", interLoss, exterLoss, interLoss + exterLoss);\n pw.close();\n return sw.toString();\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "focal_method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_old": "195-267", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "line_nums_new": "195-278", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8793103448275862, "branch_coverage_gold": 13.1498, "method_coverage_gold": 26.3345, "line_coverage_gold": 19.949, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "org/openjdk/jol/info/ClassLayout.parseClass:(Ljava/lang/Class;)Lorg/openjdk/jol/info/ClassLayout"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/ClassLayout.toPrintable:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/ClassLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.17", "java_version": 11} {"task_id": "openjdk_jol-0.17__c928a57_92eb5c6__SimpleQueueTest_4b2c8fea", "project_name": "openjdk_jol-0.17", "git_clone_url": "https://github.com/openjdk/jol.git", "rev1": "c928a570665ba203f0b1ba8b4a6f87bdf1c10232", "rev2": "92eb5c6cba2f32d8a34ee9e6ca42ed43108928bc", "rev1_date": "2020-10-14T06:53:45Z", "rev2_date": "2020-10-14T08:04:55Z", "git_diff_url": "https://github.com/openjdk/jol/compare/c928a570665ba203f0b1ba8b4a6f87bdf1c10232...92eb5c6cba2f32d8a34ee9e6ca42ed43108928bc", "test_file": "jol-core/src/test/java/org/openjdk/jol/util/SimpleQueueTest.java", "test_changes": [{"change_id": "128_openjdk_jol-0.17_c928a57_92eb5c6_SimpleQueueTest", "test_sign": "org/openjdk/jol/util/SimpleQueueTest.testSingle:()V", "class": "SimpleQueueTest", "method": "testSingle", "module": "jol-core", "junit_selector": "org.openjdk.jol.util.SimpleQueueTest#testSingle", "old_test_code": null, "new_test_code": "@Test\npublic void testSingle() {\n SimpleStack q = new SimpleStack<>();\n Object o1 = new Object();\n Assert.assertTrue(q.isEmpty());\n q.push(o1);\n Assert.assertFalse(q.isEmpty());\n Object r1 = q.pop();\n Assert.assertEquals(o1, r1);\n Assert.assertTrue(q.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-20"], "old_production_code": "", "new_production_code": "public boolean isEmpty() {\n return head == -1;\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "focal_method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.1011, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 0.0, "tfidf": 0.1155}}, {"dep_id": 2, "method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "50-56", "dependency_updated": "inserted", "score": 0.0483, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0177}}, {"dep_id": 0, "method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "58-63", "dependency_updated": "inserted", "score": 0.023, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0978}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.3282, "method_coverage_gold": 1.1461, "line_coverage_gold": 0.6302, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "129_openjdk_jol-0.17_c928a57_92eb5c6_SimpleQueueTest", "test_sign": "org/openjdk/jol/util/SimpleQueueTest.testOrder:()V", "class": "SimpleQueueTest", "method": "testOrder", "module": "jol-core", "junit_selector": "org.openjdk.jol.util.SimpleQueueTest#testOrder", "old_test_code": null, "new_test_code": "@Test\npublic void testOrder() {\n SimpleStack q = new SimpleStack<>();\n Object o1 = new Object();\n Object o2 = new Object();\n Assert.assertTrue(q.isEmpty());\n q.push(o1);\n q.push(o2);\n Assert.assertFalse(q.isEmpty());\n Object r2 = q.pop();\n Object r1 = q.pop();\n Assert.assertEquals(o1, r1);\n Assert.assertEquals(o2, r2);\n Assert.assertTrue(q.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-38"], "old_production_code": "", "new_production_code": "public E pop() {\n Object e = elements[head];\n elements[head] = null;\n head--;\n return (E) e;\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "focal_method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "58-63", "dependency_updated": "inserted", "score": 0.0882, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 0.0, "tfidf": 0.1248}}, {"dep_id": 1, "method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.0435, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.0, "class": 0.0, "tfidf": 0.0776}}, {"dep_id": 2, "method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "50-56", "dependency_updated": "inserted", "score": 0.0057, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0242}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.3282, "method_coverage_gold": 1.1461, "line_coverage_gold": 0.6302, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "130_openjdk_jol-0.17_c928a57_92eb5c6_SimpleQueueTest", "test_sign": "org/openjdk/jol/util/SimpleQueueTest.testGrow:()V", "class": "SimpleQueueTest", "method": "testGrow", "module": "jol-core", "junit_selector": "org.openjdk.jol.util.SimpleQueueTest#testGrow", "old_test_code": null, "new_test_code": "@Test\npublic void testGrow() {\n SimpleStack q = new SimpleStack<>();\n Object o1 = new Object();\n Object o2 = new Object();\n Object o3 = new Object();\n Assert.assertTrue(q.isEmpty());\n q.push(o1);\n q.push(o2);\n q.push(o3);\n Assert.assertFalse(q.isEmpty());\n Object r3 = q.pop();\n Object r2 = q.pop();\n Object r1 = q.pop();\n Assert.assertEquals(o1, r1);\n Assert.assertEquals(o2, r2);\n Assert.assertEquals(o3, r3);\n Assert.assertTrue(q.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-60"], "old_production_code": "", "new_production_code": "public E pop() {\n Object e = elements[head];\n elements[head] = null;\n head--;\n return (E) e;\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "focal_method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "58-63", "dependency_updated": "inserted", "score": 0.1327, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.25, "class": 0.0, "tfidf": 0.1391}}, {"dep_id": 1, "method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.0137, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0582}}, {"dep_id": 2, "method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "line_nums_new": "50-56", "dependency_updated": "inserted", "score": 0.0064, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0274}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4376, "method_coverage_gold": 1.4327, "line_coverage_gold": 0.7756, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/util/SimpleStack.pop:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.isEmpty:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/util/SimpleStack.push:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "jol-core/src/main/java/org/openjdk/jol/util/SimpleStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.17", "java_version": 11} {"task_id": "openjdk_jol-0.17__eca72fb_a2422eb__GraphLayoutImageTests_b3eeb465", "project_name": "openjdk_jol-0.17", "git_clone_url": "https://github.com/openjdk/jol.git", "rev1": "eca72fb4d714b1f244707422faf9c0ed427deb2f", "rev2": "a2422eb966d3d76ff47e2ace8b3fd1b90b323063", "rev1_date": "2017-09-22T08:27:17Z", "rev2_date": "2017-09-22T08:37:22Z", "git_diff_url": "https://github.com/openjdk/jol/compare/eca72fb4d714b1f244707422faf9c0ed427deb2f...a2422eb966d3d76ff47e2ace8b3fd1b90b323063", "test_file": "jol-core/src/test/java/org/openjdk/jol/info/GraphLayoutImageTests.java", "test_changes": [{"change_id": "117_openjdk_jol-0.17_eca72fb_a2422eb_GraphLayoutImageTests", "test_sign": "org/openjdk/jol/info/GraphLayoutImageTests.testNull:()V", "class": "GraphLayoutImageTests", "method": "testNull", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.GraphLayoutImageTests#testNull", "old_test_code": null, "new_test_code": "@Test\npublic void testNull() throws Exception {\n File file = File.createTempFile(\"jol\", \"imagetest\");\n try {\n GraphLayout.parseInstance(null).toImage(file.getAbsolutePath());\n Assert.fail();\n } catch (IllegalArgumentException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-19"], "old_production_code": "public static GraphLayout parseInstance(Object... roots) {\n GraphLayout data = new GraphLayout(roots);\n GraphWalker walker = new GraphWalker(roots);\n walker.addVisitor(data.visitor());\n walker.walk();\n return data;\n}", "new_production_code": "public static GraphLayout parseInstance(Object... roots) {\n if (roots == null) {\n throw new IllegalArgumentException(\"Roots are null\");\n }\n for (Object root : roots) {\n if (root == null) {\n throw new IllegalArgumentException(\"Some root is null\");\n }\n }\n GraphLayout data = new GraphLayout(roots);\n GraphWalker walker = new GraphWalker(roots);\n walker.addVisitor(data.visitor());\n walker.walk();\n return data;\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "focal_method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "52-58", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "52-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 0.1096, "method_coverage_gold": 0.9346, "line_coverage_gold": 0.152, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "118_openjdk_jol-0.17_eca72fb_a2422eb_GraphLayoutImageTests", "test_sign": "org/openjdk/jol/info/GraphLayoutImageTests.testNullVararg:()V", "class": "GraphLayoutImageTests", "method": "testNullVararg", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.GraphLayoutImageTests#testNullVararg", "old_test_code": null, "new_test_code": "@Test\npublic void testNullVararg() throws Exception {\n Object obj = new Object();\n File file = File.createTempFile(\"jol\", \"imagetest\");\n try {\n GraphLayout.parseInstance(obj, null).toImage(file.getAbsolutePath());\n Assert.fail();\n } catch (IllegalArgumentException e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-31"], "old_production_code": "public static GraphLayout parseInstance(Object... roots) {\n GraphLayout data = new GraphLayout(roots);\n GraphWalker walker = new GraphWalker(roots);\n walker.addVisitor(data.visitor());\n walker.walk();\n return data;\n}", "new_production_code": "public static GraphLayout parseInstance(Object... roots) {\n if (roots == null) {\n throw new IllegalArgumentException(\"Roots are null\");\n }\n for (Object root : roots) {\n if (root == null) {\n throw new IllegalArgumentException(\"Some root is null\");\n }\n }\n GraphLayout data = new GraphLayout(roots);\n GraphWalker walker = new GraphWalker(roots);\n walker.addVisitor(data.visitor());\n walker.walk();\n return data;\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "focal_method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "52-58", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "52-66", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.4386, "method_coverage_gold": 0.9346, "line_coverage_gold": 0.2533, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "119_openjdk_jol-0.17_eca72fb_a2422eb_GraphLayoutImageTests", "test_sign": "org/openjdk/jol/info/GraphLayoutImageTests.testSingleObject:()V", "class": "GraphLayoutImageTests", "method": "testSingleObject", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.GraphLayoutImageTests#testSingleObject", "old_test_code": null, "new_test_code": "@Test\npublic void testSingleObject() throws Exception {\n Object obj = new Object();\n File file = File.createTempFile(\"jol\", \"imagetest\");\n GraphLayout.parseInstance(obj).toImage(file.getAbsolutePath());\n Assert.assertTrue(file.exists());\n Assert.assertTrue(file.length() > 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-41"], "old_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress();\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "new_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress() + record(endAddress()).size();\n if (start == end) {\n end = start + 1;\n }\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "focal_method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "316-414", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "324-427", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9866666666666667, "branch_coverage_gold": 11.1842, "method_coverage_gold": 27.1028, "line_coverage_gold": 22.5431, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "120_openjdk_jol-0.17_eca72fb_a2422eb_GraphLayoutImageTests", "test_sign": "org/openjdk/jol/info/GraphLayoutImageTests.testSingleArray:()V", "class": "GraphLayoutImageTests", "method": "testSingleArray", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.GraphLayoutImageTests#testSingleArray", "old_test_code": null, "new_test_code": "@Test\npublic void testSingleArray() throws Exception {\n int[] array = new int[10];\n File file = File.createTempFile(\"jol\", \"imagetest\");\n GraphLayout.parseInstance(array).toImage(file.getAbsolutePath());\n Assert.assertTrue(file.exists());\n Assert.assertTrue(file.length() > 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-51"], "old_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress();\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "new_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress() + record(endAddress()).size();\n if (start == end) {\n end = start + 1;\n }\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "focal_method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "316-414", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "324-427", "dependency_updated": "updated", "score": 0.0906, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.0909, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "52-58", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "52-66", "dependency_updated": "updated", "score": 0.0796, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.1538, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9647058823529412, "branch_coverage_gold": 11.2939, "method_coverage_gold": 27.1028, "line_coverage_gold": 22.2898, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "121_openjdk_jol-0.17_eca72fb_a2422eb_GraphLayoutImageTests", "test_sign": "org/openjdk/jol/info/GraphLayoutImageTests.testMultipleArrays:()V", "class": "GraphLayoutImageTests", "method": "testMultipleArrays", "module": "jol-core", "junit_selector": "org.openjdk.jol.info.GraphLayoutImageTests#testMultipleArrays", "old_test_code": null, "new_test_code": "@Test\npublic void testMultipleArrays() throws Exception {\n int[] arr1 = new int[10];\n int[] arr2 = new int[10];\n File file = File.createTempFile(\"jol\", \"imagetest\");\n GraphLayout.parseInstance(arr1, arr2).toImage(file.getAbsolutePath());\n Assert.assertTrue(file.exists());\n Assert.assertTrue(file.length() > 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-62"], "old_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress();\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "new_production_code": "public void toImage(String fileName) throws IOException {\n if (addresses().isEmpty())\n return;\n long start = startAddress();\n long end = endAddress() + record(endAddress()).size();\n if (start == end) {\n end = start + 1;\n }\n final int WIDTH = 1000;\n final int HEIGHT = 320;\n final int GRAPH_HEIGHT = 100;\n final int SCALE_WIDTH = 30;\n final int EXT_PAD = 50;\n final int PAD = 20;\n BufferedImage image = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g = image.createGraphics();\n g.setColor(Color.WHITE);\n g.fillRect(0, 0, WIDTH, HEIGHT);\n int minDepth = Integer.MAX_VALUE;\n int maxDepth = Integer.MIN_VALUE;\n for (long addr : addresses()) {\n GraphPathRecord p = record(addr);\n minDepth = Math.min(minDepth, p.depth());\n maxDepth = Math.max(maxDepth, p.depth());\n }\n Multiset depths = new Multiset();\n for (long addr : addresses()) {\n GraphPathRecord r = record(addr);\n depths.add(r.depth(), r.size());\n }\n int lastX = 0;\n for (long addr : addresses()) {\n long size = record(addr).size();\n int x1 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr - start) / (end - start));\n int x2 = SCALE_WIDTH + EXT_PAD + (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * (addr + size - start) / (end - start));\n x1 = Math.max(x1, lastX);\n x2 = Math.max(x2, lastX);\n float relDepth = 1.0f * (record(addr).depth() - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(x1, EXT_PAD, x2 - x1, GRAPH_HEIGHT);\n }\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n int y1 = HEIGHT * (depth - minDepth) / (maxDepth - minDepth + 1);\n int y2 = HEIGHT * (depth + 1 - minDepth) / (maxDepth - minDepth + 1);\n g.fillRect(0, y1, SCALE_WIDTH, y2 - y1);\n }\n lastX = SCALE_WIDTH + EXT_PAD;\n for (int depth = minDepth; depth <= maxDepth; depth++) {\n int w = (int) ((WIDTH - SCALE_WIDTH - EXT_PAD * 2) * depths.count(depth) / (end - start));\n float relDepth = 1.0f * (depth - minDepth) / (maxDepth - minDepth + 1);\n g.setColor(Color.getHSBColor(relDepth, 1.0f, 0.9f));\n g.fillRect(lastX, GRAPH_HEIGHT + EXT_PAD + PAD, w, GRAPH_HEIGHT);\n lastX += w;\n }\n g.setColor(Color.BLACK);\n g.setStroke(new BasicStroke(2.0f));\n g.drawRect(SCALE_WIDTH + EXT_PAD, EXT_PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.drawRect(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT + EXT_PAD + PAD, WIDTH - EXT_PAD * 2 - SCALE_WIDTH, GRAPH_HEIGHT);\n g.setStroke(new BasicStroke(1.0f));\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD);\n g.drawLine(SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, SCALE_WIDTH + EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n g.drawLine(WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD - 5, WIDTH - EXT_PAD, GRAPH_HEIGHT * 2 + EXT_PAD + PAD + PAD + 5);\n Font font = new Font(\"Serif\", Font.PLAIN, 18);\n g.setFont(font);\n String labelDense = (end - start) / 1024 + \" Kb\";\n g.setBackground(Color.WHITE);\n g.setColor(Color.BLACK);\n g.drawString(labelDense, WIDTH / 2 - 50, 2 * GRAPH_HEIGHT + EXT_PAD + 2 * PAD + 20);\n g.drawString(String.format(\"%s\", description), SCALE_WIDTH + EXT_PAD, 30);\n AffineTransform orig = g.getTransform();\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.drawString(\"Actual:\", SCALE_WIDTH + EXT_PAD - 5, GRAPH_HEIGHT + EXT_PAD);\n g.setTransform(orig);\n g.rotate(-Math.toRadians(90.0), SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.drawString(\"Dense:\", SCALE_WIDTH + EXT_PAD - 5, 2 * GRAPH_HEIGHT + EXT_PAD + PAD);\n g.setTransform(orig);\n ImageIO.write(image, \"png\", new File(fileName));\n}", "focal_file_path": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "focal_method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "316-414", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "324-427", "dependency_updated": "updated", "score": 0.0992, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1429, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_old": "52-58", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "line_nums_new": "52-66", "dependency_updated": "updated", "score": 0.0661, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.0714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9647058823529412, "branch_coverage_gold": 11.5132, "method_coverage_gold": 27.1028, "line_coverage_gold": 22.3404, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openjdk/jol/info/GraphLayout.parseInstance:([Ljava/lang/Object;)Lorg/openjdk/jol/info/GraphLayout", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/openjdk/jol/info/GraphLayout.toImage:(Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "file_path_new": "jol-core/src/main/java/org/openjdk/jol/info/GraphLayout.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.17", "java_version": 11} {"task_id": "openscoring_openscoring-2.2.1__3a0c213_74089e4__CsvUtilTest_3b75a1e6", "project_name": "openscoring_openscoring-2.2.1", "git_clone_url": "https://github.com/openscoring/openscoring.git", "rev1": "3a0c213647590d45be6707d62048f08b7f0c7dc1", "rev2": "74089e4e63e8cfef6930ca00b761b322e15a9ba0", "rev1_date": "2019-03-05T09:28:43Z", "rev2_date": "2019-03-05T10:39:40Z", "git_diff_url": "https://github.com/openscoring/openscoring/compare/3a0c213647590d45be6707d62048f08b7f0c7dc1...74089e4e63e8cfef6930ca00b761b322e15a9ba0", "test_file": "openscoring-service/src/test/java/org/openscoring/service/providers/CsvUtilTest.java", "test_changes": [{"change_id": "26_openscoring_openscoring-2.2.1_3a0c213_74089e4_CsvUtilTest", "test_sign": "org/openscoring/service/providers/CsvUtilTest.getFormat:()V", "class": "CsvUtilTest", "method": "getFormat", "module": "openscoring-service", "junit_selector": "org.openscoring.service.providers.CsvUtilTest#getFormat", "old_test_code": null, "new_test_code": "@Test\npublic void getFormat() throws IOException {\n CsvPreference first;\n CsvPreference second;\n String csv = \"1\\tone\\n\" + \"2\\ttwo\\n\" + \"3\\tthree\";\n try (BufferedReader reader = new BufferedReader(new StringReader(csv))) {\n first = CsvUtil.getFormat(reader);\n second = CsvUtil.getFormat(reader);\n }\n assertNotSame(first.getEncoder(), second.getEncoder());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-48"], "old_production_code": "", "new_production_code": "static public CsvPreference getFormat(BufferedReader reader) throws IOException {\n reader.mark(10 * 1024);\n for (int i = 0; i < CsvUtil.DELIMITERS.length; i++) {\n char delimiter = CsvUtil.DELIMITERS[i];\n try {\n CsvPreference format = createFormat(delimiter, '\\\"');\n if (checkFormat(reader, format)) {\n return format;\n }\n } finally {\n reader.reset();\n }\n }\n throw new IOException(\"Unrecognized CSV format\");\n}", "focal_file_path": "openscoring-service/src/main/java/org/openscoring/service/providers/CsvUtil.java", "focal_method_sign": "org/openscoring/service/providers/CsvUtil.getFormat:(Ljava/io/BufferedReader;)Lorg/supercsv/prefs/CsvPreference", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/openscoring/service/providers/CsvUtil.getFormat:(Ljava/io/BufferedReader;)Lorg/supercsv/prefs/CsvPreference", "file_path_old": null, "line_nums_old": null, "file_path_new": "openscoring-service/src/main/java/org/openscoring/service/providers/CsvUtil.java", "line_nums_new": "74-93", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 6.0914, "method_coverage_gold": 4.2553, "line_coverage_gold": 3.4188, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/openscoring/service/providers/CsvUtil.getFormat:(Ljava/io/BufferedReader;)Lorg/supercsv/prefs/CsvPreference"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/openscoring/service/providers/CsvUtil.getFormat:(Ljava/io/BufferedReader;)Lorg/supercsv/prefs/CsvPreference", "change_type": "ADD", "file_path_old": null, "file_path_new": "openscoring-service/src/main/java/org/openscoring/service/providers/CsvUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.2.1", "java_version": 11} {"task_id": "ozlerhakan_poiji-v5.2.0__99521d7_a4c473c__IgnoreFileExtensionTest_785f1c93", "project_name": "ozlerhakan_poiji-v5.2.0", "git_clone_url": "https://github.com/ozlerhakan/poiji.git", "rev1": "99521d79a309bb437b4e5476d6950a09fab21609", "rev2": "a4c473c67365b2b38446acbc7ec4e08c395c8b4e", "rev1_date": "2025-11-15T20:23:34Z", "rev2_date": "2025-11-15T20:28:53Z", "git_diff_url": "https://github.com/ozlerhakan/poiji/compare/99521d79a309bb437b4e5476d6950a09fab21609...a4c473c67365b2b38446acbc7ec4e08c395c8b4e", "test_file": "src/test/java/com/poiji/deserialize/IgnoreFileExtensionTest.java", "test_changes": [{"change_id": "1701_ozlerhakan_poiji-v5.2.0_99521d7_a4c473c_IgnoreFileExtensionTest", "test_sign": "com/poiji/deserialize/IgnoreFileExtensionTest.shouldReadFileWithInvalidExtensionWhenIgnoreFileExtensionIsEnabled:()V", "class": "IgnoreFileExtensionTest", "method": "shouldReadFileWithInvalidExtensionWhenIgnoreFileExtensionIsEnabled", "module": "", "junit_selector": "com.poiji.deserialize.IgnoreFileExtensionTest#shouldReadFileWithInvalidExtensionWhenIgnoreFileExtensionIsEnabled", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReadFileWithInvalidExtensionWhenIgnoreFileExtensionIsEnabled() {\n File sourceFile = new File(\"src/test/resources/employees.xlsx\");\n File targetFile = new File(\"src/test/resources/employees_invalid.dat\");\n if (!targetFile.exists()) {\n try {\n java.nio.file.Files.copy(sourceFile.toPath(), targetFile.toPath());\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to create test file\", e);\n }\n }\n PoijiOptions options = PoijiOptions.PoijiOptionsBuilder.settings().ignoreFileExtension(true).build();\n List employees = Poiji.fromExcel(targetFile, Employee.class, options);\n assertThat(employees, notNullValue());\n assertThat(employees.size(), is(3));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-74"], "old_production_code": "", "new_production_code": "public PoijiOptionsBuilder ignoreFileExtension(boolean ignoreFileExtension) {\n this.ignoreFileExtension = ignoreFileExtension;\n return this;\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "791-794", "dependency_updated": "inserted", "score": 0.2411, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2879, "class": 0.0, "tfidf": 0.0732}}, {"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "455-486", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "466-498", "dependency_updated": "updated", "score": 0.1544, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0606, "class": 0.0, "tfidf": 0.0136}}], "coverage_gold": 1.0, "branch_coverage_gold": 21.2803, "method_coverage_gold": 35.376, "line_coverage_gold": 30.2869, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/bind/Poiji.fromExcel:(Ljava/io/File;Ljava/lang/Class;Lcom/poiji/option/PoijiOptions;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1702_ozlerhakan_poiji-v5.2.0_99521d7_a4c473c_IgnoreFileExtensionTest", "test_sign": "com/poiji/deserialize/IgnoreFileExtensionTest.shouldReadFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled:()V", "class": "IgnoreFileExtensionTest", "method": "shouldReadFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled", "module": "", "junit_selector": "com.poiji.deserialize.IgnoreFileExtensionTest#shouldReadFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReadFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled() {\n PoijiOptions options = PoijiOptions.PoijiOptionsBuilder.settings().ignoreFileExtension(true).build();\n List employees = Poiji.fromExcel(new File(\"src/test/resources/employees_no_extension\"), Employee.class, options);\n assertThat(employees, notNullValue());\n assertThat(employees.size(), is(3));\n Employee firstEmployee = employees.get(0);\n assertThat(firstEmployee.getEmployeeId(), is(123923L));\n assertThat(firstEmployee.getName(), is(\"Joe\"));\n assertThat(firstEmployee.getSurname(), is(\"Doe\"));\n assertThat(firstEmployee.getAge(), is(30));\n assertThat(firstEmployee.isSingle(), is(true));\n assertThat(firstEmployee.getBirthday(), is(\"4/9/1987\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-48"], "old_production_code": "", "new_production_code": "public PoijiOptionsBuilder ignoreFileExtension(boolean ignoreFileExtension) {\n this.ignoreFileExtension = ignoreFileExtension;\n return this;\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "791-794", "dependency_updated": "inserted", "score": 0.2413, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3115, "class": 0.0, "tfidf": 0.0576}}, {"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "455-486", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "466-498", "dependency_updated": "updated", "score": 0.1545, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0656, "class": 0.0, "tfidf": 0.0107}}], "coverage_gold": 1.0, "branch_coverage_gold": 21.2803, "method_coverage_gold": 35.376, "line_coverage_gold": 30.2869, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/deserialize/model/byid/Employee.getSurname:()Ljava/lang/String", "com/poiji/deserialize/model/byid/Employee.getName:()Ljava/lang/String", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/deserialize/model/byid/Employee.getAge:()I", "com/poiji/deserialize/model/byid/Employee.getBirthday:()Ljava/lang/String", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/deserialize/model/byid/Employee.getEmployeeId:()J", "com/poiji/deserialize/model/byid/Employee.isSingle:()Z", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.2.0", "java_version": 11} {"task_id": "ozlerhakan_poiji-v5.2.0__99521d7_c25eb56__IgnoreFileExtensionTest_9b80e1a9", "project_name": "ozlerhakan_poiji-v5.2.0", "git_clone_url": "https://github.com/ozlerhakan/poiji.git", "rev1": "99521d79a309bb437b4e5476d6950a09fab21609", "rev2": "c25eb56bce2e3b736f4ee89a53bcb793ccbb0b5f", "rev1_date": "2025-11-15T20:23:34Z", "rev2_date": "2025-11-15T20:33:49Z", "git_diff_url": "https://github.com/ozlerhakan/poiji/compare/99521d79a309bb437b4e5476d6950a09fab21609...c25eb56bce2e3b736f4ee89a53bcb793ccbb0b5f", "test_file": "src/test/java/com/poiji/deserialize/IgnoreFileExtensionTest.java", "test_changes": [{"change_id": "1704_ozlerhakan_poiji-v5.2.0_99521d7_c25eb56_IgnoreFileExtensionTest", "test_sign": "com/poiji/deserialize/IgnoreFileExtensionTest.shouldReadPropertiesFromFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled:()V", "class": "IgnoreFileExtensionTest", "method": "shouldReadPropertiesFromFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled", "module": "", "junit_selector": "com.poiji.deserialize.IgnoreFileExtensionTest#shouldReadPropertiesFromFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReadPropertiesFromFileWithNoExtensionWhenIgnoreFileExtensionIsEnabled() {\n PoijiOptions options = PoijiOptions.PoijiOptionsBuilder.settings().ignoreFileExtension(true).build();\n PropertyEntity properties = Poiji.fromExcelProperties(new File(\"src/test/resources/core_properties_no_extension\"), PropertyEntity.class, options);\n assertThat(properties, notNullValue());\n assertThat(properties.getTitle(), is(\"TestTitle\"));\n assertThat(properties.getCategory(), is(\"TestCategory\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-99"], "old_production_code": "", "new_production_code": "public PoijiOptionsBuilder ignoreFileExtension(boolean ignoreFileExtension) {\n this.ignoreFileExtension = ignoreFileExtension;\n return this;\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "791-794", "dependency_updated": "inserted", "score": 0.2444, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2533, "class": 0.0, "tfidf": 0.1114}}, {"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "455-486", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "466-498", "dependency_updated": "updated", "score": 0.1549, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0533, "class": 0.0, "tfidf": 0.0209}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.9792, "method_coverage_gold": 16.7131, "line_coverage_gold": 13.5424, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["a4c473c67365b2b38446acbc7ec4e08c395c8b4e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/bind/Poiji.fromExcelProperties:(Ljava/io/File;Ljava/lang/Class;Lcom/poiji/option/PoijiOptions;)Ljava/lang/Object", "com/poiji/deserialize/property/model/PropertyEntity.getCategory:()Ljava/lang/String", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/deserialize/property/model/PropertyEntity.getTitle:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreFileExtension:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.2.0", "java_version": 11} {"task_id": "ozlerhakan_poiji-v5.2.0__9c00c42_6d931d7__IgnoreWhitespacesTest_b9ecca04", "project_name": "ozlerhakan_poiji-v5.2.0", "git_clone_url": "https://github.com/ozlerhakan/poiji.git", "rev1": "9c00c42fceb0f231cf7ba0cfb4b2a59a4aea7e63", "rev2": "6d931d78397dc48c74cf55aaf11f3a2e3271a8a9", "rev1_date": "2020-10-11T15:54:27Z", "rev2_date": "2020-10-11T16:05:24Z", "git_diff_url": "https://github.com/ozlerhakan/poiji/compare/9c00c42fceb0f231cf7ba0cfb4b2a59a4aea7e63...6d931d78397dc48c74cf55aaf11f3a2e3271a8a9", "test_file": "src/test/java/com/poiji/deserialize/IgnoreWhitespacesTest.java", "test_changes": [{"change_id": "1742_ozlerhakan_poiji-v5.2.0_9c00c42_6d931d7_IgnoreWhitespacesTest", "test_sign": "com/poiji/deserialize/IgnoreWhitespacesTest.ignoreWhitespaceColumnNames:()V", "class": "IgnoreWhitespacesTest", "method": "ignoreWhitespaceColumnNames", "module": "", "junit_selector": "com.poiji.deserialize.IgnoreWhitespacesTest#ignoreWhitespaceColumnNames", "old_test_code": null, "new_test_code": "@Test\npublic void ignoreWhitespaceColumnNames() {\n List organisations = Poiji.fromExcel(new File(path), OrgWithUnknownCellsByName.class, PoijiOptions.PoijiOptionsBuilder.settings().sheetName(\"Organisation\").caseInsensitive(true).ignoreWhitespaces(true).build());\n assertThat(organisations, notNullValue());\n assertThat(organisations.size(), is(2));\n OrgWithUnknownCellsByName firstRow = organisations.stream().filter(org -> org.getId().equals(\"CrEaTe\")).findFirst().get();\n assertThat(firstRow.getUnknownCells().size(), is(1));\n assertThat(firstRow.getUnknownCells().get(\"Region\"), is(\"EMEA\"));\n OrgWithUnknownCellsByName secondRow = organisations.stream().filter(org -> org.getId().equals(\"8d9e6430-8626-4556-8004-079085d2df2d\")).findFirst().get();\n assertThat(secondRow.getUnknownCells().size(), is(1));\n assertThat(secondRow.getUnknownCells().get(\"Region\"), is(\"NA\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-61"], "old_production_code": "", "new_production_code": "public PoijiOptionsBuilder ignoreWhitespaces(final boolean ignoreWhitespaces) {\n this.ignoreWhitespaces = ignoreWhitespaces;\n return this;\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreWhitespaces:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreWhitespaces:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "560-563", "dependency_updated": "inserted", "score": 0.2937, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6296, "class": 0.0, "tfidf": 0.0576}}, {"dep_id": 1, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "349-373", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "360-385", "dependency_updated": "updated", "score": 0.0869, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0741, "class": 0.0, "tfidf": 0.0173}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.2559, "method_coverage_gold": 45.3287, "line_coverage_gold": 45.1264, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/option/PoijiOptions$PoijiOptionsBuilder.caseInsensitive:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.sheetName:(Ljava/lang/String;)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreWhitespaces:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/deserialize/model/byname/OrgWithUnknownCellsByName.getUnknownCells:()Ljava/util/Map", "com/poiji/bind/Poiji.fromExcel:(Ljava/io/File;Ljava/lang/Class;Lcom/poiji/option/PoijiOptions;)Ljava/util/List", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.ignoreWhitespaces:(Z)Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.2.0", "java_version": 11} {"task_id": "ozlerhakan_poiji-v5.2.0__e16634b_3501ffc__MandatoryNamedColumnsExceptionTest_751044ee", "project_name": "ozlerhakan_poiji-v5.2.0", "git_clone_url": "https://github.com/ozlerhakan/poiji.git", "rev1": "e16634b5eaaaccf55cc306eeb5c48b72d71a5884", "rev2": "3501ffcb862e57600824374233e9743087e32e16", "rev1_date": "2021-11-07T06:10:06Z", "rev2_date": "2021-11-07T10:14:26Z", "git_diff_url": "https://github.com/ozlerhakan/poiji/compare/e16634b5eaaaccf55cc306eeb5c48b72d71a5884...3501ffcb862e57600824374233e9743087e32e16", "test_file": "src/test/java/com/poiji/deserialize/MandatoryNamedColumnsExceptionTest.java", "test_changes": [{"change_id": "1739_ozlerhakan_poiji-v5.2.0_e16634b_3501ffc_MandatoryNamedColumnsExceptionTest", "test_sign": "com/poiji/deserialize/MandatoryNamedColumnsExceptionTest.testExcelMandatoryColumn:()V", "class": "MandatoryNamedColumnsExceptionTest", "method": "testExcelMandatoryColumn", "module": "", "junit_selector": "com.poiji.deserialize.MandatoryNamedColumnsExceptionTest#testExcelMandatoryColumn", "old_test_code": null, "new_test_code": "@Test(expected = HeaderMissingException.class)\npublic void testExcelMandatoryColumn() {\n Poiji.fromExcel(new File(path), PersonByNameWithMissingColumn.class, PoijiOptions.PoijiOptionsBuilder.settings().build());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-36"], "old_production_code": "public PoijiOptions build() {\n return new PoijiOptions().setSkip(skip + headerStart + headerCount - 1).setPassword(password).setPreferNullOverDefault(preferNullOverDefault).setDatePattern(datePattern).setDateFormatter(dateFormatter).setDateTimeFormatter(dateTimeFormatter).setSheetIndex(sheetIndex).setSheetName(sheetName).setIgnoreHiddenSheets(ignoreHiddenSheets).setTrimCellValue(trimCellValue).setDateRegex(dateRegex).setDateTimeRegex(dateTimeRegex).setDateLenient(dateLenient).setHeaderStart(headerStart).setHeaderCount(headerCount).setCasting(casting).setLimit(limit).setPoijiLogCellFormat(cellFormat).setPoijiNumberFormat(numberFormat).setCaseInsensitive(caseInsensitive).setIgnoreWhitespaces(ignoreWhitespaces).setNamedHeaderMandatory(namedHeaderMandatory).disableXLSXNumberCellFormat(disabledXLSXNumberCellFormat).setListDelimiter(listDelimiter).setFormatting(formatting).setLocale(locale).setRawData(rawData);\n}", "new_production_code": "public PoijiOptions build() {\n return new PoijiOptions().setSkip(skip + headerStart + headerCount - 1).setPassword(password).setPreferNullOverDefault(preferNullOverDefault).setDatePattern(datePattern).setDateFormatter(dateFormatter).setDateTimeFormatter(dateTimeFormatter).setSheetIndex(sheetIndex).setSheetName(sheetName).setIgnoreHiddenSheets(ignoreHiddenSheets).setTrimCellValue(trimCellValue).setDateRegex(dateRegex).setDateTimeRegex(dateTimeRegex).setDateLenient(dateLenient).setHeaderStart(headerStart).setHeaderCount(headerCount).setCasting(casting).setLimit(limit).setPoijiLogCellFormat(cellFormat).setPoijiNumberFormat(numberFormat).setCaseInsensitive(caseInsensitive).setIgnoreWhitespaces(ignoreWhitespaces).disableXLSXNumberCellFormat(disabledXLSXNumberCellFormat).setListDelimiter(listDelimiter).setFormatting(formatting).setLocale(locale).setRawData(rawData);\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "421-451", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "410-439", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9354838709677419, "branch_coverage_gold": 27.6256, "method_coverage_gold": 38.7821, "line_coverage_gold": 37.7853, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/bind/Poiji.fromExcel:(Ljava/io/File;Ljava/lang/Class;Lcom/poiji/option/PoijiOptions;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.2.0", "java_version": 11} {"task_id": "ozlerhakan_poiji-v5.2.0__e16634b_3501ffc__MandatoryNamedColumnsTest_2d4b4b81", "project_name": "ozlerhakan_poiji-v5.2.0", "git_clone_url": "https://github.com/ozlerhakan/poiji.git", "rev1": "e16634b5eaaaccf55cc306eeb5c48b72d71a5884", "rev2": "3501ffcb862e57600824374233e9743087e32e16", "rev1_date": "2021-11-07T06:10:06Z", "rev2_date": "2021-11-07T10:14:26Z", "git_diff_url": "https://github.com/ozlerhakan/poiji/compare/e16634b5eaaaccf55cc306eeb5c48b72d71a5884...3501ffcb862e57600824374233e9743087e32e16", "test_file": "src/test/java/com/poiji/deserialize/MandatoryNamedColumnsTest.java", "test_changes": [{"change_id": "1738_ozlerhakan_poiji-v5.2.0_e16634b_3501ffc_MandatoryNamedColumnsTest", "test_sign": "com/poiji/deserialize/MandatoryNamedColumnsTest.testExcelSuccessOptionalColumn:()V", "class": "MandatoryNamedColumnsTest", "method": "testExcelSuccessOptionalColumn", "module": "", "junit_selector": "com.poiji.deserialize.MandatoryNamedColumnsTest#testExcelSuccessOptionalColumn", "old_test_code": null, "new_test_code": "@Test\npublic void testExcelSuccessOptionalColumn() {\n Poiji.fromExcel(new File(path), PersonByNameOptionalColumn.class, PoijiOptions.PoijiOptionsBuilder.settings().build());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-35"], "old_production_code": "public PoijiOptions build() {\n return new PoijiOptions().setSkip(skip + headerStart + headerCount - 1).setPassword(password).setPreferNullOverDefault(preferNullOverDefault).setDatePattern(datePattern).setDateFormatter(dateFormatter).setDateTimeFormatter(dateTimeFormatter).setSheetIndex(sheetIndex).setSheetName(sheetName).setIgnoreHiddenSheets(ignoreHiddenSheets).setTrimCellValue(trimCellValue).setDateRegex(dateRegex).setDateTimeRegex(dateTimeRegex).setDateLenient(dateLenient).setHeaderStart(headerStart).setHeaderCount(headerCount).setCasting(casting).setLimit(limit).setPoijiLogCellFormat(cellFormat).setPoijiNumberFormat(numberFormat).setCaseInsensitive(caseInsensitive).setIgnoreWhitespaces(ignoreWhitespaces).setNamedHeaderMandatory(namedHeaderMandatory).disableXLSXNumberCellFormat(disabledXLSXNumberCellFormat).setListDelimiter(listDelimiter).setFormatting(formatting).setLocale(locale).setRawData(rawData);\n}", "new_production_code": "public PoijiOptions build() {\n return new PoijiOptions().setSkip(skip + headerStart + headerCount - 1).setPassword(password).setPreferNullOverDefault(preferNullOverDefault).setDatePattern(datePattern).setDateFormatter(dateFormatter).setDateTimeFormatter(dateTimeFormatter).setSheetIndex(sheetIndex).setSheetName(sheetName).setIgnoreHiddenSheets(ignoreHiddenSheets).setTrimCellValue(trimCellValue).setDateRegex(dateRegex).setDateTimeRegex(dateTimeRegex).setDateLenient(dateLenient).setHeaderStart(headerStart).setHeaderCount(headerCount).setCasting(casting).setLimit(limit).setPoijiLogCellFormat(cellFormat).setPoijiNumberFormat(numberFormat).setCaseInsensitive(caseInsensitive).setIgnoreWhitespaces(ignoreWhitespaces).disableXLSXNumberCellFormat(disabledXLSXNumberCellFormat).setListDelimiter(listDelimiter).setFormatting(formatting).setLocale(locale).setRawData(rawData);\n}", "focal_file_path": "src/main/java/com/poiji/option/PoijiOptions.java", "focal_method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_old": "421-451", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "line_nums_new": "410-439", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 36.3014, "method_coverage_gold": 44.5513, "line_coverage_gold": 44.8014, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/poiji/option/PoijiOptions$PoijiOptionsBuilder.settings:()Lcom/poiji/option/PoijiOptions$PoijiOptionsBuilder", "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "com/poiji/bind/Poiji.fromExcel:(Ljava/io/File;Ljava/lang/Class;Lcom/poiji/option/PoijiOptions;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/poiji/option/PoijiOptions$PoijiOptionsBuilder.build:()Lcom/poiji/option/PoijiOptions", "change_type": "UPDATE", "file_path_old": "src/main/java/com/poiji/option/PoijiOptions.java", "file_path_new": "src/main/java/com/poiji/option/PoijiOptions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.2.0", "java_version": 11} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__2328682_3e5bdcc__PageTest_91df917a", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "23286824152c686b80a0dd8c364d632e58eb55bc", "rev2": "3e5bdcc68bbd6d8b6285054d1352f06c062b54ba", "rev1_date": "2020-07-21T13:45:38Z", "rev2_date": "2020-07-21T14:43:43Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/23286824152c686b80a0dd8c364d632e58eb55bc...3e5bdcc68bbd6d8b6285054d1352f06c062b54ba", "test_file": "src/test/java/com/github/pagehelper/test/reasonable/PageTest.java", "test_changes": [{"change_id": "1665_pagehelper_Mybatis-PageHelper-v6.1.1_2328682_3e5bdcc_PageTest", "test_sign": "com/github/pagehelper/test/reasonable/PageTest.testMapperWithStartPageAndPageSizeZeroFalse:()V", "class": "PageTest", "method": "testMapperWithStartPageAndPageSizeZeroFalse", "module": "", "junit_selector": "com.github.pagehelper.test.reasonable.PageTest#testMapperWithStartPageAndPageSizeZeroFalse", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPageAndPageSizeZeroFalse() {\n SqlSession sqlSession = MybatisReasonableHelper.getSqlSession();\n UserMapper userMapper = sqlSession.getMapper(UserMapper.class);\n try {\n PageHelper.startPage(1, 0, true, true, false);\n List list = userMapper.selectAll();\n PageInfo page = new PageInfo(list);\n assertEquals(0, list.size());\n assertEquals(0, page.getStartRow());\n assertEquals(1, page.getPageNum());\n assertEquals(183, page.getTotal());\n PageHelper.startPage(1, Integer.MAX_VALUE, true, true, false);\n list = userMapper.selectAll();\n page = new PageInfo(list);\n assertEquals(183, list.size());\n assertEquals(1, page.getStartRow());\n assertEquals(1, page.getPageNum());\n assertEquals(183, page.getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["142-167"], "old_production_code": "@Override\npublic Object intercept(Invocation invocation) throws Throwable {\n try {\n Object[] args = invocation.getArgs();\n MappedStatement ms = (MappedStatement) args[0];\n Object parameter = args[1];\n RowBounds rowBounds = (RowBounds) args[2];\n ResultHandler resultHandler = (ResultHandler) args[3];\n Executor executor = (Executor) invocation.getTarget();\n CacheKey cacheKey;\n BoundSql boundSql;\n if (args.length == 4) {\n boundSql = ms.getBoundSql(parameter);\n cacheKey = executor.createCacheKey(ms, parameter, rowBounds, boundSql);\n } else {\n cacheKey = (CacheKey) args[4];\n boundSql = (BoundSql) args[5];\n }\n checkDialectExists();\n List resultList;\n if (!dialect.skip(ms, parameter, rowBounds)) {\n if (dialect.beforeCount(ms, parameter, rowBounds)) {\n Long count = count(executor, ms, parameter, rowBounds, resultHandler, boundSql);\n if (!dialect.afterCount(count, parameter, rowBounds)) {\n return dialect.afterPage(new ArrayList(), parameter, rowBounds);\n }\n }\n resultList = ExecutorUtil.pageQuery(dialect, executor, ms, parameter, rowBounds, resultHandler, boundSql, cacheKey);\n } else {\n resultList = executor.query(ms, parameter, rowBounds, resultHandler, cacheKey, boundSql);\n }\n return dialect.afterPage(resultList, parameter, rowBounds);\n } finally {\n if (dialect != null) {\n dialect.afterAll();\n }\n }\n}", "new_production_code": "@Override\npublic Object intercept(Invocation invocation) throws Throwable {\n try {\n Object[] args = invocation.getArgs();\n MappedStatement ms = (MappedStatement) args[0];\n Object parameter = args[1];\n RowBounds rowBounds = (RowBounds) args[2];\n ResultHandler resultHandler = (ResultHandler) args[3];\n Executor executor = (Executor) invocation.getTarget();\n CacheKey cacheKey;\n BoundSql boundSql;\n if (args.length == 4) {\n boundSql = ms.getBoundSql(parameter);\n cacheKey = executor.createCacheKey(ms, parameter, rowBounds, boundSql);\n } else {\n cacheKey = (CacheKey) args[4];\n boundSql = (BoundSql) args[5];\n }\n checkDialectExists();\n List resultList;\n if (!dialect.skip(ms, parameter, rowBounds)) {\n if (dialect.beforeCount(ms, parameter, rowBounds)) {\n Long count = count(executor, ms, parameter, rowBounds, null, boundSql);\n if (!dialect.afterCount(count, parameter, rowBounds)) {\n return dialect.afterPage(new ArrayList(), parameter, rowBounds);\n }\n }\n resultList = ExecutorUtil.pageQuery(dialect, executor, ms, parameter, rowBounds, resultHandler, boundSql, cacheKey);\n } else {\n resultList = executor.query(ms, parameter, rowBounds, resultHandler, cacheKey, boundSql);\n }\n return dialect.afterPage(resultList, parameter, rowBounds);\n } finally {\n if (dialect != null) {\n dialect.afterAll();\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pagehelper/PageInterceptor.java", "focal_method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "file_path_old": "src/main/java/com/github/pagehelper/PageInterceptor.java", "line_nums_old": "68-116", "file_path_new": "src/main/java/com/github/pagehelper/PageInterceptor.java", "line_nums_new": "68-116", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8787878787878788, "branch_coverage_gold": 19.0341, "method_coverage_gold": 32.899, "line_coverage_gold": 26.9784, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["a93195e1c0833d5014aa59d0584dbf15c40eabae"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/PageInfo.getPageNum:()I", "com/github/pagehelper/PageSerializable.getTotal:()J", "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/PageInfo.getStartRow:()J", "com/github/pagehelper/util/MybatisReasonableHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/page/PageMethod.startPage:(IIZLjava/lang/Boolean;Ljava/lang/Boolean;)Lcom/github/pagehelper/Page"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pagehelper/PageInterceptor.java", "file_path_new": "src/main/java/com/github/pagehelper/PageInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__2328682_a93195e__PageTest_ae7ba460", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "23286824152c686b80a0dd8c364d632e58eb55bc", "rev2": "a93195e1c0833d5014aa59d0584dbf15c40eabae", "rev1_date": "2020-07-21T13:45:38Z", "rev2_date": "2020-07-21T14:21:36Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/23286824152c686b80a0dd8c364d632e58eb55bc...a93195e1c0833d5014aa59d0584dbf15c40eabae", "test_file": "src/test/java/com/github/pagehelper/test/reasonable/PageTest.java", "test_changes": [{"change_id": "1655_pagehelper_Mybatis-PageHelper-v6.1.1_2328682_a93195e_PageTest", "test_sign": "com/github/pagehelper/test/reasonable/PageTest.testMapperWithStartPageAndReasonableFalse:()V", "class": "PageTest", "method": "testMapperWithStartPageAndReasonableFalse", "module": "", "junit_selector": "com.github.pagehelper.test.reasonable.PageTest#testMapperWithStartPageAndReasonableFalse", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPageAndReasonableFalse() {\n SqlSession sqlSession = MybatisReasonableHelper.getSqlSession();\n UserMapper userMapper = sqlSession.getMapper(UserMapper.class);\n try {\n PageHelper.startPage(20, 50, true, false, false);\n List list = userMapper.selectAll();\n PageInfo page = new PageInfo(list);\n assertEquals(0, list.size());\n assertEquals(0, page.getStartRow());\n assertEquals(20, page.getPageNum());\n assertEquals(183, page.getTotal());\n PageHelper.startPage(4, 50, true, false, false);\n list = userMapper.selectAll();\n page = new PageInfo(list);\n assertEquals(33, list.size());\n assertEquals(151, page.getStartRow());\n assertEquals(4, page.getPageNum());\n assertEquals(183, page.getTotal());\n PageHelper.startPage(-1, 50, true, false, false);\n list = userMapper.selectAll();\n page = new PageInfo(list);\n assertEquals(0, list.size());\n assertEquals(0, page.getStartRow());\n assertEquals(-1, page.getPageNum());\n assertEquals(183, page.getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["72-105"], "old_production_code": "@Override\npublic Object intercept(Invocation invocation) throws Throwable {\n try {\n Object[] args = invocation.getArgs();\n MappedStatement ms = (MappedStatement) args[0];\n Object parameter = args[1];\n RowBounds rowBounds = (RowBounds) args[2];\n ResultHandler resultHandler = (ResultHandler) args[3];\n Executor executor = (Executor) invocation.getTarget();\n CacheKey cacheKey;\n BoundSql boundSql;\n if (args.length == 4) {\n boundSql = ms.getBoundSql(parameter);\n cacheKey = executor.createCacheKey(ms, parameter, rowBounds, boundSql);\n } else {\n cacheKey = (CacheKey) args[4];\n boundSql = (BoundSql) args[5];\n }\n checkDialectExists();\n List resultList;\n if (!dialect.skip(ms, parameter, rowBounds)) {\n if (dialect.beforeCount(ms, parameter, rowBounds)) {\n Long count = count(executor, ms, parameter, rowBounds, resultHandler, boundSql);\n if (!dialect.afterCount(count, parameter, rowBounds)) {\n return dialect.afterPage(new ArrayList(), parameter, rowBounds);\n }\n }\n resultList = ExecutorUtil.pageQuery(dialect, executor, ms, parameter, rowBounds, resultHandler, boundSql, cacheKey);\n } else {\n resultList = executor.query(ms, parameter, rowBounds, resultHandler, cacheKey, boundSql);\n }\n return dialect.afterPage(resultList, parameter, rowBounds);\n } finally {\n if (dialect != null) {\n dialect.afterAll();\n }\n }\n}", "new_production_code": "@Override\npublic Object intercept(Invocation invocation) throws Throwable {\n try {\n Object[] args = invocation.getArgs();\n MappedStatement ms = (MappedStatement) args[0];\n Object parameter = args[1];\n RowBounds rowBounds = (RowBounds) args[2];\n ResultHandler resultHandler = (ResultHandler) args[3];\n Executor executor = (Executor) invocation.getTarget();\n CacheKey cacheKey;\n BoundSql boundSql;\n if (args.length == 4) {\n boundSql = ms.getBoundSql(parameter);\n cacheKey = executor.createCacheKey(ms, parameter, rowBounds, boundSql);\n } else {\n cacheKey = (CacheKey) args[4];\n boundSql = (BoundSql) args[5];\n }\n checkDialectExists();\n List resultList;\n if (!dialect.skip(ms, parameter, rowBounds)) {\n if (dialect.beforeCount(ms, parameter, rowBounds)) {\n Long count = count(executor, ms, parameter, rowBounds, null, boundSql);\n if (!dialect.afterCount(count, parameter, rowBounds)) {\n return dialect.afterPage(new ArrayList(), parameter, rowBounds);\n }\n }\n resultList = ExecutorUtil.pageQuery(dialect, executor, ms, parameter, rowBounds, resultHandler, boundSql, cacheKey);\n } else {\n resultList = executor.query(ms, parameter, rowBounds, resultHandler, cacheKey, boundSql);\n }\n return dialect.afterPage(resultList, parameter, rowBounds);\n } finally {\n if (dialect != null) {\n dialect.afterAll();\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pagehelper/PageInterceptor.java", "focal_method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "file_path_old": "src/main/java/com/github/pagehelper/PageInterceptor.java", "line_nums_old": "68-116", "file_path_new": "src/main/java/com/github/pagehelper/PageInterceptor.java", "line_nums_new": "68-116", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8787878787878788, "branch_coverage_gold": 20.6052, "method_coverage_gold": 36.4821, "line_coverage_gold": 30.03, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/PageInfo.getPageNum:()I", "com/github/pagehelper/PageSerializable.getTotal:()J", "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/PageInfo.getStartRow:()J", "com/github/pagehelper/util/MybatisReasonableHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/page/PageMethod.startPage:(IIZLjava/lang/Boolean;Ljava/lang/Boolean;)Lcom/github/pagehelper/Page"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pagehelper/PageInterceptor.java", "file_path_new": "src/main/java/com/github/pagehelper/PageInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__c24b058_de2f7d9__TestLike_4ef1c4ca", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "c24b058c98debb980e82909ab1fccfb0e3c0dfa6", "rev2": "de2f7d9a735e09ce21fd5cb7066b724ba88d3c5c", "rev1_date": "2023-11-02T13:46:17Z", "rev2_date": "2023-11-02T15:37:11Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/c24b058c98debb980e82909ab1fccfb0e3c0dfa6...de2f7d9a735e09ce21fd5cb7066b724ba88d3c5c", "test_file": "src/test/java/com/github/pagehelper/test/basic/TestLike.java", "test_changes": [{"change_id": "1667_pagehelper_Mybatis-PageHelper-v6.1.1_c24b058_de2f7d9_TestLike", "test_sign": "com/github/pagehelper/test/basic/TestLike.testMapperWithStartPage_OrderBy_issues_641:()V", "class": "TestLike", "method": "testMapperWithStartPage_OrderBy_issues_641", "module": "", "junit_selector": "com.github.pagehelper.test.basic.TestLike#testMapperWithStartPage_OrderBy_issues_641", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPage_OrderBy_issues_641() {\n SqlSession sqlSession = MybatisHelper.getSqlSession();\n UserMapper userMapper = sqlSession.getMapper(UserMapper.class);\n try {\n PageHelper.startPage(1, 0, false, false, true);\n PageHelper.orderBy(\"id desc\");\n User user = new User();\n user.setName(\"刘\");\n List list = userMapper.selectLike(user);\n assertEquals(92, list.get(0).getId());\n assertEquals(15, list.size());\n assertEquals(15, ((Page) list).getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["93-110"], "old_production_code": "public static void orderBy(String orderBy) {\n Page page = getLocalPage();\n if (page != null) {\n page.setOrderBy(orderBy);\n } else {\n page = new Page();\n page.setOrderBy(orderBy);\n page.setOrderByOnly(true);\n setLocalPage(page);\n }\n}", "new_production_code": "public static void orderBy(String orderBy) {\n Page page = getLocalPage();\n if (page != null) {\n page.setOrderBy(orderBy);\n if (page.getPageSizeZero() != null && page.getPageSizeZero() && page.getPageSize() == 0) {\n page.setOrderByOnly(true);\n }\n } else {\n page = new Page();\n page.setOrderBy(orderBy);\n page.setOrderByOnly(true);\n setLocalPage(page);\n }\n}", "focal_file_path": "src/main/java/com/github/pagehelper/page/PageMethod.java", "focal_method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "file_path_old": "src/main/java/com/github/pagehelper/page/PageMethod.java", "line_nums_old": "184-194", "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "line_nums_new": "184-197", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 13.1004, "method_coverage_gold": 31.1275, "line_coverage_gold": 23.3459, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/model/User.setName:(Ljava/lang/String;)V", "com/github/pagehelper/Page.getTotal:()J", "com/github/pagehelper/util/MybatisHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/page/PageMethod.startPage:(IIZLjava/lang/Boolean;Ljava/lang/Boolean;)Lcom/github/pagehelper/Page", "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "com/github/pagehelper/model/User.getId:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pagehelper/page/PageMethod.java", "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__ca43d8e_5f6224e__TestLike_69295ddb", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "ca43d8ef519d61c7ecf7d64402267d61051cc5a2", "rev2": "5f6224ed21894619a5502826970ab826fa4d684c", "rev1_date": "2017-08-22T11:55:56Z", "rev2_date": "2017-08-22T13:21:31Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/ca43d8ef519d61c7ecf7d64402267d61051cc5a2...5f6224ed21894619a5502826970ab826fa4d684c", "test_file": "src/test/java/com/github/pagehelper/test/basic/TestLike.java", "test_changes": [{"change_id": "1645_pagehelper_Mybatis-PageHelper-v6.1.1_ca43d8e_5f6224e_TestLike", "test_sign": "com/github/pagehelper/test/basic/TestLike.testMapperWithStartPage_OrderBy:()V", "class": "TestLike", "method": "testMapperWithStartPage_OrderBy", "module": "", "junit_selector": "com.github.pagehelper.test.basic.TestLike#testMapperWithStartPage_OrderBy", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPage_OrderBy() {\n SqlSession sqlSession = MybatisHelper.getSqlSession();\n CountryMapper countryMapper = sqlSession.getMapper(CountryMapper.class);\n try {\n PageHelper.orderBy(\"id desc\");\n Country country = new Country();\n country.setCountryname(\"c\");\n List list = countryMapper.selectLike(country);\n assertEquals(30, list.get(0).getId());\n assertEquals(39, list.size());\n assertEquals(39, ((Page) list).getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["72-88"], "old_production_code": "", "new_production_code": "public static void orderBy(String orderBy) {\n Page page = getLocalPage();\n if (page != null) {\n page.setOrderBy(orderBy);\n } else {\n page = new Page();\n page.setOrderBy(orderBy);\n page.setOrderByOnly(true);\n setLocalPage(page);\n }\n}", "focal_file_path": "src/main/java/com/github/pagehelper/page/PageMethod.java", "focal_method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "line_nums_new": "181-191", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7058823529411765, "branch_coverage_gold": 14.1935, "method_coverage_gold": 29.6296, "line_coverage_gold": 24.0515, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/util/MybatisHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "com/github/pagehelper/model/Country.setCountryname:(Ljava/lang/String;)V", "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/Page.getTotal:()J", "com/github/pagehelper/model/Country.getId:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/page/PageMethod.orderBy:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__ca43d8e_5f6224e__TestAnnotations_69295ddb", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "ca43d8ef519d61c7ecf7d64402267d61051cc5a2", "rev2": "5f6224ed21894619a5502826970ab826fa4d684c", "rev1_date": "2017-08-22T11:55:56Z", "rev2_date": "2017-08-22T13:21:31Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/ca43d8ef519d61c7ecf7d64402267d61051cc5a2...5f6224ed21894619a5502826970ab826fa4d684c", "test_file": "src/test/java/com/github/pagehelper/test/basic/annotations/TestAnnotations.java", "test_changes": [{"change_id": "1646_pagehelper_Mybatis-PageHelper-v6.1.1_ca43d8e_5f6224e_TestAnnotations", "test_sign": "com/github/pagehelper/test/basic/annotations/TestAnnotations.testMapperWithStartPage_OrderBy:()V", "class": "TestAnnotations", "method": "testMapperWithStartPage_OrderBy", "module": "", "junit_selector": "com.github.pagehelper.test.basic.annotations.TestAnnotations#testMapperWithStartPage_OrderBy", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPage_OrderBy() {\n SqlSession sqlSession = MybatisHelper.getSqlSession();\n CountryMapper countryMapper = sqlSession.getMapper(CountryMapper.class);\n try {\n PageHelper.startPage(1, 10, \"id desc\");\n List list = countryMapper.selectByOrder2(\"id\");\n assertEquals(183, list.get(0).getId());\n assertEquals(10, list.size());\n assertEquals(183, ((Page) list).getTotal());\n PageHelper.startPage(1, 10, \"id desc\");\n list = countryMapper.selectByOrder(\"countryname\");\n assertEquals(183, list.get(0).getId());\n assertEquals(10, list.size());\n assertEquals(183, ((Page) list).getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-91"], "old_production_code": "", "new_production_code": "public static Page startPage(int pageNum, int pageSize, String orderBy) {\n Page page = startPage(pageNum, pageSize);\n page.setOrderBy(orderBy);\n return page;\n}", "focal_file_path": "src/main/java/com/github/pagehelper/page/PageMethod.java", "focal_method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "line_nums_new": "120-124", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8260869565217391, "branch_coverage_gold": 18.5484, "method_coverage_gold": 35.9259, "line_coverage_gold": 29.9458, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/util/MybatisHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "com/github/pagehelper/model/Country.getId:()I", "com/github/pagehelper/Page.getTotal:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__ca43d8e_5f6224e__TestDynamicChoose_69295ddb", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "ca43d8ef519d61c7ecf7d64402267d61051cc5a2", "rev2": "5f6224ed21894619a5502826970ab826fa4d684c", "rev1_date": "2017-08-22T11:55:56Z", "rev2_date": "2017-08-22T13:21:31Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/ca43d8ef519d61c7ecf7d64402267d61051cc5a2...5f6224ed21894619a5502826970ab826fa4d684c", "test_file": "src/test/java/com/github/pagehelper/test/basic/dynamic/TestDynamicChoose.java", "test_changes": [{"change_id": "1647_pagehelper_Mybatis-PageHelper-v6.1.1_ca43d8e_5f6224e_TestDynamicChoose", "test_sign": "com/github/pagehelper/test/basic/dynamic/TestDynamicChoose.testMapperWithStartPage_OrderBy:()V", "class": "TestDynamicChoose", "method": "testMapperWithStartPage_OrderBy", "module": "", "junit_selector": "com.github.pagehelper.test.basic.dynamic.TestDynamicChoose#testMapperWithStartPage_OrderBy", "old_test_code": null, "new_test_code": "@Test\npublic void testMapperWithStartPage_OrderBy() {\n SqlSession sqlSession = MybatisHelper.getSqlSession();\n CountryMapper countryMapper = sqlSession.getMapper(CountryMapper.class);\n try {\n PageHelper.startPage(1, 10, \"id desc\");\n List list = countryMapper.selectChoose(183, 2);\n assertEquals(182, list.get(0).getId());\n assertEquals(10, list.size());\n assertEquals(182, ((Page) list).getTotal());\n PageHelper.startPage(1, 10, \"id desc\");\n list = countryMapper.selectChoose(183, 2);\n assertEquals(182, list.get(0).getId());\n assertEquals(10, list.size());\n assertEquals(182, ((Page) list).getTotal());\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-91"], "old_production_code": "", "new_production_code": "public static Page startPage(int pageNum, int pageSize, String orderBy) {\n Page page = startPage(pageNum, pageSize);\n page.setOrderBy(orderBy);\n return page;\n}", "focal_file_path": "src/main/java/com/github/pagehelper/page/PageMethod.java", "focal_method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "line_nums_new": "120-124", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 18.3871, "method_coverage_gold": 35.9259, "line_coverage_gold": 29.878, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/PageInterceptor.intercept:(Lorg/apache/ibatis/plugin/Invocation;)Ljava/lang/Object", "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "com/github/pagehelper/util/MybatisHelper.getSqlSession:()Lorg/apache/ibatis/session/SqlSession", "com/github/pagehelper/model/Country.getId:()I", "com/github/pagehelper/Page.getTotal:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/page/PageMethod.startPage:(IILjava/lang/String;)Lcom/github/pagehelper/Page", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pagehelper/page/PageMethod.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__d089708_9c7af24__CountColumnTest_abb6e539", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "d089708d84e3a87f1275b78e5d17d47dd155e66e", "rev2": "9c7af24630fb2f7e73ecceae3360d124195c85f7", "rev1_date": "2023-11-02T13:14:04Z", "rev2_date": "2023-11-02T13:38:46Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/d089708d84e3a87f1275b78e5d17d47dd155e66e...9c7af24630fb2f7e73ecceae3360d124195c85f7", "test_file": "src/test/java/com/github/pagehelper/test/basic/CountColumnTest.java", "test_changes": [{"change_id": "1642_pagehelper_Mybatis-PageHelper-v6.1.1_d089708_9c7af24_CountColumnTest", "test_sign": "com/github/pagehelper/test/basic/CountColumnTest.testCountColumnInject:()V", "class": "CountColumnTest", "method": "testCountColumnInject", "module": "", "junit_selector": "com.github.pagehelper.test.basic.CountColumnTest#testCountColumnInject", "old_test_code": null, "new_test_code": "@Test(expected = Exception.class)\npublic void testCountColumnInject() {\n SqlSession sqlSession = MybatisHelper.getSqlSession();\n try {\n PageHelper.startPage(1, 10).countColumn(\"delete from user\");\n } finally {\n sqlSession.close();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-75"], "old_production_code": "public Page countColumn(String columnName) {\n this.countColumn = columnName;\n return this;\n}", "new_production_code": "public Page countColumn(String columnName) {\n setCountColumn(columnName);\n return this;\n}", "focal_file_path": "src/main/java/com/github/pagehelper/Page.java", "focal_method_sign": "com/github/pagehelper/Page.countColumn:(Ljava/lang/String;)Lcom/github/pagehelper/Page", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pagehelper/Page.countColumn:(Ljava/lang/String;)Lcom/github/pagehelper/Page", "file_path_old": "src/main/java/com/github/pagehelper/Page.java", "line_nums_old": "433-436", "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "line_nums_new": "434-437", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 5.1648, "method_coverage_gold": 13.7255, "line_coverage_gold": 12.157, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/page/PageMethod.startPage:(II)Lcom/github/pagehelper/Page", "com/github/pagehelper/Page.countColumn:(Ljava/lang/String;)Lcom/github/pagehelper/Page"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/Page.countColumn:(Ljava/lang/String;)Lcom/github/pagehelper/Page", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pagehelper/Page.java", "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "pagehelper_Mybatis-PageHelper-v6.1.1__e9f24df_b72cbaf__SqlTest_c08f3e0e", "project_name": "pagehelper_Mybatis-PageHelper-v6.1.1", "git_clone_url": "https://github.com/pagehelper/Mybatis-PageHelper.git", "rev1": "e9f24df5c8cc931d343c732ce5f3e6aa9323f9ae", "rev2": "b72cbaf5080b37c3c2bed2bb7ebd0bbb29183fd0", "rev1_date": "2022-09-18T08:48:51Z", "rev2_date": "2022-09-18T08:49:19Z", "git_diff_url": "https://github.com/pagehelper/Mybatis-PageHelper/compare/e9f24df5c8cc931d343c732ce5f3e6aa9323f9ae...b72cbaf5080b37c3c2bed2bb7ebd0bbb29183fd0", "test_file": "src/test/java/com/github/pagehelper/sql/SqlTest.java", "test_changes": [{"change_id": "1656_pagehelper_Mybatis-PageHelper-v6.1.1_e9f24df_b72cbaf_SqlTest", "test_sign": "com/github/pagehelper/sql/SqlTest.testKeepOrderBy:()V", "class": "SqlTest", "method": "testKeepOrderBy", "module": "", "junit_selector": "com.github.pagehelper.sql.SqlTest#testKeepOrderBy", "old_test_code": null, "new_test_code": "@Test\npublic void testKeepOrderBy() {\n CountSqlParser countSqlParser = new CountSqlParser();\n try {\n PageHelper.startPage(1, 10).keepOrderBy(true);\n Assert.assertEquals(\"select count(0) from ( \\n\" + \" select * from user_info order by name desc\\n\" + \" ) tmp_count\", countSqlParser.getSmartCountSql(\" select * from user_info order by name desc\"));\n } finally {\n PageHelper.clearPage();\n }\n try {\n PageHelper.startPage(1, 10).keepSubSelectOrderBy(true);\n Assert.assertEquals(\"SELECT count(0) FROM (SELECT id, name FROM user_info ORDER BY name DESC) temp\", countSqlParser.getSmartCountSql(\"select * from (select id, name from user_info order by name desc) temp order by id\"));\n } finally {\n PageHelper.clearPage();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["214-233"], "old_production_code": "", "new_production_code": "public Page keepOrderBy(boolean keepOrderBy) {\n this.keepOrderBy = keepOrderBy;\n return this;\n}", "focal_file_path": "src/main/java/com/github/pagehelper/Page.java", "focal_method_sign": "com/github/pagehelper/Page.keepOrderBy:(Z)Lcom/github/pagehelper/Page", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/pagehelper/Page.keepOrderBy:(Z)Lcom/github/pagehelper/Page", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "line_nums_new": "444-447", "dependency_updated": "inserted", "score": 0.5857, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.0392}}, {"dep_id": 0, "method_sign": "com/github/pagehelper/Page.keepSubSelectOrderBy:(Z)Lcom/github/pagehelper/Page", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "line_nums_new": "459-462", "dependency_updated": "inserted", "score": 0.1969, "signal_scores": {"nc": 0.0, "lcs_u": 0.55, "ed": 0.55, "class": 0.0, "tfidf": 0.0392}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.2691, "method_coverage_gold": 8.3333, "line_coverage_gold": 5.703, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pagehelper/Page.keepSubSelectOrderBy:(Z)Lcom/github/pagehelper/Page", "com/github/pagehelper/page/PageMethod.clearPage:()V", "com/github/pagehelper/page/PageMethod.startPage:(II)Lcom/github/pagehelper/Page", "com/github/pagehelper/Page.keepOrderBy:(Z)Lcom/github/pagehelper/Page", "com/github/pagehelper/parser/CountSqlParser.getSmartCountSql:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pagehelper/Page.keepSubSelectOrderBy:(Z)Lcom/github/pagehelper/Page", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pagehelper/Page.keepOrderBy:(Z)Lcom/github/pagehelper/Page", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pagehelper/Page.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v6.1.1", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__08ebc8e_05356aa__LazyTest_8471c771", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "08ebc8e778ac0f8b63a8fb05981b7ad4d0954643", "rev2": "05356aa8a872b20ea3906b757ee181499748e7fe", "rev1_date": "2019-03-31T21:22:35Z", "rev2_date": "2019-03-31T22:04:12Z", "git_diff_url": "https://github.com/palatable/lambda/compare/08ebc8e778ac0f8b63a8fb05981b7ad4d0954643...05356aa8a872b20ea3906b757ee181499748e7fe", "test_file": "src/test/java/com/jnape/palatable/lambda/functor/builtin/LazyTest.java", "test_changes": [{"change_id": "515_palatable_lambda-lambda-5.5.0_08ebc8e_05356aa_LazyTest", "test_sign": "com/jnape/palatable/lambda/functor/builtin/LazyTest.valueExtraction:()V", "class": "LazyTest", "method": "valueExtraction", "module": "", "junit_selector": "com.jnape.palatable.lambda.functor.builtin.LazyTest#valueExtraction", "old_test_code": null, "new_test_code": "@Test\npublic void valueExtraction() {\n assertEquals(\"foo\", lazy(\"foo\").value());\n assertEquals(\"foo\", lazy(() -> \"foo\").value());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "@Override\npublic A value() {\n return fn0.apply();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "focal_method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Val.value:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Val.value:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "116-119", "dependency_updated": "inserted", "score": 0.4436, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3333, "class": 1.0, "tfidf": 0.1021}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "94-96", "dependency_updated": "inserted", "score": 0.3894, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1333, "class": 1.0, "tfidf": 0.3866}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/util/function/Supplier;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "105-107", "dependency_updated": "inserted", "score": 0.3234, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1333, "class": 1.0, "tfidf": 0.106}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2096, "line_coverage_gold": 0.2175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/util/function/Supplier;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "com/jnape/palatable/lambda/functor/builtin/Lazy$Val.value:()Ljava/lang/Object", "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Val.value:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/util/function/Supplier;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "516_palatable_lambda-lambda-5.5.0_08ebc8e_05356aa_LazyTest", "test_sign": "com/jnape/palatable/lambda/functor/builtin/LazyTest.lazyEvaluation:()V", "class": "LazyTest", "method": "lazyEvaluation", "module": "", "junit_selector": "com.jnape.palatable.lambda.functor.builtin.LazyTest#lazyEvaluation", "old_test_code": null, "new_test_code": "@Test\npublic void lazyEvaluation() {\n AtomicBoolean invoked = new AtomicBoolean(false);\n Lazy lazy = lazy(0).flatMap(x -> {\n invoked.set(true);\n return lazy(x + 1);\n });\n assertFalse(invoked.get());\n assertEquals((Integer) 1, lazy.value());\n assertTrue(invoked.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-33"], "old_production_code": "", "new_production_code": "public static Lazy lazy(A value) {\n return lazy(() -> value);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "focal_method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "94-96", "dependency_updated": "inserted", "score": 0.5255, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2857, "class": 1.0, "tfidf": 0.4834}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "132-151", "dependency_updated": "inserted", "score": 0.4023, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.2857, "class": 1.0, "tfidf": 0.1099}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.flatMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "39-45", "dependency_updated": "inserted", "score": 0.3567, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.2143, "class": 1.0, "tfidf": 0.2447}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.083, "method_coverage_gold": 1.3976, "line_coverage_gold": 2.1435, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "com/jnape/palatable/lambda/functor/builtin/Lazy.flatMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.flatMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "517_palatable_lambda-lambda-5.5.0_08ebc8e_05356aa_LazyTest", "test_sign": "com/jnape/palatable/lambda/functor/builtin/LazyTest.linearStackSafety:()V", "class": "LazyTest", "method": "linearStackSafety", "module": "", "junit_selector": "com.jnape.palatable.lambda.functor.builtin.LazyTest#linearStackSafety", "old_test_code": null, "new_test_code": "@Test\npublic void linearStackSafety() {\n assertEquals(STACK_EXPLODING_NUMBER, times(STACK_EXPLODING_NUMBER, f -> f.fmap(x -> x + 1), lazy(0)).value());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-39"], "old_production_code": "", "new_production_code": "public static Lazy lazy(A value) {\n return lazy(() -> value);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "focal_method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "94-96", "dependency_updated": "inserted", "score": 0.423, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1765, "class": 1.0, "tfidf": 0.3118}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "line_nums_new": "132-151", "dependency_updated": "inserted", "score": 0.296, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1176, "class": 1.0, "tfidf": 0.0756}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.5271, "method_coverage_gold": 2.935, "line_coverage_gold": 3.9143, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functor/builtin/Lazy.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__14cb27f_efefe5a__RunAllTest_c3437aaa", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "14cb27f248282ec7cfc0dc92a504fc775ee4fd0d", "rev2": "efefe5aca45c8befa026561439ecd7402e416d23", "rev1_date": "2018-12-02T23:04:34Z", "rev2_date": "2018-12-02T23:18:41Z", "git_diff_url": "https://github.com/palatable/lambda/compare/14cb27f248282ec7cfc0dc92a504fc775ee4fd0d...efefe5aca45c8befa026561439ecd7402e416d23", "test_file": "src/test/java/com/jnape/palatable/lambda/monoid/builtin/RunAllTest.java", "test_changes": [{"change_id": "542_palatable_lambda-lambda-5.5.0_14cb27f_efefe5a_RunAllTest", "test_sign": "com/jnape/palatable/lambda/monoid/builtin/RunAllTest.monoid:()V", "class": "RunAllTest", "method": "monoid", "module": "", "junit_selector": "com.jnape.palatable.lambda.monoid.builtin.RunAllTest#monoid", "old_test_code": null, "new_test_code": "@Test\npublic void monoid() {\n Monoid add = Monoid.monoid((x, y) -> x + y, 0);\n assertEquals((Integer) 3, runAll(add).apply(io(1), io(2)).unsafePerformIO());\n assertEquals((Integer) 0, runAll(add).identity().unsafePerformIO());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-17"], "old_production_code": "", "new_production_code": "public static Monoid> runAll(Monoid monoid) {\n return RunAll.runAll().apply(monoid);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/RunAll.java", "focal_method_sign": "com/jnape/palatable/lambda/monoid/builtin/RunAll.runAll:(Lcom/jnape/palatable/lambda/monoid/Monoid;)Lcom/jnape/palatable/lambda/monoid/Monoid", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/monoid/builtin/RunAll.runAll:(Lcom/jnape/palatable/lambda/monoid/Monoid;)Lcom/jnape/palatable/lambda/monoid/Monoid", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/RunAll.java", "line_nums_new": "36-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0787, "line_coverage_gold": 0.7405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/monoid/Monoid.monoid:(Lcom/jnape/palatable/lambda/semigroup/Semigroup;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/monoid/Monoid", "com/jnape/palatable/lambda/functions/IO.io:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/IO", "com/jnape/palatable/lambda/monoid/Monoid$1.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/monoid/Monoid$1.identity:()Ljava/lang/Object", "com/jnape/palatable/lambda/monoid/builtin/RunAll.runAll:(Lcom/jnape/palatable/lambda/monoid/Monoid;)Lcom/jnape/palatable/lambda/monoid/Monoid"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/monoid/builtin/RunAll.runAll:(Lcom/jnape/palatable/lambda/monoid/Monoid;)Lcom/jnape/palatable/lambda/monoid/Monoid", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/RunAll.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__18ab96a_3490ab1__EffectTest_a11412a1", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "18ab96a52d96935a1546d44c116f1233d30fdd4e", "rev2": "3490ab1aa5fbfe4588f3d9f83b9b7cbf73ca842b", "rev1_date": "2018-07-15T20:06:23Z", "rev2_date": "2018-07-15T23:01:59Z", "git_diff_url": "https://github.com/palatable/lambda/compare/18ab96a52d96935a1546d44c116f1233d30fdd4e...3490ab1aa5fbfe4588f3d9f83b9b7cbf73ca842b", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/EffectTest.java", "test_changes": [{"change_id": "604_palatable_lambda-lambda-5.5.0_18ab96a_3490ab1_EffectTest", "test_sign": "com/jnape/palatable/lambda/functions/EffectTest.covariantReturns:()V", "class": "EffectTest", "method": "covariantReturns", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.EffectTest#covariantReturns", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"unused\")\npublic void covariantReturns() {\n Effect effect = noop();\n Effect diMapL = effect.diMapL(constantly(\"1\"));\n Effect contraMap = effect.contraMap(constantly(\"1\"));\n Effect compose = effect.compose(constantly(\"1\"));\n Effect stringEffect = effect.discardR(constantly(\"1\"));\n Effect andThen = effect.andThen((Consumer) noop());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\ndefault Effect andThen(Consumer after) {\n return a -> {\n Consumer.super.andThen(after).accept(a);\n return UNIT;\n };\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Ljava/util/function/Consumer;)Lcom/jnape/palatable/lambda/functions/Effect", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Ljava/util/function/Consumer;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "47-53", "dependency_updated": "inserted", "score": 0.4091, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.25, "class": 1.0, "tfidf": 0.2278}}, {"dep_id": 5, "method_sign": "com/jnape/palatable/lambda/functions/Effect.contraMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "32-35", "dependency_updated": "inserted", "score": 0.3876, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.3125, "class": 1.0, "tfidf": 0.2118}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/Effect.discardR:(Lcom/jnape/palatable/lambda/functor/Applicative;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "42-45", "dependency_updated": "inserted", "score": 0.3456, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1875, "class": 1.0, "tfidf": 0.1626}}, {"dep_id": 4, "method_sign": "com/jnape/palatable/lambda/functions/Effect.compose:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "37-40", "dependency_updated": "inserted", "score": 0.3446, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1875, "class": 1.0, "tfidf": 0.2118}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/functions/Effect.diMapL:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "27-30", "dependency_updated": "inserted", "score": 0.3072, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0625, "class": 1.0, "tfidf": 0.2118}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/functions/specialized/Noop.noop:()Lcom/jnape/palatable/lambda/functions/specialized/Noop", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/specialized/Noop.java", "line_nums_new": "30-33", "dependency_updated": "inserted", "score": 0.0737, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0625, "class": 0.0, "tfidf": 0.0821}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0526, "line_coverage_gold": 0.9085, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/Effect.andThen:(Ljava/util/function/Consumer;)Lcom/jnape/palatable/lambda/functions/Effect", "com/jnape/palatable/lambda/functions/builtin/fn1/Constantly.constantly:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/Fn1", "com/jnape/palatable/lambda/functions/Effect.compose:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "com/jnape/palatable/lambda/functions/Effect.discardR:(Lcom/jnape/palatable/lambda/functor/Applicative;)Lcom/jnape/palatable/lambda/functions/Effect", "com/jnape/palatable/lambda/functions/Effect.diMapL:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "com/jnape/palatable/lambda/functions/specialized/Noop.noop:()Lcom/jnape/palatable/lambda/functions/specialized/Noop", "com/jnape/palatable/lambda/functions/Effect.contraMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/Effect.discardR:(Lcom/jnape/palatable/lambda/functor/Applicative;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Ljava/util/function/Consumer;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/Effect.diMapL:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/specialized/Noop.noop:()Lcom/jnape/palatable/lambda/functions/specialized/Noop", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/specialized/Noop.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/Effect.compose:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/Effect.contraMap:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__24949f1_fc83731__Product2Test_47ba2080", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "24949f16a911ca81eefbae19534137b6abde1ad2", "rev2": "fc83731365d9dd7aa9f91e0a15412584b2a56d25", "rev1_date": "2018-08-02T03:07:25Z", "rev2_date": "2018-08-02T03:28:42Z", "git_diff_url": "https://github.com/palatable/lambda/compare/24949f16a911ca81eefbae19534137b6abde1ad2...fc83731365d9dd7aa9f91e0a15412584b2a56d25", "test_file": "src/test/java/com/jnape/palatable/lambda/adt/product/Product2Test.java", "test_changes": [{"change_id": "693_palatable_lambda-lambda-5.5.0_24949f1_fc83731_Product2Test", "test_sign": "com/jnape/palatable/lambda/adt/product/Product2Test.invert:()V", "class": "Product2Test", "method": "invert", "module": "", "junit_selector": "com.jnape.palatable.lambda.adt.product.Product2Test#invert", "old_test_code": null, "new_test_code": "@Test\npublic void invert() {\n Product2 inverted = product(\"a\", \"b\").invert();\n assertEquals(\"b\", inverted._1());\n assertEquals(\"a\", inverted._2());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "default Product2<_2, _1> invert() {\n return into((_1, _2) -> product(_2, _1));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "focal_method_sign": "com/jnape/palatable/lambda/adt/product/Product2.invert:()Lcom/jnape/palatable/lambda/adt/product/Product2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2.invert:()Lcom/jnape/palatable/lambda/adt/product/Product2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.8391, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3161}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "79-91", "dependency_updated": "inserted", "score": 0.318, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1429, "class": 1.0, "tfidf": 0.2374}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.2183, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1276}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "86-89", "dependency_updated": "inserted", "score": 0.2183, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1276}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2829, "line_coverage_gold": 0.175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "com/jnape/palatable/lambda/adt/product/Product2.invert:()Lcom/jnape/palatable/lambda/adt/product/Product2"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/adt/product/Product2.invert:()Lcom/jnape/palatable/lambda/adt/product/Product2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "694_palatable_lambda-lambda-5.5.0_24949f1_fc83731_Product2Test", "test_sign": "com/jnape/palatable/lambda/adt/product/Product2Test.staticFactoryMethod:()V", "class": "Product2Test", "method": "staticFactoryMethod", "module": "", "junit_selector": "com.jnape.palatable.lambda.adt.product.Product2Test#staticFactoryMethod", "old_test_code": null, "new_test_code": "@Test\npublic void staticFactoryMethod() {\n Product2 product = product(\"a\", \"b\");\n assertEquals(\"a\", product._1());\n assertEquals(\"b\", product._2());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "", "new_production_code": "static <_1, _2> Product2<_1, _2> product(_1 _1, _2 _2) {\n return new Product2<_1, _2>() {\n\n @Override\n public _1 _1() {\n return _1;\n }\n\n @Override\n public _2 _2() {\n return _2;\n }\n };\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "focal_method_sign": "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "79-91", "dependency_updated": "inserted", "score": 0.3528, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1053, "class": 1.0, "tfidf": 0.3042}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "81-84", "dependency_updated": "inserted", "score": 0.2166, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1207}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "line_nums_new": "86-89", "dependency_updated": "inserted", "score": 0.2166, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.1207}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1617, "line_coverage_gold": 0.105, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._1:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/adt/product/Product2$1._2:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/adt/product/Product2.product:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/product/Product2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/adt/product/Product2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__3259969_9ae0f14__TrivialTest_50f5399d", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "3259969772c5751de5f305b7a19649677e8c6892", "rev2": "9ae0f1451b93e68aa9e34de584893358f7f33594", "rev1_date": "2019-05-19T23:41:54Z", "rev2_date": "2019-05-19T23:47:09Z", "git_diff_url": "https://github.com/palatable/lambda/compare/3259969772c5751de5f305b7a19649677e8c6892...9ae0f1451b93e68aa9e34de584893358f7f33594", "test_file": "src/test/java/com/jnape/palatable/lambda/monoid/builtin/TrivialTest.java", "test_changes": [{"change_id": "684_palatable_lambda-lambda-5.5.0_3259969_9ae0f14_TrivialTest", "test_sign": "com/jnape/palatable/lambda/monoid/builtin/TrivialTest.triviality:()V", "class": "TrivialTest", "method": "triviality", "module": "", "junit_selector": "com.jnape.palatable.lambda.monoid.builtin.TrivialTest#triviality", "old_test_code": null, "new_test_code": "@Test\npublic void triviality() {\n assertEquals(UNIT, trivial().identity());\n assertEquals(UNIT, trivial().apply(UNIT, UNIT));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-15"], "old_production_code": "", "new_production_code": "public static Trivial trivial() {\n return INSTANCE;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/Trivial.java", "focal_method_sign": "com/jnape/palatable/lambda/monoid/builtin/Trivial.trivial:()Lcom/jnape/palatable/lambda/monoid/builtin/Trivial", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/monoid/builtin/Trivial.trivial:()Lcom/jnape/palatable/lambda/monoid/builtin/Trivial", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/Trivial.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.5337, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7, "class": 1.0, "tfidf": 0.2282}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/monoid/builtin/Trivial.identity:()Lcom/jnape/palatable/lambda/adt/Unit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/Trivial.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.4712, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.4, "class": 1.0, "tfidf": 0.5476}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.189, "line_coverage_gold": 0.1692, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/monoid/builtin/Trivial.trivial:()Lcom/jnape/palatable/lambda/monoid/builtin/Trivial", "com/jnape/palatable/lambda/functions/Fn2.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/monoid/builtin/Trivial.identity:()Lcom/jnape/palatable/lambda/adt/Unit"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/monoid/builtin/Trivial.identity:()Lcom/jnape/palatable/lambda/adt/Unit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/Trivial.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/monoid/builtin/Trivial.trivial:()Lcom/jnape/palatable/lambda/monoid/builtin/Trivial", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/Trivial.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__3af50fa_b0949c9__PureTest_00b8744e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "3af50faef1bf6aad29fb5b039e3d384ea98d8d4e", "rev2": "b0949c9a4a0cdc8ce2dd3543123226927a297adb", "rev1_date": "2019-05-12T01:13:20Z", "rev2_date": "2019-05-12T01:13:52Z", "git_diff_url": "https://github.com/palatable/lambda/compare/3af50faef1bf6aad29fb5b039e3d384ea98d8d4e...b0949c9a4a0cdc8ce2dd3543123226927a297adb", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/specialized/PureTest.java", "test_changes": [{"change_id": "573_palatable_lambda-lambda-5.5.0_3af50fa_b0949c9_PureTest", "test_sign": "com/jnape/palatable/lambda/functions/specialized/PureTest.inference:()V", "class": "PureTest", "method": "inference", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.specialized.PureTest#inference", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"RedundantTypeArguments\")\npublic void inference() {\n assertEquals(just(1), Pure.>pure(Maybe::just).>apply(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-15"], "old_production_code": "", "new_production_code": "static > Pure pure(Pure pure) {\n return pure;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/specialized/Pure.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/specialized/Pure.pure:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/functions/specialized/Pure", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/specialized/Pure.pure:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/functions/specialized/Pure", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/specialized/Pure.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.159, "line_coverage_gold": 0.2554, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/functions/specialized/Pure.apply:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/Functor", "com/jnape/palatable/lambda/functions/specialized/Pure.pure:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/functions/specialized/Pure", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/specialized/Pure.pure:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/functions/specialized/Pure", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/specialized/Pure.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__OverTest_8df9f841", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/functions/OverTest.java", "test_changes": [{"change_id": "699_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_OverTest", "test_sign": "com/jnape/palatable/lambda/optics/functions/OverTest.mapsDataWithLensAndFunction:()V", "class": "OverTest", "method": "mapsDataWithLensAndFunction", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.functions.OverTest#mapsDataWithLensAndFunction", "old_test_code": null, "new_test_code": "@Test\npublic void mapsDataWithLensAndFunction() {\n Lens, Set, String, Integer> lens = lens(xs -> xs.get(0), (xs, i) -> singleton(i));\n assertEquals(singleton(1), over(lens, String::length, asList(\"a\", \"aa\", \"aaa\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "static Lens lens(Function getter, BiFunction setter) {\n return lens(Optic., Functor, S, T, A, B, Functor>, Functor>, Fn1>>, Fn1>>>optic(afb -> s -> afb.apply(getter.apply(s)).fmap(b -> setter.apply(s, b))));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "line_nums_new": "248-257", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0376, "line_coverage_gold": 0.846, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__SetTest_42ff6607", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/functions/SetTest.java", "test_changes": [{"change_id": "706_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_SetTest", "test_sign": "com/jnape/palatable/lambda/optics/functions/SetTest.updatesWithLensAndNewValue:()V", "class": "SetTest", "method": "updatesWithLensAndNewValue", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.functions.SetTest#updatesWithLensAndNewValue", "old_test_code": null, "new_test_code": "@Test\npublic void updatesWithLensAndNewValue() {\n Lens, java.util.Set, String, Integer> lens = lens(xs -> xs.get(0), (xs, i) -> singleton(i));\n assertEquals(singleton(5), set(lens, 5, asList(\"a\", \"aa\", \"aaa\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-20"], "old_production_code": "", "new_production_code": "static Lens lens(Function getter, BiFunction setter) {\n return lens(Optic., Functor, S, T, A, B, Functor>, Functor>, Fn1>>, Fn1>>>optic(afb -> s -> afb.apply(getter.apply(s)).fmap(b -> setter.apply(s, b))));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "line_nums_new": "248-257", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.3619, "line_coverage_gold": 1.1377, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__ViewTest_ecbee736", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/functions/ViewTest.java", "test_changes": [{"change_id": "725_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_ViewTest", "test_sign": "com/jnape/palatable/lambda/optics/functions/ViewTest.viewsSubPartWithLens:()V", "class": "ViewTest", "method": "viewsSubPartWithLens", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.functions.ViewTest#viewsSubPartWithLens", "old_test_code": null, "new_test_code": "@Test\npublic void viewsSubPartWithLens() {\n Lens, Set, String, Integer> lens = lens(xs -> xs.get(0), (xs, i) -> singleton(i));\n assertEquals(\"foo\", view(lens, asList(\"foo\", \"bar\", \"baz\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "static Lens lens(Function getter, BiFunction setter) {\n return lens(Optic., Functor, S, T, A, B, Functor>, Functor>, Fn1>>, Fn1>>>optic(afb -> s -> afb.apply(getter.apply(s)).fmap(b -> setter.apply(s, b))));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "line_nums_new": "248-257", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8431, "line_coverage_gold": 0.7585, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/Lens.lens:(Ljava/util/function/Function;Ljava/util/function/BiFunction;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Lens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__CollectionLensTest_cf8c444e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/CollectionLensTest.java", "test_changes": [{"change_id": "703_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_CollectionLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/CollectionLensTest.asStreamFocusesOnCollectionAsStream:()V", "class": "CollectionLensTest", "method": "asStreamFocusesOnCollectionAsStream", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.CollectionLensTest#asStreamFocusesOnCollectionAsStream", "old_test_code": null, "new_test_code": "@Test\npublic void asStreamFocusesOnCollectionAsStream() {\n Lens.Simple, Stream> asStream = CollectionLens.asStream(ArrayList::new);\n assertEquals(asList(\"foo\", \"bar\", \"baz\"), view(asStream, asList(\"foo\", \"bar\", \"baz\")).collect(toList()));\n assertEquals(asList(\"foo\", \"bar\"), set(asStream, Stream.of(\"foo\", \"bar\"), asList(\"foo\", \"bar\", \"baz\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-45"], "old_production_code": "", "new_production_code": "@SuppressWarnings(\"RedundantTypeArguments\")\npublic static > Lens.Simple> asStream(Function copyFn) {\n return simpleLens(Collection::stream, (xsL, xsS) -> {\n CX updated = copyFn.apply(xsL);\n updated.clear();\n xsS.forEach(updated::add);\n return updated;\n });\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/CollectionLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/CollectionLens.asStream:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/CollectionLens.asStream:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/CollectionLens.java", "line_nums_new": "66-75", "dependency_updated": "inserted", "score": 0.4165, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2286, "class": 1.0, "tfidf": 0.0599}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1965, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0857, "class": 0.0, "tfidf": 0.0253}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1036, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0571, "class": 0.0, "tfidf": 0.0253}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.8482, "line_coverage_gold": 1.7211, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/CollectionLens.asStream:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Lens$Simple"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/CollectionLens.asStream:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/CollectionLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__EitherLensTest_514c81ba", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/EitherLensTest.java", "test_changes": [{"change_id": "721_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_EitherLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLensTest.leftFocusesOnLeftValues:()V", "class": "EitherLensTest", "method": "leftFocusesOnLeftValues", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.EitherLensTest#leftFocusesOnLeftValues", "old_test_code": null, "new_test_code": "@Test\npublic void leftFocusesOnLeftValues() {\n Lens.Simple, Maybe> left = EitherLens.left();\n assertEquals(just(\"fail\"), view(left, left(\"fail\")));\n assertEquals(nothing(), view(left, right(1)));\n assertEquals(left(\"foo\"), set(left, just(\"foo\"), left(\"fail\")));\n assertEquals(left(\"fail\"), set(left, nothing(), left(\"fail\")));\n assertEquals(left(\"foo\"), set(left, just(\"foo\"), right(1)));\n assertEquals(right(1), set(left, nothing(), right(1)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-40"], "old_production_code": "", "new_production_code": "public static Lens.Simple, Maybe> left() {\n return simpleLens(CoProduct2::projectA, (lOrR, maybeL) -> maybeL.>fmap(Either::left).orElse(lOrR));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.left:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.left:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": 0.4502, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1739, "class": 1.0, "tfidf": 0.2418}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.2119, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1304, "class": 0.0, "tfidf": 0.0594}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1095, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.087, "class": 0.0, "tfidf": 0.0295}}], "coverage_gold": 0.7647058823529411, "branch_coverage_gold": 1.2281, "method_coverage_gold": 3.2101, "line_coverage_gold": 3.2089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/adt/Either$Left.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Either.left:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Either", "com/jnape/palatable/lambda/adt/Either.right:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Either", "com/jnape/palatable/lambda/adt/Either$Right.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/lenses/EitherLens.left:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.left:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "732_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_EitherLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLensTest.rightFocusesOnRightValues:()V", "class": "EitherLensTest", "method": "rightFocusesOnRightValues", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.EitherLensTest#rightFocusesOnRightValues", "old_test_code": null, "new_test_code": "@Test\npublic void rightFocusesOnRightValues() {\n Lens.Simple, Maybe> right = EitherLens.right();\n assertEquals(just(1), view(right, right(1)));\n assertEquals(nothing(), view(right, left(\"fail\")));\n assertEquals(right(2), set(right, just(2), right(1)));\n assertEquals(right(1), set(right, nothing(), right(1)));\n assertEquals(right(2), set(right, just(2), left(\"fail\")));\n assertEquals(left(\"fail\"), set(right, nothing(), left(\"fail\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-28"], "old_production_code": "", "new_production_code": "public static Lens.Simple, Maybe> right() {\n return simpleLens(CoProduct2::projectB, (lOrR, maybeR) -> maybeR.>fmap(Either::right).orElse(lOrR));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.right:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.right:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "line_nums_new": "29-31", "dependency_updated": "inserted", "score": 0.4577, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.2554}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.2108, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.12, "class": 0.0, "tfidf": 0.0618}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1086, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.08, "class": 0.0, "tfidf": 0.0306}}], "coverage_gold": 0.7647058823529411, "branch_coverage_gold": 1.2281, "method_coverage_gold": 3.2101, "line_coverage_gold": 3.2089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/lenses/EitherLens.right:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/adt/Either$Left.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Either.right:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Either", "com/jnape/palatable/lambda/adt/Either.left:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Either", "com/jnape/palatable/lambda/adt/Either$Right.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/EitherLens.right:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/EitherLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__IterableLensTest_c8e7e9e3", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/IterableLensTest.java", "test_changes": [{"change_id": "698_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_IterableLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLensTest.mapping:()V", "class": "IterableLensTest", "method": "mapping", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.IterableLensTest#mapping", "old_test_code": null, "new_test_code": "@Test\npublic void mapping() {\n Iso.Simple, Iterable> iso = IterableLens.mapping(simpleIso(Integer::parseInt, Object::toString));\n assertThat(view(iso, emptyList()), isEmpty());\n assertThat(view(iso, singletonList(\"1\")), iterates(1));\n assertThat(view(iso, asList(\"1\", \"2\", \"3\")), iterates(1, 2, 3));\n assertThat(set(iso, emptyList(), emptyList()), isEmpty());\n assertThat(set(iso, singletonList(1), emptyList()), iterates(\"1\"));\n assertThat(set(iso, singletonList(2), singletonList(\"1\")), iterates(\"2\"));\n assertThat(set(iso, asList(1, 2, 3), singletonList(\"1\")), iterates(\"1\", \"2\", \"3\"));\n assertThat(set(iso, emptyList(), singletonList(\"1\")), isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-70"], "old_production_code": "", "new_production_code": "public static Iso.Simple, Iterable> mapping(Iso abIso) {\n return simpleIso(map(view(abIso)), map(view(abIso.mirror())));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.mapping:(Lcom/jnape/palatable/lambda/optics/Iso;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.mapping:(Lcom/jnape/palatable/lambda/optics/Iso;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "line_nums_new": "59-61", "dependency_updated": "inserted", "score": 0.8189, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2305}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/Iso.simpleIso:(Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Iso.java", "line_nums_new": "216-218", "dependency_updated": "inserted", "score": 0.152, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2222, "class": 0.0, "tfidf": 0.2406}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.0785, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1429, "class": 0.0, "tfidf": 0.0459}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.0182, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0774}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 0.5263, "method_coverage_gold": 3.5668, "line_coverage_gold": 3.7048, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/matchers/IterableMatcher.isEmpty:()Ltestsupport/matchers/IterableMatcher", "com/jnape/palatable/lambda/optics/Iso.simpleIso:(Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/IterableLens.mapping:(Lcom/jnape/palatable/lambda/optics/Iso;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "testsupport/matchers/IterableMatcher.matches:(Ljava/lang/Object;)Z", "testsupport/matchers/IterableMatcher.iterates:([Ljava/lang/Object;)Ltestsupport/matchers/IterableMatcher"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/Iso.simpleIso:(Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/Iso.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.mapping:(Lcom/jnape/palatable/lambda/optics/Iso;)Lcom/jnape/palatable/lambda/optics/Iso$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "713_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_IterableLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLensTest.head:()V", "class": "IterableLensTest", "method": "head", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.IterableLensTest#head", "old_test_code": null, "new_test_code": "@Test\npublic void head() {\n Lens.Simple, Maybe> head = IterableLens.head();\n assertEquals(just(1), view(head, asList(1, 2, 3)));\n assertEquals(nothing(), view(head, emptyList()));\n assertThat(set(head, just(1), emptyList()), iterates(1));\n assertThat(set(head, nothing(), emptyList()), isEmpty());\n assertThat(set(head, just(1), asList(2, 2, 3)), iterates(1, 2, 3));\n assertThat(set(head, nothing(), asList(2, 2, 3)), iterates(2, 3));\n assertThat(over(head, maybeX -> maybeX.fmap(x -> x + 1), emptyList()), isEmpty());\n assertThat(over(head, maybeX -> maybeX.fmap(x -> x + 1), asList(1, 2, 3)), iterates(2, 2, 3));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-39"], "old_production_code": "", "new_production_code": "public static Lens.Simple, Maybe> head() {\n return simpleLens(Head::head, (s, maybeB) -> {\n Iterable tail = Tail.tail(s);\n return maybeB.fmap(b -> cons(b, tail)).orElse(tail);\n });\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.head:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.head:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.815, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2136}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1153, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.25, "class": 0.0, "tfidf": 0.065}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.0517, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0321}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Over.java", "line_nums_new": "56-59", "dependency_updated": "inserted", "score": 0.0506, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0276}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.6842, "method_coverage_gold": 3.4371, "line_coverage_gold": 3.9382, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/lenses/IterableLens.head:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "testsupport/matchers/IterableMatcher.isEmpty:()Ltestsupport/matchers/IterableMatcher", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "testsupport/matchers/IterableMatcher.matches:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "testsupport/matchers/IterableMatcher.iterates:([Ljava/lang/Object;)Ltestsupport/matchers/IterableMatcher"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.head:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Over.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "717_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_IterableLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLensTest.tail:()V", "class": "IterableLensTest", "method": "tail", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.IterableLensTest#tail", "old_test_code": null, "new_test_code": "@Test\npublic void tail() {\n Lens.Simple, Iterable> tail = IterableLens.tail();\n assertThat(view(tail, asList(1, 2, 3)), iterates(2, 3));\n assertThat(view(tail, emptyList()), isEmpty());\n assertThat(set(tail, asList(2, 3), singletonList(1)), iterates(1, 2, 3));\n assertThat(set(tail, emptyList(), asList(1, 2, 3)), iterates(1));\n assertThat(set(tail, asList(1, 2, 3), emptyList()), iterates(1, 2, 3));\n assertThat(set(tail, emptyList(), emptyList()), isEmpty());\n assertThat(over(tail, map(x -> x + 1), emptyList()), isEmpty());\n assertThat(over(tail, map(x -> x + 1), asList(1, 2, 3)), iterates(1, 3, 4));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-55"], "old_production_code": "", "new_production_code": "public static Lens.Simple, Iterable> tail() {\n return simpleLens(Tail::tail, fn2(Head.head().andThen(o -> o.fmap(cons()).orElse(id()))).toBiFunction());\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.tail:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.tail:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "line_nums_new": "47-49", "dependency_updated": "inserted", "score": 0.83, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2775}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.0732, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 0.0, "tfidf": 0.0611}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.0512, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0303}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Over.java", "line_nums_new": "56-59", "dependency_updated": "inserted", "score": 0.0061, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.026}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.8596, "method_coverage_gold": 3.9883, "line_coverage_gold": 4.6383, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/matchers/IterableMatcher.isEmpty:()Ltestsupport/matchers/IterableMatcher", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "testsupport/matchers/IterableMatcher.matches:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/optics/lenses/IterableLens.tail:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/functions/builtin/fn2/Map.map:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functions/Fn1", "testsupport/matchers/IterableMatcher.iterates:([Ljava/lang/Object;)Ltestsupport/matchers/IterableMatcher"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Over.over:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/util/function/Function;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Over.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/IterableLens.tail:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/IterableLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__ListLensTest_200e593e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/ListLensTest.java", "test_changes": [{"change_id": "715_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_ListLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/ListLensTest.elementAtWithDefaultValueFocusesOnElementAtIndex:()V", "class": "ListLensTest", "method": "elementAtWithDefaultValueFocusesOnElementAtIndex", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.ListLensTest#elementAtWithDefaultValueFocusesOnElementAtIndex", "old_test_code": null, "new_test_code": "@Test\npublic void elementAtWithDefaultValueFocusesOnElementAtIndex() {\n Lens, List, String, String> at0 = ListLens.elementAt(0, \"missing\");\n assertEquals(\"foo\", view(at0, asList(\"foo\", \"bar\", \"baz\")));\n assertEquals(\"missing\", view(at0, emptyList()));\n assertEquals(asList(\"quux\", \"bar\", \"baz\"), set(at0, \"quux\", asList(\"foo\", \"bar\", \"baz\")));\n assertEquals(singletonList(\"quux\"), set(at0, \"quux\", emptyList()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-44"], "old_production_code": "", "new_production_code": "public static Lens.Simple, X> elementAt(int index, X defaultValue) {\n return Lens.Simple.adapt(unLiftB(unLiftA(elementAt(index), defaultValue)));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/ListLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/ListLens.elementAt:(ILjava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/ListLens.elementAt:(ILjava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/ListLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4097, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1875, "class": 1.0, "tfidf": 0.0598}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1978, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0625, "class": 0.0, "tfidf": 0.0469}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1537, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0625, "class": 0.0, "tfidf": 0.0469}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.1053, "method_coverage_gold": 3.8262, "line_coverage_gold": 3.8506, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/ListLens.elementAt:(ILjava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/ListLens.elementAt:(ILjava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/ListLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__MapLensTest_7dbd49bf", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/MapLensTest.java", "test_changes": [{"change_id": "719_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MapLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MapLensTest.valueAtWithDefaultValue:()V", "class": "MapLensTest", "method": "valueAtWithDefaultValue", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MapLensTest#valueAtWithDefaultValue", "old_test_code": null, "new_test_code": "@Test\npublic void valueAtWithDefaultValue() {\n Lens.Simple, Integer> atFoo = MapLens.valueAt(\"foo\", -1);\n assertEquals((Integer) 1, view(atFoo, new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }));\n assertEquals((Integer) (-1), view(atFoo, emptyMap()));\n Map updated = set(atFoo, 11, new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n });\n assertEquals(new HashMap() {\n\n {\n put(\"foo\", 11);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }, updated);\n assertNotSame(new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }, updated);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-120"], "old_production_code": "", "new_production_code": "public static Lens.Simple, V> valueAt(K k, V defaultValue) {\n return adapt(unLiftB(unLiftA(valueAt(k), defaultValue)));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.valueAt:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.valueAt:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "line_nums_new": "109-111", "dependency_updated": "inserted", "score": 0.4301, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3043, "class": 1.0, "tfidf": 0.0651}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1627, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1304, "class": 0.0, "tfidf": 0.0375}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.5789, "method_coverage_gold": 5.2529, "line_coverage_gold": 5.5718, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/lenses/MapLens.valueAt:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.valueAt:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "730_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MapLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MapLensTest.valuesFocusesOnValues:()V", "class": "MapLensTest", "method": "valuesFocusesOnValues", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MapLensTest#valuesFocusesOnValues", "old_test_code": null, "new_test_code": "@Test\npublic void valuesFocusesOnValues() {\n Lens.Simple, Collection> values = MapLens.values();\n assertThat(view(values, new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }), hasItems(2, 1, 3));\n Map updated = set(values, asList(1, 2), new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n });\n assertEquals(new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n }\n }, updated);\n assertNotSame(new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }, updated);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["133-157"], "old_production_code": "", "new_production_code": "public static Lens.Simple, Collection> values() {\n return simpleLens(m -> new ArrayList<>(m.values()), (m, vs) -> {\n Map updated = new HashMap<>(m);\n Set valueSet = new HashSet<>(vs);\n Set matchingKeys = Filter.>filter(kv -> valueSet.contains(kv.getValue())).andThen(map(Map.Entry::getKey)).andThen(toCollection(HashSet::new)).apply(updated.entrySet());\n updated.keySet().retainAll(matchingKeys);\n return updated;\n });\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.values:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.values:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "line_nums_new": "143-154", "dependency_updated": "inserted", "score": 0.4561, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2857, "class": 1.0, "tfidf": 0.1886}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1385, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0952, "class": 0.0, "tfidf": 0.0221}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1091, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0952, "class": 0.0, "tfidf": 0.0221}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.0351, "method_coverage_gold": 3.5344, "line_coverage_gold": 4.4924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MapLens.values:()Lcom/jnape/palatable/lambda/optics/Lens$Simple"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MapLens.values:()Lcom/jnape/palatable/lambda/optics/Lens$Simple", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__68206c0_b643ba8__MaybeLensTest_1652f79f", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "68206c0796571c30f0ccca34c08020fb36b83789", "rev2": "b643ba836c5916d1d8193822e5efb4e7b40c489a", "rev1_date": "2019-04-21T20:54:32Z", "rev2_date": "2019-04-22T01:37:08Z", "git_diff_url": "https://github.com/palatable/lambda/compare/68206c0796571c30f0ccca34c08020fb36b83789...b643ba836c5916d1d8193822e5efb4e7b40c489a", "test_file": "src/test/java/com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.java", "test_changes": [{"change_id": "702_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.unLiftTPullsTOutOfMaybe:()V", "class": "MaybeLensTest", "method": "unLiftTPullsTOutOfMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#unLiftTPullsTOutOfMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void unLiftTPullsTOutOfMaybe() {\n Lens, Maybe, Maybe, Maybe> liftedToMaybe = liftS(liftT(liftA(liftB(lens, 3))), \"123\");\n assertEquals(true, set(MaybeLens.unLiftT(liftedToMaybe, false), just(3), just(\"321\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-67"], "old_production_code": "", "new_production_code": "public static Lens, B> liftA(Lens lens) {\n return lens.mapA(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.516, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4907}}, {"dep_id": 5, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": 0.516, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4907}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftT:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "109-111", "dependency_updated": "inserted", "score": 0.4835, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3043, "class": 1.0, "tfidf": 0.2919}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.4692, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2919}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4692, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2919}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1416, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 0.0, "tfidf": 0.041}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.1754, "method_coverage_gold": 2.6265, "line_coverage_gold": 2.2462, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftT:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftT:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "704_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.unLiftSPullsSOutOfMaybe:()V", "class": "MaybeLensTest", "method": "unLiftSPullsSOutOfMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#unLiftSPullsSOutOfMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void unLiftSPullsSOutOfMaybe() {\n Lens, Maybe, Maybe, Maybe> liftedToMaybe = liftS(liftT(liftA(liftB(lens, 3))), \"123\");\n assertEquals(just('f'), view(MaybeLens.unLiftS(liftedToMaybe), \"f\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-61"], "old_production_code": "", "new_production_code": "public static Lens unLiftS(Lens, T, A, B> lens) {\n return lens.mapS(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftS:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 5, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftS:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "90-92", "dependency_updated": "inserted", "score": 0.5288, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3043, "class": 1.0, "tfidf": 0.4846}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.5145, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4846}}, {"dep_id": 4, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": 0.5145, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4846}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.4737, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.311}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4737, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.311}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1055, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0435, "class": 0.0, "tfidf": 0.043}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.5263, "method_coverage_gold": 2.0752, "line_coverage_gold": 1.8961, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftS:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftS:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "707_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.liftBLiftsBToMaybe:()V", "class": "MaybeLensTest", "method": "liftBLiftsBToMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#liftBLiftsBToMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void liftBLiftsBToMaybe() {\n assertEquals(true, set(MaybeLens.liftB(lens, 1), nothing(), \"1\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public static Lens> liftB(Lens lens, B defaultB) {\n return lens.mapB(m -> m.orElse(defaultB));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4674, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 1.0, "tfidf": 0.242}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1592, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0987}}], "coverage_gold": 0.42857142857142855, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.1401, "line_coverage_gold": 1.6919, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "711_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.liftALiftsAToMaybe:()V", "class": "MaybeLensTest", "method": "liftALiftsAToMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#liftALiftsAToMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void liftALiftsAToMaybe() {\n assertEquals(just('1'), view(liftA(lens), \"123\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-50"], "old_production_code": "", "new_production_code": "public static Lens, B> liftA(Lens lens) {\n return lens.mapA(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.485, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 1.0, "tfidf": 0.3167}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1206, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0556, "class": 0.0, "tfidf": 0.0987}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.5263, "method_coverage_gold": 1.297, "line_coverage_gold": 1.2835, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "712_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.unLiftAPullsAOutOfMaybe:()V", "class": "MaybeLensTest", "method": "unLiftAPullsAOutOfMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#unLiftAPullsAOutOfMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void unLiftAPullsAOutOfMaybe() {\n Lens, Maybe, Maybe, Maybe> liftedToMaybe = liftS(liftT(liftA(liftB(lens, 3))), \"123\");\n assertEquals((Character) '1', view(MaybeLens.unLiftA(liftedToMaybe, '4'), nothing()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-73"], "old_production_code": "", "new_production_code": "public static Lens, A, B> liftT(Lens lens) {\n return lens.mapT(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": 0.5003, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4239}}, {"dep_id": 5, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.5003, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4239}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftA:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "128-130", "dependency_updated": "inserted", "score": 0.4846, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3043, "class": 1.0, "tfidf": 0.2964}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.4703, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2964}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4703, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2964}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1052, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0435, "class": 0.0, "tfidf": 0.0415}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.1754, "method_coverage_gold": 2.3022, "line_coverage_gold": 2.042, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftA:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftA:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "714_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.unLiftBPullsBOutOfMaybe:()V", "class": "MaybeLensTest", "method": "unLiftBPullsBOutOfMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#unLiftBPullsBOutOfMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void unLiftBPullsBOutOfMaybe() {\n Lens, Maybe, Maybe, Maybe> liftedToMaybe = liftS(liftT(liftA(liftB(lens, 3))), \"123\");\n assertEquals(just(true), set(MaybeLens.unLiftB(liftedToMaybe), 3, just(\"321\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-79"], "old_production_code": "", "new_production_code": "public static Lens unLiftB(Lens> lens) {\n return lens.mapB(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftB:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftB:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "142-144", "dependency_updated": "inserted", "score": 0.5303, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3043, "class": 1.0, "tfidf": 0.4907}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": 0.516, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4907}}, {"dep_id": 5, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.516, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.4907}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.4692, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2919}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.4692, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2174, "class": 1.0, "tfidf": 0.2919}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "line_nums_new": "51-53", "dependency_updated": "inserted", "score": 0.1416, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.087, "class": 0.0, "tfidf": 0.041}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.5263, "method_coverage_gold": 2.6265, "line_coverage_gold": 2.2754, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftB:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftB:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/Set.set:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/Set.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.unLiftB:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftA:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "720_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.liftTLiftsTToMaybe:()V", "class": "MaybeLensTest", "method": "liftTLiftsTToMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#liftTLiftsTToMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void liftTLiftsTToMaybe() {\n assertEquals(just(true), set(liftT(lens), 3, \"123\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-45"], "old_production_code": "", "new_production_code": "public static Lens, A, B> liftT(Lens lens) {\n return lens.mapT(Maybe::just);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.5263, "method_coverage_gold": 1.9131, "line_coverage_gold": 1.6919, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe$Just.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/adt/Maybe.just:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Maybe"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftT:(Lcom/jnape/palatable/lambda/optics/Lens;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "723_palatable_lambda-lambda-5.5.0_68206c0_b643ba8_MaybeLensTest", "test_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLensTest.liftSLiftsSToMaybe:()V", "class": "MaybeLensTest", "method": "liftSLiftsSToMaybe", "module": "", "junit_selector": "com.jnape.palatable.lambda.optics.lenses.MaybeLensTest#liftSLiftsSToMaybe", "old_test_code": null, "new_test_code": "@Test\npublic void liftSLiftsSToMaybe() {\n assertEquals((Character) '3', view(liftS(lens, \"3\"), nothing()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "public static Lens, T, A, B> liftS(Lens lens, S defaultS) {\n return lens.mapS(m -> m.orElse(defaultS));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "focal_method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": 0.4674, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 1.0, "tfidf": 0.242}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "line_nums_new": "43-45", "dependency_updated": "inserted", "score": 0.1206, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0556, "class": 0.0, "tfidf": 0.0987}}], "coverage_gold": 0.42857142857142855, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.524, "line_coverage_gold": 1.3419, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/optics/lenses/MaybeLens.liftS:(Lcom/jnape/palatable/lambda/optics/Lens;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/optics/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/lenses/MaybeLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/optics/functions/View.view:(Lcom/jnape/palatable/lambda/optics/Optic;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/optics/functions/View.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__79bd928_435f3a5__EndoKTest_28825a43", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "79bd9280157277d5b1449d342318ff3173695412", "rev2": "435f3a5a4b8f05ed80981c86ad0f0d2302fca24e", "rev1_date": "2019-10-13T20:31:01Z", "rev2_date": "2019-10-13T20:31:01Z", "git_diff_url": "https://github.com/palatable/lambda/compare/79bd9280157277d5b1449d342318ff3173695412...435f3a5a4b8f05ed80981c86ad0f0d2302fca24e", "test_file": "src/test/java/com/jnape/palatable/lambda/monoid/builtin/EndoKTest.java", "test_changes": [{"change_id": "512_palatable_lambda-lambda-5.5.0_79bd928_435f3a5_EndoKTest", "test_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoKTest.stackSafe:()V", "class": "EndoKTest", "method": "stackSafe", "module": "", "junit_selector": "com.jnape.palatable.lambda.monoid.builtin.EndoKTest#stackSafe", "old_test_code": null, "new_test_code": "@Test\npublic void stackSafe() {\n Monoid>> endoK = endoK(pureIdentity());\n assertEquals(new Identity<>(0), endoK.reduceLeft(replicate(STACK_EXPLODING_NUMBER, Identity::new)).apply(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-33"], "old_production_code": "", "new_production_code": "public static , A, MA extends MonadRec> Monoid> endoK(Pure pureM) {\n return EndoK.endoK().apply(pureM);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "focal_method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 1.8395, "method_coverage_gold": 3.5967, "line_coverage_gold": 3.9667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "com/jnape/palatable/lambda/functor/builtin/Identity.pureIdentity:()Lcom/jnape/palatable/lambda/functions/specialized/Pure", "com/jnape/palatable/lambda/functor/builtin/Identity.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/functions/Fn1.apply:(Ljava/lang/Object;)Ljava/lang/Object", "com/jnape/palatable/lambda/monoid/Monoid.reduceLeft:(Ljava/lang/Iterable;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "513_palatable_lambda-lambda-5.5.0_79bd928_435f3a5_EndoKTest", "test_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoKTest.identity:()V", "class": "EndoKTest", "method": "identity", "module": "", "junit_selector": "com.jnape.palatable.lambda.monoid.builtin.EndoKTest#identity", "old_test_code": null, "new_test_code": "@Test\npublic void identity() {\n Monoid>> endoK = endoK(pureIdentity());\n assertEquals(new Identity<>(1), endoK.identity().apply(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-20"], "old_production_code": "", "new_production_code": "public static , A, MA extends MonadRec> Monoid> endoK(Pure pureM) {\n return EndoK.endoK().apply(pureM);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "focal_method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.3344, "method_coverage_gold": 0.4463, "line_coverage_gold": 0.4652, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "com/jnape/palatable/lambda/functor/builtin/Identity.pureIdentity:()Lcom/jnape/palatable/lambda/functions/specialized/Pure", "com/jnape/palatable/lambda/functor/builtin/Identity.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/functions/Fn1.apply:(Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/monoid/builtin/EndoK.endoK:(Lcom/jnape/palatable/lambda/functions/specialized/Pure;)Lcom/jnape/palatable/lambda/monoid/Monoid", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/monoid/builtin/EndoK.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__9c944e5_e3d13b7__UntilTest_22990d02", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "9c944e51feab09bd98a0a347128287c16dfd3da7", "rev2": "e3d13b74cb961f217fb5b679102ce3fb4a94b340", "rev1_date": "2019-06-22T20:16:01Z", "rev2_date": "2019-06-22T22:21:10Z", "git_diff_url": "https://github.com/palatable/lambda/compare/9c944e51feab09bd98a0a347128287c16dfd3da7...e3d13b74cb961f217fb5b679102ce3fb4a94b340", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn2/UntilTest.java", "test_changes": [{"change_id": "735_palatable_lambda-lambda-5.5.0_9c944e5_e3d13b7_UntilTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn2/UntilTest.predicateThatImmediatelyMatchesDoesNotChangeIO:()V", "class": "UntilTest", "method": "predicateThatImmediatelyMatchesDoesNotChangeIO", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn2.UntilTest#predicateThatImmediatelyMatchesDoesNotChangeIO", "old_test_code": null, "new_test_code": "@Test\npublic void predicateThatImmediatelyMatchesDoesNotChangeIO() {\n assertEquals((Integer) 0, until(constantly(true), io(0)).unsafePerformIO());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-23"], "old_production_code": "@Override\npublic A unsafePerformIO() {\n @SuppressWarnings(\"unchecked\")\n A result = (A) trampoline(into((source, compositions) -> {\n Object res = source.unsafePerformIO();\n return compositions.isEmpty() ? terminate(res) : compositions.pop().match(zip -> recurse(tuple(io(zip.unsafePerformIO().apply(res)), compositions)), flatMap -> {\n IO next = flatMap.apply(res);\n return (next instanceof Compose) ? recurse(((Compose) next).deforest(compositions)) : recurse(tuple(next, compositions));\n });\n }), deforest(new LinkedList<>()));\n return result;\n}", "new_production_code": "@Override\npublic A unsafePerformIO() {\n Lazy lazyA = LazyRec., Object>lazyRec((f, io) -> {\n if (io instanceof IO.Compose) {\n Compose compose = (Compose) io;\n Lazy head = f.apply(compose.source);\n return compose.composition.match(zip -> head.flatMap(x -> f.apply(zip).>fmap(downcast()).fmap(g -> g.apply(x))), flatMap -> head.fmap(flatMap).flatMap(f));\n }\n return lazy(io::unsafePerformIO);\n }, this);\n return downcast(lazyA.value());\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/io/IO.java", "focal_method_sign": "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "file_path_old": "src/main/java/com/jnape/palatable/lambda/io/IO.java", "line_nums_old": "290-308", "file_path_new": "src/main/java/com/jnape/palatable/lambda/io/IO.java", "line_nums_new": "281-298", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.3889, "method_coverage_gold": 2.3184, "line_coverage_gold": 3.1817, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["866731cc7e0679ee5e35c50a60a5192daa7d7d28"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/io/IO.io:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/io/IO", "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "change_type": "UPDATE", "file_path_old": "src/main/java/com/jnape/palatable/lambda/io/IO.java", "file_path_new": "src/main/java/com/jnape/palatable/lambda/io/IO.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__a52d18e_e944b01__DowncastTest_1890fc7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "a52d18eb035bd10c32e5fdefc8ef838c502dea71", "rev2": "e944b018f540a6bb9acd77cb379e9438f01fb4f1", "rev1_date": "2019-04-19T23:22:14Z", "rev2_date": "2019-04-19T23:25:54Z", "git_diff_url": "https://github.com/palatable/lambda/compare/a52d18eb035bd10c32e5fdefc8ef838c502dea71...e944b018f540a6bb9acd77cb379e9438f01fb4f1", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn1/DowncastTest.java", "test_changes": [{"change_id": "564_palatable_lambda-lambda-5.5.0_a52d18e_e944b01_DowncastTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn1/DowncastTest.safeDowncast:()V", "class": "DowncastTest", "method": "safeDowncast", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn1.DowncastTest#safeDowncast", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"unused\")\npublic void safeDowncast() {\n CharSequence charSequence = \"123\";\n String s = downcast(charSequence);\n Functor> maybeInt = nothing();\n Maybe cast = downcast(maybeInt);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-20"], "old_production_code": "", "new_production_code": "public static A downcast(B b) {\n return Downcast.downcast().apply(b);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.downcast:(Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.downcast:(Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.java", "line_nums_new": "29-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.35714285714285715, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2282, "line_coverage_gold": 0.2352, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Maybe.nothing:()Lcom/jnape/palatable/lambda/adt/Maybe", "com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.downcast:(Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.downcast:(Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn1/Downcast.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__a6636d5_8cf4050__EffectTest_b9be5896", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "a6636d5c23451ff50dd9d7678024b495dbdf1dbb", "rev2": "8cf4050d971b6b49dd33a2217ff4424ab11408cb", "rev1_date": "2019-05-15T22:48:38Z", "rev2_date": "2019-05-15T22:52:27Z", "git_diff_url": "https://github.com/palatable/lambda/compare/a6636d5c23451ff50dd9d7678024b495dbdf1dbb...8cf4050d971b6b49dd33a2217ff4424ab11408cb", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/EffectTest.java", "test_changes": [{"change_id": "546_palatable_lambda-lambda-5.5.0_a6636d5_8cf4050_EffectTest", "test_sign": "com/jnape/palatable/lambda/functions/EffectTest.andThen:()V", "class": "EffectTest", "method": "andThen", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.EffectTest#andThen", "old_test_code": null, "new_test_code": "@Test\npublic void andThen() {\n AtomicInteger counter = new AtomicInteger();\n Effect inc = c -> io(sideEffect(c::incrementAndGet));\n inc.andThen(inc).apply(counter).unsafePerformIO();\n assertEquals(2, counter.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-48"], "old_production_code": "", "new_production_code": "default Effect andThen(Effect effect) {\n return a -> apply(a).flatMap(constantly(effect.apply(a)));\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Lcom/jnape/palatable/lambda/functions/Effect;)Lcom/jnape/palatable/lambda/functions/Effect", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Lcom/jnape/palatable/lambda/functions/Effect;)Lcom/jnape/palatable/lambda/functions/Effect", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "line_nums_new": "55-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.0381, "method_coverage_gold": 1.9054, "line_coverage_gold": 2.6621, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/Effect.apply:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/io/IO", "com/jnape/palatable/lambda/functions/Effect.andThen:(Lcom/jnape/palatable/lambda/functions/Effect;)Lcom/jnape/palatable/lambda/functions/Effect", "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/Effect.andThen:(Lcom/jnape/palatable/lambda/functions/Effect;)Lcom/jnape/palatable/lambda/functions/Effect", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/Effect.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__CompareTest_e1dcab7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/CompareTest.java", "test_changes": [{"change_id": "589_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_CompareTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/CompareTest.comparisons:()V", "class": "CompareTest", "method": "comparisons", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.CompareTest#comparisons", "old_test_code": null, "new_test_code": "@Test\npublic void comparisons() {\n assertEquals(equal(), compare(naturalOrder(), 1, 1));\n assertEquals(lessThan(), compare(naturalOrder(), 2, 1));\n assertEquals(greaterThan(), compare(naturalOrder(), 1, 2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-18"], "old_production_code": "", "new_production_code": "public static ComparisonRelation compare(Comparator aComparator, A a, A a2) {\n return compare(aComparator, a).apply(a2);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Compare.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Compare.compare:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Compare.compare:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Compare.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.4671, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.5455, "class": 1.0, "tfidf": 0.1603}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "29-31", "dependency_updated": "inserted", "score": 0.0901, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.0909, "class": 0.0, "tfidf": 0.1148}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.0861, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0909, "class": 0.0, "tfidf": 0.1148}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "37-39", "dependency_updated": "inserted", "score": 0.0773, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0909, "class": 0.0, "tfidf": 0.1148}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.6623, "method_coverage_gold": 0.5903, "line_coverage_gold": 0.5501, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "com/jnape/palatable/lambda/functions/builtin/fn3/Compare.compare:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Compare.compare:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Compare.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__GTEWithTest_e1dcab7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTEWithTest.java", "test_changes": [{"change_id": "584_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_GTEWithTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTEWithTest.comparisons:()V", "class": "GTEWithTest", "method": "comparisons", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.GTEWithTest#comparisons", "old_test_code": null, "new_test_code": "@Test\npublic void comparisons() {\n assertTrue(gteWith(naturalOrder(), 1, 2));\n assertTrue(gteWith(naturalOrder(), 1, 1));\n assertFalse(gteWith(naturalOrder(), 2, 1));\n assertTrue(gteWith(comparing(String::length), \"b\", \"ab\"));\n assertTrue(gteWith(comparing(String::length), \"bc\", \"ab\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-20"], "old_production_code": "", "new_production_code": "public static Boolean gteWith(Comparator comparator, A y, A x) {\n return gteWith(comparator, y).apply(x);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.gteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.gteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.java", "line_nums_new": "54-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9934, "method_coverage_gold": 0.9754, "line_coverage_gold": 0.9089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.gteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.gteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTEWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__GTWithTest_e1dcab7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTWithTest.java", "test_changes": [{"change_id": "586_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_GTWithTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTWithTest.comparisons:()V", "class": "GTWithTest", "method": "comparisons", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.GTWithTest#comparisons", "old_test_code": null, "new_test_code": "@Test\npublic void comparisons() {\n assertTrue(gtWith(naturalOrder(), 1, 2));\n assertFalse(gtWith(naturalOrder(), 1, 1));\n assertFalse(gtWith(naturalOrder(), 2, 1));\n assertTrue(gtWith(comparing(String::length), \"bb\", \"aaa\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-19"], "old_production_code": "", "new_production_code": "public static Boolean gtWith(Comparator comparator, A y, A x) {\n return gtWith(comparator, y).apply(x);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.gtWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.gtWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.java", "line_nums_new": "54-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6623, "method_coverage_gold": 0.7957, "line_coverage_gold": 0.7414, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.gtWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.gtWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/GTWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__LTEWithTest_e1dcab7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTEWithTest.java", "test_changes": [{"change_id": "582_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_LTEWithTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTEWithTest.comparisons:()V", "class": "LTEWithTest", "method": "comparisons", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.LTEWithTest#comparisons", "old_test_code": null, "new_test_code": "@Test\npublic void comparisons() {\n assertTrue(lteWith(naturalOrder(), 2, 1));\n assertTrue(lteWith(naturalOrder(), 1, 1));\n assertFalse(lteWith(naturalOrder(), 1, 2));\n assertTrue(lteWith(comparing(String::length), \"ab\", \"b\"));\n assertTrue(lteWith(comparing(String::length), \"ab\", \"bc\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-20"], "old_production_code": "", "new_production_code": "public static Boolean lteWith(Comparator comparator, A y, A x) {\n return lteWith(comparator, y).apply(x);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.lteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.lteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.java", "line_nums_new": "54-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9934, "method_coverage_gold": 0.9754, "line_coverage_gold": 0.9089, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.lteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.lteWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTEWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__LTWithTest_e1dcab7e", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTWithTest.java", "test_changes": [{"change_id": "585_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_LTWithTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTWithTest.comparisons:()V", "class": "LTWithTest", "method": "comparisons", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.LTWithTest#comparisons", "old_test_code": null, "new_test_code": "@Test\npublic void comparisons() {\n assertTrue(ltWith(naturalOrder(), 2, 1));\n assertFalse(ltWith(naturalOrder(), 1, 1));\n assertFalse(ltWith(naturalOrder(), 1, 2));\n assertTrue(ltWith(comparing(String::length), \"ab\", \"b\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-19"], "old_production_code": "", "new_production_code": "public static Boolean ltWith(Comparator comparator, A y, A x) {\n return ltWith(comparator, y).apply(x);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.ltWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.ltWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.java", "line_nums_new": "54-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6623, "method_coverage_gold": 0.7957, "line_coverage_gold": 0.7414, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.ltWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.ltWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/LTWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__ComparisonRelationTest_aff8b190", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelationTest.java", "test_changes": [{"change_id": "588_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_ComparisonRelationTest", "test_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelationTest.fromInt:()V", "class": "ComparisonRelationTest", "method": "fromInt", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.ordering.ComparisonRelationTest#fromInt", "old_test_code": null, "new_test_code": "@Test\npublic void fromInt() {\n assertEquals(greaterThan(), ComparisonRelation.fromInt(1));\n assertEquals(greaterThan(), ComparisonRelation.fromInt(MAX_VALUE));\n assertEquals(equal(), ComparisonRelation.fromInt(0));\n assertEquals(lessThan(), ComparisonRelation.fromInt(-1));\n assertEquals(lessThan(), ComparisonRelation.fromInt(MIN_VALUE));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-22"], "old_production_code": "", "new_production_code": "public static ComparisonRelation fromInt(int signifier) {\n return signifier > 0 ? greaterThan() : signifier == 0 ? equal() : lessThan();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.fromInt:(I)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.fromInt:(I)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "25-27", "dependency_updated": "inserted", "score": 0.8352, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2995}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "29-31", "dependency_updated": "inserted", "score": 0.2812, "signal_scores": {"nc": 0.0, "lcs_u": 0.1818, "ed": 0.1818, "class": 1.0, "tfidf": 0.1315}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.2412, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 1.0, "tfidf": 0.1315}}, {"dep_id": 3, "method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "line_nums_new": "37-39", "dependency_updated": "inserted", "score": 0.2036, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0652}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.6623, "method_coverage_gold": 0.2567, "line_coverage_gold": 0.287, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.fromInt:(I)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.greaterThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$GreaterThan", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.fromInt:(I)Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.lessThan:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$LessThan", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.equal:()Lcom/jnape/palatable/lambda/functions/ordering/ComparisonRelation$Equal", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/ordering/ComparisonRelation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__MaxWithTest_9b8c1ff8", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/semigroup/builtin/MaxWithTest.java", "test_changes": [{"change_id": "587_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_MaxWithTest", "test_sign": "com/jnape/palatable/lambda/semigroup/builtin/MaxWithTest.semigroup:()V", "class": "MaxWithTest", "method": "semigroup", "module": "", "junit_selector": "com.jnape.palatable.lambda.semigroup.builtin.MaxWithTest#semigroup", "old_test_code": null, "new_test_code": "@Test\npublic void semigroup() {\n assertEquals((Integer) 1, maxWith(naturalOrder(), 1, 0));\n assertEquals((Integer) 1, maxWith(naturalOrder(), 1, 1));\n assertEquals((Integer) 2, maxWith(naturalOrder(), 1, 2));\n assertEquals(\"ab\", maxWith(comparing(String::length), \"ab\", \"a\"));\n assertEquals(\"ab\", maxWith(comparing(String::length), \"ab\", \"cd\"));\n assertEquals(\"bc\", maxWith(comparing(String::length), \"a\", \"bc\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-20"], "old_production_code": "", "new_production_code": "public static A maxWith(Comparator compareFn, A x, A y) {\n return maxWith(compareFn, x).apply(y);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MaxWith.java", "focal_method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MaxWith.maxWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MaxWith.maxWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MaxWith.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9934, "method_coverage_gold": 1.0267, "line_coverage_gold": 0.9328, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/semigroup/builtin/MaxWith.maxWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MaxWith.maxWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MaxWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__c87ac5b_ffb4c27__MinWithTest_9b8c1ff8", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6", "rev2": "ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "rev1_date": "2020-02-08T22:14:50Z", "rev2_date": "2020-02-08T22:16:13Z", "git_diff_url": "https://github.com/palatable/lambda/compare/c87ac5b2e66c0edd81a23258c8f7f880c6a6e6a6...ffb4c2721ea3b81612b01b64c315bed7acd5d6dc", "test_file": "src/test/java/com/jnape/palatable/lambda/semigroup/builtin/MinWithTest.java", "test_changes": [{"change_id": "583_palatable_lambda-lambda-5.5.0_c87ac5b_ffb4c27_MinWithTest", "test_sign": "com/jnape/palatable/lambda/semigroup/builtin/MinWithTest.semigroup:()V", "class": "MinWithTest", "method": "semigroup", "module": "", "junit_selector": "com.jnape.palatable.lambda.semigroup.builtin.MinWithTest#semigroup", "old_test_code": null, "new_test_code": "@Test\npublic void semigroup() {\n assertEquals((Integer) 1, minWith(naturalOrder(), 1, 2));\n assertEquals((Integer) 1, minWith(naturalOrder(), 1, 1));\n assertEquals((Integer) 0, minWith(naturalOrder(), 1, 0));\n assertEquals(\"a\", minWith(comparing(String::length), \"a\", \"ab\"));\n assertEquals(\"ab\", minWith(comparing(String::length), \"ab\", \"cd\"));\n assertEquals(\"c\", minWith(comparing(String::length), \"ab\", \"c\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-20"], "old_production_code": "", "new_production_code": "public static A minWith(Comparator compareFn, A x, A y) {\n return minWith(compareFn, x).apply(y);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MinWith.java", "focal_method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MinWith.minWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MinWith.minWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MinWith.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9934, "method_coverage_gold": 1.0267, "line_coverage_gold": 0.9328, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/semigroup/builtin/MinWith.minWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/semigroup/builtin/MinWith.minWith:(Ljava/util/Comparator;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/semigroup/builtin/MinWith.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__e84c8e3_9e16ed9__SequenceTest_6e07d80c", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "e84c8e3ade882b10555502eb2cf6d35087bb7553", "rev2": "9e16ed94ba88888a263136beb02708a204edc0a7", "rev1_date": "2018-06-16T23:57:20Z", "rev2_date": "2018-06-16T23:59:56Z", "git_diff_url": "https://github.com/palatable/lambda/compare/e84c8e3ade882b10555502eb2cf6d35087bb7553...9e16ed94ba88888a263136beb02708a204edc0a7", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn2/SequenceTest.java", "test_changes": [{"change_id": "685_palatable_lambda-lambda-5.5.0_e84c8e3_9e16ed9_SequenceTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn2/SequenceTest.mapSpecialization:()V", "class": "SequenceTest", "method": "mapSpecialization", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn2.SequenceTest#mapSpecialization", "old_test_code": null, "new_test_code": "@Test\npublic void mapSpecialization() {\n assertEquals(right(singletonMap(\"foo\", 1)), sequence(singletonMap(\"foo\", right(1)), Either::right));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-57"], "old_production_code": "", "new_production_code": "public static , AppMap extends Applicative, App>, MapApp extends Map> AppMap sequence(MapApp mapApp, Function, ? extends AppMap> pure) {\n return Sequence.sequence(mapApp).apply(pure);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.sequence:(Ljava/util/Map;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/Applicative", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.sequence:(Ljava/util/Map;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/Applicative", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.java", "line_nums_new": "97-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4375, "branch_coverage_gold": 0.9434, "method_coverage_gold": 3.6326, "line_coverage_gold": 3.8754, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/Either.right:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/Either", "com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.sequence:(Ljava/util/Map;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/Applicative", "com/jnape/palatable/lambda/adt/Either$Right.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.sequence:(Ljava/util/Map;Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/functor/Applicative", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn2/Sequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__e8a0352_3af50fa__BracketTest_f71c67f6", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "e8a0352fc0501e2e9a48c8b1b9ea003da109953c", "rev2": "3af50faef1bf6aad29fb5b039e3d384ea98d8d4e", "rev1_date": "2019-05-11T22:55:47Z", "rev2_date": "2019-05-12T01:13:20Z", "git_diff_url": "https://github.com/palatable/lambda/compare/e8a0352fc0501e2e9a48c8b1b9ea003da109953c...3af50faef1bf6aad29fb5b039e3d384ea98d8d4e", "test_file": "src/test/java/com/jnape/palatable/lambda/functions/builtin/fn3/BracketTest.java", "test_changes": [{"change_id": "543_palatable_lambda-lambda-5.5.0_e8a0352_3af50fa_BracketTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/BracketTest.cleanupSadPath:()V", "class": "BracketTest", "method": "cleanupSadPath", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.BracketTest#cleanupSadPath", "old_test_code": null, "new_test_code": "@Test\npublic void cleanupSadPath() {\n IllegalStateException thrown = new IllegalStateException(\"kaboom\");\n IO hashIO = bracket(io(count), c -> io(c::incrementAndGet), c -> io(() -> {\n throw thrown;\n }));\n try {\n hashIO.unsafePerformIO();\n fail(\"Expected exception to be raised\");\n } catch (IllegalStateException actual) {\n assertEquals(thrown, actual);\n assertEquals(1, count.get());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-45"], "old_production_code": "", "new_production_code": "public static IO bracket(IO io, Fn1> cleanupIO, Fn1> bodyIO) {\n return Bracket.bracket(io, cleanupIO).apply(bodyIO);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.2111, "method_coverage_gold": 2.9908, "line_coverage_gold": 3.7184, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/io/IO.io:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/io/IO", "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "544_palatable_lambda-lambda-5.5.0_e8a0352_3af50fa_BracketTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/BracketTest.cleanupHappyPath:()V", "class": "BracketTest", "method": "cleanupHappyPath", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.BracketTest#cleanupHappyPath", "old_test_code": null, "new_test_code": "@Test\npublic void cleanupHappyPath() {\n IO hashIO = bracket(io(() -> count), c -> io(c::incrementAndGet), c -> io(c::hashCode));\n assertEquals(0, count.get());\n assertEquals((Integer) count.hashCode(), hashIO.unsafePerformIO());\n assertEquals(1, count.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-31"], "old_production_code": "", "new_production_code": "public static IO bracket(IO io, Fn1> cleanupIO, Fn1> bodyIO) {\n return Bracket.bracket(io, cleanupIO).apply(bodyIO);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.2111, "method_coverage_gold": 2.8317, "line_coverage_gold": 3.4062, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "com/jnape/palatable/lambda/io/IO.io:(Lcom/jnape/palatable/lambda/functions/Fn0;)Lcom/jnape/palatable/lambda/io/IO"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "545_palatable_lambda-lambda-5.5.0_e8a0352_3af50fa_BracketTest", "test_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/BracketTest.errorsInCleanupAreAddedToBodyErrors:()V", "class": "BracketTest", "method": "errorsInCleanupAreAddedToBodyErrors", "module": "", "junit_selector": "com.jnape.palatable.lambda.functions.builtin.fn3.BracketTest#errorsInCleanupAreAddedToBodyErrors", "old_test_code": null, "new_test_code": "@Test\npublic void errorsInCleanupAreAddedToBodyErrors() {\n IllegalStateException bodyError = new IllegalStateException(\"kaboom\");\n IllegalStateException cleanupError = new IllegalStateException(\"KABOOM\");\n IO hashIO = bracket(io(count), c -> io(() -> {\n throw cleanupError;\n }), c -> io(() -> {\n throw bodyError;\n }));\n try {\n hashIO.unsafePerformIO();\n fail(\"Expected exception to be raised\");\n } catch (IllegalStateException actual) {\n assertEquals(bodyError, actual);\n assertArrayEquals(new Throwable[] { cleanupError }, actual.getSuppressed());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-76"], "old_production_code": "", "new_production_code": "public static IO bracket(IO io, Fn1> cleanupIO, Fn1> bodyIO) {\n return Bracket.bracket(io, cleanupIO).apply(bodyIO);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "focal_method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.0381, "method_coverage_gold": 2.7362, "line_coverage_gold": 3.4346, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/io/IO.io:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/io/IO", "com/jnape/palatable/lambda/io/IO$Compose.unsafePerformIO:()Ljava/lang/Object", "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.bracket:(Lcom/jnape/palatable/lambda/io/IO;Lcom/jnape/palatable/lambda/functions/Fn1;Lcom/jnape/palatable/lambda/functions/Fn1;)Lcom/jnape/palatable/lambda/io/IO", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/functions/builtin/fn3/Bracket.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__CombinatorialIteratorTest_96779ccf", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.java", "test_changes": [{"change_id": "610_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CombinatorialIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.hasNextIfMoreAsAndMoreBs:()V", "class": "CombinatorialIteratorTest", "method": "hasNextIfMoreAsAndMoreBs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CombinatorialIteratorTest#hasNextIfMoreAsAndMoreBs", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfMoreAsAndMoreBs() {\n when(as.hasNext()).thenReturn(true);\n when(bs.hasNext()).thenReturn(true);\n assertThat(combinatorialIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-36"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return (moreAs() || currentA != null) && moreBs();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "line_nums_new": "24-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "624_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CombinatorialIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.doesNotHaveNextIfMoreAsButNoBs:()V", "class": "CombinatorialIteratorTest", "method": "doesNotHaveNextIfMoreAsButNoBs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CombinatorialIteratorTest#doesNotHaveNextIfMoreAsButNoBs", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfMoreAsButNoBs() {\n when(as.hasNext()).thenReturn(true);\n when(bs.hasNext()).thenReturn(false);\n assertThat(combinatorialIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-44"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return (moreAs() || currentA != null) && moreBs();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "line_nums_new": "24-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.692, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "647_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CombinatorialIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.doesNotHaveNextIfNoAsButMoreBs:()V", "class": "CombinatorialIteratorTest", "method": "doesNotHaveNextIfNoAsButMoreBs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CombinatorialIteratorTest#doesNotHaveNextIfNoAsButMoreBs", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfNoAsButMoreBs() {\n when(as.hasNext()).thenReturn(false);\n when(bs.hasNext()).thenReturn(true);\n assertThat(combinatorialIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-52"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return (moreAs() || currentA != null) && moreBs();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "line_nums_new": "24-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2563, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "672_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CombinatorialIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIteratorTest.computesCombinationsInOrder:()V", "class": "CombinatorialIteratorTest", "method": "computesCombinationsInOrder", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CombinatorialIteratorTest#computesCombinationsInOrder", "old_test_code": null, "new_test_code": "@Test\npublic void computesCombinationsInOrder() {\n mockIteratorToHaveValues(as, \"a1\", \"a2\");\n mockIteratorToHaveValues(bs, \"b1\", \"b2\");\n assertThat(combinatorialIterator.next(), is(tuple(\"a1\", \"b1\")));\n assertThat(combinatorialIterator.next(), is(tuple(\"a1\", \"b2\")));\n assertThat(combinatorialIterator.next(), is(tuple(\"a2\", \"b1\")));\n assertThat(combinatorialIterator.next(), is(tuple(\"a2\", \"b2\")));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-63"], "old_production_code": "", "new_production_code": "@Override\npublic Tuple2 next() {\n if (currentA == null)\n currentA = asIterator.next();\n if (bsIterator.hasNext()) {\n doublyLinkedBsIterator.add(bsIterator.next());\n doublyLinkedBsIterator.previous();\n }\n Tuple2 tuple = tuple(currentA, doublyLinkedBsIterator.next());\n if (moreAs() && !moreBs()) {\n currentA = asIterator.next();\n while (doublyLinkedBsIterator.hasPrevious()) doublyLinkedBsIterator.previous();\n }\n return tuple;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.next:()Lcom/jnape/palatable/lambda/adt/hlist/Tuple2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.next:()Lcom/jnape/palatable/lambda/adt/hlist/Tuple2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "line_nums_new": "29-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 2.7682, "method_coverage_gold": 0.5115, "line_coverage_gold": 1.1962, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/adt/hlist/HList$HCons.equals:(Ljava/lang/Object;)Z", "com/jnape/palatable/lambda/adt/hlist/HList.tuple:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/jnape/palatable/lambda/adt/hlist/Tuple2", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.next:()Lcom/jnape/palatable/lambda/adt/hlist/Tuple2"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.next:()Lcom/jnape/palatable/lambda/adt/hlist/Tuple2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CombinatorialIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__ConsingIteratorTest_e3b8efb9", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.java", "test_changes": [{"change_id": "618_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ConsingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.doesNotHaveNextIfNoElementsLeft:()V", "class": "ConsingIteratorTest", "method": "doesNotHaveNextIfNoElementsLeft", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ConsingIteratorTest#doesNotHaveNextIfNoElementsLeft", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfNoElementsLeft() {\n consingIterator.next();\n consingIterator.next();\n consingIterator.next();\n consingIterator.next();\n assertFalse(consingIterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n if (!iteratedHead) {\n iteratedHead = true;\n return head;\n }\n while (asIterator instanceof ConsingIterator && ((ConsingIterator) asIterator).iteratedHead) {\n ConsingIterator cons = (ConsingIterator) asIterator;\n if (cons.iteratedHead && cons.asIterator != null)\n asIterator = cons.asIterator;\n }\n return asIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "32-49", "dependency_updated": "inserted", "score": 0.4405, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.129, "class": 1.0, "tfidf": 0.2318}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "21-30", "dependency_updated": "inserted", "score": 0.3918, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1935, "class": 1.0, "tfidf": 0.0867}}], "coverage_gold": 0.6875, "branch_coverage_gold": 1.3841, "method_coverage_gold": 0.2238, "line_coverage_gold": 0.5696, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "625_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ConsingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.hasNextIfMoreElementsAfterHead:()V", "class": "ConsingIteratorTest", "method": "hasNextIfMoreElementsAfterHead", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ConsingIteratorTest#hasNextIfMoreElementsAfterHead", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfMoreElementsAfterHead() {\n consingIterator.next();\n assertTrue(consingIterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-41"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n if (!iteratedHead) {\n iteratedHead = true;\n return head;\n }\n while (asIterator instanceof ConsingIterator && ((ConsingIterator) asIterator).iteratedHead) {\n ConsingIterator cons = (ConsingIterator) asIterator;\n if (cons.iteratedHead && cons.asIterator != null)\n asIterator = cons.asIterator;\n }\n return asIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "32-49", "dependency_updated": "inserted", "score": 0.4412, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1333, "class": 1.0, "tfidf": 0.2318}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "21-30", "dependency_updated": "inserted", "score": 0.4235, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2333, "class": 1.0, "tfidf": 0.0867}}], "coverage_gold": 0.5625, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.2238, "line_coverage_gold": 0.5127, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "626_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ConsingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.hasNextIfHeadNotYetIterated:()V", "class": "ConsingIteratorTest", "method": "hasNextIfHeadNotYetIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ConsingIteratorTest#hasNextIfHeadNotYetIterated", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfHeadNotYetIterated() {\n assertTrue(consingIterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-30"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (!iteratedHead)\n return true;\n if (asIterator == null)\n asIterator = asSupplier.apply();\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "21-30", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.173, "method_coverage_gold": 0.0639, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "675_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ConsingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.nextIsHeadIfNotYetIterated:()V", "class": "ConsingIteratorTest", "method": "nextIsHeadIfNotYetIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ConsingIteratorTest#nextIsHeadIfNotYetIterated", "old_test_code": null, "new_test_code": "@Test\npublic void nextIsHeadIfNotYetIterated() {\n assertEquals((Integer) 0, consingIterator.next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-35"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n if (!iteratedHead) {\n iteratedHead = true;\n return head;\n }\n while (asIterator instanceof ConsingIterator && ((ConsingIterator) asIterator).iteratedHead) {\n ConsingIterator cons = (ConsingIterator) asIterator;\n if (cons.iteratedHead && cons.asIterator != null)\n asIterator = cons.asIterator;\n }\n return asIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "line_nums_new": "32-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.36363636363636365, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.3133, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ConsingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "682_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ConsingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ConsingIteratorTest.stackSafety:()V", "class": "ConsingIteratorTest", "method": "stackSafety", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ConsingIteratorTest#stackSafety", "old_test_code": null, "new_test_code": "@Test\npublic void stackSafety() {\n Integer stackBlowingNumber = 10_000;\n Iterable ints = foldRight((x, lazyAcc) -> lazyAcc.fmap(acc -> () -> new ConsingIterator<>(x, acc)), lazy((Iterable) Collections.emptyList()), take(stackBlowingNumber, iterate(x -> x + 1, 1))).value();\n assertEquals(stackBlowingNumber, take(1, drop(stackBlowingNumber - 1, ints)).iterator().next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-62"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (currentIndex >= n)\n throw new NoSuchElementException();\n currentIndex++;\n return iterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "23-30", "dependency_updated": "inserted", "score": 0.1183, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0909, "class": 0.0, "tfidf": 0.064}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterable.iterator:()Ljava/util/Iterator", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterable.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": 0.112, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1818, "class": 0.0, "tfidf": 0.0677}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 6.0554, "method_coverage_gold": 4.2519, "line_coverage_gold": 6.0382, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/functor/builtin/Lazy$Compose.value:()Ljava/lang/Object", "com/jnape/palatable/lambda/functor/builtin/Lazy.lazy:(Ljava/lang/Object;)Lcom/jnape/palatable/lambda/functor/builtin/Lazy", "com/jnape/palatable/lambda/internal/iteration/TakingIterable.iterator:()Ljava/util/Iterator", "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/functions/builtin/fn2/Take.take:(ILjava/lang/Iterable;)Ljava/lang/Iterable"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterable.iterator:()Ljava/util/Iterator", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__CyclicIteratorTest_0e8db317", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/CyclicIteratorTest.java", "test_changes": [{"change_id": "627_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CyclicIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIteratorTest.alwaysHasNext:()V", "class": "CyclicIteratorTest", "method": "alwaysHasNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CyclicIteratorTest#alwaysHasNext", "old_test_code": null, "new_test_code": "@Test\npublic void alwaysHasNext() {\n CyclicIterator cyclicIterator = new CyclicIterator<>(asList(1, 2).iterator());\n cyclicIterator.next();\n cyclicIterator.next();\n assertThat(cyclicIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-17"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n return iterator.hasNext() ? continueInitialIteration() : continueCachedIteration();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": 0.4449, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3077, "class": 1.0, "tfidf": 0.1253}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "line_nums_new": "4-7", "dependency_updated": "inserted", "score": 0.2819, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5385, "class": 0.0, "tfidf": 0.0713}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.173, "method_coverage_gold": 0.1918, "line_coverage_gold": 0.3133, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "678_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_CyclicIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIteratorTest.cyclesThroughElements:()V", "class": "CyclicIteratorTest", "method": "cyclesThroughElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.CyclicIteratorTest#cyclesThroughElements", "old_test_code": null, "new_test_code": "@Test\npublic void cyclesThroughElements() {\n CyclicIterator strings = new CyclicIterator<>(asList(\"bait\", \"switch\").iterator());\n strings.next();\n strings.next();\n assertThat(strings.next(), is(\"bait\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-25"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n return iterator.hasNext() ? continueInitialIteration() : continueCachedIteration();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.1918, "line_coverage_gold": 0.3987, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/CyclicIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/CyclicIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__DroppingIteratorTest_bae31e0c", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/DroppingIteratorTest.java", "test_changes": [{"change_id": "609_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_DroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIteratorTest.dropsElementsOnNextIfNotAlreadyDropped:()V", "class": "DroppingIteratorTest", "method": "dropsElementsOnNextIfNotAlreadyDropped", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.DroppingIteratorTest#dropsElementsOnNextIfNotAlreadyDropped", "old_test_code": null, "new_test_code": "@Test\npublic void dropsElementsOnNextIfNotAlreadyDropped() {\n mockIteratorToHaveValues(iterator, 1, 2, 3, 4, 5, 6);\n assertThat(droppingIterator.next(), is(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-43"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return asIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "line_nums_new": "25-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.4557, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/DroppingIterator.next:()Ljava/lang/Object", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "655_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_DroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIteratorTest.hasNextIfIteratorHoldsMoreThanNElements:()V", "class": "DroppingIteratorTest", "method": "hasNextIfIteratorHoldsMoreThanNElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.DroppingIteratorTest#hasNextIfIteratorHoldsMoreThanNElements", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfIteratorHoldsMoreThanNElements() {\n mockIteratorToHaveValues(iterator, 1, 2, 3, 4, 5, 6);\n assertThat(droppingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (!dropped) {\n drop();\n }\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "line_nums_new": "17-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.692, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.3987, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "664_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_DroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIteratorTest.doesNotHaveNextIfIteratorHoldsNOrLessElements:()V", "class": "DroppingIteratorTest", "method": "doesNotHaveNextIfIteratorHoldsNOrLessElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.DroppingIteratorTest#doesNotHaveNextIfIteratorHoldsNOrLessElements", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfIteratorHoldsNOrLessElements() {\n mockIteratorToHaveValues(iterator, 1, 2, 3, 4, 5);\n assertThat(droppingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-31"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (!dropped) {\n drop();\n }\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "line_nums_new": "17-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.692, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.3987, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/DroppingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/DroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__FilteringIteratorTest_544b2f1d", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/FilteringIteratorTest.java", "test_changes": [{"change_id": "653_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FilteringIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIteratorTest.nextReturnsNextMatchingElement:()V", "class": "FilteringIteratorTest", "method": "nextReturnsNextMatchingElement", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FilteringIteratorTest#nextReturnsNextMatchingElement", "old_test_code": null, "new_test_code": "@Test\npublic void nextReturnsNextMatchingElement() {\n FilteringIterator letters = new FilteringIterator<>(x -> toUpperCase(x) == x, asList('a', 'B', 'C').iterator());\n assertThat(letters.next(), is('B'));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-30"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (hasNext())\n return rewindableIterator.next();\n throw new NoSuchElementException();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "line_nums_new": "23-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.0761, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.0253, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FilteringIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "663_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FilteringIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIteratorTest.doesNotHaveNextIfNoRemainingElementsHoldTrueForPredicate:()V", "class": "FilteringIteratorTest", "method": "doesNotHaveNextIfNoRemainingElementsHoldTrueForPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FilteringIteratorTest#doesNotHaveNextIfNoRemainingElementsHoldTrueForPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfNoRemainingElementsHoldTrueForPredicate() {\n FilteringIterator fiveThroughTen = new FilteringIterator<>(x -> x < 5, asList(5, 6, 7, 8, 9, 10).iterator());\n assertThat(fiveThroughTen.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-40"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return rewindableIterator.isRewound() || hasMoreMatchingElements();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.3197, "line_coverage_gold": 0.6551, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "680_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FilteringIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIteratorTest.hasNextIfAnyElementsHoldTrueForPredicate:()V", "class": "FilteringIteratorTest", "method": "hasNextIfAnyElementsHoldTrueForPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FilteringIteratorTest#hasNextIfAnyElementsHoldTrueForPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfAnyElementsHoldTrueForPredicate() {\n FilteringIterator numbersBelowFive = new FilteringIterator<>(x -> x < 5, asList(5, 3, 10, 2, 4).iterator());\n assertThat(numbersBelowFive.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-20"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return rewindableIterator.isRewound() || hasMoreMatchingElements();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.5571, "method_coverage_gold": 0.3836, "line_coverage_gold": 0.7975, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FilteringIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FilteringIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__FlatteningIteratorTest_048f3bac", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIteratorTest.java", "test_changes": [{"change_id": "651_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FlatteningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIteratorTest.betterLaziness:()V", "class": "FlatteningIteratorTest", "method": "betterLaziness", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FlatteningIteratorTest#betterLaziness", "old_test_code": null, "new_test_code": "@Test(timeout = 500)\npublic void betterLaziness() {\n assertEquals((Integer) 1, new FlatteningIterator<>(magnetize(repeat(1)).iterator()).next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return xs.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "line_nums_new": "22-28", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.2491, "method_coverage_gold": 3.3568, "line_coverage_gold": 3.8166, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "659_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FlatteningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIteratorTest.doesNotHaveNextForEmptyIterable:()V", "class": "FlatteningIteratorTest", "method": "doesNotHaveNextForEmptyIterable", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FlatteningIteratorTest#doesNotHaveNextForEmptyIterable", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextForEmptyIterable() {\n FlatteningIterator iterator = new FlatteningIterator<>(emptyIterator());\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-20"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n while ((xs == null || !xs.hasNext()) && xss.hasNext()) xs = xss.next().iterator();\n return xs != null && xs.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "line_nums_new": "14-20", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1709, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "661_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FlatteningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIteratorTest.doesNotHaveNextForIterableOfEmptyIterables:()V", "class": "FlatteningIteratorTest", "method": "doesNotHaveNextForIterableOfEmptyIterables", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FlatteningIteratorTest#doesNotHaveNextForIterableOfEmptyIterables", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextForIterableOfEmptyIterables() {\n FlatteningIterator iterator = new FlatteningIterator<>(singletonList(emptyList()).iterator());\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-26"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n while ((xs == null || !xs.hasNext()) && xss.hasNext()) xs = xss.next().iterator();\n return xs != null && xs.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "line_nums_new": "14-20", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "667_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_FlatteningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIteratorTest.iteratesNestedIterables:()V", "class": "FlatteningIteratorTest", "method": "iteratesNestedIterables", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.FlatteningIteratorTest#iteratesNestedIterables", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesNestedIterables() {\n FlatteningIterator iterator = new FlatteningIterator<>(asList(singletonList(1), asList(2, 3), emptyList()).iterator());\n assertEquals(1, iterator.next());\n assertEquals(2, iterator.next());\n assertEquals(3, iterator.next());\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-35"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return xs.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "line_nums_new": "22-28", "dependency_updated": "inserted", "score": 0.3864, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1304, "class": 1.0, "tfidf": 0.1883}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "line_nums_new": "14-20", "dependency_updated": "inserted", "score": 0.3848, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.2174, "class": 1.0, "tfidf": 0.1473}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 1.7301, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2563, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/FlatteningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__GroupingIteratorTest_71642b74", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/GroupingIteratorTest.java", "test_changes": [{"change_id": "622_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_GroupingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIteratorTest.groupsElementsInKSlices:()V", "class": "GroupingIteratorTest", "method": "groupsElementsInKSlices", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.GroupingIteratorTest#groupsElementsInKSlices", "old_test_code": null, "new_test_code": "@Test\npublic void groupsElementsInKSlices() {\n mockIteratorToHaveValues(as, 1, 2, 3, 4);\n assertThat(groupingIterator.next(), iterates(1, 2));\n assertThat(groupingIterator.next(), iterates(3, 4));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-50"], "old_production_code": "", "new_production_code": "@Override\npublic Iterable next() {\n List group = new ArrayList<>();\n int i = 0;\n while (i++ < k && asIterator.hasNext()) group.add(asIterator.next());\n return group;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.next:()Ljava/lang/Iterable", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.next:()Ljava/lang/Iterable", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "line_nums_new": "21-28", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/GroupingIterator.next:()Ljava/lang/Iterable", "testsupport/matchers/IterableMatcher.matches:(Ljava/lang/Object;)Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "testsupport/matchers/IterableMatcher.iterates:([Ljava/lang/Object;)Ltestsupport/matchers/IterableMatcher"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.next:()Ljava/lang/Iterable", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "636_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_GroupingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIteratorTest.hasNextIfIteratorHasLessThanKElementsLeft:()V", "class": "GroupingIteratorTest", "method": "hasNextIfIteratorHasLessThanKElementsLeft", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.GroupingIteratorTest#hasNextIfIteratorHasLessThanKElementsLeft", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfIteratorHasLessThanKElementsLeft() {\n mockIteratorToHaveValues(as, 1);\n assertThat(groupingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1709, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "640_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_GroupingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIteratorTest.hasNextIfIteratorHasKMoreElements:()V", "class": "GroupingIteratorTest", "method": "hasNextIfIteratorHasKMoreElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.GroupingIteratorTest#hasNextIfIteratorHasKMoreElements", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfIteratorHasKMoreElements() {\n mockIteratorToHaveValues(as, 1, 2);\n assertThat(groupingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-32"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1709, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "669_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_GroupingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIteratorTest.doesNotHaveNextIfIteratorHasNoElementsLeft:()V", "class": "GroupingIteratorTest", "method": "doesNotHaveNextIfIteratorHasNoElementsLeft", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.GroupingIteratorTest#doesNotHaveNextIfIteratorHasNoElementsLeft", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfIteratorHasNoElementsLeft() {\n assertThat(groupingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-43"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1709, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/GroupingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/GroupingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__ImmutableIteratorTest_d7a27aa8", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIteratorTest.java", "test_changes": [{"change_id": "614_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ImmutableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIteratorTest.doesNotSupportRemove:()V", "class": "ImmutableIteratorTest", "method": "doesNotSupportRemove", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ImmutableIteratorTest#doesNotSupportRemove", "old_test_code": null, "new_test_code": "@Test(expected = UnsupportedOperationException.class)\npublic void doesNotSupportRemove() {\n immutableIterator.remove();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-30"], "old_production_code": "", "new_production_code": "@Override\npublic final void remove() {\n throw new UnsupportedOperationException(\"Iterator is immutable.\");\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "line_nums_new": "7-10", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0639, "line_coverage_gold": 0.057, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__InfiniteIteratorTest_19bc87b3", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIteratorTest.java", "test_changes": [{"change_id": "641_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_InfiniteIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIteratorTest.alwaysHasNext:()V", "class": "InfiniteIteratorTest", "method": "alwaysHasNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.InfiniteIteratorTest#alwaysHasNext", "old_test_code": null, "new_test_code": "@Test\npublic void alwaysHasNext() {\n assertThat(infiniteIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-27"], "old_production_code": "", "new_production_code": "@Override\npublic final boolean hasNext() {\n return true;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "line_nums_new": "4-7", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.0854, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "671_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_InfiniteIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIteratorTest.doesNotSupportRemove:()V", "class": "InfiniteIteratorTest", "method": "doesNotSupportRemove", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.InfiniteIteratorTest#doesNotSupportRemove", "old_test_code": null, "new_test_code": "@Test(expected = UnsupportedOperationException.class)\npublic void doesNotSupportRemove() {\n infiniteIterator.remove();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-32"], "old_production_code": "", "new_production_code": "@Override\npublic final void remove() {\n throw new UnsupportedOperationException(\"Iterator is immutable.\");\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "line_nums_new": "7-10", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.0854, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.remove:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ImmutableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__InitIteratorTest_84c8c390", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/InitIteratorTest.java", "test_changes": [{"change_id": "616_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_InitIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/InitIteratorTest.iteratesAllButLastElement:()V", "class": "InitIteratorTest", "method": "iteratesAllButLastElement", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.InitIteratorTest#iteratesAllButLastElement", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesAllButLastElement() {\n InitIterator iterator = new InitIterator<>(asList(1, 2, 3));\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 1, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 2, iterator.next());\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-36"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (queued == null)\n if (asIterator.hasNext())\n queued = asIterator.next();\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "line_nums_new": "14-21", "dependency_updated": "inserted", "score": 0.3452, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.16, "class": 1.0, "tfidf": 0.1265}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "line_nums_new": "23-31", "dependency_updated": "inserted", "score": 0.3319, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.08, "class": 1.0, "tfidf": 0.1794}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 0.692, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.3418, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InitIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "646_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_InitIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/InitIteratorTest.iteratesNothingForSingleElementIterable:()V", "class": "InitIteratorTest", "method": "iteratesNothingForSingleElementIterable", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.InitIteratorTest#iteratesNothingForSingleElementIterable", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesNothingForSingleElementIterable() {\n assertFalse(new InitIterator<>(singletonList(1)).hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-23"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (queued == null)\n if (asIterator.hasNext())\n queued = asIterator.next();\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "line_nums_new": "14-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.2279, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "662_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_InitIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/InitIteratorTest.iteratesNothingForEmptyIterable:()V", "class": "InitIteratorTest", "method": "iteratesNothingForEmptyIterable", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.InitIteratorTest#iteratesNothingForEmptyIterable", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesNothingForEmptyIterable() {\n assertFalse(new InitIterator<>(Collections::emptyIterator).hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-18"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (queued == null)\n if (asIterator.hasNext())\n queued = asIterator.next();\n return asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "line_nums_new": "14-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InitIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InitIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__MappingIteratorTest_aa5fdbd4", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/MappingIteratorTest.java", "test_changes": [{"change_id": "619_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_MappingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/MappingIteratorTest.nextProducesMappedResult:()V", "class": "MappingIteratorTest", "method": "nextProducesMappedResult", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.MappingIteratorTest#nextProducesMappedResult", "old_test_code": null, "new_test_code": "@Test\npublic void nextProducesMappedResult() {\n Fn1 stringToLength = String::length;\n List words = asList(\"foo\", \"bar\");\n MappingIterator mappingIterator = new MappingIterator<>(stringToLength, words.iterator());\n assertThat(mappingIterator.next(), is(3));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-21"], "old_production_code": "", "new_production_code": "@Override\npublic B next() {\n return function.apply(iterator.next());\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/MappingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/MappingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/MappingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/MappingIterator.java", "line_nums_new": "22-25", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/MappingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/MappingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/MappingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__PredicatedDroppingIteratorTest_8bcaff6b", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.java", "test_changes": [{"change_id": "615_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedDroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.beginsIteratingAtFirstElementThatFailedPredicate:()V", "class": "PredicatedDroppingIteratorTest", "method": "beginsIteratingAtFirstElementThatFailedPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedDroppingIteratorTest#beginsIteratingAtFirstElementThatFailedPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void beginsIteratingAtFirstElementThatFailedPredicate() {\n mockIteratorToHaveValues(iterator, 0, 2, 4, 5, 6);\n assertThat(predicatedDroppingIterator.next(), is(5));\n assertThat(predicatedDroppingIterator.next(), is(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-49"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (hasNext())\n return rewindableIterator.next();\n throw new NoSuchElementException();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "line_nums_new": "25-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.4221, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.1108, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "631_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedDroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.failsIfOnNextNoElementsFailedPredicate:()V", "class": "PredicatedDroppingIteratorTest", "method": "failsIfOnNextNoElementsFailedPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedDroppingIteratorTest#failsIfOnNextNoElementsFailedPredicate", "old_test_code": null, "new_test_code": "@Test(expected = NoSuchElementException.class)\npublic void failsIfOnNextNoElementsFailedPredicate() {\n mockIteratorToHaveValues(iterator, 0, 2, 4, 6);\n predicatedDroppingIterator.next();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-55"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (hasNext())\n return rewindableIterator.next();\n throw new NoSuchElementException();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "line_nums_new": "25-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.3197, "line_coverage_gold": 0.7405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "632_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedDroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.hasNextIfAnyElementsFailForPredicate:()V", "class": "PredicatedDroppingIteratorTest", "method": "hasNextIfAnyElementsFailForPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedDroppingIteratorTest#hasNextIfAnyElementsFailForPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfAnyElementsFailForPredicate() {\n mockIteratorToHaveValues(iterator, 0, 2, 4, 5, 6);\n assertThat(predicatedDroppingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-35"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n dropElementsIfNecessary();\n return rewindableIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "line_nums_new": "19-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.9031, "method_coverage_gold": 0.3836, "line_coverage_gold": 0.8829, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "649_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedDroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.iteratesAllElementsIfFirstElementFailedPredicate:()V", "class": "PredicatedDroppingIteratorTest", "method": "iteratesAllElementsIfFirstElementFailedPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedDroppingIteratorTest#iteratesAllElementsIfFirstElementFailedPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesAllElementsIfFirstElementFailedPredicate() {\n mockIteratorToHaveValues(iterator, -1, 0, 2, 4, 6);\n assertThat(predicatedDroppingIterator.next(), is(-1));\n assertThat(predicatedDroppingIterator.next(), is(0));\n assertThat(predicatedDroppingIterator.next(), is(2));\n assertThat(predicatedDroppingIterator.next(), is(4));\n assertThat(predicatedDroppingIterator.next(), is(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-65"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (hasNext())\n return rewindableIterator.next();\n throw new NoSuchElementException();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "line_nums_new": "25-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 2.2491, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.1108, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "677_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedDroppingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIteratorTest.doesNotHaveNextIfNoElementsFailPredicate:()V", "class": "PredicatedDroppingIteratorTest", "method": "doesNotHaveNextIfNoElementsFailPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedDroppingIteratorTest#doesNotHaveNextIfNoElementsFailPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfNoElementsFailPredicate() {\n mockIteratorToHaveValues(iterator, 0, 2, 4, 6);\n assertThat(predicatedDroppingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-41"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n dropElementsIfNecessary();\n return rewindableIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "line_nums_new": "19-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0381, "method_coverage_gold": 0.2877, "line_coverage_gold": 0.6836, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedDroppingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__PredicatedTakingIteratorTest_e40ef543", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.java", "test_changes": [{"change_id": "613_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.stopsTakingAfterFirstPredicateFailure:()V", "class": "PredicatedTakingIteratorTest", "method": "stopsTakingAfterFirstPredicateFailure", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#stopsTakingAfterFirstPredicateFailure", "old_test_code": null, "new_test_code": "@Test\npublic void stopsTakingAfterFirstPredicateFailure() {\n Iterable words = asList(\"once\", \"upon\", \"a\", \"time\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n predicatedTakingIterator.next();\n predicatedTakingIterator.next();\n assertThat(predicatedTakingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-31"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return rewindableIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "24-30", "dependency_updated": "inserted", "score": 0.3566, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0811, "class": 1.0, "tfidf": 0.0963}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": 0.3213, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1081, "class": 1.0, "tfidf": 0.0611}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.4221, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.0823, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "634_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.doesNotHaveNextIfFirstElementFailsPredicate:()V", "class": "PredicatedTakingIteratorTest", "method": "doesNotHaveNextIfFirstElementFailsPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#doesNotHaveNextIfFirstElementFailsPredicate", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfFirstElementFailsPredicate() {\n Iterable words = asList(\"I\", \"have\", \"a\", \"dream\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n assertThat(predicatedTakingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-38"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return stillTaking && rewindableIterator.hasNext() && predicateSucceedsOnNextElement();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.3197, "line_coverage_gold": 0.6836, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "635_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.takesEverythingIfPredicateNeverFails:()V", "class": "PredicatedTakingIteratorTest", "method": "takesEverythingIfPredicateNeverFails", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#takesEverythingIfPredicateNeverFails", "old_test_code": null, "new_test_code": "@Test\npublic void takesEverythingIfPredicateNeverFails() {\n Iterable words = singletonList(\"yeah\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n assertThat(predicatedTakingIterator.next(), is(\"yeah\"));\n assertThat(predicatedTakingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-62"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return rewindableIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "24-30", "dependency_updated": "inserted", "score": 0.3554, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0833, "class": 1.0, "tfidf": 0.0895}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": 0.3506, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1389, "class": 1.0, "tfidf": 0.0569}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.2491, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.0538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "648_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.hasNextIfPredicateSucceedsForNextElement:()V", "class": "PredicatedTakingIteratorTest", "method": "hasNextIfPredicateSucceedsForNextElement", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#hasNextIfPredicateSucceedsForNextElement", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfPredicateSucceedsForNextElement() {\n Iterable words = asList(\"four\", \"three\", \"two\", \"one\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n assertThat(predicatedTakingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return stillTaking && rewindableIterator.hasNext() && predicateSucceedsOnNextElement();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.5571, "method_coverage_gold": 0.3836, "line_coverage_gold": 0.826, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "670_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.doesNotHaveNextIfTakenAllElements:()V", "class": "PredicatedTakingIteratorTest", "method": "doesNotHaveNextIfTakenAllElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#doesNotHaveNextIfTakenAllElements", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfTakenAllElements() {\n Iterable words = asList(\"four\", \"four\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n predicatedTakingIterator.next();\n predicatedTakingIterator.next();\n assertThat(predicatedTakingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-47"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return rewindableIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "24-30", "dependency_updated": "inserted", "score": 0.4071, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1212, "class": 1.0, "tfidf": 0.0952}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": 0.3837, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1818, "class": 1.0, "tfidf": 0.0605}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.2491, "method_coverage_gold": 0.4476, "line_coverage_gold": 1.0538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "681_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PredicatedTakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIteratorTest.throwsExceptionIfNextAfterFailedPredicate:()V", "class": "PredicatedTakingIteratorTest", "method": "throwsExceptionIfNextAfterFailedPredicate", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PredicatedTakingIteratorTest#throwsExceptionIfNextAfterFailedPredicate", "old_test_code": null, "new_test_code": "@Test(expected = NoSuchElementException.class)\npublic void throwsExceptionIfNextAfterFailedPredicate() {\n Iterable words = singletonList(\"no\");\n PredicatedTakingIterator predicatedTakingIterator = new PredicatedTakingIterator<>(HAS_FOUR_LETTERS, words.iterator());\n predicatedTakingIterator.next();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-54"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return rewindableIterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "line_nums_new": "24-30", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.3841, "method_coverage_gold": 0.3517, "line_coverage_gold": 0.7405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PredicatedTakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__PrependingIteratorTest_aa733fec", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/PrependingIteratorTest.java", "test_changes": [{"change_id": "629_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PrependingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIteratorTest.empty:()V", "class": "PrependingIteratorTest", "method": "empty", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PrependingIteratorTest#empty", "old_test_code": null, "new_test_code": "@Test\npublic void empty() {\n PrependingIterator iterator = new PrependingIterator<>(0, emptyIterator());\n assertFalse(iterator.hasNext());\n thrown.expect(NoSuchElementException.class);\n iterator.next();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-26"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!iterator.hasNext())\n throw new NoSuchElementException();\n return (prependNext = !prependNext) ? iterator.next() : antecedent;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "line_nums_new": "23-29", "dependency_updated": "inserted", "score": 0.3961, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 1.0, "tfidf": 0.3683}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.3132, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.0, "class": 1.0, "tfidf": 0.3169}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.173, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2563, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "683_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_PrependingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIteratorTest.nonEmpty:()V", "class": "PrependingIteratorTest", "method": "nonEmpty", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.PrependingIteratorTest#nonEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void nonEmpty() {\n PrependingIterator iterator = new PrependingIterator<>(0, asList(1, 2, 3).iterator());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 0, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 1, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 0, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 2, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 0, iterator.next());\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 3, iterator.next());\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-45"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!iterator.hasNext())\n throw new NoSuchElementException();\n return (prependNext = !prependNext) ? iterator.next() : antecedent;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "line_nums_new": "23-29", "dependency_updated": "inserted", "score": 0.4771, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.375, "class": 1.0, "tfidf": 0.4025}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.381, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.25, "class": 1.0, "tfidf": 0.3226}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2563, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/PrependingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/PrependingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__RepetitiousIteratorTest_10fca34c", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIteratorTest.java", "test_changes": [{"change_id": "639_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RepetitiousIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIteratorTest.alwaysHasNext:()V", "class": "RepetitiousIteratorTest", "method": "alwaysHasNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RepetitiousIteratorTest#alwaysHasNext", "old_test_code": null, "new_test_code": "@Test\npublic void alwaysHasNext() {\n assertThat(repetitiousIterator.hasNext(), is(true));\n repetitiousIterator.next();\n assertThat(repetitiousIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-23"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n return value;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "line_nums_new": "11-14", "dependency_updated": "inserted", "score": 0.4398, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3077, "class": 1.0, "tfidf": 0.1037}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "line_nums_new": "4-7", "dependency_updated": "inserted", "score": 0.2966, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5385, "class": 0.0, "tfidf": 0.1338}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/InfiniteIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "645_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RepetitiousIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIteratorTest.iteratesSingleValue:()V", "class": "RepetitiousIteratorTest", "method": "iteratesSingleValue", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RepetitiousIteratorTest#iteratesSingleValue", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesSingleValue() {\n assertThat(repetitiousIterator.next(), is(1));\n assertThat(repetitiousIterator.next(), is(1));\n assertThat(repetitiousIterator.next(), is(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-30"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n return value;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "line_nums_new": "11-14", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.1709, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RepetitiousIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__ReversingIteratorTest_3f3858e8", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.java", "test_changes": [{"change_id": "623_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ReversingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.reversesIterator:()V", "class": "ReversingIteratorTest", "method": "reversesIterator", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ReversingIteratorTest#reversesIterator", "old_test_code": null, "new_test_code": "@Test\npublic void reversesIterator() {\n mockIteratorToHaveValues(iterator, 1, 2, 3, 4, 5);\n assertThat(reversingIterator.next(), is(5));\n assertThat(reversingIterator.next(), is(4));\n assertThat(reversingIterator.next(), is(3));\n assertThat(reversingIterator.next(), is(2));\n assertThat(reversingIterator.next(), is(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-47"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!readyToReverse())\n prepareForReversal();\n return reversingIterator.previous();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.3418, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "644_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ReversingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.doesNotReverseUntilNextIsCalled:()V", "class": "ReversingIteratorTest", "method": "doesNotReverseUntilNextIsCalled", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ReversingIteratorTest#doesNotReverseUntilNextIsCalled", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"ResultOfMethodCallIgnored\")\npublic void doesNotReverseUntilNextIsCalled() {\n reversingIterator.hasNext();\n verify(iterator, never()).next();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-54"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return readyToReverse() ? reversingIterator.hasPrevious() : as.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "658_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ReversingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.doesNotHaveNextIfFinishedReversingIterator:()V", "class": "ReversingIteratorTest", "method": "doesNotHaveNextIfFinishedReversingIterator", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ReversingIteratorTest#doesNotHaveNextIfFinishedReversingIterator", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"Duplicates\")\npublic void doesNotHaveNextIfFinishedReversingIterator() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n reversingIterator.next();\n reversingIterator.next();\n reversingIterator.next();\n assertThat(reversingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-64"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!readyToReverse())\n prepareForReversal();\n return reversingIterator.previous();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": 0.4274, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0952, "class": 1.0, "tfidf": 0.1998}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": 0.4179, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1429, "class": 1.0, "tfidf": 0.2333}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3841, "method_coverage_gold": 0.1918, "line_coverage_gold": 0.3703, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "660_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ReversingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.neverInteractsWithIteratorAgainAfterInitialReverse:()V", "class": "ReversingIteratorTest", "method": "neverInteractsWithIteratorAgainAfterInitialReverse", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ReversingIteratorTest#neverInteractsWithIteratorAgainAfterInitialReverse", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"ResultOfMethodCallIgnored\")\npublic void neverInteractsWithIteratorAgainAfterInitialReverse() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n reversingIterator.next();\n verify(iterator, times(4)).hasNext();\n verify(iterator, times(3)).next();\n reversingIterator.next();\n verifyNoMoreInteractions(iterator);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-77"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!readyToReverse())\n prepareForReversal();\n return reversingIterator.previous();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.3418, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "666_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ReversingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIteratorTest.doesNotHaveNextIfIteratorIsEmpty:()V", "class": "ReversingIteratorTest", "method": "doesNotHaveNextIfIteratorIsEmpty", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ReversingIteratorTest#doesNotHaveNextIfIteratorIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfIteratorIsEmpty() {\n when(iterator.hasNext()).thenReturn(false);\n assertThat(reversingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-36"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return readyToReverse() ? reversingIterator.hasPrevious() : as.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ReversingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ReversingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__RewindableIteratorTest_7dd80864", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.java", "test_changes": [{"change_id": "620_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RewindableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.rewindingQueuesPreviousElementUpForNext:()V", "class": "RewindableIteratorTest", "method": "rewindingQueuesPreviousElementUpForNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RewindableIteratorTest#rewindingQueuesPreviousElementUpForNext", "old_test_code": null, "new_test_code": "@Test\npublic void rewindingQueuesPreviousElementUpForNext() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n rewindableIterator.next();\n rewindableIterator.next();\n rewindableIterator.rewind();\n assertThat(rewindableIterator.next(), is(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-36"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (rewound) {\n rewound = false;\n return cache.retrieve();\n }\n A next = asIterator.next();\n cache.store(next);\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "23-32", "dependency_updated": "inserted", "score": 0.4381, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1026, "class": 1.0, "tfidf": 0.2401}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.4027, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1538, "class": 1.0, "tfidf": 0.054}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.2238, "line_coverage_gold": 0.6266, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "630_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RewindableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.cannotRewindIfNoValuesIterated:()V", "class": "RewindableIteratorTest", "method": "cannotRewindIfNoValuesIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RewindableIteratorTest#cannotRewindIfNoValuesIterated", "old_test_code": null, "new_test_code": "@Test(expected = NoSuchElementException.class)\npublic void cannotRewindIfNoValuesIterated() {\n rewindableIterator.rewind();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-52"], "old_production_code": "", "new_production_code": "public void rewind() {\n if (cache.isEmpty())\n throw new NoSuchElementException();\n rewound = true;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2563, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "637_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RewindableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.cannotRewindTheSameElementTwice:()V", "class": "RewindableIteratorTest", "method": "cannotRewindTheSameElementTwice", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RewindableIteratorTest#cannotRewindTheSameElementTwice", "old_test_code": null, "new_test_code": "@Test(expected = NoSuchElementException.class)\npublic void cannotRewindTheSameElementTwice() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n rewindableIterator.next();\n rewindableIterator.rewind();\n rewindableIterator.next();\n rewindableIterator.rewind();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-61"], "old_production_code": "", "new_production_code": "public void rewind() {\n if (cache.isEmpty())\n throw new NoSuchElementException();\n rewound = true;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.4324, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1935, "class": 1.0, "tfidf": 0.1523}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "23-32", "dependency_updated": "inserted", "score": 0.3719, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0968, "class": 1.0, "tfidf": 0.1503}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.2238, "line_coverage_gold": 0.6551, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "638_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RewindableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.hasNextIfFullyIteratedButRewound:()V", "class": "RewindableIteratorTest", "method": "hasNextIfFullyIteratedButRewound", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RewindableIteratorTest#hasNextIfFullyIteratedButRewound", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfFullyIteratedButRewound() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n rewindableIterator.next();\n rewindableIterator.next();\n rewindableIterator.next();\n rewindableIterator.rewind();\n assertThat(rewindableIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-47"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return rewound ? cache.isNotEmpty() : asIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.4222, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2188, "class": 1.0, "tfidf": 0.0913}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "23-32", "dependency_updated": "inserted", "score": 0.414, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.125, "class": 1.0, "tfidf": 0.1218}}, {"dep_id": 2, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "34-39", "dependency_updated": "inserted", "score": 0.3744, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1562, "class": 1.0, "tfidf": 0.057}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 0.8651, "method_coverage_gold": 0.2558, "line_coverage_gold": 0.5127, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.rewind:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "668_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_RewindableIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIteratorTest.doesNotHaveNextIfNoMoreElementsAndIsNotRewound:()V", "class": "RewindableIteratorTest", "method": "doesNotHaveNextIfNoMoreElementsAndIsNotRewound", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.RewindableIteratorTest#doesNotHaveNextIfNoMoreElementsAndIsNotRewound", "old_test_code": null, "new_test_code": "@Test\n@SuppressWarnings(\"Duplicates\")\npublic void doesNotHaveNextIfNoMoreElementsAndIsNotRewound() {\n mockIteratorToHaveValues(iterator, 1, 2, 3);\n rewindableIterator.next();\n rewindableIterator.next();\n rewindableIterator.next();\n assertThat(rewindableIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-71"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (rewound) {\n rewound = false;\n return cache.retrieve();\n }\n A next = asIterator.next();\n cache.store(next);\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "23-32", "dependency_updated": "inserted", "score": 0.4117, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.087, "class": 1.0, "tfidf": 0.1387}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.3854, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1304, "class": 1.0, "tfidf": 0.1039}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.3703, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "testsupport/Mocking.mockIteratorToHaveValues:(Ljava/util/Iterator;[Ljava/lang/Object;)V", "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/RewindableIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/RewindableIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__ScanningIteratorTest_874986d8", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/ScanningIteratorTest.java", "test_changes": [{"change_id": "617_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ScanningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIteratorTest.hasNextAtLeastForB:()V", "class": "ScanningIteratorTest", "method": "hasNextAtLeastForB", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ScanningIteratorTest#hasNextAtLeastForB", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextAtLeastForB() {\n ScanningIterator scanningIterator = new ScanningIterator<>(ADD, 0, emptyIterator());\n assertThat(scanningIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return b != null;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.173, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "657_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ScanningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIteratorTest.nextIsTrueAtLeastForB:()V", "class": "ScanningIteratorTest", "method": "nextIsTrueAtLeastForB", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ScanningIteratorTest#nextIsTrueAtLeastForB", "old_test_code": null, "new_test_code": "@Test\npublic void nextIsTrueAtLeastForB() {\n ScanningIterator scanningIterator = new ScanningIterator<>(ADD, 0, emptyIterator());\n assertThat(scanningIterator.next(), is(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-27"], "old_production_code": "", "new_production_code": "@Override\npublic B next() {\n if (b == null)\n throw new NoSuchElementException();\n B next = b;\n b = asIterator.hasNext() ? scanner.apply(b, asIterator.next()) : null;\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "line_nums_new": "26-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "676_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ScanningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIteratorTest.failsOnNextIfOutOfAs:()V", "class": "ScanningIteratorTest", "method": "failsOnNextIfOutOfAs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ScanningIteratorTest#failsOnNextIfOutOfAs", "old_test_code": null, "new_test_code": "@Test(expected = NoSuchElementException.class)\npublic void failsOnNextIfOutOfAs() {\n ScanningIterator scanningIterator = new ScanningIterator<>(ADD, 0, emptyIterator());\n scanningIterator.next();\n scanningIterator.next();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "", "new_production_code": "@Override\npublic B next() {\n if (b == null)\n throw new NoSuchElementException();\n B next = b;\n b = asIterator.hasNext() ? scanner.apply(b, asIterator.next()) : null;\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "line_nums_new": "26-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.3133, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "679_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ScanningIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIteratorTest.iteratesAsAfterB:()V", "class": "ScanningIteratorTest", "method": "iteratesAsAfterB", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ScanningIteratorTest#iteratesAsAfterB", "old_test_code": null, "new_test_code": "@Test\npublic void iteratesAsAfterB() {\n ScanningIterator scanningIterator = new ScanningIterator<>(ADD, 0, asList(1, 2, 3, 4, 5).iterator());\n scanningIterator.next();\n assertThat(scanningIterator.hasNext(), is(true));\n assertThat(scanningIterator.next(), is(ADD.apply(0, 1)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-36"], "old_production_code": "", "new_production_code": "@Override\npublic B next() {\n if (b == null)\n throw new NoSuchElementException();\n B next = b;\n b = asIterator.hasNext() ? scanner.apply(b, asIterator.next()) : null;\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "line_nums_new": "26-34", "dependency_updated": "inserted", "score": 0.3316, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.125, "class": 1.0, "tfidf": 0.1469}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": 0.3044, "signal_scores": {"nc": 0.0, "lcs_u": 0.4286, "ed": 0.1875, "class": 1.0, "tfidf": 0.0408}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.1598, "line_coverage_gold": 0.3418, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/functions/Fn2.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/ScanningIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ScanningIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__SnocIteratorTest_f7add944", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/SnocIteratorTest.java", "test_changes": [{"change_id": "652_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_SnocIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIteratorTest.hasNextIfNoInitButLastNotYetIterated:()V", "class": "SnocIteratorTest", "method": "hasNextIfNoInitButLastNotYetIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.SnocIteratorTest#hasNextIfNoInitButLastNotYetIterated", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfNoInitButLastNotYetIterated() {\n iterator.next();\n iterator.next();\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 3, iterator.next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-33"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return as.hasNext() ? as.next() : snocs.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": 0.4466, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.2703}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": 0.4269, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1944, "class": 1.0, "tfidf": 0.1284}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.0381, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "654_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_SnocIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIteratorTest.doesNotHaveNextIfLastIterated:()V", "class": "SnocIteratorTest", "method": "doesNotHaveNextIfLastIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.SnocIteratorTest#doesNotHaveNextIfLastIterated", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfLastIterated() {\n iterator.next();\n iterator.next();\n iterator.next();\n assertFalse(iterator.hasNext());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-41"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return as.hasNext() ? as.next() : snocs.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": 0.4445, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1379, "class": 1.0, "tfidf": 0.2426}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": 0.4181, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.2069, "class": 1.0, "tfidf": 0.1894}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.2111, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "674_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_SnocIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIteratorTest.hasNextIfInitNotYetIterated:()V", "class": "SnocIteratorTest", "method": "hasNextIfInitNotYetIterated", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.SnocIteratorTest#hasNextIfInitNotYetIterated", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfInitNotYetIterated() {\n assertTrue(iterator.hasNext());\n assertEquals((Integer) 1, iterator.next());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return as.hasNext() || snocs.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "16-19", "dependency_updated": "inserted", "score": 0.4475, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2593, "class": 1.0, "tfidf": 0.1705}}, {"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": 0.4402, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1481, "class": 1.0, "tfidf": 0.2171}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/SnocIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/SnocIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__TakingIteratorTest_4f3c0325", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/TakingIteratorTest.java", "test_changes": [{"change_id": "633_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_TakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIteratorTest.hasNextBeforeTakingAnyElements:()V", "class": "TakingIteratorTest", "method": "hasNextBeforeTakingAnyElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.TakingIteratorTest#hasNextBeforeTakingAnyElements", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextBeforeTakingAnyElements() {\n List numbers = asList(1, 2, 3, 4, 5);\n TakingIterator takingIterator = new TakingIterator<>(3, numbers.iterator());\n assertThat(takingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-20"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return currentIndex < n && iterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "643_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_TakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIteratorTest.doesNotHaveNextForEmptyIterable:()V", "class": "TakingIteratorTest", "method": "doesNotHaveNextForEmptyIterable", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.TakingIteratorTest#doesNotHaveNextForEmptyIterable", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextForEmptyIterable() {\n TakingIterator takingIterator = new TakingIterator<>(3, Collections.emptyIterator());\n assertThat(takingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-46"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return currentIndex < n && iterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "650_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_TakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIteratorTest.doesNotHaveNextIfTakenEnoughElements:()V", "class": "TakingIteratorTest", "method": "doesNotHaveNextIfTakenEnoughElements", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.TakingIteratorTest#doesNotHaveNextIfTakenEnoughElements", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfTakenEnoughElements() {\n List vowels = asList('a', 'e', 'i', 'o', 'u');\n TakingIterator takingIterator = new TakingIterator<>(3, vowels.iterator());\n takingIterator.next();\n takingIterator.next();\n takingIterator.next();\n assertThat(takingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-30"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (currentIndex >= n)\n throw new NoSuchElementException();\n currentIndex++;\n return iterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "23-30", "dependency_updated": "inserted", "score": 0.4021, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.0812}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.3932, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1667, "class": 1.0, "tfidf": 0.1114}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "673_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_TakingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIteratorTest.doesNotHaveNextIfTakenAllOfIterable:()V", "class": "TakingIteratorTest", "method": "doesNotHaveNextIfTakenAllOfIterable", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.TakingIteratorTest#doesNotHaveNextIfTakenAllOfIterable", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfTakenAllOfIterable() {\n List words = asList(\"we\", \"the\", \"people\");\n TakingIterator takingIterator = new TakingIterator<>(4, words.iterator());\n takingIterator.next();\n takingIterator.next();\n takingIterator.next();\n assertThat(takingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-40"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (currentIndex >= n)\n throw new NoSuchElementException();\n currentIndex++;\n return iterator.next();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "23-30", "dependency_updated": "inserted", "score": 0.402, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1143, "class": 1.0, "tfidf": 0.0784}}, {"dep_id": 1, "method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "line_nums_new": "18-21", "dependency_updated": "inserted", "score": 0.393, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1714, "class": 1.0, "tfidf": 0.1075}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.519, "method_coverage_gold": 0.1279, "line_coverage_gold": 0.2848, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/jnape/palatable/lambda/internal/iteration/TakingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/TakingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__UnfoldingIteratorTest_d3ab87e4", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIteratorTest.java", "test_changes": [{"change_id": "611_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_UnfoldingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIteratorTest.defersNextCallForAsLongAsPossible:()V", "class": "UnfoldingIteratorTest", "method": "defersNextCallForAsLongAsPossible", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.UnfoldingIteratorTest#defersNextCallForAsLongAsPossible", "old_test_code": null, "new_test_code": "@Test\npublic void defersNextCallForAsLongAsPossible() {\n AtomicInteger invocations = new AtomicInteger(0);\n UnfoldingIterator iterator = new UnfoldingIterator<>(x -> {\n invocations.incrementAndGet();\n return just(tuple(x.toString(), x + 1));\n }, 1);\n assertEquals(0, invocations.get());\n iterator.next();\n assertEquals(1, invocations.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-42"], "old_production_code": "", "new_production_code": "@Override\npublic A next() {\n if (!hasNext())\n throw new NoSuchElementException();\n Tuple2 acc = maybeAcc.orElseThrow(NoSuchElementException::new);\n A next = acc._1();\n seed = acc._2();\n maybeAcc = null;\n return next;\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "line_nums_new": "29-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.519, "method_coverage_gold": 1.5345, "line_coverage_gold": 1.9368, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "628_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_UnfoldingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIteratorTest.doesNotHaveNextIfFunctionProducesEmptyValue:()V", "class": "UnfoldingIteratorTest", "method": "doesNotHaveNextIfFunctionProducesEmptyValue", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.UnfoldingIteratorTest#doesNotHaveNextIfFunctionProducesEmptyValue", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfFunctionProducesEmptyValue() {\n assertThat(new UnfoldingIterator(x -> nothing(), 0).hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-29"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (maybeAcc == null)\n maybeAcc = function.apply(seed);\n return maybeAcc.fmap(constantly(true)).orElse(false);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.173, "method_coverage_gold": 1.055, "line_coverage_gold": 1.0253, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "665_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_UnfoldingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIteratorTest.hasNextIfFunctionProducesPresentValue:()V", "class": "UnfoldingIteratorTest", "method": "hasNextIfFunctionProducesPresentValue", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.UnfoldingIteratorTest#hasNextIfFunctionProducesPresentValue", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfFunctionProducesPresentValue() {\n assertThat(new UnfoldingIterator<>(STRINGIFY, 0).hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-24"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n if (maybeAcc == null)\n maybeAcc = function.apply(seed);\n return maybeAcc.fmap(constantly(true)).orElse(false);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "line_nums_new": "21-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 1.3747, "line_coverage_gold": 1.652, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/UnfoldingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__eb596f8_70f4a10__ZippingIteratorTest_9d253381", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "eb596f80c34d473d7ab1dd0f2a96bff202b1860e", "rev2": "70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "rev1_date": "2019-05-11T22:55:20Z", "rev2_date": "2019-05-11T22:55:47Z", "git_diff_url": "https://github.com/palatable/lambda/compare/eb596f80c34d473d7ab1dd0f2a96bff202b1860e...70f4a1073cedccdb55baf2c1b4b8f0fa1275a81e", "test_file": "src/test/java/com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.java", "test_changes": [{"change_id": "612_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ZippingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.doesNotHaveNextIfAsDoesNotHaveNext:()V", "class": "ZippingIteratorTest", "method": "doesNotHaveNextIfAsDoesNotHaveNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ZippingIteratorTest#doesNotHaveNextIfAsDoesNotHaveNext", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfAsDoesNotHaveNext() {\n when(as.hasNext()).thenReturn(false);\n when(bs.hasNext()).thenReturn(true);\n assertThat(zippingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext() && bsIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.173, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "621_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ZippingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.hasNextIfMoreAsAndMoreBs:()V", "class": "ZippingIteratorTest", "method": "hasNextIfMoreAsAndMoreBs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ZippingIteratorTest#hasNextIfMoreAsAndMoreBs", "old_test_code": null, "new_test_code": "@Test\npublic void hasNextIfMoreAsAndMoreBs() {\n when(as.hasNext()).thenReturn(true);\n when(bs.hasNext()).thenReturn(true);\n assertThat(zippingIterator.hasNext(), is(true));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-36"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext() && bsIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "642_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ZippingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.zipsNextElementFromAsAndBs:()V", "class": "ZippingIteratorTest", "method": "zipsNextElementFromAsAndBs", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ZippingIteratorTest#zipsNextElementFromAsAndBs", "old_test_code": null, "new_test_code": "@Test\npublic void zipsNextElementFromAsAndBs() {\n when(as.hasNext()).thenReturn(true);\n when(bs.hasNext()).thenReturn(true);\n when(as.next()).thenReturn(1);\n when(bs.next()).thenReturn(2);\n zippingIterator.next();\n verify(zipper).apply(1, 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-63"], "old_production_code": "", "new_production_code": "@Override\npublic C next() {\n return zipper.apply(asIterator.next(), bsIterator.next());\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.next:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.next:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "line_nums_new": "24-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ZippingIterator.next:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.next:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "656_palatable_lambda-lambda-5.5.0_eb596f8_70f4a10_ZippingIteratorTest", "test_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIteratorTest.doesNotHaveNextIfBsDoesNotHaveNext:()V", "class": "ZippingIteratorTest", "method": "doesNotHaveNextIfBsDoesNotHaveNext", "module": "", "junit_selector": "com.jnape.palatable.lambda.internal.iteration.ZippingIteratorTest#doesNotHaveNextIfBsDoesNotHaveNext", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotHaveNextIfBsDoesNotHaveNext() {\n when(as.hasNext()).thenReturn(true);\n when(bs.hasNext()).thenReturn(false);\n assertThat(zippingIterator.hasNext(), is(false));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-50"], "old_production_code": "", "new_production_code": "@Override\npublic boolean hasNext() {\n return asIterator.hasNext() && bsIterator.hasNext();\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "focal_method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.346, "method_coverage_gold": 0.0959, "line_coverage_gold": 0.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/internal/iteration/ZippingIterator.hasNext:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/internal/iteration/ZippingIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "palatable_lambda-lambda-5.5.0__ff424b0_7269102__MapLensTest_715b6382", "project_name": "palatable_lambda-lambda-5.5.0", "git_clone_url": "https://github.com/palatable/lambda.git", "rev1": "ff424b036bb8860a7606f42ffa313d7c4d498639", "rev2": "72691024bc18ba7f41e8ebb6256de5cda0374fd0", "rev1_date": "2019-01-13T23:49:47Z", "rev2_date": "2019-01-14T00:15:48Z", "git_diff_url": "https://github.com/palatable/lambda/compare/ff424b036bb8860a7606f42ffa313d7c4d498639...72691024bc18ba7f41e8ebb6256de5cda0374fd0", "test_file": "src/test/java/com/jnape/palatable/lambda/lens/lenses/MapLensTest.java", "test_changes": [{"change_id": "511_palatable_lambda-lambda-5.5.0_ff424b0_7269102_MapLensTest", "test_sign": "com/jnape/palatable/lambda/lens/lenses/MapLensTest.asCopyWithCopyFn:()V", "class": "MapLensTest", "method": "asCopyWithCopyFn", "module": "", "junit_selector": "com.jnape.palatable.lambda.lens.lenses.MapLensTest#asCopyWithCopyFn", "old_test_code": null, "new_test_code": "@Test\npublic void asCopyWithCopyFn() {\n assertLensLawfulness(MapLens.asCopy(LinkedHashMap::new), asList(emptyMap(), singletonMap(\"foo\", 1), new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }), asList(emptyMap(), singletonMap(\"foo\", 1), new HashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }));\n assertThat(view(MapLens.asCopy(LinkedHashMap::new), new LinkedHashMap() {\n\n {\n put(\"foo\", 1);\n put(\"bar\", 2);\n put(\"baz\", 3);\n }\n }).keySet(), iterates(\"foo\", \"bar\", \"baz\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-68"], "old_production_code": "", "new_production_code": "public static , K, V> Lens, M, M, M> asCopy(Function, ? extends M> copyFn) {\n return lens(copyFn, (__, copy) -> copy);\n}", "focal_file_path": "src/main/java/com/jnape/palatable/lambda/lens/lenses/MapLens.java", "focal_method_sign": "com/jnape/palatable/lambda/lens/lenses/MapLens.asCopy:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/lens/Lens", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/jnape/palatable/lambda/lens/lenses/MapLens.asCopy:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/lens/Lens", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/lens/lenses/MapLens.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.6985, "method_coverage_gold": 5.2669, "line_coverage_gold": 5.8151, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/jnape/palatable/lambda/lens/lenses/MapLens.asCopy:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/lens/Lens", "testsupport/matchers/IterableMatcher.matches:(Ljava/lang/Object;)Z", "testsupport/matchers/IterableMatcher.iterates:([Ljava/lang/Object;)Ltestsupport/matchers/IterableMatcher", "testsupport/assertion/LensAssert.assertLensLawfulness:(Lcom/jnape/palatable/lambda/lens/LensLike;Ljava/lang/Iterable;Ljava/lang/Iterable;)V", "com/jnape/palatable/lambda/lens/functions/View.view:(Lcom/jnape/palatable/lambda/lens/LensLike;Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/jnape/palatable/lambda/lens/lenses/MapLens.asCopy:(Ljava/util/function/Function;)Lcom/jnape/palatable/lambda/lens/Lens", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/jnape/palatable/lambda/lens/lenses/MapLens.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "lambda-5.5.0", "java_version": 8} {"task_id": "pedrovgs_Algorithms-master__03c8ef8_9e548de__PathToEveryLeafTest_95af0e47", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "03c8ef8d8d661623dae96b01ee39176fb1e80c8d", "rev2": "9e548dedc05062cad6665815078a8b4fc7d8b90e", "rev1_date": "2014-12-23T10:06:28Z", "rev2_date": "2014-12-23T10:19:12Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/03c8ef8d8d661623dae96b01ee39176fb1e80c8d...9e548dedc05062cad6665815078a8b4fc7d8b90e", "test_file": "src/test/java/com/github/pedrovgs/problem38/PathToEveryLeafTest.java", "test_changes": [{"change_id": "277_pedrovgs_Algorithms-master_03c8ef8_9e548de_PathToEveryLeafTest", "test_sign": "com/github/pedrovgs/problem38/PathToEveryLeafTest.shouldNotAcceptNullTrees:()V", "class": "PathToEveryLeafTest", "method": "shouldNotAcceptNullTrees", "module": "", "junit_selector": "com.github.pedrovgs.problem38.PathToEveryLeafTest#shouldNotAcceptNullTrees", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullTrees() {\n pathToEveryLeaf.calculate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-23"], "old_production_code": "", "new_production_code": "public List> calculate(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null instance of BinaryNode\");\n }\n return calculatePathToLeafs(root, new LinkedList());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "focal_method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "line_nums_new": "33-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.1623, "method_coverage_gold": 1.1561, "line_coverage_gold": 0.3484, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9ae6d80be42241ab230fb051426e661e939182c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "280_pedrovgs_Algorithms-master_03c8ef8_9e548de_PathToEveryLeafTest", "test_sign": "com/github/pedrovgs/problem38/PathToEveryLeafTest.shouldReturnOneElementWithJustOneNodeIfTheTreeContainsJustOneElement:()V", "class": "PathToEveryLeafTest", "method": "shouldReturnOneElementWithJustOneNodeIfTheTreeContainsJustOneElement", "module": "", "junit_selector": "com.github.pedrovgs.problem38.PathToEveryLeafTest#shouldReturnOneElementWithJustOneNodeIfTheTreeContainsJustOneElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnOneElementWithJustOneNodeIfTheTreeContainsJustOneElement() {\n BinaryNode root = new BinaryNode(1);\n List> paths = pathToEveryLeaf.calculate(root);\n assertEquals(1, paths.size());\n assertEquals(1, paths.get(0).get(0).getData());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-32"], "old_production_code": "", "new_production_code": "public List> calculate(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null instance of BinaryNode\");\n }\n return calculatePathToLeafs(root, new LinkedList());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "focal_method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "line_nums_new": "33-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.6494, "method_coverage_gold": 4.0462, "line_coverage_gold": 1.7422, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9ae6d80be42241ab230fb051426e661e939182c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "com/github/pedrovgs/binarytree/BinaryNode.getData:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem38/PathToEveryLeaf.calculate:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__0869bf4_ea5beaf__DeleteListNodeTest_a28970fc", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "0869bf475312e556e379b300d2ac02ff1665974b", "rev2": "ea5beaf9616b7891e7ea375840accaeb3ed5c08b", "rev1_date": "2015-01-11T23:15:46Z", "rev2_date": "2015-01-11T23:16:53Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/0869bf475312e556e379b300d2ac02ff1665974b...ea5beaf9616b7891e7ea375840accaeb3ed5c08b", "test_file": "src/test/java/com/github/pedrovgs/problem59/DeleteListNodeTest.java", "test_changes": [{"change_id": "198_pedrovgs_Algorithms-master_0869bf4_ea5beaf_DeleteListNodeTest", "test_sign": "com/github/pedrovgs/problem59/DeleteListNodeTest.shouldNotModifyNodeIfListContainsJustThatNode:()V", "class": "DeleteListNodeTest", "method": "shouldNotModifyNodeIfListContainsJustThatNode", "module": "", "junit_selector": "com.github.pedrovgs.problem59.DeleteListNodeTest#shouldNotModifyNodeIfListContainsJustThatNode", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotModifyNodeIfListContainsJustThatNode() {\n ListNode head = new ListNode(1);\n deleteNode.delete(head);\n assertEquals(head, head);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-46"], "old_production_code": "", "new_production_code": "public void delete(ListNode node) {\n validateInputData(node);\n if (node.getNext() == null) {\n return;\n }\n ListNode next = node.getNext();\n node.setData(next.getData());\n node.setNext(next.getNext());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "focal_method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "line_nums_new": "35-44", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.3282, "method_coverage_gold": 2.1661, "line_coverage_gold": 0.8082, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2d808cf56b98549fcbac1ea44103fdc483c0acca"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "199_pedrovgs_Algorithms-master_0869bf4_ea5beaf_DeleteListNodeTest", "test_sign": "com/github/pedrovgs/problem59/DeleteListNodeTest.shouldNotAcceptNullNodes:()V", "class": "DeleteListNodeTest", "method": "shouldNotAcceptNullNodes", "module": "", "junit_selector": "com.github.pedrovgs.problem59.DeleteListNodeTest#shouldNotAcceptNullNodes", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullNodes() {\n deleteNode.delete(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-38"], "old_production_code": "", "new_production_code": "public void delete(ListNode node) {\n validateInputData(node);\n if (node.getNext() == null) {\n return;\n }\n ListNode next = node.getNext();\n node.setData(next.getData());\n node.setNext(next.getNext());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "focal_method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "line_nums_new": "35-44", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1094, "method_coverage_gold": 0.722, "line_coverage_gold": 0.2204, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2d808cf56b98549fcbac1ea44103fdc483c0acca"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem59/DeleteListNode.delete:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem59/DeleteListNode.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__0b44c12_9f77713__RemoveListDuplicatedElementsTest_46dc2ece", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "0b44c120d3aa63f8660bc6909f8417c7cd2bdf1f", "rev2": "9f7771388a3f83323163b905c33f1ec0e61673ac", "rev1_date": "2015-01-10T00:11:30Z", "rev2_date": "2015-01-10T00:12:34Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/0b44c120d3aa63f8660bc6909f8417c7cd2bdf1f...9f7771388a3f83323163b905c33f1ec0e61673ac", "test_file": "src/test/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.java", "test_changes": [{"change_id": "322_pedrovgs_Algorithms-master_0b44c12_9f77713_RemoveListDuplicatedElementsTest", "test_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.shouldNotAcceptNullInstancesAsParameter:()V", "class": "RemoveListDuplicatedElementsTest", "method": "shouldNotAcceptNullInstancesAsParameter", "module": "", "junit_selector": "com.github.pedrovgs.problem57.RemoveListDuplicatedElementsTest#shouldNotAcceptNullInstancesAsParameter", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsParameter() {\n removeDuplicates.remove(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-39"], "old_production_code": "", "new_production_code": "public void remove(ListNode head) {\n validateInput(head);\n Set elements = new HashSet();\n ListNode currentNode = head;\n ListNode prevNode = null;\n while (currentNode != null) {\n if (elements.contains(currentNode.getData())) {\n prevNode.setNext(currentNode.getNext());\n } else {\n elements.add(currentNode.getData());\n }\n prevNode = currentNode;\n currentNode = currentNode.getNext();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "focal_method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "line_nums_new": "35-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1134, "method_coverage_gold": 0.7605, "line_coverage_gold": 0.2322, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9a35a380d5089ee933c731ffb851477943f699bd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove:(Lcom/github/pedrovgs/linkedlist/ListNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__0d17de9_5f3d5bd__ContainsTest_76ec8142", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "0d17de96bbc00cb9496e7e9c79619e5d7a257e94", "rev2": "5f3d5bd5de9ee50b7aa73c7b55b3d205dd2f0a67", "rev1_date": "2014-12-17T21:48:20Z", "rev2_date": "2014-12-17T22:20:33Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/0d17de96bbc00cb9496e7e9c79619e5d7a257e94...5f3d5bd5de9ee50b7aa73c7b55b3d205dd2f0a67", "test_file": "src/test/java/com/github/pedrovgs/problem32/ContainsTest.java", "test_changes": [{"change_id": "233_pedrovgs_Algorithms-master_0d17de9_5f3d5bd_ContainsTest", "test_sign": "com/github/pedrovgs/problem32/ContainsTest.shouldReturnTrueIfSecondStringContainsFirstString:()V", "class": "ContainsTest", "method": "shouldReturnTrueIfSecondStringContainsFirstString", "module": "", "junit_selector": "com.github.pedrovgs.problem32.ContainsTest#shouldReturnTrueIfSecondStringContainsFirstString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfSecondStringContainsFirstString() {\n String word1 = \"dro\";\n String word2 = \"Pedro\";\n boolean result = contains.evaluate(word1, word2);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-46"], "old_production_code": "", "new_production_code": "public boolean evaluate(String w1, String w2) {\n if (w1 == null || w2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n boolean contains = false;\n for (int i = 0; i < w2.length() - 1; i++) {\n if (w2.charAt(i) == w1.charAt(0)) {\n for (int j = 0; j < w1.length(); j++) {\n if (w1.charAt(j) == w2.charAt(i + j) && j == w1.length() - 1) {\n contains = true;\n break;\n }\n }\n }\n }\n return contains;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "focal_method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 1.9685, "method_coverage_gold": 1.2739, "line_coverage_gold": 1.3089, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9796b503ddf06d796e73592842c70bf9751806a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "234_pedrovgs_Algorithms-master_0d17de9_5f3d5bd_ContainsTest", "test_sign": "com/github/pedrovgs/problem32/ContainsTest.shouldNotAcceptNullStringsAsInput:()V", "class": "ContainsTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem32.ContainsTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n contains.evaluate(null, null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean evaluate(String w1, String w2) {\n if (w1 == null || w2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n boolean contains = false;\n for (int i = 0; i < w2.length() - 1; i++) {\n if (w2.charAt(i) == w1.charAt(0)) {\n for (int j = 0; j < w1.length(); j++) {\n if (w1.charAt(j) == w2.charAt(i + j) && j == w1.length() - 1) {\n contains = true;\n break;\n }\n }\n }\n }\n return contains;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "focal_method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2, "branch_coverage_gold": 0.1969, "method_coverage_gold": 1.2739, "line_coverage_gold": 0.3927, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9796b503ddf06d796e73592842c70bf9751806a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "235_pedrovgs_Algorithms-master_0d17de9_5f3d5bd_ContainsTest", "test_sign": "com/github/pedrovgs/problem32/ContainsTest.shouldBeCaseSensitive:()V", "class": "ContainsTest", "method": "shouldBeCaseSensitive", "module": "", "junit_selector": "com.github.pedrovgs.problem32.ContainsTest#shouldBeCaseSensitive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldBeCaseSensitive() {\n String word1 = \"PE\";\n String word2 = \"Pedro\";\n boolean result = contains.evaluate(word1, word2);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-64"], "old_production_code": "", "new_production_code": "public boolean evaluate(String w1, String w2) {\n if (w1 == null || w2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n boolean contains = false;\n for (int i = 0; i < w2.length() - 1; i++) {\n if (w2.charAt(i) == w1.charAt(0)) {\n for (int j = 0; j < w1.length(); j++) {\n if (w1.charAt(j) == w2.charAt(i + j) && j == w1.length() - 1) {\n contains = true;\n break;\n }\n }\n }\n }\n return contains;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "focal_method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7, "branch_coverage_gold": 2.1654, "method_coverage_gold": 1.2739, "line_coverage_gold": 1.0471, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9796b503ddf06d796e73592842c70bf9751806a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "236_pedrovgs_Algorithms-master_0d17de9_5f3d5bd_ContainsTest", "test_sign": "com/github/pedrovgs/problem32/ContainsTest.shouldReturnFalseIfSecondStringDoesNotContainFirstString:()V", "class": "ContainsTest", "method": "shouldReturnFalseIfSecondStringDoesNotContainFirstString", "module": "", "junit_selector": "com.github.pedrovgs.problem32.ContainsTest#shouldReturnFalseIfSecondStringDoesNotContainFirstString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfSecondStringDoesNotContainFirstString() {\n String word1 = \"ana\";\n String word2 = \"Pedro\";\n boolean result = contains.evaluate(word1, word2);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-55"], "old_production_code": "", "new_production_code": "public boolean evaluate(String w1, String w2) {\n if (w1 == null || w2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n boolean contains = false;\n for (int i = 0; i < w2.length() - 1; i++) {\n if (w2.charAt(i) == w1.charAt(0)) {\n for (int j = 0; j < w1.length(); j++) {\n if (w1.charAt(j) == w2.charAt(i + j) && j == w1.length() - 1) {\n contains = true;\n break;\n }\n }\n }\n }\n return contains;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "focal_method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.9843, "method_coverage_gold": 1.2739, "line_coverage_gold": 0.7853, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f9796b503ddf06d796e73592842c70bf9751806a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem32/Contains.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem32/Contains.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__10480b3_6e87667__BitsToTransformTest_9e37a45a", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "10480b399f95fe55515a2a71466625133eb70bd8", "rev2": "6e87667b40d5b752b39b00d5e01431dd5a9e945e", "rev1_date": "2015-01-24T20:54:15Z", "rev2_date": "2015-01-24T20:55:33Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/10480b399f95fe55515a2a71466625133eb70bd8...6e87667b40d5b752b39b00d5e01431dd5a9e945e", "test_file": "src/test/java/com/github/pedrovgs/problem69/BitsToTransformTest.java", "test_changes": [{"change_id": "351_pedrovgs_Algorithms-master_10480b3_6e87667_BitsToTransformTest", "test_sign": "com/github/pedrovgs/problem69/BitsToTransformTest.shouldClaculateHappyCase:()V", "class": "BitsToTransformTest", "method": "shouldClaculateHappyCase", "module": "", "junit_selector": "com.github.pedrovgs.problem69.BitsToTransformTest#shouldClaculateHappyCase", "old_test_code": null, "new_test_code": "@Test\npublic void shouldClaculateHappyCase() {\n int numA = 5;\n int numB = 1;\n int numberOfDifferentBits = bitsToTransform.calculate(numA, numB);\n assertEquals(1, numberOfDifferentBits);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public int calculate(int numA, int numB) {\n int differentBits = 0;\n for (int XOR = numA ^ numB; XOR != 0; XOR = XOR & (XOR - 1)) {\n differentBits++;\n }\n return differentBits;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "focal_method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2024, "method_coverage_gold": 0.6289, "line_coverage_gold": 0.3253, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["476df5141ac0d80df5ec435f781fd195b08739e2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "352_pedrovgs_Algorithms-master_10480b3_6e87667_BitsToTransformTest", "test_sign": "com/github/pedrovgs/problem69/BitsToTransformTest.shouldReturnTheNumberOfDifferentBitsWhenNumAIsGreater:()V", "class": "BitsToTransformTest", "method": "shouldReturnTheNumberOfDifferentBitsWhenNumAIsGreater", "module": "", "junit_selector": "com.github.pedrovgs.problem69.BitsToTransformTest#shouldReturnTheNumberOfDifferentBitsWhenNumAIsGreater", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheNumberOfDifferentBitsWhenNumAIsGreater() {\n int numA = 99;\n int numB = 78;\n int numberOfDifferentBits = bitsToTransform.calculate(numA, numB);\n assertEquals(4, numberOfDifferentBits);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-68"], "old_production_code": "", "new_production_code": "public int calculate(int numA, int numB) {\n int differentBits = 0;\n for (int XOR = numA ^ numB; XOR != 0; XOR = XOR & (XOR - 1)) {\n differentBits++;\n }\n return differentBits;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "focal_method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2024, "method_coverage_gold": 0.6289, "line_coverage_gold": 0.3253, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["476df5141ac0d80df5ec435f781fd195b08739e2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "353_pedrovgs_Algorithms-master_10480b3_6e87667_BitsToTransformTest", "test_sign": "com/github/pedrovgs/problem69/BitsToTransformTest.shouldReturnZeroIfBothNumbersAreEquals:()V", "class": "BitsToTransformTest", "method": "shouldReturnZeroIfBothNumbersAreEquals", "module": "", "junit_selector": "com.github.pedrovgs.problem69.BitsToTransformTest#shouldReturnZeroIfBothNumbersAreEquals", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfBothNumbersAreEquals() {\n int numA = 7;\n int numB = 7;\n int numberOfDifferentBits = bitsToTransform.calculate(numA, numB);\n assertEquals(0, numberOfDifferentBits);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-41"], "old_production_code": "", "new_production_code": "public int calculate(int numA, int numB) {\n int differentBits = 0;\n for (int XOR = numA ^ numB; XOR != 0; XOR = XOR & (XOR - 1)) {\n differentBits++;\n }\n return differentBits;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "focal_method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.1012, "method_coverage_gold": 0.6289, "line_coverage_gold": 0.2602, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["476df5141ac0d80df5ec435f781fd195b08739e2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "354_pedrovgs_Algorithms-master_10480b3_6e87667_BitsToTransformTest", "test_sign": "com/github/pedrovgs/problem69/BitsToTransformTest.shouldReturnTheNumberOfDifferentBitsWhenNumAIsLower:()V", "class": "BitsToTransformTest", "method": "shouldReturnTheNumberOfDifferentBitsWhenNumAIsLower", "module": "", "junit_selector": "com.github.pedrovgs.problem69.BitsToTransformTest#shouldReturnTheNumberOfDifferentBitsWhenNumAIsLower", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheNumberOfDifferentBitsWhenNumAIsLower() {\n int numA = 78;\n int numB = 99;\n int numberOfDifferentBits = bitsToTransform.calculate(numA, numB);\n assertEquals(4, numberOfDifferentBits);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-59"], "old_production_code": "", "new_production_code": "public int calculate(int numA, int numB) {\n int differentBits = 0;\n for (int XOR = numA ^ numB; XOR != 0; XOR = XOR & (XOR - 1)) {\n differentBits++;\n }\n return differentBits;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "focal_method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2024, "method_coverage_gold": 0.6289, "line_coverage_gold": 0.3253, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["476df5141ac0d80df5ec435f781fd195b08739e2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem69/BitsToTransform.calculate:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem69/BitsToTransform.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__18b8876_4562a87__IsEvenTest_b7d2ca0e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "18b88764aac6171dff74e54fc139997e7a111d8e", "rev2": "4562a87d1b000919e55efdb9324cfb6f4065f667", "rev1_date": "2015-01-22T23:17:41Z", "rev2_date": "2015-01-22T23:18:57Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/18b88764aac6171dff74e54fc139997e7a111d8e...4562a87d1b000919e55efdb9324cfb6f4065f667", "test_file": "src/test/java/com/github/pedrovgs/problem68/IsEvenTest.java", "test_changes": [{"change_id": "419_pedrovgs_Algorithms-master_18b8876_4562a87_IsEvenTest", "test_sign": "com/github/pedrovgs/problem68/IsEvenTest.shouldReturnFalseIfNumberIsOdd:()V", "class": "IsEvenTest", "method": "shouldReturnFalseIfNumberIsOdd", "module": "", "junit_selector": "com.github.pedrovgs.problem68.IsEvenTest#shouldReturnFalseIfNumberIsOdd", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfNumberIsOdd() {\n assertFalse(isEven.check(99));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-45"], "old_production_code": "", "new_production_code": "public boolean check(int n) {\n return (n & 1) != 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "focal_method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1014, "method_coverage_gold": 0.6329, "line_coverage_gold": 0.1305, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["a2066a64b362be8968e26a160dae727b650b56ea"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem68/IsEven.check:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "420_pedrovgs_Algorithms-master_18b8876_4562a87_IsEvenTest", "test_sign": "com/github/pedrovgs/problem68/IsEvenTest.shouldReturnTrueIfNumberIsEven:()V", "class": "IsEvenTest", "method": "shouldReturnTrueIfNumberIsEven", "module": "", "junit_selector": "com.github.pedrovgs.problem68.IsEvenTest#shouldReturnTrueIfNumberIsEven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfNumberIsEven() {\n assertTrue(isEven.check(68));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-41"], "old_production_code": "", "new_production_code": "public boolean check(int n) {\n return (n & 1) != 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "focal_method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1014, "method_coverage_gold": 0.6329, "line_coverage_gold": 0.1305, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["a2066a64b362be8968e26a160dae727b650b56ea"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem68/IsEven.check:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "421_pedrovgs_Algorithms-master_18b8876_4562a87_IsEvenTest", "test_sign": "com/github/pedrovgs/problem68/IsEvenTest.shouldReturnTrueIfNumberIsZero:()V", "class": "IsEvenTest", "method": "shouldReturnTrueIfNumberIsZero", "module": "", "junit_selector": "com.github.pedrovgs.problem68.IsEvenTest#shouldReturnTrueIfNumberIsZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfNumberIsZero() {\n assertTrue(isEven.check(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean check(int n) {\n return (n & 1) != 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "focal_method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1014, "method_coverage_gold": 0.6329, "line_coverage_gold": 0.1305, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["a2066a64b362be8968e26a160dae727b650b56ea"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem68/IsEven.check:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem68/IsEven.check:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem68/IsEven.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__267440a_a9496ce__IsRotationUsingIsSubstringTest_a31bad0b", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "267440aa74dbbb6c0890a8c0464846217446f0f8", "rev2": "a9496cef5a20a5e02c1eef6fced6651ad5fd9512", "rev1_date": "2015-01-08T23:15:02Z", "rev2_date": "2015-01-08T23:15:54Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/267440aa74dbbb6c0890a8c0464846217446f0f8...a9496cef5a20a5e02c1eef6fced6651ad5fd9512", "test_file": "src/test/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstringTest.java", "test_changes": [{"change_id": "215_pedrovgs_Algorithms-master_267440a_a9496ce_IsRotationUsingIsSubstringTest", "test_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstringTest.shouldReturnFalseIfS2IsNotRotationOfS1:()V", "class": "IsRotationUsingIsSubstringTest", "method": "shouldReturnFalseIfS2IsNotRotationOfS1", "module": "", "junit_selector": "com.github.pedrovgs.problem56.IsRotationUsingIsSubstringTest#shouldReturnFalseIfS2IsNotRotationOfS1", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfS2IsNotRotationOfS1() {\n String s1 = \"waterbottle\";\n String s2 = \"pedro\";\n boolean result = isRotation.check(s1, s2);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-52"], "old_production_code": "", "new_production_code": "public boolean check(String s1, String s2) {\n validateInput(s1, s2);\n if (haveSameLength(s1, s2)) {\n String s1s1 = s1 + s1;\n return isSubstring(s1s1, s2);\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "focal_method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "line_nums_new": "38-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.4587, "method_coverage_gold": 1.5444, "line_coverage_gold": 0.5516, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0ab1ef022a5faeca97ce337b1d01ffa1dffd76c7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "216_pedrovgs_Algorithms-master_267440a_a9496ce_IsRotationUsingIsSubstringTest", "test_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstringTest.shouldReturnTrueIfS2IsNotRotationOfS1:()V", "class": "IsRotationUsingIsSubstringTest", "method": "shouldReturnTrueIfS2IsNotRotationOfS1", "module": "", "junit_selector": "com.github.pedrovgs.problem56.IsRotationUsingIsSubstringTest#shouldReturnTrueIfS2IsNotRotationOfS1", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfS2IsNotRotationOfS1() {\n String s1 = \"waterbottle\";\n String s2 = \"erbottlewat\";\n boolean result = isRotation.check(s1, s2);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-61"], "old_production_code": "", "new_production_code": "public boolean check(String s1, String s2) {\n validateInput(s1, s2);\n if (haveSameLength(s1, s2)) {\n String s1s1 = s1 + s1;\n return isSubstring(s1s1, s2);\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "focal_method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "line_nums_new": "38-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.4587, "method_coverage_gold": 1.9305, "line_coverage_gold": 0.7092, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0ab1ef022a5faeca97ce337b1d01ffa1dffd76c7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "217_pedrovgs_Algorithms-master_267440a_a9496ce_IsRotationUsingIsSubstringTest", "test_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstringTest.shouldNotAcceptNullInstancesAsSecondParameter:()V", "class": "IsRotationUsingIsSubstringTest", "method": "shouldNotAcceptNullInstancesAsSecondParameter", "module": "", "junit_selector": "com.github.pedrovgs.problem56.IsRotationUsingIsSubstringTest#shouldNotAcceptNullInstancesAsSecondParameter", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsSecondParameter() {\n isRotation.check(\"\", null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-43"], "old_production_code": "", "new_production_code": "public boolean check(String s1, String s2) {\n validateInput(s1, s2);\n if (haveSameLength(s1, s2)) {\n String s1s1 = s1 + s1;\n return isSubstring(s1s1, s2);\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "focal_method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "line_nums_new": "38-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2294, "method_coverage_gold": 0.7722, "line_coverage_gold": 0.2364, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0ab1ef022a5faeca97ce337b1d01ffa1dffd76c7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "218_pedrovgs_Algorithms-master_267440a_a9496ce_IsRotationUsingIsSubstringTest", "test_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstringTest.shouldNotAcceptNullInstancesAsFirstParameter:()V", "class": "IsRotationUsingIsSubstringTest", "method": "shouldNotAcceptNullInstancesAsFirstParameter", "module": "", "junit_selector": "com.github.pedrovgs.problem56.IsRotationUsingIsSubstringTest#shouldNotAcceptNullInstancesAsFirstParameter", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsFirstParameter() {\n isRotation.check(null, \"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-38"], "old_production_code": "", "new_production_code": "public boolean check(String s1, String s2) {\n validateInput(s1, s2);\n if (haveSameLength(s1, s2)) {\n String s1s1 = s1 + s1;\n return isSubstring(s1s1, s2);\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "focal_method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "line_nums_new": "38-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1147, "method_coverage_gold": 0.7722, "line_coverage_gold": 0.2364, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0ab1ef022a5faeca97ce337b1d01ffa1dffd76c7"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem56/IsRotationUsingIsSubstring.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__27ae84f_dd25e1b__SumListsTest_be216d6f", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "27ae84f447a7f37e776462a430fa91561025ff69", "rev2": "dd25e1b09e0a5985b78279c11ba315df7d95928d", "rev1_date": "2015-01-13T23:57:23Z", "rev2_date": "2015-01-13T23:58:22Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/27ae84f447a7f37e776462a430fa91561025ff69...dd25e1b09e0a5985b78279c11ba315df7d95928d", "test_file": "src/test/java/com/github/pedrovgs/problem61/SumListsTest.java", "test_changes": [{"change_id": "410_pedrovgs_Algorithms-master_27ae84f_dd25e1b_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldSumNumbersWithMoreThanOneDigit:()V", "class": "SumListsTest", "method": "shouldSumNumbersWithMoreThanOneDigit", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldSumNumbersWithMoreThanOneDigit", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSumNumbersWithMoreThanOneDigit() {\n ListNode n1 = createList(new int[] { 1, 5, 5 });\n ListNode n2 = createList(new int[] { 3, 1, 4 });\n int result = sumLists.sum(n1, n2);\n assertEquals(469, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-98"], "old_production_code": "", "new_production_code": "public int sum(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateNumber(n1);\n int n2Value = calculateNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6424, "method_coverage_gold": 3.125, "line_coverage_gold": 1.8362, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["293ae051172c30db3fd427e9c7b1536cab9f161c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumListsTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "411_pedrovgs_Algorithms-master_27ae84f_dd25e1b_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldNotAcceptNullListAsFirstParameter:()V", "class": "SumListsTest", "method": "shouldNotAcceptNullListAsFirstParameter", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldNotAcceptNullListAsFirstParameter", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsFirstParameter() {\n sumLists.sum(null, new ListNode(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["72-75"], "old_production_code": "", "new_production_code": "public int sum(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateNumber(n1);\n int n2Value = calculateNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1071, "method_coverage_gold": 1.0417, "line_coverage_gold": 0.4237, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["293ae051172c30db3fd427e9c7b1536cab9f161c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "412_pedrovgs_Algorithms-master_27ae84f_dd25e1b_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldSumNumbersWithDifferentSizes:()V", "class": "SumListsTest", "method": "shouldSumNumbersWithDifferentSizes", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldSumNumbersWithDifferentSizes", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSumNumbersWithDifferentSizes() {\n ListNode n1 = createList(new int[] { 1, 5, 5 });\n ListNode n2 = createList(new int[] { 5 });\n int result = sumLists.sum(n1, n2);\n assertEquals(160, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-107"], "old_production_code": "", "new_production_code": "public int sum(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateNumber(n1);\n int n2Value = calculateNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6424, "method_coverage_gold": 3.125, "line_coverage_gold": 1.8362, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["293ae051172c30db3fd427e9c7b1536cab9f161c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumListsTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "413_pedrovgs_Algorithms-master_27ae84f_dd25e1b_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldSumNumbersWithJustOneDigit:()V", "class": "SumListsTest", "method": "shouldSumNumbersWithJustOneDigit", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldSumNumbersWithJustOneDigit", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSumNumbersWithJustOneDigit() {\n ListNode n1 = createList(new int[] { 3 });\n ListNode n2 = createList(new int[] { 8 });\n int result = sumLists.sum(n1, n2);\n assertEquals(11, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-89"], "old_production_code": "", "new_production_code": "public int sum(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateNumber(n1);\n int n2Value = calculateNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6424, "method_coverage_gold": 2.7778, "line_coverage_gold": 1.6949, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["293ae051172c30db3fd427e9c7b1536cab9f161c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumListsTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "414_pedrovgs_Algorithms-master_27ae84f_dd25e1b_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldNotAcceptNullListAsSecondParameter:()V", "class": "SumListsTest", "method": "shouldNotAcceptNullListAsSecondParameter", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldNotAcceptNullListAsSecondParameter", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsSecondParameter() {\n sumLists.sum(new ListNode(0), null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-80"], "old_production_code": "", "new_production_code": "public int sum(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateNumber(n1);\n int n2Value = calculateNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2141, "method_coverage_gold": 1.0417, "line_coverage_gold": 0.4237, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["293ae051172c30db3fd427e9c7b1536cab9f161c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sum:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__29a479b_b370de8__PalindromeListTest_e6e9c7fd", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "29a479bfd331dccdd646e2e9e616ad61c268b2de", "rev2": "b370de88793a2f59aee61db30df6f320944d8781", "rev1_date": "2015-01-14T23:29:01Z", "rev2_date": "2015-01-14T23:30:18Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/29a479bfd331dccdd646e2e9e616ad61c268b2de...b370de88793a2f59aee61db30df6f320944d8781", "test_file": "src/test/java/com/github/pedrovgs/problem62/PalindromeListTest.java", "test_changes": [{"change_id": "344_pedrovgs_Algorithms-master_29a479b_b370de8_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldNotAcceptNullListAsInputReversing:()V", "class": "PalindromeListTest", "method": "shouldNotAcceptNullListAsInputReversing", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldNotAcceptNullListAsInputReversing", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsInputReversing() {\n palindromeList.checkReversing(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-39"], "old_production_code": "", "new_production_code": "public boolean checkReversing(ListNode list) {\n validateInput(list);\n ListNode reversedList = reverseLinkedList.reverseIterative(list);\n boolean isPalindrome = true;\n while (list != null) {\n isPalindrome = list.equals(reversedList);\n if (!isPalindrome) {\n break;\n }\n reversedList = reversedList.getNext();\n list = list.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "42-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1064, "method_coverage_gold": 1.0309, "line_coverage_gold": 0.419, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["966a5ace521afeb68f0a425f995920e76304105a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "345_pedrovgs_Algorithms-master_29a479b_b370de8_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldReturnTrueIfListContainsJustOneNodeReversing:()V", "class": "PalindromeListTest", "method": "shouldReturnTrueIfListContainsJustOneNodeReversing", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldReturnTrueIfListContainsJustOneNodeReversing", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfListContainsJustOneNodeReversing() {\n ListNode list = new ListNode(1);\n boolean result = palindromeList.checkReversing(list);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-47"], "old_production_code": "", "new_production_code": "public boolean checkReversing(ListNode list) {\n validateInput(list);\n ListNode reversedList = reverseLinkedList.reverseIterative(list);\n boolean isPalindrome = true;\n while (list != null) {\n isPalindrome = list.equals(reversedList);\n if (!isPalindrome) {\n break;\n }\n reversedList = reversedList.getNext();\n list = list.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "42-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.7447, "method_coverage_gold": 3.0928, "line_coverage_gold": 1.7458, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["966a5ace521afeb68f0a425f995920e76304105a"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkReversing:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__313da80_be39309__ReverseStringTest_a6b473b4", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "313da800dabefbaa3cff5b5d4bb9b32a7cf1181d", "rev2": "be39309088071ce09aea3ca547af45442be10e32", "rev1_date": "2015-01-04T22:49:55Z", "rev2_date": "2015-01-04T22:55:05Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/313da800dabefbaa3cff5b5d4bb9b32a7cf1181d...be39309088071ce09aea3ca547af45442be10e32", "test_file": "src/test/java/com/github/pedrovgs/problem51/ReverseStringTest.java", "test_changes": [{"change_id": "415_pedrovgs_Algorithms-master_313da80_be39309_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReverseStringRecursive:()V", "class": "ReverseStringTest", "method": "shouldReverseStringRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReverseStringRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReverseStringRecursive() {\n String result = reverseString.reverseRecursive(\"Pedro\");\n assertEquals(\"ordeP\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-77"], "old_production_code": "", "new_production_code": "public String reverseRecursive(String input) {\n validateInput(input);\n return reverseRecursiveInner(input, input.length() - 1, new StringBuilder());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3797, "method_coverage_gold": 1.7699, "line_coverage_gold": 0.7958, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "416_pedrovgs_Algorithms-master_313da80_be39309_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldNotAcceptNullStringsRecursive:()V", "class": "ReverseStringTest", "method": "shouldNotAcceptNullStringsRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldNotAcceptNullStringsRecursive", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsRecursive() {\n reverseString.reverseRecursive(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-59"], "old_production_code": "", "new_production_code": "public String reverseRecursive(String input) {\n validateInput(input);\n return reverseRecursiveInner(input, input.length() - 1, new StringBuilder());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1266, "method_coverage_gold": 0.885, "line_coverage_gold": 0.2653, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "417_pedrovgs_Algorithms-master_313da80_be39309_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnAnEmptyStringIfTheInputIsEmptyRecursive:()V", "class": "ReverseStringTest", "method": "shouldReturnAnEmptyStringIfTheInputIsEmptyRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnAnEmptyStringIfTheInputIsEmptyRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAnEmptyStringIfTheInputIsEmptyRecursive() {\n String result = reverseString.reverseRecursive(\"\");\n assertEquals(\"\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["61-65"], "old_production_code": "", "new_production_code": "public String reverseRecursive(String input) {\n validateInput(input);\n return reverseRecursiveInner(input, input.length() - 1, new StringBuilder());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2532, "method_coverage_gold": 1.7699, "line_coverage_gold": 0.6189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "418_pedrovgs_Algorithms-master_313da80_be39309_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnTheSameStringIfTheInputStringContainsJustOneCharRecursive:()V", "class": "ReverseStringTest", "method": "shouldReturnTheSameStringIfTheInputStringContainsJustOneCharRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnTheSameStringIfTheInputStringContainsJustOneCharRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheSameStringIfTheInputStringContainsJustOneCharRecursive() {\n String result = reverseString.reverseRecursive(\"a\");\n assertEquals(\"a\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-71"], "old_production_code": "", "new_production_code": "public String reverseRecursive(String input) {\n validateInput(input);\n return reverseRecursiveInner(input, input.length() - 1, new StringBuilder());\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3797, "method_coverage_gold": 1.7699, "line_coverage_gold": 0.7958, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__34ffe8d_6dcccf6__FindNthMostRepeatedElementTest_b9eb2065", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "34ffe8de8371747156805c9149c86dd86938e18a", "rev2": "6dcccf658d395c053dd994cac7d3aa65f1b9c258", "rev1_date": "2014-12-30T12:11:07Z", "rev2_date": "2014-12-30T12:25:15Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/34ffe8de8371747156805c9149c86dd86938e18a...6dcccf658d395c053dd994cac7d3aa65f1b9c258", "test_file": "src/test/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElementTest.java", "test_changes": [{"change_id": "313_pedrovgs_Algorithms-master_34ffe8d_6dcccf6_FindNthMostRepeatedElementTest", "test_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElementTest.shouldFindNthMostRepeatedElement:()V", "class": "FindNthMostRepeatedElementTest", "method": "shouldFindNthMostRepeatedElement", "module": "", "junit_selector": "com.github.pedrovgs.problem45.FindNthMostRepeatedElementTest#shouldFindNthMostRepeatedElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindNthMostRepeatedElement() {\n int[] numbers = { 1, 1, 2, 3, 4, 5, 2, 2, 2, 4, 4, 6, 7, 4, 9, 214, 4, 5 };\n int result = findNthMostRepeatedElement.find(numbers, 2);\n assertEquals(1, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-56"], "old_production_code": "", "new_production_code": "public int find(int[] numbers, int position) {\n validateInput(numbers, position);\n Integer result = null;\n Map counter = new HashMap();\n for (int i : numbers) {\n if (counter.get(i) == null) {\n counter.put(i, 1);\n } else {\n counter.put(i, counter.get(i) + 1);\n }\n }\n for (Integer candidate : counter.keySet()) {\n if (counter.get(candidate) == position) {\n result = candidate;\n break;\n }\n }\n validateResult(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "focal_method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "line_nums_new": "33-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 1.2821, "method_coverage_gold": 2.0202, "line_coverage_gold": 1.7787, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["23af3ef32fa015e9726789c45c5f275fb86948a4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "314_pedrovgs_Algorithms-master_34ffe8d_6dcccf6_FindNthMostRepeatedElementTest", "test_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElementTest.shouldThrowExceptionIfThereAreNoElementsRepeatedNTimesInTheArrayPassedAsArgument:()V", "class": "FindNthMostRepeatedElementTest", "method": "shouldThrowExceptionIfThereAreNoElementsRepeatedNTimesInTheArrayPassedAsArgument", "module": "", "junit_selector": "com.github.pedrovgs.problem45.FindNthMostRepeatedElementTest#shouldThrowExceptionIfThereAreNoElementsRepeatedNTimesInTheArrayPassedAsArgument", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldThrowExceptionIfThereAreNoElementsRepeatedNTimesInTheArrayPassedAsArgument() {\n int[] numbers = { 1, 2, 3 };\n findNthMostRepeatedElement.find(numbers, 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-48"], "old_production_code": "", "new_production_code": "public int find(int[] numbers, int position) {\n validateInput(numbers, position);\n Integer result = null;\n Map counter = new HashMap();\n for (int i : numbers) {\n if (counter.get(i) == null) {\n counter.put(i, 1);\n } else {\n counter.put(i, counter.get(i) + 1);\n }\n }\n for (Integer candidate : counter.keySet()) {\n if (counter.get(candidate) == position) {\n result = candidate;\n break;\n }\n }\n validateResult(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "focal_method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "line_nums_new": "33-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 1.2821, "method_coverage_gold": 2.0202, "line_coverage_gold": 1.3834, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["23af3ef32fa015e9726789c45c5f275fb86948a4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "315_pedrovgs_Algorithms-master_34ffe8d_6dcccf6_FindNthMostRepeatedElementTest", "test_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElementTest.shouldNotAcceptNullArrays:()V", "class": "FindNthMostRepeatedElementTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem45.FindNthMostRepeatedElementTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n findNthMostRepeatedElement.find(null, 9);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public int find(int[] numbers, int position) {\n validateInput(numbers, position);\n Integer result = null;\n Map counter = new HashMap();\n for (int i : numbers) {\n if (counter.get(i) == null) {\n counter.put(i, 1);\n } else {\n counter.put(i, counter.get(i) + 1);\n }\n }\n for (Integer candidate : counter.keySet()) {\n if (counter.get(candidate) == position) {\n result = candidate;\n break;\n }\n }\n validateResult(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "focal_method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "line_nums_new": "33-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1425, "method_coverage_gold": 1.0101, "line_coverage_gold": 0.2964, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["23af3ef32fa015e9726789c45c5f275fb86948a4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "316_pedrovgs_Algorithms-master_34ffe8d_6dcccf6_FindNthMostRepeatedElementTest", "test_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElementTest.shouldNotAcceptInputValuesMinorThanZero:()V", "class": "FindNthMostRepeatedElementTest", "method": "shouldNotAcceptInputValuesMinorThanZero", "module": "", "junit_selector": "com.github.pedrovgs.problem45.FindNthMostRepeatedElementTest#shouldNotAcceptInputValuesMinorThanZero", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptInputValuesMinorThanZero() {\n findNthMostRepeatedElement.find(new int[0], 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-41"], "old_production_code": "", "new_production_code": "public int find(int[] numbers, int position) {\n validateInput(numbers, position);\n Integer result = null;\n Map counter = new HashMap();\n for (int i : numbers) {\n if (counter.get(i) == null) {\n counter.put(i, 1);\n } else {\n counter.put(i, counter.get(i) + 1);\n }\n }\n for (Integer candidate : counter.keySet()) {\n if (counter.get(candidate) == position) {\n result = candidate;\n break;\n }\n }\n validateResult(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "focal_method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "line_nums_new": "33-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2849, "method_coverage_gold": 1.0101, "line_coverage_gold": 0.2964, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["23af3ef32fa015e9726789c45c5f275fb86948a4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem45/FindNthMostRepeatedElement.find:([II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem45/FindNthMostRepeatedElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__36ce597_873140e__MoveElementsToPositionsTest_7a194e3d", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "36ce5975f62b327ffca49ed5cfcf5262c837c398", "rev2": "873140e9b34305c4ef9b9cb1f32fbfa98184782d", "rev1_date": "2014-12-25T18:18:23Z", "rev2_date": "2014-12-25T18:49:54Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/36ce5975f62b327ffca49ed5cfcf5262c837c398...873140e9b34305c4ef9b9cb1f32fbfa98184782d", "test_file": "src/test/java/com/github/pedrovgs/problem40/MoveElementsToPositionsTest.java", "test_changes": [{"change_id": "173_pedrovgs_Algorithms-master_36ce597_873140e_MoveElementsToPositionsTest", "test_sign": "com/github/pedrovgs/problem40/MoveElementsToPositionsTest.shouldNotAcceptNullArraysAsInput:()V", "class": "MoveElementsToPositionsTest", "method": "shouldNotAcceptNullArraysAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem40.MoveElementsToPositionsTest#shouldNotAcceptNullArraysAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArraysAsInput() {\n moveElementsToPosition.move(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public void move(int[] array) {\n if (array == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n int size = array.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < size - 1; i++) {\n checkIfElementIsInsideTheValidInterval(array[i], size);\n if (array[i] > array[i + 1]) {\n swap = true;\n swapElements(array, i, i + 1);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "focal_method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "line_nums_new": "34-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.16666666666666666, "branch_coverage_gold": 0.1567, "method_coverage_gold": 1.1173, "line_coverage_gold": 0.3341, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["325194ee84e180e9b1ee017bea6d148504210d7a", "7b7b4292c6fc3d4b04491c9b49425eeeb417d998"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "174_pedrovgs_Algorithms-master_36ce597_873140e_MoveElementsToPositionsTest", "test_sign": "com/github/pedrovgs/problem40/MoveElementsToPositionsTest.shouldNotAcceptAnyNumberGreaterThanArrayLengthOrMinorThanOne:()V", "class": "MoveElementsToPositionsTest", "method": "shouldNotAcceptAnyNumberGreaterThanArrayLengthOrMinorThanOne", "module": "", "junit_selector": "com.github.pedrovgs.problem40.MoveElementsToPositionsTest#shouldNotAcceptAnyNumberGreaterThanArrayLengthOrMinorThanOne", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptAnyNumberGreaterThanArrayLengthOrMinorThanOne() {\n int[] input = { 4, 1 };\n moveElementsToPosition.move(input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "", "new_production_code": "public void move(int[] array) {\n if (array == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n int size = array.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < size - 1; i++) {\n checkIfElementIsInsideTheValidInterval(array[i], size);\n if (array[i] > array[i + 1]) {\n swap = true;\n swapElements(array, i, i + 1);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "focal_method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "line_nums_new": "34-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.7837, "method_coverage_gold": 1.676, "line_coverage_gold": 1.0022, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["325194ee84e180e9b1ee017bea6d148504210d7a", "7b7b4292c6fc3d4b04491c9b49425eeeb417d998"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem40/MoveElementsToPositions.move:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem40/MoveElementsToPositions.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__3928cba_8909336__PalindromesTest_33c38f1e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "3928cba10f0d5f6dc9b97d72842d2deae7fa2677", "rev2": "8909336fdbf95abd4cf6697f31584d939b560d90", "rev1_date": "2014-12-11T20:09:53Z", "rev2_date": "2014-12-11T20:17:25Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/3928cba10f0d5f6dc9b97d72842d2deae7fa2677...8909336fdbf95abd4cf6697f31584d939b560d90", "test_file": "src/test/java/com/github/pedrovgs/problem26/PalindromesTest.java", "test_changes": [{"change_id": "189_pedrovgs_Algorithms-master_3928cba_8909336_PalindromesTest", "test_sign": "com/github/pedrovgs/problem26/PalindromesTest.shouldReturnTrueIfInputStringIsEmpty:()V", "class": "PalindromesTest", "method": "shouldReturnTrueIfInputStringIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem26.PalindromesTest#shouldReturnTrueIfInputStringIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputStringIsEmpty() {\n assertTrue(palindromes.evaluate(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-45"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.4695, "method_coverage_gold": 1.5267, "line_coverage_gold": 0.9288, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["bdad3630b202f9266d3ca048e5e3007da2000065", "9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "190_pedrovgs_Algorithms-master_3928cba_8909336_PalindromesTest", "test_sign": "com/github/pedrovgs/problem26/PalindromesTest.shouldNotAcceptNullStrings:()V", "class": "PalindromesTest", "method": "shouldNotAcceptNullStrings", "module": "", "junit_selector": "com.github.pedrovgs.problem26.PalindromesTest#shouldNotAcceptNullStrings", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStrings() {\n palindromes.evaluate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2222222222222222, "branch_coverage_gold": 0.2347, "method_coverage_gold": 1.5267, "line_coverage_gold": 0.4644, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["bdad3630b202f9266d3ca048e5e3007da2000065", "9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "191_pedrovgs_Algorithms-master_3928cba_8909336_PalindromesTest", "test_sign": "com/github/pedrovgs/problem26/PalindromesTest.shouldReturnFalseIfInputIsPalindrome:()V", "class": "PalindromesTest", "method": "shouldReturnFalseIfInputIsPalindrome", "module": "", "junit_selector": "com.github.pedrovgs.problem26.PalindromesTest#shouldReturnFalseIfInputIsPalindrome", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputIsPalindrome() {\n assertFalse(palindromes.evaluate(\"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-50"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 0.7042, "method_coverage_gold": 1.5267, "line_coverage_gold": 1.3932, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["bdad3630b202f9266d3ca048e5e3007da2000065", "9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "192_pedrovgs_Algorithms-master_3928cba_8909336_PalindromesTest", "test_sign": "com/github/pedrovgs/problem26/PalindromesTest.shouldReturnTrueIfInputIsPalindrome:()V", "class": "PalindromesTest", "method": "shouldReturnTrueIfInputIsPalindrome", "module": "", "junit_selector": "com.github.pedrovgs.problem26.PalindromesTest#shouldReturnTrueIfInputIsPalindrome", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputIsPalindrome() {\n assertTrue(palindromes.evaluate(\"ana\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.939, "method_coverage_gold": 1.5267, "line_coverage_gold": 1.0836, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["bdad3630b202f9266d3ca048e5e3007da2000065", "9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__3928cba_bdad363__PalindromesTest_33c38f1e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "3928cba10f0d5f6dc9b97d72842d2deae7fa2677", "rev2": "bdad3630b202f9266d3ca048e5e3007da2000065", "rev1_date": "2014-12-11T20:09:53Z", "rev2_date": "2014-12-11T20:16:09Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/3928cba10f0d5f6dc9b97d72842d2deae7fa2677...bdad3630b202f9266d3ca048e5e3007da2000065", "test_file": "src/test/java/com/github/pedrovgs/PalindromesTest.java", "test_changes": [{"change_id": "237_pedrovgs_Algorithms-master_3928cba_bdad363_PalindromesTest", "test_sign": "com/github/pedrovgs/PalindromesTest.shouldReturnFalseIfInputIsPalindrome:()V", "class": "PalindromesTest", "method": "shouldReturnFalseIfInputIsPalindrome", "module": "", "junit_selector": "com.github.pedrovgs.PalindromesTest#shouldReturnFalseIfInputIsPalindrome", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputIsPalindrome() {\n assertFalse(palindromes.evaluate(\"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-50"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 0.7042, "method_coverage_gold": 1.5267, "line_coverage_gold": 1.3932, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "238_pedrovgs_Algorithms-master_3928cba_bdad363_PalindromesTest", "test_sign": "com/github/pedrovgs/PalindromesTest.shouldNotAcceptNullStrings:()V", "class": "PalindromesTest", "method": "shouldNotAcceptNullStrings", "module": "", "junit_selector": "com.github.pedrovgs.PalindromesTest#shouldNotAcceptNullStrings", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStrings() {\n palindromes.evaluate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2222222222222222, "branch_coverage_gold": 0.2347, "method_coverage_gold": 1.5267, "line_coverage_gold": 0.4644, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "239_pedrovgs_Algorithms-master_3928cba_bdad363_PalindromesTest", "test_sign": "com/github/pedrovgs/PalindromesTest.shouldReturnTrueIfInputIsPalindrome:()V", "class": "PalindromesTest", "method": "shouldReturnTrueIfInputIsPalindrome", "module": "", "junit_selector": "com.github.pedrovgs.PalindromesTest#shouldReturnTrueIfInputIsPalindrome", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputIsPalindrome() {\n assertTrue(palindromes.evaluate(\"ana\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.939, "method_coverage_gold": 1.5267, "line_coverage_gold": 1.0836, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "240_pedrovgs_Algorithms-master_3928cba_bdad363_PalindromesTest", "test_sign": "com/github/pedrovgs/PalindromesTest.shouldReturnTrueIfInputStringIsEmpty:()V", "class": "PalindromesTest", "method": "shouldReturnTrueIfInputStringIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.PalindromesTest#shouldReturnTrueIfInputStringIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputStringIsEmpty() {\n assertTrue(palindromes.evaluate(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-45"], "old_production_code": "", "new_production_code": "public boolean evaluate(String word) {\n if (word == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n }\n boolean result = true;\n int length = word.length();\n for (int i = 0; i < length / 2; i++) {\n if (word.charAt(i) != word.charAt(length - 1 - i)) {\n result = false;\n break;\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "focal_method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "line_nums_new": "35-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.4695, "method_coverage_gold": 1.5267, "line_coverage_gold": 0.9288, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["9b81571b20ee795b0af95d5ab24f2905fad6f273"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem26/Palindromes.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem26/Palindromes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__3f10cbc_f04c5fa__ReplaceSpacesTest_32a60fef", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "3f10cbcac67518f73d06749f8b5894ebf73d7d5b", "rev2": "f04c5faf44e49d7c628265c72d39fc99098c330c", "rev1_date": "2015-01-04T23:00:08Z", "rev2_date": "2015-01-04T23:22:43Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/3f10cbcac67518f73d06749f8b5894ebf73d7d5b...f04c5faf44e49d7c628265c72d39fc99098c330c", "test_file": "src/test/java/com/github/pedrovgs/problem52/ReplaceSpacesTest.java", "test_changes": [{"change_id": "122_pedrovgs_Algorithms-master_3f10cbc_f04c5fa_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithJustOneSpace:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithJustOneSpace", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithJustOneSpace", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithJustOneSpace() {\n char[] input = new char[8];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = ' ';\n input[3] = 'd';\n input[4] = 'r';\n input[5] = 'o';\n replaceSpaces.replace(input);\n assertArrayEquals(new char[] { 'p', 'e', '%', '2', '0', 'd', 'r', 'o' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-60"], "old_production_code": "", "new_production_code": "public void replace(char[] input) {\n validateInput(input);\n char[] result = new char[input.length];\n for (int i = 0, j = 0; i < input.length && j < input.length; i++, j++) {\n if (input[i] == ' ') {\n result[j++] = '%';\n result[j++] = '2';\n result[j] = '0';\n } else {\n result[j] = input[i];\n }\n }\n copyArray(result, input);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "34-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0, "method_coverage_gold": 1.7391, "line_coverage_gold": 1.3937, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["7511e75761ef170df53586300a97351064b35881", "536e3dbdcca4f02acc666ab8e9603ec153a22d59", "56dc9068aed9448285b54d5559e6898cd0cd40d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "123_pedrovgs_Algorithms-master_3f10cbc_f04c5fa_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace() {\n char[] input = new char[13];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = ' ';\n input[3] = 'd';\n input[4] = 'r';\n input[5] = 'o';\n input[6] = ' ';\n input[7] = 'g';\n input[8] = 's';\n replaceSpaces.replace(input);\n assertArrayEquals(new char[] { 'p', 'e', '%', '2', '0', 'd', 'r', 'o', '%', '2', '0', 'g', 's' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-92"], "old_production_code": "", "new_production_code": "public void replace(char[] input) {\n validateInput(input);\n char[] result = new char[input.length];\n for (int i = 0, j = 0; i < input.length && j < input.length; i++, j++) {\n if (input[i] == ' ') {\n result[j++] = '%';\n result[j++] = '2';\n result[j] = '0';\n } else {\n result[j] = input[i];\n }\n }\n copyArray(result, input);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "34-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0, "method_coverage_gold": 1.7391, "line_coverage_gold": 1.3937, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["7511e75761ef170df53586300a97351064b35881", "536e3dbdcca4f02acc666ab8e9603ec153a22d59", "56dc9068aed9448285b54d5559e6898cd0cd40d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "124_pedrovgs_Algorithms-master_3f10cbc_f04c5fa_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces() {\n char[] input = new char[6];\n input[0] = ' ';\n input[1] = ' ';\n replaceSpaces.replace(input);\n assertArrayEquals(new char[] { '%', '2', '0', '%', '2', '0' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-46"], "old_production_code": "", "new_production_code": "public void replace(char[] input) {\n validateInput(input);\n char[] result = new char[input.length];\n for (int i = 0, j = 0; i < input.length && j < input.length; i++, j++) {\n if (input[i] == ' ') {\n result[j++] = '%';\n result[j++] = '2';\n result[j] = '0';\n } else {\n result[j] = input[i];\n }\n }\n copyArray(result, input);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "34-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 0.875, "method_coverage_gold": 1.7391, "line_coverage_gold": 1.3066, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["7511e75761ef170df53586300a97351064b35881", "536e3dbdcca4f02acc666ab8e9603ec153a22d59", "56dc9068aed9448285b54d5559e6898cd0cd40d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "125_pedrovgs_Algorithms-master_3f10cbc_f04c5fa_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent() {\n char[] input = new char[8];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = 'd';\n input[3] = 'r';\n input[4] = 'o';\n input[5] = ' ';\n replaceSpaces.replace(input);\n assertArrayEquals(new char[] { 'p', 'e', 'd', 'r', 'o', '%', '2', '0' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-74"], "old_production_code": "", "new_production_code": "public void replace(char[] input) {\n validateInput(input);\n char[] result = new char[input.length];\n for (int i = 0, j = 0; i < input.length && j < input.length; i++, j++) {\n if (input[i] == ' ') {\n result[j++] = '%';\n result[j++] = '2';\n result[j] = '0';\n } else {\n result[j] = input[i];\n }\n }\n copyArray(result, input);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "34-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0, "method_coverage_gold": 1.7391, "line_coverage_gold": 1.3937, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["7511e75761ef170df53586300a97351064b35881", "536e3dbdcca4f02acc666ab8e9603ec153a22d59", "56dc9068aed9448285b54d5559e6898cd0cd40d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "126_pedrovgs_Algorithms-master_3f10cbc_f04c5fa_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldNotAcceptNullArrays:()V", "class": "ReplaceSpacesTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n replaceSpaces.replace(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public void replace(char[] input) {\n validateInput(input);\n char[] result = new char[input.length];\n for (int i = 0, j = 0; i < input.length && j < input.length; i++, j++) {\n if (input[i] == ' ') {\n result[j++] = '%';\n result[j++] = '2';\n result[j] = '0';\n } else {\n result[j] = input[i];\n }\n }\n copyArray(result, input);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "34-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.125, "method_coverage_gold": 0.8696, "line_coverage_gold": 0.2613, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["7511e75761ef170df53586300a97351064b35881", "536e3dbdcca4f02acc666ab8e9603ec153a22d59", "56dc9068aed9448285b54d5559e6898cd0cd40d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__42b5b6e_26177b7__CompressStringTest_b4bba6ec", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "42b5b6eb069cf520e4802a8aa5dffde87653f7fb", "rev2": "26177b7bbd3683828b36c0122c1d49123dc17a25", "rev1_date": "2015-01-06T00:10:24Z", "rev2_date": "2015-01-06T00:20:04Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/42b5b6eb069cf520e4802a8aa5dffde87653f7fb...26177b7bbd3683828b36c0122c1d49123dc17a25", "test_file": "src/test/java/com/github/pedrovgs/problem53/CompressStringTest.java", "test_changes": [{"change_id": "210_pedrovgs_Algorithms-master_42b5b6e_26177b7_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldCompressWordsRecursive:()V", "class": "CompressStringTest", "method": "shouldCompressWordsRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldCompressWordsRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCompressWordsRecursive() {\n String wordToCompress = \"aabcccccaaa\";\n String result = compressString.compressRecursive(wordToCompress);\n assertEquals(\"a2bc5a3\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-105"], "old_production_code": "", "new_production_code": "public String compressRecursive(String src) {\n validateInput(src);\n if (src.length() <= 1) {\n return src;\n }\n return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "81-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.4354, "method_coverage_gold": 2.9046, "line_coverage_gold": 1.8227, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "211_pedrovgs_Algorithms-master_42b5b6e_26177b7_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotCompressWordsWithJustOneCharRecursive:()V", "class": "CompressStringTest", "method": "shouldNotCompressWordsWithJustOneCharRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotCompressWordsWithJustOneCharRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotCompressWordsWithJustOneCharRecursive() {\n String wordToCompress = \"a\";\n String result = compressString.compressRecursive(wordToCompress);\n assertEquals(\"a\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-89"], "old_production_code": "", "new_production_code": "public String compressRecursive(String src) {\n validateInput(src);\n if (src.length() <= 1) {\n return src;\n }\n return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "81-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.2392, "method_coverage_gold": 1.2448, "line_coverage_gold": 0.4971, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "212_pedrovgs_Algorithms-master_42b5b6e_26177b7_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotCompressEmptyWordsRecursive:()V", "class": "CompressStringTest", "method": "shouldNotCompressEmptyWordsRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotCompressEmptyWordsRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotCompressEmptyWordsRecursive() {\n String wordToCompress = \"\";\n String result = compressString.compressRecursive(wordToCompress);\n assertEquals(\"\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-81"], "old_production_code": "", "new_production_code": "public String compressRecursive(String src) {\n validateInput(src);\n if (src.length() <= 1) {\n return src;\n }\n return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "81-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.2392, "method_coverage_gold": 1.2448, "line_coverage_gold": 0.4971, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "213_pedrovgs_Algorithms-master_42b5b6e_26177b7_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotAcceptNullStringsAsInputRecursive:()V", "class": "CompressStringTest", "method": "shouldNotAcceptNullStringsAsInputRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotAcceptNullStringsAsInputRecursive", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInputRecursive() {\n compressString.compressRecursive(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-73"], "old_production_code": "", "new_production_code": "public String compressRecursive(String src) {\n validateInput(src);\n if (src.length() <= 1) {\n return src;\n }\n return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "81-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1196, "method_coverage_gold": 0.8299, "line_coverage_gold": 0.2486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "214_pedrovgs_Algorithms-master_42b5b6e_26177b7_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldCompressWordsFullOfTheSameCharsRecursive:()V", "class": "CompressStringTest", "method": "shouldCompressWordsFullOfTheSameCharsRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldCompressWordsFullOfTheSameCharsRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCompressWordsFullOfTheSameCharsRecursive() {\n String wordToCompress = \"aaa\";\n String result = compressString.compressRecursive(wordToCompress);\n assertEquals(\"a3\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-97"], "old_production_code": "", "new_production_code": "public String compressRecursive(String src) {\n validateInput(src);\n if (src.length() <= 1) {\n return src;\n }\n return compressRecursiveInner(src, new StringBuilder(), 1, src.charAt(0), 1);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "81-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.0766, "method_coverage_gold": 2.9046, "line_coverage_gold": 1.5742, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compressRecursive:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__4eb3051_2156c31__BinaryTreeSerializationTest_cfaed64f", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "4eb3051c57681db531b79c3d4c642e3fed88836f", "rev2": "2156c317cf117e2c2e1eac679667a902a59e2c3d", "rev1_date": "2014-12-31T14:41:41Z", "rev2_date": "2014-12-31T15:18:14Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/4eb3051c57681db531b79c3d4c642e3fed88836f...2156c317cf117e2c2e1eac679667a902a59e2c3d", "test_file": "src/test/java/com/github/pedrovgs/problem46/BinaryTreeSerializationTest.java", "test_changes": [{"change_id": "357_pedrovgs_Algorithms-master_4eb3051_2156c31_BinaryTreeSerializationTest", "test_sign": "com/github/pedrovgs/problem46/BinaryTreeSerializationTest.shouldNotAcceptNullStringsToDeserialize:()V", "class": "BinaryTreeSerializationTest", "method": "shouldNotAcceptNullStringsToDeserialize", "module": "", "junit_selector": "com.github.pedrovgs.problem46.BinaryTreeSerializationTest#shouldNotAcceptNullStringsToDeserialize", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsToDeserialize() {\n binaryTreeSerialization.deserialize(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-28"], "old_production_code": "", "new_production_code": "public BinaryNode deserialize(String tree) {\n validateInput(tree);\n if (index >= tree.length()) {\n return null;\n } else {\n char currentChar = tree.charAt(index);\n if (currentChar == '#') {\n index++;\n return null;\n } else {\n BinaryNode node = new BinaryNode(currentChar - 48);\n index++;\n node.setLeft(deserialize(tree));\n node.setRight(deserialize(tree));\n return node;\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "focal_method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "60-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1404, "method_coverage_gold": 1.4634, "line_coverage_gold": 0.5753, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["676d180c869b409c2531ec01b09b368d6c497ca9", "33c3d286fe3c2ed26e74e644a22747978661d3b0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "358_pedrovgs_Algorithms-master_4eb3051_2156c31_BinaryTreeSerializationTest", "test_sign": "com/github/pedrovgs/problem46/BinaryTreeSerializationTest.shouldNotAcceptNullBinaryTreesToSerialize:()V", "class": "BinaryTreeSerializationTest", "method": "shouldNotAcceptNullBinaryTreesToSerialize", "module": "", "junit_selector": "com.github.pedrovgs.problem46.BinaryTreeSerializationTest#shouldNotAcceptNullBinaryTreesToSerialize", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullBinaryTreesToSerialize() {\n binaryTreeSerialization.serialize(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-23"], "old_production_code": "", "new_production_code": "public String serialize(BinaryNode root) {\n validateInputTree(root);\n return serializeInner(root);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "focal_method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "37-40", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1404, "method_coverage_gold": 1.4634, "line_coverage_gold": 0.5753, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["676d180c869b409c2531ec01b09b368d6c497ca9", "33c3d286fe3c2ed26e74e644a22747978661d3b0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "359_pedrovgs_Algorithms-master_4eb3051_2156c31_BinaryTreeSerializationTest", "test_sign": "com/github/pedrovgs/problem46/BinaryTreeSerializationTest.shouldSerializeAndDeserializeTreeWithMoreThanOneElement:()V", "class": "BinaryTreeSerializationTest", "method": "shouldSerializeAndDeserializeTreeWithMoreThanOneElement", "module": "", "junit_selector": "com.github.pedrovgs.problem46.BinaryTreeSerializationTest#shouldSerializeAndDeserializeTreeWithMoreThanOneElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSerializeAndDeserializeTreeWithMoreThanOneElement() {\n BinaryNode root = new BinaryNode(0);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n2 = new BinaryNode(2);\n BinaryNode n3 = new BinaryNode(3);\n root.setLeft(n1);\n root.setRight(n2);\n n2.setLeft(n3);\n String serializedTree = binaryTreeSerialization.serialize(root);\n BinaryNode deserializedTree = binaryTreeSerialization.deserialize(serializedTree);\n assertEquals(root, deserializedTree);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-52"], "old_production_code": "", "new_production_code": "public String serialize(BinaryNode root) {\n validateInputTree(root);\n return serializeInner(root);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "focal_method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "37-40", "dependency_updated": "inserted", "score": 0.4744, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1636, "class": 1.0, "tfidf": 0.3515}}, {"dep_id": 0, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "60-78", "dependency_updated": "inserted", "score": 0.4605, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.267}}], "coverage_gold": 0.96, "branch_coverage_gold": 2.5281, "method_coverage_gold": 6.8293, "line_coverage_gold": 4.3145, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["676d180c869b409c2531ec01b09b368d6c497ca9", "33c3d286fe3c2ed26e74e644a22747978661d3b0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "com/github/pedrovgs/binarytree/BinaryNode.equals:(Ljava/lang/Object;)Z", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "360_pedrovgs_Algorithms-master_4eb3051_2156c31_BinaryTreeSerializationTest", "test_sign": "com/github/pedrovgs/problem46/BinaryTreeSerializationTest.shouldSerializeAndDeserializeTreeWithJustOneElement:()V", "class": "BinaryTreeSerializationTest", "method": "shouldSerializeAndDeserializeTreeWithJustOneElement", "module": "", "junit_selector": "com.github.pedrovgs.problem46.BinaryTreeSerializationTest#shouldSerializeAndDeserializeTreeWithJustOneElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSerializeAndDeserializeTreeWithJustOneElement() {\n BinaryNode root = new BinaryNode(0);\n String serializedTree = binaryTreeSerialization.serialize(root);\n BinaryNode deserializedTree = binaryTreeSerialization.deserialize(serializedTree);\n assertEquals(root, deserializedTree);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["30-37"], "old_production_code": "", "new_production_code": "public String serialize(BinaryNode root) {\n validateInputTree(root);\n return serializeInner(root);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "focal_method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "37-40", "dependency_updated": "inserted", "score": 0.4928, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1765, "class": 1.0, "tfidf": 0.4208}}, {"dep_id": 0, "method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "line_nums_new": "60-78", "dependency_updated": "inserted", "score": 0.4458, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2157, "class": 1.0, "tfidf": 0.1936}}], "coverage_gold": 0.9523809523809523, "branch_coverage_gold": 1.9663, "method_coverage_gold": 6.8293, "line_coverage_gold": 4.3145, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["676d180c869b409c2531ec01b09b368d6c497ca9", "33c3d286fe3c2ed26e74e644a22747978661d3b0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "com/github/pedrovgs/binarytree/BinaryNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.deserialize:(Ljava/lang/String;)Lcom/github/pedrovgs/binarytree/BinaryNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem46/BinaryTreeSerialization.serialize:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem46/BinaryTreeSerialization.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__50ff4b0_c7e371b__CombinationOfIntegersTest_cb0fd06a", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "50ff4b0c754a9d16c3200ba43915767711474af2", "rev2": "c7e371b3890e2fb54ca0c6bde9616686e9122b86", "rev1_date": "2014-12-27T23:05:48Z", "rev2_date": "2014-12-27T23:19:22Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/50ff4b0c754a9d16c3200ba43915767711474af2...c7e371b3890e2fb54ca0c6bde9616686e9122b86", "test_file": "src/test/java/com/github/pedrovgs/problem43/CombinationOfIntegersTest.java", "test_changes": [{"change_id": "179_pedrovgs_Algorithms-master_50ff4b0_c7e371b_CombinationOfIntegersTest", "test_sign": "com/github/pedrovgs/problem43/CombinationOfIntegersTest.shouldNotAcceptNullInstancesAsInput:()V", "class": "CombinationOfIntegersTest", "method": "shouldNotAcceptNullInstancesAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem43.CombinationOfIntegersTest#shouldNotAcceptNullInstancesAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsInput() {\n combinationOfIntegers.calculate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-40"], "old_production_code": "", "new_production_code": "public Set> calculate(Set originalSet) {\n validateInputSet(originalSet);\n Set> sets = new HashSet>();\n if (originalSet.isEmpty()) {\n sets.add(new HashSet());\n return sets;\n }\n List list = new ArrayList(originalSet);\n Integer head = list.get(0);\n Set rest = new HashSet(list.subList(1, list.size()));\n for (Set set : calculate(rest)) {\n Set newSet = new HashSet();\n newSet.add(head);\n newSet.addAll(set);\n sets.add(newSet);\n sets.add(set);\n }\n return sets;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem43/CombinationOfIntegers.java", "focal_method_sign": "com/github/pedrovgs/problem43/CombinationOfIntegers.calculate:(Ljava/util/Set;)Ljava/util/Set", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem43/CombinationOfIntegers.calculate:(Ljava/util/Set;)Ljava/util/Set", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem43/CombinationOfIntegers.java", "line_nums_new": "33-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1466, "method_coverage_gold": 1.0582, "line_coverage_gold": 0.3071, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["baa9316dfe9c04f69096ce7b2818a7fa28825f22"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem43/CombinationOfIntegers.calculate:(Ljava/util/Set;)Ljava/util/Set"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem43/CombinationOfIntegers.calculate:(Ljava/util/Set;)Ljava/util/Set", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem43/CombinationOfIntegers.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__54118f2_3cb6e10__FindMinNumberAtPositionTest_bdbb5aac", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "54118f222141ecbece642cd571b60d88f82b93a4", "rev2": "3cb6e1093986b9545f081bb5fe243713ce44a670", "rev1_date": "2014-12-29T15:09:08Z", "rev2_date": "2014-12-29T15:18:52Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/54118f222141ecbece642cd571b60d88f82b93a4...3cb6e1093986b9545f081bb5fe243713ce44a670", "test_file": "src/test/java/com/github/pedrovgs/problem44/FindMinNumberAtPositionTest.java", "test_changes": [{"change_id": "229_pedrovgs_Algorithms-master_54118f2_3cb6e10_FindMinNumberAtPositionTest", "test_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPositionTest.shouldFindMinNumberAtPosition:()V", "class": "FindMinNumberAtPositionTest", "method": "shouldFindMinNumberAtPosition", "module": "", "junit_selector": "com.github.pedrovgs.problem44.FindMinNumberAtPositionTest#shouldFindMinNumberAtPosition", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindMinNumberAtPosition() {\n BinaryNode root = new BinaryNode(8);\n BinaryNode n3 = new BinaryNode(3);\n BinaryNode n10 = new BinaryNode(10);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n6 = new BinaryNode(6);\n BinaryNode n14 = new BinaryNode(14);\n BinaryNode n4 = new BinaryNode(4);\n BinaryNode n7 = new BinaryNode(7);\n BinaryNode n13 = new BinaryNode(13);\n root.setLeft(n3);\n root.setRight(n10);\n n3.setLeft(n1);\n n3.setRight(n6);\n n6.setLeft(n4);\n n6.setRight(n7);\n n10.setRight(n14);\n n14.setLeft(n13);\n int result = findMinNumberAtPosition.find(root, 3);\n assertEquals(4, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-74"], "old_production_code": "", "new_production_code": "public Integer find(BinaryNode root, int position) {\n validateInputData(root, position);\n List> orderedElements = getOrderedElements(root);\n validatePosition(position, orderedElements);\n return orderedElements.get(position - 1).getData();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "focal_method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "line_nums_new": "35-40", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.7246, "method_coverage_gold": 5.6701, "line_coverage_gold": 2.6131, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c69c93ed12c8e038d905fb3728ac5e178bd75af0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "230_pedrovgs_Algorithms-master_54118f2_3cb6e10_FindMinNumberAtPositionTest", "test_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPositionTest.shouldThrowExceptionIfPositionIsGreaterThanNumberOfElementsInTheTree:()V", "class": "FindMinNumberAtPositionTest", "method": "shouldThrowExceptionIfPositionIsGreaterThanNumberOfElementsInTheTree", "module": "", "junit_selector": "com.github.pedrovgs.problem44.FindMinNumberAtPositionTest#shouldThrowExceptionIfPositionIsGreaterThanNumberOfElementsInTheTree", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldThrowExceptionIfPositionIsGreaterThanNumberOfElementsInTheTree() {\n BinaryNode tree = new BinaryNode(1);\n findMinNumberAtPosition.find(tree, 1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public Integer find(BinaryNode root, int position) {\n validateInputData(root, position);\n List> orderedElements = getOrderedElements(root);\n validatePosition(position, orderedElements);\n return orderedElements.get(position - 1).getData();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "focal_method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "line_nums_new": "35-40", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.7246, "method_coverage_gold": 4.1237, "line_coverage_gold": 1.9095, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c69c93ed12c8e038d905fb3728ac5e178bd75af0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "231_pedrovgs_Algorithms-master_54118f2_3cb6e10_FindMinNumberAtPositionTest", "test_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPositionTest.shouldNotAcceptNullBinaryTrees:()V", "class": "FindMinNumberAtPositionTest", "method": "shouldNotAcceptNullBinaryTrees", "module": "", "junit_selector": "com.github.pedrovgs.problem44.FindMinNumberAtPositionTest#shouldNotAcceptNullBinaryTrees", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullBinaryTrees() {\n findMinNumberAtPosition.find(null, 1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public Integer find(BinaryNode root, int position) {\n validateInputData(root, position);\n List> orderedElements = getOrderedElements(root);\n validatePosition(position, orderedElements);\n return orderedElements.get(position - 1).getData();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "focal_method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "line_nums_new": "35-40", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1449, "method_coverage_gold": 1.0309, "line_coverage_gold": 0.3015, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c69c93ed12c8e038d905fb3728ac5e178bd75af0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "232_pedrovgs_Algorithms-master_54118f2_3cb6e10_FindMinNumberAtPositionTest", "test_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPositionTest.shouldNotAcceptNegativePositionsToSearch:()V", "class": "FindMinNumberAtPositionTest", "method": "shouldNotAcceptNegativePositionsToSearch", "module": "", "junit_selector": "com.github.pedrovgs.problem44.FindMinNumberAtPositionTest#shouldNotAcceptNegativePositionsToSearch", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNegativePositionsToSearch() {\n BinaryNode tree = new BinaryNode(1);\n findMinNumberAtPosition.find(tree, -1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-43"], "old_production_code": "", "new_production_code": "public Integer find(BinaryNode root, int position) {\n validateInputData(root, position);\n List> orderedElements = getOrderedElements(root);\n validatePosition(position, orderedElements);\n return orderedElements.get(position - 1).getData();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "focal_method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "line_nums_new": "35-40", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2899, "method_coverage_gold": 1.5464, "line_coverage_gold": 0.603, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c69c93ed12c8e038d905fb3728ac5e178bd75af0"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem44/FindMinNumberAtPosition.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;I)Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem44/FindMinNumberAtPosition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__5e4e289_d9820cf__CombinationsOfChangeTest_c25c0df7", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "5e4e2891b3754d5f67ec2735f1c36f97678a1139", "rev2": "d9820cfa066e53ed9cdc6a24bccd2113e2c9a356", "rev1_date": "2015-01-02T23:27:30Z", "rev2_date": "2015-01-02T23:46:12Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/5e4e2891b3754d5f67ec2735f1c36f97678a1139...d9820cfa066e53ed9cdc6a24bccd2113e2c9a356", "test_file": "src/test/java/com/github/pedrovgs/problem49/CombinationsOfChangeTest.java", "test_changes": [{"change_id": "297_pedrovgs_Algorithms-master_5e4e289_d9820cf_CombinationsOfChangeTest", "test_sign": "com/github/pedrovgs/problem49/CombinationsOfChangeTest.shouldNotAcceptNullArrays:()V", "class": "CombinationsOfChangeTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem49.CombinationsOfChangeTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n combinationsOfChange.get(null, 7);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-38"], "old_production_code": "", "new_production_code": "public List> get(int[] availableChange, int value) {\n validateInputData(availableChange, value);\n List> changeCombinations = new LinkedList>();\n for (int i = 0; i < availableChange.length; i++) {\n int[] availableMoneys = Arrays.copyOfRange(availableChange, 0, availableChange.length - i);\n List change = getChange(availableMoneys, value);\n changeCombinations.add(change);\n }\n return changeCombinations;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "focal_method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "line_nums_new": "45-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1292, "method_coverage_gold": 1.3825, "line_coverage_gold": 0.5464, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5faa9c49b4ba1159f9f76ada349e3339faea9d91"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "299_pedrovgs_Algorithms-master_5e4e289_d9820cf_CombinationsOfChangeTest", "test_sign": "com/github/pedrovgs/problem49/CombinationsOfChangeTest.shouldNotAcceptValueToChangeMinorOrEqualsToZero:()V", "class": "CombinationsOfChangeTest", "method": "shouldNotAcceptValueToChangeMinorOrEqualsToZero", "module": "", "junit_selector": "com.github.pedrovgs.problem49.CombinationsOfChangeTest#shouldNotAcceptValueToChangeMinorOrEqualsToZero", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptValueToChangeMinorOrEqualsToZero() {\n combinationsOfChange.get(new int[9], -3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-43"], "old_production_code": "", "new_production_code": "public List> get(int[] availableChange, int value) {\n validateInputData(availableChange, value);\n List> changeCombinations = new LinkedList>();\n for (int i = 0; i < availableChange.length; i++) {\n int[] availableMoneys = Arrays.copyOfRange(availableChange, 0, availableChange.length - i);\n List change = getChange(availableMoneys, value);\n changeCombinations.add(change);\n }\n return changeCombinations;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "focal_method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "line_nums_new": "45-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2584, "method_coverage_gold": 1.3825, "line_coverage_gold": 0.5464, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5faa9c49b4ba1159f9f76ada349e3339faea9d91"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "300_pedrovgs_Algorithms-master_5e4e289_d9820cf_CombinationsOfChangeTest", "test_sign": "com/github/pedrovgs/problem49/CombinationsOfChangeTest.shouldReturnAnEmptyCollectionIfArrayOfMoneysIsEmpty:()V", "class": "CombinationsOfChangeTest", "method": "shouldReturnAnEmptyCollectionIfArrayOfMoneysIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem49.CombinationsOfChangeTest#shouldReturnAnEmptyCollectionIfArrayOfMoneysIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAnEmptyCollectionIfArrayOfMoneysIsEmpty() {\n List> combinations = combinationsOfChange.get(new int[0], 1);\n assertTrue(combinations.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public List> get(int[] availableChange, int value) {\n validateInputData(availableChange, value);\n List> changeCombinations = new LinkedList>();\n for (int i = 0; i < availableChange.length; i++) {\n int[] availableMoneys = Arrays.copyOfRange(availableChange, 0, availableChange.length - i);\n List change = getChange(availableMoneys, value);\n changeCombinations.add(change);\n }\n return changeCombinations;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "focal_method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "line_nums_new": "45-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.3876, "method_coverage_gold": 1.8433, "line_coverage_gold": 0.9107, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5faa9c49b4ba1159f9f76ada349e3339faea9d91"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem49/CombinationsOfChange.get:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem49/CombinationsOfChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__61833cd_1518388__SubtractAddingTest_b52fc728", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "61833cd2206d96c71a20db7abc513c5637322900", "rev2": "1518388ab7443a31ac31dff48258f53e9f73214d", "rev1_date": "2015-01-27T23:04:10Z", "rev2_date": "2015-01-27T23:05:34Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/61833cd2206d96c71a20db7abc513c5637322900...1518388ab7443a31ac31dff48258f53e9f73214d", "test_file": "src/test/java/com/github/pedrovgs/problem73/SubtractAddingTest.java", "test_changes": [{"change_id": "369_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldReturnZeroIfInputsAreZero:()V", "class": "SubtractAddingTest", "method": "shouldReturnZeroIfInputsAreZero", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldReturnZeroIfInputsAreZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputsAreZero() {\n int inputA = 0;\n int inputB = 0;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-26"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1992, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.3795, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "370_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldCalculateTheCorrectSubttractionIfBothIntegersAreNegative:()V", "class": "SubtractAddingTest", "method": "shouldCalculateTheCorrectSubttractionIfBothIntegersAreNegative", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldCalculateTheCorrectSubttractionIfBothIntegersAreNegative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCalculateTheCorrectSubttractionIfBothIntegersAreNegative() {\n int inputA = -30;\n int inputB = -35;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(5, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-71"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2988, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.506, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "371_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldReturnANegativeResultIfFirstInputIsLessThanTheSecondOne:()V", "class": "SubtractAddingTest", "method": "shouldReturnANegativeResultIfFirstInputIsLessThanTheSecondOne", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldReturnANegativeResultIfFirstInputIsLessThanTheSecondOne", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnANegativeResultIfFirstInputIsLessThanTheSecondOne() {\n int inputA = 30;\n int inputB = 35;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(-5, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-53"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2988, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.506, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "372_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldCalculateTheCorrectSubtractionIfOneOfTheIntegersIsNegative:()V", "class": "SubtractAddingTest", "method": "shouldCalculateTheCorrectSubtractionIfOneOfTheIntegersIsNegative", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldCalculateTheCorrectSubtractionIfOneOfTheIntegersIsNegative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCalculateTheCorrectSubtractionIfOneOfTheIntegersIsNegative() {\n int inputA = 30;\n int inputB = -35;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(65, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-62"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2988, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.506, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "373_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldReturnZeroIfInputsAreEquals:()V", "class": "SubtractAddingTest", "method": "shouldReturnZeroIfInputsAreEquals", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldReturnZeroIfInputsAreEquals", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputsAreEquals() {\n int inputA = 30;\n int inputB = 30;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-35"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2988, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.506, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "374_pedrovgs_Algorithms-master_61833cd_1518388_SubtractAddingTest", "test_sign": "com/github/pedrovgs/problem73/SubtractAddingTest.shouldReturnAPositiveResultIfFirstInputIsGreaterThanTheSecondOne:()V", "class": "SubtractAddingTest", "method": "shouldReturnAPositiveResultIfFirstInputIsGreaterThanTheSecondOne", "module": "", "junit_selector": "com.github.pedrovgs.problem73.SubtractAddingTest#shouldReturnAPositiveResultIfFirstInputIsGreaterThanTheSecondOne", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAPositiveResultIfFirstInputIsGreaterThanTheSecondOne() {\n int inputA = 33;\n int inputB = 30;\n int result = subtractAdding.subtract(inputA, inputB);\n assertEquals(3, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-44"], "old_production_code": "", "new_production_code": "public int subtract(int inputA, int inputB) {\n return inputA + negate(inputB);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "focal_method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.2988, "method_coverage_gold": 0.9063, "line_coverage_gold": 0.506, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5996ebc06c65cfeb1261fed401423cbba68f4f20"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem73/SubtractAdding.subtract:(II)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem73/SubtractAdding.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__6423733_647de49__ScientificNotationTest_2772af43", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "64237331f227f1cfa11b9f3b26f19c763a940ec1", "rev2": "647de49643c50b76fe54e9bfa2189ec20b3065a2", "rev1_date": "2014-12-14T23:08:22Z", "rev2_date": "2014-12-14T23:12:02Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/64237331f227f1cfa11b9f3b26f19c763a940ec1...647de49643c50b76fe54e9bfa2189ec20b3065a2", "test_file": "src/test/java/com/github/pedrovgs/problem30/ScientificNotationTest.java", "test_changes": [{"change_id": "127_pedrovgs_Algorithms-master_6423733_647de49_ScientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/ScientificNotationTest.shouldNotAcceptNullStringAsInput:()V", "class": "ScientificNotationTest", "method": "shouldNotAcceptNullStringAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem30.ScientificNotationTest#shouldNotAcceptNullStringAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringAsInput() {\n scientificNotation.calculate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || !number.contains(\"E\")) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = splitScientificNumber(number);\n double first = getLeftPart(splittedNumber[0]);\n int sign = getNumberSign(splittedNumber[1]);\n int pow = getPow(splittedNumber[1]);\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "line_nums_new": "31-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.2128, "method_coverage_gold": 1.3333, "line_coverage_gold": 0.4172, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "128_pedrovgs_Algorithms-master_6423733_647de49_ScientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/ScientificNotationTest.shouldNotAcceptMalformedScientificNumbers:()V", "class": "ScientificNotationTest", "method": "shouldNotAcceptMalformedScientificNumbers", "module": "", "junit_selector": "com.github.pedrovgs.problem30.ScientificNotationTest#shouldNotAcceptMalformedScientificNumbers", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptMalformedScientificNumbers() {\n scientificNotation.calculate(\"9.18F+09\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-41"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || !number.contains(\"E\")) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = splitScientificNumber(number);\n double first = getLeftPart(splittedNumber[0]);\n int sign = getNumberSign(splittedNumber[1]);\n int pow = getPow(splittedNumber[1]);\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "line_nums_new": "31-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.4255, "method_coverage_gold": 1.3333, "line_coverage_gold": 0.4172, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "129_pedrovgs_Algorithms-master_6423733_647de49_ScientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/ScientificNotationTest.shouldTakeIntoAccountNegativeNumbers:()V", "class": "ScientificNotationTest", "method": "shouldTakeIntoAccountNegativeNumbers", "module": "", "junit_selector": "com.github.pedrovgs.problem30.ScientificNotationTest#shouldTakeIntoAccountNegativeNumbers", "old_test_code": null, "new_test_code": "@Test\npublic void shouldTakeIntoAccountNegativeNumbers() {\n String number = \"-9.18E+09\";\n long result = scientificNotation.calculate(number);\n assertEquals(-9180000000L, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-57"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || !number.contains(\"E\")) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = splitScientificNumber(number);\n double first = getLeftPart(splittedNumber[0]);\n int sign = getNumberSign(splittedNumber[1]);\n int pow = getPow(splittedNumber[1]);\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "line_nums_new": "31-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.6383, "method_coverage_gold": 4.0, "line_coverage_gold": 1.669, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "130_pedrovgs_Algorithms-master_6423733_647de49_ScientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/ScientificNotationTest.shouldReturnTheValueOfTheNumber:()V", "class": "ScientificNotationTest", "method": "shouldReturnTheValueOfTheNumber", "module": "", "junit_selector": "com.github.pedrovgs.problem30.ScientificNotationTest#shouldReturnTheValueOfTheNumber", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheValueOfTheNumber() {\n String number = \"9.18E+09\";\n long result = scientificNotation.calculate(number);\n assertEquals(9180000000L, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-49"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || !number.contains(\"E\")) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = splitScientificNumber(number);\n double first = getLeftPart(splittedNumber[0]);\n int sign = getNumberSign(splittedNumber[1]);\n int pow = getPow(splittedNumber[1]);\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "line_nums_new": "31-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.6383, "method_coverage_gold": 4.0, "line_coverage_gold": 1.669, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/ScientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/ScientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__6a59640_d54df58__UniqueCharsTest_3e7591db", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "6a596409766a21971254daa4cd3e60fc341708f0", "rev2": "d54df58a8d1767b3536da3233de9c0e8e04b9248", "rev1_date": "2015-01-03T23:42:46Z", "rev2_date": "2015-01-03T23:58:39Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/6a596409766a21971254daa4cd3e60fc341708f0...d54df58a8d1767b3536da3233de9c0e8e04b9248", "test_file": "src/test/java/com/github/pedrovgs/problem50/UniqueCharsTest.java", "test_changes": [{"change_id": "293_pedrovgs_Algorithms-master_6a59640_d54df58_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldNotAcceptNullStringsAsInput:()V", "class": "UniqueCharsTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n uniqueChars.evaluate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return containsDuplicatedChars(chars);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1276, "method_coverage_gold": 0.8969, "line_coverage_gold": 0.2681, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["605c4bbb3d3a143a7242d8fdd01ae4ceca827bbb"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "294_pedrovgs_Algorithms-master_6a59640_d54df58_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnFalseIfInputStringIsEmpty:()V", "class": "UniqueCharsTest", "method": "shouldReturnFalseIfInputStringIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnFalseIfInputStringIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputStringIsEmpty() {\n assertFalse(uniqueChars.evaluate(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-41"], "old_production_code": "", "new_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return containsDuplicatedChars(chars);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3827, "method_coverage_gold": 2.2422, "line_coverage_gold": 1.0724, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["605c4bbb3d3a143a7242d8fdd01ae4ceca827bbb"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "295_pedrovgs_Algorithms-master_6a59640_d54df58_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnTruefInputStringContainsDuplicatedChars:()V", "class": "UniqueCharsTest", "method": "shouldReturnTruefInputStringContainsDuplicatedChars", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnTruefInputStringContainsDuplicatedChars", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTruefInputStringContainsDuplicatedChars() {\n assertTrue(uniqueChars.evaluate(\"vicente\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-45"], "old_production_code": "", "new_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return containsDuplicatedChars(chars);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0204, "method_coverage_gold": 2.6906, "line_coverage_gold": 1.7873, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["605c4bbb3d3a143a7242d8fdd01ae4ceca827bbb"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "296_pedrovgs_Algorithms-master_6a59640_d54df58_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnFalseIfInputStringDoesNotContainDuplicatedChars:()V", "class": "UniqueCharsTest", "method": "shouldReturnFalseIfInputStringDoesNotContainDuplicatedChars", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnFalseIfInputStringDoesNotContainDuplicatedChars", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputStringDoesNotContainDuplicatedChars() {\n assertFalse(uniqueChars.evaluate(\"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-49"], "old_production_code": "", "new_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return containsDuplicatedChars(chars);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "34-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8929, "method_coverage_gold": 2.6906, "line_coverage_gold": 1.6086, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["605c4bbb3d3a143a7242d8fdd01ae4ceca827bbb"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__6efa8c4_61152ed__ReverseSentenceTest_26bba6da", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "6efa8c49e6c3f995802146c02ed020ba4cb50bb1", "rev2": "61152ed517a58d386ecd0cd4d4a5a4f36eb826e4", "rev1_date": "2014-12-11T23:01:06Z", "rev2_date": "2014-12-11T23:02:25Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/6efa8c49e6c3f995802146c02ed020ba4cb50bb1...61152ed517a58d386ecd0cd4d4a5a4f36eb826e4", "test_file": "src/test/java/com/github/pedrovgs/problem27/ReverseSentenceTest.java", "test_changes": [{"change_id": "383_pedrovgs_Algorithms-master_6efa8c4_61152ed_ReverseSentenceTest", "test_sign": "com/github/pedrovgs/problem27/ReverseSentenceTest.shouldReverseOneSentenceWithJustOneWord:()V", "class": "ReverseSentenceTest", "method": "shouldReverseOneSentenceWithJustOneWord", "module": "", "junit_selector": "com.github.pedrovgs.problem27.ReverseSentenceTest#shouldReverseOneSentenceWithJustOneWord", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReverseOneSentenceWithJustOneWord() {\n String input = \"pedro\";\n String result = reverseSentence.reverse(input);\n assertEquals(\"pedro\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-48"], "old_production_code": "", "new_production_code": "public String reverse(String sentence) {\n if (sentence == null) {\n throw new IllegalArgumentException(\"Input param can't be null.\");\n }\n StringBuilder stringBuilder = new StringBuilder();\n String[] words = sentence.split(WORD_SEPARATOR);\n for (int i = words.length - 1; i >= 0; i--) {\n stringBuilder.append(words[i]);\n if (i != 0) {\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "focal_method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "line_nums_new": "38-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.9259, "method_coverage_gold": 1.5038, "line_coverage_gold": 1.2195, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f12876207902d7b23d02ce3cb6823461481504f4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "384_pedrovgs_Algorithms-master_6efa8c4_61152ed_ReverseSentenceTest", "test_sign": "com/github/pedrovgs/problem27/ReverseSentenceTest.shouldReturnEmptyIfInputIsEmpty:()V", "class": "ReverseSentenceTest", "method": "shouldReturnEmptyIfInputIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem27.ReverseSentenceTest#shouldReturnEmptyIfInputIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnEmptyIfInputIsEmpty() {\n assertEquals(\"\", reverseSentence.reverse(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-40"], "old_production_code": "", "new_production_code": "public String reverse(String sentence) {\n if (sentence == null) {\n throw new IllegalArgumentException(\"Input param can't be null.\");\n }\n StringBuilder stringBuilder = new StringBuilder();\n String[] words = sentence.split(WORD_SEPARATOR);\n for (int i = words.length - 1; i >= 0; i--) {\n stringBuilder.append(words[i]);\n if (i != 0) {\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "focal_method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "line_nums_new": "38-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.9259, "method_coverage_gold": 1.5038, "line_coverage_gold": 1.2195, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f12876207902d7b23d02ce3cb6823461481504f4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "385_pedrovgs_Algorithms-master_6efa8c4_61152ed_ReverseSentenceTest", "test_sign": "com/github/pedrovgs/problem27/ReverseSentenceTest.shouldNotAcceptNullStringsAsInput:()V", "class": "ReverseSentenceTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem27.ReverseSentenceTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n reverseSentence.reverse(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public String reverse(String sentence) {\n if (sentence == null) {\n throw new IllegalArgumentException(\"Input param can't be null.\");\n }\n StringBuilder stringBuilder = new StringBuilder();\n String[] words = sentence.split(WORD_SEPARATOR);\n for (int i = words.length - 1; i >= 0; i--) {\n stringBuilder.append(words[i]);\n if (i != 0) {\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "focal_method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "line_nums_new": "38-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2222222222222222, "branch_coverage_gold": 0.2315, "method_coverage_gold": 1.5038, "line_coverage_gold": 0.4573, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f12876207902d7b23d02ce3cb6823461481504f4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "386_pedrovgs_Algorithms-master_6efa8c4_61152ed_ReverseSentenceTest", "test_sign": "com/github/pedrovgs/problem27/ReverseSentenceTest.shouldReverseSentenceWithMoreThanOneWord:()V", "class": "ReverseSentenceTest", "method": "shouldReverseSentenceWithMoreThanOneWord", "module": "", "junit_selector": "com.github.pedrovgs.problem27.ReverseSentenceTest#shouldReverseSentenceWithMoreThanOneWord", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReverseSentenceWithMoreThanOneWord() {\n String input = \"pedro vicente gómez\";\n String result = reverseSentence.reverse(input);\n assertEquals(\"gómez vicente pedro\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-56"], "old_production_code": "", "new_production_code": "public String reverse(String sentence) {\n if (sentence == null) {\n throw new IllegalArgumentException(\"Input param can't be null.\");\n }\n StringBuilder stringBuilder = new StringBuilder();\n String[] words = sentence.split(WORD_SEPARATOR);\n for (int i = words.length - 1; i >= 0; i--) {\n stringBuilder.append(words[i]);\n if (i != 0) {\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "focal_method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "line_nums_new": "38-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.1574, "method_coverage_gold": 1.5038, "line_coverage_gold": 1.372, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f12876207902d7b23d02ce3cb6823461481504f4"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem27/ReverseSentence.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem27/ReverseSentence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__700378b_4949bb9__BubbleSortTest_1dd50809", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "700378b95bb3be53c13f1a73fdca2077ebd0d1d6", "rev2": "4949bb98b5ec17b448af042b03f4fcc27965aa79", "rev1_date": "2015-01-28T23:24:43Z", "rev2_date": "2015-01-28T23:26:03Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/700378b95bb3be53c13f1a73fdca2077ebd0d1d6...4949bb98b5ec17b448af042b03f4fcc27965aa79", "test_file": "src/test/java/com/github/pedrovgs/problem74/BubbleSortTest.java", "test_changes": [{"change_id": "272_pedrovgs_Algorithms-master_700378b_4949bb9_BubbleSortTest", "test_sign": "com/github/pedrovgs/problem74/BubbleSortTest.shouldSortArray:()V", "class": "BubbleSortTest", "method": "shouldSortArray", "module": "", "junit_selector": "com.github.pedrovgs.problem74.BubbleSortTest#shouldSortArray", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSortArray() {\n int[] input = { 3, 4, 1, 2 };\n bubbleSort.sort(input);\n int[] expectedArray = { 1, 2, 3, 4 };\n assertArrayEquals(expectedArray, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-57"], "old_production_code": "", "new_production_code": "public void sort(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < length - 1; i++) {\n for (int j = i + 1; j < length; j++) {\n if (numbers[i] > numbers[j]) {\n swap(numbers, i, j);\n swap = true;\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "focal_method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "line_nums_new": "40-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8876, "method_coverage_gold": 1.194, "line_coverage_gold": 1.125, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5bf9b54a6c516a6c557b7a615690e221fa665ed6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem74/BubbleSort.sort:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "273_pedrovgs_Algorithms-master_700378b_4949bb9_BubbleSortTest", "test_sign": "com/github/pedrovgs/problem74/BubbleSortTest.shouldSortArrayWhenTheInputDataIsInDescendingOrder:()V", "class": "BubbleSortTest", "method": "shouldSortArrayWhenTheInputDataIsInDescendingOrder", "module": "", "junit_selector": "com.github.pedrovgs.problem74.BubbleSortTest#shouldSortArrayWhenTheInputDataIsInDescendingOrder", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSortArrayWhenTheInputDataIsInDescendingOrder() {\n int[] input = { 4, 3, 2, 1 };\n bubbleSort.sort(input);\n int[] expectedArray = { 1, 2, 3, 4 };\n assertArrayEquals(expectedArray, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-39"], "old_production_code": "", "new_production_code": "public void sort(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < length - 1; i++) {\n for (int j = i + 1; j < length; j++) {\n if (numbers[i] > numbers[j]) {\n swap(numbers, i, j);\n swap = true;\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "focal_method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "line_nums_new": "40-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8876, "method_coverage_gold": 1.194, "line_coverage_gold": 1.125, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5bf9b54a6c516a6c557b7a615690e221fa665ed6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem74/BubbleSort.sort:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "274_pedrovgs_Algorithms-master_700378b_4949bb9_BubbleSortTest", "test_sign": "com/github/pedrovgs/problem74/BubbleSortTest.shouldNotAcceptNullArrays:()V", "class": "BubbleSortTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem74.BubbleSortTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n bubbleSort.sort(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-21"], "old_production_code": "", "new_production_code": "public void sort(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < length - 1; i++) {\n for (int j = i + 1; j < length; j++) {\n if (numbers[i] > numbers[j]) {\n swap(numbers, i, j);\n swap = true;\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "focal_method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "line_nums_new": "40-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0986, "method_coverage_gold": 0.597, "line_coverage_gold": 0.1875, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5bf9b54a6c516a6c557b7a615690e221fa665ed6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem74/BubbleSort.sort:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "275_pedrovgs_Algorithms-master_700378b_4949bb9_BubbleSortTest", "test_sign": "com/github/pedrovgs/problem74/BubbleSortTest.shouldSortArrayPartiallySorted:()V", "class": "BubbleSortTest", "method": "shouldSortArrayPartiallySorted", "module": "", "junit_selector": "com.github.pedrovgs.problem74.BubbleSortTest#shouldSortArrayPartiallySorted", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSortArrayPartiallySorted() {\n int[] input = { 1, 2, 4, 3 };\n bubbleSort.sort(input);\n int[] expectedArray = { 1, 2, 3, 4 };\n assertArrayEquals(expectedArray, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-48"], "old_production_code": "", "new_production_code": "public void sort(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < length - 1; i++) {\n for (int j = i + 1; j < length; j++) {\n if (numbers[i] > numbers[j]) {\n swap(numbers, i, j);\n swap = true;\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "focal_method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "line_nums_new": "40-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8876, "method_coverage_gold": 1.194, "line_coverage_gold": 1.125, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5bf9b54a6c516a6c557b7a615690e221fa665ed6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem74/BubbleSort.sort:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "276_pedrovgs_Algorithms-master_700378b_4949bb9_BubbleSortTest", "test_sign": "com/github/pedrovgs/problem74/BubbleSortTest.shouldNotModifyArrayIfIsAlreadySorted:()V", "class": "BubbleSortTest", "method": "shouldNotModifyArrayIfIsAlreadySorted", "module": "", "junit_selector": "com.github.pedrovgs.problem74.BubbleSortTest#shouldNotModifyArrayIfIsAlreadySorted", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotModifyArrayIfIsAlreadySorted() {\n int[] input = { 1, 2, 3, 4 };\n bubbleSort.sort(input);\n int[] expectedArray = { 1, 2, 3, 4 };\n assertArrayEquals(expectedArray, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-30"], "old_production_code": "", "new_production_code": "public void sort(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n boolean swap = true;\n while (swap) {\n swap = false;\n for (int i = 0; i < length - 1; i++) {\n for (int j = i + 1; j < length; j++) {\n if (numbers[i] > numbers[j]) {\n swap(numbers, i, j);\n swap = true;\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "focal_method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "line_nums_new": "40-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.789, "method_coverage_gold": 0.8955, "line_coverage_gold": 0.75, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5bf9b54a6c516a6c557b7a615690e221fa665ed6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem74/BubbleSort.sort:([I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem74/BubbleSort.sort:([I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem74/BubbleSort.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__71a1105_d76487d__RewriteRowAndColumnsWithZerosTest_8afee3f3", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "71a11059bffc8c6cff42919070caa97abfeadd89", "rev2": "d76487d560e3686a4fc86e570ea710413c9b9b15", "rev1_date": "2015-01-07T23:53:16Z", "rev2_date": "2015-01-08T00:32:26Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/71a11059bffc8c6cff42919070caa97abfeadd89...d76487d560e3686a4fc86e570ea710413c9b9b15", "test_file": "src/test/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.java", "test_changes": [{"change_id": "219_pedrovgs_Algorithms-master_71a1105_d76487d_RewriteRowAndColumnsWithZerosTest", "test_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.shouldNotAcceptNullMatrix:()V", "class": "RewriteRowAndColumnsWithZerosTest", "method": "shouldNotAcceptNullMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem55.RewriteRowAndColumnsWithZerosTest#shouldNotAcceptNullMatrix", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullMatrix() {\n rewriteMatrix.rewrite(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public void rewrite(int[][] matrix) {\n validateInput(matrix);\n Set rowsToSkip = new HashSet();\n Set columnsToSkip = new HashSet();\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (shouldPaintRowAndColumn(matrix, i, j, rowsToSkip, columnsToSkip)) {\n rewriteRow(matrix, i, rowsToSkip);\n rewriteColumn(matrix, j, columnsToSkip);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "focal_method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "line_nums_new": "36-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1157, "method_coverage_gold": 0.7874, "line_coverage_gold": 0.2385, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["fd738ab6fe5bc8e1e437ae5039034e4742fa5033", "19f1e833cf3c9853dea270048dfc0be85c3ab32e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "220_pedrovgs_Algorithms-master_71a1105_d76487d_RewriteRowAndColumnsWithZerosTest", "test_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.shouldRewritePositionsEvenWithAOneDimensionMatrix:()V", "class": "RewriteRowAndColumnsWithZerosTest", "method": "shouldRewritePositionsEvenWithAOneDimensionMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem55.RewriteRowAndColumnsWithZerosTest#shouldRewritePositionsEvenWithAOneDimensionMatrix", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRewritePositionsEvenWithAOneDimensionMatrix() {\n int[][] matrix = { { 1, 0 }, {} };\n rewriteMatrix.rewrite(matrix);\n int[][] expectedMatrix = { { 0, 0 }, {} };\n assertArrayEquals(expectedMatrix, matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-45"], "old_production_code": "", "new_production_code": "public void rewrite(int[][] matrix) {\n validateInput(matrix);\n Set rowsToSkip = new HashSet();\n Set columnsToSkip = new HashSet();\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (shouldPaintRowAndColumn(matrix, i, j, rowsToSkip, columnsToSkip)) {\n rewriteRow(matrix, i, rowsToSkip);\n rewriteColumn(matrix, j, columnsToSkip);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "focal_method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "line_nums_new": "36-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.6204, "method_coverage_gold": 2.3622, "line_coverage_gold": 1.5898, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["fd738ab6fe5bc8e1e437ae5039034e4742fa5033", "19f1e833cf3c9853dea270048dfc0be85c3ab32e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "221_pedrovgs_Algorithms-master_71a1105_d76487d_RewriteRowAndColumnsWithZerosTest", "test_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.hsouldRewriteJustCenterRowAndCoulmnWithZeros:()V", "class": "RewriteRowAndColumnsWithZerosTest", "method": "hsouldRewriteJustCenterRowAndCoulmnWithZeros", "module": "", "junit_selector": "com.github.pedrovgs.problem55.RewriteRowAndColumnsWithZerosTest#hsouldRewriteJustCenterRowAndCoulmnWithZeros", "old_test_code": null, "new_test_code": "@Test\npublic void hsouldRewriteJustCenterRowAndCoulmnWithZeros() {\n int[][] matrix = { { 1, 1, 1 }, { 1, 0, 1 }, { 1, 1, 1 } };\n rewriteMatrix.rewrite(matrix);\n int[][] expectedMatrix = { { 1, 0, 1 }, { 0, 0, 0 }, { 1, 0, 1 } };\n assertArrayEquals(expectedMatrix, matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-67"], "old_production_code": "", "new_production_code": "public void rewrite(int[][] matrix) {\n validateInput(matrix);\n Set rowsToSkip = new HashSet();\n Set columnsToSkip = new HashSet();\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (shouldPaintRowAndColumn(matrix, i, j, rowsToSkip, columnsToSkip)) {\n rewriteRow(matrix, i, rowsToSkip);\n rewriteColumn(matrix, j, columnsToSkip);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "focal_method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "line_nums_new": "36-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.9676, "method_coverage_gold": 2.3622, "line_coverage_gold": 1.6693, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["fd738ab6fe5bc8e1e437ae5039034e4742fa5033", "19f1e833cf3c9853dea270048dfc0be85c3ab32e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "222_pedrovgs_Algorithms-master_71a1105_d76487d_RewriteRowAndColumnsWithZerosTest", "test_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.shouldNotRewritePositionsWithNonZeroElements:()V", "class": "RewriteRowAndColumnsWithZerosTest", "method": "shouldNotRewritePositionsWithNonZeroElements", "module": "", "junit_selector": "com.github.pedrovgs.problem55.RewriteRowAndColumnsWithZerosTest#shouldNotRewritePositionsWithNonZeroElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotRewritePositionsWithNonZeroElements() {\n int[][] matrix = { { 1, 1 }, { 1, 1 } };\n rewriteMatrix.rewrite(matrix);\n int[][] expectedMatrix = { { 1, 1 }, { 1, 1 } };\n assertArrayEquals(expectedMatrix, matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-54"], "old_production_code": "", "new_production_code": "public void rewrite(int[][] matrix) {\n validateInput(matrix);\n Set rowsToSkip = new HashSet();\n Set columnsToSkip = new HashSet();\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (shouldPaintRowAndColumn(matrix, i, j, rowsToSkip, columnsToSkip)) {\n rewriteRow(matrix, i, rowsToSkip);\n rewriteColumn(matrix, j, columnsToSkip);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "focal_method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "line_nums_new": "36-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.8102, "method_coverage_gold": 1.5748, "line_coverage_gold": 0.8744, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["fd738ab6fe5bc8e1e437ae5039034e4742fa5033", "19f1e833cf3c9853dea270048dfc0be85c3ab32e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "223_pedrovgs_Algorithms-master_71a1105_d76487d_RewriteRowAndColumnsWithZerosTest", "test_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZerosTest.shouldRewriteRowAndColumnsWithZeros:()V", "class": "RewriteRowAndColumnsWithZerosTest", "method": "shouldRewriteRowAndColumnsWithZeros", "module": "", "junit_selector": "com.github.pedrovgs.problem55.RewriteRowAndColumnsWithZerosTest#shouldRewriteRowAndColumnsWithZeros", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRewriteRowAndColumnsWithZeros() {\n int[][] matrix = { { 1, 1, 0 }, { 1, 0, 1 }, { 1, 1, 1 } };\n rewriteMatrix.rewrite(matrix);\n int[][] expectedMatrix = { { 0, 0, 0 }, { 0, 0, 0 }, { 1, 0, 0 } };\n assertArrayEquals(expectedMatrix, matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-80"], "old_production_code": "", "new_production_code": "public void rewrite(int[][] matrix) {\n validateInput(matrix);\n Set rowsToSkip = new HashSet();\n Set columnsToSkip = new HashSet();\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (shouldPaintRowAndColumn(matrix, i, j, rowsToSkip, columnsToSkip)) {\n rewriteRow(matrix, i, rowsToSkip);\n rewriteColumn(matrix, j, columnsToSkip);\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "focal_method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "line_nums_new": "36-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.9676, "method_coverage_gold": 2.3622, "line_coverage_gold": 1.6693, "is_traceback": false, "commit_gap": {"count": 2, "skipped_commits": ["fd738ab6fe5bc8e1e437ae5039034e4742fa5033", "19f1e833cf3c9853dea270048dfc0be85c3ab32e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.rewrite:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem55/RewriteRowAndColumnsWithZeros.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__73ecaa5_7e737f5__FindKthElementTest_a169044e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "73ecaa592ff742ef8c527fd9ca83d944343ed44b", "rev2": "7e737f5d24fbf2ad3ba6e4efc5bbcbfb8a46b8df", "rev1_date": "2015-01-11T14:43:48Z", "rev2_date": "2015-01-11T14:44:25Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/73ecaa592ff742ef8c527fd9ca83d944343ed44b...7e737f5d24fbf2ad3ba6e4efc5bbcbfb8a46b8df", "test_file": "src/test/java/com/github/pedrovgs/problem58/FindKthElementTest.java", "test_changes": [{"change_id": "302_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnLastNodeIfPositionIsZero2:()V", "class": "FindKthElementTest", "method": "shouldReturnLastNodeIfPositionIsZero2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnLastNodeIfPositionIsZero2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLastNodeIfPositionIsZero2() {\n ListNode result = findElement.find2(new ListNode(1), 0);\n ListNode expectedNode = new ListNode(1);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-91"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.9956, "method_coverage_gold": 2.9412, "line_coverage_gold": 2.0942, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z", "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "303_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNullListNodes2:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNullListNodes2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNullListNodes2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListNodes2() {\n findElement.find2(null, 4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-75"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1106, "method_coverage_gold": 1.1029, "line_coverage_gold": 0.4488, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "304_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnKthToLastElement2:()V", "class": "FindKthElementTest", "method": "shouldReturnKthToLastElement2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnKthToLastElement2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnKthToLastElement2() {\n ListNode list = createList(new int[] { 1, 2, 3 });\n ListNode result = findElement.find2(list, 1);\n ListNode expectedNode = new ListNode(2);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-109"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 1.1062, "method_coverage_gold": 3.3088, "line_coverage_gold": 2.3934, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElementTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z", "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "305_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne2:()V", "class": "FindKthElementTest", "method": "shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne2() {\n ListNode list = createList(new int[] { 1, 2, 3 });\n ListNode result = findElement.find2(list, 2);\n ListNode expectedNode = new ListNode(1);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["93-100"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.9956, "method_coverage_gold": 3.3088, "line_coverage_gold": 2.2438, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElementTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z", "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "306_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNegativePositions2:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNegativePositions2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNegativePositions2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNegativePositions2() {\n findElement.find2(new ListNode(3), -1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-79"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2212, "method_coverage_gold": 1.4706, "line_coverage_gold": 0.7479, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "307_pedrovgs_Algorithms-master_73ecaa5_7e737f5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptPositionsGreaterThanListSize2:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptPositionsGreaterThanListSize2", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptPositionsGreaterThanListSize2", "old_test_code": null, "new_test_code": "@Test(expected = IndexOutOfBoundsException.class)\npublic void shouldNotAcceptPositionsGreaterThanListSize2() {\n findElement.find2(new ListNode(3), 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["81-84"], "old_production_code": "", "new_production_code": "public ListNode find2(ListNode listNode, int k) {\n validateInput(listNode, k);\n int size = calculateListSize(listNode);\n if (k > (size - 1)) {\n throw new IndexOutOfBoundsException();\n }\n ListNode result = listNode;\n int n = size - 1 - k;\n while (n > 0) {\n result = result.getNext();\n n--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "63-77", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.5531, "method_coverage_gold": 2.5735, "line_coverage_gold": 1.4959, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find2:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__7e737f5_55873b3__FindKthElementTest_9b1095f7", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "7e737f5d24fbf2ad3ba6e4efc5bbcbfb8a46b8df", "rev2": "55873b320915890e08ab9acf88a26cb17fc8adf7", "rev1_date": "2015-01-11T14:44:25Z", "rev2_date": "2015-01-11T14:47:29Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/7e737f5d24fbf2ad3ba6e4efc5bbcbfb8a46b8df...55873b320915890e08ab9acf88a26cb17fc8adf7", "test_file": "src/test/java/com/github/pedrovgs/problem58/FindKthElementTest.java", "test_changes": [{"change_id": "143_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNegativePositions3:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNegativePositions3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNegativePositions3", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNegativePositions3() {\n findElement.find3(new ListNode(3), -1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["115-117"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2198, "method_coverage_gold": 1.4652, "line_coverage_gold": 0.7418, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "144_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNullListNodes3:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNullListNodes3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNullListNodes3", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListNodes3() {\n findElement.find3(null, 4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["111-113"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1099, "method_coverage_gold": 1.0989, "line_coverage_gold": 0.4451, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "145_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnLastNodeIfPositionIsZero3:()V", "class": "FindKthElementTest", "method": "shouldReturnLastNodeIfPositionIsZero3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnLastNodeIfPositionIsZero3", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLastNodeIfPositionIsZero3() {\n ListNode result = findElement.find3(new ListNode(1), 0);\n ListNode expectedNode = new ListNode(1);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-129"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8125, "branch_coverage_gold": 0.989, "method_coverage_gold": 2.5641, "line_coverage_gold": 1.7804, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "146_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnKthToLastElement3:()V", "class": "FindKthElementTest", "method": "shouldReturnKthToLastElement3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnKthToLastElement3", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnKthToLastElement3() {\n ListNode list = createList(new int[] { 1, 2, 3 });\n ListNode result = findElement.find3(list, 1);\n ListNode expectedNode = new ListNode(2);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["140-147"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9375, "branch_coverage_gold": 1.0989, "method_coverage_gold": 2.9304, "line_coverage_gold": 2.0772, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem58/FindKthElementTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "147_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne3:()V", "class": "FindKthElementTest", "method": "shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne3", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFirstElementIfPositionIsEqualsToListSizeMinusOne3() {\n ListNode list = createList(new int[] { 1, 2, 3 });\n ListNode result = findElement.find3(list, 2);\n ListNode expectedNode = new ListNode(1);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-138"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8125, "branch_coverage_gold": 0.989, "method_coverage_gold": 2.9304, "line_coverage_gold": 1.9288, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem58/FindKthElementTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "148_pedrovgs_Algorithms-master_7e737f5_55873b3_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptPositionsGreaterThanListSize3:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptPositionsGreaterThanListSize3", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptPositionsGreaterThanListSize3", "old_test_code": null, "new_test_code": "@Test(expected = IndexOutOfBoundsException.class)\npublic void shouldNotAcceptPositionsGreaterThanListSize3() {\n findElement.find3(new ListNode(3), 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["119-122"], "old_production_code": "", "new_production_code": "public ListNode find3(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode pointer2 = listNode;\n for (int i = 0; i <= k; i++) {\n if (pointer2 == null) {\n throw new IndexOutOfBoundsException();\n }\n pointer2 = pointer2.getNext();\n }\n ListNode result = listNode;\n while (pointer2 != null) {\n result = result.getNext();\n pointer2 = pointer2.getNext();\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "84-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 0.5495, "method_coverage_gold": 2.1978, "line_coverage_gold": 1.2611, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find3:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__7ed4052_313da80__ReverseStringTest_acd8a364", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "7ed4052dab74d84b4f6c851cda4033d67275f073", "rev2": "313da800dabefbaa3cff5b5d4bb9b32a7cf1181d", "rev1_date": "2015-01-04T22:40:59Z", "rev2_date": "2015-01-04T22:49:55Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/7ed4052dab74d84b4f6c851cda4033d67275f073...313da800dabefbaa3cff5b5d4bb9b32a7cf1181d", "test_file": "src/test/java/com/github/pedrovgs/problem51/ReverseStringTest.java", "test_changes": [{"change_id": "245_pedrovgs_Algorithms-master_7ed4052_313da80_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnTheSameStringIfTheInputStringContainsJustOneChar:()V", "class": "ReverseStringTest", "method": "shouldReturnTheSameStringIfTheInputStringContainsJustOneChar", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnTheSameStringIfTheInputStringContainsJustOneChar", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheSameStringIfTheInputStringContainsJustOneChar() {\n String result = reverseString.reverse(\"a\");\n assertEquals(\"a\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-48"], "old_production_code": "", "new_production_code": "public String reverse(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3807, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.7111, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["fe9c96b40bc286e00bf3bcda7fc3fb5ef17d0464"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "246_pedrovgs_Algorithms-master_7ed4052_313da80_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnAnEmptyStringIfTheInputIsEmpty:()V", "class": "ReverseStringTest", "method": "shouldReturnAnEmptyStringIfTheInputIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnAnEmptyStringIfTheInputIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAnEmptyStringIfTheInputIsEmpty() {\n String result = reverseString.reverse(\"\");\n assertEquals(\"\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-42"], "old_production_code": "", "new_production_code": "public String reverse(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.2538, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.6222, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["fe9c96b40bc286e00bf3bcda7fc3fb5ef17d0464"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "247_pedrovgs_Algorithms-master_7ed4052_313da80_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReverseString:()V", "class": "ReverseStringTest", "method": "shouldReverseString", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReverseString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReverseString() {\n String result = reverseString.reverse(\"Pedro\");\n assertEquals(\"ordeP\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-54"], "old_production_code": "", "new_production_code": "public String reverse(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3807, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.7111, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["fe9c96b40bc286e00bf3bcda7fc3fb5ef17d0464"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "248_pedrovgs_Algorithms-master_7ed4052_313da80_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldNotAcceptNullStrings:()V", "class": "ReverseStringTest", "method": "shouldNotAcceptNullStrings", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldNotAcceptNullStrings", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStrings() {\n reverseString.reverse(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public String reverse(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1269, "method_coverage_gold": 0.8929, "line_coverage_gold": 0.2667, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["fe9c96b40bc286e00bf3bcda7fc3fb5ef17d0464"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverse:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__7fd4ba7_a1c80a8__FloodFillTest_64fb2e8e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "7fd4ba72863d09c2855a6df1b70351f730ab4a1b", "rev2": "a1c80a86faa459922c23222caaf08f7e331ad1d7", "rev1_date": "2014-12-27T12:26:23Z", "rev2_date": "2014-12-27T12:36:20Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/7fd4ba72863d09c2855a6df1b70351f730ab4a1b...a1c80a86faa459922c23222caaf08f7e331ad1d7", "test_file": "src/test/java/com/github/pedrovgs/problem42/FloodFillTest.java", "test_changes": [{"change_id": "154_pedrovgs_Algorithms-master_7fd4ba7_a1c80a8_FloodFillTest", "test_sign": "com/github/pedrovgs/problem42/FloodFillTest.shouldPaintSelectedZoneUsingIndicatedColor:()V", "class": "FloodFillTest", "method": "shouldPaintSelectedZoneUsingIndicatedColor", "module": "", "junit_selector": "com.github.pedrovgs.problem42.FloodFillTest#shouldPaintSelectedZoneUsingIndicatedColor", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPaintSelectedZoneUsingIndicatedColor() {\n int[][] picture = { { 1, 1, 1, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 1, 1, 1 } };\n int colorToReplace = 0;\n int colorToPaint = 1;\n int x = 1;\n int y = 1;\n floodFill.apply(picture, colorToReplace, colorToPaint, x, y);\n int[][] expectedResult = { { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 }, { 1, 1, 1, 1 } };\n assertArrayEquals(expectedResult, picture);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-53"], "old_production_code": "", "new_production_code": "public void apply(int[][] picture, int colorToReplace, int colorToPaint, int x, int y) {\n validatePicture(picture);\n int currentColor = getValueAt(picture, x, y);\n if (currentColor == colorToReplace) {\n picture[x][y] = colorToPaint;\n apply(picture, colorToReplace, colorToPaint, x + 1, y);\n apply(picture, colorToReplace, colorToPaint, x - 1, y);\n apply(picture, colorToReplace, colorToPaint, x, y + 1);\n apply(picture, colorToReplace, colorToPaint, x, y - 1);\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "focal_method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "line_nums_new": "38-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0355, "method_coverage_gold": 2.1505, "line_coverage_gold": 1.4629, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["43b0f7812556191aa66ff9a84bc6957ea0371712"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "155_pedrovgs_Algorithms-master_7fd4ba7_a1c80a8_FloodFillTest", "test_sign": "com/github/pedrovgs/problem42/FloodFillTest.shouldNotAcceptNullInstances:()V", "class": "FloodFillTest", "method": "shouldNotAcceptNullInstances", "module": "", "junit_selector": "com.github.pedrovgs.problem42.FloodFillTest#shouldNotAcceptNullInstances", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstances() {\n floodFill.apply(null, 0, 1, 0, 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public void apply(int[][] picture, int colorToReplace, int colorToPaint, int x, int y) {\n validatePicture(picture);\n int currentColor = getValueAt(picture, x, y);\n if (currentColor == colorToReplace) {\n picture[x][y] = colorToPaint;\n apply(picture, colorToReplace, colorToPaint, x + 1, y);\n apply(picture, colorToReplace, colorToPaint, x - 1, y);\n apply(picture, colorToReplace, colorToPaint, x, y + 1);\n apply(picture, colorToReplace, colorToPaint, x, y - 1);\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "focal_method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "line_nums_new": "38-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1479, "method_coverage_gold": 1.0753, "line_coverage_gold": 0.3135, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["43b0f7812556191aa66ff9a84bc6957ea0371712"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "156_pedrovgs_Algorithms-master_7fd4ba7_a1c80a8_FloodFillTest", "test_sign": "com/github/pedrovgs/problem42/FloodFillTest.shouldNotModifyIfStartPaintingInOnePixelWithTheColorToPaint:()V", "class": "FloodFillTest", "method": "shouldNotModifyIfStartPaintingInOnePixelWithTheColorToPaint", "module": "", "junit_selector": "com.github.pedrovgs.problem42.FloodFillTest#shouldNotModifyIfStartPaintingInOnePixelWithTheColorToPaint", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotModifyIfStartPaintingInOnePixelWithTheColorToPaint() {\n int[][] picture = { { 1, 1, 1, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 1, 1, 1 } };\n int colorToReplace = 0;\n int colorToPaint = 1;\n int x = 0;\n int y = 0;\n floodFill.apply(picture, colorToReplace, colorToPaint, x, y);\n int[][] expectedResult = { { 1, 1, 1, 1 }, { 1, 0, 0, 1 }, { 1, 0, 0, 1 }, { 1, 1, 1, 1 } };\n assertArrayEquals(expectedResult, picture);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-70"], "old_production_code": "", "new_production_code": "public void apply(int[][] picture, int colorToReplace, int colorToPaint, int x, int y) {\n validatePicture(picture);\n int currentColor = getValueAt(picture, x, y);\n if (currentColor == colorToReplace) {\n picture[x][y] = colorToPaint;\n apply(picture, colorToReplace, colorToPaint, x + 1, y);\n apply(picture, colorToReplace, colorToPaint, x - 1, y);\n apply(picture, colorToReplace, colorToPaint, x, y + 1);\n apply(picture, colorToReplace, colorToPaint, x, y - 1);\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "focal_method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "line_nums_new": "38-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4444444444444444, "branch_coverage_gold": 0.8876, "method_coverage_gold": 2.1505, "line_coverage_gold": 0.9404, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["43b0f7812556191aa66ff9a84bc6957ea0371712"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem42/FloodFill.apply:([[IIIII)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem42/FloodFill.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__8726bb8_6327840__PathCalculatorTest_f8da485c", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "8726bb80de129d71c7c06949a012e28fe6ced97e", "rev2": "6327840345060132cc6ce422f4d8f33b77d18031", "rev1_date": "2014-12-22T20:23:22Z", "rev2_date": "2014-12-22T20:30:53Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/8726bb80de129d71c7c06949a012e28fe6ced97e...6327840345060132cc6ce422f4d8f33b77d18031", "test_file": "src/test/java/com/github/pedrovgs/problem37/PathCalculatorTest.java", "test_changes": [{"change_id": "134_pedrovgs_Algorithms-master_8726bb8_6327840_PathCalculatorTest", "test_sign": "com/github/pedrovgs/problem37/PathCalculatorTest.shouldCalculatePath:()V", "class": "PathCalculatorTest", "method": "shouldCalculatePath", "module": "", "junit_selector": "com.github.pedrovgs.problem37.PathCalculatorTest#shouldCalculatePath", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCalculatePath() {\n String finalPath = pathCalculator.calculate(\"/usr/bin/mail\", \"../../../etc/xyz\", \"../abc\");\n assertEquals(\"/etc/abc/\", finalPath);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-42"], "old_production_code": "", "new_production_code": "public String calculate(String absolute, String r1, String r2) {\n if (absolute == null || r1 == null || r2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n String[] absolutePath = absolute.split(DIR_SEPARATOR);\n String[] r1Path = r1.split(DIR_SEPARATOR);\n String[] r2Path = r2.split(DIR_SEPARATOR);\n String[] result = calculatePath(absolutePath, r1Path, r2Path);\n StringBuilder stringBuilder = new StringBuilder(DIR_SEPARATOR);\n for (String dir : result) {\n stringBuilder.append(dir);\n stringBuilder.append(\"/\");\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "focal_method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "line_nums_new": "37-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 2.3026, "method_coverage_gold": 1.7647, "line_coverage_gold": 2.3641, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b80988e0dc6d542a5ae81a0c17ba84c5b51034dd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "135_pedrovgs_Algorithms-master_8726bb8_6327840_PathCalculatorTest", "test_sign": "com/github/pedrovgs/problem37/PathCalculatorTest.shouldNotAcceptNullPaths:()V", "class": "PathCalculatorTest", "method": "shouldNotAcceptNullPaths", "module": "", "junit_selector": "com.github.pedrovgs.problem37.PathCalculatorTest#shouldNotAcceptNullPaths", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullPaths() {\n pathCalculator.calculate(null, null, null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public String calculate(String absolute, String r1, String r2) {\n if (absolute == null || r1 == null || r2 == null) {\n throw new IllegalArgumentException(\"You can't pass null strings as input.\");\n }\n String[] absolutePath = absolute.split(DIR_SEPARATOR);\n String[] r1Path = r1.split(DIR_SEPARATOR);\n String[] r2Path = r2.split(DIR_SEPARATOR);\n String[] result = calculatePath(absolutePath, r1Path, r2Path);\n StringBuilder stringBuilder = new StringBuilder(DIR_SEPARATOR);\n for (String dir : result) {\n stringBuilder.append(dir);\n stringBuilder.append(\"/\");\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "focal_method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "line_nums_new": "37-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.18181818181818182, "branch_coverage_gold": 0.1645, "method_coverage_gold": 1.1765, "line_coverage_gold": 0.3546, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b80988e0dc6d542a5ae81a0c17ba84c5b51034dd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem37/PathCalculator.calculate:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem37/PathCalculator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__89b2e59_9d23b87__MergeBinaryNumbersTest_da669bba", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "89b2e5999b1dd9d2c73b1604ff8d8c97df318d45", "rev2": "9d23b87c288d22c844a57c54a549fe311060c6b0", "rev1_date": "2015-01-22T00:08:29Z", "rev2_date": "2015-01-22T00:10:00Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/89b2e5999b1dd9d2c73b1604ff8d8c97df318d45...9d23b87c288d22c844a57c54a549fe311060c6b0", "test_file": "src/test/java/com/github/pedrovgs/problem67/MergeBinaryNumbersTest.java", "test_changes": [{"change_id": "252_pedrovgs_Algorithms-master_89b2e59_9d23b87_MergeBinaryNumbersTest", "test_sign": "com/github/pedrovgs/problem67/MergeBinaryNumbersTest.shouldMergeBinaryNumbersUsingPointers:()V", "class": "MergeBinaryNumbersTest", "method": "shouldMergeBinaryNumbersUsingPointers", "module": "", "junit_selector": "com.github.pedrovgs.problem67.MergeBinaryNumbersTest#shouldMergeBinaryNumbersUsingPointers", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMergeBinaryNumbersUsingPointers() {\n int n = 1024;\n int m = 19;\n int result = mergeBinaryNumbers.merge(n, m, 2, 6);\n int expectedResult = 1100;\n assertEquals(expectedResult, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-42"], "old_production_code": "", "new_production_code": "public int merge(int n, int m, int i, int j) {\n int maskFullOfOnes = ~0;\n int fullOfOnesBeforeJ = maskFullOfOnes << (j + 1);\n int fullOfOnesAfterI = ((1 << i) - 1);\n int allOnesExceptIandJ = fullOfOnesBeforeJ | fullOfOnesAfterI;\n int clearBitsBetweenIandJ = n & allOnesExceptIandJ;\n int moveMToTheCorrectPosition = m << i;\n return clearBitsBetweenIandJ | moveMToTheCorrectPosition;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem67/MergeBinaryNumbers.java", "focal_method_sign": "com/github/pedrovgs/problem67/MergeBinaryNumbers.merge:(IIII)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem67/MergeBinaryNumbers.merge:(IIII)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem67/MergeBinaryNumbers.java", "line_nums_new": "38-50", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.6369, "line_coverage_gold": 0.5229, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5d700f39832be9af4dfb42f122c3a85b2a0e7f33"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem67/MergeBinaryNumbers.merge:(IIII)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem67/MergeBinaryNumbers.merge:(IIII)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem67/MergeBinaryNumbers.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__97c67b5_f634ae6__ReverseBinaryNumberTest_93c897c0", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "97c67b5b0ef7046566fdf6eadf93050571b10b7b", "rev2": "f634ae6754399a82eda492fbb92322447116e57c", "rev1_date": "2015-01-25T23:12:57Z", "rev2_date": "2015-01-25T23:15:57Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/97c67b5b0ef7046566fdf6eadf93050571b10b7b...f634ae6754399a82eda492fbb92322447116e57c", "test_file": "src/test/java/com/github/pedrovgs/problem71/ReverseBinaryNumberTest.java", "test_changes": [{"change_id": "285_pedrovgs_Algorithms-master_97c67b5_f634ae6_ReverseBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumberTest.shouldReturnOneIfInputIsTwo:()V", "class": "ReverseBinaryNumberTest", "method": "shouldReturnOneIfInputIsTwo", "module": "", "junit_selector": "com.github.pedrovgs.problem71.ReverseBinaryNumberTest#shouldReturnOneIfInputIsTwo", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnOneIfInputIsTwo() {\n int input = 2;\n int result = reverseBinaryNumber.reverse(input);\n assertEquals(1, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-64"], "old_production_code": "", "new_production_code": "public int reverse(int input) {\n int result = 1;\n do {\n result <<= 1;\n result |= (input & 1) == 1 ? 0 : 1;\n input >>= 1;\n } while (input != 0);\n result = reverseBitsOrder(result);\n result = removeFirstOne(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "line_nums_new": "52-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6036, "method_coverage_gold": 1.8519, "line_coverage_gold": 1.2845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5c16c9cbb3492ee001755aa841ac1789e9b7ca08"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "286_pedrovgs_Algorithms-master_97c67b5_f634ae6_ReverseBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumberTest.shouldReturnTheReverseBinaryNumber:()V", "class": "ReverseBinaryNumberTest", "method": "shouldReturnTheReverseBinaryNumber", "module": "", "junit_selector": "com.github.pedrovgs.problem71.ReverseBinaryNumberTest#shouldReturnTheReverseBinaryNumber", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheReverseBinaryNumber() {\n int input = 11;\n int result = reverseBinaryNumber.reverse(input);\n assertEquals(4, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-72"], "old_production_code": "", "new_production_code": "public int reverse(int input) {\n int result = 1;\n do {\n result <<= 1;\n result |= (input & 1) == 1 ? 0 : 1;\n input >>= 1;\n } while (input != 0);\n result = reverseBitsOrder(result);\n result = removeFirstOne(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "line_nums_new": "52-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6036, "method_coverage_gold": 1.8519, "line_coverage_gold": 1.2845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5c16c9cbb3492ee001755aa841ac1789e9b7ca08"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "287_pedrovgs_Algorithms-master_97c67b5_f634ae6_ReverseBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumberTest.shouldReturnZeroIfInputIsOne:()V", "class": "ReverseBinaryNumberTest", "method": "shouldReturnZeroIfInputIsOne", "module": "", "junit_selector": "com.github.pedrovgs.problem71.ReverseBinaryNumberTest#shouldReturnZeroIfInputIsOne", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputIsOne() {\n int input = 1;\n int result = reverseBinaryNumber.reverse(input);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-48"], "old_production_code": "", "new_production_code": "public int reverse(int input) {\n int result = 1;\n do {\n result <<= 1;\n result |= (input & 1) == 1 ? 0 : 1;\n input >>= 1;\n } while (input != 0);\n result = reverseBitsOrder(result);\n result = removeFirstOne(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "line_nums_new": "52-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4024, "method_coverage_gold": 1.8519, "line_coverage_gold": 1.2845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5c16c9cbb3492ee001755aa841ac1789e9b7ca08"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "288_pedrovgs_Algorithms-master_97c67b5_f634ae6_ReverseBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumberTest.shouldReturnZeroIfInputIsFullOfOnes:()V", "class": "ReverseBinaryNumberTest", "method": "shouldReturnZeroIfInputIsFullOfOnes", "module": "", "junit_selector": "com.github.pedrovgs.problem71.ReverseBinaryNumberTest#shouldReturnZeroIfInputIsFullOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputIsFullOfOnes() {\n int input = 63;\n int result = reverseBinaryNumber.reverse(input);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-56"], "old_production_code": "", "new_production_code": "public int reverse(int input) {\n int result = 1;\n do {\n result <<= 1;\n result |= (input & 1) == 1 ? 0 : 1;\n input >>= 1;\n } while (input != 0);\n result = reverseBitsOrder(result);\n result = removeFirstOne(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "line_nums_new": "52-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.503, "method_coverage_gold": 1.8519, "line_coverage_gold": 1.2845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5c16c9cbb3492ee001755aa841ac1789e9b7ca08"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "289_pedrovgs_Algorithms-master_97c67b5_f634ae6_ReverseBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumberTest.shouldReturnOneIfInputIsZero:()V", "class": "ReverseBinaryNumberTest", "method": "shouldReturnOneIfInputIsZero", "module": "", "junit_selector": "com.github.pedrovgs.problem71.ReverseBinaryNumberTest#shouldReturnOneIfInputIsZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnOneIfInputIsZero() {\n int input = 0;\n int result = reverseBinaryNumber.reverse(input);\n assertEquals(1, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-40"], "old_production_code": "", "new_production_code": "public int reverse(int input) {\n int result = 1;\n do {\n result <<= 1;\n result |= (input & 1) == 1 ? 0 : 1;\n input >>= 1;\n } while (input != 0);\n result = reverseBitsOrder(result);\n result = removeFirstOne(result);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "line_nums_new": "52-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4024, "method_coverage_gold": 1.8519, "line_coverage_gold": 1.2845, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["5c16c9cbb3492ee001755aa841ac1789e9b7ca08"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem71/ReverseBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem71/ReverseBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__9b92f05_c40492f__WordSearchTest_41dd0256", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "9b92f0501475ebd917acfcda1e4df4ff0fb331b5", "rev2": "c40492f287ddd9af16aae10b2f77deeb8bbd324d", "rev1_date": "2015-01-01T23:20:45Z", "rev2_date": "2015-01-01T23:21:25Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/9b92f0501475ebd917acfcda1e4df4ff0fb331b5...c40492f287ddd9af16aae10b2f77deeb8bbd324d", "test_file": "src/test/java/com/github/pedrovgs/problem48/WordSearchTest.java", "test_changes": [{"change_id": "335_pedrovgs_Algorithms-master_9b92f05_c40492f_WordSearchTest", "test_sign": "com/github/pedrovgs/problem48/WordSearchTest.shouldNotAcceptNullWordsToSearchInTheMatrix:()V", "class": "WordSearchTest", "method": "shouldNotAcceptNullWordsToSearchInTheMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem48.WordSearchTest#shouldNotAcceptNullWordsToSearchInTheMatrix", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullWordsToSearchInTheMatrix() {\n wordSearch.contains(new char[0][0], null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-42"], "old_production_code": "", "new_production_code": "public boolean contains(char[][] wordSearch, String word) {\n validateInputData(wordSearch, word);\n for (int i = 0; i < wordSearch.length; i++) {\n for (int j = 0; j < wordSearch[i].length; j++) {\n if (matches(wordSearch, i, j, word.charAt(0))) {\n if (isWordInWordSearchInner(wordSearch, word, i, j)) {\n return true;\n }\n }\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "focal_method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "line_nums_new": "32-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1302, "method_coverage_gold": 0.939, "line_coverage_gold": 0.2768, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["dbdddd88534082192f71f4fcb8551f60279df28f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "336_pedrovgs_Algorithms-master_9b92f05_c40492f_WordSearchTest", "test_sign": "com/github/pedrovgs/problem48/WordSearchTest.shouldReturnFalseIfWordSearchIsEmpty:()V", "class": "WordSearchTest", "method": "shouldReturnFalseIfWordSearchIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem48.WordSearchTest#shouldReturnFalseIfWordSearchIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfWordSearchIsEmpty() {\n char[][] matrix = { { 'a', 'a', 'c', 'd', 'e' }, { 'a', 'd', 'a', 'r', 'c' }, { 'a', 'd', 'a', 'c', 'c' }, { 'b', 'a', 'c', 'o', 'o' } };\n boolean result = wordSearch.contains(matrix, \"pedro\");\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-53"], "old_production_code": "", "new_production_code": "public boolean contains(char[][] wordSearch, String word) {\n validateInputData(wordSearch, word);\n for (int i = 0; i < wordSearch.length; i++) {\n for (int j = 0; j < wordSearch[i].length; j++) {\n if (matches(wordSearch, i, j, word.charAt(0))) {\n if (isWordInWordSearchInner(wordSearch, word, i, j)) {\n return true;\n }\n }\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "focal_method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "line_nums_new": "32-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 1.5625, "method_coverage_gold": 1.8779, "line_coverage_gold": 0.9225, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["dbdddd88534082192f71f4fcb8551f60279df28f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "337_pedrovgs_Algorithms-master_9b92f05_c40492f_WordSearchTest", "test_sign": "com/github/pedrovgs/problem48/WordSearchTest.shouldReturnTrueIfWordToSearchIsInsideWordSearch:()V", "class": "WordSearchTest", "method": "shouldReturnTrueIfWordToSearchIsInsideWordSearch", "module": "", "junit_selector": "com.github.pedrovgs.problem48.WordSearchTest#shouldReturnTrueIfWordToSearchIsInsideWordSearch", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfWordToSearchIsInsideWordSearch() {\n char[][] matrix = { { 'a', 'a', 'c', 'd', 'e' }, { 'a', 'd', 'a', 'r', 'c' }, { 'a', 'd', 'a', 'c', 'c' }, { 'b', 'a', 'c', 'o', 'o' } };\n boolean result = wordSearch.contains(matrix, \"baco\");\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-64"], "old_production_code": "", "new_production_code": "public boolean contains(char[][] wordSearch, String word) {\n validateInputData(wordSearch, word);\n for (int i = 0; i < wordSearch.length; i++) {\n for (int j = 0; j < wordSearch[i].length; j++) {\n if (matches(wordSearch, i, j, word.charAt(0))) {\n if (isWordInWordSearchInner(wordSearch, word, i, j)) {\n return true;\n }\n }\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "focal_method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "line_nums_new": "32-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 3.9062, "method_coverage_gold": 2.3474, "line_coverage_gold": 2.3985, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["dbdddd88534082192f71f4fcb8551f60279df28f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "338_pedrovgs_Algorithms-master_9b92f05_c40492f_WordSearchTest", "test_sign": "com/github/pedrovgs/problem48/WordSearchTest.shouldNotAcceptNullWordSearch:()V", "class": "WordSearchTest", "method": "shouldNotAcceptNullWordSearch", "module": "", "junit_selector": "com.github.pedrovgs.problem48.WordSearchTest#shouldNotAcceptNullWordSearch", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullWordSearch() {\n wordSearch.contains(null, \"word\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean contains(char[][] wordSearch, String word) {\n validateInputData(wordSearch, word);\n for (int i = 0; i < wordSearch.length; i++) {\n for (int j = 0; j < wordSearch[i].length; j++) {\n if (matches(wordSearch, i, j, word.charAt(0))) {\n if (isWordInWordSearchInner(wordSearch, word, i, j)) {\n return true;\n }\n }\n }\n }\n return false;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "focal_method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "line_nums_new": "32-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2604, "method_coverage_gold": 0.939, "line_coverage_gold": 0.2768, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["dbdddd88534082192f71f4fcb8551f60279df28f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem48/WordSearch.contains:([[CLjava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem48/WordSearch.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__9f5d275_a13dd47__IsTreeBalancedTest_f5a0b5fc", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "9f5d2757c1447fb543b77d3403b5e697c2173a17", "rev2": "a13dd4713cb1d21ca5687f49fbbda5166f0c5f65", "rev1_date": "2015-01-19T18:37:01Z", "rev2_date": "2015-01-19T18:37:48Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/9f5d2757c1447fb543b77d3403b5e697c2173a17...a13dd4713cb1d21ca5687f49fbbda5166f0c5f65", "test_file": "src/test/java/com/github/pedrovgs/problem65/IsTreeBalancedTest.java", "test_changes": [{"change_id": "259_pedrovgs_Algorithms-master_9f5d275_a13dd47_IsTreeBalancedTest", "test_sign": "com/github/pedrovgs/problem65/IsTreeBalancedTest.shouldReturnFalseIfTreeIsNotBalanced:()V", "class": "IsTreeBalancedTest", "method": "shouldReturnFalseIfTreeIsNotBalanced", "module": "", "junit_selector": "com.github.pedrovgs.problem65.IsTreeBalancedTest#shouldReturnFalseIfTreeIsNotBalanced", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfTreeIsNotBalanced() {\n BinaryNode root = new BinaryNode(0);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n2 = new BinaryNode(2);\n BinaryNode n3 = new BinaryNode(3);\n BinaryNode n4 = new BinaryNode(4);\n root.setLeft(n1);\n root.setRight(n2);\n n1.setLeft(n3);\n n3.setLeft(n4);\n boolean isBalanced = isTreeBalanced.check(root);\n assertFalse(isBalanced);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-56"], "old_production_code": "", "new_production_code": "public boolean check(BinaryNode root) {\n if (root == null) {\n return true;\n } else {\n int heightDifference = getRootHeight(root.getLeft()) - getRootHeight(root.getRight());\n return Math.abs(heightDifference) <= 1;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "focal_method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "line_nums_new": "36-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.4098, "method_coverage_gold": 2.589, "line_coverage_gold": 1.0624, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ee2adad0943b89aeae960921fdb4cc49ed84a0d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "260_pedrovgs_Algorithms-master_9f5d275_a13dd47_IsTreeBalancedTest", "test_sign": "com/github/pedrovgs/problem65/IsTreeBalancedTest.shouldReturnTrueIfTreeIsBalanced:()V", "class": "IsTreeBalancedTest", "method": "shouldReturnTrueIfTreeIsBalanced", "module": "", "junit_selector": "com.github.pedrovgs.problem65.IsTreeBalancedTest#shouldReturnTrueIfTreeIsBalanced", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfTreeIsBalanced() {\n BinaryNode root = new BinaryNode(0);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n2 = new BinaryNode(2);\n BinaryNode n3 = new BinaryNode(3);\n BinaryNode n4 = new BinaryNode(4);\n root.setLeft(n1);\n root.setRight(n2);\n n1.setLeft(n3);\n n2.setRight(n4);\n boolean isBalanced = isTreeBalanced.check(root);\n assertTrue(isBalanced);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-72"], "old_production_code": "", "new_production_code": "public boolean check(BinaryNode root) {\n if (root == null) {\n return true;\n } else {\n int heightDifference = getRootHeight(root.getLeft()) - getRootHeight(root.getRight());\n return Math.abs(heightDifference) <= 1;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "focal_method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "line_nums_new": "36-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.4098, "method_coverage_gold": 2.589, "line_coverage_gold": 1.0624, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ee2adad0943b89aeae960921fdb4cc49ed84a0d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "261_pedrovgs_Algorithms-master_9f5d275_a13dd47_IsTreeBalancedTest", "test_sign": "com/github/pedrovgs/problem65/IsTreeBalancedTest.shouldReturnTrueIfTreeIsNull:()V", "class": "IsTreeBalancedTest", "method": "shouldReturnTrueIfTreeIsNull", "module": "", "junit_selector": "com.github.pedrovgs.problem65.IsTreeBalancedTest#shouldReturnTrueIfTreeIsNull", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfTreeIsNull() {\n boolean isBalanced = isTreeBalanced.check(null);\n assertTrue(isBalanced);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-40"], "old_production_code": "", "new_production_code": "public boolean check(BinaryNode root) {\n if (root == null) {\n return true;\n } else {\n int heightDifference = getRootHeight(root.getLeft()) - getRootHeight(root.getRight());\n return Math.abs(heightDifference) <= 1;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "focal_method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "line_nums_new": "36-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.1025, "method_coverage_gold": 0.6472, "line_coverage_gold": 0.1992, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["ee2adad0943b89aeae960921fdb4cc49ed84a0d5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem65/IsTreeBalanced.check:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem65/IsTreeBalanced.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__9f77713_bfa797f__RemoveListDuplicatedElementsTest_1d44d550", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "9f7771388a3f83323163b905c33f1ec0e61673ac", "rev2": "bfa797fc1938c6474ede03068bbe99bee08d8fc3", "rev1_date": "2015-01-10T00:12:34Z", "rev2_date": "2015-01-10T00:13:27Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/9f7771388a3f83323163b905c33f1ec0e61673ac...bfa797fc1938c6474ede03068bbe99bee08d8fc3", "test_file": "src/test/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.java", "test_changes": [{"change_id": "339_pedrovgs_Algorithms-master_9f77713_bfa797f_RemoveListDuplicatedElementsTest", "test_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.shouldRemoveDuplicatedElements2:()V", "class": "RemoveListDuplicatedElementsTest", "method": "shouldRemoveDuplicatedElements2", "module": "", "junit_selector": "com.github.pedrovgs.problem57.RemoveListDuplicatedElementsTest#shouldRemoveDuplicatedElements2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRemoveDuplicatedElements2() {\n ListNode head = createList(new Integer[] { 0, 1, 0, 2, 2, 3, 4, 4 });\n removeDuplicates.remove2(head);\n assertListContainsElements(new Integer[] { 0, 1, 2, 3, 4 }, head);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-76"], "old_production_code": "", "new_production_code": "public void remove2(ListNode head) {\n validateInput(head);\n ListNode node = head;\n while (node != null) {\n removeNextNodesWithValue(node);\n node = node.getNext();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "focal_method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "line_nums_new": "57-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.7919, "method_coverage_gold": 3.0303, "line_coverage_gold": 1.849, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.createList:([Ljava/lang/Integer;)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.assertListContainsElements:([Ljava/lang/Integer;Lcom/github/pedrovgs/linkedlist/ListNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "340_pedrovgs_Algorithms-master_9f77713_bfa797f_RemoveListDuplicatedElementsTest", "test_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.shouldNotAcceptNullInstancesAsParameter2:()V", "class": "RemoveListDuplicatedElementsTest", "method": "shouldNotAcceptNullInstancesAsParameter2", "module": "", "junit_selector": "com.github.pedrovgs.problem57.RemoveListDuplicatedElementsTest#shouldNotAcceptNullInstancesAsParameter2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsParameter2() {\n removeDuplicates.remove2(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-60"], "old_production_code": "", "new_production_code": "public void remove2(ListNode head) {\n validateInput(head);\n ListNode node = head;\n while (node != null) {\n removeNextNodesWithValue(node);\n node = node.getNext();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "focal_method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "line_nums_new": "57-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1131, "method_coverage_gold": 0.7576, "line_coverage_gold": 0.2311, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "341_pedrovgs_Algorithms-master_9f77713_bfa797f_RemoveListDuplicatedElementsTest", "test_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.shouldNotModifyListIfThereAreNotDuplicatedElements2:()V", "class": "RemoveListDuplicatedElementsTest", "method": "shouldNotModifyListIfThereAreNotDuplicatedElements2", "module": "", "junit_selector": "com.github.pedrovgs.problem57.RemoveListDuplicatedElementsTest#shouldNotModifyListIfThereAreNotDuplicatedElements2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotModifyListIfThereAreNotDuplicatedElements2() {\n ListNode head = createList(new Integer[] { 0, 1, 2, 3, 4 });\n removeDuplicates.remove2(head);\n assertListContainsElements(new Integer[] { 0, 1, 2, 3, 4 }, head);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-68"], "old_production_code": "", "new_production_code": "public void remove2(ListNode head) {\n validateInput(head);\n ListNode node = head;\n while (node != null) {\n removeNextNodesWithValue(node);\n node = node.getNext();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "focal_method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "line_nums_new": "57-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6787, "method_coverage_gold": 3.0303, "line_coverage_gold": 1.772, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.createList:([Ljava/lang/Integer;)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "com/github/pedrovgs/problem57/RemoveListDuplicatedElementsTest.assertListContainsElements:([Ljava/lang/Integer;Lcom/github/pedrovgs/linkedlist/ListNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem57/RemoveListDuplicatedElements.remove2:(Lcom/github/pedrovgs/linkedlist/ListNode;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem57/RemoveListDuplicatedElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__a1a7d14_6423733__CientificNotationTest_2772af43", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "a1a7d14544b82669dc125f5e616ddf86fb60a0be", "rev2": "64237331f227f1cfa11b9f3b26f19c763a940ec1", "rev1_date": "2014-12-14T23:00:53Z", "rev2_date": "2014-12-14T23:08:22Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/a1a7d14544b82669dc125f5e616ddf86fb60a0be...64237331f227f1cfa11b9f3b26f19c763a940ec1", "test_file": "src/test/java/com/github/pedrovgs/problem30/CientificNotationTest.java", "test_changes": [{"change_id": "182_pedrovgs_Algorithms-master_a1a7d14_6423733_CientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/CientificNotationTest.shouldTakeIntoAccountNegativeNumbers:()V", "class": "CientificNotationTest", "method": "shouldTakeIntoAccountNegativeNumbers", "module": "", "junit_selector": "com.github.pedrovgs.problem30.CientificNotationTest#shouldTakeIntoAccountNegativeNumbers", "old_test_code": null, "new_test_code": "@Test\npublic void shouldTakeIntoAccountNegativeNumbers() {\n String number = \"-9.18E+09\";\n long result = cientificNotation.calculate(number);\n assertEquals(-9180000000L, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-57"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || number.indexOf(\"E\") == -1) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = number.split(\"E\");\n double first = Double.parseDouble(splittedNumber[0]);\n int sign = splittedNumber[1].charAt(0) == '+' ? 1 : -1;\n int pow = Integer.parseInt(splittedNumber[1].substring(1, splittedNumber[1].length()));\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "line_nums_new": "27-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.6383, "method_coverage_gold": 1.3699, "line_coverage_gold": 1.1189, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2e31e380cf3d5e296a84b7f9003a13ec1f157220"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "183_pedrovgs_Algorithms-master_a1a7d14_6423733_CientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/CientificNotationTest.shouldNotAcceptNullStringAsInput:()V", "class": "CientificNotationTest", "method": "shouldNotAcceptNullStringAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem30.CientificNotationTest#shouldNotAcceptNullStringAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringAsInput() {\n cientificNotation.calculate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || number.indexOf(\"E\") == -1) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = number.split(\"E\");\n double first = Double.parseDouble(splittedNumber[0]);\n int sign = splittedNumber[1].charAt(0) == '+' ? 1 : -1;\n int pow = Integer.parseInt(splittedNumber[1].substring(1, splittedNumber[1].length()));\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "line_nums_new": "27-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.2128, "method_coverage_gold": 1.3699, "line_coverage_gold": 0.4196, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2e31e380cf3d5e296a84b7f9003a13ec1f157220"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "184_pedrovgs_Algorithms-master_a1a7d14_6423733_CientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/CientificNotationTest.shouldNotAcceptMalformedScientificNumbers:()V", "class": "CientificNotationTest", "method": "shouldNotAcceptMalformedScientificNumbers", "module": "", "junit_selector": "com.github.pedrovgs.problem30.CientificNotationTest#shouldNotAcceptMalformedScientificNumbers", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptMalformedScientificNumbers() {\n cientificNotation.calculate(\"9.18F+09\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-41"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || number.indexOf(\"E\") == -1) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = number.split(\"E\");\n double first = Double.parseDouble(splittedNumber[0]);\n int sign = splittedNumber[1].charAt(0) == '+' ? 1 : -1;\n int pow = Integer.parseInt(splittedNumber[1].substring(1, splittedNumber[1].length()));\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "line_nums_new": "27-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.4255, "method_coverage_gold": 1.3699, "line_coverage_gold": 0.4196, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2e31e380cf3d5e296a84b7f9003a13ec1f157220"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "185_pedrovgs_Algorithms-master_a1a7d14_6423733_CientificNotationTest", "test_sign": "com/github/pedrovgs/problem30/CientificNotationTest.shouldReturnTheValueOfTheNumber:()V", "class": "CientificNotationTest", "method": "shouldReturnTheValueOfTheNumber", "module": "", "junit_selector": "com.github.pedrovgs.problem30.CientificNotationTest#shouldReturnTheValueOfTheNumber", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheValueOfTheNumber() {\n String number = \"9.18E+09\";\n long result = cientificNotation.calculate(number);\n assertEquals(9180000000L, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-49"], "old_production_code": "", "new_production_code": "public long calculate(String number) {\n if (number == null || number.indexOf(\"E\") == -1) {\n throw new IllegalArgumentException(\"Invalid format for number \" + number);\n }\n String[] splittedNumber = number.split(\"E\");\n double first = Double.parseDouble(splittedNumber[0]);\n int sign = splittedNumber[1].charAt(0) == '+' ? 1 : -1;\n int pow = Integer.parseInt(splittedNumber[1].substring(1, splittedNumber[1].length()));\n Double result = sign * first * Math.pow(10, pow);\n return result.longValue();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "focal_method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "line_nums_new": "27-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 0.6383, "method_coverage_gold": 1.3699, "line_coverage_gold": 1.1189, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2e31e380cf3d5e296a84b7f9003a13ec1f157220"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem30/CientificNotation.calculate:(Ljava/lang/String;)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem30/CientificNotation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__a8b9ab0_0c7e43b__AutoBoxingTrickTest_d8d28005", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "a8b9ab08f338edaa332f69c75537b62e0eb13fd9", "rev2": "0c7e43bc531adb20afa201f04c915f2c833028d8", "rev1_date": "2015-02-22T11:41:04Z", "rev2_date": "2015-02-22T11:44:50Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/a8b9ab08f338edaa332f69c75537b62e0eb13fd9...0c7e43bc531adb20afa201f04c915f2c833028d8", "test_file": "src/test/java/com/github/pedrovgs/problem78/AutoBoxingTrickTest.java", "test_changes": [{"change_id": "324_pedrovgs_Algorithms-master_a8b9ab0_0c7e43b_AutoBoxingTrickTest", "test_sign": "com/github/pedrovgs/problem78/AutoBoxingTrickTest.shouldReturnFalseButReturnsTrue:()V", "class": "AutoBoxingTrickTest", "method": "shouldReturnFalseButReturnsTrue", "module": "", "junit_selector": "com.github.pedrovgs.problem78.AutoBoxingTrickTest#shouldReturnFalseButReturnsTrue", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseButReturnsTrue() {\n assertTrue(autoBoxingTrick.compare(1, 1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-39"], "old_production_code": "", "new_production_code": "public boolean compare(Integer n1, Integer n2) {\n return n1 == n2;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "focal_method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "line_nums_new": "26-28", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0971, "method_coverage_gold": 0.5797, "line_coverage_gold": 0.1229, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b04b32151dbba9fb1fd05e38f446691e7f3b9ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "325_pedrovgs_Algorithms-master_a8b9ab0_0c7e43b_AutoBoxingTrickTest", "test_sign": "com/github/pedrovgs/problem78/AutoBoxingTrickTest.shouldReturnFalseAndReturnsFalse:()V", "class": "AutoBoxingTrickTest", "method": "shouldReturnFalseAndReturnsFalse", "module": "", "junit_selector": "com.github.pedrovgs.problem78.AutoBoxingTrickTest#shouldReturnFalseAndReturnsFalse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseAndReturnsFalse() {\n assertFalse(autoBoxingTrick.compare(1000, 1000));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-43"], "old_production_code": "", "new_production_code": "public boolean compare(Integer n1, Integer n2) {\n return n1 == n2;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "focal_method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "line_nums_new": "26-28", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0971, "method_coverage_gold": 0.5797, "line_coverage_gold": 0.1229, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["b04b32151dbba9fb1fd05e38f446691e7f3b9ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem78/AutoBoxingTrick.compare:(Ljava/lang/Integer;Ljava/lang/Integer;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem78/AutoBoxingTrick.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__a976228_e381083__AvlTreeMedianTest_a22e8782", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "a976228d99c8af4f5689c53d2741bcd4770aaba0", "rev2": "e381083181f07443cc74caec6f91a9d1e822eea5", "rev1_date": "2014-12-21T16:48:58Z", "rev2_date": "2014-12-21T17:12:05Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/a976228d99c8af4f5689c53d2741bcd4770aaba0...e381083181f07443cc74caec6f91a9d1e822eea5", "test_file": "src/test/java/com/github/pedrovgs/problem36/AvlTreeMedianTest.java", "test_changes": [{"change_id": "193_pedrovgs_Algorithms-master_a976228_e381083_AvlTreeMedianTest", "test_sign": "com/github/pedrovgs/problem36/AvlTreeMedianTest.shouldNotAcceptNullTrees:()V", "class": "AvlTreeMedianTest", "method": "shouldNotAcceptNullTrees", "module": "", "junit_selector": "com.github.pedrovgs.problem36.AvlTreeMedianTest#shouldNotAcceptNullTrees", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullTrees() {\n avlTreeMedian.find(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-39"], "old_production_code": "", "new_production_code": "public double find(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null binary tree to this method.\");\n }\n List> sortedElements = binaryTreeInOrder.getIterative(root);\n double median = 0;\n if (sortedElements.size() % 2 == 0) {\n median = (sortedElements.get(sortedElements.size() / 2).getData() + sortedElements.get(sortedElements.size() / 2 - 1).getData()) / 2;\n } else {\n median = sortedElements.get(sortedElements.size() / 2).getData();\n }\n return median;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "focal_method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2222222222222222, "branch_coverage_gold": 0.1695, "method_coverage_gold": 1.7964, "line_coverage_gold": 0.7273, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c7e39eccb3d8a36e4c64d709e9f6bea1b36cd50b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "194_pedrovgs_Algorithms-master_a976228_e381083_AvlTreeMedianTest", "test_sign": "com/github/pedrovgs/problem36/AvlTreeMedianTest.shouldReturnRootElementIfTheTreeContainsTFiveElements:()V", "class": "AvlTreeMedianTest", "method": "shouldReturnRootElementIfTheTreeContainsTFiveElements", "module": "", "junit_selector": "com.github.pedrovgs.problem36.AvlTreeMedianTest#shouldReturnRootElementIfTheTreeContainsTFiveElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnRootElementIfTheTreeContainsTFiveElements() {\n BinaryNode root = new BinaryNode(2);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n3 = new BinaryNode(3);\n BinaryNode n4 = new BinaryNode(4);\n BinaryNode n5 = new BinaryNode(-1);\n root.setLeft(n1);\n root.setRight(n3);\n n3.setRight(n4);\n n1.setLeft(n5);\n double median = avlTreeMedian.find(root);\n assertEquals(2, median, DELTA);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-64"], "old_production_code": "", "new_production_code": "public double find(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null binary tree to this method.\");\n }\n List> sortedElements = binaryTreeInOrder.getIterative(root);\n double median = 0;\n if (sortedElements.size() % 2 == 0) {\n median = (sortedElements.get(sortedElements.size() / 2).getData() + sortedElements.get(sortedElements.size() / 2 - 1).getData()) / 2;\n } else {\n median = sortedElements.get(sortedElements.size() / 2).getData();\n }\n return median;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "focal_method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 1.5254, "method_coverage_gold": 6.5868, "line_coverage_gold": 4.2424, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c7e39eccb3d8a36e4c64d709e9f6bea1b36cd50b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "195_pedrovgs_Algorithms-master_a976228_e381083_AvlTreeMedianTest", "test_sign": "com/github/pedrovgs/problem36/AvlTreeMedianTest.shouldReturnRootElementIfTheTreeContainsJustOneElement:()V", "class": "AvlTreeMedianTest", "method": "shouldReturnRootElementIfTheTreeContainsJustOneElement", "module": "", "junit_selector": "com.github.pedrovgs.problem36.AvlTreeMedianTest#shouldReturnRootElementIfTheTreeContainsJustOneElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnRootElementIfTheTreeContainsJustOneElement() {\n BinaryNode root = new BinaryNode(1);\n double median = avlTreeMedian.find(root);\n assertEquals(1, median, DELTA);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-47"], "old_production_code": "", "new_production_code": "public double find(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null binary tree to this method.\");\n }\n List> sortedElements = binaryTreeInOrder.getIterative(root);\n double median = 0;\n if (sortedElements.size() % 2 == 0) {\n median = (sortedElements.get(sortedElements.size() / 2).getData() + sortedElements.get(sortedElements.size() / 2 - 1).getData()) / 2;\n } else {\n median = sortedElements.get(sortedElements.size() / 2).getData();\n }\n return median;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "focal_method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.5254, "method_coverage_gold": 5.3892, "line_coverage_gold": 3.7576, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c7e39eccb3d8a36e4c64d709e9f6bea1b36cd50b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "196_pedrovgs_Algorithms-master_a976228_e381083_AvlTreeMedianTest", "test_sign": "com/github/pedrovgs/problem36/AvlTreeMedianTest.shouldFindMedianWithAnOddNumberOfElements:()V", "class": "AvlTreeMedianTest", "method": "shouldFindMedianWithAnOddNumberOfElements", "module": "", "junit_selector": "com.github.pedrovgs.problem36.AvlTreeMedianTest#shouldFindMedianWithAnOddNumberOfElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindMedianWithAnOddNumberOfElements() {\n BinaryNode root = new BinaryNode(50);\n BinaryNode n17 = new BinaryNode(17);\n BinaryNode n76 = new BinaryNode(76);\n BinaryNode n9 = new BinaryNode(9);\n BinaryNode n14 = new BinaryNode(14);\n BinaryNode n23 = new BinaryNode(23);\n BinaryNode n54 = new BinaryNode(54);\n BinaryNode n72 = new BinaryNode(72);\n BinaryNode n90 = new BinaryNode(90);\n BinaryNode n89 = new BinaryNode(89);\n BinaryNode n91 = new BinaryNode(91);\n root.setLeft(n17);\n root.setRight(n76);\n n17.setLeft(n9);\n n9.setRight(n14);\n n17.setRight(n23);\n n76.setLeft(n54);\n n54.setRight(n72);\n n76.setRight(n90);\n n90.setLeft(n89);\n n90.setRight(n91);\n double median = avlTreeMedian.find(root);\n assertEquals(54, median, DELTA);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["97-124"], "old_production_code": "", "new_production_code": "public double find(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null binary tree to this method.\");\n }\n List> sortedElements = binaryTreeInOrder.getIterative(root);\n double median = 0;\n if (sortedElements.size() % 2 == 0) {\n median = (sortedElements.get(sortedElements.size() / 2).getData() + sortedElements.get(sortedElements.size() / 2 - 1).getData()) / 2;\n } else {\n median = sortedElements.get(sortedElements.size() / 2).getData();\n }\n return median;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "focal_method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 1.5254, "method_coverage_gold": 6.5868, "line_coverage_gold": 4.2424, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c7e39eccb3d8a36e4c64d709e9f6bea1b36cd50b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "197_pedrovgs_Algorithms-master_a976228_e381083_AvlTreeMedianTest", "test_sign": "com/github/pedrovgs/problem36/AvlTreeMedianTest.shouldFindMedianWithAEvenNumberOfElements:()V", "class": "AvlTreeMedianTest", "method": "shouldFindMedianWithAEvenNumberOfElements", "module": "", "junit_selector": "com.github.pedrovgs.problem36.AvlTreeMedianTest#shouldFindMedianWithAEvenNumberOfElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindMedianWithAEvenNumberOfElements() {\n BinaryNode root = new BinaryNode(50);\n BinaryNode n17 = new BinaryNode(17);\n BinaryNode n76 = new BinaryNode(76);\n BinaryNode n9 = new BinaryNode(9);\n BinaryNode n14 = new BinaryNode(14);\n BinaryNode n23 = new BinaryNode(23);\n BinaryNode n54 = new BinaryNode(54);\n BinaryNode n72 = new BinaryNode(72);\n BinaryNode n90 = new BinaryNode(90);\n BinaryNode n89 = new BinaryNode(89);\n BinaryNode n91 = new BinaryNode(91);\n BinaryNode n92 = new BinaryNode(93);\n root.setLeft(n17);\n root.setRight(n76);\n n17.setLeft(n9);\n n9.setRight(n14);\n n17.setRight(n23);\n n76.setLeft(n54);\n n54.setRight(n72);\n n76.setRight(n90);\n n90.setLeft(n89);\n n90.setRight(n91);\n n91.setRight(n92);\n double median = avlTreeMedian.find(root);\n assertEquals(63, median, DELTA);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-95"], "old_production_code": "", "new_production_code": "public double find(BinaryNode root) {\n if (root == null) {\n throw new IllegalArgumentException(\"You can't pass a null binary tree to this method.\");\n }\n List> sortedElements = binaryTreeInOrder.getIterative(root);\n double median = 0;\n if (sortedElements.size() % 2 == 0) {\n median = (sortedElements.get(sortedElements.size() / 2).getData() + sortedElements.get(sortedElements.size() / 2 - 1).getData()) / 2;\n } else {\n median = sortedElements.get(sortedElements.size() / 2).getData();\n }\n return median;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "focal_method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "line_nums_new": "43-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 1.5254, "method_coverage_gold": 6.5868, "line_coverage_gold": 4.3636, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c7e39eccb3d8a36e4c64d709e9f6bea1b36cd50b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem36/AvlTreeMedian.find:(Lcom/github/pedrovgs/binarytree/BinaryNode;)D", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem36/AvlTreeMedian.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__b370de8_a9aef20__PalindromeListTest_d10beb74", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "b370de88793a2f59aee61db30df6f320944d8781", "rev2": "a9aef207d3524c836f25bdca8580604d119f1bb8", "rev1_date": "2015-01-14T23:30:18Z", "rev2_date": "2015-01-14T23:31:23Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/b370de88793a2f59aee61db30df6f320944d8781...a9aef207d3524c836f25bdca8580604d119f1bb8", "test_file": "src/test/java/com/github/pedrovgs/problem62/PalindromeListTest.java", "test_changes": [{"change_id": "262_pedrovgs_Algorithms-master_b370de8_a9aef20_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldNotAcceptNullListAsInputIterative:()V", "class": "PalindromeListTest", "method": "shouldNotAcceptNullListAsInputIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldNotAcceptNullListAsInputIterative", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsInputIterative() {\n palindromeList.checkIterative(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-76"], "old_production_code": "", "new_production_code": "public boolean checkIterative(ListNode list) {\n validateInput(list);\n Stack stack = new Stack();\n ListNode fastPointer = list;\n ListNode slowPointer = list;\n while (fastPointer != null && fastPointer.getNext() != null) {\n stack.add(slowPointer);\n slowPointer = slowPointer.getNext();\n fastPointer = fastPointer.getNext().getNext();\n }\n if (fastPointer != null) {\n slowPointer = slowPointer.getNext();\n }\n boolean isPalindrome = true;\n while (slowPointer != null) {\n if (!stack.pop().equals(slowPointer)) {\n isPalindrome = false;\n break;\n }\n slowPointer = slowPointer.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "67-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1053, "method_coverage_gold": 1.0274, "line_coverage_gold": 0.4141, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af79414f3b39e2317e2fd83f6f15e35ea3345a90"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "263_pedrovgs_Algorithms-master_b370de8_a9aef20_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldReturnFalseIfListIsNotPalindromeIterative:()V", "class": "PalindromeListTest", "method": "shouldReturnFalseIfListIsNotPalindromeIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldReturnFalseIfListIsNotPalindromeIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfListIsNotPalindromeIterative() {\n ListNode list = createList(new int[] { 1, 1, 3 });\n boolean result = palindromeList.checkIterative(list);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-108"], "old_production_code": "", "new_production_code": "public boolean checkIterative(ListNode list) {\n validateInput(list);\n Stack stack = new Stack();\n ListNode fastPointer = list;\n ListNode slowPointer = list;\n while (fastPointer != null && fastPointer.getNext() != null) {\n stack.add(slowPointer);\n slowPointer = slowPointer.getNext();\n fastPointer = fastPointer.getNext().getNext();\n }\n if (fastPointer != null) {\n slowPointer = slowPointer.getNext();\n }\n boolean isPalindrome = true;\n while (slowPointer != null) {\n if (!stack.pop().equals(slowPointer)) {\n isPalindrome = false;\n break;\n }\n slowPointer = slowPointer.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "67-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 1.0526, "method_coverage_gold": 2.7397, "line_coverage_gold": 2.2084, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af79414f3b39e2317e2fd83f6f15e35ea3345a90"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "com/github/pedrovgs/problem62/PalindromeListTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "264_pedrovgs_Algorithms-master_b370de8_a9aef20_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldReturnTrueIfListIsPalindromeIterative:()V", "class": "PalindromeListTest", "method": "shouldReturnTrueIfListIsPalindromeIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldReturnTrueIfListIsPalindromeIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfListIsPalindromeIterative() {\n ListNode list = createList(new int[] { 1, 2, 1 });\n boolean result = palindromeList.checkIterative(list);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-100"], "old_production_code": "", "new_production_code": "public boolean checkIterative(ListNode list) {\n validateInput(list);\n Stack stack = new Stack();\n ListNode fastPointer = list;\n ListNode slowPointer = list;\n while (fastPointer != null && fastPointer.getNext() != null) {\n stack.add(slowPointer);\n slowPointer = slowPointer.getNext();\n fastPointer = fastPointer.getNext().getNext();\n }\n if (fastPointer != null) {\n slowPointer = slowPointer.getNext();\n }\n boolean isPalindrome = true;\n while (slowPointer != null) {\n if (!stack.pop().equals(slowPointer)) {\n isPalindrome = false;\n break;\n }\n slowPointer = slowPointer.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "67-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8823529411764706, "branch_coverage_gold": 1.1579, "method_coverage_gold": 2.7397, "line_coverage_gold": 2.2084, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af79414f3b39e2317e2fd83f6f15e35ea3345a90"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "com/github/pedrovgs/problem62/PalindromeListTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "265_pedrovgs_Algorithms-master_b370de8_a9aef20_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldReturnTrueIfListContainsJustOneNodeIterative:()V", "class": "PalindromeListTest", "method": "shouldReturnTrueIfListContainsJustOneNodeIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldReturnTrueIfListContainsJustOneNodeIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfListContainsJustOneNodeIterative() {\n ListNode list = new ListNode(1);\n boolean result = palindromeList.checkIterative(list);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-84"], "old_production_code": "", "new_production_code": "public boolean checkIterative(ListNode list) {\n validateInput(list);\n Stack stack = new Stack();\n ListNode fastPointer = list;\n ListNode slowPointer = list;\n while (fastPointer != null && fastPointer.getNext() != null) {\n stack.add(slowPointer);\n slowPointer = slowPointer.getNext();\n fastPointer = fastPointer.getNext().getNext();\n }\n if (fastPointer != null) {\n slowPointer = slowPointer.getNext();\n }\n boolean isPalindrome = true;\n while (slowPointer != null) {\n if (!stack.pop().equals(slowPointer)) {\n isPalindrome = false;\n break;\n }\n slowPointer = slowPointer.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "67-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5882352941176471, "branch_coverage_gold": 0.5263, "method_coverage_gold": 2.0548, "line_coverage_gold": 1.3803, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af79414f3b39e2317e2fd83f6f15e35ea3345a90"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "266_pedrovgs_Algorithms-master_b370de8_a9aef20_PalindromeListTest", "test_sign": "com/github/pedrovgs/problem62/PalindromeListTest.shouldRturnTrueIfListContainsTwoElementsWithTheSameValueIterative:()V", "class": "PalindromeListTest", "method": "shouldRturnTrueIfListContainsTwoElementsWithTheSameValueIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem62.PalindromeListTest#shouldRturnTrueIfListContainsTwoElementsWithTheSameValueIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRturnTrueIfListContainsTwoElementsWithTheSameValueIterative() {\n ListNode list = createList(new int[] { 1, 1 });\n boolean result = palindromeList.checkIterative(list);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-92"], "old_production_code": "", "new_production_code": "public boolean checkIterative(ListNode list) {\n validateInput(list);\n Stack stack = new Stack();\n ListNode fastPointer = list;\n ListNode slowPointer = list;\n while (fastPointer != null && fastPointer.getNext() != null) {\n stack.add(slowPointer);\n slowPointer = slowPointer.getNext();\n fastPointer = fastPointer.getNext().getNext();\n }\n if (fastPointer != null) {\n slowPointer = slowPointer.getNext();\n }\n boolean isPalindrome = true;\n while (slowPointer != null) {\n if (!stack.pop().equals(slowPointer)) {\n isPalindrome = false;\n break;\n }\n slowPointer = slowPointer.getNext();\n }\n return isPalindrome;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "focal_method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "line_nums_new": "67-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8235294117647058, "branch_coverage_gold": 1.1579, "method_coverage_gold": 2.7397, "line_coverage_gold": 2.1394, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["af79414f3b39e2317e2fd83f6f15e35ea3345a90"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "com/github/pedrovgs/problem62/PalindromeListTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem62/PalindromeList.checkIterative:(Lcom/github/pedrovgs/linkedlist/ListNode;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem62/PalindromeList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__b7ca0a2_e17dd71__FindLongestConsecutiveSequenceTest_a91f103a", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "b7ca0a2afc43e167e38993cd0ede6e8c1fb60ff8", "rev2": "e17dd71e6c58f1f00a46ef86fadef5145cb66713", "rev1_date": "2014-12-15T23:44:58Z", "rev2_date": "2014-12-15T23:48:42Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/b7ca0a2afc43e167e38993cd0ede6e8c1fb60ff8...e17dd71e6c58f1f00a46ef86fadef5145cb66713", "test_file": "src/test/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.java", "test_changes": [{"change_id": "227_pedrovgs_Algorithms-master_b7ca0a2_e17dd71_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceIterative:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceIterative() {\n int[] array = { 6, 5, 4, 3, 2, 1 };\n int sequenceLength = lcs.findIterative(array);\n assertEquals(0, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "public int findIterative(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "new_production_code": "public int findIterative(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n boolean consecutiveSequenceFound = false;\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n consecutiveSequenceFound = true;\n result = end - start;\n }\n }\n if (consecutiveSequenceFound) {\n return result + 1;\n } else {\n return result;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findIterative:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findIterative:([I)I", "file_path_old": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_old": "32-53", "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "33-60", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6470588235294118, "branch_coverage_gold": 1.4523, "method_coverage_gold": 1.3158, "line_coverage_gold": 1.6282, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findIterative:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findIterative:([I)I", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__ba92e04_d690539__AreAnagramsTest_7e04cba3", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "ba92e0468c9a0099dfa40b89132a1f582e13c69e", "rev2": "d690539a96d94d0c98fcaeabb1615729373cdede", "rev1_date": "2014-12-14T13:03:56Z", "rev2_date": "2014-12-14T13:13:11Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/ba92e0468c9a0099dfa40b89132a1f582e13c69e...d690539a96d94d0c98fcaeabb1615729373cdede", "test_file": "src/test/java/com/github/pedrovgs/problem29/AreAnagramsTest.java", "test_changes": [{"change_id": "401_pedrovgs_Algorithms-master_ba92e04_d690539_AreAnagramsTest", "test_sign": "com/github/pedrovgs/problem29/AreAnagramsTest.shouldReturnFalseIfOneWordIsEmptyAndTheOtherNo:()V", "class": "AreAnagramsTest", "method": "shouldReturnFalseIfOneWordIsEmptyAndTheOtherNo", "module": "", "junit_selector": "com.github.pedrovgs.problem29.AreAnagramsTest#shouldReturnFalseIfOneWordIsEmptyAndTheOtherNo", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfOneWordIsEmptyAndTheOtherNo() {\n assertFalse(areAnagrams.check(\"\", \"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-45"], "old_production_code": "", "new_production_code": "public boolean check(String a, String b) {\n if (a == null || b == null) {\n throw new IllegalArgumentException(\"You can't use null Strings as input.\");\n }\n if (a.length() != b.length()) {\n return false;\n }\n int[] lettersA = getLettersAsArray(a);\n int[] lettersB = getLettersAsArray(b);\n int valuesA = getSumOfArray(lettersA);\n int valuesB = getSumOfArray(lettersB);\n return valuesA == valuesB;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "focal_method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "line_nums_new": "41-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.6466, "method_coverage_gold": 1.3889, "line_coverage_gold": 0.5666, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["40f41b993c98021107ad683b55274355277a3df5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "402_pedrovgs_Algorithms-master_ba92e04_d690539_AreAnagramsTest", "test_sign": "com/github/pedrovgs/problem29/AreAnagramsTest.shouldReturnTrueIfBothWordsAreEmpty:()V", "class": "AreAnagramsTest", "method": "shouldReturnTrueIfBothWordsAreEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem29.AreAnagramsTest#shouldReturnTrueIfBothWordsAreEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfBothWordsAreEmpty() {\n assertTrue(areAnagrams.check(\"\", \"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-41"], "old_production_code": "", "new_production_code": "public boolean check(String a, String b) {\n if (a == null || b == null) {\n throw new IllegalArgumentException(\"You can't use null Strings as input.\");\n }\n if (a.length() != b.length()) {\n return false;\n }\n int[] lettersA = getLettersAsArray(a);\n int[] lettersB = getLettersAsArray(b);\n int valuesA = getSumOfArray(lettersA);\n int valuesB = getSumOfArray(lettersB);\n return valuesA == valuesB;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "focal_method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "line_nums_new": "41-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 1.5086, "method_coverage_gold": 2.7778, "line_coverage_gold": 2.1246, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["40f41b993c98021107ad683b55274355277a3df5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "403_pedrovgs_Algorithms-master_ba92e04_d690539_AreAnagramsTest", "test_sign": "com/github/pedrovgs/problem29/AreAnagramsTest.shouldReturnTrueIfWordsAreAnagrams:()V", "class": "AreAnagramsTest", "method": "shouldReturnTrueIfWordsAreAnagrams", "module": "", "junit_selector": "com.github.pedrovgs.problem29.AreAnagramsTest#shouldReturnTrueIfWordsAreAnagrams", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfWordsAreAnagrams() {\n assertTrue(areAnagrams.check(\"ana\", \"naa\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-53"], "old_production_code": "", "new_production_code": "public boolean check(String a, String b) {\n if (a == null || b == null) {\n throw new IllegalArgumentException(\"You can't use null Strings as input.\");\n }\n if (a.length() != b.length()) {\n return false;\n }\n int[] lettersA = getLettersAsArray(a);\n int[] lettersB = getLettersAsArray(b);\n int valuesA = getSumOfArray(lettersA);\n int valuesB = getSumOfArray(lettersB);\n return valuesA == valuesB;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "focal_method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "line_nums_new": "41-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 1.7241, "method_coverage_gold": 2.7778, "line_coverage_gold": 2.2663, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["40f41b993c98021107ad683b55274355277a3df5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "404_pedrovgs_Algorithms-master_ba92e04_d690539_AreAnagramsTest", "test_sign": "com/github/pedrovgs/problem29/AreAnagramsTest.shouldReturnFalseIfWordsAreNotAnagrams:()V", "class": "AreAnagramsTest", "method": "shouldReturnFalseIfWordsAreNotAnagrams", "module": "", "junit_selector": "com.github.pedrovgs.problem29.AreAnagramsTest#shouldReturnFalseIfWordsAreNotAnagrams", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfWordsAreNotAnagrams() {\n assertFalse(areAnagrams.check(\"ana\", \"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-49"], "old_production_code": "", "new_production_code": "public boolean check(String a, String b) {\n if (a == null || b == null) {\n throw new IllegalArgumentException(\"You can't use null Strings as input.\");\n }\n if (a.length() != b.length()) {\n return false;\n }\n int[] lettersA = getLettersAsArray(a);\n int[] lettersB = getLettersAsArray(b);\n int valuesA = getSumOfArray(lettersA);\n int valuesB = getSumOfArray(lettersB);\n return valuesA == valuesB;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "focal_method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "line_nums_new": "41-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.6466, "method_coverage_gold": 1.3889, "line_coverage_gold": 0.5666, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["40f41b993c98021107ad683b55274355277a3df5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "405_pedrovgs_Algorithms-master_ba92e04_d690539_AreAnagramsTest", "test_sign": "com/github/pedrovgs/problem29/AreAnagramsTest.shouldNotAcceptNullStringsAsInput:()V", "class": "AreAnagramsTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem29.AreAnagramsTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n areAnagrams.check(null, null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean check(String a, String b) {\n if (a == null || b == null) {\n throw new IllegalArgumentException(\"You can't use null Strings as input.\");\n }\n if (a.length() != b.length()) {\n return false;\n }\n int[] lettersA = getLettersAsArray(a);\n int[] lettersB = getLettersAsArray(b);\n int valuesA = getSumOfArray(lettersA);\n int valuesB = getSumOfArray(lettersB);\n return valuesA == valuesB;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "focal_method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "line_nums_new": "41-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2222222222222222, "branch_coverage_gold": 0.2155, "method_coverage_gold": 1.3889, "line_coverage_gold": 0.4249, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["40f41b993c98021107ad683b55274355277a3df5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem29/AreAnagrams.check:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem29/AreAnagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__bbc875b_87f8b58__CompressStringTest_19063a64", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "bbc875b76e3c83a69bacf0aaadf5d6b32622d953", "rev2": "87f8b58711e3a7599d2c68b19fac9bcd7137f366", "rev1_date": "2015-01-05T23:48:31Z", "rev2_date": "2015-01-06T00:04:00Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/bbc875b76e3c83a69bacf0aaadf5d6b32622d953...87f8b58711e3a7599d2c68b19fac9bcd7137f366", "test_file": "src/test/java/com/github/pedrovgs/problem53/CompressStringTest.java", "test_changes": [{"change_id": "161_pedrovgs_Algorithms-master_bbc875b_87f8b58_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotCompressEmptyWords:()V", "class": "CompressStringTest", "method": "shouldNotCompressEmptyWords", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotCompressEmptyWords", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotCompressEmptyWords() {\n String wordToCompress = \"\";\n String result = compressString.compress(wordToCompress);\n assertEquals(\"\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-44"], "old_production_code": "", "new_production_code": "public String compress(String src) {\n validateInput(src);\n if (src.isEmpty() || src.length() == 1) {\n return src;\n }\n StringBuilder stringBuilder = new StringBuilder();\n int repeatedCharCounter = 1;\n char previousChar = src.charAt(0);\n for (int i = 1; i < src.length(); i++) {\n char currentChar = src.charAt(i);\n if (currentChar != previousChar) {\n stringBuilder.append(previousChar);\n if (repeatedCharCounter > 1) {\n stringBuilder.append(repeatedCharCounter);\n repeatedCharCounter = 1;\n }\n previousChar = currentChar;\n } else {\n repeatedCharCounter++;\n }\n }\n if (repeatedCharCounter > 1) {\n stringBuilder.append(previousChar);\n stringBuilder.append(repeatedCharCounter);\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "35-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15789473684210525, "branch_coverage_gold": 0.2427, "method_coverage_gold": 1.2766, "line_coverage_gold": 0.5063, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1e7e5e185fc0fed090296c3822c2f03d77813768"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "162_pedrovgs_Algorithms-master_bbc875b_87f8b58_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotCompressWordsWithJustOneChar:()V", "class": "CompressStringTest", "method": "shouldNotCompressWordsWithJustOneChar", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotCompressWordsWithJustOneChar", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotCompressWordsWithJustOneChar() {\n String wordToCompress = \"a\";\n String result = compressString.compress(wordToCompress);\n assertEquals(\"a\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-52"], "old_production_code": "", "new_production_code": "public String compress(String src) {\n validateInput(src);\n if (src.isEmpty() || src.length() == 1) {\n return src;\n }\n StringBuilder stringBuilder = new StringBuilder();\n int repeatedCharCounter = 1;\n char previousChar = src.charAt(0);\n for (int i = 1; i < src.length(); i++) {\n char currentChar = src.charAt(i);\n if (currentChar != previousChar) {\n stringBuilder.append(previousChar);\n if (repeatedCharCounter > 1) {\n stringBuilder.append(repeatedCharCounter);\n repeatedCharCounter = 1;\n }\n previousChar = currentChar;\n } else {\n repeatedCharCounter++;\n }\n }\n if (repeatedCharCounter > 1) {\n stringBuilder.append(previousChar);\n stringBuilder.append(repeatedCharCounter);\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "35-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15789473684210525, "branch_coverage_gold": 0.3641, "method_coverage_gold": 1.2766, "line_coverage_gold": 0.5063, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1e7e5e185fc0fed090296c3822c2f03d77813768"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "163_pedrovgs_Algorithms-master_bbc875b_87f8b58_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldCompressWordsFullOfTheSameChars:()V", "class": "CompressStringTest", "method": "shouldCompressWordsFullOfTheSameChars", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldCompressWordsFullOfTheSameChars", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCompressWordsFullOfTheSameChars() {\n String wordToCompress = \"aaa\";\n String result = compressString.compress(wordToCompress);\n assertEquals(\"a3\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-60"], "old_production_code": "", "new_production_code": "public String compress(String src) {\n validateInput(src);\n if (src.isEmpty() || src.length() == 1) {\n return src;\n }\n StringBuilder stringBuilder = new StringBuilder();\n int repeatedCharCounter = 1;\n char previousChar = src.charAt(0);\n for (int i = 1; i < src.length(); i++) {\n char currentChar = src.charAt(i);\n if (currentChar != previousChar) {\n stringBuilder.append(previousChar);\n if (repeatedCharCounter > 1) {\n stringBuilder.append(repeatedCharCounter);\n repeatedCharCounter = 1;\n }\n previousChar = currentChar;\n } else {\n repeatedCharCounter++;\n }\n }\n if (repeatedCharCounter > 1) {\n stringBuilder.append(previousChar);\n stringBuilder.append(repeatedCharCounter);\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "35-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6842105263157895, "branch_coverage_gold": 0.8495, "method_coverage_gold": 1.2766, "line_coverage_gold": 1.3502, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1e7e5e185fc0fed090296c3822c2f03d77813768"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "164_pedrovgs_Algorithms-master_bbc875b_87f8b58_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldCompressWords:()V", "class": "CompressStringTest", "method": "shouldCompressWords", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldCompressWords", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCompressWords() {\n String wordToCompress = \"aabcccccaaa\";\n String result = compressString.compress(wordToCompress);\n assertEquals(\"a2bc5a3\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-68"], "old_production_code": "", "new_production_code": "public String compress(String src) {\n validateInput(src);\n if (src.isEmpty() || src.length() == 1) {\n return src;\n }\n StringBuilder stringBuilder = new StringBuilder();\n int repeatedCharCounter = 1;\n char previousChar = src.charAt(0);\n for (int i = 1; i < src.length(); i++) {\n char currentChar = src.charAt(i);\n if (currentChar != previousChar) {\n stringBuilder.append(previousChar);\n if (repeatedCharCounter > 1) {\n stringBuilder.append(repeatedCharCounter);\n repeatedCharCounter = 1;\n }\n previousChar = currentChar;\n } else {\n repeatedCharCounter++;\n }\n }\n if (repeatedCharCounter > 1) {\n stringBuilder.append(previousChar);\n stringBuilder.append(repeatedCharCounter);\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "35-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9473684210526315, "branch_coverage_gold": 1.2136, "method_coverage_gold": 1.2766, "line_coverage_gold": 1.7722, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1e7e5e185fc0fed090296c3822c2f03d77813768"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "165_pedrovgs_Algorithms-master_bbc875b_87f8b58_CompressStringTest", "test_sign": "com/github/pedrovgs/problem53/CompressStringTest.shouldNotAcceptNullStringsAsInput:()V", "class": "CompressStringTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem53.CompressStringTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n compressString.compress(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public String compress(String src) {\n validateInput(src);\n if (src.isEmpty() || src.length() == 1) {\n return src;\n }\n StringBuilder stringBuilder = new StringBuilder();\n int repeatedCharCounter = 1;\n char previousChar = src.charAt(0);\n for (int i = 1; i < src.length(); i++) {\n char currentChar = src.charAt(i);\n if (currentChar != previousChar) {\n stringBuilder.append(previousChar);\n if (repeatedCharCounter > 1) {\n stringBuilder.append(repeatedCharCounter);\n repeatedCharCounter = 1;\n }\n previousChar = currentChar;\n } else {\n repeatedCharCounter++;\n }\n }\n if (repeatedCharCounter > 1) {\n stringBuilder.append(previousChar);\n stringBuilder.append(repeatedCharCounter);\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "focal_method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "line_nums_new": "35-65", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1214, "method_coverage_gold": 0.8511, "line_coverage_gold": 0.2532, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1e7e5e185fc0fed090296c3822c2f03d77813768"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem53/CompressString.compress:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem53/CompressString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__be39309_11312b9__ReverseStringTest_714aa704", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "be39309088071ce09aea3ca547af45442be10e32", "rev2": "11312b98ee912db3186a4af652c1f0b00284659d", "rev1_date": "2015-01-04T22:55:05Z", "rev2_date": "2015-01-04T22:57:25Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/be39309088071ce09aea3ca547af45442be10e32...11312b98ee912db3186a4af652c1f0b00284659d", "test_file": "src/test/java/com/github/pedrovgs/problem51/ReverseStringTest.java", "test_changes": [{"change_id": "387_pedrovgs_Algorithms-master_be39309_11312b9_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnAnEmptyStringIfTheInputIsEmptyIterative:()V", "class": "ReverseStringTest", "method": "shouldReturnAnEmptyStringIfTheInputIsEmptyIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnAnEmptyStringIfTheInputIsEmptyIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAnEmptyStringIfTheInputIsEmptyIterative() {\n String result = reverseString.reverseIterative(\"\");\n assertEquals(\"\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-43"], "old_production_code": "", "new_production_code": "public String reverseIterative(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.2532, "method_coverage_gold": 1.3274, "line_coverage_gold": 0.6189, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "388_pedrovgs_Algorithms-master_be39309_11312b9_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldNotAcceptNullStringsIterative:()V", "class": "ReverseStringTest", "method": "shouldNotAcceptNullStringsIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldNotAcceptNullStringsIterative", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsIterative() {\n reverseString.reverseIterative(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-37"], "old_production_code": "", "new_production_code": "public String reverseIterative(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1266, "method_coverage_gold": 0.885, "line_coverage_gold": 0.2653, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "389_pedrovgs_Algorithms-master_be39309_11312b9_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReturnTheSameStringIfTheInputStringContainsJustOneCharIterative:()V", "class": "ReverseStringTest", "method": "shouldReturnTheSameStringIfTheInputStringContainsJustOneCharIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReturnTheSameStringIfTheInputStringContainsJustOneCharIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheSameStringIfTheInputStringContainsJustOneCharIterative() {\n String result = reverseString.reverseIterative(\"a\");\n assertEquals(\"a\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public String reverseIterative(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3797, "method_coverage_gold": 1.3274, "line_coverage_gold": 0.7073, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "390_pedrovgs_Algorithms-master_be39309_11312b9_ReverseStringTest", "test_sign": "com/github/pedrovgs/problem51/ReverseStringTest.shouldReverseStringIterative:()V", "class": "ReverseStringTest", "method": "shouldReverseStringIterative", "module": "", "junit_selector": "com.github.pedrovgs.problem51.ReverseStringTest#shouldReverseStringIterative", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReverseStringIterative() {\n String result = reverseString.reverseIterative(\"Pedro\");\n assertEquals(\"ordeP\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-55"], "old_production_code": "", "new_production_code": "public String reverseIterative(String input) {\n validateInput(input);\n StringBuilder stringBuilder = new StringBuilder();\n for (int i = input.length() - 1; i >= 0; i--) {\n stringBuilder.append(input.charAt(i));\n }\n return stringBuilder.toString();\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "focal_method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "line_nums_new": "31-39", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3797, "method_coverage_gold": 1.3274, "line_coverage_gold": 0.7073, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem51/ReverseString.reverseIterative:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem51/ReverseString.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__bed66f3_c59bc29__GetTheElementInTheMiddleOfTheListTest_483ddc24", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "bed66f34f39112aaa20c0e65fc6906268f4c495c", "rev2": "c59bc2992f94c91d6865336b30d63d4951a8430b", "rev1_date": "2015-01-17T15:05:05Z", "rev2_date": "2015-01-17T15:06:02Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/bed66f34f39112aaa20c0e65fc6906268f4c495c...c59bc2992f94c91d6865336b30d63d4951a8430b", "test_file": "src/test/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.java", "test_changes": [{"change_id": "204_pedrovgs_Algorithms-master_bed66f3_c59bc29_GetTheElementInTheMiddleOfTheListTest", "test_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.shouldNotAcceptNullListInstances:()V", "class": "GetTheElementInTheMiddleOfTheListTest", "method": "shouldNotAcceptNullListInstances", "module": "", "junit_selector": "com.github.pedrovgs.problem64.GetTheElementInTheMiddleOfTheListTest#shouldNotAcceptNullListInstances", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListInstances() {\n getTheElementInTheMiddleOfTheList.get(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public ListNode get(ListNode list) {\n validateInput(list);\n int size = getListSize(list);\n int middleElementPosition = size % 2 != 0 ? size / 2 : (size / 2) - 1;\n ListNode middleElement = list;\n for (int i = 0; i < middleElementPosition; i++) {\n middleElement = middleElement.getNext();\n }\n return middleElement;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "focal_method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "line_nums_new": "35-45", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1035, "method_coverage_gold": 0.6557, "line_coverage_gold": 0.2012, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["7058e03346dd0360ea773682efe811373b9eb7ef"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__c59bc29_f396706__GetTheElementInTheMiddleOfTheListTest_147182c2", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "c59bc2992f94c91d6865336b30d63d4951a8430b", "rev2": "f396706e281fe1bc20e9a617faa609a102012feb", "rev1_date": "2015-01-17T15:06:02Z", "rev2_date": "2015-01-17T15:08:01Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/c59bc2992f94c91d6865336b30d63d4951a8430b...f396706e281fe1bc20e9a617faa609a102012feb", "test_file": "src/test/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.java", "test_changes": [{"change_id": "186_pedrovgs_Algorithms-master_c59bc29_f396706_GetTheElementInTheMiddleOfTheListTest", "test_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.shouldReturnTheElementInTheMiddleOfAListWithAnEvenNumberOfElements2:()V", "class": "GetTheElementInTheMiddleOfTheListTest", "method": "shouldReturnTheElementInTheMiddleOfAListWithAnEvenNumberOfElements2", "module": "", "junit_selector": "com.github.pedrovgs.problem64.GetTheElementInTheMiddleOfTheListTest#shouldReturnTheElementInTheMiddleOfAListWithAnEvenNumberOfElements2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheElementInTheMiddleOfAListWithAnEvenNumberOfElements2() {\n ListNode list = createList(new int[] { 1, 2, 3 });\n ListNode middleElement = getTheElementInTheMiddleOfTheList.get2(list);\n assertEquals(Integer.valueOf(2), middleElement.getData());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-65"], "old_production_code": "", "new_production_code": "public ListNode get2(ListNode list) {\n validateInput(list);\n ListNode currentNode = list;\n ListNode fastNode = list.getNext();\n while (fastNode != null && fastNode.getNext() != null) {\n currentNode = currentNode.getNext();\n fastNode = fastNode.getNext().getNext();\n }\n return currentNode;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "focal_method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "line_nums_new": "64-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4124, "method_coverage_gold": 2.2876, "line_coverage_gold": 1.1348, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["d6b99c468bcac483b2b0182b15814d655ed1acef"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.getData:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "187_pedrovgs_Algorithms-master_c59bc29_f396706_GetTheElementInTheMiddleOfTheListTest", "test_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.shouldNotAcceptNullListInstances2:()V", "class": "GetTheElementInTheMiddleOfTheListTest", "method": "shouldNotAcceptNullListInstances2", "module": "", "junit_selector": "com.github.pedrovgs.problem64.GetTheElementInTheMiddleOfTheListTest#shouldNotAcceptNullListInstances2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListInstances2() {\n getTheElementInTheMiddleOfTheList.get2(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-57"], "old_production_code": "", "new_production_code": "public ListNode get2(ListNode list) {\n validateInput(list);\n ListNode currentNode = list;\n ListNode fastNode = list.getNext();\n while (fastNode != null && fastNode.getNext() != null) {\n currentNode = currentNode.getNext();\n fastNode = fastNode.getNext().getNext();\n }\n return currentNode;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "focal_method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "line_nums_new": "64-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1031, "method_coverage_gold": 0.6536, "line_coverage_gold": 0.2003, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["d6b99c468bcac483b2b0182b15814d655ed1acef"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "188_pedrovgs_Algorithms-master_c59bc29_f396706_GetTheElementInTheMiddleOfTheListTest", "test_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.shouldReturnTheElementInTheMiddleOfTheListWithAnOddNumberOfElements2:()V", "class": "GetTheElementInTheMiddleOfTheListTest", "method": "shouldReturnTheElementInTheMiddleOfTheListWithAnOddNumberOfElements2", "module": "", "junit_selector": "com.github.pedrovgs.problem64.GetTheElementInTheMiddleOfTheListTest#shouldReturnTheElementInTheMiddleOfTheListWithAnOddNumberOfElements2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheElementInTheMiddleOfTheListWithAnOddNumberOfElements2() {\n ListNode list = createList(new int[] { 1, 2, 3, 4 });\n ListNode middleElement = getTheElementInTheMiddleOfTheList.get2(list);\n assertEquals(Integer.valueOf(2), middleElement.getData());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-73"], "old_production_code": "", "new_production_code": "public ListNode get2(ListNode list) {\n validateInput(list);\n ListNode currentNode = list;\n ListNode fastNode = list.getNext();\n while (fastNode != null && fastNode.getNext() != null) {\n currentNode = currentNode.getNext();\n fastNode = fastNode.getNext().getNext();\n }\n return currentNode;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "focal_method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "line_nums_new": "64-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4124, "method_coverage_gold": 2.2876, "line_coverage_gold": 1.1348, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["d6b99c468bcac483b2b0182b15814d655ed1acef"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheListTest.createList:([I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.getData:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.get2:(Lcom/github/pedrovgs/linkedlist/ListNode;)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem64/GetTheElementInTheMiddleOfTheList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__d463a9d_8dae381__ConstantComplexityOrderStackTest_07230192", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "d463a9d0b46fa5c712079fac6f3f3dd0a8538da8", "rev2": "8dae381b3fadf92266f3ebdfc9ca9d2bfd9e45f6", "rev1_date": "2015-01-16T06:47:22Z", "rev2_date": "2015-01-16T06:51:30Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/d463a9d0b46fa5c712079fac6f3f3dd0a8538da8...8dae381b3fadf92266f3ebdfc9ca9d2bfd9e45f6", "test_file": "src/test/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStackTest.java", "test_changes": [{"change_id": "347_pedrovgs_Algorithms-master_d463a9d_8dae381_ConstantComplexityOrderStackTest", "test_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStackTest.shouldReturnMinElementInTheStack1EvenAfterModifyStackContent:()V", "class": "ConstantComplexityOrderStackTest", "method": "shouldReturnMinElementInTheStack1EvenAfterModifyStackContent", "module": "", "junit_selector": "com.github.pedrovgs.problem63.ConstantComplexityOrderStackTest#shouldReturnMinElementInTheStack1EvenAfterModifyStackContent", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnMinElementInTheStack1EvenAfterModifyStackContent() {\n stack1.push(1);\n stack1.push(2);\n stack1.push(3);\n stack1.push(-1);\n stack1.pop();\n assertEquals(1, stack1.getMin());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-55"], "old_production_code": "", "new_production_code": "public int getMin() {\n if (isEmpty()) {\n return Integer.MAX_VALUE;\n } else {\n return peek().minValue;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "focal_method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": 0.3558, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.0833, "class": 1.0, "tfidf": 0.0287}}, {"dep_id": 0, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "36-39", "dependency_updated": "inserted", "score": 0.3177, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0333, "class": 1.0, "tfidf": 0.1518}}], "coverage_gold": 0.5217391304347826, "branch_coverage_gold": 0.2088, "method_coverage_gold": 1.6611, "line_coverage_gold": 0.882, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["989876f9a15ce99b38a4ac68ed530fdb7e2664da", "0b05b0dbf72651092cfdbfe56003384bf58d64fd", "f83b8bafd520c37d5396f13920dbb25542636218"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "348_pedrovgs_Algorithms-master_d463a9d_8dae381_ConstantComplexityOrderStackTest", "test_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStackTest.shouldReturnMinElementInTheStack2EvenAfterModifyStackContent:()V", "class": "ConstantComplexityOrderStackTest", "method": "shouldReturnMinElementInTheStack2EvenAfterModifyStackContent", "module": "", "junit_selector": "com.github.pedrovgs.problem63.ConstantComplexityOrderStackTest#shouldReturnMinElementInTheStack2EvenAfterModifyStackContent", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnMinElementInTheStack2EvenAfterModifyStackContent() {\n stack2.push(1);\n stack2.push(2);\n stack2.push(3);\n stack2.push(-1);\n stack2.pop();\n assertEquals(1, stack2.getMin());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-74"], "old_production_code": "", "new_production_code": "public int getMin() {\n if (innerStack.isEmpty()) {\n return Integer.MAX_VALUE;\n } else {\n return innerStack.peek();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "focal_method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "83-89", "dependency_updated": "inserted", "score": 0.3544, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.0833, "class": 1.0, "tfidf": 0.0231}}, {"dep_id": 2, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "68-73", "dependency_updated": "inserted", "score": 0.3292, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0333, "class": 1.0, "tfidf": 0.201}}, {"dep_id": 1, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.pop:()Ljava/lang/Integer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "75-81", "dependency_updated": "inserted", "score": 0.2657, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0167, "class": 1.0, "tfidf": 0.0675}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.5219, "method_coverage_gold": 1.6611, "line_coverage_gold": 0.9498, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["989876f9a15ce99b38a4ac68ed530fdb7e2664da", "0b05b0dbf72651092cfdbfe56003384bf58d64fd", "f83b8bafd520c37d5396f13920dbb25542636218"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.pop:()Ljava/lang/Integer", "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.pop:()Ljava/lang/Integer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "349_pedrovgs_Algorithms-master_d463a9d_8dae381_ConstantComplexityOrderStackTest", "test_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStackTest.shouldReturnMinElementInTheStack2:()V", "class": "ConstantComplexityOrderStackTest", "method": "shouldReturnMinElementInTheStack2", "module": "", "junit_selector": "com.github.pedrovgs.problem63.ConstantComplexityOrderStackTest#shouldReturnMinElementInTheStack2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnMinElementInTheStack2() {\n stack2.push(1);\n stack2.push(2);\n stack2.push(3);\n stack2.push(-1);\n assertEquals(-1, stack2.getMin());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-64"], "old_production_code": "", "new_production_code": "public int getMin() {\n if (innerStack.isEmpty()) {\n return Integer.MAX_VALUE;\n } else {\n return innerStack.peek();\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "focal_method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "83-89", "dependency_updated": "inserted", "score": 0.3664, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1515, "class": 1.0, "tfidf": 0.026}}, {"dep_id": 1, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "68-73", "dependency_updated": "inserted", "score": 0.3409, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0606, "class": 1.0, "tfidf": 0.2316}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4175, "method_coverage_gold": 1.3289, "line_coverage_gold": 0.6784, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["989876f9a15ce99b38a4ac68ed530fdb7e2664da", "0b05b0dbf72651092cfdbfe56003384bf58d64fd", "f83b8bafd520c37d5396f13920dbb25542636218"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.getMin:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack2.push:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "350_pedrovgs_Algorithms-master_d463a9d_8dae381_ConstantComplexityOrderStackTest", "test_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStackTest.shouldReturnMinElementInTheStack1:()V", "class": "ConstantComplexityOrderStackTest", "method": "shouldReturnMinElementInTheStack1", "module": "", "junit_selector": "com.github.pedrovgs.problem63.ConstantComplexityOrderStackTest#shouldReturnMinElementInTheStack1", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnMinElementInTheStack1() {\n stack1.push(1);\n stack1.push(2);\n stack1.push(3);\n stack1.push(-1);\n assertEquals(-1, stack1.getMin());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-45"], "old_production_code": "", "new_production_code": "public int getMin() {\n if (isEmpty()) {\n return Integer.MAX_VALUE;\n } else {\n return peek().minValue;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "focal_method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "41-47", "dependency_updated": "inserted", "score": 0.3678, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1515, "class": 1.0, "tfidf": 0.0323}}, {"dep_id": 0, "method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "line_nums_new": "36-39", "dependency_updated": "inserted", "score": 0.3276, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0606, "class": 1.0, "tfidf": 0.1749}}], "coverage_gold": 0.5217391304347826, "branch_coverage_gold": 0.2088, "method_coverage_gold": 1.6611, "line_coverage_gold": 0.882, "is_traceback": false, "commit_gap": {"count": 3, "skipped_commits": ["989876f9a15ce99b38a4ac68ed530fdb7e2664da", "0b05b0dbf72651092cfdbfe56003384bf58d64fd", "f83b8bafd520c37d5396f13920dbb25542636218"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.push:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/pedrovgs/problem63/ConstantComplexityOrderStack$Stack1.getMin:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem63/ConstantComplexityOrderStack.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__d54df58_35dc1d9__UniqueCharsTest_57450c0a", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "d54df58a8d1767b3536da3233de9c0e8e04b9248", "rev2": "35dc1d92df57b391ca632ff0eea93bf49e0ea16e", "rev1_date": "2015-01-03T23:58:39Z", "rev2_date": "2015-01-04T00:09:43Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/d54df58a8d1767b3536da3233de9c0e8e04b9248...35dc1d92df57b391ca632ff0eea93bf49e0ea16e", "test_file": "src/test/java/com/github/pedrovgs/problem50/UniqueCharsTest.java", "test_changes": [{"change_id": "391_pedrovgs_Algorithms-master_d54df58_35dc1d9_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnFalseIfInputStringContainsDuplicatedChars2:()V", "class": "UniqueCharsTest", "method": "shouldReturnFalseIfInputStringContainsDuplicatedChars2", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnFalseIfInputStringContainsDuplicatedChars2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputStringContainsDuplicatedChars2() {\n assertFalse(uniqueChars.evaluate2(\"vicente\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-62"], "old_production_code": "", "new_production_code": "public boolean evaluate2(String input) {\n validateInput(input);\n int[] chars = new int[256];\n for (char c : input.toCharArray()) {\n if (chars[c] >= 1) {\n return false;\n } else {\n chars[c]++;\n }\n }\n return true;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.5063, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.7993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "392_pedrovgs_Algorithms-master_d54df58_35dc1d9_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnTrueIfInputStringDoesNotContainDuplicatedChars2:()V", "class": "UniqueCharsTest", "method": "shouldReturnTrueIfInputStringDoesNotContainDuplicatedChars2", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnTrueIfInputStringDoesNotContainDuplicatedChars2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputStringDoesNotContainDuplicatedChars2() {\n assertTrue(uniqueChars.evaluate2(\"pedro\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-66"], "old_production_code": "", "new_production_code": "public boolean evaluate2(String input) {\n validateInput(input);\n int[] chars = new int[256];\n for (char c : input.toCharArray()) {\n if (chars[c] >= 1) {\n return false;\n } else {\n chars[c]++;\n }\n }\n return true;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 0.5063, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.7993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "393_pedrovgs_Algorithms-master_d54df58_35dc1d9_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnTrueIfInputStringIsEmpty2:()V", "class": "UniqueCharsTest", "method": "shouldReturnTrueIfInputStringIsEmpty2", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnTrueIfInputStringIsEmpty2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputStringIsEmpty2() {\n assertTrue(uniqueChars.evaluate2(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-58"], "old_production_code": "", "new_production_code": "public boolean evaluate2(String input) {\n validateInput(input);\n int[] chars = new int[256];\n for (char c : input.toCharArray()) {\n if (chars[c] >= 1) {\n return false;\n } else {\n chars[c]++;\n }\n }\n return true;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.2532, "method_coverage_gold": 1.3393, "line_coverage_gold": 0.6217, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "394_pedrovgs_Algorithms-master_d54df58_35dc1d9_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldReturnTrueIfInputStringContainsDuplicatedChars:()V", "class": "UniqueCharsTest", "method": "shouldReturnTrueIfInputStringContainsDuplicatedChars", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldReturnTrueIfInputStringContainsDuplicatedChars", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputStringContainsDuplicatedChars() {\n assertFalse(uniqueChars.evaluate(\"vicente\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-45"], "old_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return containsDuplicatedChars(chars);\n}", "new_production_code": "public boolean evaluate(String input) {\n validateInput(input);\n Map chars = countCharAppearances(input);\n return !containsDuplicatedChars(chars);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "file_path_old": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_old": "34-38", "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "34-38", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.1392, "method_coverage_gold": 2.6786, "line_coverage_gold": 1.7762, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate:(Ljava/lang/String;)Z", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "395_pedrovgs_Algorithms-master_d54df58_35dc1d9_UniqueCharsTest", "test_sign": "com/github/pedrovgs/problem50/UniqueCharsTest.shouldNotAcceptNullStringsAsInput2:()V", "class": "UniqueCharsTest", "method": "shouldNotAcceptNullStringsAsInput2", "module": "", "junit_selector": "com.github.pedrovgs.problem50.UniqueCharsTest#shouldNotAcceptNullStringsAsInput2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput2() {\n uniqueChars.evaluate2(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-54"], "old_production_code": "", "new_production_code": "public boolean evaluate2(String input) {\n validateInput(input);\n int[] chars = new int[256];\n for (char c : input.toCharArray()) {\n if (chars[c] >= 1) {\n return false;\n } else {\n chars[c]++;\n }\n }\n return true;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "focal_method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "line_nums_new": "47-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1266, "method_coverage_gold": 0.8929, "line_coverage_gold": 0.2664, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem50/UniqueChars.evaluate2:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem50/UniqueChars.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__d7f0b9c_1b22e6e__ReverseOrderOfBinaryNumberTest_cda087cb", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "d7f0b9c1e462231ec7f97de3b5b773113f7650ff", "rev2": "1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "rev1_date": "2015-01-24T23:04:33Z", "rev2_date": "2015-01-24T23:06:42Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/d7f0b9c1e462231ec7f97de3b5b773113f7650ff...1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "test_file": "src/test/java/problem70/ReverseOrderOfBinaryNumberTest.java", "test_changes": [{"change_id": "317_pedrovgs_Algorithms-master_d7f0b9c_1b22e6e_ReverseOrderOfBinaryNumberTest", "test_sign": "problem70/ReverseOrderOfBinaryNumberTest.shouldReturnBinaryNumberOrder:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnBinaryNumberOrder", "module": "", "junit_selector": "problem70.ReverseOrderOfBinaryNumberTest#shouldReturnBinaryNumberOrder", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnBinaryNumberOrder() {\n int input = 13;\n int result = reverseOrder.reverse(input);\n assertEquals(11, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-65"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "318_pedrovgs_Algorithms-master_d7f0b9c_1b22e6e_ReverseOrderOfBinaryNumberTest", "test_sign": "problem70/ReverseOrderOfBinaryNumberTest.shouldReturnTheSameNumberIfIsFullOfOnes:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnTheSameNumberIfIsFullOfOnes", "module": "", "junit_selector": "problem70.ReverseOrderOfBinaryNumberTest#shouldReturnTheSameNumberIfIsFullOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheSameNumberIfIsFullOfOnes() {\n int input = 7;\n int result = reverseOrder.reverse(input);\n assertEquals(7, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-57"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "319_pedrovgs_Algorithms-master_d7f0b9c_1b22e6e_ReverseOrderOfBinaryNumberTest", "test_sign": "problem70/ReverseOrderOfBinaryNumberTest.shouldReturnOneIfInputIsOne:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnOneIfInputIsOne", "module": "", "junit_selector": "problem70.ReverseOrderOfBinaryNumberTest#shouldReturnOneIfInputIsOne", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnOneIfInputIsOne() {\n int input = 1;\n int result = reverseOrder.reverse(input);\n assertEquals(1, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-49"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "320_pedrovgs_Algorithms-master_d7f0b9c_1b22e6e_ReverseOrderOfBinaryNumberTest", "test_sign": "problem70/ReverseOrderOfBinaryNumberTest.shouldReturnZeroIfInputIsZero:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnZeroIfInputIsZero", "module": "", "junit_selector": "problem70.ReverseOrderOfBinaryNumberTest#shouldReturnZeroIfInputIsZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputIsZero() {\n int input = 0;\n int result = reverseOrder.reverse(input);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-41"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.101, "method_coverage_gold": 0.625, "line_coverage_gold": 0.2591, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__d7f0b9c_d30a784__ReverseOrderOfBinaryNumberTest_cda087cb", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "d7f0b9c1e462231ec7f97de3b5b773113f7650ff", "rev2": "d30a784c667ba694c3db1e4adb8d0d3f43e2d5e9", "rev1_date": "2015-01-24T23:04:33Z", "rev2_date": "2015-01-24T23:18:28Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/d7f0b9c1e462231ec7f97de3b5b773113f7650ff...d30a784c667ba694c3db1e4adb8d0d3f43e2d5e9", "test_file": "src/test/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumberTest.java", "test_changes": [{"change_id": "379_pedrovgs_Algorithms-master_d7f0b9c_d30a784_ReverseOrderOfBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumberTest.shouldReturnTheSameNumberIfIsFullOfOnes:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnTheSameNumberIfIsFullOfOnes", "module": "", "junit_selector": "com.github.pedrovgs.problem70.ReverseOrderOfBinaryNumberTest#shouldReturnTheSameNumberIfIsFullOfOnes", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTheSameNumberIfIsFullOfOnes() {\n int input = 7;\n int result = reverseOrder.reverse(input);\n assertEquals(7, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-57"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "380_pedrovgs_Algorithms-master_d7f0b9c_d30a784_ReverseOrderOfBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumberTest.shouldReturnBinaryNumberOrder:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnBinaryNumberOrder", "module": "", "junit_selector": "com.github.pedrovgs.problem70.ReverseOrderOfBinaryNumberTest#shouldReturnBinaryNumberOrder", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnBinaryNumberOrder() {\n int input = 13;\n int result = reverseOrder.reverse(input);\n assertEquals(11, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-65"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "381_pedrovgs_Algorithms-master_d7f0b9c_d30a784_ReverseOrderOfBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumberTest.shouldReturnOneIfInputIsOne:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnOneIfInputIsOne", "module": "", "junit_selector": "com.github.pedrovgs.problem70.ReverseOrderOfBinaryNumberTest#shouldReturnOneIfInputIsOne", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnOneIfInputIsOne() {\n int input = 1;\n int result = reverseOrder.reverse(input);\n assertEquals(1, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-49"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.202, "method_coverage_gold": 0.625, "line_coverage_gold": 0.4534, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "382_pedrovgs_Algorithms-master_d7f0b9c_d30a784_ReverseOrderOfBinaryNumberTest", "test_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumberTest.shouldReturnZeroIfInputIsZero:()V", "class": "ReverseOrderOfBinaryNumberTest", "method": "shouldReturnZeroIfInputIsZero", "module": "", "junit_selector": "com.github.pedrovgs.problem70.ReverseOrderOfBinaryNumberTest#shouldReturnZeroIfInputIsZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfInputIsZero() {\n int input = 0;\n int result = reverseOrder.reverse(input);\n assertEquals(0, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-41"], "old_production_code": "", "new_production_code": "public int reverse(int number) {\n int result = 0;\n while (number != 0) {\n result <<= 1;\n result |= number & 1;\n number >>= 1;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "focal_method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "line_nums_new": "41-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.101, "method_coverage_gold": 0.625, "line_coverage_gold": 0.2591, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["1b22e6e79d339249c66bd2a8f9f1fc698f2a75ac", "cb7b9e1453e2b9e052e56e8095ca8ae2520bb3a5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.reverse:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem70/ReverseOrderOfBinaryNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__db527c3_9b06119__ReturnChangeTest_9ef39268", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "db527c3c0c25f459a3a55b066713ca040639eb67", "rev2": "9b061197f8c89eb2a27479e5d8ec15ed3516b6ad", "rev1_date": "2015-01-01T11:46:39Z", "rev2_date": "2015-01-01T11:58:42Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/db527c3c0c25f459a3a55b066713ca040639eb67...9b061197f8c89eb2a27479e5d8ec15ed3516b6ad", "test_file": "src/test/java/com/github/pedrovgs/problem47/ReturnChangeTest.java", "test_changes": [{"change_id": "167_pedrovgs_Algorithms-master_db527c3_9b06119_ReturnChangeTest", "test_sign": "com/github/pedrovgs/problem47/ReturnChangeTest.shouldNotAcceptNegativeValuesAsInputValue:()V", "class": "ReturnChangeTest", "method": "shouldNotAcceptNegativeValuesAsInputValue", "module": "", "junit_selector": "com.github.pedrovgs.problem47.ReturnChangeTest#shouldNotAcceptNegativeValuesAsInputValue", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNegativeValuesAsInputValue() {\n returnChange.calculate(new int[0], -7);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-50"], "old_production_code": "", "new_production_code": "public List calculate(int[] moneys, int billAmount) {\n validateInputData(moneys, billAmount);\n List change = new LinkedList();\n while (billAmount > 0 && moneys.length > 0) {\n for (int i = moneys.length - 1; i >= 0; i--) {\n if (billAmount - moneys[i] >= 0) {\n change.add(moneys[i]);\n billAmount -= moneys[i];\n break;\n }\n }\n }\n return change;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "focal_method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "line_nums_new": "33-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2755, "method_coverage_gold": 0.9615, "line_coverage_gold": 0.2841, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["00910b4250cdea660e71b003d390277d8858057c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "168_pedrovgs_Algorithms-master_db527c3_9b06119_ReturnChangeTest", "test_sign": "com/github/pedrovgs/problem47/ReturnChangeTest.shouldNotAcceptZeroAsInputValue:()V", "class": "ReturnChangeTest", "method": "shouldNotAcceptZeroAsInputValue", "module": "", "junit_selector": "com.github.pedrovgs.problem47.ReturnChangeTest#shouldNotAcceptZeroAsInputValue", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptZeroAsInputValue() {\n returnChange.calculate(new int[0], 0);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-45"], "old_production_code": "", "new_production_code": "public List calculate(int[] moneys, int billAmount) {\n validateInputData(moneys, billAmount);\n List change = new LinkedList();\n while (billAmount > 0 && moneys.length > 0) {\n for (int i = moneys.length - 1; i >= 0; i--) {\n if (billAmount - moneys[i] >= 0) {\n change.add(moneys[i]);\n billAmount -= moneys[i];\n break;\n }\n }\n }\n return change;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "focal_method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "line_nums_new": "33-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2755, "method_coverage_gold": 0.9615, "line_coverage_gold": 0.2841, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["00910b4250cdea660e71b003d390277d8858057c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "169_pedrovgs_Algorithms-master_db527c3_9b06119_ReturnChangeTest", "test_sign": "com/github/pedrovgs/problem47/ReturnChangeTest.shouldNotAcceptNullArrayOfMoneys:()V", "class": "ReturnChangeTest", "method": "shouldNotAcceptNullArrayOfMoneys", "module": "", "junit_selector": "com.github.pedrovgs.problem47.ReturnChangeTest#shouldNotAcceptNullArrayOfMoneys", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrayOfMoneys() {\n returnChange.calculate(null, 7);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public List calculate(int[] moneys, int billAmount) {\n validateInputData(moneys, billAmount);\n List change = new LinkedList();\n while (billAmount > 0 && moneys.length > 0) {\n for (int i = moneys.length - 1; i >= 0; i--) {\n if (billAmount - moneys[i] >= 0) {\n change.add(moneys[i]);\n billAmount -= moneys[i];\n break;\n }\n }\n }\n return change;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "focal_method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "line_nums_new": "33-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1377, "method_coverage_gold": 0.9615, "line_coverage_gold": 0.2841, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["00910b4250cdea660e71b003d390277d8858057c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "171_pedrovgs_Algorithms-master_db527c3_9b06119_ReturnChangeTest", "test_sign": "com/github/pedrovgs/problem47/ReturnChangeTest.shouldNotAcceptEmptyArrayOfMoneys:()V", "class": "ReturnChangeTest", "method": "shouldNotAcceptEmptyArrayOfMoneys", "module": "", "junit_selector": "com.github.pedrovgs.problem47.ReturnChangeTest#shouldNotAcceptEmptyArrayOfMoneys", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptEmptyArrayOfMoneys() {\n returnChange.calculate(new int[0], 7);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-41"], "old_production_code": "", "new_production_code": "public List calculate(int[] moneys, int billAmount) {\n validateInputData(moneys, billAmount);\n List change = new LinkedList();\n while (billAmount > 0 && moneys.length > 0) {\n for (int i = moneys.length - 1; i >= 0; i--) {\n if (billAmount - moneys[i] >= 0) {\n change.add(moneys[i]);\n billAmount -= moneys[i];\n break;\n }\n }\n }\n return change;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "focal_method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "line_nums_new": "33-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2755, "method_coverage_gold": 0.9615, "line_coverage_gold": 0.2841, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["00910b4250cdea660e71b003d390277d8858057c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem47/ReturnChange.calculate:([II)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem47/ReturnChange.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__dc929a0_75f9053__SimpleRegularExpressionTest_bdfc76dc", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "dc929a03f8f3ca3b08a6e8a67cea9a3ed5a8804e", "rev2": "75f90536a3ff93eb0b0f009a8d16f2db9a6e03e8", "rev1_date": "2014-12-17T23:21:53Z", "rev2_date": "2014-12-17T23:41:22Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/dc929a03f8f3ca3b08a6e8a67cea9a3ed5a8804e...75f90536a3ff93eb0b0f009a8d16f2db9a6e03e8", "test_file": "src/test/java/com/github/pedrovgs/problem33/SimpleRegularExpressionTest.java", "test_changes": [{"change_id": "326_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnFalseIfDoesNotMatchUsingAsterisk:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnFalseIfDoesNotMatchUsingAsterisk", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnFalseIfDoesNotMatchUsingAsterisk", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfDoesNotMatchUsingAsterisk() {\n String input = \"aaa\";\n String regularExpression = \"b*\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-73"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6923076923076923, "branch_coverage_gold": 2.4254, "method_coverage_gold": 1.2579, "line_coverage_gold": 1.2853, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "327_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnTrueIfInputMatchesAndDoesNotContainKeyElements:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnTrueIfInputMatchesAndDoesNotContainKeyElements", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnTrueIfInputMatchesAndDoesNotContainKeyElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfInputMatchesAndDoesNotContainKeyElements() {\n String input = \"aaa\";\n String regularExpression = \"aaa\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-55"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.38461538461538464, "branch_coverage_gold": 2.0522, "method_coverage_gold": 1.2579, "line_coverage_gold": 0.7712, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "328_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnTrueIfMatchesUsingAsteriskAndDot:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnTrueIfMatchesUsingAsteriskAndDot", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnTrueIfMatchesUsingAsteriskAndDot", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfMatchesUsingAsteriskAndDot() {\n String input = \"aaa\";\n String regularExpression = \".a*\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["93-100"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 3.3582, "method_coverage_gold": 1.2579, "line_coverage_gold": 1.4139, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "329_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnFalseIfInputDoesNotMatchesAndDoesNotContainKeyElements:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnFalseIfInputDoesNotMatchesAndDoesNotContainKeyElements", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnFalseIfInputDoesNotMatchesAndDoesNotContainKeyElements", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfInputDoesNotMatchesAndDoesNotContainKeyElements() {\n String input = \"aaa\";\n String regularExpression = \"a\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-46"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.38461538461538464, "branch_coverage_gold": 1.6791, "method_coverage_gold": 1.2579, "line_coverage_gold": 0.7712, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "330_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnFalseIfDoesNotMatchUsingAsteriskAndDot:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnFalseIfDoesNotMatchUsingAsteriskAndDot", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnFalseIfDoesNotMatchUsingAsteriskAndDot", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfDoesNotMatchUsingAsteriskAndDot() {\n String input = \"aaa\";\n String regularExpression = \".b*\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["102-109"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 2.9851, "method_coverage_gold": 1.2579, "line_coverage_gold": 1.5424, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "331_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnTrueIfMatchesUsingDot:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnTrueIfMatchesUsingDot", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnTrueIfMatchesUsingDot", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfMatchesUsingDot() {\n String input = \"aa\";\n String regularExpression = \"a.\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-82"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.38461538461538464, "branch_coverage_gold": 2.2388, "method_coverage_gold": 1.2579, "line_coverage_gold": 0.7712, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "332_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnFalseIfDoesNotMatchUsingDot:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnFalseIfDoesNotMatchUsingDot", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnFalseIfDoesNotMatchUsingDot", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnFalseIfDoesNotMatchUsingDot() {\n String input = \"aaa\";\n String regularExpression = \"a.\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertFalse(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-91"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.38461538461538464, "branch_coverage_gold": 2.2388, "method_coverage_gold": 1.2579, "line_coverage_gold": 0.7712, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "333_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldNotAcceptNullStringsAsInput:()V", "class": "SimpleRegularExpressionTest", "method": "shouldNotAcceptNullStringsAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldNotAcceptNullStringsAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStringsAsInput() {\n simpleRegularExpression.evaluate(null, null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15384615384615385, "branch_coverage_gold": 0.1866, "method_coverage_gold": 1.2579, "line_coverage_gold": 0.3856, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "334_pedrovgs_Algorithms-master_dc929a0_75f9053_SimpleRegularExpressionTest", "test_sign": "com/github/pedrovgs/problem33/SimpleRegularExpressionTest.shouldReturnTrueIfMatchesUsingAsterisk:()V", "class": "SimpleRegularExpressionTest", "method": "shouldReturnTrueIfMatchesUsingAsterisk", "module": "", "junit_selector": "com.github.pedrovgs.problem33.SimpleRegularExpressionTest#shouldReturnTrueIfMatchesUsingAsterisk", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnTrueIfMatchesUsingAsterisk() {\n String input = \"aaa\";\n String regularExpression = \"a*\";\n boolean result = simpleRegularExpression.evaluate(input, regularExpression);\n assertTrue(result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-64"], "old_production_code": "", "new_production_code": "public boolean evaluate(String source, String pattern) {\n if (source == null || pattern == null) {\n throw new IllegalArgumentException(\"You can't pass a null strings as input\");\n }\n if (pattern.length() == 0)\n return source.length() == 0;\n if (pattern.length() == 1 || pattern.charAt(1) != '*') {\n if (source.length() < 1 || (pattern.charAt(0) != '.' && source.charAt(0) != pattern.charAt(0))) {\n return false;\n }\n return evaluate(source.substring(1), pattern.substring(1));\n } else {\n int len = source.length();\n int i = -1;\n while (i < len && (i < 0 || pattern.charAt(0) == '.' || pattern.charAt(0) == source.charAt(i))) {\n if (evaluate(source.substring(i + 1), pattern.substring(2)))\n return true;\n i++;\n }\n return false;\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "focal_method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "line_nums_new": "33-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6153846153846154, "branch_coverage_gold": 2.7985, "method_coverage_gold": 1.2579, "line_coverage_gold": 1.1568, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["e9b01bf2dbc8f3b551533e5546feb34875203063"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem33/SimpleRegularExpression.evaluate:(Ljava/lang/String;Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem33/SimpleRegularExpression.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e17dd71_0fce45f__FindLongestConsecutiveSequenceTest_4bf64f3c", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e17dd71e6c58f1f00a46ef86fadef5145cb66713", "rev2": "0fce45f26e8edb20a036de3e9d3b865e2b449160", "rev1_date": "2014-12-15T23:48:42Z", "rev2_date": "2014-12-16T00:09:17Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e17dd71e6c58f1f00a46ef86fadef5145cb66713...0fce45f26e8edb20a036de3e9d3b865e2b449160", "test_file": "src/test/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.java", "test_changes": [{"change_id": "364_pedrovgs_Algorithms-master_e17dd71_0fce45f_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldFindLongestConsecutiveSequenceRecursive:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldFindLongestConsecutiveSequenceRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldFindLongestConsecutiveSequenceRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindLongestConsecutiveSequenceRecursive() {\n int[] array = { 1, 3, 4, 5, 64, 4, 5, 6, 7, 8, 9, 98, -1, -2 };\n int sequenceLength = lcs.findRecursive(array);\n assertEquals(7, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-105"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.0243, "method_coverage_gold": 2.5806, "line_coverage_gold": 2.1248, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "365_pedrovgs_Algorithms-master_e17dd71_0fce45f_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldNotAcceptNullArraysRecursive:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldNotAcceptNullArraysRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldNotAcceptNullArraysRecursive", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArraysRecursive() {\n lcs.findRecursive(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-73"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2024, "method_coverage_gold": 1.2903, "line_coverage_gold": 0.3984, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "366_pedrovgs_Algorithms-master_e17dd71_0fce45f_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceRecursive:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfThereIsNoAnyConsecutiveSequenceRecursive() {\n int[] array = { 6, 5, 4, 3, 2, 1 };\n int sequenceLength = lcs.findRecursive(array);\n assertEquals(0, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-89"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.417, "method_coverage_gold": 2.5806, "line_coverage_gold": 1.7264, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "367_pedrovgs_Algorithms-master_e17dd71_0fce45f_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequenceRecursive:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequenceRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequenceRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequenceRecursive() {\n int[] array = { 1, 2, 3, 4, 5, 6 };\n int sequenceLength = lcs.findRecursive(array);\n assertEquals(6, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-97"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.417, "method_coverage_gold": 2.5806, "line_coverage_gold": 1.8592, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "368_pedrovgs_Algorithms-master_e17dd71_0fce45f_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfTheArrayIsEmptyRecursive:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfTheArrayIsEmptyRecursive", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfTheArrayIsEmptyRecursive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfTheArrayIsEmptyRecursive() {\n int[] array = {};\n int sequenceLength = lcs.findRecursive(array);\n assertEquals(0, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["75-81"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4049, "method_coverage_gold": 2.5806, "line_coverage_gold": 0.9296, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e17dd71_9c65207__FindLongestConsecutiveSequenceTest_ded4655a", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e17dd71e6c58f1f00a46ef86fadef5145cb66713", "rev2": "9c652071363079a538db2095619131037a9f101f", "rev1_date": "2014-12-15T23:48:42Z", "rev2_date": "2014-12-16T00:12:24Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e17dd71e6c58f1f00a46ef86fadef5145cb66713...9c652071363079a538db2095619131037a9f101f", "test_file": "src/test/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.java", "test_changes": [{"change_id": "356_pedrovgs_Algorithms-master_e17dd71_9c65207_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldFindLongestConsecutiveSequenceRecursiveSupportingEqualsConsecutiveNumbers:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldFindLongestConsecutiveSequenceRecursiveSupportingEqualsConsecutiveNumbers", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldFindLongestConsecutiveSequenceRecursiveSupportingEqualsConsecutiveNumbers", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindLongestConsecutiveSequenceRecursiveSupportingEqualsConsecutiveNumbers() {\n int[] array = { 1, 1, 1, 1, 3, 4, 5, 64, 4, 5, 6, 7, 8, 9, 98, -1, -2 };\n int sequenceLength = lcs.findRecursive(array);\n assertEquals(7, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-124"], "old_production_code": "", "new_production_code": "public int findRecursive(int[] array) {\n validateInput(array);\n return findRecursiveInner(array, 1, 0, 0);\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "64-67", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.0243, "method_coverage_gold": 2.5806, "line_coverage_gold": 2.1248, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["0fce45f26e8edb20a036de3e9d3b865e2b449160", "817a60fc20ebc18c3b68dbd1d29d383798212592"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.findRecursive:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e18762d_e9afd8c__AnagramsTest_daeba668", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e18762d76cc9a623ceb83bdce944c2de7ac1c657", "rev2": "e9afd8c7d06aa8ba71e5394caf24aa3b256ae7c4", "rev1_date": "2014-12-09T23:20:25Z", "rev2_date": "2014-12-09T23:35:17Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e18762d76cc9a623ceb83bdce944c2de7ac1c657...e9afd8c7d06aa8ba71e5394caf24aa3b256ae7c4", "test_file": "src/test/java/com/github/pedrovgs/problem25/AnagramsTest.java", "test_changes": [{"change_id": "249_pedrovgs_Algorithms-master_e18762d_e9afd8c_AnagramsTest", "test_sign": "com/github/pedrovgs/problem25/AnagramsTest.shouldNotAcceptNullStrings:()V", "class": "AnagramsTest", "method": "shouldNotAcceptNullStrings", "module": "", "junit_selector": "com.github.pedrovgs.problem25.AnagramsTest#shouldNotAcceptNullStrings", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullStrings() {\n anagrams.get(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-38"], "old_production_code": "", "new_production_code": "public List get(String input) {\n List result = null;\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n } else if (input.isEmpty()) {\n result = new LinkedList();\n } else {\n result = getAnagramsInner(\"\", input);\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "focal_method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "line_nums_new": "39-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.42857142857142855, "branch_coverage_gold": 0.2381, "method_coverage_gold": 1.5504, "line_coverage_gold": 0.6289, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["94acc473630dd84e6b604220804fb6f3bac4bd94"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "250_pedrovgs_Algorithms-master_e18762d_e9afd8c_AnagramsTest", "test_sign": "com/github/pedrovgs/problem25/AnagramsTest.shouldCalculateEveryAnagram:()V", "class": "AnagramsTest", "method": "shouldCalculateEveryAnagram", "module": "", "junit_selector": "com.github.pedrovgs.problem25.AnagramsTest#shouldCalculateEveryAnagram", "old_test_code": null, "new_test_code": "@Test\npublic void shouldCalculateEveryAnagram() {\n String input = \"abc\";\n List result = anagrams.get(input);\n String[] arrayResult = new String[result.size()];\n result.toArray(arrayResult);\n String[] expectedArray = { \"abc\", \"acb\", \"bac\", \"bca\", \"cab\", \"cba\" };\n assertArrayEquals(expectedArray, arrayResult);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-53"], "old_production_code": "", "new_production_code": "public List get(String input) {\n List result = null;\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n } else if (input.isEmpty()) {\n result = new LinkedList();\n } else {\n result = getAnagramsInner(\"\", input);\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "focal_method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "line_nums_new": "39-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 1.4286, "method_coverage_gold": 2.3256, "line_coverage_gold": 2.3585, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["94acc473630dd84e6b604220804fb6f3bac4bd94"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "251_pedrovgs_Algorithms-master_e18762d_e9afd8c_AnagramsTest", "test_sign": "com/github/pedrovgs/problem25/AnagramsTest.shouldReturnAnEmptyListIfInputStringIsEmpty:()V", "class": "AnagramsTest", "method": "shouldReturnAnEmptyListIfInputStringIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem25.AnagramsTest#shouldReturnAnEmptyListIfInputStringIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnAnEmptyListIfInputStringIsEmpty() {\n assertTrue(anagrams.get(\"\").isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-42"], "old_production_code": "", "new_production_code": "public List get(String input) {\n List result = null;\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null String as input.\");\n } else if (input.isEmpty()) {\n result = new LinkedList();\n } else {\n result = getAnagramsInner(\"\", input);\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "focal_method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "line_nums_new": "39-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 0.4762, "method_coverage_gold": 1.5504, "line_coverage_gold": 0.9434, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["94acc473630dd84e6b604220804fb6f3bac4bd94"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem25/Anagrams.get:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem25/Anagrams.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e234e2d_261c263__FindLongestConsecutiveSequenceTest_afceb59e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e234e2db7e61886fcb8f825c0211d13f7f2fb491", "rev2": "261c263fe40baff31a46b4f19f0099ab6015b3d7", "rev1_date": "2014-12-15T23:34:18Z", "rev2_date": "2014-12-15T23:44:04Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e234e2db7e61886fcb8f825c0211d13f7f2fb491...261c263fe40baff31a46b4f19f0099ab6015b3d7", "test_file": "src/test/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.java", "test_changes": [{"change_id": "157_pedrovgs_Algorithms-master_e234e2d_261c263_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence() {\n int[] array = { 1, 3, 4, 5, 64, 4, 5, 6, 7, 8, 9, 98, -1, -2 };\n int sequenceLength = lcs.find(array);\n assertEquals(7, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-61"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 1.6667, "method_coverage_gold": 1.3158, "line_coverage_gold": 1.6371, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["676c82cc599c86b9e8d4cd6b566c99648025884f", "2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "158_pedrovgs_Algorithms-master_e234e2d_261c263_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfTheArrayIsEmpty:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfTheArrayIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfTheArrayIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfTheArrayIsEmpty() {\n int[] array = {};\n int sequenceLength = lcs.find(array);\n assertEquals(0, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-45"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.23076923076923078, "branch_coverage_gold": 0.4167, "method_coverage_gold": 1.3158, "line_coverage_gold": 0.5457, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["676c82cc599c86b9e8d4cd6b566c99648025884f", "2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "159_pedrovgs_Algorithms-master_e234e2d_261c263_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldNotAcceptNullArrays:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n lcs.find(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15384615384615385, "branch_coverage_gold": 0.2083, "method_coverage_gold": 1.3158, "line_coverage_gold": 0.4093, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["676c82cc599c86b9e8d4cd6b566c99648025884f", "2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "160_pedrovgs_Algorithms-master_e234e2d_261c263_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfThereIsNoAnyConsecutiveSequence:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfThereIsNoAnyConsecutiveSequence", "module": "", "junit_selector": "com.github.pedrovgs.problem31.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfThereIsNoAnyConsecutiveSequence", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfThereIsNoAnyConsecutiveSequence() {\n int[] array = { 1, 2, 3, 4, 5, 6 };\n int sequenceLength = lcs.find(array);\n assertEquals(6, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 1.25, "method_coverage_gold": 1.3158, "line_coverage_gold": 1.5007, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["676c82cc599c86b9e8d4cd6b566c99648025884f", "2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e234e2d_676c82c__FindLongestConsecutiveSequenceTest_afceb59e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e234e2db7e61886fcb8f825c0211d13f7f2fb491", "rev2": "676c82cc599c86b9e8d4cd6b566c99648025884f", "rev1_date": "2014-12-15T23:34:18Z", "rev2_date": "2014-12-15T23:42:50Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e234e2db7e61886fcb8f825c0211d13f7f2fb491...676c82cc599c86b9e8d4cd6b566c99648025884f", "test_file": "src/test/java/com/github/pedrovgs/FindLongestConsecutiveSequenceTest.java", "test_changes": [{"change_id": "175_pedrovgs_Algorithms-master_e234e2d_676c82c_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfThereIsNoAnyConsecutiveSequence:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfThereIsNoAnyConsecutiveSequence", "module": "", "junit_selector": "com.github.pedrovgs.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfThereIsNoAnyConsecutiveSequence", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfThereIsNoAnyConsecutiveSequence() {\n int[] array = { 1, 2, 3, 4, 5, 6 };\n int sequenceLength = lcs.find(array);\n assertEquals(6, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-53"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 1.25, "method_coverage_gold": 1.3158, "line_coverage_gold": 1.5007, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "176_pedrovgs_Algorithms-master_e234e2d_676c82c_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/FindLongestConsecutiveSequenceTest.shouldNotAcceptNullArrays:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.FindLongestConsecutiveSequenceTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n lcs.find(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.15384615384615385, "branch_coverage_gold": 0.2083, "method_coverage_gold": 1.3158, "line_coverage_gold": 0.4093, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "177_pedrovgs_Algorithms-master_e234e2d_676c82c_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/FindLongestConsecutiveSequenceTest.shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence", "module": "", "junit_selector": "com.github.pedrovgs.FindLongestConsecutiveSequenceTest#shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLengthArrayIfTheArrayIsOneConsecutiveSequence() {\n int[] array = { 1, 3, 4, 5, 64, 4, 5, 6, 7, 8, 9, 98, -1, -2 };\n int sequenceLength = lcs.find(array);\n assertEquals(7, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-61"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 1.6667, "method_coverage_gold": 1.3158, "line_coverage_gold": 1.6371, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "178_pedrovgs_Algorithms-master_e234e2d_676c82c_FindLongestConsecutiveSequenceTest", "test_sign": "com/github/pedrovgs/FindLongestConsecutiveSequenceTest.shouldReturnZeroIfTheArrayIsEmpty:()V", "class": "FindLongestConsecutiveSequenceTest", "method": "shouldReturnZeroIfTheArrayIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.FindLongestConsecutiveSequenceTest#shouldReturnZeroIfTheArrayIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnZeroIfTheArrayIsEmpty() {\n int[] array = {};\n int sequenceLength = lcs.find(array);\n assertEquals(0, sequenceLength);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-45"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n if (numbers == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (numbers.length == 0) {\n return 0;\n }\n int result = 0;\n int start = 0, end = 0;\n for (int i = 1; i < numbers.length; i++) {\n if (numbers[i - 1] < numbers[i]) {\n end = i;\n } else {\n start = i;\n }\n if (end - start > result) {\n result = end - start;\n }\n }\n return result + 1;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "focal_method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "line_nums_new": "32-53", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.23076923076923078, "branch_coverage_gold": 0.4167, "method_coverage_gold": 1.3158, "line_coverage_gold": 0.5457, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["2f6d19cce07bb95343e4663c3d346c8213fd8758"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem31/FindLongestConsecutiveSequence.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e518769_442a6ca__MultiplyArrayElementsTest_015ac7e6", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e51876992d680fd1bd7752797bf2c168350fa954", "rev2": "442a6caceb932401c12e4dcb2388c57fe6a30349", "rev1_date": "2014-12-24T14:39:40Z", "rev2_date": "2014-12-24T14:49:04Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e51876992d680fd1bd7752797bf2c168350fa954...442a6caceb932401c12e4dcb2388c57fe6a30349", "test_file": "src/test/java/com/github/pedrovgs/problem39/MultiplyArrayElementsTest.java", "test_changes": [{"change_id": "281_pedrovgs_Algorithms-master_e518769_442a6ca_MultiplyArrayElementsTest", "test_sign": "com/github/pedrovgs/problem39/MultiplyArrayElementsTest.shouldNotAcceptNullArrays:()V", "class": "MultiplyArrayElementsTest", "method": "shouldNotAcceptNullArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem39.MultiplyArrayElementsTest#shouldNotAcceptNullArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays() {\n multiplyArrayElements.multiply(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public int[] multiply(int[] input) {\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (input.length == 0) {\n return input;\n }\n int[] front = new int[input.length];\n int[] rear = new int[input.length];\n int[] output = new int[input.length];\n front[0] = 1;\n rear[input.length - 1] = 1;\n for (int i = 1; i < input.length; i++) {\n front[i] = front[i - 1] * input[i - 1];\n }\n for (int i = input.length - 2; i >= 0; i--) {\n rear[i] = rear[i + 1] * input[i + 1];\n }\n for (int i = 0; i < input.length; i++) {\n output[i] = front[i] * rear[i];\n }\n return output;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "focal_method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "line_nums_new": "28-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.125, "branch_coverage_gold": 0.1597, "method_coverage_gold": 1.1429, "line_coverage_gold": 0.3417, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f1ae8d240abcbb231183da4c51c170821b17208b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "282_pedrovgs_Algorithms-master_e518769_442a6ca_MultiplyArrayElementsTest", "test_sign": "com/github/pedrovgs/problem39/MultiplyArrayElementsTest.shouldDoNothingIfTheArrayWithJustOneElement:()V", "class": "MultiplyArrayElementsTest", "method": "shouldDoNothingIfTheArrayWithJustOneElement", "module": "", "junit_selector": "com.github.pedrovgs.problem39.MultiplyArrayElementsTest#shouldDoNothingIfTheArrayWithJustOneElement", "old_test_code": null, "new_test_code": "@Test\npublic void shouldDoNothingIfTheArrayWithJustOneElement() {\n int[] array = { 1 };\n int[] result = multiplyArrayElements.multiply(array);\n int[] expected = { 1 };\n assertArrayEquals(expected, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-54"], "old_production_code": "", "new_production_code": "public int[] multiply(int[] input) {\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (input.length == 0) {\n return input;\n }\n int[] front = new int[input.length];\n int[] rear = new int[input.length];\n int[] output = new int[input.length];\n front[0] = 1;\n rear[input.length - 1] = 1;\n for (int i = 1; i < input.length; i++) {\n front[i] = front[i - 1] * input[i - 1];\n }\n for (int i = input.length - 2; i >= 0; i--) {\n rear[i] = rear[i + 1] * input[i + 1];\n }\n for (int i = 0; i < input.length; i++) {\n output[i] = front[i] * rear[i];\n }\n return output;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "focal_method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "line_nums_new": "28-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.9585, "method_coverage_gold": 1.1429, "line_coverage_gold": 1.4806, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f1ae8d240abcbb231183da4c51c170821b17208b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "283_pedrovgs_Algorithms-master_e518769_442a6ca_MultiplyArrayElementsTest", "test_sign": "com/github/pedrovgs/problem39/MultiplyArrayElementsTest.shouldMultiplyEveryElementByTheRest:()V", "class": "MultiplyArrayElementsTest", "method": "shouldMultiplyEveryElementByTheRest", "module": "", "junit_selector": "com.github.pedrovgs.problem39.MultiplyArrayElementsTest#shouldMultiplyEveryElementByTheRest", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMultiplyEveryElementByTheRest() {\n int[] array = { 1, 2, 3 };\n int[] result = multiplyArrayElements.multiply(array);\n int[] expected = { 6, 3, 2 };\n assertArrayEquals(expected, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-63"], "old_production_code": "", "new_production_code": "public int[] multiply(int[] input) {\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (input.length == 0) {\n return input;\n }\n int[] front = new int[input.length];\n int[] rear = new int[input.length];\n int[] output = new int[input.length];\n front[0] = 1;\n rear[input.length - 1] = 1;\n for (int i = 1; i < input.length; i++) {\n front[i] = front[i - 1] * input[i - 1];\n }\n for (int i = input.length - 2; i >= 0; i--) {\n rear[i] = rear[i + 1] * input[i + 1];\n }\n for (int i = 0; i < input.length; i++) {\n output[i] = front[i] * rear[i];\n }\n return output;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "focal_method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "line_nums_new": "28-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.278, "method_coverage_gold": 1.1429, "line_coverage_gold": 1.7084, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f1ae8d240abcbb231183da4c51c170821b17208b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "284_pedrovgs_Algorithms-master_e518769_442a6ca_MultiplyArrayElementsTest", "test_sign": "com/github/pedrovgs/problem39/MultiplyArrayElementsTest.shouldSupportEmptyArrays:()V", "class": "MultiplyArrayElementsTest", "method": "shouldSupportEmptyArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem39.MultiplyArrayElementsTest#shouldSupportEmptyArrays", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSupportEmptyArrays() {\n int[] array = new int[0];\n int[] result = multiplyArrayElements.multiply(array);\n assertEquals(0, result.length);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-45"], "old_production_code": "", "new_production_code": "public int[] multiply(int[] input) {\n if (input == null) {\n throw new IllegalArgumentException(\"You can't pass a null array as input.\");\n }\n if (input.length == 0) {\n return input;\n }\n int[] front = new int[input.length];\n int[] rear = new int[input.length];\n int[] output = new int[input.length];\n front[0] = 1;\n rear[input.length - 1] = 1;\n for (int i = 1; i < input.length; i++) {\n front[i] = front[i - 1] * input[i - 1];\n }\n for (int i = input.length - 2; i >= 0; i--) {\n rear[i] = rear[i + 1] * input[i + 1];\n }\n for (int i = 0; i < input.length; i++) {\n output[i] = front[i] * rear[i];\n }\n return output;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "focal_method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "line_nums_new": "28-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.1875, "branch_coverage_gold": 0.3195, "method_coverage_gold": 1.1429, "line_coverage_gold": 0.4556, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f1ae8d240abcbb231183da4c51c170821b17208b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem39/MultiplyArrayElements.multiply:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem39/MultiplyArrayElements.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__e8dfcf1_ff8c430__TreeToListByLevelTest_145dec7b", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "e8dfcf1242a0976c8589f9df635576342c15dab4", "rev2": "ff8c430d41740f8797ca2e8bd078ca8cf08d07f2", "rev1_date": "2015-01-19T23:19:13Z", "rev2_date": "2015-01-19T23:20:09Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/e8dfcf1242a0976c8589f9df635576342c15dab4...ff8c430d41740f8797ca2e8bd078ca8cf08d07f2", "test_file": "src/test/java/com/github/pedrovgs/problem66/TreeToListByLevelTest.java", "test_changes": [{"change_id": "361_pedrovgs_Algorithms-master_e8dfcf1_ff8c430_TreeToListByLevelTest", "test_sign": "com/github/pedrovgs/problem66/TreeToListByLevelTest.shouldReturnListWithTreeElementsByLevel:()V", "class": "TreeToListByLevelTest", "method": "shouldReturnListWithTreeElementsByLevel", "module": "", "junit_selector": "com.github.pedrovgs.problem66.TreeToListByLevelTest#shouldReturnListWithTreeElementsByLevel", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnListWithTreeElementsByLevel() {\n BinaryNode root = new BinaryNode(0);\n BinaryNode n1 = new BinaryNode(1);\n BinaryNode n2 = new BinaryNode(2);\n BinaryNode n3 = new BinaryNode(3);\n root.setLeft(n1);\n root.setRight(n2);\n n1.setLeft(n3);\n List result = toList.transform(root);\n assertEquals(4, result.size());\n assertEquals(root, result.get(0));\n assertEquals(n1, result.get(1));\n assertEquals(n2, result.get(2));\n assertEquals(n3, result.get(3));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-68"], "old_production_code": "", "new_production_code": "public List transform(BinaryNode tree) {\n if (tree == null) {\n return Collections.EMPTY_LIST;\n }\n List nodesByLevel = new LinkedList();\n Queue stack = new LinkedList();\n stack.add(tree);\n while (!stack.isEmpty()) {\n BinaryNode node = stack.remove();\n nodesByLevel.add(node);\n if (node.getLeft() != null) {\n stack.add(node.getLeft());\n }\n if (node.getRight() != null) {\n stack.add(node.getRight());\n }\n }\n return nodesByLevel;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "focal_method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "line_nums_new": "36-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.72, "branch_coverage_gold": 0.813, "method_coverage_gold": 2.5641, "line_coverage_gold": 1.5769, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["120ad3c7199e399f4302ec65a3ca76b7edcab840"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "com/github/pedrovgs/binarytree/BinaryNode.setLeft:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V", "com/github/pedrovgs/binarytree/BinaryNode.equals:(Ljava/lang/Object;)Z", "com/github/pedrovgs/binarytree/BinaryNode.setRight:(Lcom/github/pedrovgs/binarytree/BinaryNode;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "362_pedrovgs_Algorithms-master_e8dfcf1_ff8c430_TreeToListByLevelTest", "test_sign": "com/github/pedrovgs/problem66/TreeToListByLevelTest.shouldReturnEmptyListIfTreeIsNull:()V", "class": "TreeToListByLevelTest", "method": "shouldReturnEmptyListIfTreeIsNull", "module": "", "junit_selector": "com.github.pedrovgs.problem66.TreeToListByLevelTest#shouldReturnEmptyListIfTreeIsNull", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnEmptyListIfTreeIsNull() {\n List result = toList.transform(null);\n assertTrue(result.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-41"], "old_production_code": "", "new_production_code": "public List transform(BinaryNode tree) {\n if (tree == null) {\n return Collections.EMPTY_LIST;\n }\n List nodesByLevel = new LinkedList();\n Queue stack = new LinkedList();\n stack.add(tree);\n while (!stack.isEmpty()) {\n BinaryNode node = stack.remove();\n nodesByLevel.add(node);\n if (node.getLeft() != null) {\n stack.add(node.getLeft());\n }\n if (node.getRight() != null) {\n stack.add(node.getRight());\n }\n }\n return nodesByLevel;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "focal_method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "line_nums_new": "36-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.14285714285714285, "branch_coverage_gold": 0.1016, "method_coverage_gold": 0.641, "line_coverage_gold": 0.1971, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["120ad3c7199e399f4302ec65a3ca76b7edcab840"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "363_pedrovgs_Algorithms-master_e8dfcf1_ff8c430_TreeToListByLevelTest", "test_sign": "com/github/pedrovgs/problem66/TreeToListByLevelTest.shouldReturnListWithJustOneNodeIfTreeContainsJustOneNode:()V", "class": "TreeToListByLevelTest", "method": "shouldReturnListWithJustOneNodeIfTreeContainsJustOneNode", "module": "", "junit_selector": "com.github.pedrovgs.problem66.TreeToListByLevelTest#shouldReturnListWithJustOneNodeIfTreeContainsJustOneNode", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnListWithJustOneNodeIfTreeContainsJustOneNode() {\n BinaryNode root = new BinaryNode(0);\n List result = toList.transform(root);\n assertEquals(1, result.size());\n assertTrue(result.contains(root));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-50"], "old_production_code": "", "new_production_code": "public List transform(BinaryNode tree) {\n if (tree == null) {\n return Collections.EMPTY_LIST;\n }\n List nodesByLevel = new LinkedList();\n Queue stack = new LinkedList();\n stack.add(tree);\n while (!stack.isEmpty()) {\n BinaryNode node = stack.remove();\n nodesByLevel.add(node);\n if (node.getLeft() != null) {\n stack.add(node.getLeft());\n }\n if (node.getRight() != null) {\n stack.add(node.getRight());\n }\n }\n return nodesByLevel;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "focal_method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "line_nums_new": "36-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 0.6098, "method_coverage_gold": 1.9231, "line_coverage_gold": 1.1827, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["120ad3c7199e399f4302ec65a3ca76b7edcab840"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "com/github/pedrovgs/binarytree/BinaryNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem66/TreeToListByLevel.transform:(Lcom/github/pedrovgs/binarytree/BinaryNode;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem66/TreeToListByLevel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__ef5c9a4_73ecaa5__FindKthElementTest_57a4108f", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "ef5c9a4702fea3c4823ee9bec003d155a4b7210c", "rev2": "73ecaa592ff742ef8c527fd9ca83d944343ed44b", "rev1_date": "2015-01-11T14:42:20Z", "rev2_date": "2015-01-11T14:43:48Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/ef5c9a4702fea3c4823ee9bec003d155a4b7210c...73ecaa592ff742ef8c527fd9ca83d944343ed44b", "test_file": "src/test/java/com/github/pedrovgs/problem58/FindKthElementTest.java", "test_changes": [{"change_id": "253_pedrovgs_Algorithms-master_ef5c9a4_73ecaa5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptPositionsGreaterThanListSize:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptPositionsGreaterThanListSize", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptPositionsGreaterThanListSize", "old_test_code": null, "new_test_code": "@Test(expected = IndexOutOfBoundsException.class)\npublic void shouldNotAcceptPositionsGreaterThanListSize() {\n findElement.find(new ListNode(3), 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-46"], "old_production_code": "", "new_production_code": "public ListNode find(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode reversedList = reverseLinkedList.reverseIterative(listNode);\n ListNode result = reversedList;\n while (k > 0) {\n result = result.getNext();\n if (result == null) {\n throw new IndexOutOfBoundsException();\n }\n k--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "42-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.6682, "method_coverage_gold": 2.963, "line_coverage_gold": 1.7398, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c24d7348a73cc8d8632a3e538dfef7c204782669"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "255_pedrovgs_Algorithms-master_ef5c9a4_73ecaa5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNegativePositions:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNegativePositions", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNegativePositions", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNegativePositions() {\n findElement.find(new ListNode(3), -1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-41"], "old_production_code": "", "new_production_code": "public ListNode find(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode reversedList = reverseLinkedList.reverseIterative(listNode);\n ListNode result = reversedList;\n while (k > 0) {\n result = result.getNext();\n if (result == null) {\n throw new IndexOutOfBoundsException();\n }\n k--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "42-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2227, "method_coverage_gold": 1.4815, "line_coverage_gold": 0.7564, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c24d7348a73cc8d8632a3e538dfef7c204782669"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "256_pedrovgs_Algorithms-master_ef5c9a4_73ecaa5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldReturnLastNodeIfPositionIsZero:()V", "class": "FindKthElementTest", "method": "shouldReturnLastNodeIfPositionIsZero", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldReturnLastNodeIfPositionIsZero", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnLastNodeIfPositionIsZero() {\n ListNode result = findElement.find(new ListNode(1), 0);\n ListNode expectedNode = new ListNode(1);\n assertEquals(expectedNode, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-53"], "old_production_code": "", "new_production_code": "public ListNode find(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode reversedList = reverseLinkedList.reverseIterative(listNode);\n ListNode result = reversedList;\n while (k > 0) {\n result = result.getNext();\n if (result == null) {\n throw new IndexOutOfBoundsException();\n }\n k--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "42-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 0.8909, "method_coverage_gold": 3.3333, "line_coverage_gold": 1.9667, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c24d7348a73cc8d8632a3e538dfef7c204782669"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "com/github/pedrovgs/linkedlist/ListNode.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "258_pedrovgs_Algorithms-master_ef5c9a4_73ecaa5_FindKthElementTest", "test_sign": "com/github/pedrovgs/problem58/FindKthElementTest.shouldNotAcceptNullListNodes:()V", "class": "FindKthElementTest", "method": "shouldNotAcceptNullListNodes", "module": "", "junit_selector": "com.github.pedrovgs.problem58.FindKthElementTest#shouldNotAcceptNullListNodes", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListNodes() {\n findElement.find(null, 4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-37"], "old_production_code": "", "new_production_code": "public ListNode find(ListNode listNode, int k) {\n validateInput(listNode, k);\n ListNode reversedList = reverseLinkedList.reverseIterative(listNode);\n ListNode result = reversedList;\n while (k > 0) {\n result = result.getNext();\n if (result == null) {\n throw new IndexOutOfBoundsException();\n }\n k--;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "focal_method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "line_nums_new": "42-55", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1114, "method_coverage_gold": 1.1111, "line_coverage_gold": 0.4539, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["c24d7348a73cc8d8632a3e538dfef7c204782669"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem58/FindKthElement.find:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem58/FindKthElement.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f04c5fa_6736cec__ReplaceSpacesTest_0de8399e", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f04c5faf44e49d7c628265c72d39fc99098c330c", "rev2": "6736cece590e68e2aa6419223b09846875777cc9", "rev1_date": "2015-01-04T23:22:43Z", "rev2_date": "2015-01-04T23:44:30Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f04c5faf44e49d7c628265c72d39fc99098c330c...6736cece590e68e2aa6419223b09846875777cc9", "test_file": "src/test/java/com/github/pedrovgs/problem52/ReplaceSpacesTest.java", "test_changes": [{"change_id": "149_pedrovgs_Algorithms-master_f04c5fa_6736cec_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces2:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces2", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceAllTheContentIfTheArrayIsFullOfSpaces2() {\n char[] input = new char[6];\n input[0] = ' ';\n input[1] = ' ';\n replaceSpaces.replace2(input);\n assertArrayEquals(new char[] { '%', '2', '0', '%', '2', '0' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-106"], "old_production_code": "", "new_production_code": "public void replace2(char[] input) {\n validateInput(input);\n int i = getLastCharPosition(input);\n for (int j = input.length - 1; i >= 0 && j >= 0; i--, j--) {\n if (input[i] == ' ') {\n input[j--] = '0';\n input[j--] = '2';\n input[j] = '%';\n } else {\n input[j] = input[i];\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "62-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 1.1111, "method_coverage_gold": 1.7241, "line_coverage_gold": 1.3769, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "150_pedrovgs_Algorithms-master_f04c5fa_6736cec_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent2:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent2", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithJustOneSpaceAtTheEndOfTheContent2() {\n char[] input = new char[8];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = 'd';\n input[3] = 'r';\n input[4] = 'o';\n input[5] = ' ';\n replaceSpaces.replace2(input);\n assertArrayEquals(new char[] { 'p', 'e', 'd', 'r', 'o', '%', '2', '0' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["122-134"], "old_production_code": "", "new_production_code": "public void replace2(char[] input) {\n validateInput(input);\n int i = getLastCharPosition(input);\n for (int j = input.length - 1; i >= 0 && j >= 0; i--, j--) {\n if (input[i] == ' ') {\n input[j--] = '0';\n input[j--] = '2';\n input[j] = '%';\n } else {\n input[j] = input[i];\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "62-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2346, "method_coverage_gold": 1.7241, "line_coverage_gold": 1.463, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "151_pedrovgs_Algorithms-master_f04c5fa_6736cec_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace2:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace2", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithMoreThanOneSpace2() {\n char[] input = new char[13];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = ' ';\n input[3] = 'd';\n input[4] = 'r';\n input[5] = 'o';\n input[6] = ' ';\n input[7] = 'g';\n input[8] = 's';\n replaceSpaces.replace2(input);\n assertArrayEquals(new char[] { 'p', 'e', '%', '2', '0', 'd', 'r', 'o', '%', '2', '0', 'g', 's' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-152"], "old_production_code": "", "new_production_code": "public void replace2(char[] input) {\n validateInput(input);\n int i = getLastCharPosition(input);\n for (int j = input.length - 1; i >= 0 && j >= 0; i--, j--) {\n if (input[i] == ' ') {\n input[j--] = '0';\n input[j--] = '2';\n input[j] = '%';\n } else {\n input[j] = input[i];\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "62-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2346, "method_coverage_gold": 1.7241, "line_coverage_gold": 1.463, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "152_pedrovgs_Algorithms-master_f04c5fa_6736cec_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldReplaceSpacesWithTheStatementCharWithJustOneSpace2:()V", "class": "ReplaceSpacesTest", "method": "shouldReplaceSpacesWithTheStatementCharWithJustOneSpace2", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldReplaceSpacesWithTheStatementCharWithJustOneSpace2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReplaceSpacesWithTheStatementCharWithJustOneSpace2() {\n char[] input = new char[8];\n input[0] = 'p';\n input[1] = 'e';\n input[2] = ' ';\n input[3] = 'd';\n input[4] = 'r';\n input[5] = 'o';\n replaceSpaces.replace2(input);\n assertArrayEquals(new char[] { 'p', 'e', '%', '2', '0', 'd', 'r', 'o' }, input);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-120"], "old_production_code": "", "new_production_code": "public void replace2(char[] input) {\n validateInput(input);\n int i = getLastCharPosition(input);\n for (int j = input.length - 1; i >= 0 && j >= 0; i--, j--) {\n if (input[i] == ' ') {\n input[j--] = '0';\n input[j--] = '2';\n input[j] = '%';\n } else {\n input[j] = input[i];\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "62-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2346, "method_coverage_gold": 1.7241, "line_coverage_gold": 1.463, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "153_pedrovgs_Algorithms-master_f04c5fa_6736cec_ReplaceSpacesTest", "test_sign": "com/github/pedrovgs/problem52/ReplaceSpacesTest.shouldNotAcceptNullArrays2:()V", "class": "ReplaceSpacesTest", "method": "shouldNotAcceptNullArrays2", "module": "", "junit_selector": "com.github.pedrovgs.problem52.ReplaceSpacesTest#shouldNotAcceptNullArrays2", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullArrays2() {\n replaceSpaces.replace2(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-96"], "old_production_code": "", "new_production_code": "public void replace2(char[] input) {\n validateInput(input);\n int i = getLastCharPosition(input);\n for (int j = input.length - 1; i >= 0 && j >= 0; i--, j--) {\n if (input[i] == ' ') {\n input[j--] = '0';\n input[j--] = '2';\n input[j] = '%';\n } else {\n input[j] = input[i];\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "focal_method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "line_nums_new": "62-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1235, "method_coverage_gold": 0.8621, "line_coverage_gold": 0.2582, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem52/ReplaceSpaces.replace2:([C)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem52/ReplaceSpaces.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f327757_13354c5__GoThroughMatrixInSpiralTest_b3c0ffd1", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f32775723e112f69ab0431cb1a674e66fc503623", "rev2": "13354c5e98c2d6de172808468ff421a4e99f34a2", "rev1_date": "2014-12-26T11:04:22Z", "rev2_date": "2014-12-26T11:23:47Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f32775723e112f69ab0431cb1a674e66fc503623...13354c5e98c2d6de172808468ff421a4e99f34a2", "test_file": "src/test/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiralTest.java", "test_changes": [{"change_id": "131_pedrovgs_Algorithms-master_f327757_13354c5_GoThroughMatrixInSpiralTest", "test_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiralTest.shouldGoThroughTheMatrixInSpiral:()V", "class": "GoThroughMatrixInSpiralTest", "method": "shouldGoThroughTheMatrixInSpiral", "module": "", "junit_selector": "com.github.pedrovgs.problem41.GoThroughMatrixInSpiralTest#shouldGoThroughTheMatrixInSpiral", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGoThroughTheMatrixInSpiral() {\n int[][] matrix = { { 1, 2, 3, 4, 5, 6 }, { 20, 21, 22, 23, 24, 7 }, { 19, 32, 33, 34, 25, 8 }, { 18, 31, 36, 35, 26, 9 }, { 17, 30, 29, 28, 27, 10 }, { 16, 15, 14, 13, 12, 11 } };\n int[] result = goThroughMatrixInSpiral.go(matrix);\n int[] expected = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 };\n assertArrayEquals(expected, result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-61"], "old_production_code": "", "new_production_code": "public int[] go(int[][] matrix) {\n if (matrix == null) {\n throw new IllegalArgumentException(\"You can't pass a null insantece as input.\");\n }\n if (matrix.length == 0) {\n return new int[0];\n }\n int m = matrix.length;\n int n = matrix[0].length;\n int resultIndex = 0;\n int[] result = new int[m * n];\n int x = 0;\n int y = 0;\n while (m > 0 && n > 0) {\n if (m == 1) {\n for (int i = 0; i < n; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n break;\n } else if (n == 1) {\n for (int i = 0; i < m; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n break;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y--;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x--;\n }\n x++;\n y++;\n m = m - 2;\n n = n - 2;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "focal_method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "line_nums_new": "42-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7368421052631579, "branch_coverage_gold": 2.259, "method_coverage_gold": 1.0989, "line_coverage_gold": 3.0818, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cc53e46ef235e3017d5af179ca018f7d5b94db1f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "132_pedrovgs_Algorithms-master_f327757_13354c5_GoThroughMatrixInSpiralTest", "test_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiralTest.shouldNotAcceptNullInstancesAsInput:()V", "class": "GoThroughMatrixInSpiralTest", "method": "shouldNotAcceptNullInstancesAsInput", "module": "", "junit_selector": "com.github.pedrovgs.problem41.GoThroughMatrixInSpiralTest#shouldNotAcceptNullInstancesAsInput", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstancesAsInput() {\n goThroughMatrixInSpiral.go(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-38"], "old_production_code": "", "new_production_code": "public int[] go(int[][] matrix) {\n if (matrix == null) {\n throw new IllegalArgumentException(\"You can't pass a null insantece as input.\");\n }\n if (matrix.length == 0) {\n return new int[0];\n }\n int m = matrix.length;\n int n = matrix[0].length;\n int resultIndex = 0;\n int[] result = new int[m * n];\n int x = 0;\n int y = 0;\n while (m > 0 && n > 0) {\n if (m == 1) {\n for (int i = 0; i < n; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n break;\n } else if (n == 1) {\n for (int i = 0; i < m; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n break;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y--;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x--;\n }\n x++;\n y++;\n m = m - 2;\n n = n - 2;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "focal_method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "line_nums_new": "42-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.05263157894736842, "branch_coverage_gold": 0.1506, "method_coverage_gold": 1.0989, "line_coverage_gold": 0.3188, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cc53e46ef235e3017d5af179ca018f7d5b94db1f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "133_pedrovgs_Algorithms-master_f327757_13354c5_GoThroughMatrixInSpiralTest", "test_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiralTest.shouldReturnEmptyArrayIfMatrixIsEmpty:()V", "class": "GoThroughMatrixInSpiralTest", "method": "shouldReturnEmptyArrayIfMatrixIsEmpty", "module": "", "junit_selector": "com.github.pedrovgs.problem41.GoThroughMatrixInSpiralTest#shouldReturnEmptyArrayIfMatrixIsEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void shouldReturnEmptyArrayIfMatrixIsEmpty() {\n int[][] matrix = {};\n int[] result = goThroughMatrixInSpiral.go(matrix);\n assertEquals(0, result.length);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-46"], "old_production_code": "", "new_production_code": "public int[] go(int[][] matrix) {\n if (matrix == null) {\n throw new IllegalArgumentException(\"You can't pass a null insantece as input.\");\n }\n if (matrix.length == 0) {\n return new int[0];\n }\n int m = matrix.length;\n int n = matrix[0].length;\n int resultIndex = 0;\n int[] result = new int[m * n];\n int x = 0;\n int y = 0;\n while (m > 0 && n > 0) {\n if (m == 1) {\n for (int i = 0; i < n; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n break;\n } else if (n == 1) {\n for (int i = 0; i < m; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n break;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y++;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x++;\n }\n for (int i = 0; i < n - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n y--;\n }\n for (int i = 0; i < m - 1; i++) {\n result[resultIndex++] = matrix[x][y];\n x--;\n }\n x++;\n y++;\n m = m - 2;\n n = n - 2;\n }\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "focal_method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "line_nums_new": "42-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.07894736842105263, "branch_coverage_gold": 0.3012, "method_coverage_gold": 1.0989, "line_coverage_gold": 0.4251, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["cc53e46ef235e3017d5af179ca018f7d5b94db1f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.go:([[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem41/GoThroughMatrixInSpiral.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f4d4ab8_27ae84f__SumListsTest_a12e280d", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f4d4ab8adaba250e990ece5c92eab0670fd92c16", "rev2": "27ae84f447a7f37e776462a430fa91561025ff69", "rev1_date": "2015-01-13T23:56:15Z", "rev2_date": "2015-01-13T23:57:23Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f4d4ab8adaba250e990ece5c92eab0670fd92c16...27ae84f447a7f37e776462a430fa91561025ff69", "test_file": "src/test/java/com/github/pedrovgs/problem61/SumListsTest.java", "test_changes": [{"change_id": "118_pedrovgs_Algorithms-master_f4d4ab8_27ae84f_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldNotAcceptNullListAsSecondParameterReverse:()V", "class": "SumListsTest", "method": "shouldNotAcceptNullListAsSecondParameterReverse", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldNotAcceptNullListAsSecondParameterReverse", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsSecondParameterReverse() {\n sumLists.sumReverse(new ListNode(0), null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-43"], "old_production_code": "", "new_production_code": "public int sumReverse(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateReverseNumber(n1);\n int n2Value = calculateReverseNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "42-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2151, "method_coverage_gold": 1.0526, "line_coverage_gold": 0.4286, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1c683d5e0d2445304b98f1ea1b9d4f71db8f144e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "119_pedrovgs_Algorithms-master_f4d4ab8_27ae84f_SumListsTest", "test_sign": "com/github/pedrovgs/problem61/SumListsTest.shouldNotAcceptNullListAsFirstParameterReverse:()V", "class": "SumListsTest", "method": "shouldNotAcceptNullListAsFirstParameterReverse", "module": "", "junit_selector": "com.github.pedrovgs.problem61.SumListsTest#shouldNotAcceptNullListAsFirstParameterReverse", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullListAsFirstParameterReverse() {\n sumLists.sumReverse(null, new ListNode(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-38"], "old_production_code": "", "new_production_code": "public int sumReverse(ListNode n1, ListNode n2) {\n validateInput(n1, n2);\n int n1Value = calculateReverseNumber(n1);\n int n2Value = calculateReverseNumber(n2);\n return n1Value + n2Value;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "focal_method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "line_nums_new": "42-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1075, "method_coverage_gold": 1.0526, "line_coverage_gold": 0.4286, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["1c683d5e0d2445304b98f1ea1b9d4f71db8f144e"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem61/SumLists.sumReverse:(Lcom/github/pedrovgs/linkedlist/ListNode;Lcom/github/pedrovgs/linkedlist/ListNode;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem61/SumLists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f552ece_025b082__RotateMatrixTest_b9ed9711", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f552ece89a68f48f1316d202caa6b4e15e6a4389", "rev2": "025b08205a696149336baab899f95dc43f07521a", "rev1_date": "2015-01-06T23:10:25Z", "rev2_date": "2015-01-06T23:11:07Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f552ece89a68f48f1316d202caa6b4e15e6a4389...025b08205a696149336baab899f95dc43f07521a", "test_file": "src/test/java/com/github/pedrovgs/problem54/RotateMatrixTest.java", "test_changes": [{"change_id": "396_pedrovgs_Algorithms-master_f552ece_025b082_RotateMatrixTest", "test_sign": "com/github/pedrovgs/problem54/RotateMatrixTest.shouldNotAcceptAnEmtpyMatrix:()V", "class": "RotateMatrixTest", "method": "shouldNotAcceptAnEmtpyMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem54.RotateMatrixTest#shouldNotAcceptAnEmtpyMatrix", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptAnEmtpyMatrix() {\n int[][] matrix = new int[0][0];\n rotateMatrix.rotate(matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public void rotate(int[][] matrix) {\n validateInput(matrix);\n int length = matrix.length;\n for (int i = 0; i < length / 2; ++i) {\n int first = i;\n int last = length - 1 - i;\n for (int j = first; j < last; ++j) {\n int offset = j - first;\n int top = matrix[first][j];\n moveLeftToTop(matrix, first, last, j, offset);\n moveBottomToLeft(matrix, first, last, offset);\n moveRithToBottom(matrix, last, j, offset);\n moveTopToRight(matrix, last, j, top);\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "focal_method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2364, "method_coverage_gold": 0.8065, "line_coverage_gold": 0.3236, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f77d9cf699d12d81a43a16119ca3a9347ec5f87c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "397_pedrovgs_Algorithms-master_f552ece_025b082_RotateMatrixTest", "test_sign": "com/github/pedrovgs/problem54/RotateMatrixTest.shouldNotAcceptMatrixWithDifferentHeightAndWidth:()V", "class": "RotateMatrixTest", "method": "shouldNotAcceptMatrixWithDifferentHeightAndWidth", "module": "", "junit_selector": "com.github.pedrovgs.problem54.RotateMatrixTest#shouldNotAcceptMatrixWithDifferentHeightAndWidth", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptMatrixWithDifferentHeightAndWidth() {\n int[][] matrix = new int[6][3];\n rotateMatrix.rotate(matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "", "new_production_code": "public void rotate(int[][] matrix) {\n validateInput(matrix);\n int length = matrix.length;\n for (int i = 0; i < length / 2; ++i) {\n int first = i;\n int last = length - 1 - i;\n for (int j = first; j < last; ++j) {\n int offset = j - first;\n int top = matrix[first][j];\n moveLeftToTop(matrix, first, last, j, offset);\n moveBottomToLeft(matrix, first, last, offset);\n moveRithToBottom(matrix, last, j, offset);\n moveTopToRight(matrix, last, j, top);\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "focal_method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.3546, "method_coverage_gold": 0.8065, "line_coverage_gold": 0.4045, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f77d9cf699d12d81a43a16119ca3a9347ec5f87c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "398_pedrovgs_Algorithms-master_f552ece_025b082_RotateMatrixTest", "test_sign": "com/github/pedrovgs/problem54/RotateMatrixTest.shouldRotateMatrix:()V", "class": "RotateMatrixTest", "method": "shouldRotateMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem54.RotateMatrixTest#shouldRotateMatrix", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRotateMatrix() {\n int[][] matrix = { { 0, 1, 2 }, { 3, 4, 5 }, { 6, 7, 8 } };\n rotateMatrix.rotate(matrix);\n int[][] expectedResult = { { 6, 3, 0 }, { 7, 4, 1 }, { 8, 5, 2 } };\n assertArrayEquals(expectedResult, matrix);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-58"], "old_production_code": "", "new_production_code": "public void rotate(int[][] matrix) {\n validateInput(matrix);\n int length = matrix.length;\n for (int i = 0; i < length / 2; ++i) {\n int first = i;\n int last = length - 1 - i;\n for (int j = first; j < last; ++j) {\n int offset = j - first;\n int top = matrix[first][j];\n moveLeftToTop(matrix, first, last, j, offset);\n moveBottomToLeft(matrix, first, last, offset);\n moveRithToBottom(matrix, last, j, offset);\n moveTopToRight(matrix, last, j, top);\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "focal_method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.8274, "method_coverage_gold": 2.8226, "line_coverage_gold": 2.1036, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f77d9cf699d12d81a43a16119ca3a9347ec5f87c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "399_pedrovgs_Algorithms-master_f552ece_025b082_RotateMatrixTest", "test_sign": "com/github/pedrovgs/problem54/RotateMatrixTest.shouldNotAcceptNullMatrix:()V", "class": "RotateMatrixTest", "method": "shouldNotAcceptNullMatrix", "module": "", "junit_selector": "com.github.pedrovgs.problem54.RotateMatrixTest#shouldNotAcceptNullMatrix", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullMatrix() {\n rotateMatrix.rotate(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public void rotate(int[][] matrix) {\n validateInput(matrix);\n int length = matrix.length;\n for (int i = 0; i < length / 2; ++i) {\n int first = i;\n int last = length - 1 - i;\n for (int j = first; j < last; ++j) {\n int offset = j - first;\n int top = matrix[first][j];\n moveLeftToTop(matrix, first, last, j, offset);\n moveBottomToLeft(matrix, first, last, offset);\n moveRithToBottom(matrix, last, j, offset);\n moveTopToRight(matrix, last, j, top);\n }\n }\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "focal_method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "line_nums_new": "32-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1182, "method_coverage_gold": 0.8065, "line_coverage_gold": 0.2427, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["f77d9cf699d12d81a43a16119ca3a9347ec5f87c"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem54/RotateMatrix.rotate:([[I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem54/RotateMatrix.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f69e5f4_5041f96__FindTheMissingNumberTest_c0a28c60", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f69e5f4c4ef340c5201a801a3be4e9c7e6b5dc06", "rev2": "5041f961b4aae3f0536b975ba241500286bf1236", "rev1_date": "2015-01-26T23:19:28Z", "rev2_date": "2015-01-26T23:20:58Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f69e5f4c4ef340c5201a801a3be4e9c7e6b5dc06...5041f961b4aae3f0536b975ba241500286bf1236", "test_file": "src/test/java/com/github/pedrovgs/problem72/FindTheMissingNumberTest.java", "test_changes": [{"change_id": "290_pedrovgs_Algorithms-master_f69e5f4_5041f96_FindTheMissingNumberTest", "test_sign": "com/github/pedrovgs/problem72/FindTheMissingNumberTest.shouldNotAcceptEmptyArrays:()V", "class": "FindTheMissingNumberTest", "method": "shouldNotAcceptEmptyArrays", "module": "", "junit_selector": "com.github.pedrovgs.problem72.FindTheMissingNumberTest#shouldNotAcceptEmptyArrays", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptEmptyArrays() {\n findMissingNumber.find(new int[0]);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-40"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n int idealSum = length * (length + 1) / 2;\n int sum = calculateSum(numbers);\n int missingNumber = idealSum - sum;\n return missingNumber;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "focal_method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "line_nums_new": "34-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.2, "method_coverage_gold": 0.6098, "line_coverage_gold": 0.2543, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0cc555edd98a85827b978cfdf7f0040d11ced5b5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "291_pedrovgs_Algorithms-master_f69e5f4_5041f96_FindTheMissingNumberTest", "test_sign": "com/github/pedrovgs/problem72/FindTheMissingNumberTest.shouldFindMissingNumber:()V", "class": "FindTheMissingNumberTest", "method": "shouldFindMissingNumber", "module": "", "junit_selector": "com.github.pedrovgs.problem72.FindTheMissingNumberTest#shouldFindMissingNumber", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFindMissingNumber() {\n int[] numbers = { 0, 1, 2, 4 };\n int missingNumber = findMissingNumber.find(numbers);\n assertEquals(3, missingNumber);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-48"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n int idealSum = length * (length + 1) / 2;\n int sum = calculateSum(numbers);\n int missingNumber = idealSum - sum;\n return missingNumber;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "focal_method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "line_nums_new": "34-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4, "method_coverage_gold": 1.2195, "line_coverage_gold": 0.89, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0cc555edd98a85827b978cfdf7f0040d11ced5b5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "292_pedrovgs_Algorithms-master_f69e5f4_5041f96_FindTheMissingNumberTest", "test_sign": "com/github/pedrovgs/problem72/FindTheMissingNumberTest.shouldNotAcceptNullInstances:()V", "class": "FindTheMissingNumberTest", "method": "shouldNotAcceptNullInstances", "module": "", "junit_selector": "com.github.pedrovgs.problem72.FindTheMissingNumberTest#shouldNotAcceptNullInstances", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullInstances() {\n findMissingNumber.find(null);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-36"], "old_production_code": "", "new_production_code": "public int find(int[] numbers) {\n validateInput(numbers);\n int length = numbers.length;\n int idealSum = length * (length + 1) / 2;\n int sum = calculateSum(numbers);\n int missingNumber = idealSum - sum;\n return missingNumber;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "focal_method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "line_nums_new": "34-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1, "method_coverage_gold": 0.6098, "line_coverage_gold": 0.1907, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["0cc555edd98a85827b978cfdf7f0040d11ced5b5"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem72/FindTheMissingNumber.find:([I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem72/FindTheMissingNumber.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pedrovgs_Algorithms-master__f6fe2da_2600a97__PartitionListTest_ca4a3a4d", "project_name": "pedrovgs_Algorithms-master", "git_clone_url": "https://github.com/pedrovgs/Algorithms.git", "rev1": "f6fe2da42764c2a0c6e0011a13272164dc127359", "rev2": "2600a9732918ce2708de70f57c46322c4aea9617", "rev1_date": "2015-01-12T23:20:36Z", "rev2_date": "2015-01-12T23:21:31Z", "git_diff_url": "https://github.com/pedrovgs/Algorithms/compare/f6fe2da42764c2a0c6e0011a13272164dc127359...2600a9732918ce2708de70f57c46322c4aea9617", "test_file": "src/test/java/com/github/pedrovgs/problem60/PartitionListTest.java", "test_changes": [{"change_id": "407_pedrovgs_Algorithms-master_f6fe2da_2600a97_PartitionListTest", "test_sign": "com/github/pedrovgs/problem60/PartitionListTest.shouldNotAcceptNullLists:()V", "class": "PartitionListTest", "method": "shouldNotAcceptNullLists", "module": "", "junit_selector": "com.github.pedrovgs.problem60.PartitionListTest#shouldNotAcceptNullLists", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void shouldNotAcceptNullLists() {\n partitionList.split(null, 1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-38"], "old_production_code": "", "new_production_code": "public ListNode split(ListNode list, int x) {\n validateInput(list);\n ListNode before = null;\n ListNode after = null;\n while (list != null) {\n ListNode next = list.getNext();\n if (list.getData() < x) {\n list.setNext(before);\n before = list;\n } else {\n list.setNext(after);\n after = list;\n }\n list = next;\n }\n if (before == null) {\n return after;\n }\n ListNode result = mergeLists(before, after);\n return result;\n}", "focal_file_path": "src/main/java/com/github/pedrovgs/problem60/PartitionList.java", "focal_method_sign": "com/github/pedrovgs/problem60/PartitionList.split:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/pedrovgs/problem60/PartitionList.split:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem60/PartitionList.java", "line_nums_new": "35-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.1082, "method_coverage_gold": 0.7117, "line_coverage_gold": 0.1444, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["30797b36b70b1baabaa83f1fcc3160e8821a7994"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/pedrovgs/problem60/PartitionList.split:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/pedrovgs/problem60/PartitionList.split:(Lcom/github/pedrovgs/linkedlist/ListNode;I)Lcom/github/pedrovgs/linkedlist/ListNode", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/pedrovgs/problem60/PartitionList.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 11} {"task_id": "pf4j_pf4j-release-3.15.0__7da511c_9080070__DefaultVersionManagerTest_8d722a4a", "project_name": "pf4j_pf4j-release-3.15.0", "git_clone_url": "https://github.com/pf4j/pf4j.git", "rev1": "7da511c29819802a9caef25580f9fac98edf6b78", "rev2": "9080070ef3ae5af14fb750668afdd26ed73443ff", "rev1_date": "2024-06-24T13:26:34Z", "rev2_date": "2024-06-24T14:11:31Z", "git_diff_url": "https://github.com/pf4j/pf4j/compare/7da511c29819802a9caef25580f9fac98edf6b78...9080070ef3ae5af14fb750668afdd26ed73443ff", "test_file": "pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java", "test_changes": [{"change_id": "707_pf4j_pf4j-release-3.15.0_7da511c_9080070_DefaultVersionManagerTest", "test_sign": "org/pf4j/DefaultVersionManagerTest.compareSnapshotVersion:()V", "class": "DefaultVersionManagerTest", "method": "compareSnapshotVersion", "module": "pf4j", "junit_selector": "org.pf4j.DefaultVersionManagerTest#compareSnapshotVersion", "old_test_code": null, "new_test_code": "@Test\nvoid compareSnapshotVersion() {\n assertTrue(versionManager.compareVersions(\"1.1.0\", \"1.0.0-SNAPSHOT\") > 0);\n assertTrue(versionManager.compareVersions(\"1.1.0\", \"1.2.0-SNAPSHOT\") < 0);\n assertTrue(versionManager.compareVersions(\"1.0.0-SNAPSHOT\", \"1.1.0-SNAPSHOT\") < 0);\n assertEquals(0, versionManager.compareVersions(\"1.0.0-SNAPSHOT\", \"1.0.0-SNAPSHOT\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-70"], "old_production_code": "@Override\npublic int compareVersions(String v1, String v2) {\n return Version.valueOf(v1).compareTo(Version.valueOf(v2));\n}", "new_production_code": "@Override\npublic int compareVersions(String v1, String v2) {\n return Version.parse(v1).compareTo(Version.parse(v2));\n}", "focal_file_path": "pf4j/src/main/java/org/pf4j/DefaultVersionManager.java", "focal_method_sign": "org/pf4j/DefaultVersionManager.compareVersions:(Ljava/lang/String;Ljava/lang/String;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pf4j/DefaultVersionManager.compareVersions:(Ljava/lang/String;Ljava/lang/String;)I", "file_path_old": "pf4j/src/main/java/org/pf4j/DefaultVersionManager.java", "line_nums_old": "45-48", "file_path_new": "pf4j/src/main/java/org/pf4j/DefaultVersionManager.java", "line_nums_new": "45-48", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3584, "line_coverage_gold": 0.0885, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bee79a6902e188b95b3d1f28ac9a5a1c39464aa9"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pf4j/DefaultVersionManager.compareVersions:(Ljava/lang/String;Ljava/lang/String;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pf4j/DefaultVersionManager.compareVersions:(Ljava/lang/String;Ljava/lang/String;)I", "change_type": "UPDATE", "file_path_old": "pf4j/src/main/java/org/pf4j/DefaultVersionManager.java", "file_path_new": "pf4j/src/main/java/org/pf4j/DefaultVersionManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "release-3.15.0", "java_version": 11} {"task_id": "pf4j_pf4j-release-3.15.0__8a2674c_fd91679__AbstractPluginManagerTest_7a065223", "project_name": "pf4j_pf4j-release-3.15.0", "git_clone_url": "https://github.com/pf4j/pf4j.git", "rev1": "8a2674c5392de62a97e4d0b33e4dd94dbaae407d", "rev2": "fd916791822fe3dcd83ed7a197d17f8903668049", "rev1_date": "2019-04-20T10:50:58Z", "rev2_date": "2019-04-20T19:00:17Z", "git_diff_url": "https://github.com/pf4j/pf4j/compare/8a2674c5392de62a97e4d0b33e4dd94dbaae407d...fd916791822fe3dcd83ed7a197d17f8903668049", "test_file": "pf4j/src/test/java/org/pf4j/AbstractPluginManagerTest.java", "test_changes": [{"change_id": "711_pf4j_pf4j-release-3.15.0_8a2674c_fd91679_AbstractPluginManagerTest", "test_sign": "org/pf4j/AbstractPluginManagerTest.getExtensionsByType:()V", "class": "AbstractPluginManagerTest", "method": "getExtensionsByType", "module": "pf4j", "junit_selector": "org.pf4j.AbstractPluginManagerTest#getExtensionsByType", "old_test_code": null, "new_test_code": "@Test\npublic void getExtensionsByType() {\n AbstractPluginManager pluginManager = mock(AbstractPluginManager.class, CALLS_REAL_METHODS);\n ExtensionFinder extensionFinder = mock(ExtensionFinder.class);\n List> extensionList = new ArrayList<>(1);\n extensionList.add(new ExtensionWrapper<>(new ExtensionDescriptor(0, TestExtension.class), new DefaultExtensionFactory()));\n when(extensionFinder.find(TestExtensionPoint.class)).thenReturn(extensionList);\n pluginManager.extensionFinder = extensionFinder;\n List extensions = pluginManager.getExtensions(TestExtensionPoint.class);\n assertEquals(1, extensions.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-47"], "old_production_code": "@Override\npublic List getExtensions(Class type) {\n List> extensionsWrapper = extensionFinder.find(type);\n List extensions = new ArrayList<>(extensionsWrapper.size());\n for (ExtensionWrapper extensionWrapper : extensionsWrapper) {\n extensions.add(extensionWrapper.getExtension());\n }\n return extensions;\n}", "new_production_code": "@Override\npublic List getExtensions(Class type) {\n List> extensionsWrapper = extensionFinder.find(type);\n List extensions = new ArrayList<>(extensionsWrapper.size());\n for (ExtensionWrapper extensionWrapper : extensionsWrapper) {\n try {\n extensions.add(extensionWrapper.getExtension());\n } catch (PluginException e) {\n log.error(\"Cannot retrieve extension\", e);\n }\n }\n return extensions;\n}", "focal_file_path": "pf4j/src/main/java/org/pf4j/AbstractPluginManager.java", "focal_method_sign": "org/pf4j/AbstractPluginManager.getExtensions:(Ljava/lang/Class;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/pf4j/AbstractPluginManager.getExtensions:(Ljava/lang/Class;)Ljava/util/List", "file_path_old": "pf4j/src/main/java/org/pf4j/AbstractPluginManager.java", "line_nums_old": "553-562", "file_path_new": "pf4j/src/main/java/org/pf4j/AbstractPluginManager.java", "line_nums_new": "554-567", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 0.4202, "method_coverage_gold": 1.8182, "line_coverage_gold": 1.1825, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["65e8fe76c8da4049f58c263b651e77c80b375067"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pf4j/AbstractPluginManager.getExtensions:(Ljava/lang/Class;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pf4j/AbstractPluginManager.getExtensions:(Ljava/lang/Class;)Ljava/util/List", "change_type": "UPDATE", "file_path_old": "pf4j/src/main/java/org/pf4j/AbstractPluginManager.java", "file_path_new": "pf4j/src/main/java/org/pf4j/AbstractPluginManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "release-3.15.0", "java_version": 11} {"task_id": "pf4j_pf4j-release-3.15.0__d4df01f_a13568f__PluginClassLoaderTest_75877504", "project_name": "pf4j_pf4j-release-3.15.0", "git_clone_url": "https://github.com/pf4j/pf4j.git", "rev1": "d4df01f414ddf73c5761a50a5769175194f68006", "rev2": "a13568fe85403b83d5c23c93ba8f21fca3113bfe", "rev1_date": "2024-06-24T11:40:14Z", "rev2_date": "2024-06-24T13:21:58Z", "git_diff_url": "https://github.com/pf4j/pf4j/compare/d4df01f414ddf73c5761a50a5769175194f68006...a13568fe85403b83d5c23c93ba8f21fca3113bfe", "test_file": "pf4j/src/test/java/org/pf4j/PluginClassLoaderTest.java", "test_changes": [{"change_id": "638_pf4j_pf4j-release-3.15.0_d4df01f_a13568f_PluginClassLoaderTest", "test_sign": "org/pf4j/PluginClassLoaderTest.isClosed:()V", "class": "PluginClassLoaderTest", "method": "isClosed", "module": "pf4j", "junit_selector": "org.pf4j.PluginClassLoaderTest#isClosed", "old_test_code": null, "new_test_code": "@Test\nvoid isClosed() throws IOException {\n parentLastPluginClassLoader.close();\n assertTrue(parentLastPluginClassLoader.isClosed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["328-332"], "old_production_code": "", "new_production_code": "public boolean isClosed() {\n return closed;\n}", "focal_file_path": "pf4j/src/main/java/org/pf4j/PluginClassLoader.java", "focal_method_sign": "org/pf4j/PluginClassLoader.isClosed:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/pf4j/PluginClassLoader.isClosed:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "pf4j/src/main/java/org/pf4j/PluginClassLoader.java", "line_nums_new": "251-253", "dependency_updated": "inserted", "score": 0.826, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2606}}, {"dep_id": 0, "method_sign": "org/pf4j/PluginClassLoader.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "pf4j/src/main/java/org/pf4j/PluginClassLoader.java", "line_nums_new": "239-244", "dependency_updated": "inserted", "score": 0.5182, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.625, "class": 1.0, "tfidf": 0.215}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.9087, "method_coverage_gold": 23.1598, "line_coverage_gold": 16.2461, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/pf4j/PluginClassLoaderTest.tearDown:()V", "org/pf4j/PluginClassLoader.close:()V", "org/pf4j/PluginClassLoader.isClosed:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/pf4j/PluginClassLoader.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "pf4j/src/main/java/org/pf4j/PluginClassLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/pf4j/PluginClassLoader.isClosed:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "pf4j/src/main/java/org/pf4j/PluginClassLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "release-3.15.0", "java_version": 11} {"task_id": "pippo-java_pippo-release-1.14.0__2ac1852_a586b3d__PippoSettingsTest_f0ee3581", "project_name": "pippo-java_pippo-release-1.14.0", "git_clone_url": "https://github.com/pippo-java/pippo.git", "rev1": "2ac18522b0fe495dc00c16a042fdaaf7b51b8c74", "rev2": "a586b3da7ed2723b2b6687ca61b9061938094525", "rev1_date": "2018-01-13T10:26:38Z", "rev2_date": "2018-01-13T10:41:16Z", "git_diff_url": "https://github.com/pippo-java/pippo/compare/2ac18522b0fe495dc00c16a042fdaaf7b51b8c74...a586b3da7ed2723b2b6687ca61b9061938094525", "test_file": "pippo-core/src/test/java/ro/pippo/core/PippoSettingsTest.java", "test_changes": [{"change_id": "326_pippo-java_pippo-release-1.14.0_2ac1852_a586b3d_PippoSettingsTest", "test_sign": "ro/pippo/core/PippoSettingsTest.testGetDoubles:()V", "class": "PippoSettingsTest", "method": "testGetDoubles", "module": "pippo-core", "junit_selector": "ro.pippo.core.PippoSettingsTest#testGetDoubles", "old_test_code": null, "new_test_code": "@Test\npublic void testGetDoubles() {\n Mockito.doReturn(\" [1234, 123, value3]\").when(pippoSettings).getString(\"key\", null);\n Mockito.doCallRealMethod().when(pippoSettings).getStrings(\"key\", \",\");\n Mockito.doCallRealMethod().when(pippoSettings).getDoubles(\"key\", \",\");\n List values = pippoSettings.getDoubles(\"key\", \",\");\n assertEquals(Arrays.asList(1234d, 123d), values);\n Mockito.doReturn(Collections.emptyList()).when(pippoSettings).getStrings(\"key\", \",\");\n values = pippoSettings.getDoubles(\"key\", \",\");\n assertTrue(values.isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-79"], "old_production_code": "", "new_production_code": "public List getDoubles(String name, String delimiter) {\n List strings = getStrings(name, delimiter);\n List doubles = new ArrayList<>(strings.size());\n for (String value : strings) {\n try {\n double i = Double.parseDouble(value);\n doubles.add(i);\n } catch (NumberFormatException e) {\n }\n }\n return Collections.unmodifiableList(doubles);\n}", "focal_file_path": "pippo-core/src/main/java/ro/pippo/core/PippoSettings.java", "focal_method_sign": "ro/pippo/core/PippoSettings.getDoubles:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "ro/pippo/core/PippoSettings.getDoubles:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "pippo-core/src/main/java/ro/pippo/core/PippoSettings.java", "line_nums_new": "751-763", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.7965, "method_coverage_gold": 0.5165, "line_coverage_gold": 0.6703, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["ro/pippo/core/PippoSettings.getDoubles:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "ro/pippo/core/PippoSettings.getDoubles:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "pippo-core/src/main/java/ro/pippo/core/PippoSettings.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "release-1.14.0", "java_version": 8} {"task_id": "pippo-java_pippo-release-1.14.0__33c4c7b_2eadf21__GZipRequestResponseFactoryTest_d693c26b", "project_name": "pippo-java_pippo-release-1.14.0", "git_clone_url": "https://github.com/pippo-java/pippo.git", "rev1": "33c4c7b8c20b7c06a9e3700446f5759a030db23a", "rev2": "2eadf21daf8fbd6f50ee01f70353da8659ce62ff", "rev1_date": "2018-11-01T10:00:58Z", "rev2_date": "2018-11-01T10:12:15Z", "git_diff_url": "https://github.com/pippo-java/pippo/compare/33c4c7b8c20b7c06a9e3700446f5759a030db23a...2eadf21daf8fbd6f50ee01f70353da8659ce62ff", "test_file": "pippo-core/src/test/java/ro/pippo/core/gzip/GZipRequestResponseFactoryTest.java", "test_changes": [{"change_id": "327_pippo-java_pippo-release-1.14.0_33c4c7b_2eadf21_GZipRequestResponseFactoryTest", "test_sign": "ro/pippo/core/gzip/GZipRequestResponseFactoryTest.testAcceptGzipEncoding:()V", "class": "GZipRequestResponseFactoryTest", "method": "testAcceptGzipEncoding", "module": "pippo-core", "junit_selector": "ro.pippo.core.gzip.GZipRequestResponseFactoryTest#testAcceptGzipEncoding", "old_test_code": null, "new_test_code": "@Test\npublic void testAcceptGzipEncoding() {\n GZipRequestResponseFactory requestResponseFactory = new GZipRequestResponseFactory(new Application());\n HttpServletRequest httpServletRequest = Mockito.mock(HttpServletRequest.class);\n Mockito.doReturn(null).when(httpServletRequest).getHeader(\"accept-encoding\");\n assertFalse(requestResponseFactory.acceptsGZipEncoding(httpServletRequest));\n Mockito.doReturn(\"gzip,deflate,identity\").when(httpServletRequest).getHeader(\"accept-encoding\");\n assertTrue(requestResponseFactory.acceptsGZipEncoding(httpServletRequest));\n Mockito.doReturn(\"*\").when(httpServletRequest).getHeader(\"accept-encoding\");\n assertTrue(requestResponseFactory.acceptsGZipEncoding(httpServletRequest));\n Mockito.doReturn(\"deflate,identity\").when(httpServletRequest).getHeader(\"accept-encoding\");\n assertFalse(requestResponseFactory.acceptsGZipEncoding(httpServletRequest));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-49"], "old_production_code": "protected boolean acceptsGZipEncoding(HttpServletRequest httpServletRequest) {\n String acceptEncoding = httpServletRequest.getHeader(\"accept-encoding\");\n return acceptEncoding != null && acceptEncoding.contains(\"gzip\");\n}", "new_production_code": "protected boolean acceptsGZipEncoding(HttpServletRequest httpServletRequest) {\n String acceptEncoding = httpServletRequest.getHeader(\"accept-encoding\");\n return !StringUtils.isNullOrEmpty(acceptEncoding) && (acceptEncoding.contains(\"gzip\") || acceptEncoding.contains(\"*\"));\n}", "focal_file_path": "pippo-core/src/main/java/ro/pippo/core/gzip/GZipRequestResponseFactory.java", "focal_method_sign": "ro/pippo/core/gzip/GZipRequestResponseFactory.acceptsGZipEncoding:(Ljavax/servlet/http/HttpServletRequest;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "ro/pippo/core/gzip/GZipRequestResponseFactory.acceptsGZipEncoding:(Ljavax/servlet/http/HttpServletRequest;)Z", "file_path_old": "pippo-core/src/main/java/ro/pippo/core/gzip/GZipRequestResponseFactory.java", "line_nums_old": "53-57", "file_path_new": "pippo-core/src/main/java/ro/pippo/core/gzip/GZipRequestResponseFactory.java", "line_nums_new": "54-60", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.9758, "method_coverage_gold": 5.5281, "line_coverage_gold": 6.601, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["ro/pippo/core/gzip/GZipRequestResponseFactory.acceptsGZipEncoding:(Ljavax/servlet/http/HttpServletRequest;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "ro/pippo/core/gzip/GZipRequestResponseFactory.acceptsGZipEncoding:(Ljavax/servlet/http/HttpServletRequest;)Z", "change_type": "UPDATE", "file_path_old": "pippo-core/src/main/java/ro/pippo/core/gzip/GZipRequestResponseFactory.java", "file_path_new": "pippo-core/src/main/java/ro/pippo/core/gzip/GZipRequestResponseFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "release-1.14.0", "java_version": 8} {"task_id": "projectdiscovery_nuclei-burp-plugin-v1.1.3__97c48e2_61df478__UtilsTest_27304015", "project_name": "projectdiscovery_nuclei-burp-plugin-v1.1.3", "git_clone_url": "https://github.com/projectdiscovery/nuclei-burp-plugin.git", "rev1": "97c48e2ffbc5adf855b479cb0417dbcb03fa7214", "rev2": "61df478a789ebebb81743c352eb0085cc10ed4d7", "rev1_date": "2022-02-08T14:18:28Z", "rev2_date": "2022-02-08T16:49:50Z", "git_diff_url": "https://github.com/projectdiscovery/nuclei-burp-plugin/compare/97c48e2ffbc5adf855b479cb0417dbcb03fa7214...61df478a789ebebb81743c352eb0085cc10ed4d7", "test_file": "src/test/java/io/projectdiscovery/nuclei/util/UtilsTest.java", "test_changes": [{"change_id": "21_projectdiscovery_nuclei-burp-plugin-v1.1.3_97c48e2_61df478_UtilsTest", "test_sign": "io/projectdiscovery/nuclei/util/UtilsTest.testTemplateNormalization:()V", "class": "UtilsTest", "method": "testTemplateNormalization", "module": "", "junit_selector": "io.projectdiscovery.nuclei.util.UtilsTest#testTemplateNormalization", "old_test_code": null, "new_test_code": "@Test\nvoid testTemplateNormalization() {\n final String yamlTemplate = \"id: template-id\\n\" + \"info:\\n\" + \" name: Template Name\\n\" + \" author: istvan\\n\" + \" severity: info\\n\" + \"requests:\\n\" + \"- raw:\\n\" + \" - |+\\n\" + \" GET / HTTP/1.1\\n\" + \" Host: http://localhost:8080\\n\" + \" matchers-condition: and\\n\" + \" matchers:\\n\" + \" - type: word\\n\" + \" part: body\\n\" + \" condition: or\\n\" + \" words:\\n\" + \" - f=\\\"bin.bin\\\">bin.bin\\n\" + \" -
  • dns.yaml
  • \";\n final String expected = \"id: template-id\\n\" + \"\\n\" + \"info:\\n\" + \" name: Template Name\\n\" + \" author: istvan\\n\" + \" severity: info\\n\" + \"\\n\" + \"requests:\\n\" + \"- raw:\\n\" + \" - |+\\n\" + \" GET / HTTP/1.1\\n\" + \" Host: http://localhost:8080\\n\" + \"\\n\" + \" matchers-condition: and\\n\" + \" matchers:\\n\" + \" - type: word\\n\" + \" part: body\\n\" + \" condition: or\\n\" + \" words:\\n\" + \" - f=\\\"bin.bin\\\">bin.bin\\n\" + \" -
  • dns.yaml
  • \";\n Assertions.assertEquals(expected, Utils.normalizeTemplate(yamlTemplate));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-100"], "old_production_code": "", "new_production_code": "public static String normalizeTemplate(String yamlTemplate) {\n String result = yamlTemplate;\n for (String fieldName : Arrays.asList(\"info\", \"requests\", \"extractors\")) {\n result = addNewLineBeforeProperty(result, fieldName);\n }\n result = result.contains(\"matchers-condition: \") ? addNewLineBeforeProperty(result, \"matchers-condition\", getEnumValues(Requests.MatchersCondition.class)) : addNewLineBeforeProperty(result, \"matchers\");\n result = result.contains(\"attack: \") ? addNewLineBeforeProperty(result, \"attack\", getEnumValues(Requests.AttackType.class)) : addNewLineBeforeProperty(result, \"payloads\");\n return result;\n}", "focal_file_path": "src/main/java/io/projectdiscovery/nuclei/util/Utils.java", "focal_method_sign": "io/projectdiscovery/nuclei/util/Utils.normalizeTemplate:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/projectdiscovery/nuclei/util/Utils.normalizeTemplate:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/io/projectdiscovery/nuclei/util/Utils.java", "line_nums_new": "180-194", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.623, "method_coverage_gold": 2.3166, "line_coverage_gold": 2.1563, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["76c5ceea4967e4b662811dbd5d5d2163c1a4f240"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/projectdiscovery/nuclei/util/Utils.normalizeTemplate:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/projectdiscovery/nuclei/util/Utils.normalizeTemplate:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/io/projectdiscovery/nuclei/util/Utils.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v1.1.3", "java_version": 11} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__03fa282_69478df__ArraysTest_b8193188", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "03fa282193032012eb80646fd4fdd1c2dc1ab9ac", "rev2": "69478df8a4d02442492bfbaf442e6314d11b683d", "rev1_date": "2016-06-18T16:30:29Z", "rev2_date": "2016-06-18T16:30:48Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/03fa282193032012eb80646fd4fdd1c2dc1ab9ac...69478df8a4d02442492bfbaf442e6314d11b683d", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/ArraysTest.java", "test_changes": [{"change_id": "3435_quicktheories_QuickTheories-quicktheories-parent-0.26_03fa282_69478df_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldDescribeListContentsUsingProvidedSource:()V", "class": "ArraysTest", "method": "shouldDescribeListContentsUsingProvidedSource", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldDescribeListContentsUsingProvidedSource", "old_test_code": null, "new_test_code": "@Test\npublic void shouldDescribeListContentsUsingProvidedSource() {\n Source sourceWithCustomDescription = Arbitrary.constant(\"x\").describedAs(x -> \"custom description for x\");\n Source testee = Arrays.arraysOf(sourceWithCustomDescription, String.class, 2, 2);\n String[] anArray = { \"foo\", \"bar\" };\n assertThat(testee.asString(anArray)).isEqualTo(\"[custom description for x, custom description for x]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["120-128"], "old_production_code": "@SuppressWarnings(\"unchecked\")\nstatic Source arraysOf(Source values, Class c, int minLength, int maxLength) {\n return Lists.listsOf(values, Lists.arrayListCollector(), minLength, maxLength).as(l -> l.toArray((T[]) Array.newInstance(c, 0)), a -> java.util.Arrays.asList(a)).describedAs(arrayDescriber());\n}", "new_production_code": "@SuppressWarnings(\"unchecked\")\nstatic Source arraysOf(Source values, Class c, int minLength, int maxLength) {\n return Lists.listsOf(values, Lists.arrayListCollector(), minLength, maxLength).as(l -> l.toArray((T[]) Array.newInstance(c, 0)), a -> java.util.Arrays.asList(a)).describedAs(arrayDescriber(values::asString));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "line_nums_old": "10-21", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "line_nums_new": "12-23", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.8708, "line_coverage_gold": 2.379, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/core/Source.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/Arbitrary.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Source", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__03fa282_69478df__ListsTest_b8193188", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "03fa282193032012eb80646fd4fdd1c2dc1ab9ac", "rev2": "69478df8a4d02442492bfbaf442e6314d11b683d", "rev1_date": "2016-06-18T16:30:29Z", "rev2_date": "2016-06-18T16:30:48Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/03fa282193032012eb80646fd4fdd1c2dc1ab9ac...69478df8a4d02442492bfbaf442e6314d11b683d", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/ListsTest.java", "test_changes": [{"change_id": "3436_quicktheories_QuickTheories-quicktheories-parent-0.26_03fa282_69478df_ListsTest", "test_sign": "org/quicktheories/quicktheories/generators/ListsTest.shouldDescribeListContentsUsingProvidedSource:()V", "class": "ListsTest", "method": "shouldDescribeListContentsUsingProvidedSource", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ListsTest#shouldDescribeListContentsUsingProvidedSource", "old_test_code": null, "new_test_code": "@Test\npublic void shouldDescribeListContentsUsingProvidedSource() {\n Source sourceWithCustomDescription = Arbitrary.constant(\"x\").describedAs(x -> \"custom description for x\");\n Source> testee = listsOf(sourceWithCustomDescription, arrayListCollector(), 2, 3);\n List aList = new ArrayList(Arrays.asList(\"x\", \"x\"));\n assertThat(testee.asString(aList)).isEqualTo(\"[custom description for x, custom description for x]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["233-239"], "old_production_code": "static Source> listsOf(Source generator, Collector, List> collector, int minimumSize, int maximumSize) {\n return Source.of((prng, step) -> Collections.nCopies((int) prng.generateRandomLongWithinInterval(minimumSize, maximumSize), prng).stream().map(p -> generator.next(p, step)).collect(collector)).withShrinker(shrinkBoundedList(generator, collector, minimumSize));\n}", "new_production_code": "static Source> listsOf(Source generator, Collector, List> collector, int minimumSize, int maximumSize) {\n return Source.of((prng, step) -> Collections.nCopies((int) prng.generateRandomLongWithinInterval(minimumSize, maximumSize), prng).stream().map(p -> generator.next(p, step)).collect(collector)).withShrinker(shrinkBoundedList(generator, collector, minimumSize)).describedAs(listDescriber(generator::asString));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Lists.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Lists.listsOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/util/stream/Collector;II)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Lists.listsOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/util/stream/Collector;II)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Lists.java", "line_nums_old": "42-52", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Lists.java", "line_nums_new": "45-56", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.2329, "line_coverage_gold": 1.6407, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/Lists.arrayListCollector:()Ljava/util/stream/Collector", "org/quicktheories/quicktheories/generators/Lists.listsOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/util/stream/Collector;II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/Arbitrary.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/core/Source.asString:(Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Lists.listsOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/util/stream/Collector;II)Lorg/quicktheories/quicktheories/core/Source", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Lists.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Lists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__0f04c50_7d9fd0d__DatesTest_0c685e6e", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "0f04c5073c1d4af5da26007c3378ad7e8f69b433", "rev2": "7d9fd0d15abec4c6818195b700e63af1da0b0f54", "rev1_date": "2015-12-11T10:39:33Z", "rev2_date": "2015-12-11T15:14:39Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/0f04c5073c1d4af5da26007c3378ad7e8f69b433...7d9fd0d15abec4c6818195b700e63af1da0b0f54", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/DatesTest.java", "test_changes": [{"change_id": "4241_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_DatesTest", "test_sign": "org/quicktheories/quicktheories/generators/DatesTest.shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues:()V", "class": "DatesTest", "method": "shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.DatesTest#shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues() {\n Source testee = Dates.withMilliSecondsBetween(0, 8687689756l);\n assertThatSource(testee).cannotShrink(new Date(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "static Source withMilliSecondsBetween(long milliSecondsFromEpochStartInclusive, long milliSecondsFromEpochEndInclusive) {\n return Longs.range(milliSecondsFromEpochStartInclusive, milliSecondsFromEpochEndInclusive).as(l -> new Date(l), d -> d.getTime());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "48-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4247_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_DatesTest", "test_sign": "org/quicktheories/quicktheories/generators/DatesTest.shouldShrinkBoundedDateByOneWhenWithinRemainingCycles:()V", "class": "DatesTest", "method": "shouldShrinkBoundedDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.DatesTest#shouldShrinkBoundedDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkBoundedDateByOneWhenWithinRemainingCycles() {\n Source testee = Dates.withMilliSecondsBetween(0, 40);\n assertThatSource(testee).shrinksValueTo(new Date(7), new Date(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "static Source withMilliSecondsBetween(long milliSecondsFromEpochStartInclusive, long milliSecondsFromEpochEndInclusive) {\n return Longs.range(milliSecondsFromEpochStartInclusive, milliSecondsFromEpochEndInclusive).as(l -> new Date(l), d -> d.getTime());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "48-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.864, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__0f04c50_7d9fd0d__LocalDatesTest_8605bc38", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "0f04c5073c1d4af5da26007c3378ad7e8f69b433", "rev2": "7d9fd0d15abec4c6818195b700e63af1da0b0f54", "rev1_date": "2015-12-11T10:39:33Z", "rev2_date": "2015-12-11T15:14:39Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/0f04c5073c1d4af5da26007c3378ad7e8f69b433...7d9fd0d15abec4c6818195b700e63af1da0b0f54", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/LocalDatesTest.java", "test_changes": [{"change_id": "4228_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles:()V", "class": "LocalDatesTest", "method": "shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles() {\n Source testee = LocalDates.withDaysBetween(-30, -2);\n assertThatSource(testee).shrinksValueTo(LocalDate.ofEpochDay(-6), LocalDate.ofEpochDay(-5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-39"], "old_production_code": "", "new_production_code": "static Source withDaysBetween(long daysFromEpochStartInclusive, long daysFromEpochEndInclusive) {\n return Longs.range(daysFromEpochStartInclusive, daysFromEpochEndInclusive).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "73-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.4054, "method_coverage_gold": 4.1731, "line_coverage_gold": 4.0486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4230_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldShrinkLocalDateByOneWhenWithinRemainingCycles:()V", "class": "LocalDatesTest", "method": "shouldShrinkLocalDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldShrinkLocalDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkLocalDateByOneWhenWithinRemainingCycles() {\n Source testee = LocalDates.withDays(30);\n assertThatSource(testee).shrinksValueTo(LocalDate.ofEpochDay(6), LocalDate.ofEpochDay(5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-32"], "old_production_code": "", "new_production_code": "static Source withDays(long daysFromEpoch) {\n if (daysFromEpoch < 0) {\n return Longs.range(daysFromEpoch, 0).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n }\n return Longs.range(0, daysFromEpoch).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "64-71", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 3.864, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4238_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldNotShrinkEpoch:()V", "class": "LocalDatesTest", "method": "shouldNotShrinkEpoch", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldNotShrinkEpoch", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpoch() {\n Source testee = LocalDates.withDays(70978);\n assertThatSource(testee).cannotShrink(LocalDate.ofEpochDay(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "static Source withDays(long daysFromEpoch) {\n if (daysFromEpoch < 0) {\n return Longs.range(daysFromEpoch, 0).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n }\n return Longs.range(0, daysFromEpoch).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "64-71", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4257_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldNotShrinkEpochWhenDaysAreBetweenTwoValues:()V", "class": "LocalDatesTest", "method": "shouldNotShrinkEpochWhenDaysAreBetweenTwoValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldNotShrinkEpochWhenDaysAreBetweenTwoValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpochWhenDaysAreBetweenTwoValues() {\n Source testee = LocalDates.withDaysBetween(-324235, 70978);\n assertThatSource(testee).cannotShrink(LocalDate.ofEpochDay(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "static Source withDaysBetween(long daysFromEpochStartInclusive, long daysFromEpochEndInclusive) {\n return Longs.range(daysFromEpochStartInclusive, daysFromEpochEndInclusive).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "73-78", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__0f04c50_7d9fd0d__SourceDSLTest_303a607b", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "0f04c5073c1d4af5da26007c3378ad7e8f69b433", "rev2": "7d9fd0d15abec4c6818195b700e63af1da0b0f54", "rev1_date": "2015-12-11T10:39:33Z", "rev2_date": "2015-12-11T15:14:39Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/0f04c5073c1d4af5da26007c3378ad7e8f69b433...7d9fd0d15abec4c6818195b700e63af1da0b0f54", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/SourceDSLTest.java", "test_changes": [{"change_id": "4227_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingADateWithLongOfZero:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingADateWithLongOfZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingADateWithLongOfZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingADateWithLongOfZero() {\n try {\n Source testee = dates().withMilliSeconds(0);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["914-922"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3565, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0889, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "9-14", "dependency_updated": "inserted", "score": 0.1326, "signal_scores": {"nc": 0.0, "lcs_u": 0.4375, "ed": 0.1333, "class": 0.0, "tfidf": 0.142}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3514, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4008, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4229_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateLocalDateAtStartAndEndInclusive:()V", "class": "SourceDSLTest", "method": "shouldGenerateLocalDateAtStartAndEndInclusive", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateLocalDateAtStartAndEndInclusive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateLocalDateAtStartAndEndInclusive() {\n Source testee = localDates().withDaysBetween(3245352, 729385723);\n assertThatSource(testee).generatesAllOf(LocalDate.ofEpochDay(3245352), LocalDate.ofEpochDay(729385723));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1076-1081"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.4113, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.0425}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "19-31", "dependency_updated": "inserted", "score": 0.1715, "signal_scores": {"nc": 0.0, "lcs_u": 0.5333, "ed": 0.1556, "class": 0.0, "tfidf": 0.2198}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.3919, "method_coverage_gold": 5.7187, "line_coverage_gold": 6.0729, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4231_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin() {\n try {\n Source testee = dates().withMilliSecondsBetween(342, 3);\n fail(\"Created a Date where max long is less than min long!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["924-932"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.387, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0694, "class": 1.0, "tfidf": 0.0463}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "16-27", "dependency_updated": "inserted", "score": 0.1633, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1806, "class": 0.0, "tfidf": 0.1439}}], "coverage_gold": 0.4, "branch_coverage_gold": 1.3514, "method_coverage_gold": 0.9274, "line_coverage_gold": 0.9717, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4232_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateLocalDateMax:()V", "class": "SourceDSLTest", "method": "shouldGenerateLocalDateMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateLocalDateMax", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateLocalDateMax() {\n Source testee = localDates().withDays(7890789);\n assertThatSource(testee).generatesAllOf(LocalDate.ofEpochDay(7890789));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1070-1074"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.4168, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.3462, "class": 1.0, "tfidf": 0.054}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "12-17", "dependency_updated": "inserted", "score": 0.1392, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1154, "class": 0.0, "tfidf": 0.2294}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.0946, "method_coverage_gold": 5.5641, "line_coverage_gold": 5.668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4234_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingADateOfNegativeLong:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingADateOfNegativeLong", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingADateOfNegativeLong", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingADateOfNegativeLong() {\n try {\n Source testee = dates().withMilliSeconds(-234);\n fail(\"Created a date with a negative number of milliseconds\");\n } catch (IllegalArgumentException expected) {\n assertTrue(\"Expected exception message to relate to negative long argument\", expected.getMessage().indexOf(\"not an accepted number of milliseconds\") >= 0);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["899-912"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3526, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0952, "class": 1.0, "tfidf": 0.0317}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "9-14", "dependency_updated": "inserted", "score": 0.1273, "signal_scores": {"nc": 0.0, "lcs_u": 0.4375, "ed": 0.1429, "class": 0.0, "tfidf": 0.1128}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4236_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin() {\n try {\n Source testee = dates().withMilliSecondsBetween(352, 352);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["934-942"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3872, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0676, "class": 1.0, "tfidf": 0.0482}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "16-27", "dependency_updated": "inserted", "score": 0.1526, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1757, "class": 0.0, "tfidf": 0.1018}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3514, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4237_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MAX_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1016-1025"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3866, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0514}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "12-17", "dependency_updated": "inserted", "score": 0.2077, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1356}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4818, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4240_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero() {\n try {\n Source testee = dates().withMilliSecondsBetween(0, 5);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["954-962"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3881, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "16-27", "dependency_updated": "inserted", "score": 0.1546, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1733, "class": 0.0, "tfidf": 0.112}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.6892, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.8057, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4242_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MIN_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1005-1014"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3866, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0514}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "12-17", "dependency_updated": "inserted", "score": 0.2077, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1356}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4818, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4243_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount() {\n try {\n Source testee = localDates().withDaysBetween(LOCAL_DATE_MIN_EPOCH_DAY_COUNT - 1, LOCAL_DATE_MAX_EPOCH_DAY_COUNT + 1);\n fail(\"Created a Date where min long is less than zero!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1047-1057"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3948, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "19-31", "dependency_updated": "inserted", "score": 0.1584, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0954}}], "coverage_gold": 0.14285714285714285, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4245_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin() {\n try {\n Source testee = localDates().withDaysBetween(352, 352);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1037-1045"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3969, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1266, "class": 1.0, "tfidf": 0.0482}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "19-31", "dependency_updated": "inserted", "score": 0.1461, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1139, "class": 0.0, "tfidf": 0.0912}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.6892, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.8866, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4246_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin() {\n try {\n Source testee = localDates().withDaysBetween(342, 3);\n fail(\"Created a localDate where max long is less than min long!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1027-1035"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.397, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1299, "class": 1.0, "tfidf": 0.0463}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "19-31", "dependency_updated": "inserted", "score": 0.1554, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1169, "class": 0.0, "tfidf": 0.1288}}], "coverage_gold": 0.2857142857142857, "branch_coverage_gold": 1.6892, "method_coverage_gold": 0.9274, "line_coverage_gold": 0.9717, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4249_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MIN_EPOCH_DAY_COUNT - 1);\n fail(\"Created a localDate with an improper value\");\n } catch (IllegalArgumentException expected) {\n assertTrue(\"Expected exception message to relate to out of suitable range long argument\", expected.getMessage().indexOf(\"The long value representing the number of days from the epoch must be bounded\") >= 0);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["978-992"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3812, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0284}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "12-17", "dependency_updated": "inserted", "score": 0.1989, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.0984}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4250_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MAX_EPOCH_DAY_COUNT + 1);\n fail(\"Created a localDate with an improper value\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["994-1003"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3869, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "12-17", "dependency_updated": "inserted", "score": 0.2212, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1931}}], "coverage_gold": 0.25, "branch_coverage_gold": 1.0135, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4252_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateDateAtStartAndEndInclusive:()V", "class": "SourceDSLTest", "method": "shouldGenerateDateAtStartAndEndInclusive", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateDateAtStartAndEndInclusive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateDateAtStartAndEndInclusive() {\n Source testee = dates().withMilliSecondsBetween(3245352, 72938572398752l);\n assertThatSource(testee).generatesAllOf(new Date(3245352), new Date(72938572398752l));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["970-976"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.396, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.125, "class": 1.0, "tfidf": 0.0455}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "16-27", "dependency_updated": "inserted", "score": 0.1392, "signal_scores": {"nc": 0.0, "lcs_u": 0.3913, "ed": 0.15, "class": 0.0, "tfidf": 0.1931}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.0541, "method_coverage_gold": 5.7187, "line_coverage_gold": 5.9109, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4254_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero() {\n try {\n Source testee = dates().withMilliSecondsBetween(-5, 6);\n fail(\"Created a Date where min long is less than zero!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["944-952"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3878, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0685, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "16-27", "dependency_updated": "inserted", "score": 0.1662, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1781, "class": 0.0, "tfidf": 0.1579}}], "coverage_gold": 0.2, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4258_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount() {\n try {\n Source testee = localDates().withDaysBetween(LOCAL_DATE_MIN_EPOCH_DAY_COUNT, LOCAL_DATE_MAX_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1059-1068"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3955, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1149, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "19-31", "dependency_updated": "inserted", "score": 0.159, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1149, "class": 0.0, "tfidf": 0.0954}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.9676, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4260_quicktheories_QuickTheories-quicktheories-parent-0.26_0f04c50_7d9fd0d_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateDateMax:()V", "class": "SourceDSLTest", "method": "shouldGenerateDateMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateDateMax", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateDateMax() {\n Source testee = dates().withMilliSeconds(7890789);\n assertThatSource(testee).generatesAllOf(new Date(7890789));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["964-968"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3738, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1905, "class": 1.0, "tfidf": 0.0554}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "9-14", "dependency_updated": "inserted", "score": 0.1201, "signal_scores": {"nc": 0.0, "lcs_u": 0.3125, "ed": 0.0952, "class": 0.0, "tfidf": 0.2094}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.4189, "method_coverage_gold": 5.5641, "line_coverage_gold": 5.587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliSeconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__1b466c0_0f04c50__ToStringTest_cf09eb5f", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "1b466c0f7392417506d70ce003bfef98e79db948", "rev2": "0f04c5073c1d4af5da26007c3378ad7e8f69b433", "rev1_date": "2015-12-11T08:22:48Z", "rev2_date": "2015-12-11T10:39:33Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/1b466c0f7392417506d70ce003bfef98e79db948...0f04c5073c1d4af5da26007c3378ad7e8f69b433", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "4266_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayAsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayAsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayAsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayAsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(bigIntegers().ofBytes(5)).as(b -> b.toByteArray()).describedAs(a -> Arrays.toString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["150-161"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "61-66", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "68-73", "dependency_updated": "updated", "score": 0.1901, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 0.0, "tfidf": 0.0114}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1106, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 0.0, "tfidf": 0.0251}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0816, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0667, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.90625, "branch_coverage_gold": 19.6429, "method_coverage_gold": 24.4337, "line_coverage_gold": 25.4852, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/BigIntegersDSL.ofBytes:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.bigIntegers:()Lorg/quicktheories/quicktheories/generators/BigIntegersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4267_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k) -> new Integer[] { i, j, k }).describedAs(i -> i.toString(), j -> j.toString(), k -> k.toString(), a -> Arrays.deepToString(a)).check((i, j, k, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["242-257"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "110-120", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2577, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2419, "class": 0.0, "tfidf": 0.1758}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "73-79", "dependency_updated": "inserted", "score": 0.1328, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.1129, "class": 0.0, "tfidf": 0.0081}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1163, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0484, "class": 0.0, "tfidf": 0.0106}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 11.0714, "method_coverage_gold": 22.3301, "line_coverage_gold": 25.654, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4268_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k, l) -> new Integer[] { i, j, k, l }).describedAs(i -> i.toString(), j -> j.toString(), k -> k.toString(), l -> l.toString(), a -> Arrays.deepToString(a)).check((i, j, k, l, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["274-289"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "105-117", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "103-118", "dependency_updated": "updated", "score": 0.2713, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2459, "class": 0.0, "tfidf": 0.2309}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "79-88", "dependency_updated": "inserted", "score": 0.1326, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.1148, "class": 0.0, "tfidf": 0.0058}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1158, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0492, "class": 0.0, "tfidf": 0.0078}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 11.0714, "method_coverage_gold": 23.1392, "line_coverage_gold": 27.2574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4269_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k, l) -> new Integer[] { i, j, k, l }).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["259-272"], "old_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4));\n}", "new_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "86-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "86-94", "dependency_updated": "updated", "score": 0.1852, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0417, "class": 0.0, "tfidf": 0.0078}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1211, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.125, "class": 0.0, "tfidf": 0.018}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0775, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0417, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 11.0714, "method_coverage_gold": 21.8447, "line_coverage_gold": 25.0633, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4270_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayDeepToString:()V", "class": "ToStringTest", "method": "shouldPrintArrayDeepToString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayDeepToString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayDeepToString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofStrings(strings().ascii().ofLength(1)).withLength(1)).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new String[] { \"!\" }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["137-148"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x);\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1059, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1071, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0823, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 13.5714, "method_coverage_gold": 20.8738, "line_coverage_gold": 24.3882, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/StringsDSL.ascii:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4271_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).check((i, j) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-55"], "old_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2));\n}", "new_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, pair -> \"{\" + pair._1.toString() + \", \" + pair._2.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "68-73", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "68-74", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.0, "method_coverage_gold": 20.3883, "line_coverage_gold": 22.616, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4272_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFailingThreeCharactersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFailingThreeCharactersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFailingThreeCharactersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFailingThreeCharactersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-80"], "old_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "new_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple3 -> \"{\" + tuple3._1.toString() + \", \" + tuple3._2.toString() + \", \" + tuple3._3.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "128-134", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "130-138", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 18.932, "line_coverage_gold": 21.6034, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4273_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).as((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check(s -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"\\u0000\\u0000\\u0000\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-94"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1921, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0455, "class": 0.0, "tfidf": 0.0347}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1561, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0909, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 10.0, "method_coverage_gold": 18.932, "line_coverage_gold": 22.0253, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4274_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).as(l -> l).check(i -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"9223372036854775807\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-31"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "61-66", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "68-73", "dependency_updated": "updated", "score": 0.1854, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0541, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1355, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1081, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1192, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0811, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 13.9286, "method_coverage_gold": 17.9612, "line_coverage_gold": 20.7595, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4275_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k) -> new Integer[] { i, j, k }).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["227-240"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1857, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0408, "class": 0.0, "tfidf": 0.0107}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1213, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1224, "class": 0.0, "tfidf": 0.0206}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0773, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0408, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 11.0714, "method_coverage_gold": 21.0356, "line_coverage_gold": 23.7975, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4276_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).asWithPrecursor((i, j) -> i + j).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-68"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "116-130", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "115-130", "dependency_updated": "updated", "score": 0.2222, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1235, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0556, "class": 0.0, "tfidf": 0.0358}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.0, "method_coverage_gold": 21.3592, "line_coverage_gold": 24.4726, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4277_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArraysAsWithPrecursorToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArraysAsWithPrecursorToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArraysAsWithPrecursorToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArraysAsWithPrecursorToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofIntegers(integers().all()).withLengthBetween(1, 100)).asWithPrecursor(a -> Arrays.asList(a)).describedAs(a -> Arrays.deepToString(a), l -> l.toString()).check((a, l) -> integerListIsReducedByRemovingAnItem().test(l));\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-177"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "79-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "82-97", "dependency_updated": "updated", "score": 0.2401, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3409, "class": 0.0, "tfidf": 0.0317}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1242, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0682, "class": 0.0, "tfidf": 0.03}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "66-71", "dependency_updated": "inserted", "score": 0.1221, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1364, "class": 0.0, "tfidf": 0.0142}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1039, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0682, "class": 0.0, "tfidf": 0.019}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.3571, "method_coverage_gold": 22.6537, "line_coverage_gold": 26.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4278_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourFailingIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourFailingIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourFailingIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourFailingIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).check((i, j, k, l) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-122"], "old_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "new_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple4 -> \"{\" + tuple4._1.toString() + \", \" + tuple4._2.toString() + \", \" + tuple4._3.toString() + \", \" + tuple4._4.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "125-131", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "126-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.5, "method_coverage_gold": 22.3301, "line_coverage_gold": 25.2321, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4279_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourIntegersAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourIntegersAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).asWithPrecursor((i, j, k, l) -> (long) i + j + k + l).check((i, j, k, l, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-135"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "105-117", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "103-118", "dependency_updated": "updated", "score": 0.224, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2885, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1198, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0577, "class": 0.0, "tfidf": 0.0186}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.5, "method_coverage_gold": 24.2718, "line_coverage_gold": 28.0169, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4280_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsWithPrecursorStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsWithPrecursorStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).asWithPrecursor((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check((i, j, k, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000, \\u0000\\u0000\\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-110"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "110-120", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2596, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2632, "class": 0.0, "tfidf": 0.1691}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1576, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0702, "class": 0.0, "tfidf": 0.0207}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 21.0356, "line_coverage_gold": 24.135, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4281_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).as((i, j) -> new Person(i, j)).describedAs(p -> p.toUseToString()).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["179-195"], "old_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2));\n}", "new_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "98-104", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "99-106", "dependency_updated": "updated", "score": 0.1892, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0435, "class": 0.0, "tfidf": 0.0237}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1623, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.1739, "class": 0.0, "tfidf": 0.0225}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1166, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0652, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 18.5714, "method_coverage_gold": 23.9482, "line_coverage_gold": 28.0169, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4282_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).asWithPrecursor(l -> l).check((h, i) -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{9223372036854775807, 9223372036854775807}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-43"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "79-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "82-97", "dependency_updated": "updated", "score": 0.2259, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1308, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.08, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1224, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.06, "class": 0.0, "tfidf": 0.0284}}], "coverage_gold": 0.4444444444444444, "branch_coverage_gold": 13.9286, "method_coverage_gold": 17.7994, "line_coverage_gold": 21.6878, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4284_quicktheories_QuickTheories-quicktheories-parent-0.26_1b466c0_0f04c50_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).asWithPrecursor((i, j) -> new Person(i, j)).describedAs(s -> s.toString(), i -> i.toString(), p -> p.toUseToString()).check((i, s, p) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["197-214"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "116-130", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "115-130", "dependency_updated": "updated", "score": 0.2433, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2542, "class": 0.0, "tfidf": 0.1059}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1591, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0678, "class": 0.0, "tfidf": 0.0289}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.1534, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.1356, "class": 0.0, "tfidf": 0.0116}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.5714, "method_coverage_gold": 24.5955, "line_coverage_gold": 29.3671, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__399acfb_35210d4__ToStringTest_07bdb0fc", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "399acfb59faced453a187c9ae50965a54ccb58b7", "rev2": "35210d44c1d637e8a89923cd9d7dd79ac6c33361", "rev1_date": "2015-12-09T13:29:52Z", "rev2_date": "2015-12-09T15:56:37Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/399acfb59faced453a187c9ae50965a54ccb58b7...35210d44c1d637e8a89923cd9d7dd79ac6c33361", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "4191_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayAsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayAsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayAsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayAsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(bigIntegers().ofBytes(5)).as(b -> b.toByteArray()).describedAs(a -> Arrays.toString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["150-161"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "62-67", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "66-71", "dependency_updated": "updated", "score": 0.1901, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 0.0, "tfidf": 0.0114}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1106, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 0.0, "tfidf": 0.0251}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0816, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0667, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.90625, "branch_coverage_gold": 19.6429, "method_coverage_gold": 24.4337, "line_coverage_gold": 25.4852, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/BigIntegersDSL.ofBytes:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.bigIntegers:()Lorg/quicktheories/quicktheories/generators/BigIntegersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4192_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayDeepToString:()V", "class": "ToStringTest", "method": "shouldPrintArrayDeepToString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayDeepToString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayDeepToString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofStrings(strings().ascii().ofLength(1)).withLength(1)).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new String[] { \"!\" }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["137-148"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x);\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1059, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1071, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0823, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 13.5714, "method_coverage_gold": 20.8738, "line_coverage_gold": 24.3882, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/StringsDSL.ascii:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4193_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).check((i, j) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-55"], "old_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2));\n}", "new_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, pair -> \"{\" + pair._1.toString() + \", \" + pair._2.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "68-73", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "68-74", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.0, "method_coverage_gold": 20.3883, "line_coverage_gold": 22.616, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4194_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFailingThreeCharactersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFailingThreeCharactersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFailingThreeCharactersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFailingThreeCharactersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-80"], "old_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "new_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple3 -> \"{\" + tuple3._1.toString() + \", \" + tuple3._2.toString() + \", \" + tuple3._3.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "127-133", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "130-138", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 18.932, "line_coverage_gold": 21.6034, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4195_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).as((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check(s -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"\\u0000\\u0000\\u0000\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-94"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1921, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0455, "class": 0.0, "tfidf": 0.0347}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1561, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0909, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 10.0, "method_coverage_gold": 18.932, "line_coverage_gold": 22.0253, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4196_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).as(l -> l).check(i -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"9223372036854775807\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-31"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "62-67", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "66-71", "dependency_updated": "updated", "score": 0.1854, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0541, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1355, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1081, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1192, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0811, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 13.9286, "method_coverage_gold": 17.9612, "line_coverage_gold": 20.7595, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4197_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).asWithPrecursor((i, j) -> i + j).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-68"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "114-128", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "116-131", "dependency_updated": "updated", "score": 0.2222, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1235, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0556, "class": 0.0, "tfidf": 0.0358}}], "coverage_gold": 0.5, "branch_coverage_gold": 15.0, "method_coverage_gold": 21.3592, "line_coverage_gold": 24.4726, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4198_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourFailingIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourFailingIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourFailingIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourFailingIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).check((i, j, k, l) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-122"], "old_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "new_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple4 -> \"{\" + tuple4._1.toString() + \", \" + tuple4._2.toString() + \", \" + tuple4._3.toString() + \", \" + tuple4._4.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "123-129", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "127-135", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.5, "method_coverage_gold": 22.3301, "line_coverage_gold": 25.2321, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4199_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourIntegersAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourIntegersAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).asWithPrecursor((i, j, k, l) -> (long) i + j + k + l).check((i, j, k, l, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-135"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "103-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "104-119", "dependency_updated": "updated", "score": 0.224, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2885, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1198, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0577, "class": 0.0, "tfidf": 0.0186}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.5, "method_coverage_gold": 24.2718, "line_coverage_gold": 28.0169, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4200_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsWithPrecursorStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsWithPrecursorStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).asWithPrecursor((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check((i, j, k, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000, \\u0000\\u0000\\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-110"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "109-119", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2596, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2632, "class": 0.0, "tfidf": 0.1691}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1576, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0702, "class": 0.0, "tfidf": 0.0207}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 21.0356, "line_coverage_gold": 24.135, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4201_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_35210d4_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).asWithPrecursor(l -> l).check((h, i) -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{9223372036854775807, 9223372036854775807}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-43"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "77-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "81-96", "dependency_updated": "updated", "score": 0.2259, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1308, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.08, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1224, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.06, "class": 0.0, "tfidf": 0.0284}}], "coverage_gold": 0.4444444444444444, "branch_coverage_gold": 13.9286, "method_coverage_gold": 17.7994, "line_coverage_gold": 21.6878, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__399acfb_54e8d9c__ToStringTest_724989d5", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "399acfb59faced453a187c9ae50965a54ccb58b7", "rev2": "54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "rev1_date": "2015-12-09T13:29:52Z", "rev2_date": "2015-12-09T13:47:36Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/399acfb59faced453a187c9ae50965a54ccb58b7...54e8d9c82a7ff2e0d4fc4478b8b8241da0fa032c", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "3444_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_54e8d9c_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsExpected() {\n try {\n qt().forAll(longs().all()).as(l -> l).check(i -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"9223372036854775807\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-30"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "62-67", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "66-71", "dependency_updated": "updated", "score": 0.1871, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0645, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1389, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.129, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1218, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0968, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 13.9286, "method_coverage_gold": 17.3139, "line_coverage_gold": 20.541, "is_traceback": true, "commit_gap": {"count": 3, "skipped_commits": ["67432579f374e29dc8f5e104bdee99972ad12ec6", "b4184e7c0e54765fd2ea2be9dda7def115223d93", "bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__399acfb_b4184e7__ToStringTest_7040091e", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "399acfb59faced453a187c9ae50965a54ccb58b7", "rev2": "b4184e7c0e54765fd2ea2be9dda7def115223d93", "rev1_date": "2015-12-09T13:29:52Z", "rev2_date": "2015-12-09T13:29:52Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/399acfb59faced453a187c9ae50965a54ccb58b7...b4184e7c0e54765fd2ea2be9dda7def115223d93", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "4185_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_b4184e7_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k) -> new Integer[] { i, j, k }).withStringFormat(i -> i.toString(), j -> j.toString(), k -> k.toString(), a -> Arrays.deepToString(a)).check((i, j, k, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-139"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "109-119", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2577, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2419, "class": 0.0, "tfidf": 0.1758}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "73-79", "dependency_updated": "inserted", "score": 0.1388, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1613, "class": 0.0, "tfidf": 0.0081}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1163, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0484, "class": 0.0, "tfidf": 0.0106}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 11.0714, "method_coverage_gold": 22.3301, "line_coverage_gold": 25.6974, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4186_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_b4184e7_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k, l) -> new Integer[] { i, j, k, l }).withStringFormat(i -> i.toString(), j -> j.toString(), k -> k.toString(), l -> l.toString(), a -> Arrays.deepToString(a)).check((i, j, k, l, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["156-171"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "103-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "103-118", "dependency_updated": "updated", "score": 0.2713, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2459, "class": 0.0, "tfidf": 0.2309}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "79-88", "dependency_updated": "inserted", "score": 0.1497, "signal_scores": {"nc": 0.0, "lcs_u": 0.6875, "ed": 0.1639, "class": 0.0, "tfidf": 0.0058}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1158, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0492, "class": 0.0, "tfidf": 0.0078}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 11.0714, "method_coverage_gold": 23.1392, "line_coverage_gold": 27.3035, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4187_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_b4184e7_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k, l) -> new Integer[] { i, j, k, l }).withStringFormat(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["141-154"], "old_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4));\n}", "new_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "86-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "86-93", "dependency_updated": "updated", "score": 0.1852, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0417, "class": 0.0, "tfidf": 0.0078}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.131, "signal_scores": {"nc": 0.0, "lcs_u": 0.5625, "ed": 0.1667, "class": 0.0, "tfidf": 0.018}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0775, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0417, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 11.0714, "method_coverage_gold": 21.8447, "line_coverage_gold": 25.1057, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4188_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_b4184e7_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k) -> new Integer[] { i, j, k }).withStringFormat(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-122"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1857, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0408, "class": 0.0, "tfidf": 0.0107}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.131, "signal_scores": {"nc": 0.0, "lcs_u": 0.5625, "ed": 0.1633, "class": 0.0, "tfidf": 0.0206}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0773, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0408, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 11.0714, "method_coverage_gold": 21.0356, "line_coverage_gold": 23.8377, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4189_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_b4184e7_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArraysAsWithPrecursorToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArraysAsWithPrecursorToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArraysAsWithPrecursorToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArraysAsWithPrecursorToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofIntegers(integers().all()).withLengthBetween(1, 100)).asWithPrecursor(a -> Arrays.asList(a)).withStringFormat(a -> Arrays.deepToString(a), l -> l.toString()).check((a, l) -> integerListIsReducedByRemovingAnItem().test(l));\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-59"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "77-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "78-93", "dependency_updated": "updated", "score": 0.2401, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3409, "class": 0.0, "tfidf": 0.0317}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "65-70", "dependency_updated": "inserted", "score": 0.1436, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 0.0, "tfidf": 0.0142}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1242, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0682, "class": 0.0, "tfidf": 0.03}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1039, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0682, "class": 0.0, "tfidf": 0.019}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.3571, "method_coverage_gold": 22.6537, "line_coverage_gold": 26.6272, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["bbc64663c1194e1df96b62e44c3d4afa6238501f"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__399acfb_bbc6466__ToStringTest_16c16d4c", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "399acfb59faced453a187c9ae50965a54ccb58b7", "rev2": "bbc64663c1194e1df96b62e44c3d4afa6238501f", "rev1_date": "2015-12-09T13:29:52Z", "rev2_date": "2015-12-09T13:29:52Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/399acfb59faced453a187c9ae50965a54ccb58b7...bbc64663c1194e1df96b62e44c3d4afa6238501f", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "4134_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_bbc6466_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayAsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayAsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayAsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayAsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(bigIntegers().ofBytes(5)).as(b -> b.toByteArray()).withStringFormat(a -> Arrays.toString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-43"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "62-67", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "63-68", "dependency_updated": "updated", "score": 0.1901, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 0.0, "tfidf": 0.0114}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1106, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 0.0, "tfidf": 0.0251}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0816, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0667, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.90625, "branch_coverage_gold": 19.6429, "method_coverage_gold": 24.4337, "line_coverage_gold": 25.5283, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.bigIntegers:()Lorg/quicktheories/quicktheories/generators/BigIntegersDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/BigIntegersDSL.ofBytes:(I)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4135_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_bbc6466_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayDeepToString:()V", "class": "ToStringTest", "method": "shouldPrintArrayDeepToString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayDeepToString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayDeepToString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofStrings(strings().ascii().ofLength(1)).withLength(1)).withStringFormat(a -> Arrays.deepToString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new String[] { \"!\" }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-30"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x);\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1059, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1071, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0823, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 13.5714, "method_coverage_gold": 20.8738, "line_coverage_gold": 24.4294, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL.ascii:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4136_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_bbc6466_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArraysAsWithPrecursorToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArraysAsWithPrecursorToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArraysAsWithPrecursorToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArraysAsWithPrecursorToDeepString() {\n try {\n qt().forAll(arrays().ofIntegers(integers().all()).withLengthBetween(1, 100)).asWithPrecursor(a -> Arrays.asList(a)).withStringFormat(a -> Arrays.deepToString(a), l -> l.toString()).check((a, l) -> integerListIsReducedByRemovingAnItem().test(l));\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-58"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "77-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "78-93", "dependency_updated": "updated", "score": 0.2401, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3409, "class": 0.0, "tfidf": 0.032}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "65-70", "dependency_updated": "inserted", "score": 0.1436, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 0.0, "tfidf": 0.0143}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1242, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0682, "class": 0.0, "tfidf": 0.0303}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.104, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0682, "class": 0.0, "tfidf": 0.0192}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.0, "method_coverage_gold": 21.8447, "line_coverage_gold": 26.2891, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4137_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_bbc6466_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).as((i, j) -> new Person(i, j)).withStringFormat(p -> p.toUseToString()).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-76"], "old_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2));\n}", "new_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "98-104", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "99-106", "dependency_updated": "updated", "score": 0.1892, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0435, "class": 0.0, "tfidf": 0.0237}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1806, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.2609, "class": 0.0, "tfidf": 0.0225}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1166, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0652, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 18.5714, "method_coverage_gold": 23.9482, "line_coverage_gold": 28.0642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.withStringFormat:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4139_quicktheories_QuickTheories-quicktheories-parent-0.26_399acfb_bbc6466_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).asWithPrecursor((i, j) -> new Person(i, j)).withStringFormat(s -> s.toString(), i -> i.toString(), p -> p.toUseToString()).check((i, s, p) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["78-95"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "114-128", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "116-131", "dependency_updated": "updated", "score": 0.2433, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2542, "class": 0.0, "tfidf": 0.1059}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.1686, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.2034, "class": 0.0, "tfidf": 0.0116}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1591, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0678, "class": 0.0, "tfidf": 0.0289}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.5714, "method_coverage_gold": 24.5955, "line_coverage_gold": 29.4167, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.withStringFormat:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__86d40d4_d2f0891__XOrShiftPRNGTest_fa376d89", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "86d40d49813a642759d17fd7032c957ed12ee1f8", "rev2": "d2f0891344b7b8948ba834d3457a1dfd6d486851", "rev1_date": "2017-10-05T13:20:49Z", "rev2_date": "2017-10-05T15:53:23Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/86d40d49813a642759d17fd7032c957ed12ee1f8...d2f0891344b7b8948ba834d3457a1dfd6d486851", "test_file": "core/src/test/java/org/quicktheories/core/XOrShiftPRNGTest.java", "test_changes": [{"change_id": "4133_quicktheories_QuickTheories-quicktheories-parent-0.26_86d40d4_d2f0891_XOrShiftPRNGTest", "test_sign": "org/quicktheories/core/XOrShiftPRNGTest.errorsNicelyWhenNonSensicalRangeRequested:()V", "class": "XOrShiftPRNGTest", "method": "errorsNicelyWhenNonSensicalRangeRequested", "module": "core", "junit_selector": "org.quicktheories.core.XOrShiftPRNGTest#errorsNicelyWhenNonSensicalRangeRequested", "old_test_code": null, "new_test_code": "@Test\npublic void errorsNicelyWhenNonSensicalRangeRequested() {\n try {\n testee.nextLong(1, 0);\n fail();\n } catch (IllegalArgumentException ex) {\n assertThat(ex).hasMessageContaining(\"Invalid range 1 to 0\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-140"], "old_production_code": "@Override\npublic long nextLong(long startInclusive, long endInclusive) {\n if (longRangeIsSmallerThanMax(startInclusive, endInclusive)) {\n return nextLongWithinCheckedInterval(startInclusive, endInclusive);\n }\n return generateRandomLongWhereRangeGEQMax(startInclusive, endInclusive);\n}", "new_production_code": "@Override\npublic long nextLong(long startInclusive, long endInclusive) {\n if (endInclusive < startInclusive) {\n throw new IllegalArgumentException(String.format(\"Invalid range %d to %d\", startInclusive, endInclusive));\n }\n if (longRangeIsSmallerThanMax(startInclusive, endInclusive)) {\n return nextLongWithinCheckedInterval(startInclusive, endInclusive);\n }\n return generateRandomLongWhereRangeGEQMax(startInclusive, endInclusive);\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/XOrShiftPRNG.java", "focal_method_sign": "org/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "file_path_old": "core/src/main/java/org/quicktheories/core/XOrShiftPRNG.java", "line_nums_old": "33-42", "file_path_new": "core/src/main/java/org/quicktheories/core/XOrShiftPRNG.java", "line_nums_new": "33-46", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 0.813, "method_coverage_gold": 0.5254, "line_coverage_gold": 0.6993, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "change_type": "UPDATE", "file_path_old": "core/src/main/java/org/quicktheories/core/XOrShiftPRNG.java", "file_path_new": "core/src/main/java/org/quicktheories/core/XOrShiftPRNG.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__9c0e013_13bf2ae__GenTest_0acf9421", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "9c0e0134aa3f921918c8d09549e98388afa2bc0f", "rev2": "13bf2ae5655f8d4308d0d277d4af6f78b0f55995", "rev1_date": "2017-10-24T12:07:23Z", "rev2_date": "2017-10-24T12:50:44Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/9c0e0134aa3f921918c8d09549e98388afa2bc0f...13bf2ae5655f8d4308d0d277d4af6f78b0f55995", "test_file": "core/src/test/java/org/quicktheories/core/GenTest.java", "test_changes": [{"change_id": "4182_quicktheories_QuickTheories-quicktheories-parent-0.26_9c0e013_13bf2ae_GenTest", "test_sign": "org/quicktheories/core/GenTest.includesSomeOptionalsWhenPercentageIs1:()V", "class": "GenTest", "method": "includesSomeOptionalsWhenPercentageIs1", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#includesSomeOptionalsWhenPercentageIs1", "old_test_code": null, "new_test_code": "@Test\npublic void includesSomeOptionalsWhenPercentageIs1() {\n Gen> testee = Generate.constant(1).toOptionals(1);\n assertThatGenerator(testee).generatesAllOf(Optional.empty(), Optional.of(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["195-199"], "old_production_code": "", "new_production_code": "default Gen> toOptionals(int percentEmpty) {\n Mod> toOptional = (t, r) -> {\n boolean empty = r.next(Constraint.between(0, 100)) < percentEmpty;\n if (empty) {\n return Optional.empty();\n }\n return Optional.of(t);\n };\n return mutate(toOptional);\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "52-61", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.4, "method_coverage_gold": 5.3265, "line_coverage_gold": 7.2539, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/impl/GenAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "org/quicktheories/impl/GenAssert.assertThatGenerator:(Lorg/quicktheories/core/Gen;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4183_quicktheories_QuickTheories-quicktheories-parent-0.26_9c0e013_13bf2ae_GenTest", "test_sign": "org/quicktheories/core/GenTest.mapsToOnlyEmptyOptionalsWhenPercentageIs100:()V", "class": "GenTest", "method": "mapsToOnlyEmptyOptionalsWhenPercentageIs100", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#mapsToOnlyEmptyOptionalsWhenPercentageIs100", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unchecked\")\n@Test\npublic void mapsToOnlyEmptyOptionalsWhenPercentageIs100() {\n Gen> testee = Sequence.of(1, 2, 3).toOptionals(100);\n Stream> actual = generate(testee).limit(3);\n assertThat(actual).containsExactly(Optional.empty(), Optional.empty(), Optional.empty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["187-193"], "old_production_code": "", "new_production_code": "default Gen> toOptionals(int percentEmpty) {\n Mod> toOptional = (t, r) -> {\n boolean empty = r.next(Constraint.between(0, 100)) < percentEmpty;\n if (empty) {\n return Optional.empty();\n }\n return Optional.of(t);\n };\n return mutate(toOptional);\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "52-61", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.8, "method_coverage_gold": 1.89, "line_coverage_gold": 2.5043, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/core/Sequence.of:([Ljava/lang/Object;)Lorg/quicktheories/core/Sequence", "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "org/quicktheories/core/GenTest.generate:(Lorg/quicktheories/core/Gen;)Ljava/util/stream/Stream"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4184_quicktheories_QuickTheories-quicktheories-parent-0.26_9c0e013_13bf2ae_GenTest", "test_sign": "org/quicktheories/core/GenTest.mapsToOptionalsWithoutEmptyWhenPercentageIs0:()V", "class": "GenTest", "method": "mapsToOptionalsWithoutEmptyWhenPercentageIs0", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#mapsToOptionalsWithoutEmptyWhenPercentageIs0", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unchecked\")\n@Test\npublic void mapsToOptionalsWithoutEmptyWhenPercentageIs0() {\n Gen> testee = Sequence.of(1, 2, 3).toOptionals(0);\n Stream> actual = generate(testee).limit(3);\n assertThat(actual).containsExactly(Optional.of(1), Optional.of(2), Optional.of(3));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["178-184"], "old_production_code": "", "new_production_code": "default Gen> toOptionals(int percentEmpty) {\n Mod> toOptional = (t, r) -> {\n boolean empty = r.next(Constraint.between(0, 100)) < percentEmpty;\n if (empty) {\n return Optional.empty();\n }\n return Optional.of(t);\n };\n return mutate(toOptional);\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "52-61", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.8, "method_coverage_gold": 1.89, "line_coverage_gold": 2.5043, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/core/Sequence.of:([Ljava/lang/Object;)Lorg/quicktheories/core/Sequence", "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "org/quicktheories/core/GenTest.generate:(Lorg/quicktheories/core/Gen;)Ljava/util/stream/Stream"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.toOptionals:(I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__baa4a30_200f137__Airity2Test_1abc041d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "baa4a309c2ec77d784dd39c9e7dfbfe7d40249bb", "rev2": "200f137f85e819d28a6a241b5489b2f5bb3a89bf", "rev1_date": "2015-12-17T10:52:35Z", "rev2_date": "2015-12-17T13:33:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/baa4a309c2ec77d784dd39c9e7dfbfe7d40249bb...200f137f85e819d28a6a241b5489b2f5bb3a89bf", "test_file": "src/test/java/org/quicktheories/quicktheories/Airity2Test.java", "test_changes": [{"change_id": "4217_quicktheories_QuickTheories-quicktheories-parent-0.26_baa4a30_200f137_Airity2Test", "test_sign": "org/quicktheories/quicktheories/Airity2Test.shouldFalisyWhenAssertionsThrownAfterTypeConversion:()V", "class": "Airity2Test", "method": "shouldFalisyWhenAssertionsThrownAfterTypeConversion", "module": "", "junit_selector": "org.quicktheories.quicktheories.Airity2Test#shouldFalisyWhenAssertionsThrownAfterTypeConversion", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFalisyWhenAssertionsThrownAfterTypeConversion() {\n qt().forAll(arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7)).as((a, b) -> a.toString() + b).checkAssert(a -> assertEquals(\"11\", a));\n verifier.isFalsifiedByException();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["125-134"], "old_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "new_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(this.state, combine(), precursor -> this.assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "99-106", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "103-110", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.0676, "method_coverage_gold": 15.4688, "line_coverage_gold": 19.469, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/QTTester.isFalsifiedByException:()V", "org/quicktheories/quicktheories/Airity2Test.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArbitraryDSL.sequence:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.checkAssert:(Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__c886360_a6dafd8__ToStringTest_cf09eb5f", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "c886360fd92b69b6953d48d039a660c30d6eb9a7", "rev2": "a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "rev1_date": "2015-12-14T09:53:24Z", "rev2_date": "2015-12-14T10:33:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/c886360fd92b69b6953d48d039a660c30d6eb9a7...a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "2986_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayAsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayAsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayAsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayAsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(bigIntegers().ofBytes(5)).as(b -> b.toByteArray()).describedAs(a -> Arrays.toString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["150-161"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "61-66", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "68-73", "dependency_updated": "updated", "score": 0.1901, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 0.0, "tfidf": 0.0114}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1106, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1, "class": 0.0, "tfidf": 0.0251}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0816, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0667, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.90625, "branch_coverage_gold": 18.5811, "method_coverage_gold": 23.3385, "line_coverage_gold": 24.4534, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/BigIntegersDSL.ofBytes:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.bigIntegers:()Lorg/quicktheories/quicktheories/generators/BigIntegersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2997_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k) -> new Integer[] { i, j, k }).describedAs(i -> i.toString(), j -> j.toString(), k -> k.toString(), a -> Arrays.deepToString(a)).check((i, j, k, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["242-257"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "110-120", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2577, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2419, "class": 0.0, "tfidf": 0.1758}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "73-79", "dependency_updated": "inserted", "score": 0.1328, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.1129, "class": 0.0, "tfidf": 0.0081}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1163, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0484, "class": 0.0, "tfidf": 0.0106}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 10.473, "method_coverage_gold": 21.3292, "line_coverage_gold": 24.6154, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2998_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsWithPrecursorOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).asWithPrecursor((i, j, k, l) -> new Integer[] { i, j, k, l }).describedAs(i -> i.toString(), j -> j.toString(), k -> k.toString(), l -> l.toString(), a -> Arrays.deepToString(a)).check((i, j, k, l, a) -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"1, 1, 1, 1, \" + Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["274-289"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "105-117", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "103-118", "dependency_updated": "updated", "score": 0.2713, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2459, "class": 0.0, "tfidf": 0.2309}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "79-88", "dependency_updated": "inserted", "score": 0.1326, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.1148, "class": 0.0, "tfidf": 0.0058}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1158, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0492, "class": 0.0, "tfidf": 0.0078}}], "coverage_gold": 0.5454545454545454, "branch_coverage_gold": 10.473, "method_coverage_gold": 22.102, "line_coverage_gold": 26.1538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3004_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfFourElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfFourElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfFourElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfFourElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k, l) -> new Integer[] { i, j, k, l }).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["259-272"], "old_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4));\n}", "new_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "86-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "86-94", "dependency_updated": "updated", "score": 0.1852, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0417, "class": 0.0, "tfidf": 0.0078}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1211, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.125, "class": 0.0, "tfidf": 0.018}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0775, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0417, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 10.473, "method_coverage_gold": 20.8655, "line_coverage_gold": 24.0486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3008_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayDeepToString:()V", "class": "ToStringTest", "method": "shouldPrintArrayDeepToString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayDeepToString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayDeepToString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofStrings(strings().ascii().ofLength(1)).withLength(1)).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new String[] { \"!\" }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["137-148"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x);\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1059, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1071, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0823, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 12.8378, "method_coverage_gold": 19.9382, "line_coverage_gold": 23.4008, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/StringsDSL.ascii:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3010_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).check((i, j) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-55"], "old_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2));\n}", "new_production_code": "public void check(final BiPredicate property) {\n final TheoryRunner, Pair> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, pair -> \"{\" + pair._1.toString() + \", \" + pair._2.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "68-73", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "68-74", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 14.1892, "method_coverage_gold": 19.4745, "line_coverage_gold": 21.7004, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3014_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFailingThreeCharactersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFailingThreeCharactersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFailingThreeCharactersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFailingThreeCharactersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-80"], "old_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "new_production_code": "public void check(final Predicate3 property) {\n final TheoryRunner, Tuple3> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple3 -> \"{\" + tuple3._1.toString() + \", \" + tuple3._2.toString() + \", \" + tuple3._3.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "128-134", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "130-138", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.4595, "method_coverage_gold": 18.0835, "line_coverage_gold": 20.7287, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3015_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).as((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check(s -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"\\u0000\\u0000\\u0000\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-94"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1921, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0455, "class": 0.0, "tfidf": 0.0347}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1561, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0909, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 9.4595, "method_coverage_gold": 18.0835, "line_coverage_gold": 21.1336, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3018_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).as(l -> l).check(i -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"9223372036854775807\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-31"], "old_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping));\n}", "new_production_code": "public TheoryBuilder, N> as(Function mapping) {\n return new TheoryBuilder, N>(state, convertedSource(mapping), convertedPredicate(mapping), internalConversion(mapping), n -> n.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "61-66", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "68-73", "dependency_updated": "updated", "score": 0.1854, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0541, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1355, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1081, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1192, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0811, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 13.1757, "method_coverage_gold": 17.1561, "line_coverage_gold": 19.919, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.as:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3020_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArrayFromAsOfThreeElementsToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArrayFromAsOfThreeElementsToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArrayFromAsOfThreeElementsToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArrayFromAsOfThreeElementsToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(integers().allPositive(), integers().allPositive(), integers().allPositive()).as((i, j, k) -> new Integer[] { i, j, k }).describedAs(a -> Arrays.deepToString(a)).check(i -> false);\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 1, 1, 1 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["227-240"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3));\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-99", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "92-100", "dependency_updated": "updated", "score": 0.1857, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0408, "class": 0.0, "tfidf": 0.0107}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1213, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1224, "class": 0.0, "tfidf": 0.0206}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.0773, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0408, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4166666666666667, "branch_coverage_gold": 10.473, "method_coverage_gold": 20.0927, "line_coverage_gold": 22.834, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3021_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintTwoIntegersAsWithPrecursorIntegerAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().allPositive()).asWithPrecursor((i, j) -> i + j).check((i, j, k) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 1, 1}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-68"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "116-130", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "115-130", "dependency_updated": "updated", "score": 0.2222, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2778, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1235, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0556, "class": 0.0, "tfidf": 0.0358}}], "coverage_gold": 0.5, "branch_coverage_gold": 14.1892, "method_coverage_gold": 20.4019, "line_coverage_gold": 23.4818, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.allPositive:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3022_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintArraysAsWithPrecursorToDeepString:()V", "class": "ToStringTest", "method": "shouldPrintArraysAsWithPrecursorToDeepString", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintArraysAsWithPrecursorToDeepString", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintArraysAsWithPrecursorToDeepString() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofIntegers(integers().all()).withLengthBetween(1, 100)).asWithPrecursor(a -> Arrays.asList(a)).describedAs(a -> Arrays.deepToString(a), l -> l.toString()).check((a, l) -> integerListIsReducedByRemovingAnItem().test(l));\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new Integer[] { 0 }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["163-177"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "79-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "82-97", "dependency_updated": "updated", "score": 0.2401, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3409, "class": 0.0, "tfidf": 0.0317}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1242, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0682, "class": 0.0, "tfidf": 0.03}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "66-71", "dependency_updated": "inserted", "score": 0.1221, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1364, "class": 0.0, "tfidf": 0.0142}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1039, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0682, "class": 0.0, "tfidf": 0.019}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.527, "method_coverage_gold": 21.6383, "line_coverage_gold": 25.587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3025_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourFailingIntegersAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourFailingIntegersAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourFailingIntegersAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourFailingIntegersAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).check((i, j, k, l) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-122"], "old_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x);\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "new_production_code": "public void check(final Predicate4 property) {\n final TheoryRunner, Tuple4> qc = new TheoryRunner<>(this.state.get(), combine(), convertPredicate(), x -> x, tuple4 -> \"{\" + tuple4._1.toString() + \", \" + tuple4._2.toString() + \", \" + tuple4._3.toString() + \", \" + tuple4._4.toString() + \"}\");\n qc.check(x -> property.test(x._1, x._2, x._3, x._4));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "125-131", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "126-134", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.5541, "method_coverage_gold": 21.3292, "line_coverage_gold": 24.2105, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3026_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintFourIntegersAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintFourIntegersAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintFourIntegersAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(integers().all(), integers().all(), integers().all(), integers().all()).asWithPrecursor((i, j, k, l) -> (long) i + j + k + l).check((i, j, k, l, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{0, 0, 0, 0, 0}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-135"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions);\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "105-117", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "103-118", "dependency_updated": "updated", "score": 0.224, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2885, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "35-42", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "48-55", "dependency_updated": "updated", "score": 0.1198, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0577, "class": 0.0, "tfidf": 0.0186}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.5541, "method_coverage_gold": 23.1839, "line_coverage_gold": 26.8826, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3027_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintThreeCharactersAsWithPrecursorStringAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintThreeCharactersAsWithPrecursorStringAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintThreeCharactersAsWithPrecursorStringAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(characters().ascii(), characters().ascii(), characters().ascii()).asWithPrecursor((i, j, k) -> Character.toString(i) + Character.toString(j) + Character.toString(k)).check((i, j, k, s) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{\\u0000, \\u0000, \\u0000, \\u0000\\u0000\\u0000}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-110"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions);\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "110-120", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "110-122", "dependency_updated": "updated", "score": 0.2596, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2632, "class": 0.0, "tfidf": 0.1691}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "34-40", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "44-50", "dependency_updated": "updated", "score": 0.1576, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0702, "class": 0.0, "tfidf": 0.0207}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.4595, "method_coverage_gold": 20.0927, "line_coverage_gold": 23.1579, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3028_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).as((i, j) -> new Person(i, j)).describedAs(p -> p.toUseToString()).check(i -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["179-195"], "old_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2));\n}", "new_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "98-104", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "99-106", "dependency_updated": "updated", "score": 0.1892, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0435, "class": 0.0, "tfidf": 0.0237}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "67-71", "dependency_updated": "inserted", "score": 0.1623, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.1739, "class": 0.0, "tfidf": 0.0225}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_old": "43-48", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "line_nums_new": "46-51", "dependency_updated": "updated", "score": 0.1166, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0652, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 17.5676, "method_coverage_gold": 22.8748, "line_coverage_gold": 26.8826, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.describedAs:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/MappingTheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3031_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintSingleLongAsWithPrecursorLongAsExpected:()V", "class": "ToStringTest", "method": "shouldPrintSingleLongAsWithPrecursorLongAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintSingleLongAsWithPrecursorLongAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintSingleLongAsWithPrecursorLongAsExpected() {\n try {\n qt().withFixedSeed(5).forAll(longs().all()).asWithPrecursor(l -> l).check((h, i) -> i < i + 1);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"{9223372036854775807, 9223372036854775807}\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-43"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions);\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "79-93", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "82-97", "dependency_updated": "updated", "score": 0.2259, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-90", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-91", "dependency_updated": "updated", "score": 0.1308, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.08, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "40-45", "dependency_updated": "updated", "score": 0.1224, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.06, "class": 0.0, "tfidf": 0.0284}}], "coverage_gold": 0.4444444444444444, "branch_coverage_gold": 13.1757, "method_coverage_gold": 17.0015, "line_coverage_gold": 20.8097, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/LongsDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.longs:()Lorg/quicktheories/quicktheories/generators/LongsDSL", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3035_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson:()V", "class": "ToStringTest", "method": "shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson", "old_test_code": null, "new_test_code": "@Test\npublic void shouldUseCustomToStringForStringAndIntAsWithPrecursorPerson() {\n try {\n qt().withFixedSeed(5).forAll(strings().basicLatinAlphabet().ofLengthBetween(3, 12), integers().between(0, 140)).assuming((s, i) -> s.codePoints().allMatch(j -> Character.isLetter(j))).asWithPrecursor((i, j) -> new Person(i, j)).describedAs(s -> s.toString(), i -> i.toString(), p -> p.toUseToString()).check((i, s, p) -> false);\n throw (new AssertionError(\"Test didn't fail\"));\n } catch (AssertionError error) {\n assertThat(error).hasMessageContaining(\"Name:\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["197-214"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions);\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "116-130", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "115-130", "dependency_updated": "updated", "score": 0.2433, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2542, "class": 0.0, "tfidf": 0.1059}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "35-41", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "42-47", "dependency_updated": "updated", "score": 0.1591, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0678, "class": 0.0, "tfidf": 0.0289}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "69-75", "dependency_updated": "inserted", "score": 0.1534, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.1356, "class": 0.0, "tfidf": 0.0116}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.5676, "method_coverage_gold": 23.493, "line_coverage_gold": 28.1781, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/IntegersDSL.between:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/StringsDSL.basicLatinAlphabet:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder2.assuming:(Ljava/util/function/BiPredicate;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/generators/SourceDSL.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.describedAs:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__c886360_a6dafd8__DatesTest_0c685e6e", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "c886360fd92b69b6953d48d039a660c30d6eb9a7", "rev2": "a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "rev1_date": "2015-12-14T09:53:24Z", "rev2_date": "2015-12-14T10:33:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/c886360fd92b69b6953d48d039a660c30d6eb9a7...a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/DatesTest.java", "test_changes": [{"change_id": "3001_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_DatesTest", "test_sign": "org/quicktheories/quicktheories/generators/DatesTest.shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues:()V", "class": "DatesTest", "method": "shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.DatesTest#shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpochWhenMilliSecondsBetweenTwoValues() {\n Source testee = Dates.withMilliSecondsBetween(0, 8687689756l);\n assertThatSource(testee).cannotShrink(new Date(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "static Source withMilliSecondsBetween(long milliSecondsFromEpochStartInclusive, long milliSecondsFromEpochEndInclusive) {\n return Longs.range(milliSecondsFromEpochStartInclusive, milliSecondsFromEpochEndInclusive).as(l -> new Date(l), d -> d.getTime());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "79-85", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3009_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_DatesTest", "test_sign": "org/quicktheories/quicktheories/generators/DatesTest.shouldShrinkBoundedDateByOneWhenWithinRemainingCycles:()V", "class": "DatesTest", "method": "shouldShrinkBoundedDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.DatesTest#shouldShrinkBoundedDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkBoundedDateByOneWhenWithinRemainingCycles() {\n Source testee = Dates.withMilliSecondsBetween(0, 40);\n assertThatSource(testee).shrinksValueTo(new Date(7), new Date(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "static Source withMilliSecondsBetween(long milliSecondsFromEpochStartInclusive, long milliSecondsFromEpochEndInclusive) {\n return Longs.range(milliSecondsFromEpochStartInclusive, milliSecondsFromEpochEndInclusive).as(l -> new Date(l), d -> d.getTime());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "79-85", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.864, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL$Dates.withMilliSecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__c886360_a6dafd8__LocalDatesTest_8605bc38", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "c886360fd92b69b6953d48d039a660c30d6eb9a7", "rev2": "a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "rev1_date": "2015-12-14T09:53:24Z", "rev2_date": "2015-12-14T10:33:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/c886360fd92b69b6953d48d039a660c30d6eb9a7...a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/LocalDatesTest.java", "test_changes": [{"change_id": "2985_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles:()V", "class": "LocalDatesTest", "method": "shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkBoundedLocalDateByOneWhenWithinRemainingCycles() {\n Source testee = LocalDates.withDaysBetween(-30, -2);\n assertThatSource(testee).shrinksValueTo(LocalDate.ofEpochDay(-6), LocalDate.ofEpochDay(-5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-39"], "old_production_code": "", "new_production_code": "static Source withDaysBetween(long daysFromEpochStartInclusive, long daysFromEpochEndInclusive) {\n return Longs.range(daysFromEpochStartInclusive, daysFromEpochEndInclusive).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "107-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.4054, "method_coverage_gold": 4.1731, "line_coverage_gold": 4.0486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2988_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldShrinkLocalDateByOneWhenWithinRemainingCycles:()V", "class": "LocalDatesTest", "method": "shouldShrinkLocalDateByOneWhenWithinRemainingCycles", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldShrinkLocalDateByOneWhenWithinRemainingCycles", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkLocalDateByOneWhenWithinRemainingCycles() {\n Source testee = LocalDates.withDays(30);\n assertThatSource(testee).shrinksValueTo(LocalDate.ofEpochDay(6), LocalDate.ofEpochDay(5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-32"], "old_production_code": "", "new_production_code": "static Source withDays(long daysFromEpoch) {\n if (daysFromEpoch < 0) {\n return Longs.range(daysFromEpoch, 0).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n }\n return Longs.range(0, daysFromEpoch).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "98-105", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 3.864, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2996_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldNotShrinkEpoch:()V", "class": "LocalDatesTest", "method": "shouldNotShrinkEpoch", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldNotShrinkEpoch", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpoch() {\n Source testee = LocalDates.withDays(70978);\n assertThatSource(testee).cannotShrink(LocalDate.ofEpochDay(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "static Source withDays(long daysFromEpoch) {\n if (daysFromEpoch < 0) {\n return Longs.range(daysFromEpoch, 0).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n }\n return Longs.range(0, daysFromEpoch).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "98-105", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3030_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_LocalDatesTest", "test_sign": "org/quicktheories/quicktheories/generators/LocalDatesTest.shouldNotShrinkEpochWhenDaysAreBetweenTwoValues:()V", "class": "LocalDatesTest", "method": "shouldNotShrinkEpochWhenDaysAreBetweenTwoValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.LocalDatesTest#shouldNotShrinkEpochWhenDaysAreBetweenTwoValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkEpochWhenDaysAreBetweenTwoValues() {\n Source testee = LocalDates.withDaysBetween(-324235, 70978);\n assertThatSource(testee).cannotShrink(LocalDate.ofEpochDay(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "static Source withDaysBetween(long daysFromEpochStartInclusive, long daysFromEpochEndInclusive) {\n return Longs.range(daysFromEpochStartInclusive, daysFromEpochEndInclusive).as(l -> LocalDate.ofEpochDay(l), d -> d.toEpochDay());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "107-112", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.0405, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.5628, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL$LocalDates.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__c886360_a6dafd8__SourceDSLTest_303a607b", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "c886360fd92b69b6953d48d039a660c30d6eb9a7", "rev2": "a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "rev1_date": "2015-12-14T09:53:24Z", "rev2_date": "2015-12-14T10:33:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/c886360fd92b69b6953d48d039a660c30d6eb9a7...a6dafd8381f773e59bacf69d4e23cf7f97f9918b", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/SourceDSLTest.java", "test_changes": [{"change_id": "2984_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingADateWithLongOfZero:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingADateWithLongOfZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingADateWithLongOfZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingADateWithLongOfZero() {\n try {\n Source testee = dates().withMilliseconds(0);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["914-922"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3565, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0889, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "24-29", "dependency_updated": "inserted", "score": 0.1326, "signal_scores": {"nc": 0.0, "lcs_u": 0.4375, "ed": 0.1333, "class": 0.0, "tfidf": 0.142}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3514, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4008, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2987_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateLocalDateAtStartAndEndInclusive:()V", "class": "SourceDSLTest", "method": "shouldGenerateLocalDateAtStartAndEndInclusive", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateLocalDateAtStartAndEndInclusive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateLocalDateAtStartAndEndInclusive() {\n Source testee = localDates().withDaysBetween(3245352, 729385723);\n assertThatSource(testee).generatesAllOf(LocalDate.ofEpochDay(3245352), LocalDate.ofEpochDay(729385723));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1076-1081"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.4113, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.0425}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "53-65", "dependency_updated": "inserted", "score": 0.1715, "signal_scores": {"nc": 0.0, "lcs_u": 0.5333, "ed": 0.1556, "class": 0.0, "tfidf": 0.2198}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.3919, "method_coverage_gold": 5.7187, "line_coverage_gold": 6.0729, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2989_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxLessThanMin() {\n try {\n Source testee = dates().withMillisecondsBetween(342, 3);\n fail(\"Created a Date where max long is less than min long!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["924-932"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.387, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0694, "class": 1.0, "tfidf": 0.0463}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "47-58", "dependency_updated": "inserted", "score": 0.1633, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1806, "class": 0.0, "tfidf": 0.1439}}], "coverage_gold": 0.4, "branch_coverage_gold": 1.3514, "method_coverage_gold": 0.9274, "line_coverage_gold": 0.9717, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2990_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateLocalDateMax:()V", "class": "SourceDSLTest", "method": "shouldGenerateLocalDateMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateLocalDateMax", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateLocalDateMax() {\n Source testee = localDates().withDays(7890789);\n assertThatSource(testee).generatesAllOf(LocalDate.ofEpochDay(7890789));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1070-1074"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.4168, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.3462, "class": 1.0, "tfidf": 0.054}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "28-33", "dependency_updated": "inserted", "score": 0.1392, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1154, "class": 0.0, "tfidf": 0.2294}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.0946, "method_coverage_gold": 5.5641, "line_coverage_gold": 5.668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2992_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingADateOfNegativeLong:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingADateOfNegativeLong", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingADateOfNegativeLong", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingADateOfNegativeLong() {\n try {\n Source testee = dates().withMilliseconds(-234);\n fail(\"Created a date with a negative number of milliseconds\");\n } catch (IllegalArgumentException expected) {\n assertTrue(\"Expected exception message to relate to negative long argument\", expected.getMessage().indexOf(\"not an accepted number of milliseconds\") >= 0);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["899-912"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3526, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0952, "class": 1.0, "tfidf": 0.0317}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "24-29", "dependency_updated": "inserted", "score": 0.1273, "signal_scores": {"nc": 0.0, "lcs_u": 0.4375, "ed": 0.1429, "class": 0.0, "tfidf": 0.1128}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2994_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMaxEqualToMin() {\n try {\n Source testee = dates().withMillisecondsBetween(352, 352);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["934-942"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3872, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0676, "class": 1.0, "tfidf": 0.0482}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "47-58", "dependency_updated": "inserted", "score": 0.1526, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1757, "class": 0.0, "tfidf": 0.1018}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3514, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.7247, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "2995_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingALocalDateAtMaxEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MAX_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1016-1025"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3866, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0514}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "28-33", "dependency_updated": "inserted", "score": 0.2077, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1356}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4818, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3000_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToZero() {\n try {\n Source testee = dates().withMillisecondsBetween(0, 5);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["954-962"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3881, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0667, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "47-58", "dependency_updated": "inserted", "score": 0.1546, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1733, "class": 0.0, "tfidf": 0.112}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.6892, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.8057, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3002_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingALocalDateAtMinEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MIN_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable input!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1005-1014"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3866, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0514}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "28-33", "dependency_updated": "inserted", "score": 0.2077, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1356}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.2457, "line_coverage_gold": 3.4818, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3003_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMinLessThanMinEpochDayCount() {\n try {\n Source testee = localDates().withDaysBetween(LOCAL_DATE_MIN_EPOCH_DAY_COUNT - 1, LOCAL_DATE_MAX_EPOCH_DAY_COUNT + 1);\n fail(\"Created a Date where min long is less than zero!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1047-1057"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3948, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "53-65", "dependency_updated": "inserted", "score": 0.1584, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0954}}], "coverage_gold": 0.14285714285714285, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3006_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxEqualToMin() {\n try {\n Source testee = localDates().withDaysBetween(352, 352);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1037-1045"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3969, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1266, "class": 1.0, "tfidf": 0.0482}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "53-65", "dependency_updated": "inserted", "score": 0.1461, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1139, "class": 0.0, "tfidf": 0.0912}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.6892, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.8866, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3007_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForLocalDatesWithMaxLessThanMin() {\n try {\n Source testee = localDates().withDaysBetween(342, 3);\n fail(\"Created a localDate where max long is less than min long!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1027-1035"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.397, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1299, "class": 1.0, "tfidf": 0.0463}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "53-65", "dependency_updated": "inserted", "score": 0.1554, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1169, "class": 0.0, "tfidf": 0.1288}}], "coverage_gold": 0.2857142857142857, "branch_coverage_gold": 1.6892, "method_coverage_gold": 0.9274, "line_coverage_gold": 0.9717, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3012_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingALocalDateBelowMinEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MIN_EPOCH_DAY_COUNT - 1);\n fail(\"Created a localDate with an improper value\");\n } catch (IllegalArgumentException expected) {\n assertTrue(\"Expected exception message to relate to out of suitable range long argument\", expected.getMessage().indexOf(\"The long value representing the number of days from the epoch must be bounded\") >= 0);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["978-992"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3812, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0284}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "28-33", "dependency_updated": "inserted", "score": 0.1989, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.0984}}], "coverage_gold": 0.25, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3013_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingALocalDateAboveMaxEpochDayCount() {\n try {\n Source testee = localDates().withDays(LOCAL_DATE_MAX_EPOCH_DAY_COUNT + 1);\n fail(\"Created a localDate with an improper value\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["994-1003"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3869, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1667, "class": 1.0, "tfidf": 0.0527}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "28-33", "dependency_updated": "inserted", "score": 0.2212, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1296, "class": 0.0, "tfidf": 0.1931}}], "coverage_gold": 0.25, "branch_coverage_gold": 1.0135, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDays:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3017_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateDateAtStartAndEndInclusive:()V", "class": "SourceDSLTest", "method": "shouldGenerateDateAtStartAndEndInclusive", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateDateAtStartAndEndInclusive", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateDateAtStartAndEndInclusive() {\n Source testee = dates().withMillisecondsBetween(3245352, 72938572398752l);\n assertThatSource(testee).generatesAllOf(new Date(3245352), new Date(72938572398752l));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["970-976"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.396, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.125, "class": 1.0, "tfidf": 0.0455}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "47-58", "dependency_updated": "inserted", "score": 0.1392, "signal_scores": {"nc": 0.0, "lcs_u": 0.3913, "ed": 0.15, "class": 0.0, "tfidf": 0.1931}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.0541, "method_coverage_gold": 5.7187, "line_coverage_gold": 5.9109, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3023_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero:()V", "class": "SourceDSLTest", "method": "shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinLessThanZero() {\n try {\n Source testee = dates().withMillisecondsBetween(-5, 6);\n fail(\"Created a Date where min long is less than zero!\");\n } catch (IllegalArgumentException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["944-952"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3878, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0685, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "47-58", "dependency_updated": "inserted", "score": 0.1662, "signal_scores": {"nc": 0.0, "lcs_u": 0.5652, "ed": 0.1781, "class": 0.0, "tfidf": 0.1579}}], "coverage_gold": 0.2, "branch_coverage_gold": 0.6757, "method_coverage_gold": 0.6182, "line_coverage_gold": 0.5668, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMillisecondsBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3033_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount:()V", "class": "SourceDSLTest", "method": "shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount", "old_test_code": null, "new_test_code": "@SuppressWarnings(\"unused\")\n@Test\npublic void shouldNotCatchWhenCreatingAnInclusiveLongIntervalForDatesWithMinEqualToMinEpochDayCount() {\n try {\n Source testee = localDates().withDaysBetween(LOCAL_DATE_MIN_EPOCH_DAY_COUNT, LOCAL_DATE_MAX_EPOCH_DAY_COUNT);\n } catch (IllegalArgumentException expected) {\n fail(\"Threw an exception for an acceptable interval!\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1059-1068"], "old_production_code": "", "new_production_code": "public static LocalDatesDSL localDates() {\n return new LocalDatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "53-55", "dependency_updated": "inserted", "score": 0.3955, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1149, "class": 1.0, "tfidf": 0.0503}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "line_nums_new": "53-65", "dependency_updated": "inserted", "score": 0.159, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1149, "class": 0.0, "tfidf": 0.0954}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 3.4003, "line_coverage_gold": 3.9676, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.localDates:()Lorg/quicktheories/quicktheories/generators/LocalDatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/LocalDatesDSL.withDaysBetween:(JJ)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/LocalDatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3036_quicktheories_QuickTheories-quicktheories-parent-0.26_c886360_a6dafd8_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateDateMax:()V", "class": "SourceDSLTest", "method": "shouldGenerateDateMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateDateMax", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateDateMax() {\n Source testee = dates().withMilliseconds(7890789);\n assertThatSource(testee).generatesAllOf(new Date(7890789));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["964-968"], "old_production_code": "", "new_production_code": "public static DatesDSL dates() {\n return new DatesDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "49-51", "dependency_updated": "inserted", "score": 0.3738, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1905, "class": 1.0, "tfidf": 0.0554}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "24-29", "dependency_updated": "inserted", "score": 0.1201, "signal_scores": {"nc": 0.0, "lcs_u": 0.3125, "ed": 0.0952, "class": 0.0, "tfidf": 0.2094}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.4189, "method_coverage_gold": 5.5641, "line_coverage_gold": 5.587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__cb5ad1b_9c0e013__GenTest_768073d2", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "cb5ad1b5ba9e4dc9d851f41bba706953440117ca", "rev2": "9c0e0134aa3f921918c8d09549e98388afa2bc0f", "rev1_date": "2017-10-24T10:46:56Z", "rev2_date": "2017-10-24T12:07:23Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/cb5ad1b5ba9e4dc9d851f41bba706953440117ca...9c0e0134aa3f921918c8d09549e98388afa2bc0f", "test_file": "core/src/test/java/org/quicktheories/core/GenTest.java", "test_changes": [{"change_id": "3463_quicktheories_QuickTheories-quicktheories-parent-0.26_cb5ad1b_9c0e013_GenTest", "test_sign": "org/quicktheories/core/GenTest.flatMapsContents:()V", "class": "GenTest", "method": "flatMapsContents", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#flatMapsContents", "old_test_code": null, "new_test_code": "@Test\npublic void flatMapsContents() {\n Gen testee = Generate.pick(Arrays.asList(1, 2)).flatMap(i -> Generate.range(0, i));\n assertThatGenerator(testee).generatesAllOf(0, 1, 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-103"], "old_production_code": "", "new_production_code": "default Gen flatMap(Function> mapper) {\n return in -> mapper.apply(generate(in)).generate(in);\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.flatMap:(Ljava/util/function/Function;)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.flatMap:(Ljava/util/function/Function;)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "72-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.7561, "method_coverage_gold": 5.8621, "line_coverage_gold": 7.4653, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/impl/GenAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/core/Gen.flatMap:(Ljava/util/function/Function;)Lorg/quicktheories/core/Gen", "org/quicktheories/generators/Generate.pick:(Ljava/util/List;)Lorg/quicktheories/core/Gen", "org/quicktheories/impl/GenAssert.assertThatGenerator:(Lorg/quicktheories/core/Gen;)Lorg/quicktheories/impl/GenAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.flatMap:(Ljava/util/function/Function;)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__XOrShiftPRNGTest_16024d9d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/core/XOrShiftPRNGTest.java", "test_changes": [{"change_id": "3594_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_XOrShiftPRNGTest", "test_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNGTest.shouldGenerateFromLowerLimit:()V", "class": "XOrShiftPRNGTest", "method": "shouldGenerateFromLowerLimit", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.XOrShiftPRNGTest#shouldGenerateFromLowerLimit", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateFromLowerLimit() {\n XOrShiftPRNG testee = new XOrShiftPRNG(0);\n Set generated = new HashSet<>();\n for (int i = 0; i != 10; i++) {\n generated.add(testee.nextLong(Long.MIN_VALUE, Long.MIN_VALUE + 1));\n }\n assertThat(generated).contains(Long.MIN_VALUE);\n assertThat(generated).contains(Long.MIN_VALUE + 1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-106"], "old_production_code": "", "new_production_code": "@Override\npublic long nextLong(long startInclusive, long endInclusive) {\n if (startInclusive == Long.MIN_VALUE && endInclusive == Long.MAX_VALUE) {\n return nextLong();\n }\n final long temp = nextLong();\n final long temp2 = temp % ((endInclusive - startInclusive) + 1);\n if (temp2 < 0) {\n long t = temp2 + endInclusive + 1;\n return t;\n }\n long t = (temp2 + startInclusive);\n return t;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "focal_method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "line_nums_new": "33-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 2.7273, "method_coverage_gold": 0.7233, "line_coverage_gold": 1.7148, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3607_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_XOrShiftPRNGTest", "test_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNGTest.shouldGenerateUpToLongMax:()V", "class": "XOrShiftPRNGTest", "method": "shouldGenerateUpToLongMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.XOrShiftPRNGTest#shouldGenerateUpToLongMax", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateUpToLongMax() {\n XOrShiftPRNG testee = new XOrShiftPRNG(0);\n long actual = testee.nextLong(Long.MAX_VALUE, Long.MAX_VALUE);\n assertThat(actual).isEqualTo(Long.MAX_VALUE);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-94"], "old_production_code": "", "new_production_code": "@Override\npublic long nextLong(long startInclusive, long endInclusive) {\n if (startInclusive == Long.MIN_VALUE && endInclusive == Long.MAX_VALUE) {\n return nextLong();\n }\n final long temp = nextLong();\n final long temp2 = temp % ((endInclusive - startInclusive) + 1);\n if (temp2 < 0) {\n long t = temp2 + endInclusive + 1;\n return t;\n }\n long t = (temp2 + startInclusive);\n return t;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "focal_method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "line_nums_new": "33-48", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 1.8182, "method_coverage_gold": 0.7233, "line_coverage_gold": 1.5343, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/core/XOrShiftPRNG.nextLong:(JJ)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/XOrShiftPRNG.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__ArraysDSLTest_1eb63004", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/dogfood/ArraysDSLTest.java", "test_changes": [{"change_id": "3528_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.boundedLengthClassArraysHaveBoundedLength:()V", "class": "ArraysDSLTest", "method": "boundedLengthClassArraysHaveBoundedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#boundedLengthClassArraysHaveBoundedLength", "old_test_code": null, "new_test_code": "@Test\npublic void boundedLengthClassArraysHaveBoundedLength() {\n qt().forAll(arrays().ofClass(dates().withMilliseconds(100), Date.class).withLengthBetween(1, 10)).check(is -> is.length >= 1 && is.length <= 10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-50"], "old_production_code": "public ArrayGeneratorBuilder ofClass(Source source, Class c) {\n return new ArrayGeneratorBuilder(source, c);\n}", "new_production_code": "public ArrayGeneratorBuilder ofClass(Gen source, Class c) {\n return new ArrayGeneratorBuilder(source, c);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "71-74", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "71-74", "dependency_updated": "updated", "score": 0.3736, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1463, "class": 1.0, "tfidf": 0.0424}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "107-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "107-115", "dependency_updated": "updated", "score": 0.3418, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.2439, "class": 1.0, "tfidf": 0.0408}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_old": "24-29", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "24-27", "dependency_updated": "updated", "score": 0.1473, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1707, "class": 0.0, "tfidf": 0.1314}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1408, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0976, "class": 0.0, "tfidf": 0.03}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1274, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0732, "class": 0.0, "tfidf": 0.0404}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 20.0, "method_coverage_gold": 19.7107, "line_coverage_gold": 24.278, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/WithQuickTheories.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3534_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.boundedLengthStringArraysHaveBoundedLength:()V", "class": "ArraysDSLTest", "method": "boundedLengthStringArraysHaveBoundedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#boundedLengthStringArraysHaveBoundedLength", "old_test_code": null, "new_test_code": "@Test\npublic void boundedLengthStringArraysHaveBoundedLength() {\n qt().forAll(arrays().ofStrings(strings().allPossible().ofLength(2)).withLengthBetween(1, 10)).check(is -> is.length >= 1 && is.length <= 10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-64"], "old_production_code": "public ArrayGeneratorBuilder ofStrings(Source source) {\n return new ArrayGeneratorBuilder(source, String.class);\n}", "new_production_code": "public ArrayGeneratorBuilder ofStrings(Gen source) {\n return new ArrayGeneratorBuilder(source, String.class);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "54-57", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "54-57", "dependency_updated": "updated", "score": 0.3845, "signal_scores": {"nc": 0.0, "lcs_u": 0.8889, "ed": 0.1905, "class": 1.0, "tfidf": 0.0341}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "107-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "107-115", "dependency_updated": "updated", "score": 0.341, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.2381, "class": 1.0, "tfidf": 0.0415}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_old": "134-136", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_new": "119-121", "dependency_updated": "updated", "score": 0.195, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1667, "class": 0.0, "tfidf": 0.0557}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1405, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0952, "class": 0.0, "tfidf": 0.0305}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0881, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0476, "class": 0.0, "tfidf": 0.0411}}], "coverage_gold": 1.0, "branch_coverage_gold": 24.5455, "method_coverage_gold": 22.0615, "line_coverage_gold": 28.7906, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/generators/StringsDSL.allPossible:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3535_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.fixedLengthIntegerArraysAreFixedLength:()V", "class": "ArraysDSLTest", "method": "fixedLengthIntegerArraysAreFixedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#fixedLengthIntegerArraysAreFixedLength", "old_test_code": null, "new_test_code": "@Test\npublic void fixedLengthIntegerArraysAreFixedLength() {\n qt().forAll(arrays().ofIntegers(integers().all()).withLength(10)).check(is -> is.length == 10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "public Source withLength(int length) {\n return withLengthBetween(length, length);\n}", "new_production_code": "public Gen withLength(int length) {\n return withLengthBetween(length, length);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "93-95", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "93-95", "dependency_updated": "updated", "score": 0.4317, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2368, "class": 1.0, "tfidf": 0.194}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "28-31", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "28-31", "dependency_updated": "updated", "score": 0.3915, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2105, "class": 1.0, "tfidf": 0.0416}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_old": "37-39", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_new": "29-31", "dependency_updated": "updated", "score": 0.1459, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0526, "class": 0.0, "tfidf": 0.0831}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1437, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1053, "class": 0.0, "tfidf": 0.0372}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0911, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0526, "class": 0.0, "tfidf": 0.0502}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.1818, "method_coverage_gold": 18.8065, "line_coverage_gold": 23.6462, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3537_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.fixedLengthStringArraysHaveFixedLength:()V", "class": "ArraysDSLTest", "method": "fixedLengthStringArraysHaveFixedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#fixedLengthStringArraysHaveFixedLength", "old_test_code": null, "new_test_code": "@Test\npublic void fixedLengthStringArraysHaveFixedLength() {\n qt().forAll(arrays().ofStrings(strings().allPossible().ofLength(2)).withLength(3)).check(is -> is.length == 3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-57"], "old_production_code": "public Source withLength(int length) {\n return withLengthBetween(length, length);\n}", "new_production_code": "public Gen withLength(int length) {\n return withLengthBetween(length, length);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "93-95", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "93-95", "dependency_updated": "updated", "score": 0.4361, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2368, "class": 1.0, "tfidf": 0.2125}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "54-57", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "54-57", "dependency_updated": "updated", "score": 0.3861, "signal_scores": {"nc": 0.0, "lcs_u": 0.8889, "ed": 0.1842, "class": 1.0, "tfidf": 0.0454}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_old": "134-136", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_new": "119-121", "dependency_updated": "updated", "score": 0.2022, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1842, "class": 0.0, "tfidf": 0.0741}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1445, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1053, "class": 0.0, "tfidf": 0.0406}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0921, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0526, "class": 0.0, "tfidf": 0.0548}}], "coverage_gold": 1.0, "branch_coverage_gold": 24.5455, "method_coverage_gold": 22.2423, "line_coverage_gold": 28.8809, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/generators/StringsDSL.allPossible:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3555_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.fixedLengthClassArraysHaveFixedLength:()V", "class": "ArraysDSLTest", "method": "fixedLengthClassArraysHaveFixedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#fixedLengthClassArraysHaveFixedLength", "old_test_code": null, "new_test_code": "@Test\npublic void fixedLengthClassArraysHaveFixedLength() {\n qt().forAll(arrays().ofClass(dates().withMilliseconds(100), Date.class).withLength(3)).check(is -> is.length == 3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "public Source withLength(int length) {\n return withLengthBetween(length, length);\n}", "new_production_code": "public Gen withLength(int length) {\n return withLengthBetween(length, length);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "93-95", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "93-95", "dependency_updated": "updated", "score": 0.4355, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2432, "class": 1.0, "tfidf": 0.2057}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "71-74", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "71-74", "dependency_updated": "updated", "score": 0.3748, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1351, "class": 1.0, "tfidf": 0.0557}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_old": "24-29", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "line_nums_new": "24-27", "dependency_updated": "updated", "score": 0.1451, "signal_scores": {"nc": 0.0, "lcs_u": 0.4375, "ed": 0.1622, "class": 0.0, "tfidf": 0.175}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1447, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1081, "class": 0.0, "tfidf": 0.0394}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1317, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0811, "class": 0.0, "tfidf": 0.0531}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.5455, "method_coverage_gold": 19.8915, "line_coverage_gold": 24.0072, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/WithQuickTheories.dates:()Lorg/quicktheories/quicktheories/generators/DatesDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofClass:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/DatesDSL.withMilliseconds:(J)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DatesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3557_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.boundedLengthIntegerArraysHaveBoundedLengths:()V", "class": "ArraysDSLTest", "method": "boundedLengthIntegerArraysHaveBoundedLengths", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#boundedLengthIntegerArraysHaveBoundedLengths", "old_test_code": null, "new_test_code": "@Test\npublic void boundedLengthIntegerArraysHaveBoundedLengths() {\n qt().forAll(arrays().ofIntegers(integers().all()).withLengthBetween(1, 9)).check(is -> is.length >= 1 && is.length <= 9);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "public ArrayGeneratorBuilder ofIntegers(Source source) {\n return new ArrayGeneratorBuilder(source, Integer.class);\n}", "new_production_code": "public ArrayGeneratorBuilder ofIntegers(Gen source) {\n return new ArrayGeneratorBuilder(source, Integer.class);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "28-31", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "28-31", "dependency_updated": "updated", "score": 0.3896, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.2045, "class": 1.0, "tfidf": 0.0377}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "107-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "107-115", "dependency_updated": "updated", "score": 0.3403, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.2273, "class": 1.0, "tfidf": 0.046}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_old": "37-39", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_new": "29-31", "dependency_updated": "updated", "score": 0.1429, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0455, "class": 0.0, "tfidf": 0.0753}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1406, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0909, "class": 0.0, "tfidf": 0.0337}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0888, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0455, "class": 0.0, "tfidf": 0.0455}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.1818, "method_coverage_gold": 18.6257, "line_coverage_gold": 23.556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofIntegers:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3572_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.boundedLengthCharacterArraysHaveBoundedLength:()V", "class": "ArraysDSLTest", "method": "boundedLengthCharacterArraysHaveBoundedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#boundedLengthCharacterArraysHaveBoundedLength", "old_test_code": null, "new_test_code": "@Test\npublic void boundedLengthCharacterArraysHaveBoundedLength() {\n qt().forAll(arrays().ofCharacters(characters().ascii()).withLengthBetween(1, 5)).check(is -> is.length >= 1 && is.length <= 5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-36"], "old_production_code": "public ArrayGeneratorBuilder ofCharacters(Source source) {\n return new ArrayGeneratorBuilder(source, Character.class);\n}", "new_production_code": "public ArrayGeneratorBuilder ofCharacters(Gen source) {\n return new ArrayGeneratorBuilder(source, Character.class);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "41-44", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "41-44", "dependency_updated": "updated", "score": 0.3991, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.2444, "class": 1.0, "tfidf": 0.0377}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "107-115", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "107-115", "dependency_updated": "updated", "score": 0.3395, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.2222, "class": 1.0, "tfidf": 0.046}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1402, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0889, "class": 0.0, "tfidf": 0.0337}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1276, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0667, "class": 0.0, "tfidf": 0.0455}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "line_nums_old": "50-54", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "line_nums_new": "36-38", "dependency_updated": "updated", "score": 0.1043, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0444, "class": 0.0, "tfidf": 0.1124}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.4545, "method_coverage_gold": 20.434, "line_coverage_gold": 26.3538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3580_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ArraysDSLTest.fixedLengthCharacterArraysAreFixedLength:()V", "class": "ArraysDSLTest", "method": "fixedLengthCharacterArraysAreFixedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ArraysDSLTest#fixedLengthCharacterArraysAreFixedLength", "old_test_code": null, "new_test_code": "@Test\npublic void fixedLengthCharacterArraysAreFixedLength() {\n qt().forAll(arrays().ofCharacters(characters().ascii()).withLength(5)).check(is -> is.length == 5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-29"], "old_production_code": "public Source withLength(int length) {\n return withLengthBetween(length, length);\n}", "new_production_code": "public Gen withLength(int length) {\n return withLengthBetween(length, length);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "93-95", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "93-95", "dependency_updated": "updated", "score": 0.4359, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.225, "class": 1.0, "tfidf": 0.2199}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_old": "41-44", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "line_nums_new": "41-44", "dependency_updated": "updated", "score": 0.4022, "signal_scores": {"nc": 0.0, "lcs_u": 0.9167, "ed": 0.25, "class": 1.0, "tfidf": 0.047}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "line_nums_old": "50-54", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "line_nums_new": "36-38", "dependency_updated": "updated", "score": 0.1516, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.075, "class": 0.0, "tfidf": 0.1418}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1, "class": 0.0, "tfidf": 0.042}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1316, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.075, "class": 0.0, "tfidf": 0.0566}}], "coverage_gold": 1.0, "branch_coverage_gold": 19.5455, "method_coverage_gold": 20.6148, "line_coverage_gold": 26.2635, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.characters:()Lorg/quicktheories/quicktheories/generators/CharactersDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArraysDSL.ofCharacters:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArraysDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/CharactersDSL.ascii:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CharactersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__BigDecimalsTest_d53772e3", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/dogfood/BigDecimalsTest.java", "test_changes": [{"change_id": "3470_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_BigDecimalsTest", "test_sign": "org/quicktheories/quicktheories/dogfood/BigDecimalsTest.bigDecimalsAreGeneratedWithRequestedScale:()V", "class": "BigDecimalsTest", "method": "bigDecimalsAreGeneratedWithRequestedScale", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.BigDecimalsTest#bigDecimalsAreGeneratedWithRequestedScale", "old_test_code": null, "new_test_code": "@Test\npublic void bigDecimalsAreGeneratedWithRequestedScale() {\n Gen someBigDecimals = bigDecimals().ofBytes(64).withScale(3);\n qt().forAll(someBigDecimals).check(a -> a.scale() == 3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-17"], "old_production_code": "public Source withScale(int scale) {\n return BigDecimals.randomWithScale(maxLengthOfBigIntegerByteArray, scale);\n}", "new_production_code": "public Gen withScale(int scale) {\n return BigDecimals.randomWithScale(maxLengthOfBigIntegerByteArray, scale);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/BigDecimalsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/BigDecimalsDSL$BigDecimalsBuilder.withScale:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/BigDecimalsDSL$BigDecimalsBuilder.withScale:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/BigDecimalsDSL.java", "line_nums_old": "45-47", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BigDecimalsDSL.java", "line_nums_new": "45-47", "dependency_updated": "updated", "score": 0.2935, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2195, "class": 0.0, "tfidf": 0.3437}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1701, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0976, "class": 0.0, "tfidf": 0.0548}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.115, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0732, "class": 0.0, "tfidf": 0.0623}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 18.1818, "method_coverage_gold": 17.7215, "line_coverage_gold": 22.5632, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/BigDecimalsDSL.ofBytes:(I)Lorg/quicktheories/quicktheories/generators/BigDecimalsDSL$BigDecimalsBuilder", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/generators/BigDecimalsDSL$BigDecimalsBuilder.withScale:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.bigDecimals:()Lorg/quicktheories/quicktheories/generators/BigDecimalsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/BigDecimalsDSL$BigDecimalsBuilder.withScale:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/BigDecimalsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BigDecimalsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__CodePointsTest_3acf5625", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/dogfood/CodePointsTest.java", "test_changes": [{"change_id": "3480_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_CodePointsTest", "test_sign": "org/quicktheories/quicktheories/dogfood/CodePointsTest.generatesOnlyValidCodepointsInBasicLatinRange:()V", "class": "CodePointsTest", "method": "generatesOnlyValidCodepointsInBasicLatinRange", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.CodePointsTest#generatesOnlyValidCodepointsInBasicLatinRange", "old_test_code": null, "new_test_code": "@Test\npublic void generatesOnlyValidCodepointsInBasicLatinRange() {\n qt().withExamples(100000).forAll(CodePoints.codePoints(BASIC_LATIN_FIRST_CODEPOINT, BASIC_LATIN_LAST_CODEPOINT)).check(i -> Character.isValidCodePoint(i));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-26"], "old_production_code": "static Source codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "new_production_code": "public static Gen codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_old": "11-16", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_new": "13-18", "dependency_updated": "updated", "score": 0.4366, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.1498}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1422, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0889, "class": 0.0, "tfidf": 0.042}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1302, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0667, "class": 0.0, "tfidf": 0.0566}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.1818, "method_coverage_gold": 16.4557, "line_coverage_gold": 22.2924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.withExamples:(I)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3488_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_CodePointsTest", "test_sign": "org/quicktheories/quicktheories/dogfood/CodePointsTest.generatesOnlyValidCodepoints:()V", "class": "CodePointsTest", "method": "generatesOnlyValidCodepoints", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.CodePointsTest#generatesOnlyValidCodepoints", "old_test_code": null, "new_test_code": "@Test\npublic void generatesOnlyValidCodepoints() {\n qt().withExamples(100000).forAll(CodePoints.codePoints(Character.MIN_CODE_POINT, Character.MAX_CODE_POINT)).check(i -> Character.isValidCodePoint(i));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-18"], "old_production_code": "static Source codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "new_production_code": "public static Gen codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_old": "11-16", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_new": "13-18", "dependency_updated": "updated", "score": 0.4513, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3571, "class": 1.0, "tfidf": 0.1179}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1491, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1429, "class": 0.0, "tfidf": 0.0337}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0931, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0714, "class": 0.0, "tfidf": 0.0455}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.6364, "method_coverage_gold": 16.4557, "line_coverage_gold": 22.2924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.withExamples:(I)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3494_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_CodePointsTest", "test_sign": "org/quicktheories/quicktheories/dogfood/CodePointsTest.generatesOnlyCodepointsWithinTheSuppliedRange:()V", "class": "CodePointsTest", "method": "generatesOnlyCodepointsWithinTheSuppliedRange", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.CodePointsTest#generatesOnlyCodepointsWithinTheSuppliedRange", "old_test_code": null, "new_test_code": "@Test\npublic void generatesOnlyCodepointsWithinTheSuppliedRange() {\n qt().withExamples(100000).forAll(CodePoints.codePoints(BASIC_LATIN_FIRST_CODEPOINT, BASIC_LATIN_LAST_CODEPOINT)).check(i -> i >= BASIC_LATIN_FIRST_CODEPOINT && i <= BASIC_LATIN_LAST_CODEPOINT);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-34"], "old_production_code": "static Source codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "new_production_code": "public static Gen codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_old": "11-16", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_new": "13-18", "dependency_updated": "updated", "score": 0.4321, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2222, "class": 1.0, "tfidf": 0.131}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.141, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0889, "class": 0.0, "tfidf": 0.0372}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1287, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0667, "class": 0.0, "tfidf": 0.0502}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.1818, "method_coverage_gold": 16.4557, "line_coverage_gold": 22.2924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.withExamples:(I)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__ListsDSLTest_e593b627", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/dogfood/ListsDSLTest.java", "test_changes": [{"change_id": "3508_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ListsDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ListsDSLTest.boundedSizeListsHaveBoundedSize:()V", "class": "ListsDSLTest", "method": "boundedSizeListsHaveBoundedSize", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ListsDSLTest#boundedSizeListsHaveBoundedSize", "old_test_code": null, "new_test_code": "@Test\npublic void boundedSizeListsHaveBoundedSize() {\n qt().forAll(lists().of(integers().all()).ofSizeBetween(1, 2)).check(l -> l.size() >= 1 && l.size() <= 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-24"], "old_production_code": "public Source> ofSizeBetween(int minimumSize, int maximumSize) {\n checkBoundedListArguments(minimumSize, maximumSize);\n return Lists.alternatingBoundedListsOf(source, minimumSize, maximumSize);\n}", "new_production_code": "public Gen> ofSizeBetween(int minimumSize, int maximumSize) {\n checkBoundedListArguments(minimumSize, maximumSize);\n return Lists.boundedListsOf(source, minimumSize, maximumSize);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSizeBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSizeBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_old": "129-133", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "89-93", "dependency_updated": "updated", "score": 0.3577, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.2581, "class": 1.0, "tfidf": 0.0778}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "46-49", "dependency_updated": "inserted", "score": 0.2923, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0323, "class": 1.0, "tfidf": 0.0447}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.095, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0645, "class": 0.0, "tfidf": 0.0587}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_old": "37-39", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_new": "29-31", "dependency_updated": "updated", "score": 0.087, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0323, "class": 0.0, "tfidf": 0.0973}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.0797, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0645, "class": 0.0, "tfidf": 0.0435}}], "coverage_gold": 0.5714285714285714, "branch_coverage_gold": 18.6364, "method_coverage_gold": 19.349, "line_coverage_gold": 23.917, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSizeBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/WithQuickTheories.lists:()Lorg/quicktheories/quicktheories/generators/ListsDSL", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSizeBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3542_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ListsDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ListsDSLTest.listsAreOfSuppliedType:()V", "class": "ListsDSLTest", "method": "listsAreOfSuppliedType", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ListsDSLTest#listsAreOfSuppliedType", "old_test_code": null, "new_test_code": "@Test\npublic void listsAreOfSuppliedType() {\n Supplier> collectionFactory = () -> new LinkedList<>();\n qt().forAll(lists().of(integers().all()).ofType(lists().createListCollector(collectionFactory)).ofSize(2)).check(l -> l instanceof LinkedList);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-33"], "old_production_code": "public Source> ofSize(int size) {\n return ofSizeBetween(size, size);\n}", "new_production_code": "public Gen> ofSize(int size) {\n return ofSizeBetween(size, size);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$TypedListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$TypedListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_old": "171-173", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "132-134", "dependency_updated": "updated", "score": 0.4028, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.2273, "class": 1.0, "tfidf": 0.1277}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "46-49", "dependency_updated": "inserted", "score": 0.3873, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0909, "class": 1.0, "tfidf": 0.0325}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_old": "37-39", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_new": "29-31", "dependency_updated": "updated", "score": 0.1714, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0909, "class": 0.0, "tfidf": 0.1646}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.0812, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0909, "class": 0.0, "tfidf": 0.0317}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0528, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0455, "class": 0.0, "tfidf": 0.0427}}], "coverage_gold": 0.8387096774193549, "branch_coverage_gold": 17.7273, "method_coverage_gold": 18.9873, "line_coverage_gold": 23.556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.lists:()Lorg/quicktheories/quicktheories/generators/ListsDSL", "org/quicktheories/quicktheories/generators/ListsDSL.createListCollector:(Ljava/util/function/Supplier;)Ljava/util/stream/Collector", "org/quicktheories/quicktheories/generators/ListsDSL$TypedListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofType:(Ljava/util/stream/Collector;)Lorg/quicktheories/quicktheories/generators/ListsDSL$TypedListGeneratorBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$TypedListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3565_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ListsDSLTest", "test_sign": "org/quicktheories/quicktheories/dogfood/ListsDSLTest.fixedSizeListsHaveFixedSize:()V", "class": "ListsDSLTest", "method": "fixedSizeListsHaveFixedSize", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.ListsDSLTest#fixedSizeListsHaveFixedSize", "old_test_code": null, "new_test_code": "@Test\npublic void fixedSizeListsHaveFixedSize() {\n qt().forAll(lists().of(integers().all()).ofSize(2)).check(l -> l.size() == 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-17"], "old_production_code": "public Source> ofSize(int size) {\n return ofSizeBetween(size, size);\n}", "new_production_code": "public Gen> ofSize(int size) {\n return ofSizeBetween(size, size);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_old": "115-117", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "75-77", "dependency_updated": "updated", "score": 0.4133, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.1852, "class": 1.0, "tfidf": 0.2019}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "line_nums_new": "46-49", "dependency_updated": "inserted", "score": 0.2945, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.037, "class": 1.0, "tfidf": 0.0507}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0985, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0741, "class": 0.0, "tfidf": 0.0666}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_old": "37-39", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "line_nums_new": "29-31", "dependency_updated": "updated", "score": 0.0909, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.037, "class": 0.0, "tfidf": 0.1103}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.0826, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0741, "class": 0.0, "tfidf": 0.0494}}], "coverage_gold": 0.6190476190476191, "branch_coverage_gold": 18.6364, "method_coverage_gold": 19.5298, "line_coverage_gold": 24.0072, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.lists:()Lorg/quicktheories/quicktheories/generators/ListsDSL", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/WithQuickTheories.integers:()Lorg/quicktheories/quicktheories/generators/IntegersDSL", "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/IntegersDSL.all:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/IntegersDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL.of:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ListsDSL$ListGeneratorBuilder.ofSize:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ListsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__SanityTest_5bbd1a69", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/dogfood/SanityTest.java", "test_changes": [{"change_id": "3487_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_SanityTest", "test_sign": "org/quicktheories/quicktheories/dogfood/SanityTest.negativeDoublesAreNegative:()V", "class": "SanityTest", "method": "negativeDoublesAreNegative", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.SanityTest#negativeDoublesAreNegative", "old_test_code": null, "new_test_code": "@Test\npublic void negativeDoublesAreNegative() {\n qt().forAll(doubles().negative()).check(d -> d <= 0d);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "public Gen negative() {\n return Doubles.negative();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": 0.2905, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3077, "class": 0.0, "tfidf": 0.2694}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.121, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1154, "class": 0.0, "tfidf": 0.0584}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0602, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0385, "class": 0.0, "tfidf": 0.0787}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.8182, "method_coverage_gold": 15.5515, "line_coverage_gold": 20.1264, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.doubles:()Lorg/quicktheories/quicktheories/generators/DoublesDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/DoublesDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3500_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_SanityTest", "test_sign": "org/quicktheories/quicktheories/dogfood/SanityTest.positiveFloatsArePositive:()V", "class": "SanityTest", "method": "positiveFloatsArePositive", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.SanityTest#positiveFloatsArePositive", "old_test_code": null, "new_test_code": "@Test\npublic void positiveFloatsArePositive() {\n qt().forAll(floats().positive()).check(d -> d >= 0d);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-29"], "old_production_code": "", "new_production_code": "public Gen positive() {\n return Floats.fromZeroToPositiveInfinity();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "line_nums_new": "37-39", "dependency_updated": "inserted", "score": 0.2741, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.32, "class": 0.0, "tfidf": 0.1909}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1217, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.12, "class": 0.0, "tfidf": 0.0584}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0604, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.04, "class": 0.0, "tfidf": 0.0787}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.3636, "method_coverage_gold": 15.5515, "line_coverage_gold": 19.9458, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/FloatsDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.floats:()Lorg/quicktheories/quicktheories/generators/FloatsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3532_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_SanityTest", "test_sign": "org/quicktheories/quicktheories/dogfood/SanityTest.positiveDoublesArePositive:()V", "class": "SanityTest", "method": "positiveDoublesArePositive", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.SanityTest#positiveDoublesArePositive", "old_test_code": null, "new_test_code": "@Test\npublic void positiveDoublesArePositive() {\n qt().forAll(doubles().positive()).check(d -> d >= 0d);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "", "new_production_code": "public Gen positive() {\n return Doubles.positive();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "line_nums_new": "38-40", "dependency_updated": "inserted", "score": 0.2905, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3077, "class": 0.0, "tfidf": 0.2694}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.0852, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0769, "class": 0.0, "tfidf": 0.0584}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0602, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0385, "class": 0.0, "tfidf": 0.0787}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.3636, "method_coverage_gold": 15.7324, "line_coverage_gold": 20.1264, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.doubles:()Lorg/quicktheories/quicktheories/generators/DoublesDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/DoublesDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/DoublesDSL.positive:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/DoublesDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3591_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_SanityTest", "test_sign": "org/quicktheories/quicktheories/dogfood/SanityTest.constantSuppliesAConstant:()V", "class": "SanityTest", "method": "constantSuppliesAConstant", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.SanityTest#constantSuppliesAConstant", "old_test_code": null, "new_test_code": "@Test\npublic void constantSuppliesAConstant() {\n Supplier s = () -> 42;\n qt().forAll(arbitrary().constant(s)).check(a -> a == 42);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-44"], "old_production_code": "", "new_production_code": "public Gen constant(Supplier constant) {\n return Generate.constant(constant);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/ArbitraryDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/util/function/Supplier;)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/util/function/Supplier;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArbitraryDSL.java", "line_nums_new": "33-35", "dependency_updated": "inserted", "score": 0.282, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.32, "class": 0.0, "tfidf": 0.2243}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.14, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.12, "class": 0.0, "tfidf": 0.061}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1187, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.12, "class": 0.0, "tfidf": 0.0453}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.1818, "method_coverage_gold": 11.2116, "line_coverage_gold": 14.4404, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/util/function/Supplier;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/WithQuickTheories.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/util/function/Supplier;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/ArbitraryDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3612_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_SanityTest", "test_sign": "org/quicktheories/quicktheories/dogfood/SanityTest.negativeFloatsAreNegative:()V", "class": "SanityTest", "method": "negativeFloatsAreNegative", "module": "", "junit_selector": "org.quicktheories.quicktheories.dogfood.SanityTest#negativeFloatsAreNegative", "old_test_code": null, "new_test_code": "@Test\npublic void negativeFloatsAreNegative() {\n qt().forAll(floats().negative()).check(d -> d <= 0d);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-36"], "old_production_code": "", "new_production_code": "public Gen negative() {\n return Floats.fromNegativeInfinityToNegativeZero();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.2741, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.32, "class": 0.0, "tfidf": 0.1909}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1577, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.16, "class": 0.0, "tfidf": 0.0584}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0604, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.04, "class": 0.0, "tfidf": 0.0787}}], "coverage_gold": 1.0, "branch_coverage_gold": 16.3636, "method_coverage_gold": 15.3707, "line_coverage_gold": 19.9458, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/FloatsDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/WithQuickTheories.floats:()Lorg/quicktheories/quicktheories/generators/FloatsDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/FloatsDSL.negative:()Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/FloatsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__ArraysTest_be250e9f", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/ArraysTest.java", "test_changes": [{"change_id": "3524_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldDescribeArrayContentsUsingProvidedSource:()V", "class": "ArraysTest", "method": "shouldDescribeArrayContentsUsingProvidedSource", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldDescribeArrayContentsUsingProvidedSource", "old_test_code": null, "new_test_code": "@Test\npublic void shouldDescribeArrayContentsUsingProvidedSource() {\n Gen sourceWithCustomDescription = Generate.constant(\"x\").describedAs(x -> \"custom description for x\");\n Gen testee = Generate.arraysOf(sourceWithCustomDescription, String.class, 2, 2);\n String[] anArray = { \"foo\", \"bar\" };\n assertThat(testee.asString(anArray)).isEqualTo(\"[custom description for x, custom description for x]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["60-68"], "old_production_code": "", "new_production_code": "default Gen describedAs(AsString asString) {\n return new DescribingGenerator<>(this, asString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/quicktheories/core/Gen.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/Gen.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "113-115", "dependency_updated": "inserted", "score": 0.2296, "signal_scores": {"nc": 0.0, "lcs_u": 0.9091, "ed": 0.2174, "class": 0.0, "tfidf": 0.1416}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "167-169", "dependency_updated": "inserted", "score": 0.1976, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1087, "class": 0.0, "tfidf": 0.2011}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Generate.arraysOf:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "218-229", "dependency_updated": "inserted", "score": 0.1965, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1522, "class": 0.0, "tfidf": 0.0723}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "21-23", "dependency_updated": "inserted", "score": 0.1791, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1087, "class": 0.0, "tfidf": 0.1224}}], "coverage_gold": 0.38095238095238093, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.17, "line_coverage_gold": 1.6245, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/Generate.arraysOf:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/core/Gen.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Generate.arraysOf:(Lorg/quicktheories/quicktheories/core/Gen;Ljava/lang/Class;II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Gen.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3595_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldProvideReadableDescriptionOfByteArrays:()V", "class": "ArraysTest", "method": "shouldProvideReadableDescriptionOfByteArrays", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldProvideReadableDescriptionOfByteArrays", "old_test_code": null, "new_test_code": "@Test\npublic void shouldProvideReadableDescriptionOfByteArrays() {\n Gen testee = Generate.byteArrays(Generate.range(1, 2), Generate.bytes((byte) 1, (byte) 2, (byte) 0));\n assertThat(testee.asString(new byte[] { 1, 2 })).containsSequence(\"1, 2\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-110"], "old_production_code": "", "new_production_code": "public static Gen byteArrays(Gen sizes, Gen contents) {\n Gen gen = td -> {\n int size = sizes.generate(td);\n byte[] bs = new byte[size];\n for (int i = 0; i != size; i++) {\n bs[i] = contents.generate(td);\n }\n return bs;\n };\n return gen.describedAs(Arrays::toString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Generate.byteArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/generators/Generate.byteArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "206-216", "dependency_updated": "inserted", "score": 0.2627, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2273, "class": 0.0, "tfidf": 0.2074}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Generate.bytes:(BBB)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "124-127", "dependency_updated": "inserted", "score": 0.2063, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1136, "class": 0.0, "tfidf": 0.0471}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.1791, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0909, "class": 0.0, "tfidf": 0.0976}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "167-169", "dependency_updated": "inserted", "score": 0.1546, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1136, "class": 0.0, "tfidf": 0.1088}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.2658, "line_coverage_gold": 0.9928, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/Generate.byteArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/Generate.bytes:(BBB)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Generate.bytes:(BBB)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/Generate.byteArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3602_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldProvideReadableDescriptionOfIntegerArrays:()V", "class": "ArraysTest", "method": "shouldProvideReadableDescriptionOfIntegerArrays", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldProvideReadableDescriptionOfIntegerArrays", "old_test_code": null, "new_test_code": "@Test\npublic void shouldProvideReadableDescriptionOfIntegerArrays() {\n Gen testee = Generate.intArrays(Generate.range(1, 2), Generate.range(1, 2));\n assertThat(testee.asString(new int[] { 1, 2 })).containsSequence(\"1, 2\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-98"], "old_production_code": "", "new_production_code": "public static Gen intArrays(Gen sizes, Gen contents) {\n Gen gen = td -> {\n int size = sizes.generate(td);\n int[] is = new int[size];\n for (int i = 0; i != size; i++) {\n is[i] = contents.generate(td);\n }\n return is;\n };\n return gen.describedAs(Arrays::toString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "164-174", "dependency_updated": "inserted", "score": 0.2534, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1915, "class": 0.0, "tfidf": 0.1928}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.2318, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1064, "class": 0.0, "tfidf": 0.1606}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "167-169", "dependency_updated": "inserted", "score": 0.1779, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1277, "class": 0.0, "tfidf": 0.1041}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.085, "line_coverage_gold": 0.9025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3617_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldProvideReadableDescriptionOfTwoDimensionalIntegerArrays:()V", "class": "ArraysTest", "method": "shouldProvideReadableDescriptionOfTwoDimensionalIntegerArrays", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldProvideReadableDescriptionOfTwoDimensionalIntegerArrays", "old_test_code": null, "new_test_code": "@Test\npublic void shouldProvideReadableDescriptionOfTwoDimensionalIntegerArrays() {\n Gen testee = Generate.intArrays(Generate.range(1, 2), Generate.range(1, 2), Generate.range(1, 2));\n assertThat(testee.asString(new int[][] { { 1, 2 }, { 6, 12 } })).containsSequence(\"[1, 2], [6, 12]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-104"], "old_production_code": "", "new_production_code": "public static Gen intArrays(Gen rows, Gen cols, Gen contents) {\n Gen gen = td -> {\n int w = rows.generate(td);\n int h = cols.generate(td);\n int[][] is = new int[w][h];\n for (int i = 0; i != w; i++) {\n for (int j = 0; j != h; j++) {\n is[i][j] = contents.generate(td);\n }\n }\n return is;\n };\n return gen.describedAs(a -> java.util.Arrays.stream(a).map(Arrays::toString).collect(Collectors.joining(\", \", \"[\", \"]\")));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "183-198", "dependency_updated": "inserted", "score": 0.2461, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1475, "class": 0.0, "tfidf": 0.1926}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.2314, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.082, "class": 0.0, "tfidf": 0.1762}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "167-169", "dependency_updated": "inserted", "score": 0.1675, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0984, "class": 0.0, "tfidf": 0.0803}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.2658, "line_coverage_gold": 0.9928, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Generate.intArrays:(Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/Generate.range:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/DescribingGenerator.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__CodePointsTest_42440f12", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/CodePointsTest.java", "test_changes": [{"change_id": "3496_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_CodePointsTest", "test_sign": "org/quicktheories/quicktheories/generators/CodePointsTest.describesCodePoint:()V", "class": "CodePointsTest", "method": "describesCodePoint", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.CodePointsTest#describesCodePoint", "old_test_code": null, "new_test_code": "@Test\npublic void describesCodePoint() {\n Gen testee = CodePoints.codePoints(Character.MIN_CODE_POINT, Character.MAX_CODE_POINT);\n assertThat(testee.asString(42)).isEqualTo(\"42\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-22"], "old_production_code": "static Source codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "new_production_code": "public static Gen codePoints(int startInclusive, int endInclusive) {\n return codePoints(startInclusive, endInclusive, FIRST_NON_WHITESPACE_CHARACTER_IN_BLC);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_old": "11-16", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_new": "13-18", "dependency_updated": "updated", "score": 0.4624, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.4444, "class": 1.0, "tfidf": 0.1792}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/Retry.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "line_nums_new": "59-61", "dependency_updated": "inserted", "score": 0.1488, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2222, "class": 0.0, "tfidf": 0.1019}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.8182, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.444, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/Retry.asString:(Ljava/lang/Object;)Ljava/lang/String", "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/CodePoints.codePoints:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/Retry.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/CodePoints.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__StringsDSLTest_9feb789d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/StringsDSLTest.java", "test_changes": [{"change_id": "3472_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_StringsDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/StringsDSLTest.fixedLengthStringsAreFixedLength:()V", "class": "StringsDSLTest", "method": "fixedLengthStringsAreFixedLength", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.StringsDSLTest#fixedLengthStringsAreFixedLength", "old_test_code": null, "new_test_code": "@Test\npublic void fixedLengthStringsAreFixedLength() {\n qt().forAll(strings().allPossible().ofLength(100)).check(s -> s.length() == 100);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-31"], "old_production_code": "public Source ofLength(int fixedLength) {\n return ofLengthBetween(fixedLength, fixedLength);\n}", "new_production_code": "public Gen ofLength(int fixedLength) {\n return ofLengthBetween(fixedLength, fixedLength);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_old": "134-136", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_new": "119-121", "dependency_updated": "updated", "score": 0.3981, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.2188, "class": 1.0, "tfidf": 0.0826}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1489, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.125, "class": 0.0, "tfidf": 0.0453}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.0952, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0625, "class": 0.0, "tfidf": 0.061}}], "coverage_gold": 1.0, "branch_coverage_gold": 22.7273, "method_coverage_gold": 19.349, "line_coverage_gold": 26.2635, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL.allPossible:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3610_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_StringsDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/StringsDSLTest.boundedLengthStringsRespectsLengthBounds:()V", "class": "StringsDSLTest", "method": "boundedLengthStringsRespectsLengthBounds", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.StringsDSLTest#boundedLengthStringsRespectsLengthBounds", "old_test_code": null, "new_test_code": "@Test\npublic void boundedLengthStringsRespectsLengthBounds() {\n Gen testee = strings().allPossible().ofLengthBetween(3, 200);\n qt().withExamples(100000).forAll(testee).check(s -> s.length() <= 200 && s.length() >= 3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-18"], "old_production_code": "public Source ofLengthBetween(int minLength, int maxLength) {\n ArgumentAssertions.checkArguments(minLength <= maxLength, \"The minLength (%s) is longer than the maxLength(%s)\", minLength, maxLength);\n ArgumentAssertions.checkArguments(minLength >= 0, \"The length of a String cannot be negative; %s is not an accepted argument\", minLength);\n return Strings.ofBoundedLengthStrings(minCodePoint, maxCodePoint, minLength, maxLength);\n}", "new_production_code": "public Gen ofLengthBetween(int minLength, int maxLength) {\n ArgumentAssertions.checkArguments(minLength <= maxLength, \"The minLength (%s) is longer than the maxLength(%s)\", minLength, maxLength);\n ArgumentAssertions.checkArguments(minLength >= 0, \"The length of a String cannot be negative; %s is not an accepted argument\", minLength);\n return Strings.ofBoundedLengthStrings(minCodePoint, maxCodePoint, minLength, maxLength);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_old": "152-161", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "line_nums_new": "133-142", "dependency_updated": "updated", "score": 0.397, "signal_scores": {"nc": 0.0, "lcs_u": 0.7333, "ed": 0.275, "class": 1.0, "tfidf": 0.1449}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "line_nums_new": "130-135", "dependency_updated": "inserted", "score": 0.1287, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.075, "class": 0.0, "tfidf": 0.0445}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "137-142", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "91-93", "dependency_updated": "updated", "score": 0.1124, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.075, "class": 0.0, "tfidf": 0.0504}}], "coverage_gold": 1.0, "branch_coverage_gold": 23.6364, "method_coverage_gold": 19.7107, "line_coverage_gold": 26.5343, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/WithQuickTheories.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/WithQuickTheories.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.withExamples:(I)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL.allPossible:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Gen;)Lorg/quicktheories/quicktheories/dsl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLengthBetween:(II)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/StringsDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": true}, {"method_sign": "org/quicktheories/quicktheories/dsl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/dsl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__ConstraintTest_d60203ad", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/impl/ConstraintTest.java", "test_changes": [{"change_id": "3473_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.correctsShrinkTargetWhenBelowMin:()V", "class": "ConstraintTest", "method": "correctsShrinkTargetWhenBelowMin", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#correctsShrinkTargetWhenBelowMin", "old_test_code": null, "new_test_code": "@Test\npublic void correctsShrinkTargetWhenBelowMin() {\n Constraint testee = Constraint.between(1, 10).withShrinkPoint(0);\n assertThat(testee.shrinkTarget()).isEqualTo(OptionalLong.of(1));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-33"], "old_production_code": "", "new_production_code": "OptionalLong shrinkTarget() {\n return shrinkTarget;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.4809, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.375, "class": 1.0, "tfidf": 0.2314}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "39-46", "dependency_updated": "inserted", "score": 0.4138, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2812, "class": 1.0, "tfidf": 0.2617}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.4061, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1875, "class": 1.0, "tfidf": 0.1517}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.7273, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.7148, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3475_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.shrinkTargetDefaultsToZero:()V", "class": "ConstraintTest", "method": "shrinkTargetDefaultsToZero", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#shrinkTargetDefaultsToZero", "old_test_code": null, "new_test_code": "@Test\npublic void shrinkTargetDefaultsToZero() {\n assertThat(Constraint.between(0, 10).shrinkTarget()).isEqualTo(OptionalLong.of(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-50"], "old_production_code": "", "new_production_code": "OptionalLong shrinkTarget() {\n return shrinkTarget;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.5155, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4615, "class": 1.0, "tfidf": 0.318}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.3487, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1538, "class": 1.0, "tfidf": 0.1458}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.2727, "method_coverage_gold": 1.085, "line_coverage_gold": 1.3538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3521_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.doesNotCreateNewObjectWhenShrinkTargetDoesNotChange:()V", "class": "ConstraintTest", "method": "doesNotCreateNewObjectWhenShrinkTargetDoesNotChange", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#doesNotCreateNewObjectWhenShrinkTargetDoesNotChange", "old_test_code": null, "new_test_code": "@Test\npublic void doesNotCreateNewObjectWhenShrinkTargetDoesNotChange() {\n Constraint testee = Constraint.between(0, 10).withShrinkPoint(5);\n assertSame(testee, testee.withShrinkPoint(5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-39"], "old_production_code": "", "new_production_code": "public static Constraint between(long min, long max) {\n if (min == 0 && max == 1) {\n return zeroToOne();\n }\n return new Constraint(min, max, correct(min, max, OptionalLong.of(0)));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.409, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1373, "class": 1.0, "tfidf": 0.0923}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "39-46", "dependency_updated": "inserted", "score": 0.4021, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.2353, "class": 1.0, "tfidf": 0.1443}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 3.1818, "method_coverage_gold": 1.085, "line_coverage_gold": 1.6245, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3531_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.usesSingletonForZeroToOne:()V", "class": "ConstraintTest", "method": "usesSingletonForZeroToOne", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#usesSingletonForZeroToOne", "old_test_code": null, "new_test_code": "@Test\npublic void usesSingletonForZeroToOne() {\n assertSame(Constraint.between(0, 1), Constraint.zeroToOne());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-15"], "old_production_code": "", "new_production_code": "public static Constraint zeroToOne() {\n return ZERO_TO_ONE;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.zeroToOne:()Lorg/quicktheories/quicktheories/impl/Constraint", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.zeroToOne:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "31-33", "dependency_updated": "inserted", "score": 0.5226, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.36, "class": 1.0, "tfidf": 0.4189}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.3626, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.16, "class": 1.0, "tfidf": 0.2004}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.2727, "method_coverage_gold": 1.085, "line_coverage_gold": 1.3538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.zeroToOne:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.zeroToOne:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3533_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.correctsShrinkTargetWhenAboveMax:()V", "class": "ConstraintTest", "method": "correctsShrinkTargetWhenAboveMax", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#correctsShrinkTargetWhenAboveMax", "old_test_code": null, "new_test_code": "@Test\npublic void correctsShrinkTargetWhenAboveMax() {\n Constraint testee = Constraint.between(1, 10).withShrinkPoint(11);\n assertThat(testee.shrinkTarget()).isEqualTo(OptionalLong.of(10));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-27"], "old_production_code": "", "new_production_code": "OptionalLong shrinkTarget() {\n return shrinkTarget;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.4755, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.375, "class": 1.0, "tfidf": 0.2082}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "39-46", "dependency_updated": "inserted", "score": 0.3779, "signal_scores": {"nc": 0.0, "lcs_u": 0.5333, "ed": 0.25, "class": 1.0, "tfidf": 0.2309}}], "coverage_gold": 0.8, "branch_coverage_gold": 3.1818, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.8051, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3544_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.shrinkTargetCanBeUnset:()V", "class": "ConstraintTest", "method": "shrinkTargetCanBeUnset", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#shrinkTargetCanBeUnset", "old_test_code": null, "new_test_code": "@Test\npublic void shrinkTargetCanBeUnset() {\n assertThat(Constraint.between(0, 10).withNoShrinkPoint().shrinkTarget()).isEqualTo(OptionalLong.empty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-56"], "old_production_code": "", "new_production_code": "OptionalLong shrinkTarget() {\n return shrinkTarget;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.5255, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5455, "class": 1.0, "tfidf": 0.3017}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.withNoShrinkPoint:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "35-37", "dependency_updated": "inserted", "score": 0.3854, "signal_scores": {"nc": 0.0, "lcs_u": 0.4706, "ed": 0.1818, "class": 1.0, "tfidf": 0.3579}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.344, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1818, "class": 1.0, "tfidf": 0.1064}}], "coverage_gold": 0.8, "branch_coverage_gold": 2.7273, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.5343, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "org/quicktheories/quicktheories/impl/Constraint.withNoShrinkPoint:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.withNoShrinkPoint:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3549_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.setShrinkPointWhenWithinRange:()V", "class": "ConstraintTest", "method": "setShrinkPointWhenWithinRange", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#setShrinkPointWhenWithinRange", "old_test_code": null, "new_test_code": "@Test\npublic void setShrinkPointWhenWithinRange() {\n Constraint testee = Constraint.between(1, 10).withShrinkPoint(5);\n assertThat(testee.shrinkTarget()).isEqualTo(OptionalLong.of(5));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "public Constraint withShrinkPoint(long shrinkPoint) {\n OptionalLong newShrinkPoint = OptionalLong.of(shrinkPoint);\n if (!newShrinkPoint.equals(shrinkTarget)) {\n return new Constraint(min, max, newShrinkPoint);\n } else {\n return this;\n }\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "39-46", "dependency_updated": "inserted", "score": 0.4535, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.3793, "class": 1.0, "tfidf": 0.2617}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "56-58", "dependency_updated": "inserted", "score": 0.4408, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.3103, "class": 1.0, "tfidf": 0.2314}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "20-25", "dependency_updated": "inserted", "score": 0.3784, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1724, "class": 1.0, "tfidf": 0.1517}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.7273, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.7148, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.between:(JJ)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.shrinkTarget:()Ljava/util/OptionalLong", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.withShrinkPoint:(J)Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3608_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ConstraintTest", "test_sign": "org/quicktheories/quicktheories/impl/ConstraintTest.noConstraintAllowsAnyLong:()V", "class": "ConstraintTest", "method": "noConstraintAllowsAnyLong", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ConstraintTest#noConstraintAllowsAnyLong", "old_test_code": null, "new_test_code": "@Test\npublic void noConstraintAllowsAnyLong() {\n assertThat(Constraint.none().min()).isEqualTo(Long.MIN_VALUE);\n assertThat(Constraint.none().max()).isEqualTo(Long.MAX_VALUE);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-45"], "old_production_code": "", "new_production_code": "public static Constraint none() {\n return NONE;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.436, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.12, "class": 1.0, "tfidf": 0.4066}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.min:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.3522, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.08, "class": 1.0, "tfidf": 0.1409}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.max:()J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "52-54", "dependency_updated": "inserted", "score": 0.2868, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.04, "class": 1.0, "tfidf": 0.1409}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3636, "method_coverage_gold": 1.2658, "line_coverage_gold": 1.3538, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Constraint.max:()J", "org/quicktheories/quicktheories/impl/Constraint.min:()J"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.min:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.max:()J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__PrecursorTest_293ebcca", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/impl/PrecursorTest.java", "test_changes": [{"change_id": "3491_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_PrecursorTest", "test_sign": "org/quicktheories/quicktheories/impl/PrecursorTest.capturesConsumedLongs:()V", "class": "PrecursorTest", "method": "capturesConsumedLongs", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.PrecursorTest#capturesConsumedLongs", "old_test_code": null, "new_test_code": "@Test\npublic void capturesConsumedLongs() {\n testee.store(3l, Constraint.none());\n testee.store(6l, Constraint.none());\n testee.store(9l, Constraint.none());\n testee.store(12l, Constraint.none());\n assertThat(testee.current()).containsExactly(3l, 6l, 9l, 12l);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-19"], "old_production_code": "", "new_production_code": "void store(long l, Constraint constraint) {\n addToBuffer(l);\n storeConstraints(constraint);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "29-32", "dependency_updated": "inserted", "score": 0.3988, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1429, "class": 1.0, "tfidf": 0.3447}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "34-40", "dependency_updated": "inserted", "score": 0.356, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.2381, "class": 1.0, "tfidf": 0.0104}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.2575, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1429, "class": 0.0, "tfidf": 0.4318}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.8182, "method_coverage_gold": 2.17, "line_coverage_gold": 3.0686, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Precursor.current:()[J", "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3516_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_PrecursorTest", "test_sign": "org/quicktheories/quicktheories/impl/PrecursorTest.capturesConsumedLongsWhenBufferMustBeResized:()V", "class": "PrecursorTest", "method": "capturesConsumedLongsWhenBufferMustBeResized", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.PrecursorTest#capturesConsumedLongsWhenBufferMustBeResized", "old_test_code": null, "new_test_code": "@Test\npublic void capturesConsumedLongsWhenBufferMustBeResized() {\n for (long l = 0; l != 128; l++) {\n testee.store(l, Constraint.none());\n }\n assertThat(testee.current()[0]).isEqualTo(0);\n assertThat(testee.current()[127]).isEqualTo(127);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-29"], "old_production_code": "", "new_production_code": "void store(long l, Constraint constraint) {\n addToBuffer(l);\n storeConstraints(constraint);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "29-32", "dependency_updated": "inserted", "score": 0.3771, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0909, "class": 1.0, "tfidf": 0.1391}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "34-40", "dependency_updated": "inserted", "score": 0.3707, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1364, "class": 1.0, "tfidf": 0.0372}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.2324, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0909, "class": 0.0, "tfidf": 0.1742}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.2727, "method_coverage_gold": 2.3508, "line_coverage_gold": 3.5199, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Precursor.current:()[J", "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3589_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_PrecursorTest", "test_sign": "org/quicktheories/quicktheories/impl/PrecursorTest.produces8ByteArrayWhenContainsSingleLong:()V", "class": "PrecursorTest", "method": "produces8ByteArrayWhenContainsSingleLong", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.PrecursorTest#produces8ByteArrayWhenContainsSingleLong", "old_test_code": null, "new_test_code": "@Test\npublic void produces8ByteArrayWhenContainsSingleLong() {\n testee.store(42l, Constraint.none());\n assertThat(testee.bytes()).hasSize(8);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-40"], "old_production_code": "", "new_production_code": "void store(long l, Constraint constraint) {\n addToBuffer(l);\n storeConstraints(constraint);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "29-32", "dependency_updated": "inserted", "score": 0.3976, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1, "class": 1.0, "tfidf": 0.2198}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "25-27", "dependency_updated": "inserted", "score": 0.3968, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.125, "class": 1.0, "tfidf": 0.0491}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.2577, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1, "class": 0.0, "tfidf": 0.2754}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.8182, "method_coverage_gold": 1.9892, "line_coverage_gold": 2.6173, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Constraint.none:()Lorg/quicktheories/quicktheories/impl/Constraint", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Constraint.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.store:(JLorg/quicktheories/quicktheories/impl/Constraint;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3614_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_PrecursorTest", "test_sign": "org/quicktheories/quicktheories/impl/PrecursorTest.producesEmptyByteArrayWhenNoValues:()V", "class": "PrecursorTest", "method": "producesEmptyByteArrayWhenNoValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.PrecursorTest#producesEmptyByteArrayWhenNoValues", "old_test_code": null, "new_test_code": "@Test\npublic void producesEmptyByteArrayWhenNoValues() {\n assertThat(testee.bytes()).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-34"], "old_production_code": "", "new_production_code": "byte[] bytes() {\n return Arrays.copyOf(buffer.array(), buffer.position());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "25-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.3617, "line_coverage_gold": 0.5415, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Precursor.bytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/Precursor.bytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d65bada_f1bf507__ShapedDataSourceTest_d054c8a3", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d65bada4682b49632e89ff397409375fa54d6ad2", "rev2": "f1bf50730619297a87c456d8af98ba7acd540939", "rev1_date": "2017-09-27T13:56:09Z", "rev2_date": "2017-09-27T16:08:35Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d65bada4682b49632e89ff397409375fa54d6ad2...f1bf50730619297a87c456d8af98ba7acd540939", "test_file": "src/test/java/org/quicktheories/quicktheories/impl/ShapedDataSourceTest.java", "test_changes": [{"change_id": "3489_quicktheories_QuickTheories-quicktheories-parent-0.26_d65bada_f1bf507_ShapedDataSourceTest", "test_sign": "org/quicktheories/quicktheories/impl/ShapedDataSourceTest.onlyCapturesPrecursorsThatPassCompoundAssumptions:()V", "class": "ShapedDataSourceTest", "method": "onlyCapturesPrecursorsThatPassCompoundAssumptions", "module": "", "junit_selector": "org.quicktheories.quicktheories.impl.ShapedDataSourceTest#onlyCapturesPrecursorsThatPassCompoundAssumptions", "old_test_code": null, "new_test_code": "@Test\npublic void onlyCapturesPrecursorsThatPassCompoundAssumptions() {\n Gen> joined = Generate.longRange(0l, 5l).assuming(l -> l != 3).map((a, b) -> Pair.of(a, b)).assuming(p -> p._1 == 2).assuming(p -> p._2 != 0);\n Pair value = joined.generate(testee);\n assertThat(testee.capturedPrecursor().current()).containsExactly(value._1, value._2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-28"], "old_production_code": "", "new_production_code": "Precursor capturedPrecursor() {\n return precursor;\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/ShapedDataSource.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/ShapedDataSource.capturedPrecursor:()Lorg/quicktheories/quicktheories/impl/Precursor", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/ShapedDataSource.capturedPrecursor:()Lorg/quicktheories/quicktheories/impl/Precursor", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/ShapedDataSource.java", "line_nums_new": "47-49", "dependency_updated": "inserted", "score": 0.4146, "signal_scores": {"nc": 0.0, "lcs_u": 0.9412, "ed": 0.3265, "class": 1.0, "tfidf": 0.0276}}, {"dep_id": 4, "method_sign": "org/quicktheories/quicktheories/core/Gen.map:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.2064, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.0612, "class": 0.0, "tfidf": 0.0843}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "line_nums_new": "34-40", "dependency_updated": "inserted", "score": 0.2027, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1429, "class": 0.0, "tfidf": 0.0116}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/core/Gen.assuming:(Ljava/util/function/Predicate;)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": 0.1995, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1429, "class": 0.0, "tfidf": 0.0914}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Generate.longRange:(JJ)Lorg/quicktheories/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "line_nums_new": "100-103", "dependency_updated": "inserted", "score": 0.1424, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.0816, "class": 0.0, "tfidf": 0.1312}}, {"dep_id": 5, "method_sign": "org/quicktheories/quicktheories/core/FilteredGenerator.generate:(Lorg/quicktheories/quicktheories/core/RandomnessSource;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "line_nums_new": "129-143", "dependency_updated": "inserted", "score": 0.1398, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.102, "class": 0.0, "tfidf": 0.0538}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.8182, "method_coverage_gold": 8.3183, "line_coverage_gold": 10.8303, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/Precursor.current:()[J", "org/quicktheories/quicktheories/core/Gen.assuming:(Ljava/util/function/Predicate;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/core/Gen.map:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/generators/Generate.longRange:(JJ)Lorg/quicktheories/quicktheories/core/Gen", "org/quicktheories/quicktheories/impl/ShapedDataSource.capturedPrecursor:()Lorg/quicktheories/quicktheories/impl/Precursor", "org/quicktheories/quicktheories/core/FilteredGenerator.generate:(Lorg/quicktheories/quicktheories/core/RandomnessSource;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Generate.longRange:(JJ)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Generate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/ShapedDataSource.capturedPrecursor:()Lorg/quicktheories/quicktheories/impl/Precursor", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/ShapedDataSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/Precursor.current:()[J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/Precursor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Gen.assuming:(Ljava/util/function/Predicate;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Gen.map:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/FilteredGenerator.generate:(Lorg/quicktheories/quicktheories/core/RandomnessSource;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__d7a6bbe_b5358c6__GenTest_e9caed22", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "d7a6bbeb64ca6eb6b2855daaaad8cc25ad5e9f54", "rev2": "b5358c6e754979d70f824f6cc193ef1c5df5fd0c", "rev1_date": "2017-10-31T15:10:05Z", "rev2_date": "2017-10-31T16:09:17Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/d7a6bbeb64ca6eb6b2855daaaad8cc25ad5e9f54...b5358c6e754979d70f824f6cc193ef1c5df5fd0c", "test_file": "core/src/test/java/org/quicktheories/core/GenTest.java", "test_changes": [{"change_id": "3437_quicktheories_QuickTheories-quicktheories-parent-0.26_d7a6bbe_b5358c6_GenTest", "test_sign": "org/quicktheories/core/GenTest.alwaysGeneratesRHSOfMixWhenWeightingIs100:()V", "class": "GenTest", "method": "alwaysGeneratesRHSOfMixWhenWeightingIs100", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#alwaysGeneratesRHSOfMixWhenWeightingIs100", "old_test_code": null, "new_test_code": "@Test\npublic void alwaysGeneratesRHSOfMixWhenWeightingIs100() {\n Gen testee = Generate.constant(1).mix(Generate.constant(2), 100);\n assertThatGenerator(testee).generatesAllOf(2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["201-205"], "old_production_code": "", "new_production_code": "default Gen mix(Gen rhs, int weight) {\n return prng -> {\n long picked = prng.next(Constraint.between(0, 99));\n if (picked >= weight) {\n return this.generate(prng);\n }\n return rhs.generate(prng);\n };\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "144-152", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.127, "method_coverage_gold": 4.9236, "line_coverage_gold": 6.929, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["73b1454e952e4b7b56d12b8bec8306f787eb6819"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/core/Gen", "org/quicktheories/impl/GenAssert.assertThatGenerator:(Lorg/quicktheories/core/Gen;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/impl/GenAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3438_quicktheories_QuickTheories-quicktheories-parent-0.26_d7a6bbe_b5358c6_GenTest", "test_sign": "org/quicktheories/core/GenTest.alwaysGeneratesLHSOfMixWhenWeightingIs0:()V", "class": "GenTest", "method": "alwaysGeneratesLHSOfMixWhenWeightingIs0", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#alwaysGeneratesLHSOfMixWhenWeightingIs0", "old_test_code": null, "new_test_code": "@Test\npublic void alwaysGeneratesLHSOfMixWhenWeightingIs0() {\n Gen testee = Generate.constant(1).mix(Generate.constant(2), 0);\n assertThatGenerator(testee).generatesAllOf(1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["207-211"], "old_production_code": "", "new_production_code": "default Gen mix(Gen rhs, int weight) {\n return prng -> {\n long picked = prng.next(Constraint.between(0, 99));\n if (picked >= weight) {\n return this.generate(prng);\n }\n return rhs.generate(prng);\n };\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "144-152", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.127, "method_coverage_gold": 4.9236, "line_coverage_gold": 6.929, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["73b1454e952e4b7b56d12b8bec8306f787eb6819"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/core/Gen", "org/quicktheories/impl/GenAssert.assertThatGenerator:(Lorg/quicktheories/core/Gen;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/impl/GenAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3439_quicktheories_QuickTheories-quicktheories-parent-0.26_d7a6bbe_b5358c6_GenTest", "test_sign": "org/quicktheories/core/GenTest.producesValuesFromBothSidesWhenWeightingIs5050:()V", "class": "GenTest", "method": "producesValuesFromBothSidesWhenWeightingIs5050", "module": "core", "junit_selector": "org.quicktheories.core.GenTest#producesValuesFromBothSidesWhenWeightingIs5050", "old_test_code": null, "new_test_code": "@Test\npublic void producesValuesFromBothSidesWhenWeightingIs5050() {\n Gen testee = Generate.constant(1).mix(Generate.constant(2), 50);\n assertThatGenerator(testee).generatesAllOf(1, 2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["213-217"], "old_production_code": "", "new_production_code": "default Gen mix(Gen rhs, int weight) {\n return prng -> {\n long picked = prng.next(Constraint.between(0, 99));\n if (picked >= weight) {\n return this.generate(prng);\n }\n return rhs.generate(prng);\n };\n}", "focal_file_path": "core/src/main/java/org/quicktheories/core/Gen.java", "focal_method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "line_nums_new": "144-152", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.5238, "method_coverage_gold": 4.9236, "line_coverage_gold": 7.0145, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["73b1454e952e4b7b56d12b8bec8306f787eb6819"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/generators/Generate.constant:(Ljava/lang/Object;)Lorg/quicktheories/core/Gen", "org/quicktheories/impl/GenAssert.assertThatGenerator:(Lorg/quicktheories/core/Gen;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/impl/GenAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/impl/GenAssert", "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/core/Gen.mix:(Lorg/quicktheories/core/Gen;I)Lorg/quicktheories/core/Gen", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/org/quicktheories/core/Gen.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__e29057c_c0ca192__BooleansTest_57165856", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "e29057cfbb92d833b85b9680e38d6d85622b3761", "rev2": "c0ca19267c2729a7dd8677dc9c07fdbc81da3412", "rev1_date": "2015-12-22T14:46:47Z", "rev2_date": "2015-12-22T16:55:43Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/e29057cfbb92d833b85b9680e38d6d85622b3761...c0ca19267c2729a7dd8677dc9c07fdbc81da3412", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/BooleansTest.java", "test_changes": [{"change_id": "3625_quicktheories_QuickTheories-quicktheories-parent-0.26_e29057c_c0ca192_BooleansTest", "test_sign": "org/quicktheories/quicktheories/generators/BooleansTest.shouldNotShrinkFalse:()V", "class": "BooleansTest", "method": "shouldNotShrinkFalse", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.BooleansTest#shouldNotShrinkFalse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldNotShrinkFalse() {\n Source testee = Booleans.generate();\n assertThatSource(testee).cannotShrink(false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-27"], "old_production_code": "", "new_production_code": "static Source generate() {\n return Arbitrary.pick(Arrays.asList(false, true));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "line_nums_new": "23-25", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3521, "method_coverage_gold": 2.4671, "line_coverage_gold": 2.924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.cannotShrink:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3626_quicktheories_QuickTheories-quicktheories-parent-0.26_e29057c_c0ca192_BooleansTest", "test_sign": "org/quicktheories/quicktheories/generators/BooleansTest.shouldShrinkTrueToFalse:()V", "class": "BooleansTest", "method": "shouldShrinkTrueToFalse", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.BooleansTest#shouldShrinkTrueToFalse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldShrinkTrueToFalse() {\n Source testee = Booleans.generate();\n assertThatSource(testee).shrinksValueTo(true, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "static Source generate() {\n return Arbitrary.pick(Arrays.asList(false, true));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "line_nums_new": "23-25", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3521, "method_coverage_gold": 2.4671, "line_coverage_gold": 2.924, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.shrinksValueTo:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "3627_quicktheories_QuickTheories-quicktheories-parent-0.26_e29057c_c0ca192_BooleansTest", "test_sign": "org/quicktheories/quicktheories/generators/BooleansTest.shouldGenerateBothOptions:()V", "class": "BooleansTest", "method": "shouldGenerateBothOptions", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.BooleansTest#shouldGenerateBothOptions", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateBothOptions() {\n Source testee = Booleans.generate();\n assertThatSource(testee).generatesAllOf(true, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-15"], "old_production_code": "", "new_production_code": "static Source generate() {\n return Arbitrary.pick(Arrays.asList(false, true));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "line_nums_new": "23-25", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.0563, "method_coverage_gold": 2.7961, "line_coverage_gold": 3.0911, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL$Booleans.generate:()Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__e29057c_c0ca192__SourceDSLTest_25227160", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "e29057cfbb92d833b85b9680e38d6d85622b3761", "rev2": "c0ca19267c2729a7dd8677dc9c07fdbc81da3412", "rev1_date": "2015-12-22T14:46:47Z", "rev2_date": "2015-12-22T16:55:43Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/e29057cfbb92d833b85b9680e38d6d85622b3761...c0ca19267c2729a7dd8677dc9c07fdbc81da3412", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/SourceDSLTest.java", "test_changes": [{"change_id": "3628_quicktheories_QuickTheories-quicktheories-parent-0.26_e29057c_c0ca192_SourceDSLTest", "test_sign": "org/quicktheories/quicktheories/generators/SourceDSLTest.shouldGenerateBooleansAsExpected:()V", "class": "SourceDSLTest", "method": "shouldGenerateBooleansAsExpected", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.SourceDSLTest#shouldGenerateBooleansAsExpected", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateBooleansAsExpected() {\n Source testee = booleans().all();\n assertThatSource(testee).generatesAllOf(true, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1084-1088"], "old_production_code": "", "new_production_code": "public static BooleansDSL booleans() {\n return new BooleansDSL();\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.booleans:()Lorg/quicktheories/quicktheories/generators/BooleansDSL", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.booleans:()Lorg/quicktheories/quicktheories/generators/BooleansDSL", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "line_nums_new": "57-59", "dependency_updated": "inserted", "score": 0.4224, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.25, "class": 1.0, "tfidf": 0.0703}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "line_nums_new": "18-20", "dependency_updated": "inserted", "score": 0.2145, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0625, "class": 0.0, "tfidf": 0.3677}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.0563, "method_coverage_gold": 3.2895, "line_coverage_gold": 3.3417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceAssert.generatesAllOf:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/SourceAssert.assertThatSource:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/SourceAssert", "org/quicktheories/quicktheories/generators/BooleansDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/SourceDSL.booleans:()Lorg/quicktheories/quicktheories/generators/BooleansDSL"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/BooleansDSL.all:()Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/BooleansDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/generators/SourceDSL.booleans:()Lorg/quicktheories/quicktheories/generators/BooleansDSL", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/SourceDSL.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Airity2Test_1abc041d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/Airity2Test.java", "test_changes": [{"change_id": "4154_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Airity2Test", "test_sign": "org/quicktheories/quicktheories/Airity2Test.shouldFalisyWhenAssertionsThrownAfterTypeConversion:()V", "class": "Airity2Test", "method": "shouldFalisyWhenAssertionsThrownAfterTypeConversion", "module": "", "junit_selector": "org.quicktheories.quicktheories.Airity2Test#shouldFalisyWhenAssertionsThrownAfterTypeConversion", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFalisyWhenAssertionsThrownAfterTypeConversion() {\n qt().forAll(arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7)).as((a, b) -> a.toString() + b).checkAssert(a -> assertEquals(\"11\", a));\n verifier.isFalsifiedByException();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["125-134"], "old_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "new_production_code": "public Subject1 as(BiFunction mapping) {\n return new MappingTheoryBuilder<>(this.state, combine(), precursor -> this.assumptions.test(precursor._1, precursor._2), precursor -> mapping.apply(precursor._1, precursor._2), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "99-106", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "103-110", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.0676, "method_coverage_gold": 15.4688, "line_coverage_gold": 19.4222, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/QTTester.isFalsifiedByException:()V", "org/quicktheories/quicktheories/Airity2Test.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArbitraryDSL.sequence:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.checkAssert:(Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.as:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Airity3Test_1abc041d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/Airity3Test.java", "test_changes": [{"change_id": "4153_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Airity3Test", "test_sign": "org/quicktheories/quicktheories/Airity3Test.shouldFalisyWhenAssertionsThrownAfterTypeConversion:()V", "class": "Airity3Test", "method": "shouldFalisyWhenAssertionsThrownAfterTypeConversion", "module": "", "junit_selector": "org.quicktheories.quicktheories.Airity3Test#shouldFalisyWhenAssertionsThrownAfterTypeConversion", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFalisyWhenAssertionsThrownAfterTypeConversion() {\n qt().forAll(arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7)).as((a, b, c) -> a.toString() + b + c).checkAssert(a -> assertEquals(\"111\", a));\n verifier.isFalsifiedByException();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["143-153"], "old_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "new_production_code": "public Subject1 as(Function3 mapping) {\n return new MappingTheoryBuilder<>(this.state, combine(), precursor -> this.assumptions.test(precursor._1, precursor._2, precursor._3), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "92-100", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "94-102", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.0676, "method_coverage_gold": 16.25, "line_coverage_gold": 20.3852, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/Airity3Test.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArbitraryDSL.sequence:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/QTTester.isFalsifiedByException:()V", "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.checkAssert:(Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.as:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Airity4Test_1abc041d", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/Airity4Test.java", "test_changes": [{"change_id": "4142_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Airity4Test", "test_sign": "org/quicktheories/quicktheories/Airity4Test.shouldFalisyWhenAssertionsThrownAfterTypeConversion:()V", "class": "Airity4Test", "method": "shouldFalisyWhenAssertionsThrownAfterTypeConversion", "module": "", "junit_selector": "org.quicktheories.quicktheories.Airity4Test#shouldFalisyWhenAssertionsThrownAfterTypeConversion", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFalisyWhenAssertionsThrownAfterTypeConversion() {\n qt().forAll(arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7), arbitrary().sequence(1, 2, 3, 4, 5, 6, 7)).as((a, b, c, d) -> a.toString() + b + c + d).checkAssert(a -> assertEquals(\"111a\", a));\n verifier.isFalsifiedByException();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["135-146"], "old_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(state, combine(), precursor -> assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4), t -> t.toString());\n}", "new_production_code": "public Subject1 as(Function4 mapping) {\n return new MappingTheoryBuilder<>(this.state, combine(), precursor -> this.assumptions.test(precursor._1, precursor._2, precursor._3, precursor._4), tuple -> mapping.apply(tuple._1, tuple._2, tuple._3, tuple._4), t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "86-94", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "88-96", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.7297, "method_coverage_gold": 16.875, "line_coverage_gold": 21.3483, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/Airity4Test.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/ArbitraryDSL.sequence:([Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "org/quicktheories/quicktheories/impl/QTTester.isFalsifiedByException:()V", "org/quicktheories/quicktheories/impl/MappingTheoryBuilder.checkAssert:(Ljava/util/function/Consumer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.as:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject1", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__PairTest_deffcc70", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/api/PairTest.java", "test_changes": [{"change_id": "4158_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_PairTest", "test_sign": "org/quicktheories/quicktheories/api/PairTest.shouldMapValues:()V", "class": "PairTest", "method": "shouldMapValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.api.PairTest#shouldMapValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMapValues() {\n assertThat(Pair.of(1, 2).map(i -> \"A\" + i, i -> \"B\" + i)).isEqualTo(Pair.of(\"A1\", \"B2\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-37"], "old_production_code": "", "new_production_code": "public Pair map(Function fa, Function fb) {\n return Pair.of(fa.apply(_1), fb.apply(_2));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/api/Pair.java", "focal_method_sign": "org/quicktheories/quicktheories/api/Pair.map:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Pair", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/api/Pair.map:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Pair", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Pair.java", "line_nums_new": "58-60", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 1.6892, "method_coverage_gold": 0.625, "line_coverage_gold": 0.9631, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/api/Pair.of:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/api/Pair", "org/quicktheories/quicktheories/api/Pair.equals:(Ljava/lang/Object;)Z", "org/quicktheories/quicktheories/api/Pair.map:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Pair"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/api/Pair.map:(Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Pair", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Pair.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Tuple3Test_deffcc70", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/api/Tuple3Test.java", "test_changes": [{"change_id": "4148_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Tuple3Test", "test_sign": "org/quicktheories/quicktheories/api/Tuple3Test.shouldMapValues:()V", "class": "Tuple3Test", "method": "shouldMapValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.api.Tuple3Test#shouldMapValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMapValues() {\n assertThat(Tuple3.of(1, 2, 3).map(i -> \"A\" + i, i -> \"B\" + i, i -> \"C\" + i)).isEqualTo(Tuple3.of(\"A1\", \"B2\", \"C3\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "public Tuple3 map(Function fa, Function fb, Function fc) {\n return Tuple3.of(fa.apply(_1), fb.apply(_2), fc.apply(_3));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/api/Tuple3.java", "focal_method_sign": "org/quicktheories/quicktheories/api/Tuple3.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple3", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/api/Tuple3.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple3", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple3.java", "line_nums_new": "64-66", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 2.027, "method_coverage_gold": 0.625, "line_coverage_gold": 1.1236, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/api/Tuple3.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple3", "org/quicktheories/quicktheories/api/Tuple3.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/api/Tuple3", "org/quicktheories/quicktheories/api/Tuple3.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/api/Tuple3.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple3", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Tuple4Test_deffcc70", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/api/Tuple4Test.java", "test_changes": [{"change_id": "4141_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Tuple4Test", "test_sign": "org/quicktheories/quicktheories/api/Tuple4Test.shouldMapValues:()V", "class": "Tuple4Test", "method": "shouldMapValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.api.Tuple4Test#shouldMapValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMapValues() {\n assertThat(Tuple4.of(1, 2, 3, 4).map(i -> \"A\" + i, i -> \"B\" + i, i -> \"C\" + i, i -> \"D\" + i)).isEqualTo(Tuple4.of(\"A1\", \"B2\", \"C3\", \"D4\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-42"], "old_production_code": "", "new_production_code": "public Tuple4 map(Function fa, Function fb, Function fc, Function fd) {\n return Tuple4.of(fa.apply(_1), fb.apply(_2), fc.apply(_3), fd.apply(_4));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/api/Tuple4.java", "focal_method_sign": "org/quicktheories/quicktheories/api/Tuple4.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple4", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/api/Tuple4.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple4", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple4.java", "line_nums_new": "69-72", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 2.3649, "method_coverage_gold": 0.625, "line_coverage_gold": 1.2841, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/api/Tuple4.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/api/Tuple4", "org/quicktheories/quicktheories/api/Tuple4.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple4", "org/quicktheories/quicktheories/api/Tuple4.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/api/Tuple4.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple4", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__Tuple5Test_deffcc70", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/api/Tuple5Test.java", "test_changes": [{"change_id": "4145_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_Tuple5Test", "test_sign": "org/quicktheories/quicktheories/api/Tuple5Test.shouldMapValues:()V", "class": "Tuple5Test", "method": "shouldMapValues", "module": "", "junit_selector": "org.quicktheories.quicktheories.api.Tuple5Test#shouldMapValues", "old_test_code": null, "new_test_code": "@Test\npublic void shouldMapValues() {\n assertThat(Tuple5.of(1, 2, 3, 4, 5).map(i -> \"A\" + i, i -> \"B\" + i, i -> \"C\" + i, i -> \"D\" + i, i -> \"E\" + i)).isEqualTo(Tuple5.of(\"A1\", \"B2\", \"C3\", \"D4\", \"E5\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-25"], "old_production_code": "", "new_production_code": "public Tuple5 map(Function fa, Function fb, Function fc, Function fd, Function fe) {\n return Tuple5.of(fa.apply(_1), fb.apply(_2), fc.apply(_3), fd.apply(_4), fe.apply(_5));\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/api/Tuple5.java", "focal_method_sign": "org/quicktheories/quicktheories/api/Tuple5.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/api/Tuple5.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple5", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple5.java", "line_nums_new": "48-51", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 2.7027, "method_coverage_gold": 0.625, "line_coverage_gold": 1.4446, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/api/Tuple5.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple5", "org/quicktheories/quicktheories/api/Tuple5.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lorg/quicktheories/quicktheories/api/Tuple5", "org/quicktheories/quicktheories/api/Tuple5.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/api/Tuple5.map:(Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Tuple5", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/api/Tuple5.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__ToStringTest_92516db8", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/core/ToStringTest.java", "test_changes": [{"change_id": "4143_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringForAirity2:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringForAirity2", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringForAirity2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringForAirity2() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l)).check((a, b) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-41"], "old_production_code": "", "new_production_code": "public Source describedAs(AsString asString) {\n return new Source<>(this.prngToValue, this.shrink, asString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "focal_method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1349, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1667, "class": 0.0, "tfidf": 0.0477}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "68-74", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "71-77", "dependency_updated": "updated", "score": 0.1196, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0833, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 15.1562, "line_coverage_gold": 16.8539, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4144_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldPrintReadableRepresentationOfArrays:()V", "class": "ToStringTest", "method": "shouldPrintReadableRepresentationOfArrays", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldPrintReadableRepresentationOfArrays", "old_test_code": null, "new_test_code": "@Test\npublic void shouldPrintReadableRepresentationOfArrays() {\n try {\n qt().withFixedSeed(5).forAll(arrays().ofStrings(strings().ascii().ofLength(1)).withLength(1)).check(i -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(Arrays.deepToString(new String[] { \"!\" }));\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-147"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1411, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0976, "class": 0.0, "tfidf": 0.0312}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "132-138", "dependency_updated": "inserted", "score": 0.0886, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0488, "class": 0.0, "tfidf": 0.0426}}], "coverage_gold": 0.6521739130434783, "branch_coverage_gold": 14.1892, "method_coverage_gold": 20.7812, "line_coverage_gold": 23.6758, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.withFixedSeed:(J)Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder.ofLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.strings:()Lorg/quicktheories/quicktheories/generators/StringsDSL", "org/quicktheories/quicktheories/generators/StringsDSL.ascii:()Lorg/quicktheories/quicktheories/generators/StringsDSL$StringGeneratorBuilder", "org/quicktheories/quicktheories/generators/SourceDSL.arrays:()Lorg/quicktheories/quicktheories/generators/ArraysDSL", "org/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder.withLength:(I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/ArraysDSL.ofStrings:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/generators/ArraysDSL$ArrayGeneratorBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4149_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringWhenConvertingWithPrecursor:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringWhenConvertingWithPrecursor", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringWhenConvertingWithPrecursor", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringWhenConvertingWithPrecursor() {\n try {\n qt().forAll(arbitrary().constant(42).describedAs(l -> \"EXPECTED\" + l)).asWithPrecursor(i -> \"astring\").check((a, b) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED42\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-86"], "old_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n Generator> g = (prng, step) -> {\n P p = this.ps.next(prng, step);\n T t = this.conversion.apply(p);\n return Pair.of(p, mapping.apply(t));\n };\n Shrink> s = (original, context) -> ps.shrink(original._1, context).map(p -> Pair.of(p, conversion.andThen(mapping).apply(p)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder1(state, gen, assumptions, a -> a.toString(), b -> b.toString());\n}", "new_production_code": "public Subject2 asWithPrecursor(Function mapping) {\n return asWithPrecursor(mapping, t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_old": "82-97", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "84-86", "dependency_updated": "updated", "score": 0.2299, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.283, "class": 0.0, "tfidf": 0.0289}}, {"dep_id": 3, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1599, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.1509, "class": 0.0, "tfidf": 0.0284}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_old": "40-45", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "line_nums_new": "35-40", "dependency_updated": "updated", "score": 0.1573, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0755, "class": 0.0, "tfidf": 0.0158}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1056, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0566, "class": 0.0, "tfidf": 0.0341}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 12.5, "line_coverage_gold": 15.5698, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.check:(Ljava/util/function/BiPredicate;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder1.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.asWithPrecursor:(Ljava/util/function/Function;)Lorg/quicktheories/quicktheories/api/Subject2", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4150_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity3:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity3", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity3", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity3() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(3).describedAs(l -> \"EXPECTED\" + l)).asWithPrecursor((a, b, c) -> \"astring\").check((a, b, c, d) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2, EXPECTED3\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["103-117"], "old_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple3.of(original._1, original._2, original._3), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder3(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), t -> t.toString());\n}", "new_production_code": "public Subject4 asWithPrecursor(Function3 mapping) {\n return this.asWithPrecursor(mapping, t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "110-122", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "115-118", "dependency_updated": "updated", "score": 0.2173, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2381, "class": 0.0, "tfidf": 0.0068}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1622, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.127, "class": 0.0, "tfidf": 0.0548}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_old": "44-50", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "line_nums_new": "34-40", "dependency_updated": "updated", "score": 0.1541, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0635, "class": 0.0, "tfidf": 0.0104}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 17.1875, "line_coverage_gold": 19.8234, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function3;)Lorg/quicktheories/quicktheories/api/Subject4", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4151_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringForAirity1:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringForAirity1", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringForAirity1", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringForAirity1() {\n try {\n qt().forAll(arbitrary().constant(42).describedAs(l -> \"EXPECTED\" + l)).check(l -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED42\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-27"], "old_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true, x -> x, a -> a.toString());\n}", "new_production_code": "public TheoryBuilder forAll(final Source values) {\n return new TheoryBuilder<>(state, values, a -> true);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "focal_method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_old": "88-91", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "line_nums_new": "88-90", "dependency_updated": "updated", "score": 0.1444, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0359}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "line_nums_new": "132-138", "dependency_updated": "inserted", "score": 0.1311, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0833, "class": 0.0, "tfidf": 0.049}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1308, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1667, "class": 0.0, "tfidf": 0.0299}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.027, "method_coverage_gold": 10.4688, "line_coverage_gold": 13.4029, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder.check:(Ljava/util/function/Predicate;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/QuickTheory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4152_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringForAirity4:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringForAirity4", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringForAirity4", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringForAirity4() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(3).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(4).describedAs(l -> \"EXPECTED\" + l)).check((a, b, c, d) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2, EXPECTED3, EXPECTED4\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["58-72"], "old_production_code": "", "new_production_code": "public Source describedAs(AsString asString) {\n return new Source<>(this.prngToValue, this.shrink, asString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "focal_method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1379, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1667, "class": 0.0, "tfidf": 0.0601}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "126-134", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "155-162", "dependency_updated": "updated", "score": 0.1196, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0833, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 3.3784, "method_coverage_gold": 16.7188, "line_coverage_gold": 19.4222, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate4;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4155_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity2:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity2", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity2", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity2() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l)).asWithPrecursor((a, b) -> \"astring\").check((a, b, c) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-101"], "old_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n Generator> g = (prng, step) -> {\n A a = this.as.next(prng, step);\n B b = this.bs.next(prng, step);\n return Tuple3.of(a, b, mapping.apply(a, b));\n };\n Shrink> s = (original, context) -> joinShrunkStreams().shrink(Pair.of(original._1, original._2), context).map(p -> Tuple3.of(p._1, p._2, mapping.apply(p._1, p._2)));\n Source> gen = Source.of(g).withShrinker(s);\n return new PrecursorTheoryBuilder2(state, gen, assumptions, a -> a.toString(), b -> b.toString(), t -> t.toString());\n}", "new_production_code": "public Subject3 asWithPrecursor(BiFunction mapping) {\n return this.asWithPrecursor(mapping, t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_old": "115-130", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "line_nums_new": "123-125", "dependency_updated": "updated", "score": 0.2174, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2381, "class": 0.0, "tfidf": 0.0074}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1601, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.127, "class": 0.0, "tfidf": 0.0462}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_old": "42-47", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "line_nums_new": "35-40", "dependency_updated": "updated", "score": 0.1553, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0635, "class": 0.0, "tfidf": 0.0157}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 15.4688, "line_coverage_gold": 18.2183, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder2", "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder2.asWithPrecursor:(Ljava/util/function/BiFunction;)Lorg/quicktheories/quicktheories/api/Subject3", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder2.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4156_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity4:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity4", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity4", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringWhenConvertingWithPrecursorForAirity4() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(3).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(4).describedAs(l -> \"EXPECTED\" + l)).asWithPrecursor((a, b, c, d) -> \"astring\").check((a, b, c, d, e) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2, EXPECTED3, EXPECTED4\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["119-134"], "old_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n Shrink> shrink = (original, context) -> combineShrinks().shrink(Tuple4.of(original._1, original._2, original._3, original._4), context).map(precursor -> precursor.extend(mapping));\n Source> gen = Source.of(generatePrecursorValueTuple(mapping)).withShrinker(shrink);\n return new PrecursorTheoryBuilder4(state, gen, assumptions, a -> a.toString(), b -> b.toString(), c -> c.toString(), d -> d.toString(), t -> t.toString());\n}", "new_production_code": "public Subject5 asWithPrecursor(Function4 mapping) {\n return asWithPrecursor(mapping, t -> t.toString());\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "focal_method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_old": "103-118", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "line_nums_new": "109-112", "dependency_updated": "updated", "score": 0.2169, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2381, "class": 0.0, "tfidf": 0.005}}, {"dep_id": 2, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1632, "signal_scores": {"nc": 0.0, "lcs_u": 0.7273, "ed": 0.127, "class": 0.0, "tfidf": 0.0593}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_old": "48-55", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "line_nums_new": "36-43", "dependency_updated": "updated", "score": 0.1534, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.0635, "class": 0.0, "tfidf": 0.0073}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 17.9688, "line_coverage_gold": 21.3483, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder4", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder4.asWithPrecursor:(Lorg/quicktheories/quicktheories/api/Function4;)Lorg/quicktheories/quicktheories/api/Subject5", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.check:(Lorg/quicktheories/quicktheories/api/Predicate5;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/PrecursorTheoryBuilder4.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "4157_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ToStringTest", "test_sign": "org/quicktheories/quicktheories/core/ToStringTest.shouldRetainCustomToStringForAirity3:()V", "class": "ToStringTest", "method": "shouldRetainCustomToStringForAirity3", "module": "", "junit_selector": "org.quicktheories.quicktheories.core.ToStringTest#shouldRetainCustomToStringForAirity3", "old_test_code": null, "new_test_code": "@Test\npublic void shouldRetainCustomToStringForAirity3() {\n try {\n qt().forAll(arbitrary().constant(1).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(2).describedAs(l -> \"EXPECTED\" + l), arbitrary().constant(3).describedAs(l -> \"EXPECTED\" + l)).check((a, b, c) -> false);\n failIfReached();\n } catch (final AssertionError error) {\n assertThat(error).hasMessageContaining(\"EXPECTED1, EXPECTED2, EXPECTED3\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-56"], "old_production_code": "", "new_production_code": "public Source describedAs(AsString asString) {\n return new Source<>(this.prngToValue, this.shrink, asString);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "focal_method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.1369, "signal_scores": {"nc": 0.0, "lcs_u": 0.5455, "ed": 0.1667, "class": 0.0, "tfidf": 0.0559}}, {"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_old": "130-138", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "line_nums_new": "159-165", "dependency_updated": "updated", "score": 0.1196, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0833, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.3784, "method_coverage_gold": 15.9375, "line_coverage_gold": 17.8973, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/ArbitraryDSL.constant:(Ljava/lang/Object;)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "org/quicktheories/quicktheories/QuickTheory.qt:()Lorg/quicktheories/quicktheories/QuickTheory", "org/quicktheories/quicktheories/QuickTheory.forAll:(Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;Lorg/quicktheories/quicktheories/core/Source;)Lorg/quicktheories/quicktheories/impl/TheoryBuilder3", "org/quicktheories/quicktheories/generators/SourceDSL.arbitrary:()Lorg/quicktheories/quicktheories/generators/ArbitraryDSL", "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/impl/TheoryBuilder3.check:(Lorg/quicktheories/quicktheories/api/Predicate3;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/impl/TheoryBuilder3.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.describedAs:(Lorg/quicktheories/quicktheories/api/AsString;)Lorg/quicktheories/quicktheories/core/Source", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "quicktheories_QuickTheories-quicktheories-parent-0.26__f7a1b19_7d0ce44__ArraysTest_2429d305", "project_name": "quicktheories_QuickTheories-quicktheories-parent-0.26", "git_clone_url": "https://github.com/quicktheories/QuickTheories.git", "rev1": "f7a1b19100e192269212def1a98f3f9148867126", "rev2": "7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "rev1_date": "2015-12-21T09:38:21Z", "rev2_date": "2015-12-21T09:45:46Z", "git_diff_url": "https://github.com/quicktheories/QuickTheories/compare/f7a1b19100e192269212def1a98f3f9148867126...7d0ce44518f6b77fae1aa6af6d777b8d8ee07fa8", "test_file": "src/test/java/org/quicktheories/quicktheories/generators/ArraysTest.java", "test_changes": [{"change_id": "4147_quicktheories_QuickTheories-quicktheories-parent-0.26_f7a1b19_7d0ce44_ArraysTest", "test_sign": "org/quicktheories/quicktheories/generators/ArraysTest.shouldDescribeArrayContents:()V", "class": "ArraysTest", "method": "shouldDescribeArrayContents", "module": "", "junit_selector": "org.quicktheories.quicktheories.generators.ArraysTest#shouldDescribeArrayContents", "old_test_code": null, "new_test_code": "@Test\npublic void shouldDescribeArrayContents() {\n Source testee = Arrays.arraysOf(Integers.range(0, 1), Integer.class, 2);\n Integer[] anArray = { 1, 2, 3 };\n assertThat(testee.asString(anArray)).isEqualTo(\"[1, 2, 3]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-114"], "old_production_code": "@SuppressWarnings(\"unchecked\")\nstatic Source arraysOf(Source values, Class c, int length) {\n return Lists.listsOf(values, Lists.arrayListCollector(), length).as(l -> l.toArray((T[]) Array.newInstance(c, length)), a -> java.util.Arrays.asList(a));\n}", "new_production_code": "static Source arraysOf(Source values, Class c, int length) {\n return arraysOf(values, c, length, length);\n}", "focal_file_path": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "focal_method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;I)Lorg/quicktheories/quicktheories/core/Source", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;I)Lorg/quicktheories/quicktheories/core/Source", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "line_nums_old": "9-15", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "line_nums_new": "10-13", "dependency_updated": "updated", "score": 0.365, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.2222, "class": 1.0, "tfidf": 0.0331}}, {"dep_id": 1, "method_sign": "org/quicktheories/quicktheories/core/Source.asString:(Ljava/lang/Object;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "line_nums_new": "169-172", "dependency_updated": "inserted", "score": 0.1618, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1481, "class": 0.0, "tfidf": 0.1152}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.6757, "method_coverage_gold": 3.4375, "line_coverage_gold": 2.9695, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;I)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/generators/Integers.range:(II)Lorg/quicktheories/quicktheories/core/Source", "org/quicktheories/quicktheories/core/Source.asString:(Ljava/lang/Object;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/quicktheories/quicktheories/generators/Arrays.arraysOf:(Lorg/quicktheories/quicktheories/core/Source;Ljava/lang/Class;I)Lorg/quicktheories/quicktheories/core/Source", "change_type": "UPDATE", "file_path_old": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "file_path_new": "src/main/java/org/quicktheories/quicktheories/generators/Arrays.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/quicktheories/quicktheories/core/Source.asString:(Ljava/lang/Object;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/quicktheories/quicktheories/core/Source.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "quicktheories-parent-0.26", "java_version": 8} {"task_id": "reactiverse_es4x-0.22.0__4c9df86_687d759__MappingTest_77312d8d", "project_name": "reactiverse_es4x-0.22.0", "git_clone_url": "https://github.com/reactiverse/es4x.git", "rev1": "4c9df8657ba8beb60f384ce99111689cce11484e", "rev2": "687d7597f3d7db8c0cfd3d528fd3460c83143768", "rev1_date": "2021-09-10T19:49:02Z", "rev2_date": "2021-09-10T19:50:36Z", "git_diff_url": "https://github.com/reactiverse/es4x/compare/4c9df8657ba8beb60f384ce99111689cce11484e...687d7597f3d7db8c0cfd3d528fd3460c83143768", "test_file": "es4x/src/test/java/io/reactiverse/es4x/MappingTest.java", "test_changes": [{"change_id": "80_reactiverse_es4x-0.22.0_4c9df86_687d759_MappingTest", "test_sign": "io/reactiverse/es4x/MappingTest.testMapping:()V", "class": "MappingTest", "method": "testMapping", "module": "es4x", "junit_selector": "io.reactiverse.es4x.MappingTest#testMapping", "old_test_code": null, "new_test_code": "@Test\npublic void testMapping() throws IOException {\n SourceMap source = new SourceMap(new String(Files.readAllBytes(new File(\"src/test/resources/bundle.js.map\").toPath())));\n source.eachMapping(System.out::println);\n System.out.println(source.getMapping(44, 0));\n System.out.println(source.getMapping(60, 0));\n System.out.println(source.getMapping(80, 0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-54"], "old_production_code": "", "new_production_code": "public String toString() {\n return \"Mapping \" + generatedLine + \":\" + generatedColumn + \" -> \" + sourceFileName + \":\" + sourceLine + \":\" + sourceColumn;\n}", "focal_file_path": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/Mapping.java", "focal_method_sign": "io/reactiverse/es4x/sourcemap/Mapping.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/reactiverse/es4x/sourcemap/Mapping.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/Mapping.java", "line_nums_new": "23-25", "dependency_updated": "inserted", "score": 0.3204, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.375, "class": 1.0, "tfidf": 0.018}}, {"dep_id": 2, "method_sign": "io/reactiverse/es4x/sourcemap/SourceMap.getMapping:(II)Lio/reactiverse/es4x/sourcemap/Mapping", "file_path_old": null, "line_nums_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/SourceMap.java", "line_nums_new": "46-64", "dependency_updated": "inserted", "score": 0.2413, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.7, "class": 0.0, "tfidf": 0.0105}}, {"dep_id": 1, "method_sign": "io/reactiverse/es4x/sourcemap/SourceMap.eachMapping:(Ljava/util/function/Consumer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/SourceMap.java", "line_nums_new": "66-72", "dependency_updated": "inserted", "score": 0.2188, "signal_scores": {"nc": 0.0, "lcs_u": 0.6364, "ed": 0.6364, "class": 0.0, "tfidf": 0.0072}}], "coverage_gold": 0.625, "branch_coverage_gold": 7.3913, "method_coverage_gold": 11.6379, "line_coverage_gold": 8.2095, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/reactiverse/es4x/sourcemap/SourceMap.getMapping:(II)Lio/reactiverse/es4x/sourcemap/Mapping", "io/reactiverse/es4x/sourcemap/SourceMap.eachMapping:(Ljava/util/function/Consumer;)V", "io/reactiverse/es4x/sourcemap/Mapping.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/reactiverse/es4x/sourcemap/Mapping.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/Mapping.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/reactiverse/es4x/sourcemap/SourceMap.eachMapping:(Ljava/util/function/Consumer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/SourceMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/reactiverse/es4x/sourcemap/SourceMap.getMapping:(II)Lio/reactiverse/es4x/sourcemap/Mapping", "change_type": "ADD", "file_path_old": null, "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/sourcemap/SourceMap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.22.0", "java_version": 11} {"task_id": "reactiverse_es4x-0.22.0__755c644_9903184__FactoryMJSTest_038085f0", "project_name": "reactiverse_es4x-0.22.0", "git_clone_url": "https://github.com/reactiverse/es4x.git", "rev1": "755c64422eb72c00bd24f9e67d7f961131a2dff7", "rev2": "9903184f6a6973e47a6375dc76d3e60b1d79f05e", "rev1_date": "2021-11-10T13:08:11Z", "rev2_date": "2021-11-10T13:12:07Z", "git_diff_url": "https://github.com/reactiverse/es4x/compare/755c64422eb72c00bd24f9e67d7f961131a2dff7...9903184f6a6973e47a6375dc76d3e60b1d79f05e", "test_file": "es4x/src/test/java/io/reactiverse/es4x/test/FactoryMJSTest.java", "test_changes": [{"change_id": "86_reactiverse_es4x-0.22.0_755c644_9903184_FactoryMJSTest", "test_sign": "io/reactiverse/es4x/test/FactoryMJSTest.deployUnderSubdirectoryAndPathsStillBeCorrect:(Lio/vertx/ext/unit/TestContext;)V", "class": "FactoryMJSTest", "method": "deployUnderSubdirectoryAndPathsStillBeCorrect", "module": "es4x", "junit_selector": "io.reactiverse.es4x.test.FactoryMJSTest#deployUnderSubdirectoryAndPathsStillBeCorrect", "old_test_code": null, "new_test_code": "@Test(timeout = 30000)\npublic void deployUnderSubdirectoryAndPathsStillBeCorrect(TestContext ctx) {\n final Async async = ctx.async();\n rule.vertx().deployVerticle(\"mjs:./lib/main.spec.mjs\", deploy -> {\n if (deploy.failed()) {\n deploy.cause().printStackTrace();\n }\n ctx.assertTrue(deploy.succeeded());\n rule.vertx().setTimer(1000L, t -> rule.vertx().undeploy(deploy.result(), undeploy -> {\n ctx.assertTrue(undeploy.succeeded());\n async.complete();\n }));\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-69"], "old_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String fsVerticleName = VerticleFactory.removePrefix(verticleName);\n if (\">\".equals(fsVerticleName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, fsVerticleName);\n });\n }\n}", "new_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String strippedName = toNixPath(VerticleFactory.removePrefix(verticleName));\n if (\">\".equals(strippedName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, mainScript(strippedName));\n });\n }\n}", "focal_file_path": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "focal_method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_old": "110-130", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_new": "109-129", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 14.3059, "method_coverage_gold": 30.0, "line_coverage_gold": 24.2571, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "change_type": "UPDATE", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0.22.0", "java_version": 11} {"task_id": "reactiverse_es4x-0.22.0__755c644_9903184__VerticleGlobalsTest_f62d9359", "project_name": "reactiverse_es4x-0.22.0", "git_clone_url": "https://github.com/reactiverse/es4x.git", "rev1": "755c64422eb72c00bd24f9e67d7f961131a2dff7", "rev2": "9903184f6a6973e47a6375dc76d3e60b1d79f05e", "rev1_date": "2021-11-10T13:08:11Z", "rev2_date": "2021-11-10T13:12:07Z", "git_diff_url": "https://github.com/reactiverse/es4x/compare/755c64422eb72c00bd24f9e67d7f961131a2dff7...9903184f6a6973e47a6375dc76d3e60b1d79f05e", "test_file": "es4x/src/test/java/io/reactiverse/es4x/test/VerticleGlobalsTest.java", "test_changes": [{"change_id": "85_reactiverse_es4x-0.22.0_755c644_9903184_VerticleGlobalsTest", "test_sign": "io/reactiverse/es4x/test/VerticleGlobalsTest.testThatGlobalObjectsArePresentMJS:(Lio/vertx/ext/unit/TestContext;)V", "class": "VerticleGlobalsTest", "method": "testThatGlobalObjectsArePresentMJS", "module": "es4x", "junit_selector": "io.reactiverse.es4x.test.VerticleGlobalsTest#testThatGlobalObjectsArePresentMJS", "old_test_code": null, "new_test_code": "@Test(timeout = 30000)\npublic void testThatGlobalObjectsArePresentMJS(TestContext ctx) {\n final Async async = ctx.async();\n rule.vertx().deployVerticle(\"mjs:globals-present.js\", deploy -> {\n if (deploy.failed()) {\n ctx.fail(deploy.cause());\n } else {\n ctx.assertTrue(deploy.succeeded());\n rule.vertx().setTimer(1000L, t -> rule.vertx().undeploy(deploy.result(), undeploy -> {\n ctx.assertTrue(undeploy.succeeded());\n async.complete();\n }));\n }\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-31"], "old_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String fsVerticleName = VerticleFactory.removePrefix(verticleName);\n if (\">\".equals(fsVerticleName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, fsVerticleName);\n });\n }\n}", "new_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String strippedName = toNixPath(VerticleFactory.removePrefix(verticleName));\n if (\">\".equals(strippedName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, mainScript(strippedName));\n });\n }\n}", "focal_file_path": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "focal_method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_old": "110-130", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_new": "109-129", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 11.6147, "method_coverage_gold": 28.3333, "line_coverage_gold": 21.8383, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "change_type": "UPDATE", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "87_reactiverse_es4x-0.22.0_755c644_9903184_VerticleGlobalsTest", "test_sign": "io/reactiverse/es4x/test/VerticleGlobalsTest.testThatGlobalObjectsArePresentJS:(Lio/vertx/ext/unit/TestContext;)V", "class": "VerticleGlobalsTest", "method": "testThatGlobalObjectsArePresentJS", "module": "es4x", "junit_selector": "io.reactiverse.es4x.test.VerticleGlobalsTest#testThatGlobalObjectsArePresentJS", "old_test_code": null, "new_test_code": "@Test(timeout = 30000)\npublic void testThatGlobalObjectsArePresentJS(TestContext ctx) {\n final Async async = ctx.async();\n rule.vertx().deployVerticle(\"js:globals-present.js\", deploy -> {\n if (deploy.failed()) {\n ctx.fail(deploy.cause());\n } else {\n ctx.assertTrue(deploy.succeeded());\n rule.vertx().setTimer(1000L, t -> rule.vertx().undeploy(deploy.result(), undeploy -> {\n ctx.assertTrue(undeploy.succeeded());\n async.complete();\n }));\n }\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-47"], "old_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String fsVerticleName = VerticleFactory.removePrefix(verticleName);\n if (\">\".equals(fsVerticleName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, fsVerticleName);\n });\n }\n}", "new_production_code": "@Override\npublic final void createVerticle(String verticleName, ClassLoader classLoader, Promise> promise) {\n final String strippedName = toNixPath(VerticleFactory.removePrefix(verticleName));\n if (\">\".equals(strippedName)) {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return new REPLVerticle(runtime);\n });\n } else {\n promise.complete(() -> {\n final Runtime runtime = createRuntime(engine);\n return createVerticle(runtime, mainScript(strippedName));\n });\n }\n}", "focal_file_path": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "focal_method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_old": "110-130", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "line_nums_new": "109-129", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 11.0482, "method_coverage_gold": 28.3333, "line_coverage_gold": 21.009, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/reactiverse/es4x/ESVerticleFactory.createVerticle:(Ljava/lang/String;Ljava/lang/ClassLoader;Lio/vertx/core/Promise;)V", "change_type": "UPDATE", "file_path_old": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "file_path_new": "es4x/src/main/java/io/reactiverse/es4x/ESVerticleFactory.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.22.0", "java_version": 11} {"task_id": "restfb_restfb-v2026.1.0-RC9__41f2fe7_c8fbe79__FacebookClientTest_0ed8bc79", "project_name": "restfb_restfb-v2026.1.0-RC9", "git_clone_url": "https://github.com/restfb/restfb.git", "rev1": "41f2fe75e09e0ef43a68a9b633deabc2f9580405", "rev2": "c8fbe7964cf0ef98e544155d3e81e652808d556d", "rev1_date": "2024-06-19T15:52:43Z", "rev2_date": "2024-06-19T19:53:25Z", "git_diff_url": "https://github.com/restfb/restfb/compare/41f2fe75e09e0ef43a68a9b633deabc2f9580405...c8fbe7964cf0ef98e544155d3e81e652808d556d", "test_file": "src/test/java/com/restfb/FacebookClientTest.java", "test_changes": [{"change_id": "91_restfb_restfb-v2026.1.0-RC9_41f2fe7_c8fbe79_FacebookClientTest", "test_sign": "com/restfb/FacebookClientTest.checkThreadsDialogURLWithState:()V", "class": "FacebookClientTest", "method": "checkThreadsDialogURLWithState", "module": "", "junit_selector": "com.restfb.FacebookClientTest#checkThreadsDialogURLWithState", "old_test_code": null, "new_test_code": "@Test\nvoid checkThreadsDialogURLWithState() {\n FacebookClient client = new DefaultThreadsClient(Version.LATEST);\n String loginDialogUrlString = client.getLoginDialogUrl(\"1234\", \"http://www.example.com\", new ScopeBuilder(true), \"state3456\");\n assertThat(loginDialogUrlString).isEqualTo(\"https://www.threads.net/oauth/authorize?client_id=1234&redirect_uri=http%3A%2F%2Fwww.example.com&state=state3456&response_type=code\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["446-453"], "old_production_code": "", "new_production_code": "@Override\npublic String getLoginDialogUrl(String appId, String redirectUri, ScopeBuilder scope, String state, Parameter... parameters) {\n List parameterList = new ArrayList<>();\n Collections.addAll(parameterList, parameters);\n parameterList.add(Parameter.with(\"response_type\", CODE));\n return getGenericLoginDialogUrl(appId, redirectUri, scope, () -> getFacebookEndpointUrls().getThreadsBaseEndpoint() + \"/oauth/authorize\", state, parameterList);\n}", "focal_file_path": "src/main/java/com/restfb/DefaultThreadsClient.java", "focal_method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;Ljava/lang/String;[Lcom/restfb/Parameter;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;Ljava/lang/String;[Lcom/restfb/Parameter;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/restfb/DefaultThreadsClient.java", "line_nums_new": "61-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3384, "method_coverage_gold": 0.5952, "line_coverage_gold": 1.0144, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;Ljava/lang/String;[Lcom/restfb/Parameter;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;Ljava/lang/String;[Lcom/restfb/Parameter;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/restfb/DefaultThreadsClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "92_restfb_restfb-v2026.1.0-RC9_41f2fe7_c8fbe79_FacebookClientTest", "test_sign": "com/restfb/FacebookClientTest.checkThreadsDialogURLAdditionalParameters:()V", "class": "FacebookClientTest", "method": "checkThreadsDialogURLAdditionalParameters", "module": "", "junit_selector": "com.restfb.FacebookClientTest#checkThreadsDialogURLAdditionalParameters", "old_test_code": null, "new_test_code": "@Test\nvoid checkThreadsDialogURLAdditionalParameters() {\n FacebookClient client = new DefaultThreadsClient(Version.LATEST);\n String loginDialogUrlString = client.getLoginDialogUrl(\"1234\", \"http://www.example.com\", new ScopeBuilder(true), Parameter.with(\"state\", \"abcd\"));\n assertThat(loginDialogUrlString).isEqualTo(\"https://www.threads.net/oauth/authorize?client_id=1234&redirect_uri=http%3A%2F%2Fwww.example.com&state=abcd&response_type=code\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["473-480"], "old_production_code": "", "new_production_code": "@Override\npublic String getLoginDialogUrl(String appId, String redirectUri, ScopeBuilder scope, Parameter... parameters) {\n return getLoginDialogUrl(appId, redirectUri, scope, null, parameters);\n}", "focal_file_path": "src/main/java/com/restfb/DefaultThreadsClient.java", "focal_method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/restfb/DefaultThreadsClient.java", "line_nums_new": "71-74", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3384, "method_coverage_gold": 0.6063, "line_coverage_gold": 1.0144, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/restfb/Parameter.with:(Ljava/lang/String;Ljava/lang/Object;)Lcom/restfb/Parameter", "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/restfb/DefaultThreadsClient.getLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/restfb/DefaultThreadsClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2026.1.0-RC9", "java_version": 11} {"task_id": "restfb_restfb-v2026.1.0-RC9__dbf408a_e59b455__FacebookClientTest_bfbf9e3e", "project_name": "restfb_restfb-v2026.1.0-RC9", "git_clone_url": "https://github.com/restfb/restfb.git", "rev1": "dbf408af0ddbe9bc2116ba255cbcb1ab60f7ff10", "rev2": "e59b455b659c6afb46cc4e9d055a68372ecd73c7", "rev1_date": "2024-06-12T06:26:25Z", "rev2_date": "2024-06-12T10:28:55Z", "git_diff_url": "https://github.com/restfb/restfb/compare/dbf408af0ddbe9bc2116ba255cbcb1ab60f7ff10...e59b455b659c6afb46cc4e9d055a68372ecd73c7", "test_file": "src/test/java/com/restfb/FacebookClientTest.java", "test_changes": [{"change_id": "154_restfb_restfb-v2026.1.0-RC9_dbf408a_e59b455_FacebookClientTest", "test_sign": "com/restfb/FacebookClientTest.checkInstagramDialogURLAdditionalParameters:()V", "class": "FacebookClientTest", "method": "checkInstagramDialogURLAdditionalParameters", "module": "", "junit_selector": "com.restfb.FacebookClientTest#checkInstagramDialogURLAdditionalParameters", "old_test_code": null, "new_test_code": "@Test\nvoid checkInstagramDialogURLAdditionalParameters() {\n FacebookClient client = new DefaultFacebookClient(Version.LATEST);\n String loginDialogUrlString = client.getInstagramLoginDialogUrl(\"1234\", \"http://www.example.com\", new ScopeBuilder(true), Parameter.with(\"state\", \"abcd\"));\n assertThat(loginDialogUrlString).isEqualTo(\"https://api.instagram.com/oauth/authorize?client_id=1234&redirect_uri=http%3A%2F%2Fwww.example.com&state=abcd&response_type=code\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["399-406"], "old_production_code": "", "new_production_code": "@Override\npublic String getInstagramLoginDialogUrl(String instagramAppId, String redirectUri, ScopeBuilder scope, Parameter... parameters) {\n List parameterList = new ArrayList<>();\n Collections.addAll(parameterList, parameters);\n parameterList.add(Parameter.with(\"response_type\", \"code\"));\n return getGenericLoginDialogUrl(instagramAppId, redirectUri, scope, () -> getFacebookEndpointUrls().getInstagramApiEndpoint() + \"/oauth/authorize\", parameterList);\n}", "focal_file_path": "src/main/java/com/restfb/DefaultFacebookClient.java", "focal_method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/restfb/DefaultFacebookClient.java", "line_nums_new": "624-630", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2464, "method_coverage_gold": 0.5752, "line_coverage_gold": 0.9594, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/restfb/Parameter.with:(Ljava/lang/String;Ljava/lang/Object;)Lcom/restfb/Parameter", "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/restfb/DefaultFacebookClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "155_restfb_restfb-v2026.1.0-RC9_dbf408a_e59b455_FacebookClientTest", "test_sign": "com/restfb/FacebookClientTest.checkInstagramDialogURL:()V", "class": "FacebookClientTest", "method": "checkInstagramDialogURL", "module": "", "junit_selector": "com.restfb.FacebookClientTest#checkInstagramDialogURL", "old_test_code": null, "new_test_code": "@Test\nvoid checkInstagramDialogURL() {\n FacebookClient client = new DefaultFacebookClient(Version.LATEST);\n String loginDialogUrlString = client.getInstagramLoginDialogUrl(\"1234\", \"http://www.example.com\", new ScopeBuilder(true));\n assertThat(loginDialogUrlString).isEqualTo(\"https://api.instagram.com/oauth/authorize?client_id=1234&redirect_uri=http%3A%2F%2Fwww.example.com&response_type=code\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["381-388"], "old_production_code": "", "new_production_code": "@Override\npublic String getInstagramLoginDialogUrl(String instagramAppId, String redirectUri, ScopeBuilder scope, Parameter... parameters) {\n List parameterList = new ArrayList<>();\n Collections.addAll(parameterList, parameters);\n parameterList.add(Parameter.with(\"response_type\", \"code\"));\n return getGenericLoginDialogUrl(instagramAppId, redirectUri, scope, () -> getFacebookEndpointUrls().getInstagramApiEndpoint() + \"/oauth/authorize\", parameterList);\n}", "focal_file_path": "src/main/java/com/restfb/DefaultFacebookClient.java", "focal_method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/restfb/DefaultFacebookClient.java", "line_nums_new": "624-630", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.2464, "method_coverage_gold": 0.5752, "line_coverage_gold": 0.9594, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/restfb/DefaultFacebookClient.getInstagramLoginDialogUrl:(Ljava/lang/String;Ljava/lang/String;Lcom/restfb/scope/ScopeBuilder;[Lcom/restfb/Parameter;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/restfb/DefaultFacebookClient.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v2026.1.0-RC9", "java_version": 11} {"task_id": "robert-bor_aho-corasick-v0.6.3__30f003c_e2c5334__TrieTest_4e9ed4ae", "project_name": "robert-bor_aho-corasick-v0.6.3", "git_clone_url": "https://github.com/robert-bor/aho-corasick.git", "rev1": "30f003c5ae9998160b09dc79a6c782b4ff5305b0", "rev2": "e2c5334234051abef04fd7f5036e10fa49180634", "rev1_date": "2015-09-22T18:22:24Z", "rev2_date": "2015-09-22T20:02:30Z", "git_diff_url": "https://github.com/robert-bor/aho-corasick/compare/30f003c5ae9998160b09dc79a6c782b4ff5305b0...e2c5334234051abef04fd7f5036e10fa49180634", "test_file": "src/test/java/org/ahocorasick/trie/TrieTest.java", "test_changes": [{"change_id": "489_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.containsMatch:()V", "class": "TrieTest", "method": "containsMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#containsMatch", "old_test_code": null, "new_test_code": "@Test\npublic void containsMatch() {\n Trie trie = Trie.builder().removeOverlaps().addKeyword(\"ab\").addKeyword(\"cba\").addKeyword(\"ababc\").build();\n assertTrue(trie.containsMatch(\"ababcbab\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["238-246"], "old_production_code": "", "new_production_code": "public boolean containsMatch(CharSequence text) {\n Emit firstMatch = firstMatch(text);\n return firstMatch != null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.containsMatch:(Ljava/lang/CharSequence;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.containsMatch:(Ljava/lang/CharSequence;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "88-91", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 61.0063, "method_coverage_gold": 69.4118, "line_coverage_gold": 73.3766, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.containsMatch:(Ljava/lang/CharSequence;)Z", "org/ahocorasick/trie/Trie$TrieBuilder.removeOverlaps:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.containsMatch:(Ljava/lang/CharSequence;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "490_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.recipesFirstMatch:()V", "class": "TrieTest", "method": "recipesFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#recipesFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void recipesFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"veal\").addKeyword(\"cauliflower\").addKeyword(\"broccoli\").addKeyword(\"tomatoes\").build();\n Emit firstMatch = trie.firstMatch(\"2 cauliflowers, 3 tomatoes, 4 slices of veal, 100g broccoli\");\n checkEmit(firstMatch, 2, 12, \"cauliflower\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["181-192"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 21.3836, "method_coverage_gold": 36.4706, "line_coverage_gold": 33.1169, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "491_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.variousKeywordsFirstMatch:()V", "class": "TrieTest", "method": "variousKeywordsFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#variousKeywordsFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void variousKeywordsFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"abc\").addKeyword(\"bcd\").addKeyword(\"cde\").build();\n Emit firstMatch = trie.firstMatch(\"bcd\");\n checkEmit(firstMatch, 0, 2, \"bcd\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["66-75"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 20.1258, "method_coverage_gold": 36.4706, "line_coverage_gold": 32.7922, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "492_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.misleadingTestFirstMatch:()V", "class": "TrieTest", "method": "misleadingTestFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#misleadingTestFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void misleadingTestFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"hers\").build();\n Emit firstMatch = trie.firstMatch(\"h he her hers\");\n checkEmit(firstMatch, 9, 12, \"hers\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["156-163"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 21.3836, "method_coverage_gold": 36.4706, "line_coverage_gold": 33.4416, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "493_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.caseInsensitiveFirstMatch:()V", "class": "TrieTest", "method": "caseInsensitiveFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#caseInsensitiveFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void caseInsensitiveFirstMatch() {\n Trie trie = Trie.builder().caseInsensitive().addKeyword(\"turning\").addKeyword(\"once\").addKeyword(\"again\").addKeyword(\"börkü\").build();\n Emit firstMatch = trie.firstMatch(\"TurninG OnCe AgAiN BÖRKÜ\");\n checkEmit(firstMatch, 0, 6, \"turning\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["341-352"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6216216216216216, "branch_coverage_gold": 21.3836, "method_coverage_gold": 38.8235, "line_coverage_gold": 34.7403, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.caseInsensitive:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "494_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.partialMatchFirstMatch:()V", "class": "TrieTest", "method": "partialMatchFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#partialMatchFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void partialMatchFirstMatch() {\n Trie trie = Trie.builder().onlyWholeWords().addKeyword(\"sugar\").build();\n Emit firstMatch = trie.firstMatch(\"sugarcane sugarcane sugar canesugar\");\n checkEmit(firstMatch, 20, 24, \"sugar\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["277-286"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6486486486486487, "branch_coverage_gold": 27.044, "method_coverage_gold": 40.0, "line_coverage_gold": 36.6883, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.onlyWholeWords:()Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "495_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.ushersTestFirstMatch:()V", "class": "TrieTest", "method": "ushersTestFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#ushersTestFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void ushersTestFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"hers\").addKeyword(\"his\").addKeyword(\"she\").addKeyword(\"he\").build();\n Emit firstMatch = trie.firstMatch(\"ushers\");\n checkEmit(firstMatch, 2, 3, \"he\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-119"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 22.0126, "method_coverage_gold": 36.4706, "line_coverage_gold": 33.4416, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "496_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.nonOverlappingFirstMatch:()V", "class": "TrieTest", "method": "nonOverlappingFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#nonOverlappingFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void nonOverlappingFirstMatch() {\n Trie trie = Trie.builder().removeOverlaps().addKeyword(\"ab\").addKeyword(\"cba\").addKeyword(\"ababc\").build();\n Emit firstMatch = trie.firstMatch(\"ababcbab\");\n checkEmit(firstMatch, 0, 4, \"ababc\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["226-236"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3783783783783784, "branch_coverage_gold": 60.3774, "method_coverage_gold": 69.4118, "line_coverage_gold": 73.0519, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.removeOverlaps:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "497_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.keywordAndTextAreTheSameFirstMatch:()V", "class": "TrieTest", "method": "keywordAndTextAreTheSameFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#keywordAndTextAreTheSameFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void keywordAndTextAreTheSameFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"abc\").build();\n Emit firstMatch = trie.firstMatch(\"abc\");\n checkEmit(firstMatch, 0, 2, \"abc\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-33"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 20.1258, "method_coverage_gold": 36.4706, "line_coverage_gold": 32.7922, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "498_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.unicodeIssueBug8ReportedByDwyerkFirstMatch:()V", "class": "TrieTest", "method": "unicodeIssueBug8ReportedByDwyerkFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#unicodeIssueBug8ReportedByDwyerkFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void unicodeIssueBug8ReportedByDwyerkFirstMatch() {\n String target = \"LİKE THIS\";\n Trie trie = Trie.builder().caseInsensitive().onlyWholeWords().addKeyword(\"this\").build();\n assertEquals(\"THIS\", target.substring(5, 9));\n Emit firstMatch = trie.firstMatch(target);\n checkEmit(firstMatch, 5, 8, \"this\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["388-399"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7027027027027027, "branch_coverage_gold": 22.6415, "method_coverage_gold": 42.3529, "line_coverage_gold": 37.3377, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.caseInsensitive:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.onlyWholeWords:()Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "499_robert-bor_aho-corasick-v0.6.3_30f003c_e2c5334_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.textIsLongerThanKeywordFirstMatch:()V", "class": "TrieTest", "method": "textIsLongerThanKeywordFirstMatch", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#textIsLongerThanKeywordFirstMatch", "old_test_code": null, "new_test_code": "@Test\npublic void textIsLongerThanKeywordFirstMatch() {\n Trie trie = Trie.builder().addKeyword(\"abc\").build();\n Emit firstMatch = trie.firstMatch(\" abc\");\n checkEmit(firstMatch, 1, 3, \"abc\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-52"], "old_production_code": "", "new_production_code": "public Emit firstMatch(CharSequence text) {\n if (!trieConfig.isAllowOverlaps()) {\n Collection parseText = parseText(text);\n if (parseText != null && !parseText.isEmpty()) {\n return parseText.iterator().next();\n }\n } else {\n State currentState = this.rootState;\n for (int position = 0; position < text.length(); position++) {\n Character character = text.charAt(position);\n if (trieConfig.isCaseInsensitive()) {\n character = Character.toLowerCase(character);\n }\n currentState = getState(currentState, character);\n Collection emitStrs = currentState.emit();\n if (emitStrs != null && !emitStrs.isEmpty()) {\n for (String emitStr : emitStrs) {\n final Emit emit = new Emit(position - emitStr.length() + 1, position, emitStr);\n if (trieConfig.isOnlyWholeWords()) {\n if (!isPartialMatch(text, emit)) {\n return emit;\n }\n } else {\n return emit;\n }\n }\n }\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "108-140", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5405405405405406, "branch_coverage_gold": 20.1258, "method_coverage_gold": 36.4706, "line_coverage_gold": 32.7922, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.firstMatch:(Ljava/lang/CharSequence;)Lorg/ahocorasick/trie/Emit", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.6.3", "java_version": 8} {"task_id": "robert-bor_aho-corasick-v0.6.3__ae20429_1656e86__TrieTest_b9cb5e31", "project_name": "robert-bor_aho-corasick-v0.6.3", "git_clone_url": "https://github.com/robert-bor/aho-corasick.git", "rev1": "ae204299364f1744d2fdf00f560fa948850fcb3a", "rev2": "1656e862dfdced9252847465d87b15734a493477", "rev1_date": "2014-02-01T20:04:53Z", "rev2_date": "2014-02-01T21:02:29Z", "git_diff_url": "https://github.com/robert-bor/aho-corasick/compare/ae204299364f1744d2fdf00f560fa948850fcb3a...1656e862dfdced9252847465d87b15734a493477", "test_file": "src/test/java/org/ahocorasick/trie/TrieTest.java", "test_changes": [{"change_id": "440_robert-bor_aho-corasick-v0.6.3_ae20429_1656e86_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.tokenizeFullSentence:()V", "class": "TrieTest", "method": "tokenizeFullSentence", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#tokenizeFullSentence", "old_test_code": null, "new_test_code": "@Test\npublic void tokenizeFullSentence() {\n Trie trie = new Trie();\n trie.addKeyword(\"Alpha\");\n trie.addKeyword(\"Beta\");\n trie.addKeyword(\"Gamma\");\n Collection tokens = trie.tokenize(\"Hear: Alpha team first, Beta from the rear, Gamma in reserve\");\n assertEquals(7, tokens.size());\n Iterator tokensIt = tokens.iterator();\n assertEquals(\"Hear: \", tokensIt.next().getFragment());\n assertEquals(\"Alpha\", tokensIt.next().getFragment());\n assertEquals(\" team first, \", tokensIt.next().getFragment());\n assertEquals(\"Beta\", tokensIt.next().getFragment());\n assertEquals(\" from the rear, \", tokensIt.next().getFragment());\n assertEquals(\"Gamma\", tokensIt.next().getFragment());\n assertEquals(\" in reserve\", tokensIt.next().getFragment());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["154-170"], "old_production_code": "", "new_production_code": "public Collection tokenize(String text) {\n Collection tokens = new ArrayList();\n Collection collectedEmits = parseText(text);\n int lastCollectedPosition = -1;\n for (Emit emit : collectedEmits) {\n if (emit.getStart() - lastCollectedPosition > 1) {\n tokens.add(createFragment(emit, text, lastCollectedPosition));\n }\n tokens.add(createMatch(emit, text));\n lastCollectedPosition = emit.getEnd();\n }\n if (text.length() - lastCollectedPosition > 1) {\n tokens.add(createFragment(null, text, lastCollectedPosition));\n }\n return tokens;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "57-75", "dependency_updated": "inserted", "score": 0.4427, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4, "class": 1.0, "tfidf": 0.0516}}, {"dep_id": 1, "method_sign": "org/ahocorasick/trie/Token.getFragment:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Token.java", "line_nums_new": "11-13", "dependency_updated": "inserted", "score": 0.1499, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.25, "class": 0.0, "tfidf": 0.1213}}], "coverage_gold": 1.0, "branch_coverage_gold": 31.7829, "method_coverage_gold": 49.3151, "line_coverage_gold": 47.5836, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "org/ahocorasick/trie/Trie.addKeyword:(Ljava/lang/String;)V", "org/ahocorasick/trie/Token.getFragment:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/ahocorasick/trie/Token.getFragment:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Token.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "441_robert-bor_aho-corasick-v0.6.3_ae20429_1656e86_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.tokenizeTokensInSequence:()V", "class": "TrieTest", "method": "tokenizeTokensInSequence", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#tokenizeTokensInSequence", "old_test_code": null, "new_test_code": "@Test\npublic void tokenizeTokensInSequence() {\n Trie trie = new Trie();\n trie.addKeyword(\"Alpha\");\n trie.addKeyword(\"Beta\");\n trie.addKeyword(\"Gamma\");\n Collection tokens = trie.tokenize(\"Alpha Beta Gamma\");\n assertEquals(5, tokens.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["172-180"], "old_production_code": "", "new_production_code": "public Collection tokenize(String text) {\n Collection tokens = new ArrayList();\n Collection collectedEmits = parseText(text);\n int lastCollectedPosition = -1;\n for (Emit emit : collectedEmits) {\n if (emit.getStart() - lastCollectedPosition > 1) {\n tokens.add(createFragment(emit, text, lastCollectedPosition));\n }\n tokens.add(createMatch(emit, text));\n lastCollectedPosition = emit.getEnd();\n }\n if (text.length() - lastCollectedPosition > 1) {\n tokens.add(createFragment(null, text, lastCollectedPosition));\n }\n return tokens;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "57-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 31.7829, "method_coverage_gold": 47.9452, "line_coverage_gold": 46.8401, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "org/ahocorasick/trie/Trie.addKeyword:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.tokenize:(Ljava/lang/String;)Ljava/util/Collection", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.6.3", "java_version": 8} {"task_id": "robert-bor_aho-corasick-v0.6.3__b85f8fc_76ae822__TrieTest_07d521e9", "project_name": "robert-bor_aho-corasick-v0.6.3", "git_clone_url": "https://github.com/robert-bor/aho-corasick.git", "rev1": "b85f8fc08ffcb963139959af3f6978fb9218fa9f", "rev2": "76ae8222ea26215431302fb1c0fa183c0a859572", "rev1_date": "2015-09-22T17:31:05Z", "rev2_date": "2015-09-22T20:10:19Z", "git_diff_url": "https://github.com/robert-bor/aho-corasick/compare/b85f8fc08ffcb963139959af3f6978fb9218fa9f...76ae8222ea26215431302fb1c0fa183c0a859572", "test_file": "src/test/java/org/ahocorasick/trie/TrieTest.java", "test_changes": [{"change_id": "500_robert-bor_aho-corasick-v0.6.3_b85f8fc_76ae822_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.ushersTestWithCapitalKeywords:()V", "class": "TrieTest", "method": "ushersTestWithCapitalKeywords", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#ushersTestWithCapitalKeywords", "old_test_code": null, "new_test_code": "@Test\npublic void ushersTestWithCapitalKeywords() {\n Trie trie = Trie.builder().caseInsensitive().addKeyword(\"HERS\").addKeyword(\"HIS\").addKeyword(\"SHE\").addKeyword(\"HE\").build();\n Collection emits = trie.parseText(\"ushers\");\n assertEquals(3, emits.size());\n Iterator iterator = emits.iterator();\n checkEmit(iterator.next(), 2, 3, \"he\");\n checkEmit(iterator.next(), 1, 3, \"she\");\n checkEmit(iterator.next(), 2, 5, \"hers\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-124"], "old_production_code": "", "new_production_code": "public TrieBuilder addKeyword(String keyword) {\n trie.addKeyword(keyword);\n return this;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "240-243", "dependency_updated": "inserted", "score": 0.4223, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.2759, "class": 1.0, "tfidf": 0.2018}}, {"dep_id": 1, "method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "250-253", "dependency_updated": "inserted", "score": 0.4055, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1034, "class": 1.0, "tfidf": 0.2508}}, {"dep_id": 3, "method_sign": "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "213-215", "dependency_updated": "inserted", "score": 0.3421, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1379, "class": 1.0, "tfidf": 0.0216}}, {"dep_id": 2, "method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.caseInsensitive:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "225-228", "dependency_updated": "inserted", "score": 0.334, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.2069, "class": 1.0, "tfidf": 0.0245}}], "coverage_gold": 0.64, "branch_coverage_gold": 26.9939, "method_coverage_gold": 45.8824, "line_coverage_gold": 40.9677, "is_traceback": true, "commit_gap": {"count": 6, "skipped_commits": ["e2c5334234051abef04fd7f5036e10fa49180634", "4633b1ba2ad4aba2a3e6a5f568e2a3895140fdbd", "30f003c5ae9998160b09dc79a6c782b4ff5305b0", "c18e030459d0d292a6dfa9901b799165f5b47625", "023c253c932da76d82864403f6c1cc1a92c83f00", "fcefdfdaf914c749c1fa548f60c61fbf90e1d64b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie$TrieBuilder.caseInsensitive:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "org/ahocorasick/trie/Trie.parseText:(Ljava/lang/CharSequence;)Ljava/util/Collection"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.addKeyword:(Ljava/lang/String;)Lorg/ahocorasick/trie/Trie$TrieBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.build:()Lorg/ahocorasick/trie/Trie", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/ahocorasick/trie/Trie$TrieBuilder.caseInsensitive:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/ahocorasick/trie/Trie.builder:()Lorg/ahocorasick/trie/Trie$TrieBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.6.3", "java_version": 8} {"task_id": "robert-bor_aho-corasick-v0.6.3__cb44a6b_ae20429__TrieTest_9e58d672", "project_name": "robert-bor_aho-corasick-v0.6.3", "git_clone_url": "https://github.com/robert-bor/aho-corasick.git", "rev1": "cb44a6bff29bf20212ba281415f0b343b41ab24c", "rev2": "ae204299364f1744d2fdf00f560fa948850fcb3a", "rev1_date": "2014-02-01T19:35:38Z", "rev2_date": "2014-02-01T20:04:53Z", "git_diff_url": "https://github.com/robert-bor/aho-corasick/compare/cb44a6bff29bf20212ba281415f0b343b41ab24c...ae204299364f1744d2fdf00f560fa948850fcb3a", "test_file": "src/test/java/org/ahocorasick/trie/TrieTest.java", "test_changes": [{"change_id": "438_robert-bor_aho-corasick-v0.6.3_cb44a6b_ae20429_TrieTest", "test_sign": "org/ahocorasick/trie/TrieTest.caseInsensitive:()V", "class": "TrieTest", "method": "caseInsensitive", "module": "", "junit_selector": "org.ahocorasick.trie.TrieTest#caseInsensitive", "old_test_code": null, "new_test_code": "@Test\npublic void caseInsensitive() {\n Trie trie = new Trie().caseInsensitive();\n trie.addKeyword(\"turning\");\n trie.addKeyword(\"once\");\n trie.addKeyword(\"again\");\n trie.addKeyword(\"börkü\");\n Collection emits = trie.parseText(\"TurninG OnCe AgAiN BÖRKÜ\");\n assertEquals(4, emits.size());\n Iterator it = emits.iterator();\n checkEmit(it.next(), 0, 6, \"turning\");\n checkEmit(it.next(), 8, 11, \"once\");\n checkEmit(it.next(), 13, 17, \"again\");\n checkEmit(it.next(), 19, 23, \"börkü\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["138-152"], "old_production_code": "", "new_production_code": "public Trie caseInsensitive() {\n this.trieConfig.setCaseInsensitive(true);\n return this;\n}", "focal_file_path": "src/main/java/org/ahocorasick/trie/Trie.java", "focal_method_sign": "org/ahocorasick/trie/Trie.caseInsensitive:()Lorg/ahocorasick/trie/Trie", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/ahocorasick/trie/Trie.caseInsensitive:()Lorg/ahocorasick/trie/Trie", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "34-37", "dependency_updated": "inserted", "score": 0.8173, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.2234}}, {"dep_id": 1, "method_sign": "org/ahocorasick/trie/Trie.parseText:(Ljava/lang/String;)Ljava/util/Collection", "file_path_old": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_old": "53-76", "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "line_nums_new": "57-84", "dependency_updated": "updated", "score": 0.3302, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.2667, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 29.7521, "method_coverage_gold": 51.6129, "line_coverage_gold": 46.281, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/ahocorasick/trie/TrieTest.checkEmit:(Lorg/ahocorasick/trie/Emit;IILjava/lang/String;)V", "org/ahocorasick/trie/Trie.parseText:(Ljava/lang/String;)Ljava/util/Collection", "org/ahocorasick/trie/Trie.caseInsensitive:()Lorg/ahocorasick/trie/Trie", "org/ahocorasick/trie/Trie.addKeyword:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/ahocorasick/trie/Trie.caseInsensitive:()Lorg/ahocorasick/trie/Trie", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/ahocorasick/trie/Trie.parseText:(Ljava/lang/String;)Ljava/util/Collection", "change_type": "UPDATE", "file_path_old": "src/main/java/org/ahocorasick/trie/Trie.java", "file_path_new": "src/main/java/org/ahocorasick/trie/Trie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.6.3", "java_version": 8} {"task_id": "rometools_rome-2.1.0__a1995c4_deb7819__RSS20ParserTest_9b94d30b", "project_name": "rometools_rome-2.1.0", "git_clone_url": "https://github.com/rometools/rome.git", "rev1": "a1995c47791548db3888c2d24d1eea00e4e23cc7", "rev2": "deb781924ef364e48745757cf0ce57d77919d479", "rev1_date": "2016-03-01T19:21:37Z", "rev2_date": "2016-03-01T19:51:16Z", "git_diff_url": "https://github.com/rometools/rome/compare/a1995c47791548db3888c2d24d1eea00e4e23cc7...deb781924ef364e48745757cf0ce57d77919d479", "test_file": "rome/src/test/java/com/rometools/rome/io/impl/RSS20ParserTest.java", "test_changes": [{"change_id": "118_rometools_rome-2.1.0_a1995c4_deb7819_RSS20ParserTest", "test_sign": "com/rometools/rome/io/impl/RSS20ParserTest.testIsMyTypeVersionAbsent:()V", "class": "RSS20ParserTest", "method": "testIsMyTypeVersionAbsent", "module": "rome", "junit_selector": "com.rometools.rome.io.impl.RSS20ParserTest#testIsMyTypeVersionAbsent", "old_test_code": null, "new_test_code": "@Test\npublic void testIsMyTypeVersionAbsent() {\n document.setRootElement(new Element(\"rss\"));\n assertTrue(parser.isMyType(document));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-52"], "old_production_code": "@Override\npublic boolean isMyType(final Document document) {\n return rootElementMatches(document) && versionMatches(document);\n}", "new_production_code": "@Override\npublic boolean isMyType(final Document document) {\n return rootElementMatches(document) && (versionMatches(document) || versionAbsent(document));\n}", "focal_file_path": "rome/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java", "focal_method_sign": "com/rometools/rome/io/impl/RSS20Parser.isMyType:(Lorg/jdom2/Document;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/rometools/rome/io/impl/RSS20Parser.isMyType:(Lorg/jdom2/Document;)Z", "file_path_old": "rome/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java", "line_nums_old": "52-55", "file_path_new": "rome/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java", "line_nums_new": "52-56", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3216, "method_coverage_gold": 2.1423, "line_coverage_gold": 2.0676, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/rometools/rome/io/impl/RSS20Parser.isMyType:(Lorg/jdom2/Document;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/rometools/rome/io/impl/RSS20Parser.isMyType:(Lorg/jdom2/Document;)Z", "change_type": "UPDATE", "file_path_old": "rome/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java", "file_path_new": "rome/src/main/java/com/rometools/rome/io/impl/RSS20Parser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.1.0", "java_version": 8} {"task_id": "rometools_rome-2.1.0__ff58d2a_fdfabe4__AtomClientServerTest_b167b11c", "project_name": "rometools_rome-2.1.0", "git_clone_url": "https://github.com/rometools/rome.git", "rev1": "ff58d2ac645016c1ea69b99eece035595f1732f4", "rev2": "fdfabe4f1127549c4c38a391cc47c90f7b2add80", "rev1_date": "2016-02-13T17:49:07Z", "rev2_date": "2016-02-13T17:50:38Z", "git_diff_url": "https://github.com/rometools/rome/compare/ff58d2ac645016c1ea69b99eece035595f1732f4...fdfabe4f1127549c4c38a391cc47c90f7b2add80", "test_file": "src/test/java/com/rometools/propono/atom/server/AtomClientServerTest.java", "test_changes": [{"change_id": "119_rometools_rome-2.1.0_ff58d2a_fdfabe4_AtomClientServerTest", "test_sign": "com/rometools/propono/atom/server/AtomClientServerTest.testFindWorkspace:()V", "class": "AtomClientServerTest", "method": "testFindWorkspace", "module": "", "junit_selector": "com.rometools.propono.atom.server.AtomClientServerTest#testFindWorkspace", "old_test_code": null, "new_test_code": "@Test\npublic void testFindWorkspace() throws Exception {\n assertNotNull(service);\n final ClientWorkspace ws = (ClientWorkspace) service.findWorkspace(\"adminblog\");\n if (ws != null) {\n final ClientCollection col = (ClientCollection) ws.findCollection(null, \"entry\");\n final ClientEntry entry = col.createEntry();\n entry.setTitle(\"NPE on submitting order query\");\n entry.setContent(\"This is a bad one!\", Content.HTML);\n col.addEntry(entry);\n final ClientEntry saved = col.getEntry(entry.getEditURI());\n assertNotNull(saved);\n saved.remove();\n boolean failed = false;\n try {\n col.getEntry(saved.getEditURI());\n } catch (final ProponoException e) {\n failed = true;\n }\n assertTrue(failed);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["262-289"], "old_production_code": "", "new_production_code": "public Workspace findWorkspace(final String title) {\n for (final Object element : workspaces) {\n final Workspace ws = (Workspace) element;\n if (title.equals(ws.getTitle())) {\n return ws;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/rometools/propono/atom/common/AtomService.java", "focal_method_sign": "com/rometools/propono/atom/common/AtomService.findWorkspace:(Ljava/lang/String;)Lcom/rometools/propono/atom/common/Workspace", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/rometools/propono/atom/common/AtomService.findWorkspace:(Ljava/lang/String;)Lcom/rometools/propono/atom/common/Workspace", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/rometools/propono/atom/common/AtomService.java", "line_nums_new": "76-84", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 9.7744, "method_coverage_gold": 18.2879, "line_coverage_gold": 16.4088, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["8bc74b1e950dc8074d65d5209a1fcaffa5f7f1e8"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/rometools/propono/atom/common/AtomService.findWorkspace:(Ljava/lang/String;)Lcom/rometools/propono/atom/common/Workspace"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/rometools/propono/atom/common/AtomService.findWorkspace:(Ljava/lang/String;)Lcom/rometools/propono/atom/common/Workspace", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/rometools/propono/atom/common/AtomService.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "2.1.0", "java_version": 8} {"task_id": "rubenlagus_TelegramBots-v9.3.0__839afe1_ece1731__TestSendMediaGroup_098f6bcd", "project_name": "rubenlagus_TelegramBots-v9.3.0", "git_clone_url": "https://github.com/rubenlagus/TelegramBots.git", "rev1": "839afe1380d86375a6e93d870736ba1c7dac422c", "rev2": "ece17311b2cbc8b3af2703ccf78839fc44d53d53", "rev1_date": "2024-04-03T23:02:30Z", "rev2_date": "2024-04-03T23:02:30Z", "git_diff_url": "https://github.com/rubenlagus/TelegramBots/compare/839afe1380d86375a6e93d870736ba1c7dac422c...ece17311b2cbc8b3af2703ccf78839fc44d53d53", "test_file": "telegrambots-meta/src/test/java/org/telegram/telegrambots/meta/api/methods/send/TestSendMediaGroup.java", "test_changes": [{"change_id": "493_rubenlagus_TelegramBots-v9.3.0_839afe1_ece1731_TestSendMediaGroup", "test_sign": "org/telegram/telegrambots/meta/api/methods/send/TestSendMediaGroup.test:()V", "class": "TestSendMediaGroup", "method": "test", "module": "telegrambots-meta", "junit_selector": "org.telegram.telegrambots.meta.api.methods.send.TestSendMediaGroup#test", "old_test_code": null, "new_test_code": "@Test\npublic void test() {\n try {\n String expectedJson = \"{\\\"chatId\\\":\\\"12345\\\",\\\"messageThreadId\\\":null,\\\"medias\\\":[{\\\"media\\\":\\\"attach://321.png\\\",\\\"caption_entities\\\":[],\\\"type\\\":\\\"photo\\\"},\" + \"{\\\"media\\\":\\\"attach://123.png\\\",\\\"caption_entities\\\":[],\\\"type\\\":\\\"photo\\\"}],\\\"replyToMessageId\\\":null,\\\"disableNotification\\\":null,\" + \"\\\"allowSendingWithoutReply\\\":null,\\\"protectContent\\\":null,\\\"replyParameters\\\":null,\\\"businessConnectionId\\\":null,\" + \"\\\"method\\\":\\\"sendMediaGroup\\\"}\";\n InputStream is = new ByteArrayInputStream(\"RandomFileContent\".getBytes());\n InputStream is2 = new ByteArrayInputStream(\"RandomFileContent2\".getBytes());\n SendMediaGroup sendMediaGroup = SendMediaGroup.builder().chatId(\"12345\").media(InputMediaPhoto.builder().media(is, \"321.png\").build()).media(InputMediaPhoto.builder().media(is2, \"123.png\").build()).build();\n String json = mapper.writeValueAsString(sendMediaGroup);\n assertEquals(expectedJson, json);\n } catch (Exception e) {\n fail(e);\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["22-44"], "old_production_code": "", "new_production_code": "@JsonIgnore\npublic B media(@NonNull InputStream mediaStream, @NonNull String fileName) {\n this.newMediaStream = mediaStream;\n this.isNewMedia = true;\n this.mediaName = fileName;\n this.media = \"attach://\" + fileName;\n return self();\n}", "focal_file_path": "telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/media/InputMedia.java", "focal_method_sign": "org/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder.media:(Ljava/io/InputStream;Ljava/lang/String;)Lorg/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder.media:(Ljava/io/InputStream;Ljava/lang/String;)Lorg/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder", "file_path_old": null, "line_nums_old": null, "file_path_new": "telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/media/InputMedia.java", "line_nums_new": "179-186", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.056, "method_coverage_gold": 0.3697, "line_coverage_gold": 0.4963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder.media:(Ljava/io/InputStream;Ljava/lang/String;)Lorg/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder.media:(Ljava/io/InputStream;Ljava/lang/String;)Lorg/telegram/telegrambots/meta/api/objects/media/InputMedia$InputMediaBuilder", "change_type": "ADD", "file_path_old": null, "file_path_new": "telegrambots-meta/src/main/java/org/telegram/telegrambots/meta/api/objects/media/InputMedia.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v9.3.0", "java_version": 17} {"task_id": "rubenlagus_TelegramBots-v9.3.0__d2c6e64_0c57456__CustomToggleTest_3d2c35ad", "project_name": "rubenlagus_TelegramBots-v9.3.0", "git_clone_url": "https://github.com/rubenlagus/TelegramBots.git", "rev1": "d2c6e6439b83b7352505f28feb5bfbfdde67f335", "rev2": "0c574563b9bc967f4062c960d28b63b07b206080", "rev1_date": "2022-06-15T00:37:20Z", "rev2_date": "2022-06-15T00:41:10Z", "git_diff_url": "https://github.com/rubenlagus/TelegramBots/compare/d2c6e6439b83b7352505f28feb5bfbfdde67f335...0c574563b9bc967f4062c960d28b63b07b206080", "test_file": "telegrambots-abilities/src/test/java/org/telegram/abilitybots/api/toggle/CustomToggleTest.java", "test_changes": [{"change_id": "261_rubenlagus_TelegramBots-v9.3.0_d2c6e64_0c57456_CustomToggleTest", "test_sign": "org/telegram/abilitybots/api/toggle/CustomToggleTest.canTurnOffAbilitiesThroughProperties:()V", "class": "CustomToggleTest", "method": "canTurnOffAbilitiesThroughProperties", "module": "telegrambots-abilities", "junit_selector": "org.telegram.abilitybots.api.toggle.CustomToggleTest#canTurnOffAbilitiesThroughProperties", "old_test_code": null, "new_test_code": "@Test\npublic void canTurnOffAbilitiesThroughProperties() {\n Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(filename));\n toggle = new CustomToggle().config(properties);\n } catch (IOException e) {\n System.out.println(\"No such file\");\n }\n customBot = new DefaultBot(EMPTY, EMPTY, db, toggle);\n customBot.onRegister();\n assertFalse(customBot.abilities().containsKey(DefaultAbilities.CLAIM));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-68"], "old_production_code": "", "new_production_code": "public CustomToggle config(Properties properties) {\n for (String key : properties.stringPropertyNames()) {\n String value = properties.getProperty(key);\n key = key.toLowerCase();\n for (Property p : Property.values()) {\n if (key.equals(p.key())) {\n String ability = key.split(\"\\\\.\")[1];\n if (key.contains(\"enabled\") && value.equalsIgnoreCase(\"false\")) {\n this.turnOff(ability);\n } else if (key.contains(\"toggle\")) {\n this.toggle(ability, value);\n }\n }\n }\n }\n return this;\n}", "focal_file_path": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "focal_method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "file_path_old": null, "line_nums_old": null, "file_path_new": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.1546, "method_coverage_gold": 27.5401, "line_coverage_gold": 29.465, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/telegram/abilitybots/api/toggle/CustomToggleTest.tearDown:()V", "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "org/telegram/abilitybots/api/bot/BaseAbilityBot.abilities:()Ljava/util/Map", "org/telegram/abilitybots/api/bot/BaseAbilityBot.onRegister:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "change_type": "ADD", "file_path_old": null, "file_path_new": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "262_rubenlagus_TelegramBots-v9.3.0_d2c6e64_0c57456_CustomToggleTest", "test_sign": "org/telegram/abilitybots/api/toggle/CustomToggleTest.canProcessAbilitiesThroughProperties:()V", "class": "CustomToggleTest", "method": "canProcessAbilitiesThroughProperties", "module": "telegrambots-abilities", "junit_selector": "org.telegram.abilitybots.api.toggle.CustomToggleTest#canProcessAbilitiesThroughProperties", "old_test_code": null, "new_test_code": "@Test\npublic void canProcessAbilitiesThroughProperties() {\n Properties properties = new Properties();\n try {\n properties.load(new FileInputStream(filename));\n toggle = new CustomToggle().config(properties);\n } catch (IOException e) {\n System.out.println(\"No such file\");\n }\n customBot = new DefaultBot(EMPTY, EMPTY, db, toggle);\n customBot.onRegister();\n String targetName = \"restrict\";\n assertTrue(customBot.abilities().containsKey(targetName));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-85"], "old_production_code": "", "new_production_code": "public CustomToggle config(Properties properties) {\n for (String key : properties.stringPropertyNames()) {\n String value = properties.getProperty(key);\n key = key.toLowerCase();\n for (Property p : Property.values()) {\n if (key.equals(p.key())) {\n String ability = key.split(\"\\\\.\")[1];\n if (key.contains(\"enabled\") && value.equalsIgnoreCase(\"false\")) {\n this.turnOff(ability);\n } else if (key.contains(\"toggle\")) {\n this.toggle(ability, value);\n }\n }\n }\n }\n return this;\n}", "focal_file_path": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "focal_method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "file_path_old": null, "line_nums_old": null, "file_path_new": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 5.1546, "method_coverage_gold": 27.5401, "line_coverage_gold": 29.465, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/telegram/abilitybots/api/toggle/CustomToggleTest.tearDown:()V", "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "org/telegram/abilitybots/api/bot/BaseAbilityBot.abilities:()Ljava/util/Map", "org/telegram/abilitybots/api/bot/BaseAbilityBot.onRegister:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/telegram/abilitybots/api/toggle/CustomToggle.config:(Ljava/util/Properties;)Lorg/telegram/abilitybots/api/toggle/CustomToggle", "change_type": "ADD", "file_path_old": null, "file_path_new": "telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/toggle/CustomToggle.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v9.3.0", "java_version": 17} {"task_id": "samdjstevens_java-totp-totp-1.7.1__5f64fef_c30b687__DefaultSecretGeneratorTest_d0e301f0", "project_name": "samdjstevens_java-totp-totp-1.7.1", "git_clone_url": "https://github.com/samdjstevens/java-totp.git", "rev1": "5f64fefecc46c3551353b8ec344d48dee8908428", "rev2": "c30b687239a55f56f4de38b4d46f6e5a862dd638", "rev1_date": "2019-09-04T20:45:43Z", "rev2_date": "2019-09-04T20:55:34Z", "git_diff_url": "https://github.com/samdjstevens/java-totp/compare/5f64fefecc46c3551353b8ec344d48dee8908428...c30b687239a55f56f4de38b4d46f6e5a862dd638", "test_file": "src/test/java/dev/samstevens/totp/secret/DefaultSecretGeneratorTest.java", "test_changes": [{"change_id": "40_samdjstevens_java-totp-totp-1.7.1_5f64fef_c30b687_DefaultSecretGeneratorTest", "test_sign": "dev/samstevens/totp/secret/DefaultSecretGeneratorTest.testSecretGenerated:()V", "class": "DefaultSecretGeneratorTest", "method": "testSecretGenerated", "module": "", "junit_selector": "dev.samstevens.totp.secret.DefaultSecretGeneratorTest#testSecretGenerated", "old_test_code": null, "new_test_code": "@Test\npublic void testSecretGenerated() {\n DefaultSecretGenerator generator160 = new DefaultSecretGenerator();\n String secret160 = generator160.generate();\n assertNotNull(secret160);\n assertEquals(32, secret160.length());\n DefaultSecretGenerator generator80 = new DefaultSecretGenerator(80);\n String secret80 = generator80.generate();\n assertNotNull(secret80);\n assertEquals(16, secret80.length());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-19"], "old_production_code": "", "new_production_code": "public String generate() {\n return new String(encoder.encode(getRandomBytes()));\n}", "focal_file_path": "src/main/java/dev/samstevens/totp/secret/DefaultSecretGenerator.java", "focal_method_sign": "dev/samstevens/totp/secret/DefaultSecretGenerator.generate:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/samstevens/totp/secret/DefaultSecretGenerator.generate:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/samstevens/totp/secret/DefaultSecretGenerator.java", "line_nums_new": "20-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 100.0, "line_coverage_gold": 100.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/samstevens/totp/secret/DefaultSecretGenerator.generate:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/samstevens/totp/secret/DefaultSecretGenerator.generate:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/samstevens/totp/secret/DefaultSecretGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "totp-1.7.1", "java_version": 8} {"task_id": "samdjstevens_java-totp-totp-1.7.1__83c61df_0f3e80a__ZxingPngQrGeneratorTest_ab41c48b", "project_name": "samdjstevens_java-totp-totp-1.7.1", "git_clone_url": "https://github.com/samdjstevens/java-totp.git", "rev1": "83c61dfea621bca19055b685fdb9b78c2343dd7e", "rev2": "0f3e80a022336f907d162bb0c6d08b8d02a5e569", "rev1_date": "2019-09-14T19:21:06Z", "rev2_date": "2019-09-14T19:31:00Z", "git_diff_url": "https://github.com/samdjstevens/java-totp/compare/83c61dfea621bca19055b685fdb9b78c2343dd7e...0f3e80a022336f907d162bb0c6d08b8d02a5e569", "test_file": "src/test/java/dev/samstevens/totp/qr/ZxingPngQrGeneratorTest.java", "test_changes": [{"change_id": "39_samdjstevens_java-totp-totp-1.7.1_83c61df_0f3e80a_ZxingPngQrGeneratorTest", "test_sign": "dev/samstevens/totp/qr/ZxingPngQrGeneratorTest.voidTestMimeType:()V", "class": "ZxingPngQrGeneratorTest", "method": "voidTestMimeType", "module": "", "junit_selector": "dev.samstevens.totp.qr.ZxingPngQrGeneratorTest#voidTestMimeType", "old_test_code": null, "new_test_code": "@Test\npublic void voidTestMimeType() {\n assertEquals(\"image/png\", new ZxingPngQrGenerator().getImageMimeType());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-30"], "old_production_code": "", "new_production_code": "public String getImageMimeType() {\n return \"image/png\";\n}", "focal_file_path": "src/main/java/dev/samstevens/totp/qr/ZxingPngQrGenerator.java", "focal_method_sign": "dev/samstevens/totp/qr/ZxingPngQrGenerator.getImageMimeType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "dev/samstevens/totp/qr/ZxingPngQrGenerator.getImageMimeType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/dev/samstevens/totp/qr/ZxingPngQrGenerator.java", "line_nums_new": "25-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 7.6923, "line_coverage_gold": 3.3898, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["dev/samstevens/totp/qr/ZxingPngQrGenerator.getImageMimeType:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "dev/samstevens/totp/qr/ZxingPngQrGenerator.getImageMimeType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/dev/samstevens/totp/qr/ZxingPngQrGenerator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "totp-1.7.1", "java_version": 8} {"task_id": "scribejava_scribejava-scribejava-8.3.3__ba12ff6_5a0df76__Base64Test_00d54f47", "project_name": "scribejava_scribejava-scribejava-8.3.3", "git_clone_url": "https://github.com/scribejava/scribejava.git", "rev1": "ba12ff648d0d3d1d119db5de9a8dedf80dac002d", "rev2": "5a0df766f6f6678c274c2251fe6b066d4b76fe10", "rev1_date": "2021-02-15T08:05:24Z", "rev2_date": "2021-02-15T08:06:29Z", "git_diff_url": "https://github.com/scribejava/scribejava/compare/ba12ff648d0d3d1d119db5de9a8dedf80dac002d...5a0df766f6f6678c274c2251fe6b066d4b76fe10", "test_file": "scribejava-core/src/test/java/com/github/scribejava/core/base64/Base64Test.java", "test_changes": [{"change_id": "130_scribejava_scribejava-scribejava-8.3.3_ba12ff6_5a0df76_Base64Test", "test_sign": "com/github/scribejava/core/base64/Base64Test.allImplementationsAreAvailable:()V", "class": "Base64Test", "method": "allImplementationsAreAvailable", "module": "scribejava-core", "junit_selector": "com.github.scribejava.core.base64.Base64Test#allImplementationsAreAvailable", "old_test_code": null, "new_test_code": "@Test\npublic void allImplementationsAreAvailable() {\n assertTrue(Java8Base64.isAvailable());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-32"], "old_production_code": "", "new_production_code": "static boolean isAvailable() {\n try {\n Class.forName(\"java.util.Base64\", false, Java8Base64.class.getClassLoader());\n return true;\n } catch (ClassNotFoundException cnfE) {\n return false;\n }\n}", "focal_file_path": "scribejava-core/src/main/java/com/github/scribejava/core/base64/Java8Base64.java", "focal_method_sign": "com/github/scribejava/core/base64/Java8Base64.isAvailable:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/scribejava/core/base64/Java8Base64.isAvailable:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/Java8Base64.java", "line_nums_new": "23-30", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.722, "line_coverage_gold": 0.3207, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["cd5e3af9ebe8605a131b5257996971caf716eefe"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/scribejava/core/base64/Java8Base64.isAvailable:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/scribejava/core/base64/Java8Base64.isAvailable:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "scribejava-core/src/main/java/com/github/scribejava/core/base64/Java8Base64.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "scribejava-8.3.3", "java_version": 11} {"task_id": "searchbox-io_Jest-v5.3.4__01208a8_0f6a143__TermsAggregationTermTest_78e6af9e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "01208a8885061013af2a5b1b867bcecb35924522", "rev2": "0f6a143d00a013ad98cf6b76f7da207d76b526d7", "rev1_date": "2016-09-02T07:00:52Z", "rev2_date": "2016-09-02T08:45:33Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/01208a8885061013af2a5b1b867bcecb35924522...0f6a143d00a013ad98cf6b76f7da207d76b526d7", "test_file": "jest-common/src/test/java/io/searchbox/core/search/aggregation/TermsAggregationTermTest.java", "test_changes": [{"change_id": "1335_searchbox-io_Jest-v5.3.4_01208a8_0f6a143_TermsAggregationTermTest", "test_sign": "io/searchbox/core/search/aggregation/TermsAggregationTermTest.testParseBuckets:()V", "class": "TermsAggregationTermTest", "method": "testParseBuckets", "module": "jest-common", "junit_selector": "io.searchbox.core.search.aggregation.TermsAggregationTermTest#testParseBuckets", "old_test_code": null, "new_test_code": "@Test\npublic void testParseBuckets() {\n JsonObject termsAggregationJson = new Gson().fromJson(termsAggregationContent, JsonObject.class);\n TermsAggregation termsAggregation = new TermsAggregation(\"termsAggregation\", termsAggregationJson);\n List buckets = termsAggregation.getBuckets();\n assertNotNull(buckets);\n assertEquals(2, buckets.size());\n Entry entryWithKeyAsString = buckets.get(0);\n assertEquals(EXPECTED_KEY_VALUE, entryWithKeyAsString.getKey());\n assertEquals(EXPECTED_KEY_AS_STRING_VALUE, entryWithKeyAsString.getKeyAsString());\n assertTrue(EXPECTED_DOC_COUNT_VALUE == entryWithKeyAsString.getCount());\n Entry entryWithoutKeyAsString = buckets.get(1);\n assertEquals(EXPECTED_KEY_VALUE, entryWithoutKeyAsString.getKey());\n assertEquals(EXPECTED_KEY_VALUE, entryWithoutKeyAsString.getKeyAsString());\n assertTrue(EXPECTED_DOC_COUNT_VALUE == entryWithoutKeyAsString.getCount());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-67"], "old_production_code": "", "new_production_code": "public String getKeyAsString() {\n return keyAsString;\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/search/aggregation/TermsAggregation.java", "focal_method_sign": "io/searchbox/core/search/aggregation/TermsAggregation$Entry.getKeyAsString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/search/aggregation/TermsAggregation$Entry.getKeyAsString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/TermsAggregation.java", "line_nums_new": "86-88", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.39285714285714285, "branch_coverage_gold": 0.8081, "method_coverage_gold": 1.6048, "line_coverage_gold": 2.2182, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/search/aggregation/TermsAggregation$Entry.getKeyAsString:()Ljava/lang/String", "io/searchbox/core/search/aggregation/TermsAggregation.getBuckets:()Ljava/util/List", "io/searchbox/core/search/aggregation/Bucket.getCount:()Ljava/lang/Long", "io/searchbox/core/search/aggregation/TermsAggregation$Entry.getKey:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/search/aggregation/TermsAggregation$Entry.getKeyAsString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/TermsAggregation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__1c40aa5_9d3f1a7__RerouteTest_dd6f736c", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev2": "9d3f1a7b7c8f768ac856c240b4d525f75b076451", "rev1_date": "2017-01-10T12:27:22Z", "rev2_date": "2017-01-10T12:46:19Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/1c40aa5bf27495c88718cdbf6ae4768ee27f8d10...9d3f1a7b7c8f768ac856c240b4d525f75b076451", "test_file": "jest-common/src/test/java/io/searchbox/cluster/RerouteTest.java", "test_changes": [{"change_id": "1240_searchbox-io_Jest-v5.3.4_1c40aa5_9d3f1a7_RerouteTest", "test_sign": "io/searchbox/cluster/RerouteTest.reroute:()V", "class": "RerouteTest", "method": "reroute", "module": "jest-common", "junit_selector": "io.searchbox.cluster.RerouteTest#reroute", "old_test_code": null, "new_test_code": "@Test\npublic void reroute() throws JSONException {\n List moveCommands = new LinkedList();\n moveCommands.add(new RerouteMove(\"index1\", 1, \"node1\", \"node2\"));\n moveCommands.add(new RerouteCancel(\"index2\", 1, \"node2\", true));\n moveCommands.add(new RerouteAllocate(\"index3\", 1, \"node3\", false));\n Reroute reroute = new Reroute.Builder(moveCommands).build();\n assertEquals(\"/_cluster/reroute\", reroute.getURI());\n assertEquals(\"POST\", reroute.getRestMethodName());\n String expectedData = \"{ \\\"commands\\\": [\" + \"{ \\\"move\\\": { \\\"index\\\": \\\"index1\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node1\\\", \\\"to_node\\\": \\\"node2\\\" } }, \" + \"{ \\\"cancel\\\": { \\\"index\\\": \\\"index2\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node2\\\", \\\"allow_primary\\\": true } },\" + \"{ \\\"allocate\\\": { \\\"index\\\": \\\"index3\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node3\\\", \\\"allow_primary\\\": false } }\" + \"] }\";\n JSONAssert.assertEquals(expectedData, reroute.getData(new Gson()), false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-36"], "old_production_code": "", "new_production_code": "@Override\npublic Reroute build() {\n return new Reroute(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "focal_method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.3062, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.3514}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.2844, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.2353, "class": 1.0, "tfidf": 0.0676}}], "coverage_gold": 0.48, "branch_coverage_gold": 0.8588, "method_coverage_gold": 2.0913, "line_coverage_gold": 2.4474, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["917c83b01a999b3b13657be96bb838d76d7a6039", "f6fc77406db3e744bdfa34210d280b97b24211fe"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "io/searchbox/action/AbstractAction.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__1c40aa5_f6fc774__RerouteTest_dd6f736c", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev2": "f6fc77406db3e744bdfa34210d280b97b24211fe", "rev1_date": "2017-01-10T12:27:22Z", "rev2_date": "2017-01-10T12:29:16Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/1c40aa5bf27495c88718cdbf6ae4768ee27f8d10...f6fc77406db3e744bdfa34210d280b97b24211fe", "test_file": "jest-common/src/test/java/io/searchbox/cluster/RerouteTest.java", "test_changes": [{"change_id": "1519_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteTest", "test_sign": "io/searchbox/cluster/RerouteTest.reroute:()V", "class": "RerouteTest", "method": "reroute", "module": "jest-common", "junit_selector": "io.searchbox.cluster.RerouteTest#reroute", "old_test_code": null, "new_test_code": "@Test\npublic void reroute() throws JSONException {\n List moveCommands = new LinkedList();\n moveCommands.add(new RerouteMove(\"index1\", 1, \"node1\", \"node2\"));\n moveCommands.add(new RerouteMove(\"index2\", 1, \"node2\", \"node1\"));\n Reroute reroute = new Reroute.Builder(moveCommands).build();\n assertEquals(\"/_cluster/reroute\", reroute.getURI());\n assertEquals(\"POST\", reroute.getRestMethodName());\n String expectedData = \"{ \\\"commands\\\": [\" + \"{ \\\"move\\\": { \\\"index\\\": \\\"index1\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node1\\\", \\\"to_node\\\": \\\"node2\\\" } }, \" + \"{ \\\"move\\\": { \\\"index\\\": \\\"index2\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node2\\\", \\\"to_node\\\": \\\"node1\\\" } }\" + \"] }\";\n JSONAssert.assertEquals(expectedData, reroute.getData(new Gson()), false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-32"], "old_production_code": "", "new_production_code": "@Override\npublic Reroute build() {\n return new Reroute(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "focal_method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.3121, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.3766}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.2854, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.2353, "class": 1.0, "tfidf": 0.0716}}], "coverage_gold": 0.48, "branch_coverage_gold": 0.8588, "method_coverage_gold": 1.5209, "line_coverage_gold": 1.7075, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractAction.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__1c40aa5_f6fc774__RerouteAllocateTest_478f6d9e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev2": "f6fc77406db3e744bdfa34210d280b97b24211fe", "rev1_date": "2017-01-10T12:27:22Z", "rev2_date": "2017-01-10T12:29:16Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/1c40aa5bf27495c88718cdbf6ae4768ee27f8d10...f6fc77406db3e744bdfa34210d280b97b24211fe", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteAllocateTest.java", "test_changes": [{"change_id": "1516_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteAllocateTest", "test_sign": "io/searchbox/cluster/reroute/RerouteAllocateTest.allowPrimaryFalse:()V", "class": "RerouteAllocateTest", "method": "allowPrimaryFalse", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteAllocateTest#allowPrimaryFalse", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryFalse() throws JSONException {\n RerouteAllocate allocateReplica = new RerouteAllocate(\"index1\", 1, \"node1\", false);\n assertEquals(allocateReplica.getType(), \"allocate\");\n String actualJson = new Gson().toJson(allocateReplica.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": false}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-32"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"allocate\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.3013, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1841}}, {"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2827, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1048}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1520_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteAllocateTest", "test_sign": "io/searchbox/cluster/reroute/RerouteAllocateTest.allowPrimaryTrue:()V", "class": "RerouteAllocateTest", "method": "allowPrimaryTrue", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteAllocateTest#allowPrimaryTrue", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryTrue() throws JSONException {\n RerouteAllocate allocateReplica = new RerouteAllocate(\"index1\", 1, \"node1\", true);\n assertEquals(allocateReplica.getType(), \"allocate\");\n String actualJson = new Gson().toJson(allocateReplica.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": true}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"allocate\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.3026, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1841}}, {"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2839, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1048}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__1c40aa5_f6fc774__RerouteCancelTest_478f6d9e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev2": "f6fc77406db3e744bdfa34210d280b97b24211fe", "rev1_date": "2017-01-10T12:27:22Z", "rev2_date": "2017-01-10T12:29:16Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/1c40aa5bf27495c88718cdbf6ae4768ee27f8d10...f6fc77406db3e744bdfa34210d280b97b24211fe", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteCancelTest.java", "test_changes": [{"change_id": "1515_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteCancelTest", "test_sign": "io/searchbox/cluster/reroute/RerouteCancelTest.allowPrimaryTrue:()V", "class": "RerouteCancelTest", "method": "allowPrimaryTrue", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteCancelTest#allowPrimaryTrue", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryTrue() throws JSONException {\n RerouteCancel rerouteCancel = new RerouteCancel(\"index1\", 1, \"node1\", true);\n assertEquals(rerouteCancel.getType(), \"cancel\");\n String actualJson = new Gson().toJson(rerouteCancel.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": true}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"cancel\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.298, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1647}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2812, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.0935}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1518_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteCancelTest", "test_sign": "io/searchbox/cluster/reroute/RerouteCancelTest.allowPrimaryFalse:()V", "class": "RerouteCancelTest", "method": "allowPrimaryFalse", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteCancelTest#allowPrimaryFalse", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryFalse() throws JSONException {\n RerouteCancel rerouteCancel = new RerouteCancel(\"index1\", 1, \"node1\", false);\n assertEquals(rerouteCancel.getType(), \"cancel\");\n String actualJson = new Gson().toJson(rerouteCancel.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": false}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-32"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"cancel\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.2968, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1647}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.28, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.0935}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__1c40aa5_f6fc774__RerouteMoveTest_3734a903", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev2": "f6fc77406db3e744bdfa34210d280b97b24211fe", "rev1_date": "2017-01-10T12:27:22Z", "rev2_date": "2017-01-10T12:29:16Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/1c40aa5bf27495c88718cdbf6ae4768ee27f8d10...f6fc77406db3e744bdfa34210d280b97b24211fe", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteMoveTest.java", "test_changes": [{"change_id": "1517_searchbox-io_Jest-v5.3.4_1c40aa5_f6fc774_RerouteMoveTest", "test_sign": "io/searchbox/cluster/reroute/RerouteMoveTest.move:()V", "class": "RerouteMoveTest", "method": "move", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteMoveTest#move", "old_test_code": null, "new_test_code": "@Test\npublic void move() throws JSONException {\n RerouteMove rerouteMove = new RerouteMove(\"index1\", 1, \"node1\", \"node2\");\n assertEquals(rerouteMove.getType(), \"move\");\n String actualJson = new Gson().toJson(rerouteMove.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node1\\\", \\\"to_node\\\": \\\"node2\\\"}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"move\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": 0.2841, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.2001}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "line_nums_new": "26-35", "dependency_updated": "inserted", "score": 0.2353, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.0, "class": 1.0, "tfidf": 0.0928}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3699, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__35fe959_02a26b1__StatsTest_1a372824", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "35fe959607fa19c4f2a9cc4dcb13603359454f5e", "rev2": "02a26b122748d1e84c67def41712982e85aff848", "rev1_date": "2016-11-24T16:31:24Z", "rev2_date": "2016-11-24T20:58:50Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/35fe959607fa19c4f2a9cc4dcb13603359454f5e...02a26b122748d1e84c67def41712982e85aff848", "test_file": "jest-common/src/test/java/io/searchbox/indices/StatsTest.java", "test_changes": [{"change_id": "1279_searchbox-io_Jest-v5.3.4_35fe959_02a26b1_StatsTest", "test_sign": "io/searchbox/indices/StatsTest.testUriGenerationWhenRemovingStatsFields:()V", "class": "StatsTest", "method": "testUriGenerationWhenRemovingStatsFields", "module": "jest-common", "junit_selector": "io.searchbox.indices.StatsTest#testUriGenerationWhenRemovingStatsFields", "old_test_code": null, "new_test_code": "@Test\npublic void testUriGenerationWhenRemovingStatsFields() throws Exception {\n Action action = new Stats.Builder().flush(true).indexing(true).indexing(false).build();\n assertEquals(\"_all/_stats/flush\", URLDecoder.decode(action.getURI()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-55"], "old_production_code": "public Builder indexing(boolean indexing) {\n return setParameter(\"indexing\", indexing);\n}", "new_production_code": "public Builder indexing(boolean indexing) {\n return toggleApiParameter(\"indexing\", indexing);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "focal_method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_old": "45-47", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_new": "44-46", "dependency_updated": "updated", "score": 0.4057, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1667, "class": 1.0, "tfidf": 0.2451}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_old": "67-69", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_new": "66-68", "dependency_updated": "updated", "score": 0.3609, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0556, "class": 1.0, "tfidf": 0.2451}}], "coverage_gold": 0.8, "branch_coverage_gold": 1.0806, "method_coverage_gold": 1.8719, "line_coverage_gold": 1.7841, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "io/searchbox/indices/Stats$Builder.build:()Lio/searchbox/indices/Stats", "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "change_type": "UPDATE", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "change_type": "UPDATE", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1280_searchbox-io_Jest-v5.3.4_35fe959_02a26b1_StatsTest", "test_sign": "io/searchbox/indices/StatsTest.testUriGenerationWithStatsFields:()V", "class": "StatsTest", "method": "testUriGenerationWithStatsFields", "module": "jest-common", "junit_selector": "io.searchbox.indices.StatsTest#testUriGenerationWithStatsFields", "old_test_code": null, "new_test_code": "@Test\npublic void testUriGenerationWithStatsFields() throws Exception {\n Action action = new Stats.Builder().flush(true).indexing(true).search(true, \"group1\", \"group2\").build();\n assertEquals(\"_all/_stats/flush,indexing,search?groups=group1,group2\", URLDecoder.decode(action.getURI()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-45"], "old_production_code": "public Builder indexing(boolean indexing) {\n return setParameter(\"indexing\", indexing);\n}", "new_production_code": "public Builder indexing(boolean indexing) {\n return toggleApiParameter(\"indexing\", indexing);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "focal_method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_old": "45-47", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_new": "44-46", "dependency_updated": "updated", "score": 0.3695, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1429, "class": 1.0, "tfidf": 0.2014}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_old": "67-69", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_new": "66-68", "dependency_updated": "updated", "score": 0.3533, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0714, "class": 1.0, "tfidf": 0.2014}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/Stats$Builder.search:(Z[Ljava/lang/String;)Lio/searchbox/indices/Stats$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "line_nums_new": "78-82", "dependency_updated": "inserted", "score": 0.3464, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1071, "class": 1.0, "tfidf": 0.2221}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 0.9823, "method_coverage_gold": 1.9704, "line_coverage_gold": 1.9923, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "io/searchbox/indices/Stats$Builder.search:(Z[Ljava/lang/String;)Lio/searchbox/indices/Stats$Builder", "io/searchbox/indices/Stats$Builder.build:()Lio/searchbox/indices/Stats", "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/Stats$Builder.search:(Z[Ljava/lang/String;)Lio/searchbox/indices/Stats$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/Stats$Builder.flush:(Z)Lio/searchbox/indices/Stats$Builder", "change_type": "UPDATE", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/Stats$Builder.indexing:(Z)Lio/searchbox/indices/Stats$Builder", "change_type": "UPDATE", "file_path_old": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Stats.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__6303a66_c3e8eea__ReindexTest_08e264f0", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "6303a66f040e62d26100bc60e2fb264beeb46942", "rev2": "c3e8eea5ff949208b0bc70e52865dda29944ae94", "rev1_date": "2017-01-11T14:23:23Z", "rev2_date": "2017-01-11T14:25:34Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/6303a66f040e62d26100bc60e2fb264beeb46942...c3e8eea5ff949208b0bc70e52865dda29944ae94", "test_file": "jest-common/src/test/java/io/searchbox/indices/reindex/ReindexTest.java", "test_changes": [{"change_id": "1509_searchbox-io_Jest-v5.3.4_6303a66_c3e8eea_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.equalsReturnsTrueForSameMappings:()V", "class": "ReindexTest", "method": "equalsReturnsTrueForSameMappings", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#equalsReturnsTrueForSameMappings", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsTrueForSameMappings() {\n Reindex reindex1 = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n Reindex reindex2 = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n assertEquals(reindex1, reindex2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-63"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3859, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0625, "class": 1.0, "tfidf": 0.4962}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": 0.3433, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.125, "class": 1.0, "tfidf": 0.2381}}], "coverage_gold": 0.4146341463414634, "branch_coverage_gold": 1.0496, "method_coverage_gold": 1.4259, "line_coverage_gold": 1.6505, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z", "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1510_searchbox-io_Jest-v5.3.4_6303a66_c3e8eea_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testQueryStringGeneration:()V", "class": "ReindexTest", "method": "testQueryStringGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testQueryStringGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testQueryStringGeneration() throws Exception {\n Reindex reindex = new Reindex.Builder(source, dest).waitForCompletion(true).waitForActiveShards(1).timeout(5000L).requestsPerSecond(5d).build();\n String generatedURI = reindex.getURI();\n String expectedURI = \"/_reindex?wait_for_completion=true&wait_for_active_shards=1&timeout=5000&requests_per_second=5.0\";\n assertEquals(expectedURI, generatedURI);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-38"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3766, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0952, "class": 1.0, "tfidf": 0.4337}}, {"dep_id": 3, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "81-83", "dependency_updated": "inserted", "score": 0.3696, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1905, "class": 1.0, "tfidf": 0.2089}}, {"dep_id": 4, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "85-87", "dependency_updated": "inserted", "score": 0.3614, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2857, "class": 1.0, "tfidf": 0.139}}, {"dep_id": 2, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.3407, "signal_scores": {"nc": 0.0, "lcs_u": 0.4118, "ed": 0.2857, "class": 1.0, "tfidf": 0.139}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.2831, "signal_scores": {"nc": 0.0, "lcs_u": 0.2632, "ed": 0.0952, "class": 1.0, "tfidf": 0.139}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.9542, "method_coverage_gold": 1.616, "line_coverage_gold": 1.7644, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1511_searchbox-io_Jest-v5.3.4_6303a66_c3e8eea_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.equalsReturnsFalseForDifferentMappings:()V", "class": "ReindexTest", "method": "equalsReturnsFalseForDifferentMappings", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#equalsReturnsFalseForDifferentMappings", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsFalseForDifferentMappings() {\n Reindex reindex1 = new Reindex.Builder(source, dest).waitForCompletion(true).build();\n Reindex reindex2 = new Reindex.Builder(source, dest).waitForCompletion(false).build();\n assertNotEquals(reindex1, reindex2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-75"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.43, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0789, "class": 1.0, "tfidf": 0.5222}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.371, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2105, "class": 1.0, "tfidf": 0.2323}}], "coverage_gold": 0.45, "branch_coverage_gold": 1.2405, "method_coverage_gold": 1.616, "line_coverage_gold": 2.0205, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1512_searchbox-io_Jest-v5.3.4_6303a66_c3e8eea_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testDataGeneration:()V", "class": "ReindexTest", "method": "testDataGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testDataGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testDataGeneration() throws Exception {\n Reindex reindex = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n String generatedData = reindex.getData(new GsonBuilder().create());\n String expectedData = \"{\\\"conflicts\\\":\\\"proceed\\\",\\\"dest\\\":{\\\"index\\\":\\\"destIndex\\\"},\\\"source\\\":{\\\"index\\\":\\\"sourceIndex\\\"}}\";\n JSONAssert.assertEquals(expectedData, generatedData, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-51"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3291, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0714, "class": 1.0, "tfidf": 0.3986}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": 0.2974, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0714, "class": 1.0, "tfidf": 0.2475}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.7634, "method_coverage_gold": 1.1407, "line_coverage_gold": 1.309, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/action/AbstractAction.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1513_searchbox-io_Jest-v5.3.4_6303a66_c3e8eea_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testBasicUriGeneration:()V", "class": "ReindexTest", "method": "testBasicUriGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testBasicUriGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGeneration() {\n Reindex reindex = new Reindex.Builder(source, dest).build();\n assertEquals(\"POST\", reindex.getRestMethodName());\n assertEquals(\"/_reindex\", reindex.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-22"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.4826, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.6843}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.2819, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.0556, "class": 1.0, "tfidf": 0.0946}}], "coverage_gold": 0.391304347826087, "branch_coverage_gold": 0.7634, "method_coverage_gold": 1.1407, "line_coverage_gold": 1.2521, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__681997c_6084f62__FlushTest_a4e36a5e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "681997cec7eaff9cc54d935be89a53dc4905ce87", "rev2": "6084f62f74673146baab16128247e2493bd5f8d7", "rev1_date": "2017-04-30T14:14:54Z", "rev2_date": "2017-04-30T14:15:43Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/681997cec7eaff9cc54d935be89a53dc4905ce87...6084f62f74673146baab16128247e2493bd5f8d7", "test_file": "jest-common/src/test/java/io/searchbox/indices/FlushTest.java", "test_changes": [{"change_id": "1433_searchbox-io_Jest-v5.3.4_681997c_6084f62_FlushTest", "test_sign": "io/searchbox/indices/FlushTest.testBasicUriGenerationWithWaitIfOngoing:()V", "class": "FlushTest", "method": "testBasicUriGenerationWithWaitIfOngoing", "module": "jest-common", "junit_selector": "io.searchbox.indices.FlushTest#testBasicUriGenerationWithWaitIfOngoing", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGenerationWithWaitIfOngoing() {\n Flush flush = new Flush.Builder().addIndex(\"twitter\").waitIfOngoing().build();\n assertEquals(\"POST\", flush.getRestMethodName());\n assertEquals(\"twitter/_flush?wait_if_ongoing=true\", flush.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-32"], "old_production_code": "", "new_production_code": "public Builder waitIfOngoing() {\n return waitIfOngoing(true);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "focal_method_sign": "io/searchbox/indices/Flush$Builder.waitIfOngoing:()Lio/searchbox/indices/Flush$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/Flush$Builder.waitIfOngoing:()Lio/searchbox/indices/Flush$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.8475, "method_coverage_gold": 1.7415, "line_coverage_gold": 1.6718, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/Flush$Builder.waitIfOngoing:()Lio/searchbox/indices/Flush$Builder", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/Flush$Builder.build:()Lio/searchbox/indices/Flush", "io/searchbox/indices/Flush.getRestMethodName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/Flush$Builder.waitIfOngoing:()Lio/searchbox/indices/Flush$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1434_searchbox-io_Jest-v5.3.4_681997c_6084f62_FlushTest", "test_sign": "io/searchbox/indices/FlushTest.testBasicUriGenerationWithForce:()V", "class": "FlushTest", "method": "testBasicUriGenerationWithForce", "module": "jest-common", "junit_selector": "io.searchbox.indices.FlushTest#testBasicUriGenerationWithForce", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGenerationWithForce() {\n Flush flush = new Flush.Builder().addIndex(\"twitter\").force().build();\n assertEquals(\"POST\", flush.getRestMethodName());\n assertEquals(\"twitter/_flush?force=true\", flush.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-24"], "old_production_code": "", "new_production_code": "public Builder force() {\n return force(true);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "focal_method_sign": "io/searchbox/indices/Flush$Builder.force:()Lio/searchbox/indices/Flush$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/Flush$Builder.force:()Lio/searchbox/indices/Flush$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "line_nums_new": "32-34", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.8475, "method_coverage_gold": 1.7415, "line_coverage_gold": 1.6718, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/Flush$Builder.force:()Lio/searchbox/indices/Flush$Builder", "io/searchbox/indices/Flush$Builder.build:()Lio/searchbox/indices/Flush", "io/searchbox/indices/Flush.getRestMethodName:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/Flush$Builder.force:()Lio/searchbox/indices/Flush$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/Flush.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__9eeede7_bd57835__DocumentResultTest_6154dcac", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "9eeede7e9b910e5b4c591083dc42b0cb3356354b", "rev2": "bd57835f00547ccd1990278d409cd3187b45cc6d", "rev1_date": "2016-05-23T15:58:01Z", "rev2_date": "2016-05-23T19:22:11Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/9eeede7e9b910e5b4c591083dc42b0cb3356354b...bd57835f00547ccd1990278d409cd3187b45cc6d", "test_file": "jest-common/src/test/java/io/searchbox/core/DocumentResultTest.java", "test_changes": [{"change_id": "1330_searchbox-io_Jest-v5.3.4_9eeede7_bd57835_DocumentResultTest", "test_sign": "io/searchbox/core/DocumentResultTest.shouldFetchVersionFromValidResponse:()V", "class": "DocumentResultTest", "method": "shouldFetchVersionFromValidResponse", "module": "jest-common", "junit_selector": "io.searchbox.core.DocumentResultTest#shouldFetchVersionFromValidResponse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFetchVersionFromValidResponse() {\n assertEquals(Long.valueOf(2), validResult.getVersion());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public Long getVersion() {\n return getAsLong(jsonObject.get(\"_version\"));\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "focal_method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3119, "method_coverage_gold": 0.8574, "line_coverage_gold": 0.7024, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__9eeede7_bd57835__TopHitsAggregationTest_ef067a1e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "9eeede7e9b910e5b4c591083dc42b0cb3356354b", "rev2": "bd57835f00547ccd1990278d409cd3187b45cc6d", "rev1_date": "2016-05-23T15:58:01Z", "rev2_date": "2016-05-23T19:22:11Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/9eeede7e9b910e5b4c591083dc42b0cb3356354b...bd57835f00547ccd1990278d409cd3187b45cc6d", "test_file": "jest-common/src/test/java/io/searchbox/search/aggregation/TopHitsAggregationTest.java", "test_changes": [{"change_id": "1331_searchbox-io_Jest-v5.3.4_9eeede7_bd57835_TopHitsAggregationTest", "test_sign": "io/searchbox/search/aggregation/TopHitsAggregationTest.testGetMaxScoreWhenMissing:()V", "class": "TopHitsAggregationTest", "method": "testGetMaxScoreWhenMissing", "module": "jest-common", "junit_selector": "io.searchbox.search.aggregation.TopHitsAggregationTest#testGetMaxScoreWhenMissing", "old_test_code": null, "new_test_code": "@Test\npublic void testGetMaxScoreWhenMissing() {\n SearchResult searchResult = new SearchResult(new Gson());\n searchResult.setSucceeded(true);\n searchResult.setJsonString(json);\n searchResult.setJsonObject(new JsonParser().parse(json).getAsJsonObject());\n searchResult.setPathToResult(\"hits/hits/_source\");\n Float maxScore = searchResult.getMaxScore();\n assertNull(maxScore);\n TermsAggregation termsAgg = searchResult.getAggregations().getTermsAggregation(\"test\");\n assertEquals(new Long(1), termsAgg.getDocCountErrorUpperBound());\n assertEquals(new Long(2), termsAgg.getSumOtherDocCount());\n List termBuckets = termsAgg.getBuckets();\n for (Entry entry : termBuckets) {\n TopHitsAggregation topHitAgg = entry.getTopHitsAggregation(\"top_hits_test\");\n List hits = topHitAgg.getSourceAsStringList();\n assertEquals(2, hits.size());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-123"], "old_production_code": "", "new_production_code": "public TopHitsAggregation getTopHitsAggregation(String aggName) {\n return jsonRoot.has(aggName) ? new TopHitsAggregation(aggName, jsonRoot.getAsJsonObject(aggName)) : null;\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "focal_method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "line_nums_new": "251-253", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3113207547169811, "branch_coverage_gold": 4.3659, "method_coverage_gold": 3.7513, "line_coverage_gold": 5.0128, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/search/aggregation/MetricAggregation.getTermsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TermsAggregation", "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "io/searchbox/core/search/aggregation/TermsAggregation.getDocCountErrorUpperBound:()Ljava/lang/Long", "io/searchbox/client/JestResult.setJsonObject:(Lcom/google/gson/JsonObject;)V", "io/searchbox/client/JestResult.setPathToResult:(Ljava/lang/String;)V", "io/searchbox/client/JestResult.getSourceAsStringList:()Ljava/util/List", "io/searchbox/core/search/aggregation/TermsAggregation.getSumOtherDocCount:()Ljava/lang/Long", "io/searchbox/client/JestResult.setSucceeded:(Z)V", "io/searchbox/core/search/aggregation/TermsAggregation.getBuckets:()Ljava/util/List", "io/searchbox/core/SearchResult.getMaxScore:()Ljava/lang/Float", "io/searchbox/client/JestResult.setJsonString:(Ljava/lang/String;)V", "io/searchbox/core/SearchResult.getAggregations:()Lio/searchbox/core/search/aggregation/MetricAggregation"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__9eeede7_bd57835__HttpClientConfigTest_84aa2aa0", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "9eeede7e9b910e5b4c591083dc42b0cb3356354b", "rev2": "bd57835f00547ccd1990278d409cd3187b45cc6d", "rev1_date": "2016-05-23T15:58:01Z", "rev2_date": "2016-05-23T19:22:11Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/9eeede7e9b910e5b4c591083dc42b0cb3356354b...bd57835f00547ccd1990278d409cd3187b45cc6d", "test_file": "jest/src/test/java/io/searchbox/client/config/HttpClientConfigTest.java", "test_changes": [{"change_id": "1327_searchbox-io_Jest-v5.3.4_9eeede7_bd57835_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuthWithoutCredentials:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuthWithoutCredentials", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuthWithoutCredentials", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void preemptiveAuthWithoutCredentials() {\n new HttpClientConfig.Builder(\"localhost\").setPreemptiveAuth(new HttpHost(\"localhost\", 80, \"http\")).build();\n fail(\"Builder should have thrown an exception if preemptive authentication is set without setting credentials\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-75"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.4248, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.3438, "class": 1.0, "tfidf": 0.1472}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.3686, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0938, "class": 1.0, "tfidf": 0.2511}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 10.0, "method_coverage_gold": 5.1282, "line_coverage_gold": 5.5215, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1333_searchbox-io_Jest-v5.3.4_9eeede7_bd57835_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuth:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuth", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuth", "old_test_code": null, "new_test_code": "@Test\npublic void preemptiveAuth() {\n String hostName = \"targetHost\";\n int port = 80;\n HttpClientConfig httpClientConfig = new HttpClientConfig.Builder(\"localhost\").defaultCredentials(\"someUser\", \"somePassword\").setPreemptiveAuth(new HttpHost(hostName, port, \"http\")).build();\n assertEquals(hostName, httpClientConfig.getPreemptiveAuthTargetHost().getHostName());\n assertEquals(port, httpClientConfig.getPreemptiveAuthTargetHost().getPort());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-67"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.5039, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.8235, "class": 1.0, "tfidf": 0.1473}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "99-101", "dependency_updated": "inserted", "score": 0.3965, "signal_scores": {"nc": 0.0, "lcs_u": 0.5185, "ed": 0.5185, "class": 1.0, "tfidf": 0.1333}}, {"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.2353, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0714, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.4230769230769231, "branch_coverage_gold": 10.0, "method_coverage_gold": 8.9744, "line_coverage_gold": 10.7362, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "io/searchbox/client/config/HttpClientConfig$Builder.defaultCredentials:(Ljava/lang/String;Ljava/lang/String;)Lio/searchbox/client/config/HttpClientConfig$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a4be482_1c40aa5__ReindexTest_08e264f0", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a4be4822bdcb4847969aa362a81855abb95877a6", "rev2": "1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "rev1_date": "2017-01-10T12:04:40Z", "rev2_date": "2017-01-10T12:27:22Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a4be4822bdcb4847969aa362a81855abb95877a6...1c40aa5bf27495c88718cdbf6ae4768ee27f8d10", "test_file": "jest-common/src/test/java/io/searchbox/indices/reindex/ReindexTest.java", "test_changes": [{"change_id": "1303_searchbox-io_Jest-v5.3.4_a4be482_1c40aa5_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.equalsReturnsTrueForSameMappings:()V", "class": "ReindexTest", "method": "equalsReturnsTrueForSameMappings", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#equalsReturnsTrueForSameMappings", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsTrueForSameMappings() {\n Reindex reindex1 = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n Reindex reindex2 = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n assertEquals(reindex1, reindex2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-63"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3859, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0625, "class": 1.0, "tfidf": 0.4962}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": 0.3433, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.125, "class": 1.0, "tfidf": 0.2381}}], "coverage_gold": 0.4146341463414634, "branch_coverage_gold": 1.0516, "method_coverage_gold": 1.4493, "line_coverage_gold": 1.6807, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z", "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1304_searchbox-io_Jest-v5.3.4_a4be482_1c40aa5_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testQueryStringGeneration:()V", "class": "ReindexTest", "method": "testQueryStringGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testQueryStringGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testQueryStringGeneration() throws Exception {\n Reindex reindex = new Reindex.Builder(source, dest).waitForCompletion(true).waitForActiveShards(1).timeout(5000L).requestsPerSecond(5d).build();\n String generatedURI = reindex.getURI();\n String expectedURI = \"/_reindex?wait_for_completion=true&wait_for_active_shards=1&timeout=5000&requests_per_second=5.0\";\n assertEquals(expectedURI, generatedURI);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-38"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3766, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0952, "class": 1.0, "tfidf": 0.4337}}, {"dep_id": 3, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "81-83", "dependency_updated": "inserted", "score": 0.3696, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1905, "class": 1.0, "tfidf": 0.2089}}, {"dep_id": 4, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "85-87", "dependency_updated": "inserted", "score": 0.3614, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2857, "class": 1.0, "tfidf": 0.139}}, {"dep_id": 2, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.3407, "signal_scores": {"nc": 0.0, "lcs_u": 0.4118, "ed": 0.2857, "class": 1.0, "tfidf": 0.139}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "77-79", "dependency_updated": "inserted", "score": 0.2831, "signal_scores": {"nc": 0.0, "lcs_u": 0.2632, "ed": 0.0952, "class": 1.0, "tfidf": 0.139}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.956, "method_coverage_gold": 1.6425, "line_coverage_gold": 1.7966, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForActiveShards:(I)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.timeout:(J)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.requestsPerSecond:(D)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1305_searchbox-io_Jest-v5.3.4_a4be482_1c40aa5_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.equalsReturnsFalseForDifferentMappings:()V", "class": "ReindexTest", "method": "equalsReturnsFalseForDifferentMappings", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#equalsReturnsFalseForDifferentMappings", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsFalseForDifferentMappings() {\n Reindex reindex1 = new Reindex.Builder(source, dest).waitForCompletion(true).build();\n Reindex reindex2 = new Reindex.Builder(source, dest).waitForCompletion(false).build();\n assertNotEquals(reindex1, reindex2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-75"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.43, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0789, "class": 1.0, "tfidf": 0.5222}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "73-75", "dependency_updated": "inserted", "score": 0.371, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2105, "class": 1.0, "tfidf": 0.2323}}], "coverage_gold": 0.45, "branch_coverage_gold": 1.2428, "method_coverage_gold": 1.6425, "line_coverage_gold": 2.0574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.waitForCompletion:(Z)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1306_searchbox-io_Jest-v5.3.4_a4be482_1c40aa5_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testDataGeneration:()V", "class": "ReindexTest", "method": "testDataGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testDataGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testDataGeneration() throws Exception {\n Reindex reindex = new Reindex.Builder(source, dest).conflicts(\"proceed\").build();\n String generatedData = reindex.getData(new GsonBuilder().create());\n String expectedData = \"{\\\"conflicts\\\":\\\"proceed\\\",\\\"dest\\\":{\\\"index\\\":\\\"destIndex\\\"},\\\"source\\\":{\\\"index\\\":\\\"sourceIndex\\\"}}\";\n JSONAssert.assertEquals(expectedData, generatedData, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-51"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.3291, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0714, "class": 1.0, "tfidf": 0.3986}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "58-61", "dependency_updated": "inserted", "score": 0.2974, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0714, "class": 1.0, "tfidf": 0.2475}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.7648, "method_coverage_gold": 1.1594, "line_coverage_gold": 1.3329, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/action/AbstractAction.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.conflicts:(Ljava/lang/String;)Lio/searchbox/indices/reindex/Reindex$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1307_searchbox-io_Jest-v5.3.4_a4be482_1c40aa5_ReindexTest", "test_sign": "io/searchbox/indices/reindex/ReindexTest.testBasicUriGeneration:()V", "class": "ReindexTest", "method": "testBasicUriGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.reindex.ReindexTest#testBasicUriGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGeneration() {\n Reindex reindex = new Reindex.Builder(source, dest).build();\n assertEquals(\"POST\", reindex.getRestMethodName());\n assertEquals(\"/_reindex\", reindex.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-22"], "old_production_code": "", "new_production_code": "public Reindex build() {\n return new Reindex(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "focal_method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "89-91", "dependency_updated": "inserted", "score": 0.4826, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.6843}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": 0.2819, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.0556, "class": 1.0, "tfidf": 0.0946}}], "coverage_gold": 0.391304347826087, "branch_coverage_gold": 0.7648, "method_coverage_gold": 1.1594, "line_coverage_gold": 1.275, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/reindex/Reindex$Builder.build:()Lio/searchbox/indices/reindex/Reindex", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/reindex/Reindex.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/reindex/Reindex.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__RerouteTest_dd6f736c", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/cluster/RerouteTest.java", "test_changes": [{"change_id": "1380_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteTest", "test_sign": "io/searchbox/cluster/RerouteTest.reroute:()V", "class": "RerouteTest", "method": "reroute", "module": "jest-common", "junit_selector": "io.searchbox.cluster.RerouteTest#reroute", "old_test_code": null, "new_test_code": "@Test\npublic void reroute() throws JSONException {\n List moveCommands = new LinkedList();\n moveCommands.add(new RerouteMove(\"index1\", 1, \"node1\", \"node2\"));\n moveCommands.add(new RerouteCancel(\"index2\", 1, \"node2\", true));\n moveCommands.add(new RerouteAllocate(\"index3\", 1, \"node3\", false));\n Reroute reroute = new Reroute.Builder(moveCommands).build();\n assertEquals(\"/_cluster/reroute\", reroute.getURI());\n assertEquals(\"POST\", reroute.getRestMethodName());\n String expectedData = \"{ \\\"commands\\\": [\" + \"{ \\\"move\\\": { \\\"index\\\": \\\"index1\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node1\\\", \\\"to_node\\\": \\\"node2\\\" } }, \" + \"{ \\\"cancel\\\": { \\\"index\\\": \\\"index2\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node2\\\", \\\"allow_primary\\\": true } },\" + \"{ \\\"allocate\\\": { \\\"index\\\": \\\"index3\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node3\\\", \\\"allow_primary\\\": false } }\" + \"] }\";\n JSONAssert.assertEquals(expectedData, reroute.getData(new Gson()), false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-36"], "old_production_code": "", "new_production_code": "@Override\npublic Reroute build() {\n return new Reroute(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "focal_method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.3062, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.3514}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.2844, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.2353, "class": 1.0, "tfidf": 0.0676}}], "coverage_gold": 0.48, "branch_coverage_gold": 0.8507, "method_coverage_gold": 2.0913, "line_coverage_gold": 2.4432, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "io/searchbox/action/AbstractAction.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/Reroute$Builder.build:()Lio/searchbox/cluster/Reroute", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/Reroute.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/Reroute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__RerouteAllocateTest_478f6d9e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteAllocateTest.java", "test_changes": [{"change_id": "1374_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteAllocateTest", "test_sign": "io/searchbox/cluster/reroute/RerouteAllocateTest.allowPrimaryFalse:()V", "class": "RerouteAllocateTest", "method": "allowPrimaryFalse", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteAllocateTest#allowPrimaryFalse", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryFalse() throws JSONException {\n RerouteAllocate allocateReplica = new RerouteAllocate(\"index1\", 1, \"node1\", false);\n assertEquals(allocateReplica.getType(), \"allocate\");\n String actualJson = new Gson().toJson(allocateReplica.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": false}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-32"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"allocate\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.3013, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1841}}, {"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2827, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1048}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1381_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteAllocateTest", "test_sign": "io/searchbox/cluster/reroute/RerouteAllocateTest.allowPrimaryTrue:()V", "class": "RerouteAllocateTest", "method": "allowPrimaryTrue", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteAllocateTest#allowPrimaryTrue", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryTrue() throws JSONException {\n RerouteAllocate allocateReplica = new RerouteAllocate(\"index1\", 1, \"node1\", true);\n assertEquals(allocateReplica.getType(), \"allocate\");\n String actualJson = new Gson().toJson(allocateReplica.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": true}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"allocate\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.3026, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1841}}, {"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2839, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1048}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteAllocate.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteAllocate.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__RerouteCancelTest_478f6d9e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteCancelTest.java", "test_changes": [{"change_id": "1370_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteCancelTest", "test_sign": "io/searchbox/cluster/reroute/RerouteCancelTest.allowPrimaryTrue:()V", "class": "RerouteCancelTest", "method": "allowPrimaryTrue", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteCancelTest#allowPrimaryTrue", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryTrue() throws JSONException {\n RerouteCancel rerouteCancel = new RerouteCancel(\"index1\", 1, \"node1\", true);\n assertEquals(rerouteCancel.getType(), \"cancel\");\n String actualJson = new Gson().toJson(rerouteCancel.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": true}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"cancel\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.298, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.1647}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.2812, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.125, "class": 1.0, "tfidf": 0.0935}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1377_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteCancelTest", "test_sign": "io/searchbox/cluster/reroute/RerouteCancelTest.allowPrimaryFalse:()V", "class": "RerouteCancelTest", "method": "allowPrimaryFalse", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteCancelTest#allowPrimaryFalse", "old_test_code": null, "new_test_code": "@Test\npublic void allowPrimaryFalse() throws JSONException {\n RerouteCancel rerouteCancel = new RerouteCancel(\"index1\", 1, \"node1\", false);\n assertEquals(rerouteCancel.getType(), \"cancel\");\n String actualJson = new Gson().toJson(rerouteCancel.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"node\\\": \\\"node1\\\", \\\"allow_primary\\\": false}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-32"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"cancel\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": 0.2968, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.1647}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "line_nums_new": "25-35", "dependency_updated": "inserted", "score": 0.28, "signal_scores": {"nc": 0.0, "lcs_u": 0.2857, "ed": 0.1176, "class": 1.0, "tfidf": 0.0935}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteCancel.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteCancel.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__RerouteMoveTest_3734a903", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/cluster/reroute/RerouteMoveTest.java", "test_changes": [{"change_id": "1375_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_RerouteMoveTest", "test_sign": "io/searchbox/cluster/reroute/RerouteMoveTest.move:()V", "class": "RerouteMoveTest", "method": "move", "module": "jest-common", "junit_selector": "io.searchbox.cluster.reroute.RerouteMoveTest#move", "old_test_code": null, "new_test_code": "@Test\npublic void move() throws JSONException {\n RerouteMove rerouteMove = new RerouteMove(\"index1\", 1, \"node1\", \"node2\");\n assertEquals(rerouteMove.getType(), \"move\");\n String actualJson = new Gson().toJson(rerouteMove.getData());\n String expectedJson = \"{\\\"index\\\":\\\"index1\\\", \\\"shard\\\": 1, \\\"from_node\\\": \\\"node1\\\", \\\"to_node\\\": \\\"node2\\\"}\";\n JSONAssert.assertEquals(actualJson, expectedJson, false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["12-21"], "old_production_code": "", "new_production_code": "@Override\npublic String getType() {\n return \"move\";\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "focal_method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "line_nums_new": "21-24", "dependency_updated": "inserted", "score": 0.2841, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.1429, "class": 1.0, "tfidf": 0.2001}}, {"dep_id": 1, "method_sign": "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "line_nums_new": "26-35", "dependency_updated": "inserted", "score": 0.2353, "signal_scores": {"nc": 0.0, "lcs_u": 0.1429, "ed": 0.0, "class": 1.0, "tfidf": 0.0928}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.2852, "line_coverage_gold": 0.3693, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/cluster/reroute/RerouteMove.getType:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/cluster/reroute/RerouteMove.getData:()Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/cluster/reroute/RerouteMove.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__CatNodesBuilderTest_d888b1e7", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/core/CatNodesBuilderTest.java", "test_changes": [{"change_id": "1368_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatNodesBuilderTest", "test_sign": "io/searchbox/core/CatNodesBuilderTest.shouldSetApplicationJsonHeader:()V", "class": "CatNodesBuilderTest", "method": "shouldSetApplicationJsonHeader", "module": "jest-common", "junit_selector": "io.searchbox.core.CatNodesBuilderTest#shouldSetApplicationJsonHeader", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSetApplicationJsonHeader() {\n Cat cat = new Cat.NodesBuilder().build();\n assertEquals(\"application/json\", cat.getHeader(\"accept\"));\n assertEquals(\"application/json\", cat.getHeader(\"content-type\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-13"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "143-146", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3781, "method_coverage_gold": 1.1407, "line_coverage_gold": 1.0511, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction.getHeader:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1372_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatNodesBuilderTest", "test_sign": "io/searchbox/core/CatNodesBuilderTest.shouldGenerateValidUriWhenParameterGiven:()V", "class": "CatNodesBuilderTest", "method": "shouldGenerateValidUriWhenParameterGiven", "module": "jest-common", "junit_selector": "io.searchbox.core.CatNodesBuilderTest#shouldGenerateValidUriWhenParameterGiven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateValidUriWhenParameterGiven() {\n Cat cat = new Cat.NodesBuilder().setParameter(\"v\", \"true\").build();\n assertEquals(\"_cat/nodes?v=true\", cat.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "143-146", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8, "branch_coverage_gold": 0.7561, "method_coverage_gold": 1.3308, "line_coverage_gold": 1.5341, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction$Builder.setParameter:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1379_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatNodesBuilderTest", "test_sign": "io/searchbox/core/CatNodesBuilderTest.shouldGenerateValidUriWhenIndexNotGiven:()V", "class": "CatNodesBuilderTest", "method": "shouldGenerateValidUriWhenIndexNotGiven", "module": "jest-common", "junit_selector": "io.searchbox.core.CatNodesBuilderTest#shouldGenerateValidUriWhenIndexNotGiven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateValidUriWhenIndexNotGiven() {\n Cat cat = new Cat.NodesBuilder().build();\n assertEquals(\"_cat/nodes\", cat.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "143-146", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.5671, "method_coverage_gold": 1.1407, "line_coverage_gold": 1.108, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$NodesBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__a5bfdfe_174f20c__CatShardsBuilderTest_39a14e45", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "a5bfdfe1239d58094bb50dabec98f84a8350fb48", "rev2": "174f20c3fbb25510480146b9754248f33630ffa5", "rev1_date": "2017-01-30T15:14:44Z", "rev2_date": "2017-01-30T15:18:27Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/a5bfdfe1239d58094bb50dabec98f84a8350fb48...174f20c3fbb25510480146b9754248f33630ffa5", "test_file": "jest-common/src/test/java/io/searchbox/core/CatShardsBuilderTest.java", "test_changes": [{"change_id": "1369_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatShardsBuilderTest", "test_sign": "io/searchbox/core/CatShardsBuilderTest.shouldSetApplicationJsonHeader:()V", "class": "CatShardsBuilderTest", "method": "shouldSetApplicationJsonHeader", "module": "jest-common", "junit_selector": "io.searchbox.core.CatShardsBuilderTest#shouldSetApplicationJsonHeader", "old_test_code": null, "new_test_code": "@Test\npublic void shouldSetApplicationJsonHeader() {\n Cat cat = new Cat.ShardsBuilder().build();\n assertEquals(\"application/json\", cat.getHeader(\"accept\"));\n assertEquals(\"application/json\", cat.getHeader(\"content-type\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-13"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "116-119", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.4726, "method_coverage_gold": 1.3308, "line_coverage_gold": 1.1932, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction.getHeader:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1371_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatShardsBuilderTest", "test_sign": "io/searchbox/core/CatShardsBuilderTest.shouldGenerateValidUriWhenIndexNotGiven:()V", "class": "CatShardsBuilderTest", "method": "shouldGenerateValidUriWhenIndexNotGiven", "module": "jest-common", "junit_selector": "io.searchbox.core.CatShardsBuilderTest#shouldGenerateValidUriWhenIndexNotGiven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateValidUriWhenIndexNotGiven() {\n Cat cat = new Cat.ShardsBuilder().build();\n assertEquals(\"_cat/shards\", cat.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["15-19"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "116-119", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.6616, "method_coverage_gold": 1.3308, "line_coverage_gold": 1.25, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1373_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatShardsBuilderTest", "test_sign": "io/searchbox/core/CatShardsBuilderTest.shouldGenerateValidUriWhenIndexGiven:()V", "class": "CatShardsBuilderTest", "method": "shouldGenerateValidUriWhenIndexGiven", "module": "jest-common", "junit_selector": "io.searchbox.core.CatShardsBuilderTest#shouldGenerateValidUriWhenIndexGiven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateValidUriWhenIndexGiven() {\n Cat cat = new Cat.ShardsBuilder().addIndex(\"testIndex\").build();\n assertEquals(\"_cat/shards/testIndex\", cat.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-25"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "116-119", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.7561, "method_coverage_gold": 1.4259, "line_coverage_gold": 1.3636, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1378_searchbox-io_Jest-v5.3.4_a5bfdfe_174f20c_CatShardsBuilderTest", "test_sign": "io/searchbox/core/CatShardsBuilderTest.shouldGenerateValidUriWhenParameterGiven:()V", "class": "CatShardsBuilderTest", "method": "shouldGenerateValidUriWhenParameterGiven", "module": "jest-common", "junit_selector": "io.searchbox.core.CatShardsBuilderTest#shouldGenerateValidUriWhenParameterGiven", "old_test_code": null, "new_test_code": "@Test\npublic void shouldGenerateValidUriWhenParameterGiven() {\n Cat cat = new Cat.ShardsBuilder().setParameter(\"v\", \"true\").build();\n assertEquals(\"_cat/shards?v=true\", cat.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["27-31"], "old_production_code": "", "new_production_code": "@Override\npublic Cat build() {\n return new Cat(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/Cat.java", "focal_method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "line_nums_new": "116-119", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.8507, "method_coverage_gold": 1.5209, "line_coverage_gold": 1.6761, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/Cat$ShardsBuilder.build:()Lio/searchbox/core/Cat", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/Cat.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__aa019a4_11274a8__MultiSearchTest_fa4662f2", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "aa019a424f64b3b5594d8cf49648d113740a31e2", "rev2": "11274a8dd1872bb2574fb0d440a32e665f2ca25b", "rev1_date": "2018-08-10T14:09:24Z", "rev2_date": "2018-08-10T14:18:32Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/aa019a424f64b3b5594d8cf49648d113740a31e2...11274a8dd1872bb2574fb0d440a32e665f2ca25b", "test_file": "jest-common/src/test/java/io/searchbox/core/MultiSearchTest.java", "test_changes": [{"change_id": "1347_searchbox-io_Jest-v5.3.4_aa019a4_11274a8_MultiSearchTest", "test_sign": "io/searchbox/core/MultiSearchTest.multiSearchWithExtraParameters:()V", "class": "MultiSearchTest", "method": "multiSearchWithExtraParameters", "module": "jest-common", "junit_selector": "io.searchbox.core.MultiSearchTest#multiSearchWithExtraParameters", "old_test_code": null, "new_test_code": "@Test\npublic void multiSearchWithExtraParameters() throws JSONException {\n String expectedData = \" {\\\"index\\\" : \\\"twitter\\\", \" + \"\\\"search_type\\\" : \\\"query_then_fetch\\\",\" + \" \\\"routing\\\" : \\\"testRoute\\\",\" + \" \\\"ignore_unavailable\\\" : \\\"true\\\",\" + \" \\\"allow_no_indices\\\" : \\\"true\\\", \" + \"\\\"expand_wildcards\\\" : \\\"true\\\"}\\n\" + \"{\\\"query\\\" : {\\\"match_all\\\" : {}}}\\n\";\n Search search = new Search.Builder(\"{\\\"query\\\" : {\\\"match_all\\\" : {}}}\").addIndex(\"twitter\").setParameter(Parameters.ROUTING, \"testRoute\").setSearchType(SearchType.QUERY_THEN_FETCH).setParameter(Parameters.IGNORE_UNAVAILABLE, true).setParameter(Parameters.ALLOW_NO_INDICES, true).setParameter(Parameters.EXPAND_WILDCARDS, true).build();\n Search search2 = new Search.Builder(\"{\\\"query\\\" : {\\\"match_all\\\" : {}}}\").build();\n MultiSearch multiSearch = new MultiSearch.Builder(search).addSearch(search2).build();\n assertEquals(\"POST\", multiSearch.getRestMethodName());\n assertEquals(\"/_msearch\", multiSearch.getURI());\n JSONAssert.assertEquals(expectedData, multiSearch.getData(null), false);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-102"], "old_production_code": "@Override\npublic String getData(Gson gson) {\n StringBuilder sb = new StringBuilder();\n for (Search search : searches) {\n sb.append(\"{\\\"index\\\" : \\\"\").append(search.getIndex());\n if (!StringUtils.isBlank(search.getType())) {\n sb.append(\"\\\", \\\"type\\\" : \\\"\").append(search.getType());\n }\n sb.append(getParameter(search, \"ignore_unavailable\"));\n sb.append(getParameter(search, \"allow_no_indices\"));\n sb.append(getParameter(search, \"expand_wildcards\"));\n final String query = NEWLINE_MATCHER.removeFrom(search.getData(gson));\n sb.append(\"\\\"}\\n\").append(query).append(\"\\n\");\n }\n return sb.toString();\n}", "new_production_code": "@Override\npublic String getData(Gson gson) {\n StringBuilder sb = new StringBuilder();\n for (Search search : searches) {\n sb.append(\"{\\\"index\\\" : \\\"\").append(search.getIndex());\n if (!StringUtils.isBlank(search.getType())) {\n sb.append(\"\\\", \\\"type\\\" : \\\"\").append(search.getType());\n }\n sb.append(getParameter(search, Parameters.IGNORE_UNAVAILABLE));\n sb.append(getParameter(search, Parameters.ALLOW_NO_INDICES));\n sb.append(getParameter(search, Parameters.EXPAND_WILDCARDS));\n sb.append(getParameter(search, Parameters.ROUTING));\n sb.append(getParameter(search, Parameters.SEARCH_TYPE));\n final String query = NEWLINE_MATCHER.removeFrom(search.getData(gson));\n sb.append(\"\\\"}\\n\").append(query).append(\"\\n\");\n }\n return sb.toString();\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/MultiSearch.java", "focal_method_sign": "io/searchbox/core/MultiSearch.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/MultiSearch.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "file_path_old": "jest-common/src/main/java/io/searchbox/core/MultiSearch.java", "line_nums_old": "40-65", "file_path_new": "jest-common/src/main/java/io/searchbox/core/MultiSearch.java", "line_nums_new": "41-68", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7027027027027027, "branch_coverage_gold": 2.1226, "method_coverage_gold": 3.1617, "line_coverage_gold": 3.7438, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/core/MultiSearch$Builder.build:()Lio/searchbox/core/MultiSearch", "io/searchbox/core/MultiSearch.getRestMethodName:()Ljava/lang/String", "io/searchbox/core/Search$Builder.build:()Lio/searchbox/core/Search", "io/searchbox/core/MultiSearch$Builder.addSearch:(Lio/searchbox/core/Search;)Lio/searchbox/core/MultiSearch$Builder", "io/searchbox/core/Search$Builder.setSearchType:(Lio/searchbox/params/SearchType;)Lio/searchbox/core/Search$Builder", "io/searchbox/core/MultiSearch.getData:(Lcom/google/gson/Gson;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/MultiSearch.getData:(Lcom/google/gson/Gson;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "jest-common/src/main/java/io/searchbox/core/MultiSearch.java", "file_path_new": "jest-common/src/main/java/io/searchbox/core/MultiSearch.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__b634661_b4617c5__ForceMergeTest_c7f27e1c", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "b634661a79a1d01a82fdfd9552f1f7765bab87a3", "rev2": "b4617c5382299b86899d1647ef18babb650ac7a4", "rev1_date": "2016-11-22T14:47:56Z", "rev2_date": "2016-11-22T16:44:11Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/b634661a79a1d01a82fdfd9552f1f7765bab87a3...b4617c5382299b86899d1647ef18babb650ac7a4", "test_file": "jest-common/src/test/java/io/searchbox/indices/ForceMergeTest.java", "test_changes": [{"change_id": "1429_searchbox-io_Jest-v5.3.4_b634661_b4617c5_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.equalsReturnsFalseForDifferentIndex:()V", "class": "ForceMergeTest", "method": "equalsReturnsFalseForDifferentIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#equalsReturnsFalseForDifferentIndex", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsFalseForDifferentIndex() {\n ForceMerge forceMerge1 = new ForceMerge.Builder().addIndex(\"twitter\").build();\n ForceMerge forceMerge2 = new ForceMerge.Builder().addIndex(\"myspace\").build();\n assertNotEquals(forceMerge1, forceMerge2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-32"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4857142857142857, "branch_coverage_gold": 1.0101, "method_coverage_gold": 1.6949, "line_coverage_gold": 1.6369, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1430_searchbox-io_Jest-v5.3.4_b634661_b4617c5_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.equalsReturnsTrueForSameIndex:()V", "class": "ForceMergeTest", "method": "equalsReturnsTrueForSameIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#equalsReturnsTrueForSameIndex", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsTrueForSameIndex() {\n ForceMerge forceMerge1 = new ForceMerge.Builder().addIndex(\"twitter\").build();\n ForceMerge forceMerge1Duplicate = new ForceMerge.Builder().addIndex(\"twitter\").build();\n assertEquals(forceMerge1, forceMerge1Duplicate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-24"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4857142857142857, "branch_coverage_gold": 1.0101, "method_coverage_gold": 1.6949, "line_coverage_gold": 1.6369, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1431_searchbox-io_Jest-v5.3.4_b634661_b4617c5_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.testBasicUriGeneration:()V", "class": "ForceMergeTest", "method": "testBasicUriGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#testBasicUriGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGeneration() {\n ForceMerge forceMerge = new ForceMerge.Builder().addIndex(\"twitter\").build();\n assertEquals(\"POST\", forceMerge.getRestMethodName());\n assertEquals(\"twitter/_forcemerge\", forceMerge.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-16"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.4507, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.5488}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "22-25", "dependency_updated": "inserted", "score": 0.2811, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.0556, "class": 1.0, "tfidf": 0.0911}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.7071, "method_coverage_gold": 1.4955, "line_coverage_gold": 1.3034, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__ba06641_681997c__AliasExistsTest_8674b5e6", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "ba06641cc11ae652cf3eeea5e560dd98e2a5be4a", "rev2": "681997cec7eaff9cc54d935be89a53dc4905ce87", "rev1_date": "2017-04-30T14:14:00Z", "rev2_date": "2017-04-30T14:14:54Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/ba06641cc11ae652cf3eeea5e560dd98e2a5be4a...681997cec7eaff9cc54d935be89a53dc4905ce87", "test_file": "jest-common/src/test/java/io/searchbox/indices/aliases/AliasExistsTest.java", "test_changes": [{"change_id": "1435_searchbox-io_Jest-v5.3.4_ba06641_681997c_AliasExistsTest", "test_sign": "io/searchbox/indices/aliases/AliasExistsTest.testBasicUriGenerationWithAlias:()V", "class": "AliasExistsTest", "method": "testBasicUriGenerationWithAlias", "module": "jest-common", "junit_selector": "io.searchbox.indices.aliases.AliasExistsTest#testBasicUriGenerationWithAlias", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGenerationWithAlias() {\n AliasExists aliasExists = new AliasExists.Builder().alias(\"aliasName\").build();\n assertEquals(\"HEAD\", aliasExists.getRestMethodName());\n assertEquals(\"_all/_alias/aliasName\", aliasExists.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-30"], "old_production_code": "", "new_production_code": "@Override\npublic AliasExists build() {\n return new AliasExists(this, alias);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "focal_method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.4844, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1481, "class": 1.0, "tfidf": 0.5551}}, {"dep_id": 2, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "28-31", "dependency_updated": "inserted", "score": 0.4249, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1852, "class": 1.0, "tfidf": 0.126}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "15-18", "dependency_updated": "inserted", "score": 0.3126, "signal_scores": {"nc": 0.0, "lcs_u": 0.4118, "ed": 0.1852, "class": 1.0, "tfidf": 0.09}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.6591, "method_coverage_gold": 1.3799, "line_coverage_gold": 1.2552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1436_searchbox-io_Jest-v5.3.4_ba06641_681997c_AliasExistsTest", "test_sign": "io/searchbox/indices/aliases/AliasExistsTest.testBasicUriGenerationWithAliasAndIndex:()V", "class": "AliasExistsTest", "method": "testBasicUriGenerationWithAliasAndIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.aliases.AliasExistsTest#testBasicUriGenerationWithAliasAndIndex", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGenerationWithAliasAndIndex() {\n AliasExists aliasExists = new AliasExists.Builder().addIndex(\"indexName\").alias(\"aliasName\").build();\n assertEquals(\"HEAD\", aliasExists.getRestMethodName());\n assertEquals(\"indexName/_alias/aliasName\", aliasExists.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-38"], "old_production_code": "", "new_production_code": "@Override\npublic AliasExists build() {\n return new AliasExists(this, alias);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "focal_method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.5108, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1429, "class": 1.0, "tfidf": 0.521}}, {"dep_id": 2, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "28-31", "dependency_updated": "inserted", "score": 0.4166, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1429, "class": 1.0, "tfidf": 0.1204}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "15-18", "dependency_updated": "inserted", "score": 0.3348, "signal_scores": {"nc": 0.0, "lcs_u": 0.5294, "ed": 0.2, "class": 1.0, "tfidf": 0.086}}], "coverage_gold": 0.6923076923076923, "branch_coverage_gold": 0.6591, "method_coverage_gold": 1.4719, "line_coverage_gold": 1.311, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.alias:(Ljava/lang/String;)Lio/searchbox/indices/aliases/AliasExists$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1437_searchbox-io_Jest-v5.3.4_ba06641_681997c_AliasExistsTest", "test_sign": "io/searchbox/indices/aliases/AliasExistsTest.testBasicUriGenerationWithIndex:()V", "class": "AliasExistsTest", "method": "testBasicUriGenerationWithIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.aliases.AliasExistsTest#testBasicUriGenerationWithIndex", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGenerationWithIndex() {\n AliasExists aliasExists = new AliasExists.Builder().addIndex(\"indexName\").build();\n assertEquals(\"HEAD\", aliasExists.getRestMethodName());\n assertEquals(\"indexName/_alias/*\", aliasExists.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["16-22"], "old_production_code": "", "new_production_code": "@Override\npublic AliasExists build() {\n return new AliasExists(this, alias);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "focal_method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.4678, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1481, "class": 1.0, "tfidf": 0.4844}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "15-18", "dependency_updated": "inserted", "score": 0.3232, "signal_scores": {"nc": 0.0, "lcs_u": 0.4706, "ed": 0.1852, "class": 1.0, "tfidf": 0.0911}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.6591, "method_coverage_gold": 1.3799, "line_coverage_gold": 1.2552, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1438_searchbox-io_Jest-v5.3.4_ba06641_681997c_AliasExistsTest", "test_sign": "io/searchbox/indices/aliases/AliasExistsTest.testBasicUriGeneration:()V", "class": "AliasExistsTest", "method": "testBasicUriGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.aliases.AliasExistsTest#testBasicUriGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGeneration() {\n AliasExists aliasExists = new AliasExists.Builder().build();\n assertEquals(\"HEAD\", aliasExists.getRestMethodName());\n assertEquals(\"_all/_alias/*\", aliasExists.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["8-14"], "old_production_code": "", "new_production_code": "@Override\npublic AliasExists build() {\n return new AliasExists(this, alias);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "focal_method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": 0.4443, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.5215}}, {"dep_id": 0, "method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "line_nums_new": "15-18", "dependency_updated": "inserted", "score": 0.2822, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.0556, "class": 1.0, "tfidf": 0.0959}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.6591, "method_coverage_gold": 1.2879, "line_coverage_gold": 1.1994, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/aliases/AliasExists.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/aliases/AliasExists$Builder.build:()Lio/searchbox/indices/aliases/AliasExists", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/aliases/AliasExists.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__bb67e73_9021cb6__UpdateByQueryTest_c611f274", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "bb67e73edb64d3ee9c6ef32f07e1c25c7dd5c56f", "rev2": "9021cb6764ec0ec9a8c7faee284c93c06b919f2f", "rev1_date": "2017-09-22T12:48:39Z", "rev2_date": "2017-09-22T12:51:26Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/bb67e73edb64d3ee9c6ef32f07e1c25c7dd5c56f...9021cb6764ec0ec9a8c7faee284c93c06b919f2f", "test_file": "jest-common/src/test/java/io/searchbox/core/UpdateByQueryTest.java", "test_changes": [{"change_id": "1388_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithoutIndexAndType:()V", "class": "UpdateByQueryTest", "method": "getURIWithoutIndexAndType", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithoutIndexAndType", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithoutIndexAndType() {\n assertEquals(\"_all/_update_by_query\", new UpdateByQuery.Builder(null).build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-16"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.9615, "method_coverage_gold": 1.3575, "line_coverage_gold": 1.5312, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1389_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithMultipleIndexAndTypes:()V", "class": "UpdateByQueryTest", "method": "getURIWithMultipleIndexAndTypes", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithMultipleIndexAndTypes", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithMultipleIndexAndTypes() {\n assertEquals(\"twitter%2Csearchbox/tweet%2Cjest/_update_by_query\", new UpdateByQuery.Builder(null).addIndex(\"twitter\").addIndex(\"searchbox\").addType(\"tweet\").addType(\"jest\").build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-48"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.8814, "method_coverage_gold": 1.5385, "line_coverage_gold": 1.6562, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiTypeActionBuilder.addType:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1390_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithOnlyMultipleIndex:()V", "class": "UpdateByQueryTest", "method": "getURIWithOnlyMultipleIndex", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithOnlyMultipleIndex", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithOnlyMultipleIndex() {\n assertEquals(\"twitter%2Csearchbox/_update_by_query\", new UpdateByQuery.Builder(null).addIndex(\"twitter\").addIndex(\"searchbox\").build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-37"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.9615, "method_coverage_gold": 1.448, "line_coverage_gold": 1.5938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1391_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.equals:()V", "class": "UpdateByQueryTest", "method": "equals", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#equals", "old_test_code": null, "new_test_code": "@Test\npublic void equals() {\n UpdateByQuery deleteUserKramer = new UpdateByQuery.Builder(\"{\\\"user\\\":\\\"kramer\\\"}\").addIndex(\"twitter\").addIndex(\"searchbox\").addType(\"tweet\").addType(\"jest\").build();\n UpdateByQuery deleteUserKramerDuplicate = new UpdateByQuery.Builder(\"{\\\"user\\\":\\\"kramer\\\"}\").addIndex(\"twitter\").addIndex(\"searchbox\").addType(\"tweet\").addType(\"jest\").build();\n assertEquals(deleteUserKramer, deleteUserKramerDuplicate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-66"], "old_production_code": "", "new_production_code": "@Override\npublic boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (obj == this) {\n return true;\n }\n if (obj.getClass() != getClass()) {\n return false;\n }\n return super.equals(obj);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "40-53", "dependency_updated": "inserted", "score": 0.769, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0182}}, {"dep_id": 1, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.3841, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.3333, "class": 1.0, "tfidf": 0.2991}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.6827, "method_coverage_gold": 1.9005, "line_coverage_gold": 2.0938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiTypeActionBuilder.addType:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1392_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.equalsReturnsFalseForDifferentQueries:()V", "class": "UpdateByQueryTest", "method": "equalsReturnsFalseForDifferentQueries", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#equalsReturnsFalseForDifferentQueries", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsFalseForDifferentQueries() {\n UpdateByQuery deleteUserKramer = new UpdateByQuery.Builder(\"{\\\"user\\\":\\\"kramer\\\"}\").addIndex(\"twitter\").addIndex(\"searchbox\").addType(\"tweet\").addType(\"jest\").build();\n UpdateByQuery deleteUserJerry = new UpdateByQuery.Builder(\"{\\\"user\\\":\\\"jerry\\\"}\").addIndex(\"twitter\").addIndex(\"searchbox\").addType(\"tweet\").addType(\"jest\").build();\n assertNotEquals(deleteUserKramer, deleteUserJerry);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["68-84"], "old_production_code": "", "new_production_code": "@Override\npublic boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n if (obj == this) {\n return true;\n }\n if (obj.getClass() != getClass()) {\n return false;\n }\n return super.equals(obj);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "40-53", "dependency_updated": "inserted", "score": 0.3914, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1622, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": 0.3787, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0811, "class": 1.0, "tfidf": 0.3029}}], "coverage_gold": 0.75, "branch_coverage_gold": 1.6827, "method_coverage_gold": 1.9005, "line_coverage_gold": 2.0938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiTypeActionBuilder.addType:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery.equals:(Ljava/lang/Object;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1393_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithOnlyOneIndex:()V", "class": "UpdateByQueryTest", "method": "getURIWithOnlyOneIndex", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithOnlyOneIndex", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithOnlyOneIndex() {\n assertEquals(\"twitter/_update_by_query\", new UpdateByQuery.Builder(null).addIndex(\"twitter\").build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-21"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.9615, "method_coverage_gold": 1.448, "line_coverage_gold": 1.5938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1394_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithOnlyMultipleType:()V", "class": "UpdateByQueryTest", "method": "getURIWithOnlyMultipleType", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithOnlyMultipleType", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithOnlyMultipleType() {\n assertEquals(\"_all/tweet%2Cjest/_update_by_query\", new UpdateByQuery.Builder(null).addType(\"tweet\").addType(\"jest\").build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-26"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 0.8814, "method_coverage_gold": 1.448, "line_coverage_gold": 1.5938, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiTypeActionBuilder.addType:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1395_searchbox-io_Jest-v5.3.4_bb67e73_9021cb6_UpdateByQueryTest", "test_sign": "io/searchbox/core/UpdateByQueryTest.getURIWithOneIndexAndOneType:()V", "class": "UpdateByQueryTest", "method": "getURIWithOneIndexAndOneType", "module": "jest-common", "junit_selector": "io.searchbox.core.UpdateByQueryTest#getURIWithOneIndexAndOneType", "old_test_code": null, "new_test_code": "@Test\npublic void getURIWithOneIndexAndOneType() {\n assertEquals(\"twitter/tweet/_update_by_query\", new UpdateByQuery.Builder(null).addIndex(\"twitter\").addType(\"tweet\").build().getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-31"], "old_production_code": "", "new_production_code": "@Override\npublic UpdateByQuery build() {\n return new UpdateByQuery(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "focal_method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.8814, "method_coverage_gold": 1.5385, "line_coverage_gold": 1.6562, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "io/searchbox/action/AbstractMultiTypeActionBuilder.addType:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/UpdateByQuery$Builder.build:()Lio/searchbox/core/UpdateByQuery", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/UpdateByQuery.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__bf324d7_d4640e4__DocumentResultTest_6154dcac", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "bf324d7eec6dcfb29ebd219ee06544e22d4d5a6c", "rev2": "d4640e4175463cad5929e8dcf5ba817e32b7456b", "rev1_date": "2016-05-08T09:00:20Z", "rev2_date": "2016-05-08T09:05:18Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/bf324d7eec6dcfb29ebd219ee06544e22d4d5a6c...d4640e4175463cad5929e8dcf5ba817e32b7456b", "test_file": "jest-common/src/test/java/io/searchbox/core/DocumentResultTest.java", "test_changes": [{"change_id": "1262_searchbox-io_Jest-v5.3.4_bf324d7_d4640e4_DocumentResultTest", "test_sign": "io/searchbox/core/DocumentResultTest.shouldFetchVersionFromValidResponse:()V", "class": "DocumentResultTest", "method": "shouldFetchVersionFromValidResponse", "module": "jest-common", "junit_selector": "io.searchbox.core.DocumentResultTest#shouldFetchVersionFromValidResponse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFetchVersionFromValidResponse() {\n assertEquals(Long.valueOf(2), validResult.getVersion());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public Long getVersion() {\n return getAsLong(jsonObject.get(\"_version\"));\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "focal_method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3151, "method_coverage_gold": 0.7543, "line_coverage_gold": 0.515, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__bff65d1_175e80b__HttpClientConfigTest_84aa2aa0", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "bff65d14ceeaa8e6fece92ebbcd76923684ad1a3", "rev2": "175e80b5e8bb217ac3d5fae06711d5057cd32c11", "rev1_date": "2016-05-22T11:35:12Z", "rev2_date": "2016-05-22T11:41:10Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/bff65d14ceeaa8e6fece92ebbcd76923684ad1a3...175e80b5e8bb217ac3d5fae06711d5057cd32c11", "test_file": "jest/src/test/java/io/searchbox/client/config/HttpClientConfigTest.java", "test_changes": [{"change_id": "1281_searchbox-io_Jest-v5.3.4_bff65d1_175e80b_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuthWithoutCredentials:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuthWithoutCredentials", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuthWithoutCredentials", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void preemptiveAuthWithoutCredentials() {\n new HttpClientConfig.Builder(\"localhost\").setPreemptiveAuth(new HttpHost(\"localhost\", 80, \"http\")).build();\n fail(\"Builder should have thrown an exception if preemptive authentication is set without setting credentials\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-75"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.4248, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.3438, "class": 1.0, "tfidf": 0.1472}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.3686, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0938, "class": 1.0, "tfidf": 0.2511}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 10.2564, "method_coverage_gold": 5.1282, "line_coverage_gold": 5.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1284_searchbox-io_Jest-v5.3.4_bff65d1_175e80b_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuth:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuth", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuth", "old_test_code": null, "new_test_code": "@Test\npublic void preemptiveAuth() {\n String hostName = \"targetHost\";\n int port = 80;\n HttpClientConfig httpClientConfig = new HttpClientConfig.Builder(\"localhost\").defaultCredentials(\"someUser\", \"somePassword\").setPreemptiveAuth(new HttpHost(hostName, port, \"http\")).build();\n assertEquals(hostName, httpClientConfig.getPreemptiveAuthTargetHost().getHostName());\n assertEquals(port, httpClientConfig.getPreemptiveAuthTargetHost().getPort());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-67"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.5039, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.8235, "class": 1.0, "tfidf": 0.1473}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "99-101", "dependency_updated": "inserted", "score": 0.3965, "signal_scores": {"nc": 0.0, "lcs_u": 0.5185, "ed": 0.5185, "class": 1.0, "tfidf": 0.1333}}, {"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.2353, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0714, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.4230769230769231, "branch_coverage_gold": 10.2564, "method_coverage_gold": 8.9744, "line_coverage_gold": 10.8025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "io/searchbox/client/config/HttpClientConfig$Builder.defaultCredentials:(Ljava/lang/String;Ljava/lang/String;)Lio/searchbox/client/config/HttpClientConfig$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__cd5652a_9cd555d__ForceMergeTest_c7f27e1c", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "cd5652a28cd61489e73698463d74774fe3b6db5e", "rev2": "9cd555d8d1afa75d13f29a911d1fea93088a83de", "rev1_date": "2016-11-02T10:06:15Z", "rev2_date": "2016-11-02T10:09:23Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/cd5652a28cd61489e73698463d74774fe3b6db5e...9cd555d8d1afa75d13f29a911d1fea93088a83de", "test_file": "jest-common/src/test/java/io/searchbox/indices/ForceMergeTest.java", "test_changes": [{"change_id": "1252_searchbox-io_Jest-v5.3.4_cd5652a_9cd555d_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.equalsReturnsFalseForDifferentIndex:()V", "class": "ForceMergeTest", "method": "equalsReturnsFalseForDifferentIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#equalsReturnsFalseForDifferentIndex", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsFalseForDifferentIndex() {\n ForceMerge forceMerge1 = new ForceMerge.Builder().addIndex(\"twitter\").build();\n ForceMerge forceMerge2 = new ForceMerge.Builder().addIndex(\"myspace\").build();\n assertNotEquals(forceMerge1, forceMerge2);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-32"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4857142857142857, "branch_coverage_gold": 1.0101, "method_coverage_gold": 1.6949, "line_coverage_gold": 1.6369, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1253_searchbox-io_Jest-v5.3.4_cd5652a_9cd555d_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.equalsReturnsTrueForSameIndex:()V", "class": "ForceMergeTest", "method": "equalsReturnsTrueForSameIndex", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#equalsReturnsTrueForSameIndex", "old_test_code": null, "new_test_code": "@Test\npublic void equalsReturnsTrueForSameIndex() {\n ForceMerge forceMerge1 = new ForceMerge.Builder().addIndex(\"twitter\").build();\n ForceMerge forceMerge1Duplicate = new ForceMerge.Builder().addIndex(\"twitter\").build();\n assertEquals(forceMerge1, forceMerge1Duplicate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-24"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4857142857142857, "branch_coverage_gold": 1.0101, "method_coverage_gold": 1.6949, "line_coverage_gold": 1.6369, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.equals:(Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1254_searchbox-io_Jest-v5.3.4_cd5652a_9cd555d_ForceMergeTest", "test_sign": "io/searchbox/indices/ForceMergeTest.testBasicUriGeneration:()V", "class": "ForceMergeTest", "method": "testBasicUriGeneration", "module": "jest-common", "junit_selector": "io.searchbox.indices.ForceMergeTest#testBasicUriGeneration", "old_test_code": null, "new_test_code": "@Test\npublic void testBasicUriGeneration() {\n ForceMerge forceMerge = new ForceMerge.Builder().addIndex(\"twitter\").build();\n assertEquals(\"POST\", forceMerge.getRestMethodName());\n assertEquals(\"twitter/_forcemerge\", forceMerge.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-16"], "old_production_code": "", "new_production_code": "@Override\npublic ForceMerge build() {\n return new ForceMerge(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "focal_method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "59-62", "dependency_updated": "inserted", "score": 0.4507, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.1667, "class": 1.0, "tfidf": 0.5488}}, {"dep_id": 1, "method_sign": "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "line_nums_new": "22-25", "dependency_updated": "inserted", "score": 0.2811, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.0556, "class": 1.0, "tfidf": 0.0911}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.7071, "method_coverage_gold": 1.4955, "line_coverage_gold": 1.3034, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/action/AbstractMultiIndexActionBuilder.addIndex:(Ljava/lang/String;)Ljava/lang/Object", "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/indices/ForceMerge$Builder.build:()Lio/searchbox/indices/ForceMerge", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/indices/ForceMerge.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/indices/ForceMerge.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__df6bfa7_9438bf5__DeleteSnapshotRepositoryTest_e6179947", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "df6bfa7d9d119a3e0572bde855baae09302c397e", "rev2": "9438bf5e7ded27225a3d308e6fda14ebf7824df2", "rev1_date": "2016-06-02T17:47:10Z", "rev2_date": "2016-06-02T20:05:38Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/df6bfa7d9d119a3e0572bde855baae09302c397e...9438bf5e7ded27225a3d308e6fda14ebf7824df2", "test_file": "jest-common/src/test/java/io/searchbox/snapshot/DeleteSnapshotRepositoryTest.java", "test_changes": [{"change_id": "1403_searchbox-io_Jest-v5.3.4_df6bfa7_9438bf5_DeleteSnapshotRepositoryTest", "test_sign": "io/searchbox/snapshot/DeleteSnapshotRepositoryTest.testRepository:()V", "class": "DeleteSnapshotRepositoryTest", "method": "testRepository", "module": "jest-common", "junit_selector": "io.searchbox.snapshot.DeleteSnapshotRepositoryTest#testRepository", "old_test_code": null, "new_test_code": "@Test\npublic void testRepository() {\n String repository = \"leeseohoo\";\n DeleteSnapshotRepository deleteSnapshotRepository = new DeleteSnapshotRepository.Builder(repository).build();\n assertEquals(\"DELETE\", deleteSnapshotRepository.getRestMethodName());\n assertEquals(\"/_snapshot/leeseohoo\", deleteSnapshotRepository.getURI());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-18"], "old_production_code": "", "new_production_code": "@Override\npublic DeleteSnapshotRepository build() {\n return new DeleteSnapshotRepository(this);\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/snapshot/DeleteSnapshotRepository.java", "focal_method_sign": "io/searchbox/snapshot/DeleteSnapshotRepository$Builder.build:()Lio/searchbox/snapshot/DeleteSnapshotRepository", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/snapshot/DeleteSnapshotRepository$Builder.build:()Lio/searchbox/snapshot/DeleteSnapshotRepository", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/snapshot/DeleteSnapshotRepository.java", "line_nums_new": "22-25", "dependency_updated": "inserted", "score": 0.3611, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.1, "class": 1.0, "tfidf": 0.5146}}, {"dep_id": 0, "method_sign": "io/searchbox/snapshot/DeleteSnapshotRepository.getRestMethodName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/snapshot/DeleteSnapshotRepository.java", "line_nums_new": "12-15", "dependency_updated": "inserted", "score": 0.3126, "signal_scores": {"nc": 0.0, "lcs_u": 0.2941, "ed": 0.2353, "class": 1.0, "tfidf": 0.1434}}], "coverage_gold": 0.6363636363636364, "branch_coverage_gold": 0.5176, "method_coverage_gold": 1.6162, "line_coverage_gold": 1.328, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/snapshot/DeleteSnapshotRepository$Builder.build:()Lio/searchbox/snapshot/DeleteSnapshotRepository", "io/searchbox/snapshot/DeleteSnapshotRepository.getRestMethodName:()Ljava/lang/String", "io/searchbox/action/AbstractAction.getURI:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/snapshot/DeleteSnapshotRepository.getRestMethodName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/snapshot/DeleteSnapshotRepository.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/snapshot/DeleteSnapshotRepository$Builder.build:()Lio/searchbox/snapshot/DeleteSnapshotRepository", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/snapshot/DeleteSnapshotRepository.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__f8fc99b_8830fbf__DocumentResultTest_6154dcac", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "f8fc99bccd46f23e2591fe663672ad48935199ef", "rev2": "8830fbf0f7da8887697095831611edadc16860d1", "rev1_date": "2016-06-06T07:52:54Z", "rev2_date": "2016-06-06T16:03:18Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/f8fc99bccd46f23e2591fe663672ad48935199ef...8830fbf0f7da8887697095831611edadc16860d1", "test_file": "jest-common/src/test/java/io/searchbox/core/DocumentResultTest.java", "test_changes": [{"change_id": "1557_searchbox-io_Jest-v5.3.4_f8fc99b_8830fbf_DocumentResultTest", "test_sign": "io/searchbox/core/DocumentResultTest.shouldFetchVersionFromValidResponse:()V", "class": "DocumentResultTest", "method": "shouldFetchVersionFromValidResponse", "module": "jest-common", "junit_selector": "io.searchbox.core.DocumentResultTest#shouldFetchVersionFromValidResponse", "old_test_code": null, "new_test_code": "@Test\npublic void shouldFetchVersionFromValidResponse() {\n assertEquals(Long.valueOf(2), validResult.getVersion());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-55"], "old_production_code": "", "new_production_code": "public Long getVersion() {\n return getAsLong(jsonObject.get(\"_version\"));\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "focal_method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3106, "method_coverage_gold": 0.8547, "line_coverage_gold": 0.6986, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/DocumentResult.getVersion:()Ljava/lang/Long", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/DocumentResult.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__f8fc99b_8830fbf__TopHitsAggregationTest_ef067a1e", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "f8fc99bccd46f23e2591fe663672ad48935199ef", "rev2": "8830fbf0f7da8887697095831611edadc16860d1", "rev1_date": "2016-06-06T07:52:54Z", "rev2_date": "2016-06-06T16:03:18Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/f8fc99bccd46f23e2591fe663672ad48935199ef...8830fbf0f7da8887697095831611edadc16860d1", "test_file": "jest-common/src/test/java/io/searchbox/search/aggregation/TopHitsAggregationTest.java", "test_changes": [{"change_id": "1559_searchbox-io_Jest-v5.3.4_f8fc99b_8830fbf_TopHitsAggregationTest", "test_sign": "io/searchbox/search/aggregation/TopHitsAggregationTest.testGetMaxScoreWhenMissing:()V", "class": "TopHitsAggregationTest", "method": "testGetMaxScoreWhenMissing", "module": "jest-common", "junit_selector": "io.searchbox.search.aggregation.TopHitsAggregationTest#testGetMaxScoreWhenMissing", "old_test_code": null, "new_test_code": "@Test\npublic void testGetMaxScoreWhenMissing() {\n SearchResult searchResult = new SearchResult(new Gson());\n searchResult.setSucceeded(true);\n searchResult.setJsonString(json);\n searchResult.setJsonObject(new JsonParser().parse(json).getAsJsonObject());\n searchResult.setPathToResult(\"hits/hits/_source\");\n Float maxScore = searchResult.getMaxScore();\n assertNull(maxScore);\n TermsAggregation termsAgg = searchResult.getAggregations().getTermsAggregation(\"test\");\n assertEquals(new Long(1), termsAgg.getDocCountErrorUpperBound());\n assertEquals(new Long(2), termsAgg.getSumOtherDocCount());\n List termBuckets = termsAgg.getBuckets();\n for (Entry entry : termBuckets) {\n TopHitsAggregation topHitAgg = entry.getTopHitsAggregation(\"top_hits_test\");\n List hits = topHitAgg.getSourceAsStringList();\n assertEquals(2, hits.size());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["98-123"], "old_production_code": "", "new_production_code": "public TopHitsAggregation getTopHitsAggregation(String aggName) {\n return jsonRoot.has(aggName) ? new TopHitsAggregation(aggName, jsonRoot.getAsJsonObject(aggName)) : null;\n}", "focal_file_path": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "focal_method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "line_nums_new": "251-253", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3113207547169811, "branch_coverage_gold": 4.3478, "method_coverage_gold": 3.7393, "line_coverage_gold": 4.9857, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/core/search/aggregation/MetricAggregation.getTermsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TermsAggregation", "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "io/searchbox/core/search/aggregation/TermsAggregation.getDocCountErrorUpperBound:()Ljava/lang/Long", "io/searchbox/client/JestResult.setJsonObject:(Lcom/google/gson/JsonObject;)V", "io/searchbox/client/JestResult.setPathToResult:(Ljava/lang/String;)V", "io/searchbox/client/JestResult.getSourceAsStringList:()Ljava/util/List", "io/searchbox/core/search/aggregation/TermsAggregation.getSumOtherDocCount:()Ljava/lang/Long", "io/searchbox/client/JestResult.setSucceeded:(Z)V", "io/searchbox/core/search/aggregation/TermsAggregation.getBuckets:()Ljava/util/List", "io/searchbox/core/SearchResult.getMaxScore:()Ljava/lang/Float", "io/searchbox/client/JestResult.setJsonString:(Ljava/lang/String;)V", "io/searchbox/core/SearchResult.getAggregations:()Lio/searchbox/core/search/aggregation/MetricAggregation"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/core/search/aggregation/MetricAggregation.getTopHitsAggregation:(Ljava/lang/String;)Lio/searchbox/core/search/aggregation/TopHitsAggregation", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest-common/src/main/java/io/searchbox/core/search/aggregation/MetricAggregation.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "searchbox-io_Jest-v5.3.4__f8fc99b_8830fbf__HttpClientConfigTest_84aa2aa0", "project_name": "searchbox-io_Jest-v5.3.4", "git_clone_url": "https://github.com/searchbox-io/Jest.git", "rev1": "f8fc99bccd46f23e2591fe663672ad48935199ef", "rev2": "8830fbf0f7da8887697095831611edadc16860d1", "rev1_date": "2016-06-06T07:52:54Z", "rev2_date": "2016-06-06T16:03:18Z", "git_diff_url": "https://github.com/searchbox-io/Jest/compare/f8fc99bccd46f23e2591fe663672ad48935199ef...8830fbf0f7da8887697095831611edadc16860d1", "test_file": "jest/src/test/java/io/searchbox/client/config/HttpClientConfigTest.java", "test_changes": [{"change_id": "1553_searchbox-io_Jest-v5.3.4_f8fc99b_8830fbf_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuthWithoutCredentials:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuthWithoutCredentials", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuthWithoutCredentials", "old_test_code": null, "new_test_code": "@Test(expected = IllegalArgumentException.class)\npublic void preemptiveAuthWithoutCredentials() {\n new HttpClientConfig.Builder(\"localhost\").setPreemptiveAuth(new HttpHost(\"localhost\", 80, \"http\")).build();\n fail(\"Builder should have thrown an exception if preemptive authentication is set without setting credentials\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-75"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.4248, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.3438, "class": 1.0, "tfidf": 0.1472}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.3686, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.0938, "class": 1.0, "tfidf": 0.2511}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 9.7561, "method_coverage_gold": 5.1282, "line_coverage_gold": 5.4217, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1561_searchbox-io_Jest-v5.3.4_f8fc99b_8830fbf_HttpClientConfigTest", "test_sign": "io/searchbox/client/config/HttpClientConfigTest.preemptiveAuth:()V", "class": "HttpClientConfigTest", "method": "preemptiveAuth", "module": "jest", "junit_selector": "io.searchbox.client.config.HttpClientConfigTest#preemptiveAuth", "old_test_code": null, "new_test_code": "@Test\npublic void preemptiveAuth() {\n String hostName = \"targetHost\";\n int port = 80;\n HttpClientConfig httpClientConfig = new HttpClientConfig.Builder(\"localhost\").defaultCredentials(\"someUser\", \"somePassword\").setPreemptiveAuth(new HttpHost(hostName, port, \"http\")).build();\n assertEquals(hostName, httpClientConfig.getPreemptiveAuthTargetHost().getHostName());\n assertEquals(port, httpClientConfig.getPreemptiveAuthTargetHost().getPort());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-67"], "old_production_code": "", "new_production_code": "public Builder setPreemptiveAuth(HttpHost targetHost) {\n this.preemptiveAuthTargetHost = targetHost;\n return this;\n}", "focal_file_path": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "focal_method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "249-252", "dependency_updated": "inserted", "score": 0.5039, "signal_scores": {"nc": 0.0, "lcs_u": 0.8235, "ed": 0.8235, "class": 1.0, "tfidf": 0.1473}}, {"dep_id": 0, "method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "file_path_old": null, "line_nums_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "99-101", "dependency_updated": "inserted", "score": 0.3965, "signal_scores": {"nc": 0.0, "lcs_u": 0.5185, "ed": 0.5185, "class": 1.0, "tfidf": 0.1333}}, {"dep_id": 1, "method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_old": "244-262", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "line_nums_new": "264-287", "dependency_updated": "updated", "score": 0.2353, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0714, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 0.4230769230769231, "branch_coverage_gold": 9.7561, "method_coverage_gold": 8.9744, "line_coverage_gold": 10.5422, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "io/searchbox/client/config/HttpClientConfig$Builder.defaultCredentials:(Ljava/lang/String;Ljava/lang/String;)Lio/searchbox/client/config/HttpClientConfig$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/searchbox/client/config/HttpClientConfig.getPreemptiveAuthTargetHost:()Lorg/apache/http/HttpHost", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.build:()Lio/searchbox/client/config/HttpClientConfig", "change_type": "UPDATE", "file_path_old": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/searchbox/client/config/HttpClientConfig$Builder.setPreemptiveAuth:(Lorg/apache/http/HttpHost;)Lio/searchbox/client/config/HttpClientConfig$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "jest/src/main/java/io/searchbox/client/config/HttpClientConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.3.4", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__04d9204_24479de__SnippetsTests_3f21d00d", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "04d9204328cd395bdac89729add25c5d8e418cd9", "rev2": "24479dec8c08ea5917096f60d9121225756d78ce", "rev1_date": "2018-01-06T16:53:37Z", "rev2_date": "2018-01-06T16:59:45Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/04d9204328cd395bdac89729add25c5d8e418cd9...24479dec8c08ea5917096f60d9121225756d78ce", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "54_shekhargulati_30-seconds-of-java-master_04d9204_24479de_SnippetsTests", "test_sign": "snippets/SnippetsTests.byteSize_of_hello_world_is_11:()V", "class": "SnippetsTests", "method": "byteSize_of_hello_world_is_11", "module": "", "junit_selector": "snippets.SnippetsTests#byteSize_of_hello_world_is_11", "old_test_code": null, "new_test_code": "@Test\npublic void byteSize_of_hello_world_is_11() throws Exception {\n assertThat(Snippets.byteSize(\"Hello World\")).isEqualTo(11);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["509-512"], "old_production_code": "", "new_production_code": "public static int byteSize(String input) {\n return input.getBytes().length;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "514-518", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0417, "line_coverage_gold": 0.5587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.byteSize:(Ljava/lang/String;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "55_shekhargulati_30-seconds-of-java-master_04d9204_24479de_SnippetsTests", "test_sign": "snippets/SnippetsTests.byteSize_of_smiley_is_4:()V", "class": "SnippetsTests", "method": "byteSize_of_smiley_is_4", "module": "", "junit_selector": "snippets.SnippetsTests#byteSize_of_smiley_is_4", "old_test_code": null, "new_test_code": "@Test\npublic void byteSize_of_smiley_is_4() throws Exception {\n int length = Snippets.byteSize(\"\\uD83D\\uDE00\");\n assertThat(length).isEqualTo(4);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["503-507"], "old_production_code": "", "new_production_code": "public static int byteSize(String input) {\n return input.getBytes().length;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "514-518", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0417, "line_coverage_gold": 0.5587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.byteSize:(Ljava/lang/String;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.byteSize:(Ljava/lang/String;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__08da06c_4e41783__SnippetsTests_9723c0c2", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "08da06c7ce539cdec171a400de3603440390a46a", "rev2": "4e417831c9d30d464bd777f15c963827ed0dd553", "rev1_date": "2018-01-07T10:22:40Z", "rev2_date": "2018-01-07T10:34:17Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/08da06c7ce539cdec171a400de3603440390a46a...4e417831c9d30d464bd777f15c963827ed0dd553", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "64_shekhargulati_30-seconds-of-java-master_08da06c_4e41783_SnippetsTests", "test_sign": "snippets/SnippetsTests.getCurrentWorkingDirectoryPath_test:()V", "class": "SnippetsTests", "method": "getCurrentWorkingDirectoryPath_test", "module": "", "junit_selector": "snippets.SnippetsTests#getCurrentWorkingDirectoryPath_test", "old_test_code": null, "new_test_code": "@Test\npublic void getCurrentWorkingDirectoryPath_test() throws Exception {\n assertThat(Snippets.getCurrentWorkingDirectoryPath()).isNotBlank();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["632-635"], "old_production_code": "", "new_production_code": "public static String getCurrentWorkingDirectoryPath() {\n return FileSystems.getDefault().getPath(\"\").toAbsolutePath().toString();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.getCurrentWorkingDirectoryPath:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.getCurrentWorkingDirectoryPath:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "677-679", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.813, "line_coverage_gold": 0.4065, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.getCurrentWorkingDirectoryPath:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.getCurrentWorkingDirectoryPath:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__13f1e50_28256e5__SnippetsTests_84165709", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "13f1e502a94b76cbe75e307b817a7d25506dce8e", "rev2": "28256e5d09e27105e71da2e8fbbda12baaafad6d", "rev1_date": "2017-12-22T12:32:37Z", "rev2_date": "2017-12-22T12:35:04Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/13f1e502a94b76cbe75e307b817a7d25506dce8e...28256e5d09e27105e71da2e8fbbda12baaafad6d", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "32_shekhargulati_30-seconds-of-java-master_13f1e50_28256e5_SnippetsTests", "test_sign": "snippets/SnippetsTests.min_of_array_containing_10_1_and_5_is_10:()V", "class": "SnippetsTests", "method": "min_of_array_containing_10_1_and_5_is_10", "module": "", "junit_selector": "snippets.SnippetsTests#min_of_array_containing_10_1_and_5_is_10", "old_test_code": null, "new_test_code": "@Test\npublic void min_of_array_containing_10_1_and_5_is_10() throws Exception {\n OptionalInt min = Snippets.arrayMin(new int[] { 10, 1, 5 });\n assertThat(min).hasValue(1);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["45-49"], "old_production_code": "", "new_production_code": "public static OptionalInt arrayMin(int[] numbers) {\n return Arrays.stream(numbers).min();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.arrayMin:([I)Ljava/util/OptionalInt", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.arrayMin:([I)Ljava/util/OptionalInt", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "55-57", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 11.1111, "line_coverage_gold": 9.0909, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.arrayMin:([I)Ljava/util/OptionalInt"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.arrayMin:([I)Ljava/util/OptionalInt", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__181553d_13f1e50__SnippetsTests_43601329", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "181553d332cbcdc59af71c83648e25429da24b49", "rev2": "13f1e502a94b76cbe75e307b817a7d25506dce8e", "rev1_date": "2017-12-22T12:12:23Z", "rev2_date": "2017-12-22T12:32:37Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/181553d332cbcdc59af71c83648e25429da24b49...13f1e502a94b76cbe75e307b817a7d25506dce8e", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "9_shekhargulati_30-seconds-of-java-master_181553d_13f1e50_SnippetsTests", "test_sign": "snippets/SnippetsTests.max_of_array_containing_10_1_and_5_is_10:()V", "class": "SnippetsTests", "method": "max_of_array_containing_10_1_and_5_is_10", "module": "", "junit_selector": "snippets.SnippetsTests#max_of_array_containing_10_1_and_5_is_10", "old_test_code": null, "new_test_code": "@Test\npublic void max_of_array_containing_10_1_and_5_is_10() throws Exception {\n OptionalInt max = Snippets.arrayMax(new int[] { 10, 1, 5 });\n assertThat(max).hasValue(10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["39-43"], "old_production_code": "", "new_production_code": "public static OptionalInt arrayMax(int[] numbers) {\n return Arrays.stream(numbers).max();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.arrayMax:([I)Ljava/util/OptionalInt", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.arrayMax:([I)Ljava/util/OptionalInt", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "44-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 12.5, "line_coverage_gold": 10.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.arrayMax:([I)Ljava/util/OptionalInt"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.arrayMax:([I)Ljava/util/OptionalInt", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__1985641_b892346__SnippetsTests_d24b3cca", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "19856410d5d9c57faddc37d5c083d9cfcea77816", "rev2": "b892346b12a6de1a39285eed66675700cfa947ed", "rev1_date": "2018-01-07T09:03:19Z", "rev2_date": "2018-01-07T09:21:38Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/19856410d5d9c57faddc37d5c083d9cfcea77816...b892346b12a6de1a39285eed66675700cfa947ed", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "37_shekhargulati_30-seconds-of-java-master_1985641_b892346_SnippetsTests", "test_sign": "snippets/SnippetsTests.toKebabCase_test:()V", "class": "SnippetsTests", "method": "toKebabCase_test", "module": "", "junit_selector": "snippets.SnippetsTests#toKebabCase_test", "old_test_code": null, "new_test_code": "@Test\npublic void toKebabCase_test() throws Exception {\n assertThat(Snippets.toKebabCase(\"camelCase\")).isEqualTo(\"camel-case\");\n assertThat(Snippets.toKebabCase(\"some text\")).isEqualTo(\"some-text\");\n assertThat(Snippets.toKebabCase(\"some-mixed_string With spaces_underscores-and-hyphens\")).isEqualTo(\"some-mixed-string-with-spaces-underscores-and-hyphens\");\n assertThat(Snippets.toKebabCase(\"AllThe-small Things\")).isEqualTo(\"all-the-small-things\");\n assertThat(Snippets.toKebabCase(\"IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingXMLAndHTML\")).isEqualTo(\"i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-xml-and-html\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["590-597"], "old_production_code": "", "new_production_code": "public static String toKebabCase(String input) {\n Matcher matcher = Pattern.compile(\"[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+\").matcher(input);\n List matchedParts = new ArrayList<>();\n while (matcher.find()) {\n matchedParts.add(matcher.group(0));\n }\n return matchedParts.stream().map(String::toLowerCase).collect(Collectors.joining(\"-\"));\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.toKebabCase:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.toKebabCase:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "591-600", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.2727, "method_coverage_gold": 0.9009, "line_coverage_gold": 3.1963, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.toKebabCase:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.toKebabCase:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__24479de_792d667__SnippetsTests_8238b52a", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "24479dec8c08ea5917096f60d9121225756d78ce", "rev2": "792d66770ee9f538390d804aa3c93cc3780b5736", "rev1_date": "2018-01-06T16:59:45Z", "rev2_date": "2018-01-06T17:29:40Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/24479dec8c08ea5917096f60d9121225756d78ce...792d66770ee9f538390d804aa3c93cc3780b5736", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "12_shekhargulati_30-seconds-of-java-master_24479de_792d667_SnippetsTests", "test_sign": "snippets/SnippetsTests.countVowels_test:()V", "class": "SnippetsTests", "method": "countVowels_test", "module": "", "junit_selector": "snippets.SnippetsTests#countVowels_test", "old_test_code": null, "new_test_code": "@Test\npublic void countVowels_test() throws Exception {\n assertThat(Snippets.countVowels(\"foobar\")).isEqualTo(3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["514-517"], "old_production_code": "", "new_production_code": "public static int countVowels(String input) {\n return input.replaceAll(\"[^aeiouAEIOU]\", \"\").length();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.countVowels:(Ljava/lang/String;)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.countVowels:(Ljava/lang/String;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "520-522", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0309, "line_coverage_gold": 0.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.countVowels:(Ljava/lang/String;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.countVowels:(Ljava/lang/String;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__3282c02_4100904__SnippetsTests_6706afd8", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "3282c02675e3531f62fe3467eb6e3ec12f09107c", "rev2": "4100904d6e17f8c9f884fc32354bca326ba55848", "rev1_date": "2017-12-23T11:22:16Z", "rev2_date": "2017-12-23T12:01:04Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/3282c02675e3531f62fe3467eb6e3ec12f09107c...4100904d6e17f8c9f884fc32354bca326ba55848", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "25_shekhargulati_30-seconds-of-java-master_3282c02_4100904_SnippetsTests", "test_sign": "snippets/SnippetsTests.distinct_remove_all_duplicate_values_from_an_array:()V", "class": "SnippetsTests", "method": "distinct_remove_all_duplicate_values_from_an_array", "module": "", "junit_selector": "snippets.SnippetsTests#distinct_remove_all_duplicate_values_from_an_array", "old_test_code": null, "new_test_code": "@Test\npublic void distinct_remove_all_duplicate_values_from_an_array() throws Exception {\n int[] distinct = Snippets.distinctValuesOfArray(new int[] { 1, 2, 2, 3, 4, 4, 5 });\n assertThat(distinct).isEqualTo(new int[] { 1, 2, 3, 4, 5 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["133-137"], "old_production_code": "", "new_production_code": "public static int[] distinctValuesOfArray(int[] elements) {\n return Arrays.stream(elements).distinct().toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.distinctValuesOfArray:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.distinctValuesOfArray:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "141-143", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 4.3478, "line_coverage_gold": 2.9412, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.distinctValuesOfArray:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.distinctValuesOfArray:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__37a5cc1_823e97e__SnippetsTests_43f308b7", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "37a5cc1b1be4da7ca848e10aae975ffad4ae08f0", "rev2": "823e97ece17a57d7dccb63fdd701b6cc1da48172", "rev1_date": "2018-01-07T07:40:06Z", "rev2_date": "2018-01-07T07:58:48Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/37a5cc1b1be4da7ca848e10aae975ffad4ae08f0...823e97ece17a57d7dccb63fdd701b6cc1da48172", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "10_shekhargulati_30-seconds-of-java-master_37a5cc1_823e97e_SnippetsTests", "test_sign": "snippets/SnippetsTests.isAbsoluteUrl_test:()V", "class": "SnippetsTests", "method": "isAbsoluteUrl_test", "module": "", "junit_selector": "snippets.SnippetsTests#isAbsoluteUrl_test", "old_test_code": null, "new_test_code": "@Test\npublic void isAbsoluteUrl_test() throws Exception {\n assertThat(Snippets.isAbsoluteUrl(\"https://google.com\")).isTrue();\n assertThat(Snippets.isAbsoluteUrl(\"ftp://www.myserver.net\")).isTrue();\n assertThat(Snippets.isAbsoluteUrl(\"/foo/bar\")).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["534-539"], "old_production_code": "", "new_production_code": "public static boolean isAbsoluteUrl(String url) {\n return Pattern.compile(\"^[a-z][a-z0-9+.-]*:\").matcher(url).find();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.isAbsoluteUrl:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.isAbsoluteUrl:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "534-536", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0, "line_coverage_gold": 0.5405, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.isAbsoluteUrl:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.isAbsoluteUrl:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__4100904_fe02996__SnippetsTests_8d0f4d7d", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "4100904d6e17f8c9f884fc32354bca326ba55848", "rev2": "fe02996e053b85bd01e7cb9292d9796800aaf175", "rev1_date": "2017-12-23T12:01:04Z", "rev2_date": "2017-12-23T12:22:41Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/4100904d6e17f8c9f884fc32354bca326ba55848...fe02996e053b85bd01e7cb9292d9796800aaf175", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "34_shekhargulati_30-seconds-of-java-master_4100904_fe02996_SnippetsTests", "test_sign": "snippets/SnippetsTests.drop_elements__return_all_elements_when_all_elements_match_the_condition:()V", "class": "SnippetsTests", "method": "drop_elements__return_all_elements_when_all_elements_match_the_condition", "module": "", "junit_selector": "snippets.SnippetsTests#drop_elements__return_all_elements_when_all_elements_match_the_condition", "old_test_code": null, "new_test_code": "@Test\npublic void drop_elements__return_all_elements_when_all_elements_match_the_condition() throws Exception {\n int[] elements = Snippets.dropElements(new int[] { 1, 2, 3, 4 }, i -> i <= 4);\n assertThat(elements).isEqualTo(new int[] { 1, 2, 3, 4 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["151-155"], "old_production_code": "", "new_production_code": "public static int[] dropElements(int[] elements, IntPredicate condition) {\n while (elements.length > 0 && !condition.test(elements[0])) {\n elements = Arrays.copyOfRange(elements, 1, elements.length);\n }\n return elements;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "153-158", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 12.5, "method_coverage_gold": 4.1667, "line_coverage_gold": 5.4054, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "35_shekhargulati_30-seconds-of-java-master_4100904_fe02996_SnippetsTests", "test_sign": "snippets/SnippetsTests.drop_elements_returns_empty_array_when_no_element_match_the_condition:()V", "class": "SnippetsTests", "method": "drop_elements_returns_empty_array_when_no_element_match_the_condition", "module": "", "junit_selector": "snippets.SnippetsTests#drop_elements_returns_empty_array_when_no_element_match_the_condition", "old_test_code": null, "new_test_code": "@Test\npublic void drop_elements_returns_empty_array_when_no_element_match_the_condition() throws Exception {\n int[] elements = Snippets.dropElements(new int[] { 1, 2, 3, 4 }, i -> i < 1);\n assertThat(elements).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["145-149"], "old_production_code": "", "new_production_code": "public static int[] dropElements(int[] elements, IntPredicate condition) {\n while (elements.length > 0 && !condition.test(elements[0])) {\n elements = Arrays.copyOfRange(elements, 1, elements.length);\n }\n return elements;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "153-158", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.75, "method_coverage_gold": 4.1667, "line_coverage_gold": 8.1081, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "36_shekhargulati_30-seconds-of-java-master_4100904_fe02996_SnippetsTests", "test_sign": "snippets/SnippetsTests.drop_elements_less_than_3:()V", "class": "SnippetsTests", "method": "drop_elements_less_than_3", "module": "", "junit_selector": "snippets.SnippetsTests#drop_elements_less_than_3", "old_test_code": null, "new_test_code": "@Test\npublic void drop_elements_less_than_3() throws Exception {\n int[] elements = Snippets.dropElements(new int[] { 1, 2, 3, 4 }, i -> i >= 3);\n assertThat(elements).isEqualTo(new int[] { 3, 4 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["139-143"], "old_production_code": "", "new_production_code": "public static int[] dropElements(int[] elements, IntPredicate condition) {\n while (elements.length > 0 && !condition.test(elements[0])) {\n elements = Arrays.copyOfRange(elements, 1, elements.length);\n }\n return elements;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "153-158", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.75, "method_coverage_gold": 4.1667, "line_coverage_gold": 8.1081, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.dropElements:([ILjava/util/function/IntPredicate;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__42d1063_60f6bca__SnippetsTests_cd758303", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "42d106325044ac1f2c8e984d30ee93f7720046b9", "rev2": "60f6bca247eadcfff9d6c947965bd8940f973b8b", "rev1_date": "2017-12-22T13:43:05Z", "rev2_date": "2017-12-22T14:22:06Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/42d106325044ac1f2c8e984d30ee93f7720046b9...60f6bca247eadcfff9d6c947965bd8940f973b8b", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "24_shekhargulati_30-seconds-of-java-master_42d1063_60f6bca_SnippetsTests", "test_sign": "snippets/SnippetsTests.deepFlatten_flatten_a_deeply_nested_array:()V", "class": "SnippetsTests", "method": "deepFlatten_flatten_a_deeply_nested_array", "module": "", "junit_selector": "snippets.SnippetsTests#deepFlatten_flatten_a_deeply_nested_array", "old_test_code": null, "new_test_code": "@Test\npublic void deepFlatten_flatten_a_deeply_nested_array() throws Exception {\n int[] flatten = Snippets.deepFlatten(new Object[] { 1, new Object[] { 2 }, new Object[] { 3, 4, 5 } });\n assertThat(flatten).isEqualTo(new int[] { 1, 2, 3, 4, 5 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-86"], "old_production_code": "", "new_production_code": "public static int[] deepFlatten(Object[] input) {\n return Arrays.stream(input).flatMapToInt(o -> {\n if (o instanceof Object[]) {\n return Arrays.stream(deepFlatten((Object[]) o));\n }\n return IntStream.of((Integer) o);\n }).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.deepFlatten:([Ljava/lang/Object;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.deepFlatten:([Ljava/lang/Object;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "93-101", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 25.0, "method_coverage_gold": 11.7647, "line_coverage_gold": 25.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.deepFlatten:([Ljava/lang/Object;)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.deepFlatten:([Ljava/lang/Object;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__45018c1_1985641__SnippetsTests_7014a700", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "45018c15b1933c2dc5306a8b8d2ac42664d81a8f", "rev2": "19856410d5d9c57faddc37d5c083d9cfcea77816", "rev1_date": "2018-01-07T08:45:20Z", "rev2_date": "2018-01-07T09:03:19Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/45018c15b1933c2dc5306a8b8d2ac42664d81a8f...19856410d5d9c57faddc37d5c083d9cfcea77816", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "17_shekhargulati_30-seconds-of-java-master_45018c1_1985641_SnippetsTests", "test_sign": "snippets/SnippetsTests.toCamelCase_test:()V", "class": "SnippetsTests", "method": "toCamelCase_test", "module": "", "junit_selector": "snippets.SnippetsTests#toCamelCase_test", "old_test_code": null, "new_test_code": "@Test\npublic void toCamelCase_test() throws Exception {\n assertThat(Snippets.toCamelCase(\"some_database_field_name\")).isEqualTo(\"someDatabaseFieldName\");\n assertThat(Snippets.toCamelCase(\"Some label that needs to be camelized\")).isEqualTo(\"someLabelThatNeedsToBeCamelized\");\n assertThat(Snippets.toCamelCase(\"some-java-property\")).isEqualTo(\"someJavaProperty\");\n assertThat(Snippets.toCamelCase(\"some-mixed_string with spaces_underscores-and-hyphens\")).isEqualTo(\"someMixedStringWithSpacesUnderscoresAndHyphens\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["582-588"], "old_production_code": "", "new_production_code": "public static String toCamelCase(String input) {\n Matcher matcher = Pattern.compile(\"[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+\").matcher(input);\n List matchResult = new ArrayList<>();\n while (matcher.find()) {\n matchResult.add(matcher.group(0));\n }\n String s = matchResult.stream().map(x -> x.substring(0, 1).toUpperCase() + x.substring(1).toLowerCase()).collect(Collectors.joining());\n return s.substring(0, 1).toLowerCase() + s.substring(1);\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.toCamelCase:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.toCamelCase:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "579-589", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.381, "method_coverage_gold": 1.8349, "line_coverage_gold": 3.8647, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.toCamelCase:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.toCamelCase:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__4bd756b_d14e1fd__SnippetsTests_fbff901a", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "4bd756bb98851637edd144250c25de1d1d6b2489", "rev2": "d14e1fd9205da448eca9b7f7239be9dfc717cae4", "rev1_date": "2018-01-07T08:30:56Z", "rev2_date": "2018-01-07T08:37:17Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/4bd756bb98851637edd144250c25de1d1d6b2489...d14e1fd9205da448eca9b7f7239be9dfc717cae4", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "52_shekhargulati_30-seconds-of-java-master_4bd756b_d14e1fd_SnippetsTests", "test_sign": "snippets/SnippetsTests.palindrome_test:()V", "class": "SnippetsTests", "method": "palindrome_test", "module": "", "junit_selector": "snippets.SnippetsTests#palindrome_test", "old_test_code": null, "new_test_code": "@Test\npublic void palindrome_test() throws Exception {\n assertThat(Snippets.isPalindrome(\"taco cat\")).isTrue();\n assertThat(Snippets.isPalindrome(\"abc\")).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["555-559"], "old_production_code": "", "new_production_code": "public static boolean isPalindrome(String input) {\n String s = input.toLowerCase().replaceAll(\"[\\\\W_]\", \"\");\n return Objects.equals(s, new StringBuilder(s).reverse().toString());\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.isPalindrome:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.isPalindrome:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "557-563", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9615, "line_coverage_gold": 1.5306, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.isPalindrome:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.isPalindrome:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__5166b59_002e85e__SnippetsTests_c252b21c", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "5166b5916201a97f5fef44d6e6b87bd839deef57", "rev2": "002e85edb9790812057307668e5d09c43efd5a8a", "rev1_date": "2018-01-04T14:34:48Z", "rev2_date": "2018-01-04T14:48:03Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/5166b5916201a97f5fef44d6e6b87bd839deef57...002e85edb9790812057307668e5d09c43efd5a8a", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "20_shekhargulati_30-seconds-of-java-master_5166b59_002e85e_SnippetsTests", "test_sign": "snippets/SnippetsTests.zipObject_test_1:()V", "class": "SnippetsTests", "method": "zipObject_test_1", "module": "", "junit_selector": "snippets.SnippetsTests#zipObject_test_1", "old_test_code": null, "new_test_code": "@Test\npublic void zipObject_test_1() throws Exception {\n Map map = Snippets.zipObject(new String[] { \"a\", \"b\", \"c\" }, new Integer[] { 1, 2 });\n assertThat(map).containsOnly(new SimpleEntry<>(\"a\", 1), new SimpleEntry<>(\"b\", 2), new SimpleEntry<>(\"c\", null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["451-463"], "old_production_code": "", "new_production_code": "public static Map zipObject(String[] props, Object[] values) {\n return IntStream.range(0, props.length).mapToObj(i -> new SimpleEntry<>(props[i], i < values.length ? values[i] : null)).collect(HashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), HashMap::putAll);\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "471-476", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.7027, "method_coverage_gold": 3.4884, "line_coverage_gold": 2.5316, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "21_shekhargulati_30-seconds-of-java-master_5166b59_002e85e_SnippetsTests", "test_sign": "snippets/SnippetsTests.zipObject_test_2:()V", "class": "SnippetsTests", "method": "zipObject_test_2", "module": "", "junit_selector": "snippets.SnippetsTests#zipObject_test_2", "old_test_code": null, "new_test_code": "@Test\npublic void zipObject_test_2() throws Exception {\n Map map = Snippets.zipObject(new String[] { \"a\", \"b\" }, new Integer[] { 1, 2, 3 });\n assertThat(map).containsOnly(new SimpleEntry<>(\"a\", 1), new SimpleEntry<>(\"b\", 2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["465-476"], "old_production_code": "", "new_production_code": "public static Map zipObject(String[] props, Object[] values) {\n return IntStream.range(0, props.length).mapToObj(i -> new SimpleEntry<>(props[i], i < values.length ? values[i] : null)).collect(HashMap::new, (m, v) -> m.put(v.getKey(), v.getValue()), HashMap::putAll);\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "471-476", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3514, "method_coverage_gold": 3.4884, "line_coverage_gold": 2.5316, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.zipObject:([Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Map", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__609c070_2b46768__SnippetsTests_6be54787", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "609c070f589f9446e1282cccd3ba01c6d8792969", "rev2": "2b467683f149ea6cb86f2e270e64e4e6d6eb05c9", "rev1_date": "2017-12-23T18:07:41Z", "rev2_date": "2017-12-23T18:12:00Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/609c070f589f9446e1282cccd3ba01c6d8792969...2b467683f149ea6cb86f2e270e64e4e6d6eb05c9", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "45_shekhargulati_30-seconds-of-java-master_609c070_2b46768_SnippetsTests", "test_sign": "snippets/SnippetsTests.initializeArrayWithRange_from_1_to_5:()V", "class": "SnippetsTests", "method": "initializeArrayWithRange_from_1_to_5", "module": "", "junit_selector": "snippets.SnippetsTests#initializeArrayWithRange_from_1_to_5", "old_test_code": null, "new_test_code": "@Test\npublic void initializeArrayWithRange_from_1_to_5() throws Exception {\n int[] numbers = Snippets.initializeArrayWithRange(5, 1);\n assertThat(numbers).isEqualTo(new int[] { 1, 2, 3, 4, 5 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["242-247"], "old_production_code": "", "new_production_code": "public static int[] initializeArrayWithRange(int end, int start) {\n return IntStream.rangeClosed(start, end).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.initializeArrayWithRange:(II)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.initializeArrayWithRange:(II)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "304-306", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.381, "line_coverage_gold": 1.3889, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.initializeArrayWithRange:(II)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.initializeArrayWithRange:(II)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__60f6bca_a338e3f__SnippetsTests_96c05300", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "60f6bca247eadcfff9d6c947965bd8940f973b8b", "rev2": "a338e3fe720b255cb762637674484273e5d32752", "rev1_date": "2017-12-22T14:22:06Z", "rev2_date": "2017-12-22T14:31:43Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/60f6bca247eadcfff9d6c947965bd8940f973b8b...a338e3fe720b255cb762637674484273e5d32752", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "39_shekhargulati_30-seconds-of-java-master_60f6bca_a338e3f_SnippetsTests", "test_sign": "snippets/SnippetsTests.difference_between_array_with_1_2_3_and_array_with_1_2_3_is_empty_array:()V", "class": "SnippetsTests", "method": "difference_between_array_with_1_2_3_and_array_with_1_2_3_is_empty_array", "module": "", "junit_selector": "snippets.SnippetsTests#difference_between_array_with_1_2_3_and_array_with_1_2_3_is_empty_array", "old_test_code": null, "new_test_code": "@Test\npublic void difference_between_array_with_1_2_3_and_array_with_1_2_3_is_empty_array() throws Exception {\n int[] difference = Snippets.difference(new int[] { 1, 2, 3 }, new int[] { 1, 2, 3 });\n assertThat(difference).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["94-98"], "old_production_code": "", "new_production_code": "public static int[] difference(int[] first, int[] second) {\n Set set = Arrays.stream(second).boxed().collect(Collectors.toSet());\n return Arrays.stream(first).filter(v -> !set.contains(v)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.difference:([I[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.difference:([I[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "111-116", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.0, "method_coverage_gold": 10.5263, "line_coverage_gold": 14.2857, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.difference:([I[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.difference:([I[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "40_shekhargulati_30-seconds-of-java-master_60f6bca_a338e3f_SnippetsTests", "test_sign": "snippets/SnippetsTests.difference_between_array_with_1_2_3_and_array_with_1_2_4_is_3:()V", "class": "SnippetsTests", "method": "difference_between_array_with_1_2_3_and_array_with_1_2_4_is_3", "module": "", "junit_selector": "snippets.SnippetsTests#difference_between_array_with_1_2_3_and_array_with_1_2_4_is_3", "old_test_code": null, "new_test_code": "@Test\npublic void difference_between_array_with_1_2_3_and_array_with_1_2_4_is_3() throws Exception {\n int[] difference = Snippets.difference(new int[] { 1, 2, 3 }, new int[] { 1, 2, 4 });\n assertThat(difference).isEqualTo(new int[] { 3 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["88-92"], "old_production_code": "", "new_production_code": "public static int[] difference(int[] first, int[] second) {\n Set set = Arrays.stream(second).boxed().collect(Collectors.toSet());\n return Arrays.stream(first).filter(v -> !set.contains(v)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.difference:([I[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.difference:([I[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "111-116", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 20.0, "method_coverage_gold": 10.5263, "line_coverage_gold": 14.2857, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.difference:([I[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.difference:([I[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__68bde08_4e71bdf__SnippetsTests_bf9baf11", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "68bde08293037ab8775689032472be3c28616672", "rev2": "4e71bdfd7242e26ccc62c996634cb0258a162190", "rev1_date": "2018-01-07T17:24:04Z", "rev2_date": "2018-01-07T17:41:18Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/68bde08293037ab8775689032472be3c28616672...4e71bdfd7242e26ccc62c996634cb0258a162190", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "26_shekhargulati_30-seconds-of-java-master_68bde08_4e71bdf_SnippetsTests", "test_sign": "snippets/SnippetsTests.isEven_test:()V", "class": "SnippetsTests", "method": "isEven_test", "module": "", "junit_selector": "snippets.SnippetsTests#isEven_test", "old_test_code": null, "new_test_code": "@Test\npublic void isEven_test() throws Exception {\n assertThat(Snippets.isEven(1)).isFalse();\n assertThat(Snippets.isEven(2)).isTrue();\n assertThat(Snippets.isEven(3)).isFalse();\n assertThat(Snippets.isEven(4)).isTrue();\n assertThat(Snippets.isEven(-1)).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["652-659"], "old_production_code": "", "new_production_code": "public static boolean isEven(final int value) {\n return (value & 0b1) == 0;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.isEven:(I)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.isEven:(I)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "693-695", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.9231, "method_coverage_gold": 0.7874, "line_coverage_gold": 0.3968, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.isEven:(I)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.isEven:(I)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__792d667_204ecfb__SnippetsTests_dd79331e", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "792d66770ee9f538390d804aa3c93cc3780b5736", "rev2": "204ecfb79f612cbf84dca1ceb907d11ff17f0f5a", "rev1_date": "2018-01-06T17:29:40Z", "rev2_date": "2018-01-06T17:44:33Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/792d66770ee9f538390d804aa3c93cc3780b5736...204ecfb79f612cbf84dca1ceb907d11ff17f0f5a", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "8_shekhargulati_30-seconds-of-java-master_792d667_204ecfb_SnippetsTests", "test_sign": "snippets/SnippetsTests.escapeRegex_test:()V", "class": "SnippetsTests", "method": "escapeRegex_test", "module": "", "junit_selector": "snippets.SnippetsTests#escapeRegex_test", "old_test_code": null, "new_test_code": "@Test\npublic void escapeRegex_test() throws Exception {\n assertThat(Snippets.escapeRegExp(\"(test)\")).isEqualTo(\"\\\\Q(test)\\\\E\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["519-522"], "old_production_code": "", "new_production_code": "public static String escapeRegExp(String input) {\n return Pattern.quote(input);\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.escapeRegExp:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.escapeRegExp:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "524-526", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.0204, "line_coverage_gold": 0.5525, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.escapeRegExp:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.escapeRegExp:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__8226ec6_7f09af4__SnippetsTests_56868d47", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "8226ec68530c77b6fcac3de0ec7eb60e79ad3dcc", "rev2": "7f09af497f14dedbc605ffc75ee2e7c5aea10c2a", "rev1_date": "2017-12-23T18:27:48Z", "rev2_date": "2017-12-23T18:35:26Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/8226ec68530c77b6fcac3de0ec7eb60e79ad3dcc...7f09af497f14dedbc605ffc75ee2e7c5aea10c2a", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "23_shekhargulati_30-seconds-of-java-master_8226ec6_7f09af4_SnippetsTests", "test_sign": "snippets/SnippetsTests.intersection_between_two_arrays:()V", "class": "SnippetsTests", "method": "intersection_between_two_arrays", "module": "", "junit_selector": "snippets.SnippetsTests#intersection_between_two_arrays", "old_test_code": null, "new_test_code": "@Test\npublic void intersection_between_two_arrays() throws Exception {\n int[] elements = Snippets.intersection(new int[] { 1, 2, 3 }, new int[] { 4, 3, 2 });\n assertThat(elements).isEqualTo(new int[] { 2, 3 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["254-259"], "old_production_code": "", "new_production_code": "public static int[] intersection(int[] first, int[] second) {\n Set set = Arrays.stream(second).boxed().collect(Collectors.toSet());\n return Arrays.stream(first).filter(set::contains).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.intersection:([I[I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.intersection:([I[I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "313-318", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.2222, "line_coverage_gold": 5.1948, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.intersection:([I[I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.intersection:([I[I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__823e97e_ecba8b0__SnippetsTests_2ff78f90", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "823e97ece17a57d7dccb63fdd701b6cc1da48172", "rev2": "ecba8b072d2826b44e941b67512167e223ffb73d", "rev1_date": "2018-01-07T07:58:48Z", "rev2_date": "2018-01-07T08:04:06Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/823e97ece17a57d7dccb63fdd701b6cc1da48172...ecba8b072d2826b44e941b67512167e223ffb73d", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "30_shekhargulati_30-seconds-of-java-master_823e97e_ecba8b0_SnippetsTests", "test_sign": "snippets/SnippetsTests.isLowerCase_test:()V", "class": "SnippetsTests", "method": "isLowerCase_test", "module": "", "junit_selector": "snippets.SnippetsTests#isLowerCase_test", "old_test_code": null, "new_test_code": "@Test\npublic void isLowerCase_test() throws Exception {\n assertThat(Snippets.isLowerCase(\"abc\")).isTrue();\n assertThat(Snippets.isLowerCase(\"a3@$\")).isTrue();\n assertThat(Snippets.isLowerCase(\"Ab4\")).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["541-546"], "old_production_code": "", "new_production_code": "public static boolean isLowerCase(String input) {\n return Objects.equals(input, input.toLowerCase());\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.isLowerCase:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.isLowerCase:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "538-540", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9804, "line_coverage_gold": 0.5348, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.isLowerCase:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.isLowerCase:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__85b5f71_d8f82be__SnippetsTests_d03e45de", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "85b5f7105ef278cec6fcce07a98134c2251a1399", "rev2": "d8f82be56208efc6de1827247d39c8f086a02396", "rev1_date": "2017-12-23T14:38:32Z", "rev2_date": "2017-12-23T14:57:30Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/85b5f7105ef278cec6fcce07a98134c2251a1399...d8f82be56208efc6de1827247d39c8f086a02396", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "65_shekhargulati_30-seconds-of-java-master_85b5f71_d8f82be_SnippetsTests", "test_sign": "snippets/SnippetsTests.filterNonUnique_return_empty_array_when_all_duplicated:()V", "class": "SnippetsTests", "method": "filterNonUnique_return_empty_array_when_all_duplicated", "module": "", "junit_selector": "snippets.SnippetsTests#filterNonUnique_return_empty_array_when_all_duplicated", "old_test_code": null, "new_test_code": "@Test\npublic void filterNonUnique_return_empty_array_when_all_duplicated() throws Exception {\n int[] elements = Snippets.filterNonUnique(new int[] { 1, 1, 2, 2, 3, 3, 4, 4, 5, 5 });\n assertThat(elements).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["190-194"], "old_production_code": "", "new_production_code": "public static int[] filterNonUnique(int[] elements) {\n return Arrays.stream(elements).filter(el -> indexOf(elements, el) == lastIndexOf(elements, el)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "198-202", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.8571, "method_coverage_gold": 20.0, "line_coverage_gold": 21.0526, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.filterNonUnique:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "66_shekhargulati_30-seconds-of-java-master_85b5f71_d8f82be_SnippetsTests", "test_sign": "snippets/SnippetsTests.filterNonUnique_return_same_array_when_all_unique:()V", "class": "SnippetsTests", "method": "filterNonUnique_return_same_array_when_all_unique", "module": "", "junit_selector": "snippets.SnippetsTests#filterNonUnique_return_same_array_when_all_unique", "old_test_code": null, "new_test_code": "@Test\npublic void filterNonUnique_return_same_array_when_all_unique() throws Exception {\n int[] elements = Snippets.filterNonUnique(new int[] { 1, 2, 3, 4, 5 });\n assertThat(elements).isEqualTo(new int[] { 1, 2, 3, 4, 5 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["184-188"], "old_production_code": "", "new_production_code": "public static int[] filterNonUnique(int[] elements) {\n return Arrays.stream(elements).filter(el -> indexOf(elements, el) == lastIndexOf(elements, el)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "198-202", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 17.8571, "method_coverage_gold": 20.0, "line_coverage_gold": 21.0526, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.filterNonUnique:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "67_shekhargulati_30-seconds-of-java-master_85b5f71_d8f82be_SnippetsTests", "test_sign": "snippets/SnippetsTests.filterNonUnique_return_unique_elements:()V", "class": "SnippetsTests", "method": "filterNonUnique_return_unique_elements", "module": "", "junit_selector": "snippets.SnippetsTests#filterNonUnique_return_unique_elements", "old_test_code": null, "new_test_code": "@Test\npublic void filterNonUnique_return_unique_elements() throws Exception {\n int[] elements = Snippets.filterNonUnique(new int[] { 1, 2, 2, 3, 4, 4, 5 });\n assertThat(elements).isEqualTo(new int[] { 1, 3, 5 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["178-182"], "old_production_code": "", "new_production_code": "public static int[] filterNonUnique(int[] elements) {\n return Arrays.stream(elements).filter(el -> indexOf(elements, el) == lastIndexOf(elements, el)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "198-202", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 21.4286, "method_coverage_gold": 20.0, "line_coverage_gold": 21.0526, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.filterNonUnique:([I)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.filterNonUnique:([I)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__895cce8_4e41783__SnippetsTests_50ef7ec4", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "895cce85231302192a47531006cd25d577a0d41b", "rev2": "4e417831c9d30d464bd777f15c963827ed0dd553", "rev1_date": "2018-01-07T09:53:37Z", "rev2_date": "2018-01-07T10:34:17Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/895cce85231302192a47531006cd25d577a0d41b...4e417831c9d30d464bd777f15c963827ed0dd553", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "47_shekhargulati_30-seconds-of-java-master_895cce8_4e41783_SnippetsTests", "test_sign": "snippets/SnippetsTests.randomInts_test:()V", "class": "SnippetsTests", "method": "randomInts_test", "module": "", "junit_selector": "snippets.SnippetsTests#randomInts_test", "old_test_code": null, "new_test_code": "@Test\npublic void randomInts_test() throws Exception {\n assertThat(Snippets.randomInts(5, 100, 200)).hasSize(5);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["619-622"], "old_production_code": "", "new_production_code": "public static int[] randomInts(int total, int start, int end) {\n return ThreadLocalRandom.current().ints(total, start, end).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.randomInts:(III)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.randomInts:(III)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "656-658", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.813, "line_coverage_gold": 0.4065, "is_traceback": true, "commit_gap": {"count": 4, "skipped_commits": ["08da06c7ce539cdec171a400de3603440390a46a", "392a0285051e2322b38f84a0e704619d7164aab7", "44037757a334a38a9c5a6db7fe9e1897ee48008d", "615a001fd127ef118d0e5be8b14d17a28b14b001"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.randomInts:(III)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.randomInts:(III)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__895cce8_615a001__SnippetsTests_50ef7ec4", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "895cce85231302192a47531006cd25d577a0d41b", "rev2": "615a001fd127ef118d0e5be8b14d17a28b14b001", "rev1_date": "2018-01-07T09:53:37Z", "rev2_date": "2018-01-07T09:59:47Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/895cce85231302192a47531006cd25d577a0d41b...615a001fd127ef118d0e5be8b14d17a28b14b001", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "56_shekhargulati_30-seconds-of-java-master_895cce8_615a001_SnippetsTests", "test_sign": "snippets/SnippetsTests.randomInts_test:()V", "class": "SnippetsTests", "method": "randomInts_test", "module": "", "junit_selector": "snippets.SnippetsTests#randomInts_test", "old_test_code": null, "new_test_code": "@Test\npublic void randomInts_test() throws Exception {\n System.out.println(Arrays.toString(Snippets.randomInts(5, 100, 200)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["619-622"], "old_production_code": "", "new_production_code": "public static int[] randomInts(int total, int start, int end) {\n return ThreadLocalRandom.current().ints(total, start, end).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.randomInts:(III)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.randomInts:(III)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "651-653", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.8475, "line_coverage_gold": 0.4219, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.randomInts:(III)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.randomInts:(III)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__92b7877_5c734dc__SnippetsTests_0f61fda6", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "92b7877450074a84a080136acfe90bd8c63a9e0c", "rev2": "5c734dc25c17ef2a8b6a6c217a1c55664aba112c", "rev1_date": "2018-01-07T09:24:32Z", "rev2_date": "2018-01-07T09:27:38Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/92b7877450074a84a080136acfe90bd8c63a9e0c...5c734dc25c17ef2a8b6a6c217a1c55664aba112c", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "16_shekhargulati_30-seconds-of-java-master_92b7877_5c734dc_SnippetsTests", "test_sign": "snippets/SnippetsTests.truncateString_test:()V", "class": "SnippetsTests", "method": "truncateString_test", "module": "", "junit_selector": "snippets.SnippetsTests#truncateString_test", "old_test_code": null, "new_test_code": "@Test\npublic void truncateString_test() throws Exception {\n assertThat(Snippets.truncateString(\"boomerang\", 7)).isEqualTo(\"boom...\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["608-611"], "old_production_code": "", "new_production_code": "public static String truncateString(String input, int num) {\n return input.length() > num ? input.substring(0, num > 3 ? num - 3 : num) + \"...\" : input;\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.truncateString:(Ljava/lang/String;I)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.truncateString:(Ljava/lang/String;I)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "622-626", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.1277, "method_coverage_gold": 0.885, "line_coverage_gold": 0.8772, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.truncateString:(Ljava/lang/String;I)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.truncateString:(Ljava/lang/String;I)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__9bc441d_c84e176__SnippetsTests_1f95938b", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "9bc441d7231f1d35aff75c525bdf69bfd1d5ab49", "rev2": "c84e17643510589cf146f97e65182f3314afa2ce", "rev1_date": "2018-01-05T13:10:15Z", "rev2_date": "2018-01-05T18:51:29Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/9bc441d7231f1d35aff75c525bdf69bfd1d5ab49...c84e17643510589cf146f97e65182f3314afa2ce", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "57_shekhargulati_30-seconds-of-java-master_9bc441d_c84e176_SnippetsTests", "test_sign": "snippets/SnippetsTests.capitalizeEveryWord_test:()V", "class": "SnippetsTests", "method": "capitalizeEveryWord_test", "module": "", "junit_selector": "snippets.SnippetsTests#capitalizeEveryWord_test", "old_test_code": null, "new_test_code": "@Test\npublic void capitalizeEveryWord_test() throws Exception {\n assertThat(Snippets.capitalizeEveryWord(\"hello world!\")).isEqualTo(\"Hello World!\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["491-494"], "old_production_code": "", "new_production_code": "public static String capitalizeEveryWord(final String input) {\n return Pattern.compile(\"\\\\b(?=\\\\w)\").splitAsStream(input).map(w -> capitalize(w, false)).collect(Collectors.joining());\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.capitalizeEveryWord:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.capitalizeEveryWord:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "492-496", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.3158, "method_coverage_gold": 3.2967, "line_coverage_gold": 3.5928, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.capitalizeEveryWord:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.capitalizeEveryWord:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "58_shekhargulati_30-seconds-of-java-master_9bc441d_c84e176_SnippetsTests", "test_sign": "snippets/SnippetsTests.capitalize_test:()V", "class": "SnippetsTests", "method": "capitalize_test", "module": "", "junit_selector": "snippets.SnippetsTests#capitalize_test", "old_test_code": null, "new_test_code": "@Test\npublic void capitalize_test() throws Exception {\n assertThat(Snippets.capitalize(\"fooBar\", false)).isEqualTo(\"FooBar\");\n assertThat(Snippets.capitalize(\"fooBar\", true)).isEqualTo(\"Foobar\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["485-489"], "old_production_code": "", "new_production_code": "public static String capitalize(String input, boolean lowerRest) {\n return input.substring(0, 1).toUpperCase() + (lowerRest ? input.substring(1, input.length()).toLowerCase() : input.substring(1, input.length()));\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.capitalize:(Ljava/lang/String;Z)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.capitalize:(Ljava/lang/String;Z)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "485-490", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.6316, "method_coverage_gold": 1.0989, "line_coverage_gold": 1.7964, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.capitalize:(Ljava/lang/String;Z)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.capitalize:(Ljava/lang/String;Z)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__b892346_92b7877__SnippetsTests_6c761576", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "b892346b12a6de1a39285eed66675700cfa947ed", "rev2": "92b7877450074a84a080136acfe90bd8c63a9e0c", "rev1_date": "2018-01-07T09:21:38Z", "rev2_date": "2018-01-07T09:24:32Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/b892346b12a6de1a39285eed66675700cfa947ed...92b7877450074a84a080136acfe90bd8c63a9e0c", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "14_shekhargulati_30-seconds-of-java-master_b892346_92b7877_SnippetsTests", "test_sign": "snippets/SnippetsTests.toSnakeCase_test:()V", "class": "SnippetsTests", "method": "toSnakeCase_test", "module": "", "junit_selector": "snippets.SnippetsTests#toSnakeCase_test", "old_test_code": null, "new_test_code": "@Test\npublic void toSnakeCase_test() throws Exception {\n assertThat(Snippets.toSnakeCase(\"camelCase\")).isEqualTo(\"camel_case\");\n assertThat(Snippets.toSnakeCase(\"some text\")).isEqualTo(\"some_text\");\n assertThat(Snippets.toSnakeCase(\"some-mixed_string With spaces_underscores-and-hyphens\")).isEqualTo(\"some_mixed_string_with_spaces_underscores_and_hyphens\");\n assertThat(Snippets.toSnakeCase(\"AllThe-small Things\")).isEqualTo(\"all_the_small_things\");\n assertThat(Snippets.toSnakeCase(\"IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingXMLAndHTML\")).isEqualTo(\"i_am_listening_to_fm_while_loading_different_url_on_my_browser_and_also_editing_xml_and_html\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["599-606"], "old_production_code": "", "new_production_code": "public static String toSnakeCase(String input) {\n Matcher matcher = Pattern.compile(\"[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+\").matcher(input);\n List matchedParts = new ArrayList<>();\n while (matcher.find()) {\n matchedParts.add(matcher.group(0));\n }\n return matchedParts.stream().map(String::toLowerCase).collect(Collectors.joining(\"_\"));\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.toSnakeCase:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.toSnakeCase:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "611-620", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.2222, "method_coverage_gold": 0.8929, "line_coverage_gold": 3.0973, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.toSnakeCase:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.toSnakeCase:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__c73dd36_68bde08__SnippetsTests_d59e6d9a", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "c73dd367d4a586527308f0a5e5ede2e1716f758a", "rev2": "68bde08293037ab8775689032472be3c28616672", "rev1_date": "2018-01-07T13:31:55Z", "rev2_date": "2018-01-07T17:24:04Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/c73dd367d4a586527308f0a5e5ede2e1716f758a...68bde08293037ab8775689032472be3c28616672", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "46_shekhargulati_30-seconds-of-java-master_c73dd36_68bde08_SnippetsTests", "test_sign": "snippets/SnippetsTests.findNextPositivePowerOfTwo_test:()V", "class": "SnippetsTests", "method": "findNextPositivePowerOfTwo_test", "module": "", "junit_selector": "snippets.SnippetsTests#findNextPositivePowerOfTwo_test", "old_test_code": null, "new_test_code": "@Test\npublic void findNextPositivePowerOfTwo_test() throws Exception {\n assertThat(Snippets.findNextPositivePowerOfTwo(-1)).isEqualTo(1);\n assertThat(Snippets.findNextPositivePowerOfTwo(3)).isEqualTo(4);\n assertThat(Snippets.findNextPositivePowerOfTwo(31)).isEqualTo(32);\n assertThat(Snippets.findNextPositivePowerOfTwo(32)).isEqualTo(32);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["644-650"], "old_production_code": "", "new_production_code": "public static int findNextPositivePowerOfTwo(int value) {\n return 1 << (32 - Integer.numberOfLeadingZeros(value - 1));\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.findNextPositivePowerOfTwo:(I)I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.findNextPositivePowerOfTwo:(I)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "689-691", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.7937, "line_coverage_gold": 0.3984, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.findNextPositivePowerOfTwo:(I)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.findNextPositivePowerOfTwo:(I)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__d14e1fd_e4e5daf__SnippetsTests_79f659f5", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "d14e1fd9205da448eca9b7f7239be9dfc717cae4", "rev2": "e4e5daf80774d192cbab3294b72d540fd45a10ce", "rev1_date": "2018-01-07T08:37:17Z", "rev2_date": "2018-01-07T08:39:55Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/d14e1fd9205da448eca9b7f7239be9dfc717cae4...e4e5daf80774d192cbab3294b72d540fd45a10ce", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "15_shekhargulati_30-seconds-of-java-master_d14e1fd_e4e5daf_SnippetsTests", "test_sign": "snippets/SnippetsTests.reverseString_test:()V", "class": "SnippetsTests", "method": "reverseString_test", "module": "", "junit_selector": "snippets.SnippetsTests#reverseString_test", "old_test_code": null, "new_test_code": "@Test\npublic void reverseString_test() throws Exception {\n assertThat(Snippets.reverseString(\"foobar\")).isEqualTo(\"raboof\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["561-564"], "old_production_code": "", "new_production_code": "public static String reverseString(String input) {\n return new StringBuilder(input).reverse().toString();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.reverseString:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.reverseString:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "565-567", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9524, "line_coverage_gold": 0.5076, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.reverseString:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.reverseString:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__d8f82be_1e5f7ea__SnippetsTests_c74b4771", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "d8f82be56208efc6de1827247d39c8f086a02396", "rev2": "1e5f7eaf9a28567f28ee7ab9cf61a96431a1b926", "rev1_date": "2017-12-23T14:57:30Z", "rev2_date": "2017-12-23T15:15:18Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/d8f82be56208efc6de1827247d39c8f086a02396...1e5f7eaf9a28567f28ee7ab9cf61a96431a1b926", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "11_shekhargulati_30-seconds-of-java-master_d8f82be_1e5f7ea_SnippetsTests", "test_sign": "snippets/SnippetsTests.flatten_flat_one_level_array:()V", "class": "SnippetsTests", "method": "flatten_flat_one_level_array", "module": "", "junit_selector": "snippets.SnippetsTests#flatten_flat_one_level_array", "old_test_code": null, "new_test_code": "@Test\npublic void flatten_flat_one_level_array() throws Exception {\n int[] flatten = Snippets.flatten(new Object[] { 1, new int[] { 2 }, 3, 4 });\n assertThat(flatten).isEqualTo(new int[] { 1, 2, 3, 4 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["196-200"], "old_production_code": "", "new_production_code": "public static int[] flatten(Object[] elements) {\n return Arrays.stream(elements).flatMapToInt(el -> el instanceof int[] ? Arrays.stream((int[]) el) : IntStream.of((int) el)).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.flatten:([Ljava/lang/Object;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.flatten:([Ljava/lang/Object;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "243-249", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.6667, "method_coverage_gold": 5.4054, "line_coverage_gold": 8.0645, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.flatten:([Ljava/lang/Object;)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.flatten:([Ljava/lang/Object;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__d9dce95_42d1063__SnippetsTests_25a4c26f", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "d9dce95740ae1d441ec1c665a7944160aed13afb", "rev2": "42d106325044ac1f2c8e984d30ee93f7720046b9", "rev1_date": "2017-12-22T13:36:51Z", "rev2_date": "2017-12-22T13:43:05Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/d9dce95740ae1d441ec1c665a7944160aed13afb...42d106325044ac1f2c8e984d30ee93f7720046b9", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "53_shekhargulati_30-seconds-of-java-master_d9dce95_42d1063_SnippetsTests", "test_sign": "snippets/SnippetsTests.countOccurrences_counts_occurrences_of_a_value:()V", "class": "SnippetsTests", "method": "countOccurrences_counts_occurrences_of_a_value", "module": "", "junit_selector": "snippets.SnippetsTests#countOccurrences_counts_occurrences_of_a_value", "old_test_code": null, "new_test_code": "@Test\npublic void countOccurrences_counts_occurrences_of_a_value() throws Exception {\n long count = Snippets.countOccurrences(new int[] { 1, 1, 2, 1, 2, 3 }, 1);\n assertThat(count).isEqualTo(3);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["73-77"], "old_production_code": "", "new_production_code": "public static long countOccurrences(int[] numbers, int value) {\n return Arrays.stream(numbers).filter(number -> number == value).count();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.countOccurrences:([II)J", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.countOccurrences:([II)J", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "81-85", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 33.3333, "method_coverage_gold": 13.3333, "line_coverage_gold": 16.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.countOccurrences:([II)J"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.countOccurrences:([II)J", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__e4e5daf_45018c1__SnippetsTests_28049c11", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "e4e5daf80774d192cbab3294b72d540fd45a10ce", "rev2": "45018c15b1933c2dc5306a8b8d2ac42664d81a8f", "rev1_date": "2018-01-07T08:39:55Z", "rev2_date": "2018-01-07T08:45:20Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/e4e5daf80774d192cbab3294b72d540fd45a10ce...45018c15b1933c2dc5306a8b8d2ac42664d81a8f", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "41_shekhargulati_30-seconds-of-java-master_e4e5daf_45018c1_SnippetsTests", "test_sign": "snippets/SnippetsTests.sortCharactersInString_test:()V", "class": "SnippetsTests", "method": "sortCharactersInString_test", "module": "", "junit_selector": "snippets.SnippetsTests#sortCharactersInString_test", "old_test_code": null, "new_test_code": "@Test\npublic void sortCharactersInString_test() throws Exception {\n assertThat(Snippets.sortCharactersInString(\"cabbage\")).isEqualTo(\"aabbceg\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["566-569"], "old_production_code": "", "new_production_code": "public static String sortCharactersInString(String input) {\n return Arrays.stream(input.split(\"\")).sorted().collect(Collectors.joining());\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.sortCharactersInString:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.sortCharactersInString:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "569-571", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.9346, "line_coverage_gold": 0.5025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.sortCharactersInString:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.sortCharactersInString:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__ecba8b0_4bd756b__SnippetsTests_b7b378f5", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "ecba8b072d2826b44e941b67512167e223ffb73d", "rev2": "4bd756bb98851637edd144250c25de1d1d6b2489", "rev1_date": "2018-01-07T08:04:06Z", "rev2_date": "2018-01-07T08:30:56Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/ecba8b072d2826b44e941b67512167e223ffb73d...4bd756bb98851637edd144250c25de1d1d6b2489", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "68_shekhargulati_30-seconds-of-java-master_ecba8b0_4bd756b_SnippetsTests", "test_sign": "snippets/SnippetsTests.mask_test:()V", "class": "SnippetsTests", "method": "mask_test", "module": "", "junit_selector": "snippets.SnippetsTests#mask_test", "old_test_code": null, "new_test_code": "@Test\npublic void mask_test() throws Exception {\n assertThat(Snippets.mask(\"1234567890\", 4, \"*\")).isEqualTo(\"******7890\");\n assertThat(Snippets.mask(\"1234567890\", 3, \"*\")).isEqualTo(\"*******890\");\n assertThat(Snippets.mask(\"1234567890\", -4, \"*\")).isEqualTo(\"1234******\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["548-553"], "old_production_code": "", "new_production_code": "public static String mask(String input, int num, String mask) {\n int length = input.length();\n return num > 0 ? input.substring(0, length - num).replaceAll(\".\", mask) + input.substring(length - num) : input.substring(0, Math.negateExact(num)) + input.substring(Math.negateExact(num), length).replaceAll(\".\", mask);\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.mask:(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.mask:(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "546-555", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 2.439, "method_coverage_gold": 0.9709, "line_coverage_gold": 3.1088, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.mask:(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.mask:(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shekhargulati_30-seconds-of-java-master__fe02996_85b5f71__SnippetsTests_6e0e1723", "project_name": "shekhargulati_30-seconds-of-java-master", "git_clone_url": "https://github.com/shekhargulati/30-seconds-of-java.git", "rev1": "fe02996e053b85bd01e7cb9292d9796800aaf175", "rev2": "85b5f7105ef278cec6fcce07a98134c2251a1399", "rev1_date": "2017-12-23T12:22:41Z", "rev2_date": "2017-12-23T14:38:32Z", "git_diff_url": "https://github.com/shekhargulati/30-seconds-of-java/compare/fe02996e053b85bd01e7cb9292d9796800aaf175...85b5f7105ef278cec6fcce07a98134c2251a1399", "test_file": "src/test/java/snippets/SnippetsTests.java", "test_changes": [{"change_id": "18_shekhargulati_30-seconds-of-java-master_fe02996_85b5f71_SnippetsTests", "test_sign": "snippets/SnippetsTests.everyNth_return_every_2nd_element:()V", "class": "SnippetsTests", "method": "everyNth_return_every_2nd_element", "module": "", "junit_selector": "snippets.SnippetsTests#everyNth_return_every_2nd_element", "old_test_code": null, "new_test_code": "@Test\npublic void everyNth_return_every_2nd_element() throws Exception {\n int[] elements = Snippets.everyNth(new int[] { 1, 2, 3, 4, 5, 6 }, 2);\n assertThat(elements).isEqualTo(new int[] { 2, 4, 6 });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["172-176"], "old_production_code": "", "new_production_code": "public static int[] everyNth(int[] elements, int nth) {\n return IntStream.range(0, elements.length).filter(i -> i % nth == nth - 1).map(i -> elements[i]).toArray();\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.everyNth:([II)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.everyNth:([II)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "183-188", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 9.0909, "method_coverage_gold": 10.7143, "line_coverage_gold": 8.8889, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.everyNth:([II)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.everyNth:([II)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "19_shekhargulati_30-seconds-of-java-master_fe02996_85b5f71_SnippetsTests", "test_sign": "snippets/SnippetsTests.dropRight_remove_n_elements_from_right:()V", "class": "SnippetsTests", "method": "dropRight_remove_n_elements_from_right", "module": "", "junit_selector": "snippets.SnippetsTests#dropRight_remove_n_elements_from_right", "old_test_code": null, "new_test_code": "@Test\npublic void dropRight_remove_n_elements_from_right() throws Exception {\n int[] elements = Snippets.dropRight(new int[] { 1, 2, 3 }, 1);\n assertThat(elements).isEqualTo(new int[] { 1, 2 });\n elements = Snippets.dropRight(new int[] { 1, 2, 3 }, 2);\n assertThat(elements).isEqualTo(new int[] { 1 });\n elements = Snippets.dropRight(new int[] { 1, 2, 3 }, 3);\n assertThat(elements).isEmpty();\n elements = Snippets.dropRight(new int[] { 1, 2, 3 }, 42);\n assertThat(elements).isEmpty();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["157-170"], "old_production_code": "", "new_production_code": "public static int[] dropRight(int[] elements, int n) {\n if (n < 0) {\n throw new IllegalArgumentException(\"n is less than 0\");\n }\n return n < elements.length ? Arrays.copyOfRange(elements, 0, elements.length - n) : new int[0];\n}", "focal_file_path": "src/main/java/snippets/Snippets.java", "focal_method_sign": "snippets/Snippets.dropRight:([II)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "snippets/Snippets.dropRight:([II)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "line_nums_new": "167-174", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 13.6364, "method_coverage_gold": 3.5714, "line_coverage_gold": 6.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["snippets/Snippets.dropRight:([II)[I"], "all_deps_old": [], "deps_changes": [{"method_sign": "snippets/Snippets.dropRight:([II)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/snippets/Snippets.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "shzlw_poli-v0.12.2__0d207c0_cad3d06__JdbcQueryServiceHelperTest_aebb5863", "project_name": "shzlw_poli-v0.12.2", "git_clone_url": "https://github.com/shzlw/poli.git", "rev1": "0d207c0891417e0f09174ee37043d9b5662e12fe", "rev2": "cad3d0686614acd56a94b583b0afc08d298de391", "rev1_date": "2020-04-28T22:18:19Z", "rev2_date": "2020-04-28T23:05:00Z", "git_diff_url": "https://github.com/shzlw/poli/compare/0d207c0891417e0f09174ee37043d9b5662e12fe...cad3d0686614acd56a94b583b0afc08d298de391", "test_file": "src/test/java/com/shzlw/poli/service/JdbcQueryServiceHelperTest.java", "test_changes": [{"change_id": "297_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testGetQueryStatements_2:()V", "class": "JdbcQueryServiceHelperTest", "method": "testGetQueryStatements_2", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testGetQueryStatements_2", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_2() {\n List sqls = JdbcQueryServiceHelper.getQueryStatements(\"aaa\");\n Assert.assertEquals(1, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-54"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2727272727272727, "branch_coverage_gold": 0.8152, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.1852, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "298_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testParseSqlStatementWithParams_1:()V", "class": "JdbcQueryServiceHelperTest", "method": "testParseSqlStatementWithParams_1", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testParseSqlStatementWithParams_1", "old_test_code": null, "new_test_code": "@Test\npublic void testParseSqlStatementWithParams_1() {\n String sql = \"SELECT * FROM table \" + \"WHERE 1=1 {{AND field IN (:fields)}} {{AND time > :startTime}} AND user='2' {{AND status =:status }} AND column3='2'\";\n String expected = \"SELECT * FROM table WHERE 1=1 AND field IN (:fields) AND time > :startTime AND user='2' AND column3='2'\";\n Map params = new HashMap<>();\n params.put(\"fields\", \"a, b, c\");\n params.put(\"startTime\", \"12-01\");\n Assert.assertEquals(expected, JdbcQueryServiceHelper.parseSqlStatementWithParams(sql, params));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-22"], "old_production_code": "", "new_production_code": "public static String parseSqlStatementWithParams(String sql, Map params) {\n StringBuilder sb = new StringBuilder();\n char[] s = sql.toCharArray();\n int i = 0;\n while (i < s.length) {\n if (s[i] == '{' && (i + 1 < s.length) && s[i + 1] == '{') {\n int j = i + 2;\n while (j < s.length) {\n if (s[j] == '}' && (j + 1 < s.length) && s[j + 1] == '}') {\n String clause = sql.substring(i + 2, j);\n boolean hasParam = false;\n for (Map.Entry entry : params.entrySet()) {\n if (clause.contains(\":\" + entry.getKey())) {\n hasParam = true;\n break;\n }\n }\n if (hasParam) {\n sb.append(clause);\n }\n i = j + 2;\n break;\n }\n j++;\n }\n }\n if (i < s.length) {\n sb.append(s[i]);\n i++;\n }\n }\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "13-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.8913, "method_coverage_gold": 0.2105, "line_coverage_gold": 1.4815, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "299_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testParseSqlStatementWithParams_3:()V", "class": "JdbcQueryServiceHelperTest", "method": "testParseSqlStatementWithParams_3", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testParseSqlStatementWithParams_3", "old_test_code": null, "new_test_code": "@Test\npublic void testParseSqlStatementWithParams_3() {\n String sql = \"SELECT * FROM table WHERE 1=1 {{AND field IN (:fields)}}\";\n String expected = \"SELECT * FROM table WHERE 1=1 \";\n Assert.assertEquals(expected, JdbcQueryServiceHelper.parseSqlStatementWithParams(sql, new HashMap<>()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-41"], "old_production_code": "", "new_production_code": "public static String parseSqlStatementWithParams(String sql, Map params) {\n StringBuilder sb = new StringBuilder();\n char[] s = sql.toCharArray();\n int i = 0;\n while (i < s.length) {\n if (s[i] == '{' && (i + 1 < s.length) && s[i + 1] == '{') {\n int j = i + 2;\n while (j < s.length) {\n if (s[j] == '}' && (j + 1 < s.length) && s[j + 1] == '}') {\n String clause = sql.substring(i + 2, j);\n boolean hasParam = false;\n for (Map.Entry entry : params.entrySet()) {\n if (clause.contains(\":\" + entry.getKey())) {\n hasParam = true;\n break;\n }\n }\n if (hasParam) {\n sb.append(clause);\n }\n i = j + 2;\n break;\n }\n j++;\n }\n }\n if (i < s.length) {\n sb.append(s[i]);\n i++;\n }\n }\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "13-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7916666666666666, "branch_coverage_gold": 4.0761, "method_coverage_gold": 0.2105, "line_coverage_gold": 1.1728, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "300_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testParseSqlStatementWithParams_2:()V", "class": "JdbcQueryServiceHelperTest", "method": "testParseSqlStatementWithParams_2", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testParseSqlStatementWithParams_2", "old_test_code": null, "new_test_code": "@Test\npublic void testParseSqlStatementWithParams_2() {\n String sql = \"SELECT * FROM table\";\n Assert.assertEquals(sql, JdbcQueryServiceHelper.parseSqlStatementWithParams(sql, new HashMap<>()));\n sql = \"SELECT * FROM table WHERE a='{{{'\";\n Assert.assertEquals(sql, JdbcQueryServiceHelper.parseSqlStatementWithParams(sql, new HashMap<>()));\n sql = \"SELECT * FROM table WHERE a='}'\";\n Assert.assertEquals(sql, JdbcQueryServiceHelper.parseSqlStatementWithParams(sql, new HashMap<>()));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-34"], "old_production_code": "", "new_production_code": "public static String parseSqlStatementWithParams(String sql, Map params) {\n StringBuilder sb = new StringBuilder();\n char[] s = sql.toCharArray();\n int i = 0;\n while (i < s.length) {\n if (s[i] == '{' && (i + 1 < s.length) && s[i + 1] == '{') {\n int j = i + 2;\n while (j < s.length) {\n if (s[j] == '}' && (j + 1 < s.length) && s[j + 1] == '}') {\n String clause = sql.substring(i + 2, j);\n boolean hasParam = false;\n for (Map.Entry entry : params.entrySet()) {\n if (clause.contains(\":\" + entry.getKey())) {\n hasParam = true;\n break;\n }\n }\n if (hasParam) {\n sb.append(clause);\n }\n i = j + 2;\n break;\n }\n j++;\n }\n }\n if (i < s.length) {\n sb.append(s[i]);\n i++;\n }\n }\n return sb.toString();\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "13-49", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5416666666666666, "branch_coverage_gold": 2.9891, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.8025, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.parseSqlStatementWithParams:(Ljava/lang/String;Ljava/util/Map;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "301_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testGetQueryStatements_1:()V", "class": "JdbcQueryServiceHelperTest", "method": "testGetQueryStatements_1", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testGetQueryStatements_1", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_1() {\n Assert.assertEquals(0, JdbcQueryServiceHelper.getQueryStatements(\"\").size());\n Assert.assertEquals(0, JdbcQueryServiceHelper.getQueryStatements(null).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["43-47"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.18181818181818182, "branch_coverage_gold": 0.8152, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.1235, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "302_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testGetQueryStatements_5:()V", "class": "JdbcQueryServiceHelperTest", "method": "testGetQueryStatements_5", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testGetQueryStatements_5", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_5() {\n List sqls = JdbcQueryServiceHelper.getQueryStatements(\"aaa;bbb; \");\n Assert.assertEquals(2, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n Assert.assertEquals(sqls.get(1), \"bbb;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-77"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 1.9022, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "303_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testGetQueryStatements_4:()V", "class": "JdbcQueryServiceHelperTest", "method": "testGetQueryStatements_4", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testGetQueryStatements_4", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_4() {\n List sqls = JdbcQueryServiceHelper.getQueryStatements(\"aaa;bbb;\");\n Assert.assertEquals(2, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n Assert.assertEquals(sqls.get(1), \"bbb;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-69"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 1.6304, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "304_shzlw_poli-v0.12.2_0d207c0_cad3d06_JdbcQueryServiceHelperTest", "test_sign": "com/shzlw/poli/service/JdbcQueryServiceHelperTest.testGetQueryStatements_3:()V", "class": "JdbcQueryServiceHelperTest", "method": "testGetQueryStatements_3", "module": "", "junit_selector": "com.shzlw.poli.service.JdbcQueryServiceHelperTest#testGetQueryStatements_3", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_3() {\n List sqls = JdbcQueryServiceHelper.getQueryStatements(\"aaa;\");\n Assert.assertEquals(1, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-61"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "focal_method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "line_nums_new": "62-80", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 1.6304, "method_coverage_gold": 0.2105, "line_coverage_gold": 0.5556, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/service/JdbcQueryServiceHelper.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/service/JdbcQueryServiceHelper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.12.2", "java_version": 8} {"task_id": "shzlw_poli-v0.12.2__da761fb_712ee50__CommonUtilTest_131310ef", "project_name": "shzlw_poli-v0.12.2", "git_clone_url": "https://github.com/shzlw/poli.git", "rev1": "da761fbddd431053004c4d4ca872ddd8ead91df0", "rev2": "712ee50720cb3de9129fb79b78273ce7f51d8124", "rev1_date": "2019-07-28T13:03:52Z", "rev2_date": "2019-07-29T00:05:19Z", "git_diff_url": "https://github.com/shzlw/poli/compare/da761fbddd431053004c4d4ca872ddd8ead91df0...712ee50720cb3de9129fb79b78273ce7f51d8124", "test_file": "src/test/java/com/shzlw/poli/util/CommonUtilTest.java", "test_changes": [{"change_id": "292_shzlw_poli-v0.12.2_da761fb_712ee50_CommonUtilTest", "test_sign": "com/shzlw/poli/util/CommonUtilTest.testGetQueryStatements_2:()V", "class": "CommonUtilTest", "method": "testGetQueryStatements_2", "module": "", "junit_selector": "com.shzlw.poli.util.CommonUtilTest#testGetQueryStatements_2", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_2() {\n List sqls = CommonUtil.getQueryStatements(\"aaa\");\n Assert.assertEquals(1, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-45"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "focal_method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "line_nums_new": "36-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.2727272727272727, "branch_coverage_gold": 1.0, "method_coverage_gold": 0.2625, "line_coverage_gold": 0.2295, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "293_shzlw_poli-v0.12.2_da761fb_712ee50_CommonUtilTest", "test_sign": "com/shzlw/poli/util/CommonUtilTest.testGetQueryStatements_4:()V", "class": "CommonUtilTest", "method": "testGetQueryStatements_4", "module": "", "junit_selector": "com.shzlw.poli.util.CommonUtilTest#testGetQueryStatements_4", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_4() {\n List sqls = CommonUtil.getQueryStatements(\"aaa;bbb;\");\n Assert.assertEquals(2, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n Assert.assertEquals(sqls.get(1), \"bbb;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["54-60"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "focal_method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "line_nums_new": "36-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 2.0, "method_coverage_gold": 0.2625, "line_coverage_gold": 0.6886, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "294_shzlw_poli-v0.12.2_da761fb_712ee50_CommonUtilTest", "test_sign": "com/shzlw/poli/util/CommonUtilTest.testGetQueryStatements_1:()V", "class": "CommonUtilTest", "method": "testGetQueryStatements_1", "module": "", "junit_selector": "com.shzlw.poli.util.CommonUtilTest#testGetQueryStatements_1", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_1() {\n Assert.assertEquals(0, CommonUtil.getQueryStatements(\"\").size());\n Assert.assertEquals(0, CommonUtil.getQueryStatements(null).size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-38"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "focal_method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "line_nums_new": "36-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.18181818181818182, "branch_coverage_gold": 1.0, "method_coverage_gold": 0.2625, "line_coverage_gold": 0.153, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "295_shzlw_poli-v0.12.2_da761fb_712ee50_CommonUtilTest", "test_sign": "com/shzlw/poli/util/CommonUtilTest.testGetQueryStatements_3:()V", "class": "CommonUtilTest", "method": "testGetQueryStatements_3", "module": "", "junit_selector": "com.shzlw.poli.util.CommonUtilTest#testGetQueryStatements_3", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_3() {\n List sqls = CommonUtil.getQueryStatements(\"aaa;\");\n Assert.assertEquals(1, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-52"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "focal_method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "line_nums_new": "36-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 2.0, "method_coverage_gold": 0.2625, "line_coverage_gold": 0.6886, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "296_shzlw_poli-v0.12.2_da761fb_712ee50_CommonUtilTest", "test_sign": "com/shzlw/poli/util/CommonUtilTest.testGetQueryStatements_5:()V", "class": "CommonUtilTest", "method": "testGetQueryStatements_5", "module": "", "junit_selector": "com.shzlw.poli.util.CommonUtilTest#testGetQueryStatements_5", "old_test_code": null, "new_test_code": "@Test\npublic void testGetQueryStatements_5() {\n List sqls = CommonUtil.getQueryStatements(\"aaa;bbb; \");\n Assert.assertEquals(2, sqls.size());\n Assert.assertEquals(sqls.get(0), \"aaa;\");\n Assert.assertEquals(sqls.get(1), \"bbb;\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-68"], "old_production_code": "", "new_production_code": "public static List getQueryStatements(String sql) {\n if (sql == null || sql.isEmpty()) {\n return Collections.emptyList();\n }\n if (!sql.contains(\";\")) {\n return Arrays.asList(sql);\n }\n List statements = new ArrayList<>();\n String[] sqlArray = sql.split(\";\");\n for (String s : sqlArray) {\n String t = s.trim();\n if (!t.isEmpty()) {\n statements.add(t + \";\");\n }\n }\n return statements;\n}", "focal_file_path": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "focal_method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "line_nums_new": "36-54", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 2.3333, "method_coverage_gold": 0.2625, "line_coverage_gold": 0.6886, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/shzlw/poli/util/CommonUtil.getQueryStatements:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/shzlw/poli/util/CommonUtil.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.12.2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__274bb56_791cb96__ClassNameTest_3fd37e7c", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "274bb56141c18eb39308af60e9f490d0dfce570f", "rev2": "791cb9631ab76fc07bf8825f23464ecd616acccc", "rev1_date": "2018-11-28T04:14:23Z", "rev2_date": "2018-11-28T04:19:51Z", "git_diff_url": "https://github.com/square/javapoet/compare/274bb56141c18eb39308af60e9f490d0dfce570f...791cb9631ab76fc07bf8825f23464ecd616acccc", "test_file": "src/test/java/com/squareup/javapoet/ClassNameTest.java", "test_changes": [{"change_id": "1100_square_javapoet-javapoet-1.13.0-2_274bb56_791cb96_ClassNameTest", "test_sign": "com/squareup/javapoet/ClassNameTest.canonicalName:()V", "class": "ClassNameTest", "method": "canonicalName", "module": "", "junit_selector": "com.squareup.javapoet.ClassNameTest#canonicalName", "old_test_code": null, "new_test_code": "@Test\npublic void canonicalName() {\n assertEquals(\"java.lang.Object\", TypeName.OBJECT.canonicalName());\n assertEquals(\"java.lang.Thread.State\", ClassName.get(Thread.State.class).canonicalName());\n assertEquals(\"java.util.Map.Entry\", ClassName.get(Map.Entry.class).canonicalName());\n assertEquals(\"Foo\", ClassName.get(\"\", \"Foo\").canonicalName());\n assertEquals(\"Foo.Bar.Baz\", ClassName.get(\"\", \"Foo\", \"Bar\", \"Baz\").canonicalName());\n assertEquals(\"a.b.c.Foo.Bar.Baz\", ClassName.get(\"a.b.c\", \"Foo\", \"Bar\", \"Baz\").canonicalName());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["197-205"], "old_production_code": "", "new_production_code": "public String canonicalName() {\n return canonicalName;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ClassName.java", "focal_method_sign": "com/squareup/javapoet/ClassName.canonicalName:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ClassName.canonicalName:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "145-147", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8095238095238095, "branch_coverage_gold": 1.4549, "method_coverage_gold": 3.3735, "line_coverage_gold": 3.1027, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/ClassName.canonicalName:()Ljava/lang/String", "com/squareup/javapoet/ClassName.get:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lcom/squareup/javapoet/ClassName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ClassName.canonicalName:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__274bb56_791cb96__MethodSpecTest_c4373bce", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "274bb56141c18eb39308af60e9f490d0dfce570f", "rev2": "791cb9631ab76fc07bf8825f23464ecd616acccc", "rev1_date": "2018-11-28T04:14:23Z", "rev2_date": "2018-11-28T04:19:51Z", "git_diff_url": "https://github.com/square/javapoet/compare/274bb56141c18eb39308af60e9f490d0dfce570f...791cb9631ab76fc07bf8825f23464ecd616acccc", "test_file": "src/test/java/com/squareup/javapoet/MethodSpecTest.java", "test_changes": [{"change_id": "1097_square_javapoet-javapoet-1.13.0-2_274bb56_791cb96_MethodSpecTest", "test_sign": "com/squareup/javapoet/MethodSpecTest.withParameterJavaDoc:()V", "class": "MethodSpecTest", "method": "withParameterJavaDoc", "module": "", "junit_selector": "com.squareup.javapoet.MethodSpecTest#withParameterJavaDoc", "old_test_code": null, "new_test_code": "@Test\npublic void withParameterJavaDoc() {\n MethodSpec methodSpec = MethodSpec.methodBuilder(\"getTaco\").addParameter(ParameterSpec.builder(TypeName.DOUBLE, \"money\").addJavadoc(\"the amount required to buy the taco.\\n\").build()).addParameter(ParameterSpec.builder(TypeName.INT, \"count\").addJavadoc(\"the number of Tacos to buy.\\n\").build()).addJavadoc(\"Gets the best Taco money can buy.\\n\").build();\n assertThat(methodSpec.toString()).isEqualTo(\"\" + \"/**\\n\" + \" * Gets the best Taco money can buy.\\n\" + \" *\\n\" + \" * @param money the amount required to buy the taco.\\n\" + \" * @param count the number of Tacos to buy.\\n\" + \" */\\n\" + \"void getTaco(double money, int count) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["287-306"], "old_production_code": "", "new_production_code": "public Builder addJavadoc(String format, Object... args) {\n javadoc.add(format, args);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "focal_method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_new": "136-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 12.0272, "method_coverage_gold": 17.5904, "line_coverage_gold": 18.9725, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1099_square_javapoet-javapoet-1.13.0-2_274bb56_791cb96_MethodSpecTest", "test_sign": "com/squareup/javapoet/MethodSpecTest.withParameterJavaDocAndWithoutMethodJavadoc:()V", "class": "MethodSpecTest", "method": "withParameterJavaDocAndWithoutMethodJavadoc", "module": "", "junit_selector": "com.squareup.javapoet.MethodSpecTest#withParameterJavaDocAndWithoutMethodJavadoc", "old_test_code": null, "new_test_code": "@Test\npublic void withParameterJavaDocAndWithoutMethodJavadoc() {\n MethodSpec methodSpec = MethodSpec.methodBuilder(\"getTaco\").addParameter(ParameterSpec.builder(TypeName.DOUBLE, \"money\").addJavadoc(\"the amount required to buy the taco.\\n\").build()).addParameter(ParameterSpec.builder(TypeName.INT, \"count\").addJavadoc(\"the number of Tacos to buy.\\n\").build()).build();\n assertThat(methodSpec.toString()).isEqualTo(\"\" + \"/**\\n\" + \" * @param money the amount required to buy the taco.\\n\" + \" * @param count the number of Tacos to buy.\\n\" + \" */\\n\" + \"void getTaco(double money, int count) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["308-324"], "old_production_code": "", "new_production_code": "public Builder addJavadoc(String format, Object... args) {\n javadoc.add(format, args);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "focal_method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_new": "136-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8823529411764706, "branch_coverage_gold": 11.8332, "method_coverage_gold": 17.3494, "line_coverage_gold": 18.7691, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__274bb56_791cb96__ParameterSpecTest_e66fb3ad", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "274bb56141c18eb39308af60e9f490d0dfce570f", "rev2": "791cb9631ab76fc07bf8825f23464ecd616acccc", "rev1_date": "2018-11-28T04:14:23Z", "rev2_date": "2018-11-28T04:19:51Z", "git_diff_url": "https://github.com/square/javapoet/compare/274bb56141c18eb39308af60e9f490d0dfce570f...791cb9631ab76fc07bf8825f23464ecd616acccc", "test_file": "src/test/java/com/squareup/javapoet/ParameterSpecTest.java", "test_changes": [{"change_id": "1098_square_javapoet-javapoet-1.13.0-2_274bb56_791cb96_ParameterSpecTest", "test_sign": "com/squareup/javapoet/ParameterSpecTest.addNonFinalModifier:()V", "class": "ParameterSpecTest", "method": "addNonFinalModifier", "module": "", "junit_selector": "com.squareup.javapoet.ParameterSpecTest#addNonFinalModifier", "old_test_code": null, "new_test_code": "@Test\npublic void addNonFinalModifier() {\n List modifiers = new ArrayList<>();\n modifiers.add(Modifier.FINAL);\n modifiers.add(Modifier.PUBLIC);\n try {\n ParameterSpec.builder(int.class, \"foo\").addModifiers(modifiers);\n fail();\n } catch (Exception e) {\n assertThat(e.getMessage()).isEqualTo(\"unexpected parameter modifier: public\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-63"], "old_production_code": "public Builder addModifiers(Iterable modifiers) {\n checkNotNull(modifiers, \"modifiers == null\");\n for (Modifier modifier : modifiers) {\n this.modifiers.add(modifier);\n }\n return this;\n}", "new_production_code": "public Builder addModifiers(Iterable modifiers) {\n checkNotNull(modifiers, \"modifiers == null\");\n for (Modifier modifier : modifiers) {\n if (!modifier.equals(Modifier.FINAL)) {\n throw new IllegalStateException(\"unexpected parameter modifier: \" + modifier);\n }\n this.modifiers.add(modifier);\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "focal_method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addModifiers:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/ParameterSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addModifiers:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/ParameterSpec$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_old": "160-166", "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_new": "173-182", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.875, "branch_coverage_gold": 1.9399, "method_coverage_gold": 5.3012, "line_coverage_gold": 4.6796, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ParameterSpec$Builder.addModifiers:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/ParameterSpec.builder:(Ljava/lang/reflect/Type;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addModifiers:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/ParameterSpec$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__3bef689_bd78680__LineWrapperTest_3c511d7f", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "3bef6897622c8eb347fa10ece1102ef1188ae677", "rev2": "bd786800328b47b8bb0b676b4afa1afb54a49211", "rev1_date": "2016-11-10T00:16:48Z", "rev2_date": "2016-11-10T00:24:00Z", "git_diff_url": "https://github.com/square/javapoet/compare/3bef6897622c8eb347fa10ece1102ef1188ae677...bd786800328b47b8bb0b676b4afa1afb54a49211", "test_file": "src/test/java/com/squareup/javapoet/LineWrapperTest.java", "test_changes": [{"change_id": "1108_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrapEmbeddedNewlines:()V", "class": "LineWrapperTest", "method": "wrapEmbeddedNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrapEmbeddedNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void wrapEmbeddedNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghij\\nklmn\");\n lineWrapper.append(\"opqrstuvwxy\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde\\n fghij\\nklmnopqrstuvwxy\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["110-119"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.354, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2, "class": 1.0, "tfidf": 0.0646}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.335, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.3, "class": 1.0, "tfidf": 0.01}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2808, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.0232}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.5496, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5233, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1109_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.multipleWrite:()V", "class": "LineWrapperTest", "method": "multipleWrite", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#multipleWrite", "old_test_code": null, "new_test_code": "@Test\npublic void multipleWrite() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"ab\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"cd\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"ef\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"gh\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"ij\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"kl\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"mn\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"op\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"qr\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"ab cd ef\\n gh ij kl\\n mn op qr\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-68"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2944, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1538, "class": 1.0, "tfidf": 0.0934}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2872, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.013}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2565, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.0769, "class": 1.0, "tfidf": 0.0056}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.7562, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.7427, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1110_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrapMultipleNewlines:()V", "class": "LineWrapperTest", "method": "noWrapMultipleNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrapMultipleNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void noWrapMultipleNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\nklmnopq\\nr\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"stuvwxyz\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\nklmnopq\\nr stuvwxyz\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["121-131"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.3873, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.2273, "class": 1.0, "tfidf": 0.0618}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3515, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.3182, "class": 1.0, "tfidf": 0.0096}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.279, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.0223}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.5496, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.4685, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1111_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrap:()V", "class": "LineWrapperTest", "method": "wrap", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrap", "old_test_code": null, "new_test_code": "@Test\npublic void wrap() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghij\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde\\n fghij\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-34"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2959, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.3077, "class": 1.0, "tfidf": 0.0113}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.263, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 1.0, "tfidf": 0.0676}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.1944, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0263}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.4463, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5233, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1112_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrapMultipleNewlines:()V", "class": "LineWrapperTest", "method": "wrapMultipleNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrapMultipleNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void wrapMultipleNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\nklmnopq\\nrs\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"tuvwxyz1\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\nklmnopq\\nrs\\n tuvwxyz1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["133-143"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.391, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.25, "class": 1.0, "tfidf": 0.0618}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3567, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.35, "class": 1.0, "tfidf": 0.0096}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2805, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.0223}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.9628, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5782, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1113_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.overlyLongLinesWithLeadingSpace:()V", "class": "LineWrapperTest", "method": "overlyLongLinesWithLeadingSpace", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#overlyLongLinesWithLeadingSpace", "old_test_code": null, "new_test_code": "@Test\npublic void overlyLongLinesWithLeadingSpace() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"abcdefghijkl\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"\\n abcdefghijkl\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-97"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3748, "signal_scores": {"nc": 0.0, "lcs_u": 0.7692, "ed": 0.2903, "class": 1.0, "tfidf": 0.0129}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3578, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.129, "class": 1.0, "tfidf": 0.0302}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2969, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0645, "class": 1.0, "tfidf": 0.0418}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.343, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5233, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1114_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.fencepost:()V", "class": "LineWrapperTest", "method": "fencepost", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#fencepost", "old_test_code": null, "new_test_code": "@Test\npublic void fencepost() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.append(\"fghij\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"k\");\n lineWrapper.append(\"lmnop\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcdefghij\\n klmnop\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-80"], "old_production_code": "", "new_production_code": "void close() throws IOException {\n if (indentLevel != -1)\n flush(false);\n closed = true;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3541, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.3333, "class": 1.0, "tfidf": 0.0215}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2831, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1111, "class": 1.0, "tfidf": 0.0753}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2565, "signal_scores": {"nc": 0.0, "lcs_u": 0.2308, "ed": 0.1538, "class": 1.0, "tfidf": 0.0092}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.4463, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5233, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1115_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrap:()V", "class": "LineWrapperTest", "method": "noWrap", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrap", "old_test_code": null, "new_test_code": "@Test\npublic void noWrap() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-44"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2705, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.1538, "class": 1.0, "tfidf": 0.0113}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2599, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 1.0, "tfidf": 0.0546}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2297, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.0263}}], "coverage_gold": 0.9130434782608695, "branch_coverage_gold": 1.1364, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.3587, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1116_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.overlyLongLinesWithoutLeadingSpace:()V", "class": "LineWrapperTest", "method": "overlyLongLinesWithoutLeadingSpace", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#overlyLongLinesWithoutLeadingSpace", "old_test_code": null, "new_test_code": "@Test\npublic void overlyLongLinesWithoutLeadingSpace() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcdefghijkl\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcdefghijkl\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-88"], "old_production_code": "", "new_production_code": "void close() throws IOException {\n if (indentLevel != -1)\n flush(false);\n closed = true;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3567, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1176, "class": 1.0, "tfidf": 0.0336}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2972, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0588, "class": 1.0, "tfidf": 0.0469}}], "coverage_gold": 0.6111111111111112, "branch_coverage_gold": 0.5165, "method_coverage_gold": 1.3123, "line_coverage_gold": 1.4811, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1117_square_javapoet-javapoet-1.13.0-2_3bef689_bd78680_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrapEmbeddedNewlines:()V", "class": "LineWrapperTest", "method": "noWrapEmbeddedNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrapEmbeddedNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void noWrapEmbeddedNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\njklmn\");\n lineWrapper.append(\"opqrstuvwxy\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\njklmnopqrstuvwxy\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-108"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.351, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1818, "class": 1.0, "tfidf": 0.0646}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3305, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2727, "class": 1.0, "tfidf": 0.01}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2793, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.0232}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.343, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.3039, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__3c68a05_491ff3c__AnnotatedTypeNameTest_2e0aeb62", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "3c68a054848124bf53aa2f73b1c310c6fffa3d0b", "rev2": "491ff3cced8f79d8636bdc3f4a7ae5a76b834ac7", "rev1_date": "2018-04-23T20:02:19Z", "rev2_date": "2018-04-23T20:14:06Z", "git_diff_url": "https://github.com/square/javapoet/compare/3c68a054848124bf53aa2f73b1c310c6fffa3d0b...491ff3cced8f79d8636bdc3f4a7ae5a76b834ac7", "test_file": "src/test/java/com/squareup/javapoet/AnnotatedTypeNameTest.java", "test_changes": [{"change_id": "1121_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedArrayTypeVarargsParameter:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedArrayTypeVarargsParameter", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedArrayTypeVarargsParameter", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedArrayTypeVarargsParameter() {\n TypeName type = ArrayTypeName.of(ArrayTypeName.of(ClassName.get(Object.class))).annotated(TYPE_USE_ANNOTATION);\n MethodSpec varargsMethod = MethodSpec.methodBuilder(\"m\").addParameter(ParameterSpec.builder(type, \"p\").build()).varargs().build();\n assertThat(varargsMethod.toString()).isEqualTo(\"\" + \"void m(java.lang.Object @\" + TUA + \" []... p) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["162-174"], "old_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n List names = new ArrayList<>();\n while (true) {\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n names.add(clazz.getSimpleName() + anonymousSuffix);\n Class enclosing = clazz.getEnclosingClass();\n if (enclosing == null)\n break;\n clazz = enclosing;\n }\n int lastDot = clazz.getName().lastIndexOf('.');\n if (lastDot != -1)\n names.add(clazz.getName().substring(0, lastDot));\n Collections.reverse(names);\n return new ClassName(names);\n}", "new_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n String name = clazz.getSimpleName() + anonymousSuffix;\n if (clazz.getEnclosingClass() == null) {\n int lastDot = clazz.getName().lastIndexOf('.');\n String packageName = (lastDot != -1) ? clazz.getName().substring(0, lastDot) : null;\n return new TopLevelClassName(packageName, name);\n }\n return ClassName.get(clazz.getEnclosingClass()).nestedClass(name);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ClassName.java", "focal_method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8235294117647058, "branch_coverage_gold": 14.565, "method_coverage_gold": 26.0766, "line_coverage_gold": 22.45, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.varargs:()Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1122_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedOuterMultidimensionalArrayType:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedOuterMultidimensionalArrayType", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedOuterMultidimensionalArrayType", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedOuterMultidimensionalArrayType() {\n TypeName type = ArrayTypeName.of(ArrayTypeName.of(ClassName.get(Object.class))).annotated(TYPE_USE_ANNOTATION);\n assertThat(type.toString()).isEqualTo(\"java.lang.Object @\" + TUA + \" [][]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["148-152"], "old_production_code": "@Override\npublic final String toString() {\n String result = cachedString;\n if (result == null) {\n try {\n StringBuilder resultBuilder = new StringBuilder();\n CodeWriter codeWriter = new CodeWriter(resultBuilder);\n emitAnnotations(codeWriter);\n emit(codeWriter);\n result = resultBuilder.toString();\n cachedString = result;\n } catch (IOException e) {\n throw new AssertionError();\n }\n }\n return result;\n}", "new_production_code": "@Override\npublic final String toString() {\n String result = cachedString;\n if (result == null) {\n try {\n StringBuilder resultBuilder = new StringBuilder();\n CodeWriter codeWriter = new CodeWriter(resultBuilder);\n emit(codeWriter);\n result = resultBuilder.toString();\n cachedString = result;\n } catch (IOException e) {\n throw new AssertionError();\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeName.java", "focal_method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_old": "206-221", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_new": "206-220", "dependency_updated": "updated", "score": 0.1577, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.1538, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": 0.1286, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0513, "class": 0.0, "tfidf": 0.0106}}], "coverage_gold": 0.7931034482758621, "branch_coverage_gold": 9.0909, "method_coverage_gold": 17.9426, "line_coverage_gold": 14.7104, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1123_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedArrayElementType:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedArrayElementType", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedArrayElementType", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedArrayElementType() {\n TypeName type = ArrayTypeName.of(ClassName.get(Object.class).annotated(TYPE_USE_ANNOTATION));\n assertThat(type.toString()).isEqualTo(\"java.lang. @\" + TUA + \" Object[]\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["142-145"], "old_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n List names = new ArrayList<>();\n while (true) {\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n names.add(clazz.getSimpleName() + anonymousSuffix);\n Class enclosing = clazz.getEnclosingClass();\n if (enclosing == null)\n break;\n clazz = enclosing;\n }\n int lastDot = clazz.getName().lastIndexOf('.');\n if (lastDot != -1)\n names.add(clazz.getName().substring(0, lastDot));\n Collections.reverse(names);\n return new ClassName(names);\n}", "new_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n String name = clazz.getSimpleName() + anonymousSuffix;\n if (clazz.getEnclosingClass() == null) {\n int lastDot = clazz.getName().lastIndexOf('.');\n String packageName = (lastDot != -1) ? clazz.getName().substring(0, lastDot) : null;\n return new TopLevelClassName(packageName, name);\n }\n return ClassName.get(clazz.getEnclosingClass()).nestedClass(name);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ClassName.java", "focal_method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": 0.1336, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.08, "class": 0.0, "tfidf": 0.0119}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_old": "206-221", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_new": "206-220", "dependency_updated": "updated", "score": 0.1146, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.16, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7931034482758621, "branch_coverage_gold": 8.8954, "method_coverage_gold": 17.9426, "line_coverage_gold": 14.7617, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1124_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedInnerMultidimensionalArrayType:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedInnerMultidimensionalArrayType", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedInnerMultidimensionalArrayType", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedInnerMultidimensionalArrayType() {\n TypeName type = ArrayTypeName.of(ArrayTypeName.of(ClassName.get(Object.class)).annotated(TYPE_USE_ANNOTATION));\n assertThat(type.toString()).isEqualTo(\"java.lang.Object[] @\" + TUA + \" []\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["155-159"], "old_production_code": "@Override\npublic final String toString() {\n String result = cachedString;\n if (result == null) {\n try {\n StringBuilder resultBuilder = new StringBuilder();\n CodeWriter codeWriter = new CodeWriter(resultBuilder);\n emitAnnotations(codeWriter);\n emit(codeWriter);\n result = resultBuilder.toString();\n cachedString = result;\n } catch (IOException e) {\n throw new AssertionError();\n }\n }\n return result;\n}", "new_production_code": "@Override\npublic final String toString() {\n String result = cachedString;\n if (result == null) {\n try {\n StringBuilder resultBuilder = new StringBuilder();\n CodeWriter codeWriter = new CodeWriter(resultBuilder);\n emit(codeWriter);\n result = resultBuilder.toString();\n cachedString = result;\n } catch (IOException e) {\n throw new AssertionError();\n }\n }\n return result;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeName.java", "focal_method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_old": "206-221", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_new": "206-220", "dependency_updated": "updated", "score": 0.1314, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1282, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": 0.1286, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0513, "class": 0.0, "tfidf": 0.0106}}], "coverage_gold": 0.7931034482758621, "branch_coverage_gold": 9.0909, "method_coverage_gold": 17.9426, "line_coverage_gold": 14.7104, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1125_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedArrayType:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedArrayType", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedArrayType", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedArrayType() {\n TypeName type = ArrayTypeName.of(ClassName.get(Object.class)).annotated(TYPE_USE_ANNOTATION);\n assertThat(type.toString()).isEqualTo(\"java.lang.Object @\" + TUA + \" []\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["137-140"], "old_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n List names = new ArrayList<>();\n while (true) {\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n names.add(clazz.getSimpleName() + anonymousSuffix);\n Class enclosing = clazz.getEnclosingClass();\n if (enclosing == null)\n break;\n clazz = enclosing;\n }\n int lastDot = clazz.getName().lastIndexOf('.');\n if (lastDot != -1)\n names.add(clazz.getName().substring(0, lastDot));\n Collections.reverse(names);\n return new ClassName(names);\n}", "new_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n String name = clazz.getSimpleName() + anonymousSuffix;\n if (clazz.getEnclosingClass() == null) {\n int lastDot = clazz.getName().lastIndexOf('.');\n String packageName = (lastDot != -1) ? clazz.getName().substring(0, lastDot) : null;\n return new TopLevelClassName(packageName, name);\n }\n return ClassName.get(clazz.getEnclosingClass()).nestedClass(name);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ClassName.java", "focal_method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": 0.1388, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0119}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_old": "206-221", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "line_nums_new": "206-220", "dependency_updated": "updated", "score": 0.0936, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1667, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7931034482758621, "branch_coverage_gold": 8.6999, "method_coverage_gold": 17.9426, "line_coverage_gold": 14.5054, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeName.toString:()Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeName.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1126_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_AnnotatedTypeNameTest", "test_sign": "com/squareup/javapoet/AnnotatedTypeNameTest.annotatedArrayTypeInVarargsParameter:()V", "class": "AnnotatedTypeNameTest", "method": "annotatedArrayTypeInVarargsParameter", "module": "", "junit_selector": "com.squareup.javapoet.AnnotatedTypeNameTest#annotatedArrayTypeInVarargsParameter", "old_test_code": null, "new_test_code": "@Test\npublic void annotatedArrayTypeInVarargsParameter() {\n TypeName type = ArrayTypeName.of(ArrayTypeName.of(ClassName.get(Object.class)).annotated(TYPE_USE_ANNOTATION));\n MethodSpec varargsMethod = MethodSpec.methodBuilder(\"m\").addParameter(ParameterSpec.builder(type, \"p\").build()).varargs().build();\n assertThat(varargsMethod.toString()).isEqualTo(\"\" + \"void m(java.lang.Object[] @\" + TUA + \" ... p) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["177-189"], "old_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n List names = new ArrayList<>();\n while (true) {\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n names.add(clazz.getSimpleName() + anonymousSuffix);\n Class enclosing = clazz.getEnclosingClass();\n if (enclosing == null)\n break;\n clazz = enclosing;\n }\n int lastDot = clazz.getName().lastIndexOf('.');\n if (lastDot != -1)\n names.add(clazz.getName().substring(0, lastDot));\n Collections.reverse(names);\n return new ClassName(names);\n}", "new_production_code": "public static ClassName get(Class clazz) {\n checkNotNull(clazz, \"clazz == null\");\n checkArgument(!clazz.isPrimitive(), \"primitive types cannot be represented as a ClassName\");\n checkArgument(!void.class.equals(clazz), \"'void' type cannot be represented as a ClassName\");\n checkArgument(!clazz.isArray(), \"array types cannot be represented as a ClassName\");\n String anonymousSuffix = \"\";\n while (clazz.isAnonymousClass()) {\n int lastDollar = clazz.getName().lastIndexOf('$');\n anonymousSuffix = clazz.getName().substring(lastDollar) + anonymousSuffix;\n clazz = clazz.getEnclosingClass();\n }\n String name = clazz.getSimpleName() + anonymousSuffix;\n if (clazz.getEnclosingClass() == null) {\n int lastDot = clazz.getName().lastIndexOf('.');\n String packageName = (lastDot != -1) ? clazz.getName().substring(0, lastDot) : null;\n return new TopLevelClassName(packageName, name);\n }\n return ClassName.get(clazz.getEnclosingClass()).nestedClass(name);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ClassName.java", "focal_method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_old": "137-160", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "line_nums_new": "267-289", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8235294117647058, "branch_coverage_gold": 14.565, "method_coverage_gold": 26.0766, "line_coverage_gold": 22.45, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/ArrayTypeName.of:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/ArrayTypeName", "com/squareup/javapoet/TypeName.annotated:([Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeName", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.varargs:()Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ClassName.get:(Ljava/lang/Class;)Lcom/squareup/javapoet/ClassName", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/ClassName.java", "file_path_new": "src/main/java/com/squareup/javapoet/ClassName.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__3c68a05_491ff3c__TypeSpecTest_56d69b50", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "3c68a054848124bf53aa2f73b1c310c6fffa3d0b", "rev2": "491ff3cced8f79d8636bdc3f4a7ae5a76b834ac7", "rev1_date": "2018-04-23T20:02:19Z", "rev2_date": "2018-04-23T20:14:06Z", "git_diff_url": "https://github.com/square/javapoet/compare/3c68a054848124bf53aa2f73b1c310c6fffa3d0b...491ff3cced8f79d8636bdc3f4a7ae5a76b834ac7", "test_file": "src/test/java/com/squareup/javapoet/TypeSpecTest.java", "test_changes": [{"change_id": "1127_square_javapoet-javapoet-1.13.0-2_3c68a05_491ff3c_TypeSpecTest", "test_sign": "com/squareup/javapoet/TypeSpecTest.addAnnotationDisallowsNull:()V", "class": "TypeSpecTest", "method": "addAnnotationDisallowsNull", "module": "", "junit_selector": "com.squareup.javapoet.TypeSpecTest#addAnnotationDisallowsNull", "old_test_code": null, "new_test_code": "@Test\npublic void addAnnotationDisallowsNull() {\n try {\n TypeSpec.classBuilder(\"Foo\").addAnnotation((AnnotationSpec) null);\n fail();\n } catch (NullPointerException expected) {\n assertThat(expected).hasMessageThat().isEqualTo(\"annotationSpec == null\");\n }\n try {\n TypeSpec.classBuilder(\"Foo\").addAnnotation((ClassName) null);\n fail();\n } catch (NullPointerException expected) {\n assertThat(expected).hasMessageThat().isEqualTo(\"type == null\");\n }\n try {\n TypeSpec.classBuilder(\"Foo\").addAnnotation((Class) null);\n fail();\n } catch (NullPointerException expected) {\n assertThat(expected).hasMessageThat().isEqualTo(\"clazz == null\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["328-347"], "old_production_code": "public Builder addAnnotation(AnnotationSpec annotationSpec) {\n this.annotations.add(annotationSpec);\n return this;\n}", "new_production_code": "public Builder addAnnotation(AnnotationSpec annotationSpec) {\n checkNotNull(annotationSpec, \"annotationSpec == null\");\n this.annotations.add(annotationSpec);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeSpec.java", "focal_method_sign": "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeSpec$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_old": "437-440", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_new": "437-441", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.16666666666666666, "branch_coverage_gold": 1.7595, "method_coverage_gold": 5.5024, "line_coverage_gold": 6.0482, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Lcom/squareup/javapoet/ClassName;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Ljava/lang/Class;)Lcom/squareup/javapoet/TypeSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeSpec$Builder.addAnnotation:(Lcom/squareup/javapoet/AnnotationSpec;)Lcom/squareup/javapoet/TypeSpec$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__4cc7b23_89179ea__FileReadingTest_e8d8cc54", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "4cc7b23d51cc3e829b227672e69a720a69d73f26", "rev2": "89179ea493f852ed6b6b36ccde978e9ddc176ce0", "rev1_date": "2016-11-09T02:24:19Z", "rev2_date": "2016-11-09T03:43:11Z", "git_diff_url": "https://github.com/square/javapoet/compare/4cc7b23d51cc3e829b227672e69a720a69d73f26...89179ea493f852ed6b6b36ccde978e9ddc176ce0", "test_file": "src/test/java/com/squareup/javapoet/FileReadingTest.java", "test_changes": [{"change_id": "1247_square_javapoet-javapoet-1.13.0-2_4cc7b23_89179ea_FileReadingTest", "test_sign": "com/squareup/javapoet/FileReadingTest.javaFileObjectInputStreamIsUtf8:()V", "class": "FileReadingTest", "method": "javaFileObjectInputStreamIsUtf8", "module": "", "junit_selector": "com.squareup.javapoet.FileReadingTest#javaFileObjectInputStreamIsUtf8", "old_test_code": null, "new_test_code": "@Test\npublic void javaFileObjectInputStreamIsUtf8() throws IOException {\n JavaFile javaFile = JavaFile.builder(\"foo\", TypeSpec.classBuilder(\"Test\").build()).addFileComment(\"Pi\\u00f1ata\\u00a1\").build();\n byte[] bytes = ByteStreams.toByteArray(javaFile.toJavaFileObject().openInputStream());\n assertThat(bytes).isEqualTo(javaFile.toString().getBytes(UTF_8));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-84"], "old_production_code": "@Override\npublic InputStream openInputStream() throws IOException {\n return new ByteArrayInputStream(getCharContent(true).getBytes());\n}", "new_production_code": "@Override\npublic InputStream openInputStream() throws IOException {\n return new ByteArrayInputStream(getCharContent(true).getBytes(UTF_8));\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/JavaFile.java", "focal_method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_old": "192-194", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_new": "193-195", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8214285714285714, "branch_coverage_gold": 11.1111, "method_coverage_gold": 19.9461, "line_coverage_gold": 21.814, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.build:()Lcom/squareup/javapoet/TypeSpec", "com/squareup/javapoet/JavaFile$Builder.addFileComment:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile.toJavaFileObject:()Ljavax/tools/JavaFileObject", "com/squareup/javapoet/JavaFile.toString:()Ljava/lang/String", "com/squareup/javapoet/JavaFile$Builder.build:()Lcom/squareup/javapoet/JavaFile", "com/squareup/javapoet/JavaFile.builder:(Ljava/lang/String;Lcom/squareup/javapoet/TypeSpec;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__4cc7b23_89179ea__FileWritingTest_3252aa8d", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "4cc7b23d51cc3e829b227672e69a720a69d73f26", "rev2": "89179ea493f852ed6b6b36ccde978e9ddc176ce0", "rev1_date": "2016-11-09T02:24:19Z", "rev2_date": "2016-11-09T03:43:11Z", "git_diff_url": "https://github.com/square/javapoet/compare/4cc7b23d51cc3e829b227672e69a720a69d73f26...89179ea493f852ed6b6b36ccde978e9ddc176ce0", "test_file": "src/test/java/com/squareup/javapoet/FileWritingTest.java", "test_changes": [{"change_id": "1246_square_javapoet-javapoet-1.13.0-2_4cc7b23_89179ea_FileWritingTest", "test_sign": "com/squareup/javapoet/FileWritingTest.fileIsUtf8:()V", "class": "FileWritingTest", "method": "fileIsUtf8", "module": "", "junit_selector": "com.squareup.javapoet.FileWritingTest#fileIsUtf8", "old_test_code": null, "new_test_code": "@Test\npublic void fileIsUtf8() throws IOException {\n JavaFile javaFile = JavaFile.builder(\"foo\", TypeSpec.classBuilder(\"Taco\").build()).addFileComment(\"Pi\\u00f1ata\\u00a1\").build();\n javaFile.writeTo(fsRoot);\n Path fooPath = fsRoot.resolve(fs.getPath(\"foo\", \"Taco.java\"));\n assertThat(new String(Files.readAllBytes(fooPath), UTF_8)).isEqualTo(\"\" + \"// Pi\\u00f1ata\\u00a1\\n\" + \"package foo;\\n\" + \"\\n\" + \"class Taco {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["205-218"], "old_production_code": "public void writeTo(Path directory) throws IOException {\n checkArgument(Files.notExists(directory) || Files.isDirectory(directory), \"path %s exists but is not a directory.\", directory);\n Path outputDirectory = directory;\n if (!packageName.isEmpty()) {\n for (String packageComponent : packageName.split(\"\\\\.\")) {\n outputDirectory = outputDirectory.resolve(packageComponent);\n }\n Files.createDirectories(outputDirectory);\n }\n Path outputPath = outputDirectory.resolve(typeSpec.name + \".java\");\n try (Writer writer = new OutputStreamWriter(Files.newOutputStream(outputPath))) {\n writeTo(writer);\n }\n}", "new_production_code": "public void writeTo(Path directory) throws IOException {\n checkArgument(Files.notExists(directory) || Files.isDirectory(directory), \"path %s exists but is not a directory.\", directory);\n Path outputDirectory = directory;\n if (!packageName.isEmpty()) {\n for (String packageComponent : packageName.split(\"\\\\.\")) {\n outputDirectory = outputDirectory.resolve(packageComponent);\n }\n Files.createDirectories(outputDirectory);\n }\n Path outputPath = outputDirectory.resolve(typeSpec.name + \".java\");\n try (Writer writer = new OutputStreamWriter(Files.newOutputStream(outputPath), UTF_8)) {\n writeTo(writer);\n }\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/JavaFile.java", "focal_method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_old": "85-100", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_new": "86-101", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 11.5426, "method_coverage_gold": 18.8679, "line_coverage_gold": 21.8714, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec$Builder.build:()Lcom/squareup/javapoet/TypeSpec", "com/squareup/javapoet/JavaFile$Builder.addFileComment:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile.builder:(Ljava/lang/String;Lcom/squareup/javapoet/TypeSpec;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile$Builder.build:()Lcom/squareup/javapoet/JavaFile", "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__563cf74_6865d07__CodeBlockTest_371a91e5", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "563cf74b4d699c4d63219cc33e9c095f73d8fbec", "rev2": "6865d07a5ef86d2c4a04966633378cdc3340d902", "rev1_date": "2018-01-27T03:20:23Z", "rev2_date": "2018-01-27T03:20:51Z", "git_diff_url": "https://github.com/square/javapoet/compare/563cf74b4d699c4d63219cc33e9c095f73d8fbec...6865d07a5ef86d2c4a04966633378cdc3340d902", "test_file": "src/test/java/com/squareup/javapoet/CodeBlockTest.java", "test_changes": [{"change_id": "1128_square_javapoet-javapoet-1.13.0-2_563cf74_6865d07_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.isEmpty:()V", "class": "CodeBlockTest", "method": "isEmpty", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#isEmpty", "old_test_code": null, "new_test_code": "@Test\npublic void isEmpty() {\n assertTrue(CodeBlock.builder().isEmpty());\n assertTrue(CodeBlock.builder().add(\"\").isEmpty());\n assertFalse(CodeBlock.builder().add(\" \").isEmpty());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-50"], "old_production_code": "", "new_production_code": "public boolean isEmpty() {\n return formatParts.isEmpty();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.isEmpty:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.isEmpty:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "166-168", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 0.603, "method_coverage_gold": 1.2531, "line_coverage_gold": 1.2055, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.isEmpty:()Z", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock$Builder.add:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.isEmpty:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89179ea_4eda8d4__TypeSpecTest_84fb2e0c", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89179ea493f852ed6b6b36ccde978e9ddc176ce0", "rev2": "4eda8d4a3639f7645e7125a45d183db4d22a50c4", "rev1_date": "2016-11-09T03:43:11Z", "rev2_date": "2016-11-09T06:26:40Z", "git_diff_url": "https://github.com/square/javapoet/compare/89179ea493f852ed6b6b36ccde978e9ddc176ce0...4eda8d4a3639f7645e7125a45d183db4d22a50c4", "test_file": "src/test/java/com/squareup/javapoet/TypeSpecTest.java", "test_changes": [{"change_id": "1095_square_javapoet-javapoet-1.13.0-2_89179ea_4eda8d4_TypeSpecTest", "test_sign": "com/squareup/javapoet/TypeSpecTest.nullInSuperinterfaceIterableAddition:()V", "class": "TypeSpecTest", "method": "nullInSuperinterfaceIterableAddition", "module": "", "junit_selector": "com.squareup.javapoet.TypeSpecTest#nullInSuperinterfaceIterableAddition", "old_test_code": null, "new_test_code": "@Test\npublic void nullInSuperinterfaceIterableAddition() {\n List superinterfaces = new ArrayList<>();\n superinterfaces.add(TypeName.get(List.class));\n superinterfaces.add(null);\n try {\n TypeSpec.classBuilder(\"Taco\").addSuperinterfaces(superinterfaces);\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected.getMessage()).isEqualTo(\"superinterface == null\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1784-1796"], "old_production_code": "public Builder addSuperinterfaces(Iterable superinterfaces) {\n checkArgument(superinterfaces != null, \"superinterfaces == null\");\n for (TypeName superinterface : superinterfaces) {\n this.superinterfaces.add(superinterface);\n }\n return this;\n}", "new_production_code": "public Builder addSuperinterfaces(Iterable superinterfaces) {\n checkArgument(superinterfaces != null, \"superinterfaces == null\");\n for (TypeName superinterface : superinterfaces) {\n addSuperinterface(superinterface);\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeSpec.java", "focal_method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_old": "454-460", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_new": "454-460", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 3.3441, "method_coverage_gold": 6.7385, "line_coverage_gold": 8.3238, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeName.get:(Ljava/lang/reflect/Type;)Lcom/squareup/javapoet/TypeName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89263f0_0d6bdeb__CodeBlockTest_57850e45", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89263f0462e47be5bac0298247be985ad0f4027b", "rev2": "0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "rev1_date": "2017-02-15T03:41:48Z", "rev2_date": "2017-02-15T03:54:29Z", "git_diff_url": "https://github.com/square/javapoet/compare/89263f0462e47be5bac0298247be985ad0f4027b...0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "test_file": "src/test/java/com/squareup/javapoet/CodeBlockTest.java", "test_changes": [{"change_id": "1196_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.indexButNoArguments:()V", "class": "CodeBlockTest", "method": "indexButNoArguments", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#indexButNoArguments", "old_test_code": null, "new_test_code": "@Test\npublic void indexButNoArguments() {\n try {\n CodeBlock.builder().add(\"$1T\").build();\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected).hasMessage(\"index 1 for '$1T' not in range (received 0 arguments)\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["229-236"], "old_production_code": "public Builder add(String format, Object... args) {\n boolean hasRelative = false;\n boolean hasIndexed = false;\n int relativeParameterCount = 0;\n int[] indexedParameterCount = new int[args.length];\n for (int p = 0; p < format.length(); ) {\n if (format.charAt(p) != '$') {\n int nextP = format.indexOf('$', p + 1);\n if (nextP == -1)\n nextP = format.length();\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n continue;\n }\n p++;\n int indexStart = p;\n char c;\n do {\n checkArgument(p < format.length(), \"dangling format characters in '%s'\", format);\n c = format.charAt(p++);\n } while (c >= '0' && c <= '9');\n int indexEnd = p - 1;\n if (c == '$' || c == '>' || c == '<' || c == '[' || c == ']') {\n checkArgument(indexStart == indexEnd, \"$$, $>, $<, $[ and $] may not have an index\");\n formatParts.add(\"$\" + c);\n continue;\n }\n int index;\n if (indexStart < indexEnd) {\n index = Integer.parseInt(format.substring(indexStart, indexEnd)) - 1;\n hasIndexed = true;\n indexedParameterCount[index % args.length]++;\n } else {\n index = relativeParameterCount;\n hasRelative = true;\n relativeParameterCount++;\n }\n checkArgument(index >= 0 && index < args.length, \"index %d for '%s' not in range (received %s arguments)\", index + 1, format.substring(indexStart - 1, indexEnd + 1), args.length);\n checkArgument(!hasIndexed || !hasRelative, \"cannot mix indexed and positional parameters\");\n switch(c) {\n case 'N':\n this.args.add(argToName(args[index]));\n break;\n case 'L':\n this.args.add(argToLiteral(args[index]));\n break;\n case 'S':\n this.args.add(argToString(args[index]));\n break;\n case 'T':\n this.args.add(argToType(args[index]));\n break;\n default:\n throw new IllegalArgumentException(String.format(\"invalid format string: '%s'\", format));\n }\n formatParts.add(\"$\" + c);\n }\n if (hasRelative) {\n checkArgument(relativeParameterCount >= args.length, \"unused arguments: expected %s, received %s\", relativeParameterCount, args.length);\n }\n if (hasIndexed) {\n List unused = new ArrayList<>();\n for (int i = 0; i < args.length; i++) {\n if (indexedParameterCount[i] == 0) {\n unused.add(\"$\" + (i + 1));\n }\n }\n String s = unused.size() == 1 ? \"\" : \"s\";\n checkArgument(unused.isEmpty(), \"unused argument%s: %s\", s, Util.join(\", \", unused));\n }\n return this;\n}", "new_production_code": "public Builder add(String format, Object... args) {\n boolean hasRelative = false;\n boolean hasIndexed = false;\n int relativeParameterCount = 0;\n int[] indexedParameterCount = new int[args.length];\n for (int p = 0; p < format.length(); ) {\n if (format.charAt(p) != '$') {\n int nextP = format.indexOf('$', p + 1);\n if (nextP == -1)\n nextP = format.length();\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n continue;\n }\n p++;\n int indexStart = p;\n char c;\n do {\n checkArgument(p < format.length(), \"dangling format characters in '%s'\", format);\n c = format.charAt(p++);\n } while (c >= '0' && c <= '9');\n int indexEnd = p - 1;\n if (isNoArgPlaceholder(c)) {\n checkArgument(indexStart == indexEnd, \"$$, $>, $<, $[, $], and $W may not have an index\");\n formatParts.add(\"$\" + c);\n continue;\n }\n int index;\n if (indexStart < indexEnd) {\n index = Integer.parseInt(format.substring(indexStart, indexEnd)) - 1;\n hasIndexed = true;\n if (args.length > 0) {\n indexedParameterCount[index % args.length]++;\n }\n } else {\n index = relativeParameterCount;\n hasRelative = true;\n relativeParameterCount++;\n }\n checkArgument(index >= 0 && index < args.length, \"index %d for '%s' not in range (received %s arguments)\", index + 1, format.substring(indexStart - 1, indexEnd + 1), args.length);\n checkArgument(!hasIndexed || !hasRelative, \"cannot mix indexed and positional parameters\");\n addArgument(format, c, args[index]);\n formatParts.add(\"$\" + c);\n }\n if (hasRelative) {\n checkArgument(relativeParameterCount >= args.length, \"unused arguments: expected %s, received %s\", relativeParameterCount, args.length);\n }\n if (hasIndexed) {\n List unused = new ArrayList<>();\n for (int i = 0; i < args.length; i++) {\n if (indexedParameterCount[i] == 0) {\n unused.add(\"$\" + (i + 1));\n }\n }\n String s = unused.size() == 1 ? \"\" : \"s\";\n checkArgument(unused.isEmpty(), \"unused argument%s: %s\", s, Util.join(\", \", unused));\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.add:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.add:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_old": "115-201", "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "192-265", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.425531914893617, "branch_coverage_gold": 1.9547, "method_coverage_gold": 1.8373, "line_coverage_gold": 1.9094, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.add:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.add:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/CodeBlock.java", "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "1197_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.missingNamedArgument:()V", "class": "CodeBlockTest", "method": "missingNamedArgument", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#missingNamedArgument", "old_test_code": null, "new_test_code": "@Test\npublic void missingNamedArgument() {\n try {\n Map map = new LinkedHashMap<>();\n CodeBlock.builder().addNamed(\"$text:S\", map).build();\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected).hasMessage(\"Missing named argument for $text\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["132-140"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.42424242424242425, "branch_coverage_gold": 0.823, "method_coverage_gold": 1.5748, "line_coverage_gold": 1.473, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1199_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.namedAndNoArgFormat:()V", "class": "CodeBlockTest", "method": "namedAndNoArgFormat", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#namedAndNoArgFormat", "old_test_code": null, "new_test_code": "@Test\npublic void namedAndNoArgFormat() {\n Map map = new LinkedHashMap<>();\n map.put(\"text\", \"tacos\");\n CodeBlock block = CodeBlock.builder().addNamed(\"$>\\n$text:L for $$3.50\", map).build();\n assertThat(block.toString()).isEqualTo(\"\\n tacos for $3.50\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-130"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9487179487179487, "branch_coverage_gold": 5.144, "method_coverage_gold": 6.8241, "line_coverage_gold": 7.856, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.build:()Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1200_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.simpleNamedArgument:()V", "class": "CodeBlockTest", "method": "simpleNamedArgument", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#simpleNamedArgument", "old_test_code": null, "new_test_code": "@Test\npublic void simpleNamedArgument() {\n Map map = new LinkedHashMap<>();\n map.put(\"text\", \"taco\");\n CodeBlock block = CodeBlock.builder().addNamed(\"$text:S\", map).build();\n assertThat(block.toString()).isEqualTo(\"\\\"taco\\\"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-112"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.717948717948718, "branch_coverage_gold": 3.3951, "method_coverage_gold": 6.0367, "line_coverage_gold": 6.7103, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.build:()Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1201_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.multipleNamedArguments:()V", "class": "CodeBlockTest", "method": "multipleNamedArguments", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#multipleNamedArguments", "old_test_code": null, "new_test_code": "@Test\npublic void multipleNamedArguments() {\n Map map = new LinkedHashMap<>();\n map.put(\"pipe\", System.class);\n map.put(\"text\", \"tacos\");\n CodeBlock block = CodeBlock.builder().addNamed(\"$pipe:T.out.println(\\\"Let's eat some $text:L\\\");\", map).build();\n assertThat(block.toString()).isEqualTo(\"java.lang.System.out.println(\\\"Let's eat some tacos\\\");\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["153-164"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8205128205128205, "branch_coverage_gold": 7.9218, "method_coverage_gold": 11.5486, "line_coverage_gold": 12.8205, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.build:()Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1204_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.namedNewline:()V", "class": "CodeBlockTest", "method": "namedNewline", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#namedNewline", "old_test_code": null, "new_test_code": "@Test\npublic void namedNewline() {\n Map map = new LinkedHashMap<>();\n map.put(\"clazz\", Integer.class);\n CodeBlock block = CodeBlock.builder().addNamed(\"$clazz:T\\n\", map).build();\n assertThat(block.toString()).isEqualTo(\"java.lang.Integer\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["166-171"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 7.9218, "method_coverage_gold": 11.0236, "line_coverage_gold": 12.4386, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.build:()Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1206_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.repeatedNamedArgument:()V", "class": "CodeBlockTest", "method": "repeatedNamedArgument", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#repeatedNamedArgument", "old_test_code": null, "new_test_code": "@Test\npublic void repeatedNamedArgument() {\n Map map = new LinkedHashMap<>();\n map.put(\"text\", \"tacos\");\n CodeBlock block = CodeBlock.builder().addNamed(\"\\\"I like \\\" + $text:S + \\\". Do you like \\\" + $text:S + \\\"?\\\"\", map).build();\n assertThat(block.toString()).isEqualTo(\"\\\"I like \\\" + \\\"tacos\\\" + \\\". Do you like \\\" + \\\"tacos\\\" + \\\"?\\\"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["114-122"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8205128205128205, "branch_coverage_gold": 3.6008, "method_coverage_gold": 6.0367, "line_coverage_gold": 7.0376, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.build:()Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1215_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.danglingNamed:()V", "class": "CodeBlockTest", "method": "danglingNamed", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#danglingNamed", "old_test_code": null, "new_test_code": "@Test\npublic void danglingNamed() {\n Map map = new LinkedHashMap<>();\n map.put(\"clazz\", Integer.class);\n try {\n CodeBlock.builder().addNamed(\"$clazz:T$\", map).build();\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected).hasMessage(\"dangling $ at end\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["173-182"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7272727272727273, "branch_coverage_gold": 4.2181, "method_coverage_gold": 5.7743, "line_coverage_gold": 6.7103, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1218_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.lowerCaseNamed:()V", "class": "CodeBlockTest", "method": "lowerCaseNamed", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#lowerCaseNamed", "old_test_code": null, "new_test_code": "@Test\npublic void lowerCaseNamed() {\n try {\n Map map = new LinkedHashMap<>();\n map.put(\"Text\", \"tacos\");\n CodeBlock block = CodeBlock.builder().addNamed(\"$Text:S\", map).build();\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected).hasMessage(\"argument 'Text' must start with a lowercase character\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["142-151"], "old_production_code": "", "new_production_code": "public Builder addNamed(String format, Map arguments) {\n int p = 0;\n for (String argument : arguments.keySet()) {\n checkArgument(LOWERCASE.matcher(argument).matches(), \"argument '%s' must start with a lowercase character\", argument);\n }\n while (p < format.length()) {\n int nextP = format.indexOf(\"$\", p);\n if (nextP == -1) {\n formatParts.add(format.substring(p, format.length()));\n break;\n }\n if (p != nextP) {\n formatParts.add(format.substring(p, nextP));\n p = nextP;\n }\n Matcher matcher = null;\n int colon = format.indexOf(':', p);\n if (colon != -1) {\n int endIndex = Math.min(colon + 2, format.length());\n matcher = NAMED_ARGUMENT.matcher(format.substring(p, endIndex));\n }\n if (matcher != null && matcher.lookingAt()) {\n String argumentName = matcher.group(\"argumentName\");\n checkArgument(arguments.containsKey(argumentName), \"Missing named argument for $%s\", argumentName);\n char formatChar = matcher.group(\"typeChar\").charAt(0);\n addArgument(format, formatChar, arguments.get(argumentName));\n formatParts.add(\"$\" + formatChar);\n p += matcher.regionEnd();\n } else {\n checkArgument(p < format.length() - 1, \"dangling $ at end\");\n checkArgument(isNoArgPlaceholder(format.charAt(p + 1)), \"unknown format $%s at %s in '%s'\", format.charAt(p + 1), p + 1, format);\n formatParts.add(format.substring(p, p + 2));\n p += 2;\n }\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-179", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.09090909090909091, "branch_coverage_gold": 0.2058, "method_coverage_gold": 1.5748, "line_coverage_gold": 0.8729, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "com/squareup/javapoet/CodeBlock.builder:()Lcom/squareup/javapoet/CodeBlock$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock$Builder.addNamed:(Ljava/lang/String;Ljava/util/Map;)Lcom/squareup/javapoet/CodeBlock$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89263f0_0d6bdeb__FileReadingTest_e8d8cc54", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89263f0462e47be5bac0298247be985ad0f4027b", "rev2": "0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "rev1_date": "2017-02-15T03:41:48Z", "rev2_date": "2017-02-15T03:54:29Z", "git_diff_url": "https://github.com/square/javapoet/compare/89263f0462e47be5bac0298247be985ad0f4027b...0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "test_file": "src/test/java/com/squareup/javapoet/FileReadingTest.java", "test_changes": [{"change_id": "1202_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_FileReadingTest", "test_sign": "com/squareup/javapoet/FileReadingTest.javaFileObjectInputStreamIsUtf8:()V", "class": "FileReadingTest", "method": "javaFileObjectInputStreamIsUtf8", "module": "", "junit_selector": "com.squareup.javapoet.FileReadingTest#javaFileObjectInputStreamIsUtf8", "old_test_code": null, "new_test_code": "@Test\npublic void javaFileObjectInputStreamIsUtf8() throws IOException {\n JavaFile javaFile = JavaFile.builder(\"foo\", TypeSpec.classBuilder(\"Test\").build()).addFileComment(\"Pi\\u00f1ata\\u00a1\").build();\n byte[] bytes = ByteStreams.toByteArray(javaFile.toJavaFileObject().openInputStream());\n assertThat(bytes).isEqualTo(javaFile.toString().getBytes(UTF_8));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-84"], "old_production_code": "@Override\npublic InputStream openInputStream() throws IOException {\n return new ByteArrayInputStream(getCharContent(true).getBytes());\n}", "new_production_code": "@Override\npublic InputStream openInputStream() throws IOException {\n return new ByteArrayInputStream(getCharContent(true).getBytes(UTF_8));\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/JavaFile.java", "focal_method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_old": "192-194", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_new": "193-195", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7931034482758621, "branch_coverage_gold": 11.214, "method_coverage_gold": 20.4724, "line_coverage_gold": 21.8767, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.build:()Lcom/squareup/javapoet/TypeSpec", "com/squareup/javapoet/JavaFile$Builder.addFileComment:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile.toJavaFileObject:()Ljavax/tools/JavaFileObject", "com/squareup/javapoet/JavaFile.toString:()Ljava/lang/String", "com/squareup/javapoet/JavaFile$Builder.build:()Lcom/squareup/javapoet/JavaFile", "com/squareup/javapoet/JavaFile.builder:(Ljava/lang/String;Lcom/squareup/javapoet/TypeSpec;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/JavaFile$2.openInputStream:()Ljava/io/InputStream", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89263f0_0d6bdeb__FileWritingTest_3252aa8d", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89263f0462e47be5bac0298247be985ad0f4027b", "rev2": "0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "rev1_date": "2017-02-15T03:41:48Z", "rev2_date": "2017-02-15T03:54:29Z", "git_diff_url": "https://github.com/square/javapoet/compare/89263f0462e47be5bac0298247be985ad0f4027b...0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "test_file": "src/test/java/com/squareup/javapoet/FileWritingTest.java", "test_changes": [{"change_id": "1212_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_FileWritingTest", "test_sign": "com/squareup/javapoet/FileWritingTest.fileIsUtf8:()V", "class": "FileWritingTest", "method": "fileIsUtf8", "module": "", "junit_selector": "com.squareup.javapoet.FileWritingTest#fileIsUtf8", "old_test_code": null, "new_test_code": "@Test\npublic void fileIsUtf8() throws IOException {\n JavaFile javaFile = JavaFile.builder(\"foo\", TypeSpec.classBuilder(\"Taco\").build()).addFileComment(\"Pi\\u00f1ata\\u00a1\").build();\n javaFile.writeTo(fsRoot);\n Path fooPath = fsRoot.resolve(fs.getPath(\"foo\", \"Taco.java\"));\n assertThat(new String(Files.readAllBytes(fooPath), UTF_8)).isEqualTo(\"\" + \"// Pi\\u00f1ata\\u00a1\\n\" + \"package foo;\\n\" + \"\\n\" + \"class Taco {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["205-218"], "old_production_code": "public void writeTo(Path directory) throws IOException {\n checkArgument(Files.notExists(directory) || Files.isDirectory(directory), \"path %s exists but is not a directory.\", directory);\n Path outputDirectory = directory;\n if (!packageName.isEmpty()) {\n for (String packageComponent : packageName.split(\"\\\\.\")) {\n outputDirectory = outputDirectory.resolve(packageComponent);\n }\n Files.createDirectories(outputDirectory);\n }\n Path outputPath = outputDirectory.resolve(typeSpec.name + \".java\");\n try (Writer writer = new OutputStreamWriter(Files.newOutputStream(outputPath))) {\n writeTo(writer);\n }\n}", "new_production_code": "public void writeTo(Path directory) throws IOException {\n checkArgument(Files.notExists(directory) || Files.isDirectory(directory), \"path %s exists but is not a directory.\", directory);\n Path outputDirectory = directory;\n if (!packageName.isEmpty()) {\n for (String packageComponent : packageName.split(\"\\\\.\")) {\n outputDirectory = outputDirectory.resolve(packageComponent);\n }\n Files.createDirectories(outputDirectory);\n }\n Path outputPath = outputDirectory.resolve(typeSpec.name + \".java\");\n try (Writer writer = new OutputStreamWriter(Files.newOutputStream(outputPath), UTF_8)) {\n writeTo(writer);\n }\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/JavaFile.java", "focal_method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_old": "85-100", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "line_nums_new": "86-101", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9230769230769231, "branch_coverage_gold": 11.6255, "method_coverage_gold": 19.4226, "line_coverage_gold": 21.9313, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec$Builder.build:()Lcom/squareup/javapoet/TypeSpec", "com/squareup/javapoet/JavaFile$Builder.addFileComment:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile.builder:(Ljava/lang/String;Lcom/squareup/javapoet/TypeSpec;)Lcom/squareup/javapoet/JavaFile$Builder", "com/squareup/javapoet/JavaFile$Builder.build:()Lcom/squareup/javapoet/JavaFile", "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/JavaFile.writeTo:(Ljava/nio/file/Path;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/JavaFile.java", "file_path_new": "src/main/java/com/squareup/javapoet/JavaFile.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89263f0_0d6bdeb__LineWrapperTest_3c511d7f", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89263f0462e47be5bac0298247be985ad0f4027b", "rev2": "0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "rev1_date": "2017-02-15T03:41:48Z", "rev2_date": "2017-02-15T03:54:29Z", "git_diff_url": "https://github.com/square/javapoet/compare/89263f0462e47be5bac0298247be985ad0f4027b...0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "test_file": "src/test/java/com/squareup/javapoet/LineWrapperTest.java", "test_changes": [{"change_id": "1198_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrapEmbeddedNewlines:()V", "class": "LineWrapperTest", "method": "wrapEmbeddedNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrapEmbeddedNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void wrapEmbeddedNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghij\\nklmn\");\n lineWrapper.append(\"opqrstuvwxy\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde\\n fghij\\nklmnopqrstuvwxy\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["110-119"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.354, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2, "class": 1.0, "tfidf": 0.0646}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.335, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.3, "class": 1.0, "tfidf": 0.01}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2808, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.0232}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.5432, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5095, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1203_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.overlyLongLinesWithoutLeadingSpace:()V", "class": "LineWrapperTest", "method": "overlyLongLinesWithoutLeadingSpace", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#overlyLongLinesWithoutLeadingSpace", "old_test_code": null, "new_test_code": "@Test\npublic void overlyLongLinesWithoutLeadingSpace() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcdefghijkl\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcdefghijkl\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-88"], "old_production_code": "", "new_production_code": "void close() throws IOException {\n if (indentLevel != -1)\n flush(false);\n closed = true;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3567, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.1176, "class": 1.0, "tfidf": 0.0336}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2972, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0588, "class": 1.0, "tfidf": 0.0469}}], "coverage_gold": 0.5555555555555556, "branch_coverage_gold": 0.5144, "method_coverage_gold": 1.3123, "line_coverage_gold": 1.4184, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1207_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrapEmbeddedNewlines:()V", "class": "LineWrapperTest", "method": "noWrapEmbeddedNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrapEmbeddedNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void noWrapEmbeddedNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\njklmn\");\n lineWrapper.append(\"opqrstuvwxy\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\njklmnopqrstuvwxy\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-108"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.351, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1818, "class": 1.0, "tfidf": 0.0646}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3305, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2727, "class": 1.0, "tfidf": 0.01}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2793, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.0232}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.3374, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.2913, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1209_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.multipleWrite:()V", "class": "LineWrapperTest", "method": "multipleWrite", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#multipleWrite", "old_test_code": null, "new_test_code": "@Test\npublic void multipleWrite() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"ab\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"cd\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"ef\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"gh\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"ij\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"kl\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"mn\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"op\");\n lineWrapper.wrappingSpace(1);\n lineWrapper.append(\"qr\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"ab cd ef\\n gh ij kl\\n mn op qr\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-68"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2944, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1538, "class": 1.0, "tfidf": 0.0934}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2872, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1538, "class": 1.0, "tfidf": 0.013}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2565, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.0769, "class": 1.0, "tfidf": 0.0056}}], "coverage_gold": 0.9565217391304348, "branch_coverage_gold": 1.749, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.6732, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1210_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrapMultipleNewlines:()V", "class": "LineWrapperTest", "method": "noWrapMultipleNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrapMultipleNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void noWrapMultipleNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\nklmnopq\\nr\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"stuvwxyz\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\nklmnopq\\nr stuvwxyz\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["121-131"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.3873, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.2273, "class": 1.0, "tfidf": 0.0618}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3515, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.3182, "class": 1.0, "tfidf": 0.0096}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.279, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.0223}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.5432, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.455, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1211_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrap:()V", "class": "LineWrapperTest", "method": "wrap", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrap", "old_test_code": null, "new_test_code": "@Test\npublic void wrap() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghij\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde\\n fghij\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-34"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2959, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.3077, "class": 1.0, "tfidf": 0.0113}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.263, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 1.0, "tfidf": 0.0676}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.1944, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.0263}}], "coverage_gold": 0.8260869565217391, "branch_coverage_gold": 1.4403, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.455, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1213_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.wrapMultipleNewlines:()V", "class": "LineWrapperTest", "method": "wrapMultipleNewlines", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#wrapMultipleNewlines", "old_test_code": null, "new_test_code": "@Test\npublic void wrapMultipleNewlines() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\\nklmnopq\\nrs\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"tuvwxyz1\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\\nklmnopq\\nrs\\n tuvwxyz1\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["133-143"], "old_production_code": "", "new_production_code": "void append(String s) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (indentLevel != -1) {\n int nextNewline = s.indexOf('\\n');\n if (nextNewline == -1 && column + s.length() <= columnLimit) {\n buffer.append(s);\n column += s.length();\n return;\n }\n boolean wrap = nextNewline == -1 || column + nextNewline > columnLimit;\n flush(wrap);\n }\n out.append(s);\n int lastNewline = s.lastIndexOf('\\n');\n column = lastNewline != -1 ? s.length() - lastNewline - 1 : column + s.length();\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.391, "signal_scores": {"nc": 0.0, "lcs_u": 0.8333, "ed": 0.25, "class": 1.0, "tfidf": 0.0618}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3567, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.35, "class": 1.0, "tfidf": 0.0096}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2805, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.1, "class": 1.0, "tfidf": 0.0223}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.9547, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.5641, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1214_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.overlyLongLinesWithLeadingSpace:()V", "class": "LineWrapperTest", "method": "overlyLongLinesWithLeadingSpace", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#overlyLongLinesWithLeadingSpace", "old_test_code": null, "new_test_code": "@Test\npublic void overlyLongLinesWithLeadingSpace() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"abcdefghijkl\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"\\n abcdefghijkl\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-97"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.3748, "signal_scores": {"nc": 0.0, "lcs_u": 0.7692, "ed": 0.2903, "class": 1.0, "tfidf": 0.0129}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3578, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.129, "class": 1.0, "tfidf": 0.0302}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2969, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.0645, "class": 1.0, "tfidf": 0.0418}}], "coverage_gold": 0.8260869565217391, "branch_coverage_gold": 1.3374, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.455, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1216_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.fencepost:()V", "class": "LineWrapperTest", "method": "fencepost", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#fencepost", "old_test_code": null, "new_test_code": "@Test\npublic void fencepost() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.append(\"fghij\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"k\");\n lineWrapper.append(\"lmnop\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcdefghij\\n klmnop\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-80"], "old_production_code": "", "new_production_code": "void close() throws IOException {\n if (indentLevel != -1)\n flush(false);\n closed = true;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.3541, "signal_scores": {"nc": 0.0, "lcs_u": 0.6, "ed": 0.3333, "class": 1.0, "tfidf": 0.0215}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2831, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1111, "class": 1.0, "tfidf": 0.0753}}, {"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2565, "signal_scores": {"nc": 0.0, "lcs_u": 0.2308, "ed": 0.1538, "class": 1.0, "tfidf": 0.0092}}], "coverage_gold": 0.8260869565217391, "branch_coverage_gold": 1.4403, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.455, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1217_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_LineWrapperTest", "test_sign": "com/squareup/javapoet/LineWrapperTest.noWrap:()V", "class": "LineWrapperTest", "method": "noWrap", "module": "", "junit_selector": "com.squareup.javapoet.LineWrapperTest#noWrap", "old_test_code": null, "new_test_code": "@Test\npublic void noWrap() throws Exception {\n StringBuffer out = new StringBuffer();\n LineWrapper lineWrapper = new LineWrapper(out, \" \", 10);\n lineWrapper.append(\"abcde\");\n lineWrapper.wrappingSpace(2);\n lineWrapper.append(\"fghi\");\n lineWrapper.close();\n assertThat(out.toString()).isEqualTo(\"abcde fghi\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-44"], "old_production_code": "", "new_production_code": "void wrappingSpace(int indentLevel) throws IOException {\n if (closed)\n throw new IllegalStateException(\"closed\");\n if (this.indentLevel != -1)\n flush(false);\n this.column++;\n this.indentLevel = indentLevel;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/LineWrapper.java", "focal_method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "76-82", "dependency_updated": "inserted", "score": 0.2705, "signal_scores": {"nc": 0.0, "lcs_u": 0.3077, "ed": 0.1538, "class": 1.0, "tfidf": 0.0113}}, {"dep_id": 1, "method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "49-73", "dependency_updated": "inserted", "score": 0.2599, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0, "class": 1.0, "tfidf": 0.0546}}, {"dep_id": 0, "method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "line_nums_new": "85-88", "dependency_updated": "inserted", "score": 0.2297, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.0, "class": 1.0, "tfidf": 0.0263}}], "coverage_gold": 0.8695652173913043, "branch_coverage_gold": 1.1317, "method_coverage_gold": 1.8373, "line_coverage_gold": 2.2913, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/LineWrapper.close:()V", "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/LineWrapper.close:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.append:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/squareup/javapoet/LineWrapper.wrappingSpace:(I)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/LineWrapper.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__89263f0_0d6bdeb__TypeSpecTest_f508a61f", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "89263f0462e47be5bac0298247be985ad0f4027b", "rev2": "0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "rev1_date": "2017-02-15T03:41:48Z", "rev2_date": "2017-02-15T03:54:29Z", "git_diff_url": "https://github.com/square/javapoet/compare/89263f0462e47be5bac0298247be985ad0f4027b...0d6bdebf124a0c0e2a52ef520231b64e98c77a64", "test_file": "src/test/java/com/squareup/javapoet/TypeSpecTest.java", "test_changes": [{"change_id": "1205_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_TypeSpecTest", "test_sign": "com/squareup/javapoet/TypeSpecTest.nullInSuperinterfaceIterableAddition:()V", "class": "TypeSpecTest", "method": "nullInSuperinterfaceIterableAddition", "module": "", "junit_selector": "com.squareup.javapoet.TypeSpecTest#nullInSuperinterfaceIterableAddition", "old_test_code": null, "new_test_code": "@Test\npublic void nullInSuperinterfaceIterableAddition() {\n List superinterfaces = new ArrayList<>();\n superinterfaces.add(TypeName.get(List.class));\n superinterfaces.add(null);\n try {\n TypeSpec.classBuilder(\"Taco\").addSuperinterfaces(superinterfaces);\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected.getMessage()).isEqualTo(\"superinterface == null\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1809-1821"], "old_production_code": "public Builder addSuperinterfaces(Iterable superinterfaces) {\n checkArgument(superinterfaces != null, \"superinterfaces == null\");\n for (TypeName superinterface : superinterfaces) {\n this.superinterfaces.add(superinterface);\n }\n return this;\n}", "new_production_code": "public Builder addSuperinterfaces(Iterable superinterfaces) {\n checkArgument(superinterfaces != null, \"superinterfaces == null\");\n for (TypeName superinterface : superinterfaces) {\n addSuperinterface(superinterface);\n }\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeSpec.java", "focal_method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_old": "454-460", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_new": "454-460", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 3.1893, "method_coverage_gold": 6.8241, "line_coverage_gold": 8.0196, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeName.get:(Ljava/lang/reflect/Type;)Lcom/squareup/javapoet/TypeName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterfaces:(Ljava/lang/Iterable;)Lcom/squareup/javapoet/TypeSpec$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1208_square_javapoet-javapoet-1.13.0-2_89263f0_0d6bdeb_TypeSpecTest", "test_sign": "com/squareup/javapoet/TypeSpecTest.nullSingleSuperinterfaceAddition:()V", "class": "TypeSpecTest", "method": "nullSingleSuperinterfaceAddition", "module": "", "junit_selector": "com.squareup.javapoet.TypeSpecTest#nullSingleSuperinterfaceAddition", "old_test_code": null, "new_test_code": "@Test\npublic void nullSingleSuperinterfaceAddition() {\n try {\n TypeSpec.classBuilder(\"Taco\").addSuperinterface((TypeName) null);\n fail();\n } catch (IllegalArgumentException expected) {\n assertThat(expected.getMessage()).isEqualTo(\"superinterface == null\");\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["1799-1807"], "old_production_code": "public Builder addSuperinterface(TypeName superinterface) {\n this.superinterfaces.add(superinterface);\n return this;\n}", "new_production_code": "public Builder addSuperinterface(TypeName superinterface) {\n checkArgument(superinterface != null, \"superinterface == null\");\n this.superinterfaces.add(superinterface);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/TypeSpec.java", "focal_method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterface:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/TypeSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterface:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/TypeSpec$Builder", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_old": "462-465", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "line_nums_new": "462-466", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 1.749, "method_coverage_gold": 6.0367, "line_coverage_gold": 6.9285, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/TypeSpec.classBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/TypeSpec$Builder", "com/squareup/javapoet/TypeSpec$Builder.addSuperinterface:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/TypeSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/TypeSpec$Builder.addSuperinterface:(Lcom/squareup/javapoet/TypeName;)Lcom/squareup/javapoet/TypeSpec$Builder", "change_type": "UPDATE", "file_path_old": "src/main/java/com/squareup/javapoet/TypeSpec.java", "file_path_new": "src/main/java/com/squareup/javapoet/TypeSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__c054ce9_d00c786__MethodSpecTest_e22b2064", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "c054ce927191205b4a870b40eecfe63dffaba0e6", "rev2": "d00c7867970e9837e6b6316cb1e4659d680c84c0", "rev1_date": "2019-02-06T15:28:46Z", "rev2_date": "2019-02-06T16:11:46Z", "git_diff_url": "https://github.com/square/javapoet/compare/c054ce927191205b4a870b40eecfe63dffaba0e6...d00c7867970e9837e6b6316cb1e4659d680c84c0", "test_file": "src/test/java/com/squareup/javapoet/MethodSpecTest.java", "test_changes": [{"change_id": "1096_square_javapoet-javapoet-1.13.0-2_c054ce9_d00c786_MethodSpecTest", "test_sign": "com/squareup/javapoet/MethodSpecTest.modifyMethodName:()V", "class": "MethodSpecTest", "method": "modifyMethodName", "module": "", "junit_selector": "com.squareup.javapoet.MethodSpecTest#modifyMethodName", "old_test_code": null, "new_test_code": "@Test\npublic void modifyMethodName() {\n MethodSpec methodSpec = MethodSpec.methodBuilder(\"initialMethod\").build().toBuilder().setName(\"revisedMethod\").build();\n assertThat(methodSpec.toString()).isEqualTo(\"\" + \"void revisedMethod() {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["360-370"], "old_production_code": "", "new_production_code": "public Builder setName(String name) {\n checkNotNull(name, \"name == null\");\n checkArgument(name.equals(CONSTRUCTOR) || SourceVersion.isName(name), \"not a valid name: %s\", name);\n this.name = name;\n this.returnType = name.equals(CONSTRUCTOR) ? null : TypeName.VOID;\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/MethodSpec.java", "focal_method_sign": "com/squareup/javapoet/MethodSpec$Builder.setName:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/MethodSpec$Builder.setName:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/MethodSpec.java", "line_nums_new": "312-319", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.29464285714285715, "branch_coverage_gold": 9.7963, "method_coverage_gold": 15.3846, "line_coverage_gold": 16.4126, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/MethodSpec$Builder.setName:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec.toBuilder:()Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/MethodSpec$Builder.setName:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/MethodSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__c93bfa8_ea7a02e__MethodSpecTest_c4373bce", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "c93bfa88c30940d4f9bda88cac322ebbb83703a6", "rev2": "ea7a02ee88f8a3aa9afd3a9268390f4f9fee4b59", "rev1_date": "2018-10-04T02:57:36Z", "rev2_date": "2018-10-04T02:59:30Z", "git_diff_url": "https://github.com/square/javapoet/compare/c93bfa88c30940d4f9bda88cac322ebbb83703a6...ea7a02ee88f8a3aa9afd3a9268390f4f9fee4b59", "test_file": "src/test/java/com/squareup/javapoet/MethodSpecTest.java", "test_changes": [{"change_id": "1251_square_javapoet-javapoet-1.13.0-2_c93bfa8_ea7a02e_MethodSpecTest", "test_sign": "com/squareup/javapoet/MethodSpecTest.withParameterJavaDoc:()V", "class": "MethodSpecTest", "method": "withParameterJavaDoc", "module": "", "junit_selector": "com.squareup.javapoet.MethodSpecTest#withParameterJavaDoc", "old_test_code": null, "new_test_code": "@Test\npublic void withParameterJavaDoc() {\n MethodSpec methodSpec = MethodSpec.methodBuilder(\"getTaco\").addParameter(ParameterSpec.builder(TypeName.DOUBLE, \"money\").addJavadoc(\"the amount required to buy the taco.\\n\").build()).addParameter(ParameterSpec.builder(TypeName.INT, \"count\").addJavadoc(\"the number of Tacos to buy.\\n\").build()).addJavadoc(\"Gets the best Taco money can buy.\\n\").build();\n assertThat(methodSpec.toString()).isEqualTo(\"\" + \"/**\\n\" + \" * Gets the best Taco money can buy.\\n\" + \" *\\n\" + \" * @param money the amount required to buy the taco.\\n\" + \" * @param count the number of Tacos to buy.\\n\" + \" */\\n\" + \"void getTaco(double money, int count) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["287-306"], "old_production_code": "", "new_production_code": "public Builder addJavadoc(String format, Object... args) {\n javadoc.add(format, args);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "focal_method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_new": "136-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8947368421052632, "branch_coverage_gold": 12.0272, "method_coverage_gold": 17.6329, "line_coverage_gold": 18.9822, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1252_square_javapoet-javapoet-1.13.0-2_c93bfa8_ea7a02e_MethodSpecTest", "test_sign": "com/squareup/javapoet/MethodSpecTest.withParameterJavaDocAndWithoutMethodJavadoc:()V", "class": "MethodSpecTest", "method": "withParameterJavaDocAndWithoutMethodJavadoc", "module": "", "junit_selector": "com.squareup.javapoet.MethodSpecTest#withParameterJavaDocAndWithoutMethodJavadoc", "old_test_code": null, "new_test_code": "@Test\npublic void withParameterJavaDocAndWithoutMethodJavadoc() {\n MethodSpec methodSpec = MethodSpec.methodBuilder(\"getTaco\").addParameter(ParameterSpec.builder(TypeName.DOUBLE, \"money\").addJavadoc(\"the amount required to buy the taco.\\n\").build()).addParameter(ParameterSpec.builder(TypeName.INT, \"count\").addJavadoc(\"the number of Tacos to buy.\\n\").build()).build();\n assertThat(methodSpec.toString()).isEqualTo(\"\" + \"/**\\n\" + \" * @param money the amount required to buy the taco.\\n\" + \" * @param count the number of Tacos to buy.\\n\" + \" */\\n\" + \"void getTaco(double money, int count) {\\n\" + \"}\\n\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["308-324"], "old_production_code": "", "new_production_code": "public Builder addJavadoc(String format, Object... args) {\n javadoc.add(format, args);\n return this;\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "focal_method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "line_nums_new": "136-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8823529411764706, "branch_coverage_gold": 11.8332, "method_coverage_gold": 17.3913, "line_coverage_gold": 18.7786, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/MethodSpec.toString:()Ljava/lang/String", "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "com/squareup/javapoet/ParameterSpec$Builder.build:()Lcom/squareup/javapoet/ParameterSpec", "com/squareup/javapoet/MethodSpec.methodBuilder:(Ljava/lang/String;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.addParameter:(Lcom/squareup/javapoet/ParameterSpec;)Lcom/squareup/javapoet/MethodSpec$Builder", "com/squareup/javapoet/MethodSpec$Builder.build:()Lcom/squareup/javapoet/MethodSpec", "com/squareup/javapoet/ParameterSpec.builder:(Lcom/squareup/javapoet/TypeName;Ljava/lang/String;[Ljavax/lang/model/element/Modifier;)Lcom/squareup/javapoet/ParameterSpec$Builder"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/ParameterSpec$Builder.addJavadoc:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/ParameterSpec$Builder", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/ParameterSpec.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "square_javapoet-javapoet-1.13.0-2__ca0e12e_563cf74__CodeBlockTest_dc12de44", "project_name": "square_javapoet-javapoet-1.13.0-2", "git_clone_url": "https://github.com/square/javapoet.git", "rev1": "ca0e12e93e8ef9e1666573e4dc635064cb8d3ab1", "rev2": "563cf74b4d699c4d63219cc33e9c095f73d8fbec", "rev1_date": "2018-01-27T03:16:20Z", "rev2_date": "2018-01-27T03:20:23Z", "git_diff_url": "https://github.com/square/javapoet/compare/ca0e12e93e8ef9e1666573e4dc635064cb8d3ab1...563cf74b4d699c4d63219cc33e9c095f73d8fbec", "test_file": "src/test/java/com/squareup/javapoet/CodeBlockTest.java", "test_changes": [{"change_id": "1071_square_javapoet-javapoet-1.13.0-2_ca0e12e_563cf74_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.joiningWithPrefixAndSuffix:()V", "class": "CodeBlockTest", "method": "joiningWithPrefixAndSuffix", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#joiningWithPrefixAndSuffix", "old_test_code": null, "new_test_code": "@Test\npublic void joiningWithPrefixAndSuffix() {\n List codeBlocks = new ArrayList<>();\n codeBlocks.add(CodeBlock.of(\"$S\", \"hello\"));\n codeBlocks.add(CodeBlock.of(\"$T\", ClassName.get(\"world\", \"World\")));\n codeBlocks.add(CodeBlock.of(\"need tacos\"));\n CodeBlock joined = codeBlocks.stream().collect(CodeBlock.joining(\" || \", \"start {\", \"} end\"));\n assertThat(joined.toString()).isEqualTo(\"start {\\\"hello\\\" || world.World || need tacos} end\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["325-333"], "old_production_code": "", "new_production_code": "public static Collector joining(String separator, String prefix, String suffix) {\n Builder builder = builder().add(\"$N\", prefix);\n return Collector.of(() -> new CodeBlockJoiner(separator, builder), CodeBlockJoiner::add, CodeBlockJoiner::merge, joiner -> {\n builder.add(CodeBlock.of(\"$N\", suffix));\n return joiner.join();\n });\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Collector", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Collector", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "135-146", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8461538461538461, "branch_coverage_gold": 8.9447, "method_coverage_gold": 13.3166, "line_coverage_gold": 13.6864, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock.of:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Collector", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String", "com/squareup/javapoet/ClassName.get:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lcom/squareup/javapoet/ClassName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/stream/Collector", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1072_square_javapoet-javapoet-1.13.0-2_ca0e12e_563cf74_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.joiningSingle:()V", "class": "CodeBlockTest", "method": "joiningSingle", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#joiningSingle", "old_test_code": null, "new_test_code": "@Test\npublic void joiningSingle() {\n List codeBlocks = new ArrayList<>();\n codeBlocks.add(CodeBlock.of(\"$S\", \"hello\"));\n CodeBlock joined = codeBlocks.stream().collect(CodeBlock.joining(\" || \"));\n assertThat(joined.toString()).isEqualTo(\"\\\"hello\\\"\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["317-323"], "old_production_code": "", "new_production_code": "public static Collector joining(String separator) {\n return Collector.of(() -> new CodeBlockJoiner(separator, builder()), CodeBlockJoiner::add, CodeBlockJoiner::merge, CodeBlockJoiner::join);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "122-128", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7142857142857143, "branch_coverage_gold": 4.6231, "method_coverage_gold": 7.7889, "line_coverage_gold": 7.6036, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock.of:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String", "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1073_square_javapoet-javapoet-1.13.0-2_ca0e12e_563cf74_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.joining:()V", "class": "CodeBlockTest", "method": "joining", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#joining", "old_test_code": null, "new_test_code": "@Test\npublic void joining() {\n List codeBlocks = new ArrayList<>();\n codeBlocks.add(CodeBlock.of(\"$S\", \"hello\"));\n codeBlocks.add(CodeBlock.of(\"$T\", ClassName.get(\"world\", \"World\")));\n codeBlocks.add(CodeBlock.of(\"need tacos\"));\n CodeBlock joined = codeBlocks.stream().collect(CodeBlock.joining(\" || \"));\n assertThat(joined.toString()).isEqualTo(\"\\\"hello\\\" || world.World || need tacos\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["307-315"], "old_production_code": "", "new_production_code": "public static Collector joining(String separator) {\n return Collector.of(() -> new CodeBlockJoiner(separator, builder()), CodeBlockJoiner::add, CodeBlockJoiner::merge, CodeBlockJoiner::join);\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "122-128", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 8.6432, "method_coverage_gold": 12.8141, "line_coverage_gold": 13.2669, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock.of:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String", "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "com/squareup/javapoet/ClassName.get:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lcom/squareup/javapoet/ClassName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock.joining:(Ljava/lang/String;)Ljava/util/stream/Collector", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1074_square_javapoet-javapoet-1.13.0-2_ca0e12e_563cf74_CodeBlockTest", "test_sign": "com/squareup/javapoet/CodeBlockTest.join:()V", "class": "CodeBlockTest", "method": "join", "module": "", "junit_selector": "com.squareup.javapoet.CodeBlockTest#join", "old_test_code": null, "new_test_code": "@Test\npublic void join() {\n List codeBlocks = new ArrayList<>();\n codeBlocks.add(CodeBlock.of(\"$S\", \"hello\"));\n codeBlocks.add(CodeBlock.of(\"$T\", ClassName.get(\"world\", \"World\")));\n codeBlocks.add(CodeBlock.of(\"need tacos\"));\n CodeBlock joined = CodeBlock.join(codeBlocks, \" || \");\n assertThat(joined.toString()).isEqualTo(\"\\\"hello\\\" || world.World || need tacos\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["297-305"], "old_production_code": "", "new_production_code": "public static CodeBlock join(Iterable codeBlocks, String separator) {\n return StreamSupport.stream(codeBlocks.spliterator(), false).collect(joining(separator));\n}", "focal_file_path": "src/main/java/com/squareup/javapoet/CodeBlock.java", "focal_method_sign": "com/squareup/javapoet/CodeBlock.join:(Ljava/lang/Iterable;Ljava/lang/String;)Lcom/squareup/javapoet/CodeBlock", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/squareup/javapoet/CodeBlock.join:(Ljava/lang/Iterable;Ljava/lang/String;)Lcom/squareup/javapoet/CodeBlock", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "line_nums_new": "113-115", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 8.6432, "method_coverage_gold": 13.0653, "line_coverage_gold": 13.3193, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/squareup/javapoet/CodeBlock.of:(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock.join:(Ljava/lang/Iterable;Ljava/lang/String;)Lcom/squareup/javapoet/CodeBlock", "com/squareup/javapoet/CodeBlock.toString:()Ljava/lang/String", "com/squareup/javapoet/ClassName.get:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Lcom/squareup/javapoet/ClassName"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/squareup/javapoet/CodeBlock.join:(Ljava/lang/Iterable;Ljava/lang/String;)Lcom/squareup/javapoet/CodeBlock", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/squareup/javapoet/CodeBlock.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "javapoet-1.13.0-2", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__146705c_84c4c5f__TransitionActionTests_6522b088", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "146705cd70925227317ee55c875f4d6440ceb4c9", "rev2": "84c4c5f9a1004ddbd343b3f8ba4b538db175277b", "rev1_date": "2016-06-09T13:33:59Z", "rev2_date": "2016-06-09T21:04:06Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/146705cd70925227317ee55c875f4d6440ceb4c9...84c4c5f9a1004ddbd343b3f8ba4b538db175277b", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitionActionTests.java", "test_changes": [{"change_id": "325_stateless4j_stateless4j-stateless4j-2.6.0_146705c_84c4c5f_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.TransitionActionIsPerformedBetweenExitAndEntry:()V", "class": "TransitionActionTests", "method": "TransitionActionIsPerformedBetweenExitAndEntry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#TransitionActionIsPerformedBetweenExitAndEntry", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionActionIsPerformedBetweenExitAndEntry() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n Action exitAction = new CountingAction(list, new Integer(1));\n Action transitionAction = new CountingAction(list, new Integer(2));\n Action entryAction = new CountingAction(list, new Integer(3));\n config.configure(State.A).onExit(exitAction).permit(Trigger.Z, State.B, transitionAction);\n config.configure(State.B).onEntry(entryAction);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.B, sm.getState());\n assertEquals(3, list.size());\n assertEquals(new Integer(1), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(3), list.get(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-89"], "old_production_code": "", "new_production_code": "public StateConfiguration permit(T trigger, S destinationState, final Action action) {\n enforceNotIdentityTransition(destinationState);\n return publicPermit(trigger, destinationState, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "55-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 13.8298, "method_coverage_gold": 38.7283, "line_coverage_gold": 39.9061, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["a14d1ab53e364d08c55e2bf9d1e7ee6d93d18588"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onExit:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__146705c_a14d1ab__TransitionActionTests_37f1b5dd", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "146705cd70925227317ee55c875f4d6440ceb4c9", "rev2": "a14d1ab53e364d08c55e2bf9d1e7ee6d93d18588", "rev1_date": "2016-06-09T13:33:59Z", "rev2_date": "2016-06-09T21:03:02Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/146705cd70925227317ee55c875f4d6440ceb4c9...a14d1ab53e364d08c55e2bf9d1e7ee6d93d18588", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitionActionTests.java", "test_changes": [{"change_id": "295_stateless4j_stateless4j-stateless4j-2.6.0_146705c_a14d1ab_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.TransitionActionIsPerformedBetweenExitAndEntry:()V", "class": "TransitionActionTests", "method": "TransitionActionIsPerformedBetweenExitAndEntry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#TransitionActionIsPerformedBetweenExitAndEntry", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionActionIsPerformedBetweenExitAndEntry() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n Action exitAction = new CountingAction(list, new Integer(1));\n Action transitionAction = new CountingAction(list, new Integer(2));\n Action entryAction = new CountingAction(list, new Integer(3));\n config.disableEntryActionOfInitialState();\n config.configure(State.A).onExit(exitAction).permit(Trigger.Z, State.B, transitionAction);\n config.configure(State.B).onEntry(entryAction);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.B, sm.getState());\n assertEquals(3, list.size());\n assertEquals(new Integer(1), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(3), list.get(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-90"], "old_production_code": "", "new_production_code": "public StateConfiguration permit(T trigger, S destinationState, final Action action) {\n enforceNotIdentityTransition(destinationState);\n return publicPermit(trigger, destinationState, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "55-58", "dependency_updated": "inserted", "score": 0.2255, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1304, "class": 0.0, "tfidf": 0.1171}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "file_path_old": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "line_nums_old": "61-63", "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "line_nums_new": "61-63", "dependency_updated": "updated", "score": 0.1185, "signal_scores": {"nc": 0.0, "lcs_u": 0.4688, "ed": 0.2174, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9411764705882353, "branch_coverage_gold": 14.3617, "method_coverage_gold": 39.7661, "line_coverage_gold": 41.2736, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onExit:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "296_stateless4j_stateless4j-stateless4j-2.6.0_146705c_a14d1ab_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.ActionWithNegativeGuardIsNotPerformed:()V", "class": "TransitionActionTests", "method": "ActionWithNegativeGuardIsNotPerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#ActionWithNegativeGuardIsNotPerformed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void ActionWithNegativeGuardIsNotPerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitIf(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnFalse, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-119"], "old_production_code": "", "new_production_code": "public StateConfiguration permitIf(T trigger, S destinationState, FuncBoolean guard, Action action) {\n enforceNotIdentityTransition(destinationState);\n return publicPermitIf(trigger, destinationState, guard, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "86-89", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 7.9787, "method_coverage_gold": 21.6374, "line_coverage_gold": 21.4623, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__263ff64_519dcce__TraceTests_6a3a09c0", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "263ff648ac77eb1b4123830c0782170cddb782a0", "rev2": "519dcceb43a93a8437dcfa28ae8dd5cd0426d5a7", "rev1_date": "2019-09-12T22:08:09Z", "rev2_date": "2019-09-12T23:37:17Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/263ff648ac77eb1b4123830c0782170cddb782a0...519dcceb43a93a8437dcfa28ae8dd5cd0426d5a7", "test_file": "src/test/java/com/github/oxo42/stateless4j/TraceTests.java", "test_changes": [{"change_id": "329_stateless4j_stateless4j-stateless4j-2.6.0_263ff64_519dcce_TraceTests", "test_sign": "com/github/oxo42/stateless4j/TraceTests.traceDelegateCanBeDisabled:()V", "class": "TraceTests", "method": "traceDelegateCanBeDisabled", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TraceTests#traceDelegateCanBeDisabled", "old_test_code": null, "new_test_code": "@Test\npublic void traceDelegateCanBeDisabled() {\n fsm.setTrace(null);\n fsm.fire(Trigger.NEXT);\n assertEquals(State.BRAVO, fsm.getState());\n verify(trace, never()).trigger(any(Trigger.class));\n verify(trace, never()).transition(any(Trigger.class), any(State.class), any(State.class));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-93"], "old_production_code": "", "new_production_code": "public void setTrace(Trace trace) {\n this.trace = trace;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.setTrace:(Lcom/github/oxo42/stateless4j/delegates/Trace;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.setTrace:(Lcom/github/oxo42/stateless4j/delegates/Trace;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "272-274", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 11.0169, "method_coverage_gold": 25.1121, "line_coverage_gold": 27.8846, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.setTrace:(Lcom/github/oxo42/stateless4j/delegates/Trace;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.setTrace:(Lcom/github/oxo42/stateless4j/delegates/Trace;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__3c4bf5a_4a3dfe6__InternalTransitionActionTests_84f2abea", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "3c4bf5a34cb7678cea60cccf7d63c090f487622a", "rev2": "4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "rev1_date": "2016-06-13T14:23:32Z", "rev2_date": "2016-06-13T14:50:28Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/3c4bf5a34cb7678cea60cccf7d63c090f487622a...4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "test_file": "src/test/java/com/github/oxo42/stateless4j/InternalTransitionActionTests.java", "test_changes": [{"change_id": "390_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_4a3dfe6_InternalTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/InternalTransitionActionTests.MultipleInternalActionsWithSameTriggerNotAllowed:()V", "class": "InternalTransitionActionTests", "method": "MultipleInternalActionsWithSameTriggerNotAllowed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTransitionActionTests#MultipleInternalActionsWithSameTriggerNotAllowed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void MultipleInternalActionsWithSameTriggerNotAllowed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action1 = new TripwireAction();\n TripwireAction action2 = new TripwireAction();\n config.configure(State.A).permitInternal(Trigger.X, action1).permitInternal(Trigger.X, action2);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-109"], "old_production_code": "", "new_production_code": "public StateConfiguration permitInternal(T trigger, Action action) {\n return permitInternalIf(trigger, NO_GUARD, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "107-109", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 5.2885, "method_coverage_gold": 16.9903, "line_coverage_gold": 17.0124, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "392_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_4a3dfe6_InternalTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/InternalTransitionActionTests.ActionWithNegativeGuardIsNotPerformed:()V", "class": "InternalTransitionActionTests", "method": "ActionWithNegativeGuardIsNotPerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTransitionActionTests#ActionWithNegativeGuardIsNotPerformed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void ActionWithNegativeGuardIsNotPerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitInternalIf(Trigger.X, IgnoredTriggerBehaviourTests.returnFalse, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-94"], "old_production_code": "", "new_production_code": "public StateConfiguration permitInternalIf(T trigger, FuncBoolean guard, Action action) {\n assert guard != null : \"guard is null\";\n assert action != null : \"action is null\";\n representation.addTriggerBehaviour(new InternalTriggerBehaviour(trigger, guard, action));\n return this;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "127-133", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.625, "branch_coverage_gold": 6.7308, "method_coverage_gold": 17.4757, "line_coverage_gold": 18.0498, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__3c4bf5a_4a3dfe6__InternalTriggerBehaviourTests_e563ed3c", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "3c4bf5a34cb7678cea60cccf7d63c090f487622a", "rev2": "4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "rev1_date": "2016-06-13T14:23:32Z", "rev2_date": "2016-06-13T14:50:28Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/3c4bf5a34cb7678cea60cccf7d63c090f487622a...4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "test_file": "src/test/java/com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.java", "test_changes": [{"change_id": "391_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_4a3dfe6_InternalTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.TransitionIsInternal:()V", "class": "InternalTriggerBehaviourTests", "method": "TransitionIsInternal", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTriggerBehaviourTests#TransitionIsInternal", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionIsInternal() {\n InternalTriggerBehaviour ignored = new InternalTriggerBehaviour<>(Trigger.X, returnTrue, nopAction);\n assertTrue(ignored.isInternal());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-67"], "old_production_code": "", "new_production_code": "@Override\npublic boolean isInternal() {\n return true;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "line_nums_new": "20-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.4563, "line_coverage_gold": 1.6598, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "395_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_4a3dfe6_InternalTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.StateRemainsUnchanged:()V", "class": "InternalTriggerBehaviourTests", "method": "StateRemainsUnchanged", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTriggerBehaviourTests#StateRemainsUnchanged", "old_test_code": null, "new_test_code": "@Test\npublic void StateRemainsUnchanged() {\n InternalTriggerBehaviour ignored = new InternalTriggerBehaviour<>(Trigger.X, returnTrue, nopAction);\n OutVar out = new OutVar<>();\n ignored.resultsInTransitionFrom(State.B, new Object[0], out);\n assertEquals(State.B, out.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-43"], "old_production_code": "", "new_production_code": "@Override\npublic boolean resultsInTransitionFrom(S source, Object[] args, OutVar dest) {\n dest.set(source);\n return true;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;Lcom/github/oxo42/stateless4j/OutVar;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;Lcom/github/oxo42/stateless4j/OutVar;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "line_nums_new": "25-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.9126, "line_coverage_gold": 2.6971, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/OutVar.get:()Ljava/lang/Object", "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;Lcom/github/oxo42/stateless4j/OutVar;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;Lcom/github/oxo42/stateless4j/OutVar;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__3c4bf5a_4a3dfe6__TransitioningTriggerBehaviourTests_9102eb6b", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "3c4bf5a34cb7678cea60cccf7d63c090f487622a", "rev2": "4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "rev1_date": "2016-06-13T14:23:32Z", "rev2_date": "2016-06-13T14:50:28Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/3c4bf5a34cb7678cea60cccf7d63c090f487622a...4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.java", "test_changes": [{"change_id": "394_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_4a3dfe6_TransitioningTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.TransitionIsExternal:()V", "class": "TransitioningTriggerBehaviourTests", "method": "TransitionIsExternal", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitioningTriggerBehaviourTests#TransitionIsExternal", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionIsExternal() {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour<>(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnTrue, IgnoredTriggerBehaviourTests.nopAction);\n assertFalse(transtioning.isInternal());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-29"], "old_production_code": "", "new_production_code": "public boolean isInternal() {\n return false;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "22-24", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.4563, "line_coverage_gold": 1.8672, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__3c4bf5a_57c2134__InternalTransitionActionTests_dedccd21", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "3c4bf5a34cb7678cea60cccf7d63c090f487622a", "rev2": "57c2134c01d9d66e19410f0322c8ca9a9f362ca5", "rev1_date": "2016-06-13T14:23:32Z", "rev2_date": "2016-06-13T15:16:57Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/3c4bf5a34cb7678cea60cccf7d63c090f487622a...57c2134c01d9d66e19410f0322c8ca9a9f362ca5", "test_file": "src/test/java/com/github/oxo42/stateless4j/InternalTransitionActionTests.java", "test_changes": [{"change_id": "326_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_57c2134_InternalTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/InternalTransitionActionTests.ActionWithNegativeGuardIsNotPerformed:()V", "class": "InternalTransitionActionTests", "method": "ActionWithNegativeGuardIsNotPerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTransitionActionTests#ActionWithNegativeGuardIsNotPerformed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void ActionWithNegativeGuardIsNotPerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitInternalIf(Trigger.X, InternalTriggerBehaviourTests.returnFalse, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-94"], "old_production_code": "", "new_production_code": "public StateConfiguration permitInternalIf(T trigger, FuncBoolean guard, Action action) {\n assert guard != null : \"guard is null\";\n assert action != null : \"action is null\";\n representation.addTriggerBehaviour(new InternalTriggerBehaviour(trigger, guard, action));\n return this;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "127-133", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.625, "branch_coverage_gold": 6.7961, "method_coverage_gold": 18.0905, "line_coverage_gold": 18.6695, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__3c4bf5a_57c2134__TransitioningTriggerBehaviourTests_9102eb6b", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "3c4bf5a34cb7678cea60cccf7d63c090f487622a", "rev2": "57c2134c01d9d66e19410f0322c8ca9a9f362ca5", "rev1_date": "2016-06-13T14:23:32Z", "rev2_date": "2016-06-13T15:16:57Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/3c4bf5a34cb7678cea60cccf7d63c090f487622a...57c2134c01d9d66e19410f0322c8ca9a9f362ca5", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.java", "test_changes": [{"change_id": "327_stateless4j_stateless4j-stateless4j-2.6.0_3c4bf5a_57c2134_TransitioningTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.TransitionIsExternal:()V", "class": "TransitioningTriggerBehaviourTests", "method": "TransitionIsExternal", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitioningTriggerBehaviourTests#TransitionIsExternal", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionIsExternal() {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour<>(Trigger.X, State.C, InternalTriggerBehaviourTests.returnTrue, InternalTriggerBehaviourTests.nopAction);\n assertFalse(transtioning.isInternal());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-17"], "old_production_code": "", "new_production_code": "public boolean isInternal() {\n return false;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "21-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.5075, "line_coverage_gold": 1.9313, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["4a3dfe6a2e65b85ac742a4b7c5fcda1fb25e8354"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__DynamicTransitionActionTests_57243123", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/DynamicTransitionActionTests.java", "test_changes": [{"change_id": "304_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_DynamicTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/DynamicTransitionActionTests.GuardedDynamicTransitionActionsArePerformed:()V", "class": "DynamicTransitionActionTests", "method": "GuardedDynamicTransitionActionsArePerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.DynamicTransitionActionTests#GuardedDynamicTransitionActionsArePerformed", "old_test_code": null, "new_test_code": "@Test\npublic void GuardedDynamicTransitionActionsArePerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n FixedAccumulator actionZero = new FixedAccumulator(list, new Integer(0));\n AccumulatingAction actionOne = new AccumulatingAction(list);\n AccumulatingAction actionTwo = new AccumulatingAction(list);\n AccumulatingAction actionThree = new AccumulatingAction(list);\n config.configure(State.A).permitDynamicIf(Trigger.X, gotoB, InternalTriggerBehaviourTests.returnTrue, actionZero).permitDynamicIf(TriggerY2, gotoB, InternalTriggerBehaviourTests.returnTrue, actionTwo);\n config.configure(State.B).permitDynamicIf(TriggerX1, gotoA, InternalTriggerBehaviourTests.returnTrue, actionOne).permitDynamicIf(TriggerY3, gotoA, InternalTriggerBehaviourTests.returnTrue, actionThree);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n sm.fire(TriggerX1, new Integer(3));\n sm.fire(TriggerY2, new Integer(6), new Integer(9));\n sm.fire(TriggerY3, new Integer(12), new Integer(15), new Integer(18));\n assertEquals(State.A, sm.getState());\n assertEquals(7, list.size());\n assertEquals(new Integer(0), list.get(0));\n assertEquals(new Integer(3), list.get(1));\n assertEquals(new Integer(6), list.get(2));\n assertEquals(new Integer(9), list.get(3));\n assertEquals(new Integer(12), list.get(4));\n assertEquals(new Integer(15), list.get(5));\n assertEquals(new Integer(18), list.get(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["151-183"], "old_production_code": "", "new_production_code": "public StateConfiguration permitDynamicIf(TriggerWithParameters1 trigger, final Func2 destinationStateSelector, FuncBoolean guard, final Action1 action) {\n assert trigger != null : \"trigger is null\";\n assert destinationStateSelector != null : \"destinationStateSelector is null\";\n return publicPermitDynamicIf(trigger.getTrigger(), new Func2() {\n\n @SuppressWarnings(\"unchecked\")\n @Override\n public S call(Object[] args) {\n return destinationStateSelector.call((TArg0) args[0]);\n }\n }, guard, new Action1() {\n\n @SuppressWarnings(\"unchecked\")\n @Override\n public void doIt(Object[] args) {\n action.doIt((TArg0) args[0]);\n }\n });\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "710-731", "dependency_updated": "inserted", "score": 0.1618, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0247}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "778-803", "dependency_updated": "inserted", "score": 0.161, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0212}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "652-667", "dependency_updated": "inserted", "score": 0.1609, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0211}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "854-881", "dependency_updated": "inserted", "score": 0.1603, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0184}}], "coverage_gold": 0.9772727272727273, "branch_coverage_gold": 10.9524, "method_coverage_gold": 39.5, "line_coverage_gold": 40.0, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "306_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_DynamicTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/DynamicTransitionActionTests.UnguardedDynamicTransitionActionsArePerformed:()V", "class": "DynamicTransitionActionTests", "method": "UnguardedDynamicTransitionActionsArePerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.DynamicTransitionActionTests#UnguardedDynamicTransitionActionsArePerformed", "old_test_code": null, "new_test_code": "@Test\npublic void UnguardedDynamicTransitionActionsArePerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n FixedAccumulator actionZero = new FixedAccumulator(list, new Integer(0));\n AccumulatingAction actionOne = new AccumulatingAction(list);\n AccumulatingAction actionTwo = new AccumulatingAction(list);\n AccumulatingAction actionThree = new AccumulatingAction(list);\n config.configure(State.A).permitDynamic(Trigger.X, gotoB, actionZero).permitDynamic(TriggerY2, gotoB, actionTwo);\n config.configure(State.B).permitDynamic(TriggerX1, gotoA, actionOne).permitDynamic(TriggerY3, gotoA, actionThree);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n sm.fire(TriggerX1, new Integer(2));\n sm.fire(TriggerY2, new Integer(4), new Integer(6));\n sm.fire(TriggerY3, new Integer(8), new Integer(10), new Integer(12));\n assertEquals(State.A, sm.getState());\n assertEquals(7, list.size());\n assertEquals(new Integer(0), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(4), list.get(2));\n assertEquals(new Integer(6), list.get(3));\n assertEquals(new Integer(8), list.get(4));\n assertEquals(new Integer(10), list.get(5));\n assertEquals(new Integer(12), list.get(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-149"], "old_production_code": "", "new_production_code": "public StateConfiguration permitDynamic(T trigger, final Func destinationStateSelector, Action action) {\n return permitDynamicIf(trigger, destinationStateSelector, NO_GUARD, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "508-510", "dependency_updated": "inserted", "score": 0.1475, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.041}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "539-542", "dependency_updated": "inserted", "score": 0.1454, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.0318}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "576-580", "dependency_updated": "inserted", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.026}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "614-618", "dependency_updated": "inserted", "score": 0.1432, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.0226}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 10.9524, "method_coverage_gold": 42.0, "line_coverage_gold": 41.0638, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__InitialStateTests_af4c69df", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/InitialStateTests.java", "test_changes": [{"change_id": "316_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_InitialStateTests", "test_sign": "com/github/oxo42/stateless4j/InitialStateTests.testInitialStateEntryActionNotExecutedIfDisabled:()V", "class": "InitialStateTests", "method": "testInitialStateEntryActionNotExecutedIfDisabled", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InitialStateTests#testInitialStateEntryActionNotExecutedIfDisabled", "old_test_code": null, "new_test_code": "@Test\npublic void testInitialStateEntryActionNotExecutedIfDisabled() {\n final State initial = State.B;\n StateMachineConfig config = config(initial);\n config.disableEntryActionOfInitialState();\n StateMachine sm = new StateMachine<>(initial, config);\n assertEquals(initial, sm.getState());\n assertFalse(executed);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-38"], "old_production_code": "public void disableEntryActionOfInitialState() {\n this.entryActionOfInitialStateEnabled = true;\n}", "new_production_code": "public void disableEntryActionOfInitialState() {\n this.entryActionOfInitialStateEnabled = false;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "file_path_old": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "line_nums_old": "61-63", "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "line_nums_new": "61-63", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.9524, "method_coverage_gold": 14.0, "line_coverage_gold": 11.7021, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "com/github/oxo42/stateless4j/InitialStateTests.config:(Lcom/github/oxo42/stateless4j/State;)Lcom/github/oxo42/stateless4j/StateMachineConfig", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachineConfig.disableEntryActionOfInitialState:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachineConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__InternalTransitionActionTests_84f2abea", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/InternalTransitionActionTests.java", "test_changes": [{"change_id": "305_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_InternalTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/InternalTransitionActionTests.MultipleInternalActionsWithSameTriggerNotAllowed:()V", "class": "InternalTransitionActionTests", "method": "MultipleInternalActionsWithSameTriggerNotAllowed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTransitionActionTests#MultipleInternalActionsWithSameTriggerNotAllowed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void MultipleInternalActionsWithSameTriggerNotAllowed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action1 = new TripwireAction();\n TripwireAction action2 = new TripwireAction();\n config.configure(State.A).permitInternal(Trigger.X, action1).permitInternal(Trigger.X, action2);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-109"], "old_production_code": "", "new_production_code": "public StateConfiguration permitInternal(T trigger, Action action) {\n return permitInternalIf(trigger, NO_GUARD, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "113-115", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.4, "branch_coverage_gold": 5.2381, "method_coverage_gold": 17.5, "line_coverage_gold": 17.4468, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternal:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "309_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_InternalTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/InternalTransitionActionTests.ActionWithNegativeGuardIsNotPerformed:()V", "class": "InternalTransitionActionTests", "method": "ActionWithNegativeGuardIsNotPerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTransitionActionTests#ActionWithNegativeGuardIsNotPerformed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void ActionWithNegativeGuardIsNotPerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitInternalIf(Trigger.X, InternalTriggerBehaviourTests.returnFalse, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["83-94"], "old_production_code": "", "new_production_code": "public StateConfiguration permitInternalIf(T trigger, FuncBoolean guard, Action action) {\n assert guard != null : \"guard is null\";\n assert action != null : \"action is null\";\n representation.addTriggerBehaviour(new InternalTriggerBehaviour(trigger, guard, action));\n return this;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "133-139", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.625, "branch_coverage_gold": 6.6667, "method_coverage_gold": 18.0, "line_coverage_gold": 18.5106, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitInternalIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__InternalTriggerBehaviourTests_e563ed3c", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.java", "test_changes": [{"change_id": "307_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_InternalTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.TransitionIsInternal:()V", "class": "InternalTriggerBehaviourTests", "method": "TransitionIsInternal", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTriggerBehaviourTests#TransitionIsInternal", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionIsInternal() {\n InternalTriggerBehaviour ignored = new InternalTriggerBehaviour<>(Trigger.X, returnTrue, nopAction);\n assertTrue(ignored.isInternal());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-66"], "old_production_code": "", "new_production_code": "@Override\npublic boolean isInternal() {\n return true;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "line_nums_new": "19-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.5, "line_coverage_gold": 1.7021, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.isInternal:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "317_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_InternalTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/InternalTriggerBehaviourTests.StateRemainsUnchanged:()V", "class": "InternalTriggerBehaviourTests", "method": "StateRemainsUnchanged", "module": "", "junit_selector": "com.github.oxo42.stateless4j.InternalTriggerBehaviourTests#StateRemainsUnchanged", "old_test_code": null, "new_test_code": "@Test\npublic void StateRemainsUnchanged() {\n InternalTriggerBehaviour ignored = new InternalTriggerBehaviour<>(Trigger.X, returnTrue, nopAction);\n State target = ignored.transitionsTo(State.B, new Object[0]);\n assertEquals(State.B, target);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-42"], "old_production_code": "", "new_production_code": "@Override\npublic S transitionsTo(S source, Object[] args) {\n return source;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.transitionsTo:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.transitionsTo:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "line_nums_new": "24-27", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.5, "line_coverage_gold": 1.7021, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.transitionsTo:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.transitionsTo:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/InternalTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__TransitionActionTests_a683b507", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitionActionTests.java", "test_changes": [{"change_id": "308_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.TransitionActionIsPerformedBetweenExitAndEntry:()V", "class": "TransitionActionTests", "method": "TransitionActionIsPerformedBetweenExitAndEntry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#TransitionActionIsPerformedBetweenExitAndEntry", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionActionIsPerformedBetweenExitAndEntry() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n Action exitAction = new CountingAction(list, new Integer(1));\n Action transitionAction = new CountingAction(list, new Integer(2));\n Action entryAction = new CountingAction(list, new Integer(3));\n config.configure(State.A).onExit(exitAction).permit(Trigger.Z, State.B, transitionAction);\n config.configure(State.B).onEntry(entryAction);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.B, sm.getState());\n assertEquals(3, list.size());\n assertEquals(new Integer(1), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(3), list.get(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-89"], "old_production_code": "", "new_production_code": "public StateConfiguration permit(T trigger, S destinationState, final Action action) {\n enforceNotIdentityTransition(destinationState);\n return publicPermit(trigger, destinationState, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "66-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9333333333333333, "branch_coverage_gold": 12.381, "method_coverage_gold": 33.0, "line_coverage_gold": 35.5319, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateConfiguration.onExit:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "310_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.ActionWithNegativeGuardIsNotPerformed:()V", "class": "TransitionActionTests", "method": "ActionWithNegativeGuardIsNotPerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#ActionWithNegativeGuardIsNotPerformed", "old_test_code": null, "new_test_code": "@Test(expected = IllegalStateException.class)\npublic void ActionWithNegativeGuardIsNotPerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitIf(Trigger.X, State.C, InternalTriggerBehaviourTests.returnFalse, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["107-118"], "old_production_code": "", "new_production_code": "public StateConfiguration permitIf(T trigger, S destinationState, FuncBoolean guard, Action action) {\n enforceNotIdentityTransition(destinationState);\n return publicPermitIf(trigger, destinationState, guard, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "97-100", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 7.1429, "method_coverage_gold": 19.0, "line_coverage_gold": 19.5745, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "322_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.ReentryActionIsPerformedBetweenExitAndEntry:()V", "class": "TransitionActionTests", "method": "ReentryActionIsPerformedBetweenExitAndEntry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#ReentryActionIsPerformedBetweenExitAndEntry", "old_test_code": null, "new_test_code": "@Test\npublic void ReentryActionIsPerformedBetweenExitAndEntry() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n Action entryAction = new CountingAction(list, new Integer(3));\n Action transitionAction = new CountingAction(list, new Integer(2));\n Action exitAction = new CountingAction(list, new Integer(1));\n config.configure(State.A).onEntry(entryAction).onExit(exitAction).permitReentry(Trigger.Z, transitionAction);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.A, sm.getState());\n assertEquals(3, list.size());\n assertEquals(new Integer(1), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(3), list.get(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["155-178"], "old_production_code": "", "new_production_code": "public StateConfiguration permitReentry(T trigger, Action action) {\n return publicPermit(trigger, representation.getUnderlyingState(), action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "169-171", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 9.5238, "method_coverage_gold": 32.0, "line_coverage_gold": 33.617, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateConfiguration.onExit:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__6b6dd4a_7024c77__TransitioningTriggerBehaviourTests_9102eb6b", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b", "rev2": "7024c77da6e879210442dfc38327f1aac8d00916", "rev1_date": "2018-02-27T20:36:11Z", "rev2_date": "2018-02-27T20:52:59Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/6b6dd4a788a4eb9d3e0542634cf1fc587d1fb58b...7024c77da6e879210442dfc38327f1aac8d00916", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.java", "test_changes": [{"change_id": "313_stateless4j_stateless4j-stateless4j-2.6.0_6b6dd4a_7024c77_TransitioningTriggerBehaviourTests", "test_sign": "com/github/oxo42/stateless4j/TransitioningTriggerBehaviourTests.TransitionIsExternal:()V", "class": "TransitioningTriggerBehaviourTests", "method": "TransitionIsExternal", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitioningTriggerBehaviourTests#TransitionIsExternal", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionIsExternal() {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour<>(Trigger.X, State.C, InternalTriggerBehaviourTests.returnTrue, InternalTriggerBehaviourTests.nopAction);\n assertFalse(transtioning.isInternal());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-17"], "old_production_code": "", "new_production_code": "public boolean isInternal() {\n return false;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "21-23", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.5, "line_coverage_gold": 1.9149, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isInternal:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__84c4c5f_41f9a2d__DynamicTransitionActionTests_57243123", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "84c4c5f9a1004ddbd343b3f8ba4b538db175277b", "rev2": "41f9a2dcf0e607d5ed8b128e2afda4768b828521", "rev1_date": "2016-06-09T21:04:06Z", "rev2_date": "2016-06-09T21:04:36Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/84c4c5f9a1004ddbd343b3f8ba4b538db175277b...41f9a2dcf0e607d5ed8b128e2afda4768b828521", "test_file": "src/test/java/com/github/oxo42/stateless4j/DynamicTransitionActionTests.java", "test_changes": [{"change_id": "330_stateless4j_stateless4j-stateless4j-2.6.0_84c4c5f_41f9a2d_DynamicTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/DynamicTransitionActionTests.GuardedDynamicTransitionActionsArePerformed:()V", "class": "DynamicTransitionActionTests", "method": "GuardedDynamicTransitionActionsArePerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.DynamicTransitionActionTests#GuardedDynamicTransitionActionsArePerformed", "old_test_code": null, "new_test_code": "@Test\npublic void GuardedDynamicTransitionActionsArePerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n FixedAccumulator actionZero = new FixedAccumulator(list, new Integer(0));\n AccumulatingAction actionOne = new AccumulatingAction(list);\n AccumulatingAction actionTwo = new AccumulatingAction(list);\n AccumulatingAction actionThree = new AccumulatingAction(list);\n config.configure(State.A).permitDynamicIf(Trigger.X, gotoB, IgnoredTriggerBehaviourTests.returnTrue, actionZero).permitDynamicIf(TriggerY2, gotoB, IgnoredTriggerBehaviourTests.returnTrue, actionTwo);\n config.configure(State.B).permitDynamicIf(TriggerX1, gotoA, IgnoredTriggerBehaviourTests.returnTrue, actionOne).permitDynamicIf(TriggerY3, gotoA, IgnoredTriggerBehaviourTests.returnTrue, actionThree);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n sm.fire(TriggerX1, new Integer(3));\n sm.fire(TriggerY2, new Integer(6), new Integer(9));\n sm.fire(TriggerY3, new Integer(12), new Integer(15), new Integer(18));\n assertEquals(State.A, sm.getState());\n assertEquals(7, list.size());\n assertEquals(new Integer(0), list.get(0));\n assertEquals(new Integer(3), list.get(1));\n assertEquals(new Integer(6), list.get(2));\n assertEquals(new Integer(9), list.get(3));\n assertEquals(new Integer(12), list.get(4));\n assertEquals(new Integer(15), list.get(5));\n assertEquals(new Integer(18), list.get(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["151-183"], "old_production_code": "", "new_production_code": "public StateConfiguration permitDynamicIf(TriggerWithParameters1 trigger, final Func2 destinationStateSelector, FuncBoolean guard, final Action1 action) {\n assert trigger != null : \"trigger is null\";\n assert destinationStateSelector != null : \"destinationStateSelector is null\";\n return publicPermitDynamicIf(trigger.getTrigger(), new Func2() {\n\n @SuppressWarnings(\"unchecked\")\n @Override\n public S call(Object[] args) {\n return destinationStateSelector.call((TArg0) args[0]);\n }\n }, guard, new Action1() {\n\n @SuppressWarnings(\"unchecked\")\n @Override\n public void doIt(Object[] args) {\n action.doIt((TArg0) args[0]);\n }\n });\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "665-686", "dependency_updated": "inserted", "score": 0.1618, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0247}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "733-758", "dependency_updated": "inserted", "score": 0.161, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0212}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "607-622", "dependency_updated": "inserted", "score": 0.1609, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0211}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "809-836", "dependency_updated": "inserted", "score": 0.1603, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.2326, "class": 0.0, "tfidf": 0.0184}}], "coverage_gold": 0.9772727272727273, "branch_coverage_gold": 11.3861, "method_coverage_gold": 40.7035, "line_coverage_gold": 41.2903, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamicIf:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "331_stateless4j_stateless4j-stateless4j-2.6.0_84c4c5f_41f9a2d_DynamicTransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/DynamicTransitionActionTests.UnguardedDynamicTransitionActionsArePerformed:()V", "class": "DynamicTransitionActionTests", "method": "UnguardedDynamicTransitionActionsArePerformed", "module": "", "junit_selector": "com.github.oxo42.stateless4j.DynamicTransitionActionTests#UnguardedDynamicTransitionActionsArePerformed", "old_test_code": null, "new_test_code": "@Test\npublic void UnguardedDynamicTransitionActionsArePerformed() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n FixedAccumulator actionZero = new FixedAccumulator(list, new Integer(0));\n AccumulatingAction actionOne = new AccumulatingAction(list);\n AccumulatingAction actionTwo = new AccumulatingAction(list);\n AccumulatingAction actionThree = new AccumulatingAction(list);\n config.configure(State.A).permitDynamic(Trigger.X, gotoB, actionZero).permitDynamic(TriggerY2, gotoB, actionTwo);\n config.configure(State.B).permitDynamic(TriggerX1, gotoA, actionOne).permitDynamic(TriggerY3, gotoA, actionThree);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n sm.fire(TriggerX1, new Integer(2));\n sm.fire(TriggerY2, new Integer(4), new Integer(6));\n sm.fire(TriggerY3, new Integer(8), new Integer(10), new Integer(12));\n assertEquals(State.A, sm.getState());\n assertEquals(7, list.size());\n assertEquals(new Integer(0), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(4), list.get(2));\n assertEquals(new Integer(6), list.get(3));\n assertEquals(new Integer(8), list.get(4));\n assertEquals(new Integer(10), list.get(5));\n assertEquals(new Integer(12), list.get(6));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-149"], "old_production_code": "", "new_production_code": "public StateConfiguration permitDynamic(T trigger, final Func destinationStateSelector, Action action) {\n return permitDynamicIf(trigger, destinationStateSelector, NO_GUARD, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "463-465", "dependency_updated": "inserted", "score": 0.1475, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.041}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "494-497", "dependency_updated": "inserted", "score": 0.1454, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.0318}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "531-535", "dependency_updated": "inserted", "score": 0.144, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.026}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "569-573", "dependency_updated": "inserted", "score": 0.1432, "signal_scores": {"nc": 0.0, "lcs_u": 0.6154, "ed": 0.1778, "class": 0.0, "tfidf": 0.0226}}], "coverage_gold": 0.9444444444444444, "branch_coverage_gold": 11.3861, "method_coverage_gold": 43.2161, "line_coverage_gold": 42.3656, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Ljava/lang/Object;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;Lcom/github/oxo42/stateless4j/delegates/Action1;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters3;Lcom/github/oxo42/stateless4j/delegates/Func4;Lcom/github/oxo42/stateless4j/delegates/Action3;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2;Lcom/github/oxo42/stateless4j/delegates/Func3;Lcom/github/oxo42/stateless4j/delegates/Action2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__a14d1ab_84c4c5f__TransitionActionTests_ff479dea", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "a14d1ab53e364d08c55e2bf9d1e7ee6d93d18588", "rev2": "84c4c5f9a1004ddbd343b3f8ba4b538db175277b", "rev1_date": "2016-06-09T21:03:02Z", "rev2_date": "2016-06-09T21:04:06Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/a14d1ab53e364d08c55e2bf9d1e7ee6d93d18588...84c4c5f9a1004ddbd343b3f8ba4b538db175277b", "test_file": "src/test/java/com/github/oxo42/stateless4j/TransitionActionTests.java", "test_changes": [{"change_id": "301_stateless4j_stateless4j-stateless4j-2.6.0_a14d1ab_84c4c5f_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.UnguardedActionIsPerformedOnReentry:()V", "class": "TransitionActionTests", "method": "UnguardedActionIsPerformedOnReentry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#UnguardedActionIsPerformedOnReentry", "old_test_code": null, "new_test_code": "@Test\npublic void UnguardedActionIsPerformedOnReentry() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitReentry(Trigger.Z, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.A, sm.getState());\n assertTrue(action.wasPerformed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["139-153"], "old_production_code": "", "new_production_code": "public StateConfiguration permitReentry(T trigger, Action action) {\n return publicPermit(trigger, representation.getUnderlyingState(), action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 9.5745, "method_coverage_gold": 30.6358, "line_coverage_gold": 31.6901, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/TransitionActionTests$TripwireAction.wasPerformed:()Z", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "302_stateless4j_stateless4j-stateless4j-2.6.0_a14d1ab_84c4c5f_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.ActionWithPositiveGuardIsPerformedOnReentry:()V", "class": "TransitionActionTests", "method": "ActionWithPositiveGuardIsPerformedOnReentry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#ActionWithPositiveGuardIsPerformedOnReentry", "old_test_code": null, "new_test_code": "@Test\npublic void ActionWithPositiveGuardIsPerformedOnReentry() {\n StateMachineConfig config = new StateMachineConfig<>();\n TripwireAction action = new TripwireAction();\n config.configure(State.A).permitReentryIf(Trigger.X, IgnoredTriggerBehaviourTests.returnTrue, action);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.X);\n assertEquals(State.A, sm.getState());\n assertTrue(action.wasPerformed());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["180-194"], "old_production_code": "", "new_production_code": "public StateConfiguration permitReentryIf(T trigger, FuncBoolean guard, Action action) {\n return publicPermitIf(trigger, representation.getUnderlyingState(), guard, action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentryIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentryIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "152-154", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 9.5745, "method_coverage_gold": 29.4798, "line_coverage_gold": 31.2207, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/TransitionActionTests$TripwireAction.wasPerformed:()Z", "com/github/oxo42/stateless4j/StateConfiguration.permitReentryIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentryIf:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/FuncBoolean;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "303_stateless4j_stateless4j-stateless4j-2.6.0_a14d1ab_84c4c5f_TransitionActionTests", "test_sign": "com/github/oxo42/stateless4j/TransitionActionTests.ReentryActionIsPerformedBetweenExitAndEntry:()V", "class": "TransitionActionTests", "method": "ReentryActionIsPerformedBetweenExitAndEntry", "module": "", "junit_selector": "com.github.oxo42.stateless4j.TransitionActionTests#ReentryActionIsPerformedBetweenExitAndEntry", "old_test_code": null, "new_test_code": "@Test\npublic void ReentryActionIsPerformedBetweenExitAndEntry() {\n StateMachineConfig config = new StateMachineConfig<>();\n List list = new ArrayList();\n Action entryAction = new CountingAction(list, new Integer(3));\n Action transitionAction = new CountingAction(list, new Integer(2));\n Action exitAction = new CountingAction(list, new Integer(1));\n config.configure(State.A).onEntry(entryAction).onExit(exitAction).permitReentry(Trigger.Z, transitionAction);\n StateMachine sm = new StateMachine<>(State.A, config);\n sm.fire(Trigger.Z);\n assertEquals(State.A, sm.getState());\n assertEquals(3, list.size());\n assertEquals(new Integer(1), list.get(0));\n assertEquals(new Integer(2), list.get(1));\n assertEquals(new Integer(3), list.get(2));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["155-178"], "old_production_code": "", "new_production_code": "public StateConfiguration permitReentry(T trigger, Action action) {\n return publicPermit(trigger, representation.getUnderlyingState(), action);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "119-121", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 10.6383, "method_coverage_gold": 37.5723, "line_coverage_gold": 37.7934, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.onExit:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachineConfig.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__DynamicTriggerTests_a83c7266", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/DynamicTriggerTests.java", "test_changes": [{"change_id": "339_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_DynamicTriggerTests", "test_sign": "com/github/oxo42/DynamicTriggerTests.DestinationStateIsCalculatedBasedOnTriggerParameters:()V", "class": "DynamicTriggerTests", "method": "DestinationStateIsCalculatedBasedOnTriggerParameters", "module": "", "junit_selector": "com.github.oxo42.DynamicTriggerTests#DestinationStateIsCalculatedBasedOnTriggerParameters", "old_test_code": null, "new_test_code": "@Test\npublic void DestinationStateIsCalculatedBasedOnTriggerParameters() throws Exception {\n StateMachine sm = new StateMachine(State.A);\n TriggerWithParameters1 trigger = sm.setTriggerParameters(Trigger.X, Integer.class);\n sm.configure(State.A).permitDynamic(trigger, new Func2() {\n\n public State call(Integer i) throws Exception {\n return i == 1 ? State.B : State.C;\n }\n });\n sm.fire(trigger, 1);\n Assert.assertEquals(State.B, sm.getState());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-40"], "old_production_code": "", "new_production_code": "public TriggerWithParameters1 setTriggerParameters(TTrigger trigger, Class classe0) throws Exception {\n TriggerWithParameters1 configuration = new TriggerWithParameters1<>(trigger, classe0);\n saveTriggerConfiguration(configuration);\n return configuration;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "300-304", "dependency_updated": "inserted", "score": 0.2643, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3846, "class": 0.0, "tfidf": 0.1042}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "145-148", "dependency_updated": "inserted", "score": 0.1945, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0577, "class": 0.0, "tfidf": 0.2239}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.1942, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.1346, "class": 0.0, "tfidf": 0.075}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.1889, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.1346, "class": 0.0, "tfidf": 0.1252}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "386-388", "dependency_updated": "inserted", "score": 0.1464, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.1346, "class": 0.0, "tfidf": 0.1239}}], "coverage_gold": 0.9, "branch_coverage_gold": 32.9545, "method_coverage_gold": 36.5517, "line_coverage_gold": 39.6825, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1;Lcom/github/oxo42/stateless4j/delegates/Func2;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "362_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_DynamicTriggerTests", "test_sign": "com/github/oxo42/DynamicTriggerTests.DestinationStateIsDynamic:()V", "class": "DynamicTriggerTests", "method": "DestinationStateIsDynamic", "module": "", "junit_selector": "com.github.oxo42.DynamicTriggerTests#DestinationStateIsDynamic", "old_test_code": null, "new_test_code": "@Test\npublic void DestinationStateIsDynamic() throws Exception {\n StateMachine sm = new StateMachine(State.A);\n sm.configure(State.A).permitDynamic(Trigger.X, new Func() {\n\n public State call() {\n return State.B;\n }\n });\n sm.fire(Trigger.X);\n Assert.assertEquals(State.B, sm.getState());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-24"], "old_production_code": "", "new_production_code": "public StateConfiguration permitDynamic(TTrigger trigger, final Func destinationStateSelector) throws Exception {\n return permitDynamicIf(trigger, destinationStateSelector, NO_GUARD);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "372-374", "dependency_updated": "inserted", "score": 0.2318, "signal_scores": {"nc": 0.0, "lcs_u": 0.7692, "ed": 0.4, "class": 0.0, "tfidf": 0.1283}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.2187, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.28, "class": 0.0, "tfidf": 0.0774}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "129-131", "dependency_updated": "inserted", "score": 0.1539, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.08, "class": 0.0, "tfidf": 0.2232}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.1103, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.12, "class": 0.0, "tfidf": 0.1346}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 25.0, "method_coverage_gold": 31.0345, "line_coverage_gold": 31.4815, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitDynamic:(Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__IgnoredTriggerBehaviourTests_3d6a178a", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/IgnoredTriggerBehaviourTests.java", "test_changes": [{"change_id": "334_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_IgnoredTriggerBehaviourTests", "test_sign": "com/github/oxo42/IgnoredTriggerBehaviourTests.ExposesCorrectUnderlyingTrigger:()V", "class": "IgnoredTriggerBehaviourTests", "method": "ExposesCorrectUnderlyingTrigger", "module": "", "junit_selector": "com.github.oxo42.IgnoredTriggerBehaviourTests#ExposesCorrectUnderlyingTrigger", "old_test_code": null, "new_test_code": "@Test\npublic void ExposesCorrectUnderlyingTrigger() {\n IgnoredTriggerBehaviour ignored = new IgnoredTriggerBehaviour(Trigger.X, returnTrue);\n Assert.assertEquals(Trigger.X, ignored.getTrigger());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-42"], "old_production_code": "", "new_production_code": "public TTrigger getTrigger() {\n return trigger;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "15-17", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 1.8519, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "343_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_IgnoredTriggerBehaviourTests", "test_sign": "com/github/oxo42/IgnoredTriggerBehaviourTests.StateRemainsUnchanged:()V", "class": "IgnoredTriggerBehaviourTests", "method": "StateRemainsUnchanged", "module": "", "junit_selector": "com.github.oxo42.IgnoredTriggerBehaviourTests#StateRemainsUnchanged", "old_test_code": null, "new_test_code": "@Test\npublic void StateRemainsUnchanged() {\n IgnoredTriggerBehaviour ignored = new IgnoredTriggerBehaviour(Trigger.X, returnTrue);\n try {\n ignored.resultsInTransitionFrom(State.B, new Object[0]);\n Assert.fail();\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-34"], "old_production_code": "", "new_production_code": "public TState resultsInTransitionFrom(TState source, Object... args) throws Exception {\n throw new Exception();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.java", "line_nums_new": "10-12", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 1.8519, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/IgnoredTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "356_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_IgnoredTriggerBehaviourTests", "test_sign": "com/github/oxo42/IgnoredTriggerBehaviourTests.WhenGuardConditionFalse_IsGuardConditionMetIsFalse:()V", "class": "IgnoredTriggerBehaviourTests", "method": "WhenGuardConditionFalse_IsGuardConditionMetIsFalse", "module": "", "junit_selector": "com.github.oxo42.IgnoredTriggerBehaviourTests#WhenGuardConditionFalse_IsGuardConditionMetIsFalse", "old_test_code": null, "new_test_code": "@Test\npublic void WhenGuardConditionFalse_IsGuardConditionMetIsFalse() throws Exception {\n IgnoredTriggerBehaviour ignored = new IgnoredTriggerBehaviour(Trigger.X, returnFalse);\n Assert.assertFalse(ignored.isGuardConditionMet());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-50"], "old_production_code": "", "new_production_code": "public Boolean isGuardConditionMet() throws Exception {\n return guard.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 1.8519, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "382_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_IgnoredTriggerBehaviourTests", "test_sign": "com/github/oxo42/IgnoredTriggerBehaviourTests.WhenGuardConditionTrue_IsGuardConditionMetIsTrue:()V", "class": "IgnoredTriggerBehaviourTests", "method": "WhenGuardConditionTrue_IsGuardConditionMetIsTrue", "module": "", "junit_selector": "com.github.oxo42.IgnoredTriggerBehaviourTests#WhenGuardConditionTrue_IsGuardConditionMetIsTrue", "old_test_code": null, "new_test_code": "@Test\npublic void WhenGuardConditionTrue_IsGuardConditionMetIsTrue() throws Exception {\n IgnoredTriggerBehaviour ignored = new IgnoredTriggerBehaviour(Trigger.X, returnTrue);\n Assert.assertTrue(ignored.isGuardConditionMet());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-58"], "old_production_code": "", "new_production_code": "public Boolean isGuardConditionMet() throws Exception {\n return guard.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 1.8519, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__StateMachineTests_f3edb194", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/StateMachineTests.java", "test_changes": [{"change_id": "335_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.WhenDiscriminatedByGuard_ChoosesPermitedTransition:()V", "class": "StateMachineTests", "method": "WhenDiscriminatedByGuard_ChoosesPermitedTransition", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#WhenDiscriminatedByGuard_ChoosesPermitedTransition", "old_test_code": null, "new_test_code": "@Test\npublic void WhenDiscriminatedByGuard_ChoosesPermitedTransition() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.B).permitIf(Trigger.X, State.A, IgnoredTriggerBehaviourTests.returnFalse).permitIf(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnTrue);\n sm.fire(Trigger.X);\n assertEquals(State.C, sm.getState());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-142"], "old_production_code": "", "new_production_code": "public void fire(TTrigger trigger) throws Exception {\n publicFire(trigger);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "129-131", "dependency_updated": "inserted", "score": 0.3949, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.06, "class": 1.0, "tfidf": 0.2739}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.3517, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.12, "class": 1.0, "tfidf": 0.0482}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.351, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.12, "class": 1.0, "tfidf": 0.1076}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": 0.2068, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.14, "class": 0.0, "tfidf": 0.1245}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 28.4091, "method_coverage_gold": 29.6552, "line_coverage_gold": 31.2169, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "340_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.WhenInSubstate_TriggerIgnoredInSuperstate_RemainsInSubstate:()V", "class": "StateMachineTests", "method": "WhenInSubstate_TriggerIgnoredInSuperstate_RemainsInSubstate", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#WhenInSubstate_TriggerIgnoredInSuperstate_RemainsInSubstate", "old_test_code": null, "new_test_code": "@Test\npublic void WhenInSubstate_TriggerIgnoredInSuperstate_RemainsInSubstate() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.B).substateOf(State.C);\n sm.configure(State.C).ignore(Trigger.X);\n sm.fire(Trigger.X);\n assertEquals(State.B, sm.getState());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-77"], "old_production_code": "", "new_production_code": "public TState getState() throws Exception {\n return stateAccessor.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.3986, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1356, "class": 1.0, "tfidf": 0.0493}}, {"dep_id": 4, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "129-131", "dependency_updated": "inserted", "score": 0.3828, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0508, "class": 1.0, "tfidf": 0.2289}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3506, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1017, "class": 1.0, "tfidf": 0.1189}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "88-90", "dependency_updated": "inserted", "score": 0.2296, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1017, "class": 0.0, "tfidf": 0.1546}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "356-361", "dependency_updated": "inserted", "score": 0.1878, "signal_scores": {"nc": 0.0, "lcs_u": 0.9, "ed": 0.1525, "class": 0.0, "tfidf": 0.0162}}], "coverage_gold": 1.0, "branch_coverage_gold": 13.6364, "method_coverage_gold": 24.8276, "line_coverage_gold": 23.545, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "345_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.TriggerParametersAreImmutableOnceSet:()V", "class": "StateMachineTests", "method": "TriggerParametersAreImmutableOnceSet", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#TriggerParametersAreImmutableOnceSet", "old_test_code": null, "new_test_code": "@Test\npublic void TriggerParametersAreImmutableOnceSet() throws Exception {\n try {\n StateMachine sm = new StateMachine(State.B);\n sm.setTriggerParameters(Trigger.X, String.class, int.class);\n sm.setTriggerParameters(Trigger.X, String.class);\n fail();\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["204-216"], "old_production_code": "", "new_production_code": "public TriggerWithParameters1 setTriggerParameters(TTrigger trigger, Class classe0) throws Exception {\n TriggerWithParameters1 configuration = new TriggerWithParameters1<>(trigger, classe0);\n saveTriggerConfiguration(configuration);\n return configuration;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "300-304", "dependency_updated": "inserted", "score": 0.4321, "signal_scores": {"nc": 0.0, "lcs_u": 0.85, "ed": 0.3889, "class": 1.0, "tfidf": 0.1265}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "317-321", "dependency_updated": "inserted", "score": 0.4273, "signal_scores": {"nc": 0.0, "lcs_u": 0.85, "ed": 0.3889, "class": 1.0, "tfidf": 0.1065}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 3.4091, "method_coverage_gold": 9.6552, "line_coverage_gold": 8.7302, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2", "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters1", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.setTriggerParameters:(Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Class;)Lcom/github/oxo42/stateless4j/triggers/TriggerWithParameters2", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "346_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.InitialStateIsCurrent:()V", "class": "StateMachineTests", "method": "InitialStateIsCurrent", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#InitialStateIsCurrent", "old_test_code": null, "new_test_code": "@Test\npublic void InitialStateIsCurrent() throws Exception {\n State initial = State.B;\n StateMachine sm = new StateMachine(initial);\n assertEquals(initial, sm.getState());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["48-53"], "old_production_code": "", "new_production_code": "public TState getState() throws Exception {\n return stateAccessor.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 6.2069, "line_coverage_gold": 3.9683, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "349_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.PermittedTriggersIncludeSuperstatePermittedTriggers:()V", "class": "StateMachineTests", "method": "PermittedTriggersIncludeSuperstatePermittedTriggers", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#PermittedTriggersIncludeSuperstatePermittedTriggers", "old_test_code": null, "new_test_code": "@Test\npublic void PermittedTriggersIncludeSuperstatePermittedTriggers() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.A).permit(Trigger.Z, State.B);\n sm.configure(State.B).substateOf(State.C).permit(Trigger.X, State.A);\n sm.configure(State.C).permit(Trigger.Y, State.A);\n List permitted = sm.getPermittedTriggers();\n assertTrue(permitted.contains(Trigger.X));\n assertTrue(permitted.contains(Trigger.Y));\n assertFalse(permitted.contains(Trigger.Z));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["79-98"], "old_production_code": "", "new_production_code": "public List getPermittedTriggers() throws Exception {\n return getCurrentRepresentation().getPermittedTriggers();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "84-86", "dependency_updated": "inserted", "score": 0.4424, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3922, "class": 1.0, "tfidf": 0.0557}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3267, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.098, "class": 1.0, "tfidf": 0.1033}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": 0.2327, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1176, "class": 0.0, "tfidf": 0.1568}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "356-361", "dependency_updated": "inserted", "score": 0.1486, "signal_scores": {"nc": 0.0, "lcs_u": 0.7, "ed": 0.1373, "class": 0.0, "tfidf": 0.0103}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7727, "method_coverage_gold": 25.5172, "line_coverage_gold": 22.4868, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "351_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.SubstateIsIncludedInCurrentState:()V", "class": "StateMachineTests", "method": "SubstateIsIncludedInCurrentState", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#SubstateIsIncludedInCurrentState", "old_test_code": null, "new_test_code": "@Test\npublic void SubstateIsIncludedInCurrentState() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.B).substateOf(State.C);\n assertEquals(State.B, sm.getState());\n assertTrue(sm.isInState(State.C));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["55-62"], "old_production_code": "", "new_production_code": "public Boolean isInState(TState state) throws Exception {\n return getCurrentRepresentation().isIncludedIn(state);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.isInState:(Ljava/lang/Object;)Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.isInState:(Ljava/lang/Object;)Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "241-243", "dependency_updated": "inserted", "score": 0.5063, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2812, "class": 1.0, "tfidf": 0.4051}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "71-73", "dependency_updated": "inserted", "score": 0.3919, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.2188, "class": 1.0, "tfidf": 0.0562}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3431, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.1562, "class": 1.0, "tfidf": 0.1322}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "356-361", "dependency_updated": "inserted", "score": 0.1867, "signal_scores": {"nc": 0.0, "lcs_u": 0.8, "ed": 0.25, "class": 0.0, "tfidf": 0.0185}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.9545, "method_coverage_gold": 16.5517, "line_coverage_gold": 12.4339, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.isInState:(Ljava/lang/Object;)Ljava/lang/Boolean", "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getState:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.isInState:(Ljava/lang/Object;)Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "353_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.WhenTriggerIsIgnored_ActionsNotExecuted:()V", "class": "StateMachineTests", "method": "WhenTriggerIsIgnored_ActionsNotExecuted", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#WhenTriggerIsIgnored_ActionsNotExecuted", "old_test_code": null, "new_test_code": "@Test\npublic void WhenTriggerIsIgnored_ActionsNotExecuted() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n fired = false;\n sm.configure(State.B).onEntry(new Action() {\n\n public void doIt() {\n setFired();\n }\n }).ignore(Trigger.X);\n sm.fire(Trigger.X);\n assertFalse(fired);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["148-167"], "old_production_code": "", "new_production_code": "public void fire(TTrigger trigger) throws Exception {\n publicFire(trigger);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "129-131", "dependency_updated": "inserted", "score": 0.4075, "signal_scores": {"nc": 0.0, "lcs_u": 0.75, "ed": 0.0769, "class": 1.0, "tfidf": 0.3155}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3279, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.1282, "class": 1.0, "tfidf": 0.0871}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "88-90", "dependency_updated": "inserted", "score": 0.2519, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1538, "class": 0.0, "tfidf": 0.2131}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "113-120", "dependency_updated": "inserted", "score": 0.1334, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1026, "class": 0.0, "tfidf": 0.0667}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 12.5, "method_coverage_gold": 24.8276, "line_coverage_gold": 21.6931, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.ignore:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "355_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.ImplicitReentryIsDisallowed:()V", "class": "StateMachineTests", "method": "ImplicitReentryIsDisallowed", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#ImplicitReentryIsDisallowed", "old_test_code": null, "new_test_code": "@Test\npublic void ImplicitReentryIsDisallowed() {\n try {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.B).permit(Trigger.X, State.B);\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["190-202"], "old_production_code": "", "new_production_code": "public StateConfiguration configure(TState state) throws Exception {\n return new StateConfiguration<>(getRepresentation(state), new Func2>() {\n\n public StateRepresentation call(TState arg0) {\n return getRepresentation(arg0);\n }\n });\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3214, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1481, "class": 1.0, "tfidf": 0.1288}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": 0.1728, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1481, "class": 0.0, "tfidf": 0.1309}}], "coverage_gold": 0.25, "branch_coverage_gold": 3.4091, "method_coverage_gold": 11.0345, "line_coverage_gold": 8.9947, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "372_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.PermittedTriggersAreDistinctValues:()V", "class": "StateMachineTests", "method": "PermittedTriggersAreDistinctValues", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#PermittedTriggersAreDistinctValues", "old_test_code": null, "new_test_code": "@Test\npublic void PermittedTriggersAreDistinctValues() throws Exception {\n StateMachine sm = new StateMachine<>(State.B);\n sm.configure(State.B).substateOf(State.C).permit(Trigger.X, State.A);\n sm.configure(State.C).permit(Trigger.X, State.B);\n List permitted = sm.getPermittedTriggers();\n assertEquals(1, permitted.size());\n assertEquals(Trigger.X, permitted.get(0));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["100-114"], "old_production_code": "", "new_production_code": "public List getPermittedTriggers() throws Exception {\n return getCurrentRepresentation().getPermittedTriggers();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "84-86", "dependency_updated": "inserted", "score": 0.4253, "signal_scores": {"nc": 0.0, "lcs_u": 0.85, "ed": 0.4118, "class": 1.0, "tfidf": 0.0818}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3114, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.1176, "class": 1.0, "tfidf": 0.1079}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "31-34", "dependency_updated": "inserted", "score": 0.2366, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1765, "class": 0.0, "tfidf": 0.1318}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "356-361", "dependency_updated": "inserted", "score": 0.1112, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1176, "class": 0.0, "tfidf": 0.0151}}], "coverage_gold": 1.0, "branch_coverage_gold": 14.7727, "method_coverage_gold": 25.5172, "line_coverage_gold": 22.4868, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.substateOf:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permit:(Ljava/lang/Object;Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "376_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.AcceptedTriggersRespectGuards:()V", "class": "StateMachineTests", "method": "AcceptedTriggersRespectGuards", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#AcceptedTriggersRespectGuards", "old_test_code": null, "new_test_code": "@Test\npublic void AcceptedTriggersRespectGuards() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n sm.configure(State.B).permitIf(Trigger.X, State.A, new Func() {\n\n public Boolean call() {\n return false;\n }\n });\n assertEquals(0, sm.getPermittedTriggers().size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["116-129"], "old_production_code": "", "new_production_code": "public List getPermittedTriggers() throws Exception {\n return getCurrentRepresentation().getPermittedTriggers();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "84-86", "dependency_updated": "inserted", "score": 0.368, "signal_scores": {"nc": 0.0, "lcs_u": 0.65, "ed": 0.2759, "class": 1.0, "tfidf": 0.0834}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3425, "signal_scores": {"nc": 0.0, "lcs_u": 0.5556, "ed": 0.1724, "class": 1.0, "tfidf": 0.1184}}, {"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "45-48", "dependency_updated": "inserted", "score": 0.167, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1379, "class": 0.0, "tfidf": 0.1443}}], "coverage_gold": 0.8, "branch_coverage_gold": 13.6364, "method_coverage_gold": 20.6897, "line_coverage_gold": 18.5185, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.getPermittedTriggers:()Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitIf:(Ljava/lang/Object;Ljava/lang/Object;Lcom/github/oxo42/stateless4j/delegates/Func;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "384_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_StateMachineTests", "test_sign": "com/github/oxo42/StateMachineTests.IfSelfTransitionPermited_ActionsFire:()V", "class": "StateMachineTests", "method": "IfSelfTransitionPermited_ActionsFire", "module": "", "junit_selector": "com.github.oxo42.StateMachineTests#IfSelfTransitionPermited_ActionsFire", "old_test_code": null, "new_test_code": "@Test\npublic void IfSelfTransitionPermited_ActionsFire() throws Exception {\n StateMachine sm = new StateMachine(State.B);\n fired = false;\n sm.configure(State.B).onEntry(new Action() {\n\n public void doIt() {\n setFired();\n }\n }).permitReentry(Trigger.X);\n sm.fire(Trigger.X);\n assertTrue(fired);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["169-188"], "old_production_code": "", "new_production_code": "public void fire(TTrigger trigger) throws Exception {\n publicFire(trigger);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "focal_method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "129-131", "dependency_updated": "inserted", "score": 0.4572, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.1111, "class": 1.0, "tfidf": 0.3155}}, {"dep_id": 1, "method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "line_nums_new": "110-117", "dependency_updated": "inserted", "score": 0.3689, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.1389, "class": 1.0, "tfidf": 0.0871}}, {"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "61-63", "dependency_updated": "inserted", "score": 0.2068, "signal_scores": {"nc": 0.0, "lcs_u": 0.6923, "ed": 0.2222, "class": 0.0, "tfidf": 0.2041}}, {"dep_id": 3, "method_sign": "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "line_nums_new": "113-120", "dependency_updated": "inserted", "score": 0.1646, "signal_scores": {"nc": 0.0, "lcs_u": 0.7143, "ed": 0.1389, "class": 0.0, "tfidf": 0.0667}}], "coverage_gold": 0.8888888888888888, "branch_coverage_gold": 18.1818, "method_coverage_gold": 35.1724, "line_coverage_gold": 32.5397, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.permitReentry:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.configure:(Ljava/lang/Object;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateMachine.fire:(Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateMachine.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/github/oxo42/stateless4j/StateConfiguration.onEntry:(Lcom/github/oxo42/stateless4j/delegates/Action;)Lcom/github/oxo42/stateless4j/StateConfiguration", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/StateConfiguration.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__TransitionTests_c4fe2cfe", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/TransitionTests.java", "test_changes": [{"change_id": "365_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TransitionTests", "test_sign": "com/github/oxo42/TransitionTests.IdentityTransitionIsNotChange:()V", "class": "TransitionTests", "method": "IdentityTransitionIsNotChange", "module": "", "junit_selector": "com.github.oxo42.TransitionTests#IdentityTransitionIsNotChange", "old_test_code": null, "new_test_code": "@Test\npublic void IdentityTransitionIsNotChange() {\n Transition t = new Transition(1, 1, 0);\n Assert.assertTrue(t.isReentry());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "", "new_production_code": "public Boolean isReentry() {\n return getSource().equals(getDestination());\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "focal_method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "line_nums_new": "57-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.7586, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "379_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TransitionTests", "test_sign": "com/github/oxo42/TransitionTests.TransitioningTransitionIsChange:()V", "class": "TransitionTests", "method": "TransitioningTransitionIsChange", "module": "", "junit_selector": "com.github.oxo42.TransitionTests#TransitioningTransitionIsChange", "old_test_code": null, "new_test_code": "@Test\npublic void TransitioningTransitionIsChange() {\n Transition t = new Transition(1, 2, 0);\n Assert.assertFalse(t.isReentry());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-23"], "old_production_code": "", "new_production_code": "public Boolean isReentry() {\n return getSource().equals(getDestination());\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "focal_method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "line_nums_new": "57-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.7586, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/transitions/Transition.isReentry:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/Transition.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__TransitioningTriggerBehaviourTests_55cd37dc", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/TransitioningTriggerBehaviourTests.java", "test_changes": [{"change_id": "385_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TransitioningTriggerBehaviourTests", "test_sign": "com/github/oxo42/TransitioningTriggerBehaviourTests.TransitionsToDestinationState:()V", "class": "TransitioningTriggerBehaviourTests", "method": "TransitionsToDestinationState", "module": "", "junit_selector": "com.github.oxo42.TransitioningTriggerBehaviourTests#TransitionsToDestinationState", "old_test_code": null, "new_test_code": "@Test\npublic void TransitionsToDestinationState() {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnTrue);\n State destination = transtioning.resultsInTransitionFrom(State.B, new Object[0]);\n Assert.assertEquals(State.C, destination);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["9-14"], "old_production_code": "", "new_production_code": "public TState resultsInTransitionFrom(TState source, Object... args) {\n return destination;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.java", "line_nums_new": "14-16", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.resultsInTransitionFrom:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/transitions/TransitioningTriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__TriggerBehaviourTests_d29d1adf", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/TriggerBehaviourTests.java", "test_changes": [{"change_id": "370_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerBehaviourTests", "test_sign": "com/github/oxo42/TriggerBehaviourTests.WhenGuardConditionTrue_IsGuardConditionMetIsTrue:()V", "class": "TriggerBehaviourTests", "method": "WhenGuardConditionTrue_IsGuardConditionMetIsTrue", "module": "", "junit_selector": "com.github.oxo42.TriggerBehaviourTests#WhenGuardConditionTrue_IsGuardConditionMetIsTrue", "old_test_code": null, "new_test_code": "@Test\npublic void WhenGuardConditionTrue_IsGuardConditionMetIsTrue() throws Exception {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnTrue);\n Assert.assertTrue(transtioning.isGuardConditionMet());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["26-32"], "old_production_code": "", "new_production_code": "public Boolean isGuardConditionMet() throws Exception {\n return guard.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "374_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerBehaviourTests", "test_sign": "com/github/oxo42/TriggerBehaviourTests.WhenGuardConditionFalse_IsGuardConditionMetIsFalse:()V", "class": "TriggerBehaviourTests", "method": "WhenGuardConditionFalse_IsGuardConditionMetIsFalse", "module": "", "junit_selector": "com.github.oxo42.TriggerBehaviourTests#WhenGuardConditionFalse_IsGuardConditionMetIsFalse", "old_test_code": null, "new_test_code": "@Test\npublic void WhenGuardConditionFalse_IsGuardConditionMetIsFalse() throws Exception {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnFalse);\n Assert.assertFalse(transtioning.isGuardConditionMet());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["18-24"], "old_production_code": "", "new_production_code": "public Boolean isGuardConditionMet() throws Exception {\n return guard.call();\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "19-21", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.isGuardConditionMet:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "377_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerBehaviourTests", "test_sign": "com/github/oxo42/TriggerBehaviourTests.ExposesCorrectUnderlyingTrigger:()V", "class": "TriggerBehaviourTests", "method": "ExposesCorrectUnderlyingTrigger", "module": "", "junit_selector": "com.github.oxo42.TriggerBehaviourTests#ExposesCorrectUnderlyingTrigger", "old_test_code": null, "new_test_code": "@Test\npublic void ExposesCorrectUnderlyingTrigger() {\n TransitioningTriggerBehaviour transtioning = new TransitioningTriggerBehaviour(Trigger.X, State.C, IgnoredTriggerBehaviourTests.returnTrue);\n Assert.assertEquals(Trigger.X, transtioning.getTrigger());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-16"], "old_production_code": "", "new_production_code": "public TTrigger getTrigger() {\n return trigger;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "line_nums_new": "15-17", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 2.069, "line_coverage_gold": 2.1164, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerBehaviour.getTrigger:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerBehaviour.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "stateless4j_stateless4j-stateless4j-2.6.0__aa48de4_61b1abc__TriggerWithParametersTests_f00a6185", "project_name": "stateless4j_stateless4j-stateless4j-2.6.0", "git_clone_url": "https://github.com/stateless4j/stateless4j.git", "rev1": "aa48de4faa8489a92ccede072f7067b17d5531cb", "rev2": "61b1abc67bd19645fccc207707cc9407e00cae07", "rev1_date": "2014-04-04T18:02:16Z", "rev2_date": "2014-04-04T19:35:46Z", "git_diff_url": "https://github.com/stateless4j/stateless4j/compare/aa48de4faa8489a92ccede072f7067b17d5531cb...61b1abc67bd19645fccc207707cc9407e00cae07", "test_file": "src/test/java/com/github/oxo42/TriggerWithParametersTests.java", "test_changes": [{"change_id": "338_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.IncompatibleParametersAreNotValid:()V", "class": "TriggerWithParametersTests", "method": "IncompatibleParametersAreNotValid", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#IncompatibleParametersAreNotValid", "old_test_code": null, "new_test_code": "@Test\npublic void IncompatibleParametersAreNotValid() {\n try {\n TriggerWithParameters1 twp = new TriggerWithParameters1(Trigger.X, String.class);\n twp.validateParameters(new Object[] { 123 });\n fail();\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-39"], "old_production_code": "", "new_production_code": "public void validateParameters(Object[] args) throws Exception {\n Enforce.argumentNotNull(args, \"args\");\n ParameterConversion.validate(args, argumentTypes);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 6.8182, "method_coverage_gold": 4.1379, "line_coverage_gold": 4.7619, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "354_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.ParametersOfCorrectTypeAreAccepted:()V", "class": "TriggerWithParametersTests", "method": "ParametersOfCorrectTypeAreAccepted", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#ParametersOfCorrectTypeAreAccepted", "old_test_code": null, "new_test_code": "@Test\npublic void ParametersOfCorrectTypeAreAccepted() throws Exception {\n TriggerWithParameters1 twp = new TriggerWithParameters1(Trigger.X, String.class);\n twp.validateParameters(new Object[] { \"arg\" });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-23"], "old_production_code": "", "new_production_code": "public void validateParameters(Object[] args) throws Exception {\n Enforce.argumentNotNull(args, \"args\");\n ParameterConversion.validate(args, argumentTypes);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.9545, "method_coverage_gold": 4.1379, "line_coverage_gold": 5.5556, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "364_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.DescribesUnderlyingTrigger:()V", "class": "TriggerWithParametersTests", "method": "DescribesUnderlyingTrigger", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#DescribesUnderlyingTrigger", "old_test_code": null, "new_test_code": "@Test\npublic void DescribesUnderlyingTrigger() throws Exception {\n TriggerWithParameters1 twp = new TriggerWithParameters1(Trigger.X, String.class);\n assertEquals(Trigger.X, twp.getTrigger());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["13-17"], "old_production_code": "", "new_production_code": "public TTrigger getTrigger() {\n return underlyingTrigger;\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.getTrigger:()Ljava/lang/Object", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.getTrigger:()Ljava/lang/Object", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "30-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 1.1364, "method_coverage_gold": 2.7586, "line_coverage_gold": 2.6455, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.getTrigger:()Ljava/lang/Object"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.getTrigger:()Ljava/lang/Object", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "367_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.TooFewParametersDetected:()V", "class": "TriggerWithParametersTests", "method": "TooFewParametersDetected", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#TooFewParametersDetected", "old_test_code": null, "new_test_code": "@Test\npublic void TooFewParametersDetected() throws Exception {\n try {\n TriggerWithParameters2 twp = new TriggerWithParameters2(Trigger.X, String.class, String.class);\n twp.validateParameters(new Object[] { \"a\" });\n fail();\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["41-49"], "old_production_code": "", "new_production_code": "public void validateParameters(Object[] args) throws Exception {\n Enforce.argumentNotNull(args, \"args\");\n ParameterConversion.validate(args, argumentTypes);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 7.9545, "method_coverage_gold": 4.1379, "line_coverage_gold": 5.291, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "375_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.TooManyParametersDetected:()V", "class": "TriggerWithParametersTests", "method": "TooManyParametersDetected", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#TooManyParametersDetected", "old_test_code": null, "new_test_code": "@Test\npublic void TooManyParametersDetected() throws Exception {\n try {\n TriggerWithParameters2 twp = new TriggerWithParameters2(Trigger.X, String.class, String.class);\n twp.validateParameters(new Object[] { \"a\", \"b\", \"c\" });\n fail();\n } catch (Exception e) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["51-59"], "old_production_code": "", "new_production_code": "public void validateParameters(Object[] args) throws Exception {\n Enforce.argumentNotNull(args, \"args\");\n ParameterConversion.validate(args, argumentTypes);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3333333333333333, "branch_coverage_gold": 2.2727, "method_coverage_gold": 3.4483, "line_coverage_gold": 3.4392, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "381_stateless4j_stateless4j-stateless4j-2.6.0_aa48de4_61b1abc_TriggerWithParametersTests", "test_sign": "com/github/oxo42/TriggerWithParametersTests.ParametersArePolymorphic:()V", "class": "TriggerWithParametersTests", "method": "ParametersArePolymorphic", "module": "", "junit_selector": "com.github.oxo42.TriggerWithParametersTests#ParametersArePolymorphic", "old_test_code": null, "new_test_code": "@Test\npublic void ParametersArePolymorphic() throws Exception {\n TriggerWithParameters1 twp = new TriggerWithParameters1(Trigger.X, String.class);\n twp.validateParameters(new Object[] { \"arg\" });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["25-29"], "old_production_code": "", "new_production_code": "public void validateParameters(Object[] args) throws Exception {\n Enforce.argumentNotNull(args, \"args\");\n ParameterConversion.validate(args, argumentTypes);\n}", "focal_file_path": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "focal_method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.9545, "method_coverage_gold": 4.1379, "line_coverage_gold": 5.5556, "is_traceback": false, "commit_gap": {"count": 5, "skipped_commits": ["c809f5bcc67aa43be33b9afaf9e04b2219196192", "b88649bf23f5e0739d10d6fe1a12f7d9e33e70a5", "a3ba17ac267ad13c09159b0bb4f79cb8cefc2f00", "319207283c715bb3bc9ee0eb87e334a502f47465", "879572344d41864f6f3806622735adb121764ae2"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/github/oxo42/stateless4j/triggers/TriggerWithParameters.validateParameters:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/github/oxo42/stateless4j/triggers/TriggerWithParameters.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "stateless4j-2.6.0", "java_version": 8} {"task_id": "tcurdt_jdeb-jdeb-1.14__9de7d76_324195a__DebMakerTestCase_a712df55", "project_name": "tcurdt_jdeb-jdeb-1.14", "git_clone_url": "https://github.com/tcurdt/jdeb.git", "rev1": "9de7d764ab8f1a52b174e969ba4adf6950d52944", "rev2": "324195a34d194861e80702e3bf2e527a27b443db", "rev1_date": "2025-01-08T04:47:36Z", "rev2_date": "2025-01-08T15:26:28Z", "git_diff_url": "https://github.com/tcurdt/jdeb/compare/9de7d764ab8f1a52b174e969ba4adf6950d52944...324195a34d194861e80702e3bf2e527a27b443db", "test_file": "src/test/java/org/vafer/jdeb/DebMakerTestCase.java", "test_changes": [{"change_id": "53_tcurdt_jdeb-jdeb-1.14_9de7d76_324195a_DebMakerTestCase", "test_sign": "org/vafer/jdeb/DebMakerTestCase.testChangesValidation:()V", "class": "DebMakerTestCase", "method": "testChangesValidation", "module": "", "junit_selector": "org.vafer.jdeb.DebMakerTestCase#testChangesValidation", "old_test_code": null, "new_test_code": "@Test\npublic void testChangesValidation() throws Exception {\n File deb = File.createTempFile(\"jdeb\", \".deb\");\n File changesSave = File.createTempFile(\"changesSave\", \".txt\");\n File directory = new File(getClass().getResource(\"deb/data\").toURI());\n DebMaker maker = new DebMaker(new NullConsole(), List.of(new UseNullAsInputStream()), null);\n assertThrows(PackagingException.class, maker::validate);\n maker.setControl(new File(getClass().getResource(\"deb/control\").toURI()));\n assertThrows(PackagingException.class, maker::validate);\n maker.setDeb(deb);\n maker.validate();\n maker.setChangesEnabled(true);\n maker.validate();\n maker.setChangesIn(directory);\n assertThrows(PackagingException.class, maker::validate);\n maker.setChangesIn(new File(getClass().getResource(\"changes/changes.txt\").toURI()));\n maker.validate();\n maker.setChangesSave(directory);\n assertThrows(PackagingException.class, maker::validate);\n maker.setChangesSave(null);\n maker.setChangesOut(directory);\n assertThrows(PackagingException.class, maker::validate);\n maker.setChangesOut(null);\n maker.setChangesSave(changesSave);\n maker.validate();\n maker.setChangesIn(null);\n assertThrows(PackagingException.class, maker::validate);\n maker.setChangesEnabled(false);\n maker.setCompression(null);\n assertThrows(PackagingException.class, maker::validate);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["308-349"], "old_production_code": "public void validate() throws PackagingException {\n if (control == null || !control.isDirectory()) {\n throw new PackagingException(\"The 'control' attribute doesn't point to a directory. \" + control);\n }\n if (changesIn != null) {\n if (changesIn.exists() && (!changesIn.isFile() || !changesIn.canRead())) {\n throw new PackagingException(\"The 'changesIn' setting needs to point to a readable file. \" + changesIn + \" was not found/readable.\");\n }\n if (changesOut != null && !isWritableFile(changesOut)) {\n throw new PackagingException(\"Cannot write the output for 'changesOut' to \" + changesOut);\n }\n if (changesSave != null && !isWritableFile(changesSave)) {\n throw new PackagingException(\"Cannot write the output for 'changesSave' to \" + changesSave);\n }\n } else {\n if (changesOut != null || changesSave != null) {\n throw new PackagingException(\"The 'changesOut' or 'changesSave' settings may only be used when there is a 'changesIn' specified.\");\n }\n }\n if (Compression.toEnum(compression) == null) {\n throw new PackagingException(\"The compression method '\" + compression + \"' is not supported (expected 'none', 'gzip', 'bzip2' or 'xz')\");\n }\n if (deb == null) {\n throw new PackagingException(\"You need to specify where the deb file is supposed to be created.\");\n }\n PGPSigner.getDigestCode(digest);\n}", "new_production_code": "public void validate() throws PackagingException {\n if (control == null || !control.isDirectory()) {\n throw new PackagingException(\"The 'control' attribute doesn't point to a directory. \" + control);\n }\n if (changesEnabled) {\n if (changesIn != null) {\n if (changesIn.exists() && (!changesIn.isFile() || !changesIn.canRead())) {\n throw new PackagingException(\"The 'changesIn' setting needs to point to a readable file. \" + changesIn + \" was not found/readable.\");\n }\n if (changesOut != null && !isWritableFile(changesOut)) {\n throw new PackagingException(\"Cannot write the output for 'changesOut' to \" + changesOut);\n }\n if (changesSave != null && !isWritableFile(changesSave)) {\n throw new PackagingException(\"Cannot write the output for 'changesSave' to \" + changesSave);\n }\n } else {\n if (changesOut != null || changesSave != null) {\n throw new PackagingException(\"The 'changesOut' or 'changesSave' settings may only be used when there is a 'changesIn' specified.\");\n }\n }\n }\n if (Compression.toEnum(compression) == null) {\n throw new PackagingException(\"The compression method '\" + compression + \"' is not supported (expected 'none', 'gzip', 'bzip2' or 'xz')\");\n }\n if (deb == null) {\n throw new PackagingException(\"You need to specify where the deb file is supposed to be created.\");\n }\n PGPSigner.getDigestCode(digest);\n}", "focal_file_path": "src/main/java/org/vafer/jdeb/DebMaker.java", "focal_method_sign": "org/vafer/jdeb/DebMaker.validate:()V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "org/vafer/jdeb/DebMaker.validate:()V", "file_path_old": "src/main/java/org/vafer/jdeb/DebMaker.java", "line_nums_old": "276-310", "file_path_new": "src/main/java/org/vafer/jdeb/DebMaker.java", "line_nums_new": "283-319", "dependency_updated": "updated", "score": 0.4327, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.4118, "class": 1.0, "tfidf": 0.0946}}, {"dep_id": 0, "method_sign": "org/vafer/jdeb/DebMaker.setChangesEnabled:(Z)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/vafer/jdeb/DebMaker.java", "line_nums_new": "203-205", "dependency_updated": "inserted", "score": 0.344, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.2941, "class": 1.0, "tfidf": 0.015}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.9312, "method_coverage_gold": 4.2895, "line_coverage_gold": 3.264, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["cfc4c368d6d63cadaccd7fd40c4483d7e7139fb0", "2d10ab9e56b6171cdbdf70847ea22f7f074f8cc8"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/vafer/jdeb/DebMaker.setControl:(Ljava/io/File;)V", "org/vafer/jdeb/DebMaker.setChangesIn:(Ljava/io/File;)V", "org/vafer/jdeb/DebMaker.setChangesEnabled:(Z)V", "org/vafer/jdeb/DebMaker.setChangesSave:(Ljava/io/File;)V", "org/vafer/jdeb/DebMaker.setCompression:(Ljava/lang/String;)V", "org/vafer/jdeb/DebMaker.setDeb:(Ljava/io/File;)V", "org/vafer/jdeb/DebMaker.validate:()V", "org/vafer/jdeb/DebMaker.setChangesOut:(Ljava/io/File;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/vafer/jdeb/DebMaker.setChangesEnabled:(Z)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/vafer/jdeb/DebMaker.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "org/vafer/jdeb/DebMaker.validate:()V", "change_type": "UPDATE", "file_path_old": "src/main/java/org/vafer/jdeb/DebMaker.java", "file_path_new": "src/main/java/org/vafer/jdeb/DebMaker.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "jdeb-1.14", "java_version": 11} {"task_id": "twitter_GraphJet-master__2fed841_d4bb605__RecentEdgeMetadataFilterTest_223c89fc", "project_name": "twitter_GraphJet-master", "git_clone_url": "https://github.com/twitter/GraphJet.git", "rev1": "2fed841e06e463851af3399d3b260de29f4049f7", "rev2": "d4bb6059693e0259582ce035e90f955d95c31c54", "rev1_date": "2017-08-03T16:00:20Z", "rev2_date": "2017-08-03T20:22:37Z", "git_diff_url": "https://github.com/twitter/GraphJet/compare/2fed841e06e463851af3399d3b260de29f4049f7...d4bb6059693e0259582ce035e90f955d95c31c54", "test_file": "graphjet-core/src/test/java/com/twitter/graphjet/algorithms/filter/RecentEdgeMetadataFilterTest.java", "test_changes": [{"change_id": "213_twitter_GraphJet-master_2fed841_d4bb605_RecentEdgeMetadataFilterTest", "test_sign": "com/twitter/graphjet/algorithms/filter/RecentEdgeMetadataFilterTest.testOneEdgeOldEnough:()V", "class": "RecentEdgeMetadataFilterTest", "method": "testOneEdgeOldEnough", "module": "graphjet-core", "junit_selector": "com.twitter.graphjet.algorithms.filter.RecentEdgeMetadataFilterTest#testOneEdgeOldEnough", "old_test_code": null, "new_test_code": "@Test\npublic void testOneEdgeOldEnough() {\n long twoDaysPriorBenchmark = benchmarkTimeInMillis - oneDayInMillis * 2;\n SmallArrayBasedLongToDoubleMap socialProof = new SmallArrayBasedLongToDoubleMap();\n socialProof.put(100L, 1.0, twoDaysPriorBenchmark);\n SmallArrayBasedLongToDoubleMap[] socialProofs = { null, null, null, null, socialProof };\n long elapsedTimeInMillis = System.currentTimeMillis() - benchmarkTimeInMillis;\n RecentEdgeMetadataFilter filter = new RecentEdgeMetadataFilter(elapsedTimeInMillis + oneDayInMillis, (byte) RecommendationRequest.AUTHOR_SOCIAL_PROOF_TYPE, new NullStatsReceiver());\n assertEquals(false, filter.filterResult(1L, socialProofs));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-45"], "old_production_code": "", "new_production_code": "@Override\npublic boolean filterResult(long resultNode, SmallArrayBasedLongToDoubleMap[] socialProofs) {\n SmallArrayBasedLongToDoubleMap socialProof = socialProofs[socialProofType];\n if (socialProof == null) {\n return false;\n }\n long[] allMetadata = socialProof.metadata();\n for (long metadataTimestamp : allMetadata) {\n if (cutoff < metadataTimestamp) {\n return true;\n }\n }\n return false;\n}", "focal_file_path": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "focal_method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "line_nums_new": "54-68", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.47058823529411764, "branch_coverage_gold": 0.747, "method_coverage_gold": 1.1892, "line_coverage_gold": 1.1149, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap.put:(JDJ)Z", "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "214_twitter_GraphJet-master_2fed841_d4bb605_RecentEdgeMetadataFilterTest", "test_sign": "com/twitter/graphjet/algorithms/filter/RecentEdgeMetadataFilterTest.testOneEdgeTooRecent:()V", "class": "RecentEdgeMetadataFilterTest", "method": "testOneEdgeTooRecent", "module": "graphjet-core", "junit_selector": "com.twitter.graphjet.algorithms.filter.RecentEdgeMetadataFilterTest#testOneEdgeTooRecent", "old_test_code": null, "new_test_code": "@Test\npublic void testOneEdgeTooRecent() {\n long halfDaysPriorBenchmark = benchmarkTimeInMillis - oneDayInMillis / 2;\n SmallArrayBasedLongToDoubleMap socialProof = new SmallArrayBasedLongToDoubleMap();\n socialProof.put(100L, 1.0, halfDaysPriorBenchmark);\n SmallArrayBasedLongToDoubleMap[] socialProofs = { null, null, null, null, socialProof };\n long elapsedTimeInMillis = System.currentTimeMillis() - benchmarkTimeInMillis;\n RecentEdgeMetadataFilter filter = new RecentEdgeMetadataFilter(elapsedTimeInMillis + oneDayInMillis, (byte) RecommendationRequest.AUTHOR_SOCIAL_PROOF_TYPE, new NullStatsReceiver());\n assertEquals(true, filter.filterResult(1L, socialProofs));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["47-61"], "old_production_code": "", "new_production_code": "@Override\npublic boolean filterResult(long resultNode, SmallArrayBasedLongToDoubleMap[] socialProofs) {\n SmallArrayBasedLongToDoubleMap socialProof = socialProofs[socialProofType];\n if (socialProof == null) {\n return false;\n }\n long[] allMetadata = socialProof.metadata();\n for (long metadataTimestamp : allMetadata) {\n if (cutoff < metadataTimestamp) {\n return true;\n }\n }\n return false;\n}", "focal_file_path": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "focal_method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "line_nums_new": "54-68", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.47058823529411764, "branch_coverage_gold": 0.6536, "method_coverage_gold": 1.1892, "line_coverage_gold": 1.1149, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap.put:(JDJ)Z", "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "215_twitter_GraphJet-master_2fed841_d4bb605_RecentEdgeMetadataFilterTest", "test_sign": "com/twitter/graphjet/algorithms/filter/RecentEdgeMetadataFilterTest.testTwoEdgeTooRecent:()V", "class": "RecentEdgeMetadataFilterTest", "method": "testTwoEdgeTooRecent", "module": "graphjet-core", "junit_selector": "com.twitter.graphjet.algorithms.filter.RecentEdgeMetadataFilterTest#testTwoEdgeTooRecent", "old_test_code": null, "new_test_code": "@Test\npublic void testTwoEdgeTooRecent() {\n long halfDaysPriorBenchmark = benchmarkTimeInMillis - oneDayInMillis / 2;\n long twoDaysPriorBenchmark = benchmarkTimeInMillis - oneDayInMillis * 2;\n SmallArrayBasedLongToDoubleMap socialProof = new SmallArrayBasedLongToDoubleMap();\n socialProof.put(100L, 1.0, halfDaysPriorBenchmark);\n socialProof.put(101L, 1.0, twoDaysPriorBenchmark);\n SmallArrayBasedLongToDoubleMap[] socialProofs = { null, null, null, null, socialProof };\n long elapsedTimeInMillis = System.currentTimeMillis() - benchmarkTimeInMillis;\n RecentEdgeMetadataFilter filter = new RecentEdgeMetadataFilter(elapsedTimeInMillis + oneDayInMillis, (byte) RecommendationRequest.AUTHOR_SOCIAL_PROOF_TYPE, new NullStatsReceiver());\n assertEquals(true, filter.filterResult(1L, socialProofs));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-80"], "old_production_code": "", "new_production_code": "@Override\npublic boolean filterResult(long resultNode, SmallArrayBasedLongToDoubleMap[] socialProofs) {\n SmallArrayBasedLongToDoubleMap socialProof = socialProofs[socialProofType];\n if (socialProof == null) {\n return false;\n }\n long[] allMetadata = socialProof.metadata();\n for (long metadataTimestamp : allMetadata) {\n if (cutoff < metadataTimestamp) {\n return true;\n }\n }\n return false;\n}", "focal_file_path": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "focal_method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "line_nums_new": "54-68", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.8403, "method_coverage_gold": 1.1892, "line_coverage_gold": 1.1415, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap.put:(JDJ)Z", "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.filterResult:(J[Lcom/twitter/graphjet/hashing/SmallArrayBasedLongToDoubleMap;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/filters/RecentEdgeMetadataFilter.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "twitter_GraphJet-master__3106fe3_74c7b1f__MultiThreadedPageRankTest_809148b6", "project_name": "twitter_GraphJet-master", "git_clone_url": "https://github.com/twitter/GraphJet.git", "rev1": "3106fe329408290db8b679a3883fcbfcfa407ffd", "rev2": "74c7b1f3360cf1a65636586777643b8ee0450d11", "rev1_date": "2016-11-15T17:39:43Z", "rev2_date": "2016-11-16T04:38:27Z", "git_diff_url": "https://github.com/twitter/GraphJet/compare/3106fe329408290db8b679a3883fcbfcfa407ffd...74c7b1f3360cf1a65636586777643b8ee0450d11", "test_file": "graphjet-core/src/test/java/com/twitter/graphjet/algorithms/MultiThreadedPageRankTest.java", "test_changes": [{"change_id": "205_twitter_GraphJet-master_3106fe3_74c7b1f_MultiThreadedPageRankTest", "test_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRankTest.testLesMisGraph:()V", "class": "MultiThreadedPageRankTest", "method": "testLesMisGraph", "module": "graphjet-core", "junit_selector": "com.twitter.graphjet.algorithms.MultiThreadedPageRankTest#testLesMisGraph", "old_test_code": null, "new_test_code": "@Test\npublic void testLesMisGraph() throws Exception {\n OutIndexedPowerLawMultiSegmentDirectedGraph graph = new OutIndexedPowerLawMultiSegmentDirectedGraph(1, 1000, 100, 10, 2, new IdentityEdgeTypeMask(), new NullStatsReceiver());\n for (int i = 0; i < LES_MIS_GRAPH.length; i++) {\n graph.addEdge(LES_MIS_GRAPH[i][0], LES_MIS_GRAPH[i][1], (byte) 0);\n }\n assertEquals(7, graph.getOutDegree(76));\n assertEquals(new LongArrayList(new long[] { 64, 65, 66, 63, 62, 48, 58 }), new LongArrayList(graph.getOutEdges(76)));\n assertEquals(1, graph.getOutDegree(30));\n assertEquals(new LongArrayList(new long[] { 23 }), new LongArrayList(graph.getOutEdges(30)));\n assertEquals(4, graph.getOutDegree(11));\n assertEquals(new LongArrayList(new long[] { 10, 3, 2, 0 }), new LongArrayList(graph.getOutEdges(11)));\n LongOpenHashSet nodes = new LongOpenHashSet();\n long maxNodeId = 0;\n for (int i = 0; i < LES_MIS_GRAPH.length; i++) {\n if (!nodes.contains(LES_MIS_GRAPH[i][0]))\n nodes.add(LES_MIS_GRAPH[i][0]);\n if (!nodes.contains(LES_MIS_GRAPH[i][1]))\n nodes.add(LES_MIS_GRAPH[i][1]);\n if (LES_MIS_GRAPH[i][0] > maxNodeId)\n maxNodeId = LES_MIS_GRAPH[i][0];\n if (LES_MIS_GRAPH[i][1] > maxNodeId)\n maxNodeId = LES_MIS_GRAPH[i][1];\n }\n assertEquals(76, maxNodeId);\n MultiThreadedPageRank pr = new MultiThreadedPageRank(graph, new LongArrayList(nodes), maxNodeId, 0.85, 10, 1e-15, 3);\n int numIterations = pr.run();\n double normL1 = pr.getL1Norm();\n AtomicDoubleArray pagerank = pr.getPageRankVector();\n assertEquals(10, numIterations);\n assertEquals(0.00108, normL1, 10e-4);\n List> scores = new ArrayList<>();\n for (int i = 0; i < maxNodeId + 1; i++) {\n scores.add(new AbstractMap.SimpleEntry<>((long) i, pagerank.get(i)));\n }\n scores.sort((e1, e2) -> e2.getValue() > e1.getValue() ? 1 : e2.getKey().compareTo(e1.getKey()));\n assertEquals(11, (long) scores.get(0).getKey());\n assertEquals(0.1088995, scores.get(0).getValue(), 10e-4);\n assertEquals(0, (long) scores.get(1).getKey());\n assertEquals(0.09538347, scores.get(1).getValue(), 10e-4);\n assertEquals(16, (long) scores.get(2).getKey());\n assertEquals(0.05104386, scores.get(2).getValue(), 10e-4);\n assertEquals(23, (long) scores.get(3).getKey());\n assertEquals(0.04389916, scores.get(3).getValue(), 10e-4);\n assertEquals(25, (long) scores.get(4).getKey());\n assertEquals(0.04095956, scores.get(4).getValue(), 10e-4);\n assertEquals(2, (long) scores.get(5).getKey());\n assertEquals(0.03868165, scores.get(5).getValue(), 10e-4);\n assertEquals(24, (long) scores.get(6).getKey());\n assertEquals(0.03617344, scores.get(6).getValue(), 10e-4);\n assertEquals(48, (long) scores.get(7).getKey());\n assertEquals(0.0290502, scores.get(7).getValue(), 10e-4);\n assertEquals(10, (long) scores.get(8).getKey());\n assertEquals(0.02714507, scores.get(8).getValue(), 10e-4);\n assertEquals(3, (long) scores.get(9).getKey());\n assertEquals(0.02714507, scores.get(9).getValue(), 10e-4);\n double totalMass = 0.0;\n for (int i = 0; i < maxNodeId + 1; i++) {\n totalMass += scores.get(i).getValue();\n }\n assertEquals(1.0, totalMass, 10e-10);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["296-370"], "old_production_code": "", "new_production_code": "public int run() {\n LongArrayList noOuts = new LongArrayList();\n LongIterator iter = nodes.iterator();\n while (iter.hasNext()) {\n long v = iter.nextLong();\n if (graph.getOutDegree(v) == 0) {\n noOuts.add(v);\n }\n }\n double dampingAmount = (1.0 - dampingFactor) / nodeCount;\n prVector = new AtomicDoubleArray((int) (maxNodeId + 1));\n nodes.forEach(v -> prVector.set((int) (long) v, 1.0 / nodeCount));\n LongArrayList[] nodePartitions = new LongArrayList[threads];\n int partitionSize = nodes.size() / threads;\n for (int i = 0; i < threads; i++) {\n int startPos = i * partitionSize;\n int endPos = i == (threads - 1) ? nodes.size() : (i + 1) * partitionSize;\n nodePartitions[i] = new LongArrayList(nodes.subList(startPos, endPos));\n }\n int i = 0;\n while (i < this.maxIterations && normL1 > tolerance) {\n iterate(dampingAmount, noOuts, nodePartitions);\n i++;\n }\n return i;\n}", "focal_file_path": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "focal_method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.run:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.run:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "line_nums_new": "132-163", "dependency_updated": "inserted", "score": 0.2811, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0909, "class": 1.0, "tfidf": 0.081}}, {"dep_id": 2, "method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getL1Norm:()D", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "line_nums_new": "170-172", "dependency_updated": "inserted", "score": 0.2639, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1818, "class": 1.0, "tfidf": 0.0277}}, {"dep_id": 1, "method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getPageRankVector:()Lcom/google/common/util/concurrent/AtomicDoubleArray", "file_path_old": null, "line_nums_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "line_nums_new": "179-181", "dependency_updated": "inserted", "score": 0.2619, "signal_scores": {"nc": 0.0, "lcs_u": 0.2353, "ed": 0.1765, "class": 1.0, "tfidf": 0.0131}}], "coverage_gold": 1.0, "branch_coverage_gold": 15.4095, "method_coverage_gold": 18.8352, "line_coverage_gold": 21.4821, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/twitter/graphjet/directed/OutIndexedPowerLawMultiSegmentDirectedGraph.addEdge:(JJB)V", "com/twitter/graphjet/directed/OutIndexedPowerLawMultiSegmentDirectedGraph.getOutEdges:(J)Lcom/twitter/graphjet/bipartite/api/EdgeIterator", "com/twitter/graphjet/algorithms/MultiThreadedPageRank.run:()I", "com/twitter/graphjet/bipartite/MultiSegmentIterator.hasNext:()Z", "com/twitter/graphjet/directed/OutIndexedPowerLawMultiSegmentDirectedGraph.getOutDegree:(J)I", "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getPageRankVector:()Lcom/google/common/util/concurrent/AtomicDoubleArray", "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getL1Norm:()D"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.run:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getPageRankVector:()Lcom/google/common/util/concurrent/AtomicDoubleArray", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/twitter/graphjet/algorithms/MultiThreadedPageRank.getL1Norm:()D", "change_type": "ADD", "file_path_old": null, "file_path_new": "graphjet-core/src/main/java/com/twitter/graphjet/algorithms/MultiThreadedPageRank.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "master", "java_version": 8} {"task_id": "vdenotaris_spring-boot-security-saml-sample-2.4.0.RELEASE__3b23315_0b9518f__SSOControllerTest_b44bff86", "project_name": "vdenotaris_spring-boot-security-saml-sample-2.4.0.RELEASE", "git_clone_url": "https://github.com/vdenotaris/spring-boot-security-saml-sample.git", "rev1": "3b23315d682649db4307b68568a99acbe191625f", "rev2": "0b9518f1b6a97d4c040f55a50b57562c0997d243", "rev1_date": "2018-05-21T20:11:06Z", "rev2_date": "2018-05-21T20:24:54Z", "git_diff_url": "https://github.com/vdenotaris/spring-boot-security-saml-sample/compare/3b23315d682649db4307b68568a99acbe191625f...0b9518f1b6a97d4c040f55a50b57562c0997d243", "test_file": "src/test/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOControllerTest.java", "test_changes": [{"change_id": "14_vdenotaris_spring-boot-security-saml-sample-2.4.0.RELEASE_3b23315_0b9518f_SSOControllerTest", "test_sign": "com/vdenotaris/spring/boot/security/saml/web/controllers/SSOControllerTest.testIdpSelectionWithoutForwarding:()V", "class": "SSOControllerTest", "method": "testIdpSelectionWithoutForwarding", "module": "", "junit_selector": "com.vdenotaris.spring.boot.security.saml.web.controllers.SSOControllerTest#testIdpSelectionWithoutForwarding", "old_test_code": null, "new_test_code": "@Test\npublic void testIdpSelectionWithoutForwarding() throws Exception {\n mockMvc.perform(get(\"/saml/idpSelection\").session(mockAnonymousHttpSession())).andExpect(status().isOk()).andExpect(view().name(\"redirect:/\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-85"], "old_production_code": "@RequestMapping(value = \"/idpSelection\", method = RequestMethod.GET)\npublic String idpSelection(HttpServletRequest request, Model model) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (auth == null)\n LOG.debug(\"Current authentication instance from security context is null\");\n else\n LOG.debug(\"Current authentication instance from security context: \" + this.getClass().getSimpleName());\n if (auth == null || (auth instanceof AnonymousAuthenticationToken)) {\n Set idps = metadata.getIDPEntityNames();\n for (String idp : idps) LOG.info(\"Configured Identity Provider for SSO: \" + idp);\n model.addAttribute(\"idps\", idps);\n return \"saml/idpselection\";\n } else {\n LOG.warn(\"The current user is already logged.\");\n return \"redirect:/landing\";\n }\n}", "new_production_code": "@RequestMapping(value = \"/idpSelection\", method = RequestMethod.GET)\npublic String idpSelection(HttpServletRequest request, Model model) {\n if (!(SecurityContextHolder.getContext().getAuthentication() instanceof AnonymousAuthenticationToken)) {\n LOG.warn(\"The current user is already logged.\");\n return \"redirect:/landing\";\n } else {\n if (isForwarded(request)) {\n Set idps = metadata.getIDPEntityNames();\n for (String idp : idps) LOG.info(\"Configured Identity Provider for SSO: \" + idp);\n model.addAttribute(\"idps\", idps);\n return \"saml/idpselection\";\n } else {\n LOG.warn(\"Direct accesses to '/idpSelection' route are not allowed\");\n return \"redirect:/\";\n }\n }\n}", "focal_file_path": "src/main/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.java", "focal_method_sign": "com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.idpSelection:(Ljavax/servlet/http/HttpServletRequest;Lorg/springframework/ui/Model;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.idpSelection:(Ljavax/servlet/http/HttpServletRequest;Lorg/springframework/ui/Model;)Ljava/lang/String", "file_path_old": "src/main/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.java", "line_nums_old": "46-64", "file_path_new": "src/main/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.java", "line_nums_new": "45-62", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.36363636363636365, "branch_coverage_gold": 21.4286, "method_coverage_gold": 89.8551, "line_coverage_gold": 85.9903, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdenotaris/spring/boot/security/saml/web/CommonTestSupport.mockAnonymousHttpSession:()Lorg/springframework/mock/web/MockHttpSession", "com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.idpSelection:(Ljavax/servlet/http/HttpServletRequest;Lorg/springframework/ui/Model;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.idpSelection:(Ljavax/servlet/http/HttpServletRequest;Lorg/springframework/ui/Model;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.java", "file_path_new": "src/main/java/com/vdenotaris/spring/boot/security/saml/web/controllers/SSOController.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "2.4.0.RELEASE", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__107ad73_c65e3a5__Test_CodeForDocs_V2_578bc3c0", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "107ad7337a4fde9e77634e97a5a02b81c6465260", "rev2": "c65e3a5547043f7ce575a4c93647f709b6ca039f", "rev1_date": "2015-08-11T17:54:20Z", "rev2_date": "2015-08-11T23:17:38Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/107ad7337a4fde9e77634e97a5a02b81c6465260...c65e3a5547043f7ce575a4c93647f709b6ca039f", "test_file": "src/test/java/de/vandermeer/asciitable/Test_CodeForDocs_V2.java", "test_changes": [{"change_id": "58_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_1Column:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_1Column", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_1Column", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_1Column() {\n V2_AsciiTable at = new V2_AsciiTable(1);\n at.addRuleStrong();\n at.addRow(\"Table Heading\");\n at.addRule();\n at.addRow(\"first row (col1)\");\n at.addRule();\n at.addRow(\"second row (col1)\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-48"], "old_production_code": "", "new_production_code": "public final void addRule() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.1399, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1739, "class": 0.0, "tfidf": 0.0443}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.1263, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.2174, "class": 0.0, "tfidf": 0.0383}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1239, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1739, "class": 0.0, "tfidf": 0.03}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1191, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1304, "class": 0.0, "tfidf": 0.0399}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.074, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0435, "class": 0.0, "tfidf": 0.0342}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0632, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0435, "class": 0.0, "tfidf": 0.0507}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0606, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0435, "class": 0.0, "tfidf": 0.0398}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "59_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_3Columns:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_3Columns", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_3Columns", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_3Columns() {\n V2_AsciiTable at = new V2_AsciiTable(3);\n at.addRuleStrong();\n at.addRow(null, null, \"Table Heading\");\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information\", \"and more information\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\", \"and more information (col3)\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-82"], "old_production_code": "", "new_production_code": "public final void addRule() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.137, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 0.0, "tfidf": 0.0369}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.1301, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.25, "class": 0.0, "tfidf": 0.032}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1256, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.0423}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1166, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.125, "class": 0.0, "tfidf": 0.033}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.0724, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0417, "class": 0.0, "tfidf": 0.0285}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0661, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0644}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0588, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0331}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "60_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_4Columns:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_4Columns", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_4Columns", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_4Columns() {\n V2_AsciiTable at = new V2_AsciiTable(4);\n at.addRuleStrong();\n at.addRow(null, null, null, \"Table Heading\");\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information\", \"and more information\", \"even more\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\", \"and more information (col3)\", \"even more\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-99"], "old_production_code": "", "new_production_code": "public final void addRule() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.1363, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 0.0, "tfidf": 0.0342}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.1296, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.25, "class": 0.0, "tfidf": 0.0296}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1268, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.0472}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.116, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.125, "class": 0.0, "tfidf": 0.0305}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.0719, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0417, "class": 0.0, "tfidf": 0.0264}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0674, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0699}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0582, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0306}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "61_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_ColSpanning:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_ColSpanning", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_ColSpanning", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_ColSpanning() {\n V2_AsciiTable at = new V2_AsciiTable(5);\n at.addRuleStrong();\n at.addRow(null, null, null, null, \"span all 5 columns\");\n at.addRule();\n at.addRow(null, null, null, \"span 4 columns\", \"just 1 column\");\n at.addRule();\n at.addRow(null, null, \"span 3 columns\", null, \"span 2 columns\");\n at.addRule();\n at.addRow(null, \"span 2 columns\", null, null, \"span 3 columns\");\n at.addRule();\n at.addRow(\"just 1 column\", null, null, null, \"span 4 columns\");\n at.addRule();\n at.addRow(\"just 1 column\", \"just 1 column\", \"just 1 column\", \"just 1 column\", \"just 1 column\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["118-139"], "old_production_code": "", "new_production_code": "public final void addRuleStrong() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, V2_E_RuleStyle.STRONG, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, V2_E_RuleStyle.STRONG, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "focal_all_deps_scored": [{"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.1504, "signal_scores": {"nc": 0.0, "lcs_u": 0.5385, "ed": 0.2593, "class": 0.0, "tfidf": 0.0538}}, {"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.1397, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1481, "class": 0.0, "tfidf": 0.0614}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1327, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1111, "class": 0.0, "tfidf": 0.1111}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1318, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1481, "class": 0.0, "tfidf": 0.0815}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0757, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.037, "class": 0.0, "tfidf": 0.1085}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.068, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.037, "class": 0.0, "tfidf": 0.013}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0538, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.037, "class": 0.0, "tfidf": 0.0151}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "62_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_TableThemes:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_TableThemes", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_TableThemes", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_TableThemes() {\n V2_AsciiTable at = new V2_AsciiTable(1);\n at.addRule();\n at.addRow(\"some text with padding\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setTheme(V2_E_TableThemes.UTF_DOUBLE_LIGHT.get());\n rend.setTheme(V2_E_TableThemes.UTF_DOUBLE.get());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["159-175"], "old_production_code": "", "new_production_code": "public V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n V2_Validator.testTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.2093, "signal_scores": {"nc": 0.0, "lcs_u": 0.875, "ed": 0.2593, "class": 0.0, "tfidf": 0.0518}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.1548, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.0741, "class": 0.0, "tfidf": 0.1062}}, {"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.1277, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1481, "class": 0.0, "tfidf": 0.0103}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.1247, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1481, "class": 0.0, "tfidf": 0.0513}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.1221, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1481, "class": 0.0, "tfidf": 0.0403}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.0733, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0741, "class": 0.0, "tfidf": 0.0098}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.2581, "line_coverage_gold": 23.8964, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "63_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_PaddingChar:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_PaddingChar", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_PaddingChar", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_PaddingChar() {\n V2_AsciiTable at = new V2_AsciiTable(1);\n at.addRule();\n at.addRow(\"some text with padding\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n rend.setPaddingChar('*');\n rend.setPaddingChar('-');\n rend.setPaddingChar('␣');\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["141-157"], "old_production_code": "", "new_production_code": "public V2_AsciiTableRenderer setPaddingChar(char pChar) {\n this.paddingChar = pChar;\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setPaddingChar:(C)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setPaddingChar:(C)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "349-352", "dependency_updated": "inserted", "score": 0.2562, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.4444, "class": 0.0, "tfidf": 0.1349}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1386, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.1111, "class": 0.0, "tfidf": 0.0112}}, {"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.128, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1481, "class": 0.0, "tfidf": 0.0118}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0985, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1111, "class": 0.0, "tfidf": 0.0594}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0954, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1111, "class": 0.0, "tfidf": 0.0466}}], "coverage_gold": 1.0, "branch_coverage_gold": 6.9196, "method_coverage_gold": 32.2581, "line_coverage_gold": 23.7044, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setPaddingChar:(C)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setPaddingChar:(C)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "64_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_2Columns:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_2Columns", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_2Columns", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_2Columns() {\n V2_AsciiTable at = new V2_AsciiTable(2);\n at.addRuleStrong();\n at.addRow(null, \"Table Heading\");\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["50-65"], "old_production_code": "", "new_production_code": "public final void addRule() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.138, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 0.0, "tfidf": 0.0411}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.131, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.25, "class": 0.0, "tfidf": 0.0356}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1245, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.0375}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1175, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.125, "class": 0.0, "tfidf": 0.0369}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.0731, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0417, "class": 0.0, "tfidf": 0.0317}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.065, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0596}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0597, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0369}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "65_vdmeer_asciitable-v0.3.2_107ad73_c65e3a5_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/Test_CodeForDocs_V2.test_Readme_Example_5Columns:()V", "class": "Test_CodeForDocs_V2", "method": "test_Readme_Example_5Columns", "module": "", "junit_selector": "de.vandermeer.asciitable.Test_CodeForDocs_V2#test_Readme_Example_5Columns", "old_test_code": null, "new_test_code": "@Test\npublic void test_Readme_Example_5Columns() {\n V2_AsciiTable at = new V2_AsciiTable(5);\n at.addRuleStrong();\n at.addRow(null, null, null, null, \"Table Heading\");\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information\", \"and more information\", \"even more\", \"more\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\", \"and more information (col3)\", \"even more\", \"more\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new V2_WidthByAbsolute().setWidth(76));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-116"], "old_production_code": "", "new_production_code": "public final void addRule() {\n if (this.table.size() == 0) {\n this.table.add(new V2_TableRow(V2_E_RuleType.TOP, this.columns));\n } else {\n this.table.add(new V2_TableRow(V2_E_RuleType.MID, this.columns));\n }\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "58-65", "dependency_updated": "inserted", "score": 0.1357, "signal_scores": {"nc": 0.0, "lcs_u": 0.5714, "ed": 0.1667, "class": 0.0, "tfidf": 0.0314}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "72-79", "dependency_updated": "inserted", "score": 0.129, "signal_scores": {"nc": 0.0, "lcs_u": 0.4615, "ed": 0.25, "class": 0.0, "tfidf": 0.0272}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "360-366", "dependency_updated": "inserted", "score": 0.1277, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1667, "class": 0.0, "tfidf": 0.051}}, {"dep_id": 6, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "line_nums_new": "89-93", "dependency_updated": "inserted", "score": 0.1154, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.125, "class": 0.0, "tfidf": 0.028}}, {"dep_id": 5, "method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "line_nums_new": "234-236", "dependency_updated": "inserted", "score": 0.0714, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0417, "class": 0.0, "tfidf": 0.0243}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "line_nums_new": "77-82", "dependency_updated": "inserted", "score": 0.0684, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0739}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "line_nums_new": "43-48", "dependency_updated": "inserted", "score": 0.0576, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0417, "class": 0.0, "tfidf": 0.0281}}], "coverage_gold": 0.9090909090909091, "branch_coverage_gold": 7.1429, "method_coverage_gold": 32.9032, "line_coverage_gold": 24.0883, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["799b52ae9c2546bfed75501e73f9b7f067ad5862", "a0d688aa0e1e7af505aa40b3c8a42a0c061ed2a6"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.setWidth:(I)Lde/vandermeer/asciitable/v2/core/V2_WidthByAbsolute", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/core/V2_WidthByAbsolute.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/core/V2_Width;)Lde/vandermeer/asciitable/v2/V2_AsciiTableRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRuleStrong:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/core/V2_TableRow", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/V2_AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__ac43215_5e3ba86__AsciiTable_Tests_24c4f992", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "ac4321501f728e6f1aea82b51871367b515323f2", "rev2": "5e3ba86556f7f72ec3976a2c88b1d7fcd0aa80e6", "rev1_date": "2014-12-10T20:04:57Z", "rev2_date": "2014-12-10T20:27:41Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/ac4321501f728e6f1aea82b51871367b515323f2...5e3ba86556f7f72ec3976a2c88b1d7fcd0aa80e6", "test_file": "src/test/java/de/vandermeer/asciitable/v1/AsciiTable_Tests.java", "test_changes": [{"change_id": "66_vdmeer_asciitable-v0.3.2_ac43215_5e3ba86_AsciiTable_Tests", "test_sign": "de/vandermeer/asciitable/v1/AsciiTable_Tests.testAddRow:()V", "class": "AsciiTable_Tests", "method": "testAddRow", "module": "", "junit_selector": "de.vandermeer.asciitable.v1.AsciiTable_Tests#testAddRow", "old_test_code": null, "new_test_code": "@Test\npublic void testAddRow() {\n AsciiTable at;\n at = new AsciiTable();\n assertEquals(-1, at.addRow((Object) null));\n at = AsciiTable.newTable(3, 76);\n assertNotNull(at);\n assertEquals(0, at.addRow((Object) null));\n assertEquals(0, at.addRow());\n assertEquals(0, at.addRow(new Object[] {}));\n assertEquals(0, at.addRow(\"\"));\n assertEquals(0, at.addRow(\"\", \"\"));\n assertEquals(0, at.addRow(\"\", \"\", \"\", \"\"));\n assertEquals(0, at.addRow(\"\", \"\", \"\", \"\", \"\"));\n assertEquals(1, at.addRow(null, null, null));\n assertEquals(1, at.table.size());\n assertEquals(2, at.addRow(\"\", \"\", \"\"));\n assertEquals(2, at.table.size());\n assertEquals(3, at.addRow(\"column 1 string, well in range\", \"column 2 string, well in range\", \"column 3 string, well in range\"));\n assertEquals(3, at.table.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["179-204"], "old_production_code": "", "new_production_code": "public int addRow(Object... columns) {\n if (this.columns == null) {\n return -1;\n }\n if (columns == null || columns.length != this.getColumnCount()) {\n return 0;\n }\n String[][] ar = new String[this.getColumnCount()][];\n for (int i = 0; i < columns.length; i++) {\n Object o = columns[i];\n ar[i] = this.obj2At(o, i + 1);\n }\n ar = ArrayTransformations.NORMALISE_ARRAY(this.getColumnCount(), ar);\n ar = ArrayTransformations.FLIP_ARRAY(ar);\n this.table.put(this.table.size() + 1, ar);\n return this.table.size();\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "260-278", "dependency_updated": "inserted", "score": 0.5968, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 0.0, "tfidf": 0.0865}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "182-189", "dependency_updated": "inserted", "score": 0.0346, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0, "class": 0.0, "tfidf": 0.0534}}], "coverage_gold": 0.9375, "branch_coverage_gold": 11.4667, "method_coverage_gold": 7.8947, "line_coverage_gold": 19.8357, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "69_vdmeer_asciitable-v0.3.2_ac43215_5e3ba86_AsciiTable_Tests", "test_sign": "de/vandermeer/asciitable/v1/AsciiTable_Tests.testAPIDocInts:()V", "class": "AsciiTable_Tests", "method": "testAPIDocInts", "module": "", "junit_selector": "de.vandermeer.asciitable.v1.AsciiTable_Tests#testAPIDocInts", "old_test_code": null, "new_test_code": "@Test\npublic void testAPIDocInts() {\n AsciiTable at = AsciiTable.newTable(3, 76);\n at.addRow(null, null, \"Table Heading\");\n at.addRow(\"first row (col1)\", \"with some information\", \"and more information\");\n at.addRow(\"second row (col1)\", \"with some information (col2)\", \"and more information (col3)\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-40"], "old_production_code": "", "new_production_code": "public int addRow(Object... columns) {\n if (this.columns == null) {\n return -1;\n }\n if (columns == null || columns.length != this.getColumnCount()) {\n return 0;\n }\n String[][] ar = new String[this.getColumnCount()][];\n for (int i = 0; i < columns.length; i++) {\n Object o = columns[i];\n ar[i] = this.obj2At(o, i + 1);\n }\n ar = ArrayTransformations.NORMALISE_ARRAY(this.getColumnCount(), ar);\n ar = ArrayTransformations.FLIP_ARRAY(ar);\n this.table.put(this.table.size() + 1, ar);\n return this.table.size();\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "260-278", "dependency_updated": "inserted", "score": 0.1334, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 0.0, "tfidf": 0.0519}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "182-189", "dependency_updated": "inserted", "score": 0.0672, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 0.0, "tfidf": 0.0979}}], "coverage_gold": 0.8125, "branch_coverage_gold": 10.4, "method_coverage_gold": 7.8947, "line_coverage_gold": 19.3662, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:(Ljava/lang/Integer;Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "71_vdmeer_asciitable-v0.3.2_ac43215_5e3ba86_AsciiTable_Tests", "test_sign": "de/vandermeer/asciitable/v1/AsciiTable_Tests.testAPIDocArray:()V", "class": "AsciiTable_Tests", "method": "testAPIDocArray", "module": "", "junit_selector": "de.vandermeer.asciitable.v1.AsciiTable_Tests#testAPIDocArray", "old_test_code": null, "new_test_code": "@Test\npublic void testAPIDocArray() {\n Integer[] columns = new Integer[] { 10, 15, 20 };\n AsciiTable at = AsciiTable.newTable(columns);\n at.addRow(null, null, \"Table Heading\");\n at.addRow(\"row 1\", \"this is col 2\", \"and this is column 3\");\n at.addRow(\"row 2\", \"some text for column 2\", \"and some text for column 3\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-55"], "old_production_code": "", "new_production_code": "public int addRow(Object... columns) {\n if (this.columns == null) {\n return -1;\n }\n if (columns == null || columns.length != this.getColumnCount()) {\n return 0;\n }\n String[][] ar = new String[this.getColumnCount()][];\n for (int i = 0; i < columns.length; i++) {\n Object o = columns[i];\n ar[i] = this.obj2At(o, i + 1);\n }\n ar = ArrayTransformations.NORMALISE_ARRAY(this.getColumnCount(), ar);\n ar = ArrayTransformations.FLIP_ARRAY(ar);\n this.table.put(this.table.size() + 1, ar);\n return this.table.size();\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "focal_method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "260-278", "dependency_updated": "inserted", "score": 0.1618, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2727, "class": 0.0, "tfidf": 0.1216}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:([Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "line_nums_new": "199-206", "dependency_updated": "inserted", "score": 0.0844, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.0909, "class": 0.0, "tfidf": 0.2013}}], "coverage_gold": 0.8421052631578947, "branch_coverage_gold": 10.1333, "method_coverage_gold": 7.8947, "line_coverage_gold": 19.2488, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v1/AsciiTable.newTable:([Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.newTable:([Ljava/lang/Integer;)Lde/vandermeer/asciitable/v1/AsciiTable", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v1/AsciiTable.addRow:([Ljava/lang/Object;)I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v1/AsciiTable.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__ac43215_5e3ba86__TestMe_3cac5920", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "ac4321501f728e6f1aea82b51871367b515323f2", "rev2": "5e3ba86556f7f72ec3976a2c88b1d7fcd0aa80e6", "rev1_date": "2014-12-10T20:04:57Z", "rev2_date": "2014-12-10T20:27:41Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/ac4321501f728e6f1aea82b51871367b515323f2...5e3ba86556f7f72ec3976a2c88b1d7fcd0aa80e6", "test_file": "src/test/java/de/vandermeer/asciitable/v2/TestMe.java", "test_changes": [{"change_id": "67_vdmeer_asciitable-v0.3.2_ac43215_5e3ba86_TestMe", "test_sign": "de/vandermeer/asciitable/v2/TestMe.testMe:()V", "class": "TestMe", "method": "testMe", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.TestMe#testMe", "old_test_code": null, "new_test_code": "@Test\npublic void testMe() {\n Table at = new Table(3);\n at.addMidRule();\n at.addRow(null, null, \"Table Heading\");\n at.addMidRule();\n at.addRow(\"first row (col1)\", \"with some information\", \"and more information\");\n at.addMidRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\", \"and more information (col3)\");\n at.addMidRule();\n TableRowRenderer rend = new TableRowRenderer(at.getColumnCount(), 76);\n rend.setTheme(SimpleThemes.DOUBLE);\n List list = rend.render(at.table);\n for (StrBuilder sb : list) {\n System.out.println(sb.toString());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["14-51"], "old_production_code": "", "new_production_code": "public List render(List table) {\n this.prepareTable(table);\n List ret = new LinkedList();\n for (TableRow row : table) {\n ret.add(this.renderRow(row));\n }\n return ret;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/TableRowRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/TableRowRenderer.render:(Ljava/util/List;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/TableRowRenderer.render:(Ljava/util/List;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/TableRowRenderer.java", "line_nums_new": "546-554", "dependency_updated": "inserted", "score": 0.111, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.1667, "class": 0.0, "tfidf": 0.2302}}, {"dep_id": 3, "method_sign": "de/vandermeer/asciitable/v2/TableRowRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/ThemeSimple;)Lde/vandermeer/asciitable/v2/TableRowRenderer", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/TableRowRenderer.java", "line_nums_new": "99-105", "dependency_updated": "inserted", "score": 0.0996, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.25, "class": 0.0, "tfidf": 0.0608}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/Table.addMidRule:()V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "line_nums_new": "25-32", "dependency_updated": "inserted", "score": 0.0934, "signal_scores": {"nc": 0.0, "lcs_u": 0.2, "ed": 0.2, "class": 0.0, "tfidf": 0.1069}}, {"dep_id": 2, "method_sign": "de/vandermeer/asciitable/v2/Table.getColumnCount:()I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": 0.0319, "signal_scores": {"nc": 0.0, "lcs_u": 0.0714, "ed": 0.0714, "class": 0.0, "tfidf": 0.0321}}, {"dep_id": 4, "method_sign": "de/vandermeer/asciitable/v2/Table.addRow:([Ljava/lang/Object;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "line_nums_new": "38-46", "dependency_updated": "inserted", "score": 0.0079, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0336}}], "coverage_gold": 0.9047619047619048, "branch_coverage_gold": 42.1333, "method_coverage_gold": 31.5789, "line_coverage_gold": 35.5634, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/Table.addMidRule:()V", "de/vandermeer/asciitable/v2/Table.getColumnCount:()I", "de/vandermeer/asciitable/v2/TableRowRenderer.render:(Ljava/util/List;)Ljava/util/List", "de/vandermeer/asciitable/v2/Table.addRow:([Ljava/lang/Object;)V", "de/vandermeer/asciitable/v2/TableRowRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/ThemeSimple;)Lde/vandermeer/asciitable/v2/TableRowRenderer"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/Table.addMidRule:()V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/TableRowRenderer.render:(Ljava/util/List;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/TableRowRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/Table.getColumnCount:()I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/TableRowRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/ThemeSimple;)Lde/vandermeer/asciitable/v2/TableRowRenderer", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/TableRowRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/Table.addRow:([Ljava/lang/Object;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/Table.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_CodeForDocs_4fe61c33", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/commons/Test_CodeForDocs.java", "test_changes": [{"change_id": "140_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_CodeForDocs", "test_sign": "de/vandermeer/asciitable/commons/Test_CodeForDocs.test_TableWithoutArrayNeed:()V", "class": "Test_CodeForDocs", "method": "test_TableWithoutArrayNeed", "module": "", "junit_selector": "de.vandermeer.asciitable.commons.Test_CodeForDocs#test_TableWithoutArrayNeed", "old_test_code": null, "new_test_code": "@Test\npublic void test_TableWithoutArrayNeed() {\n V2_AsciiTable at = new V2_AsciiTable();\n at.addRule();\n at.addRow(\"1-1\", \"1-2\", \"1-3\");\n at.addRule();\n at.addRow(\"2-1\", \"2-2\", \"2-3\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthAbsoluteEven(19));\n RenderedTable rt = rend.render(at);\n System.out.println(rt);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-51"], "old_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n V2_TableThemeBuilder.testTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "new_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n ThemeValidator.validateTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "362-369", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "426-433", "dependency_updated": "updated", "score": 0.1402, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "80-135", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "116-197", "dependency_updated": "updated", "score": 0.1162, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1364, "class": 0.0, "tfidf": 0.0234}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 33.4586, "method_coverage_gold": 50.6098, "line_coverage_gold": 43.8596, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/RenderedTable.toString:()Ljava/lang/String", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/render/V2_Width;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "141_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_CodeForDocs", "test_sign": "de/vandermeer/asciitable/commons/Test_CodeForDocs.test_TableWithArrayNeed:()V", "class": "Test_CodeForDocs", "method": "test_TableWithArrayNeed", "module": "", "junit_selector": "de.vandermeer.asciitable.commons.Test_CodeForDocs#test_TableWithArrayNeed", "old_test_code": null, "new_test_code": "@Test\npublic void test_TableWithArrayNeed() {\n V2_AsciiTable at = new V2_AsciiTable();\n at.addRule();\n at.addRow(\"1-1\", \"1-2 text\", \"1-3\");\n at.addRule();\n at.addRow(\"2-1\", \"2-2\", \"2-3\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthAbsoluteEven(19));\n RenderedTable rt = rend.render(at);\n System.out.println(rt);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-80"], "old_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n V2_TableThemeBuilder.testTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "new_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n ThemeValidator.validateTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "362-369", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "426-433", "dependency_updated": "updated", "score": 0.145, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2105, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "80-135", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "116-197", "dependency_updated": "updated", "score": 0.1197, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1579, "class": 0.0, "tfidf": 0.0232}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 34.3985, "method_coverage_gold": 50.6098, "line_coverage_gold": 44.1228, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/RenderedTable.toString:()Ljava/lang/String", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/render/V2_Width;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_CodeForDocs_V2_e37e689f", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/Test_CodeForDocs_V2.java", "test_changes": [{"change_id": "137_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_CodeForDocs_V2", "test_sign": "de/vandermeer/asciitable/v2/Test_CodeForDocs_V2.test_Example_WidthLongestWord:()V", "class": "Test_CodeForDocs_V2", "method": "test_Example_WidthLongestWord", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.Test_CodeForDocs_V2#test_Example_WidthLongestWord", "old_test_code": null, "new_test_code": "@Test\npublic void test_Example_WidthLongestWord() {\n V2_AsciiTable at = new V2_AsciiTable(0);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthLongestWord());\n System.out.println(\"longest word 1\");\n System.out.println(rend.render(at));\n at = new V2_AsciiTable(1);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthLongestWord());\n System.out.println(\"longest word 2\");\n System.out.println(rend.render(at));\n at = new V2_AsciiTable(0);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\").setPadding(new int[] { 2, 3 });\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\").setPadding(new int[] { 3, 4 });\n at.addRule();\n rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthLongestWord());\n System.out.println(\"longest word 3\");\n System.out.println(rend.render(at));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["330-369"], "old_production_code": "@Override\npublic RenderedTable render(V2_AsciiTable table) {\n this.rows.clear();\n if (table == null || table.getColumnCount() == 0) {\n throw new IllegalArgumentException(\"wrong table argument: table is null or has no columns\");\n }\n if (this.width == null) {\n throw new IllegalArgumentException(\"wrong table width argument: no width set\");\n }\n int[] cols = this.width.setColumnCount(table.getColumnCount()).getColumnWidths(table.getDefaultPadding());\n V2_Utilities.fixTableRules(table);\n for (V2_Row row : table.getTable()) {\n this.rows.add(new ProcessedRow(row, cols, table.getColumnCount()));\n }\n BorderType[] array = V2_Utilities.getBorderTypes_TopRule((this.rows.size() > 1) ? this.rows.get(1) : null, this.rows.get(0).getOriginalRow(), table.getColumnCount());\n this.rows.get(0).setBorderTypes(array);\n array = V2_Utilities.getBorderTypes_BottomRule((this.rows.size() > 1) ? this.rows.get(this.rows.size() - 2) : null, this.rows.get(this.rows.size() - 1).getOriginalRow(), table.getColumnCount());\n this.rows.get(this.rows.size() - 1).setBorderTypes(array);\n if (this.rows.size() > 2) {\n for (int r = 1; r < this.rows.size() - 1; r++) {\n array = V2_Utilities.getBorderTypes_MidRule(this.rows.get(r - 1), (r < this.rows.size() - 2) ? this.rows.get(r + 1) : null, this.rows.get(r).getOriginalRow(), table.getColumnCount());\n this.rows.get(r).setBorderTypes(array);\n }\n }\n List ret = new LinkedList();\n for (ProcessedRow row : this.rows) {\n V2_Row original = row.getOriginalRow();\n if (original instanceof ContentRow) {\n ret.add(this.renderContentRow(row, cols));\n } else if (original instanceof RuleRow) {\n ret.add(this.renderRuleRow(row, cols));\n } else {\n System.err.println(\"ERROR in renderering\");\n }\n }\n return new RenderedTable(ret);\n}", "new_production_code": "@Override\npublic RenderedTable render(V2_AsciiTable table) {\n this.rows.clear();\n if (table == null || table.getColumnCount() == 0) {\n throw new IllegalArgumentException(\"wrong table argument: table is null or has no columns\");\n }\n if (this.width == null) {\n throw new IllegalArgumentException(\"wrong table width argument: no width set\");\n }\n int[] cols = this.width.getColumnWidths(table);\n for (V2_Row row : table.getTable()) {\n ProcessedRow pr = new ProcessedRow(row, cols, table.getColumnCount());\n if (row instanceof ContentRow) {\n ContentRow crow = (ContentRow) row;\n String[][] procColumns = RenderUtilities.createContentArray(crow.getColumns(), cols, crow.getPadding());\n pr.setProcessedColumns(procColumns);\n pr.setBorderTypes(RenderUtilities.getBorderTypes_ContentRow(procColumns[0], crow, table.getColumnCount()));\n }\n this.rows.add(pr);\n }\n BorderType[] array = RenderUtilities.getBorderTypes_TopRule((this.rows.size() > 1) ? this.rows.get(1) : null, this.rows.get(0).getOriginalRow(), table.getColumnCount());\n this.rows.get(0).setBorderTypes(array);\n array = RenderUtilities.getBorderTypes_BottomRule((this.rows.size() > 1) ? this.rows.get(this.rows.size() - 2) : null, this.rows.get(this.rows.size() - 1).getOriginalRow(), table.getColumnCount());\n this.rows.get(this.rows.size() - 1).setBorderTypes(array);\n if (this.rows.size() > 2) {\n for (int r = 1; r < this.rows.size() - 1; r++) {\n array = RenderUtilities.getBorderTypes_MidRule(this.rows.get(r - 1), (r < this.rows.size() - 2) ? this.rows.get(r + 1) : null, this.rows.get(r).getOriginalRow(), table.getColumnCount());\n this.rows.get(r).setBorderTypes(array);\n }\n }\n List ret = new LinkedList();\n for (int i = 0; i < this.rows.size(); i++) {\n V2_Row original = this.rows.get(i).getOriginalRow();\n if (original instanceof ContentRow) {\n ret.add(this.renderContentRow(this.rows.get(i), cols));\n } else if (original instanceof RuleRow) {\n if (i == 0) {\n ret.add(this.renderRuleRow(this.rows.get(i), cols, RuleRowType.TOP));\n } else if (i == (this.rows.size() - 1)) {\n ret.add(this.renderRuleRow(this.rows.get(i), cols, RuleRowType.BOTTOM));\n } else {\n ret.add(this.renderRuleRow(this.rows.get(i), cols, null));\n }\n } else {\n System.err.println(\"ERROR in renderering\");\n }\n }\n return new RenderedTable(ret);\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "80-135", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "116-197", "dependency_updated": "updated", "score": 0.151, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.16, "class": 0.0, "tfidf": 0.0298}}, {"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "362-369", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "426-433", "dependency_updated": "updated", "score": 0.1146, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.16, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.90625, "branch_coverage_gold": 36.4662, "method_coverage_gold": 50.6098, "line_coverage_gold": 44.0351, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "de/vandermeer/asciitable/v2/row/ContentRow.setPadding:([I)Z", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/render/V2_Width;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/RenderedTable.toString:()Ljava/lang/String", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_CodeForDocs_d407c55e", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/render/Test_CodeForDocs.java", "test_changes": [{"change_id": "136_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_CodeForDocs", "test_sign": "de/vandermeer/asciitable/v2/render/Test_CodeForDocs.test_TableWithoutArrayNeed:()V", "class": "Test_CodeForDocs", "method": "test_TableWithoutArrayNeed", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.render.Test_CodeForDocs#test_TableWithoutArrayNeed", "old_test_code": null, "new_test_code": "@Test\npublic void test_TableWithoutArrayNeed() {\n V2_AsciiTable at = new V2_AsciiTable();\n at.addRule();\n at.addRow(\"1-1\", \"1-2\", \"1-3\");\n at.addRule();\n at.addRow(\"2-1\", \"2-2\", \"2-3\");\n at.addRule();\n V2_AsciiTableRenderer rend = new V2_AsciiTableRenderer();\n rend.setTheme(V2_E_TableThemes.UTF_LIGHT.get());\n rend.setWidth(new WidthAbsoluteEven(25));\n rend.setPaddingChar('_');\n RenderedTable rt = rend.render(at);\n System.out.println(rt);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-49"], "old_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n V2_TableThemeBuilder.testTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "new_production_code": "@Override\npublic V2_AsciiTableRenderer setTheme(V2_TableTheme theme) {\n if (theme != null) {\n ThemeValidator.validateTableTheme(theme);\n this.theme = theme;\n }\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "362-369", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "426-433", "dependency_updated": "updated", "score": 0.1402, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 0.0, "tfidf": 0.0}}, {"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_old": "80-135", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "line_nums_new": "116-197", "dependency_updated": "updated", "score": 0.1159, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1364, "class": 0.0, "tfidf": 0.0219}}], "coverage_gold": 0.9310344827586207, "branch_coverage_gold": 33.4586, "method_coverage_gold": 51.2195, "line_coverage_gold": 44.0351, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/RenderedTable.toString:()Ljava/lang/String", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/themes/V2_E_TableThemes.get:()Lde/vandermeer/asciitable/v2/themes/V2_TableTheme", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setWidth:(Lde/vandermeer/asciitable/v2/render/V2_Width;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setPaddingChar:(C)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.render:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)Lde/vandermeer/asciitable/v2/RenderedTable", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.setTheme:(Lde/vandermeer/asciitable/v2/themes/V2_TableTheme;)Lde/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer", "change_type": "UPDATE", "file_path_old": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/V2_AsciiTableRenderer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_WidthAbsoluteEven_ec3443bb", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/render/Test_WidthAbsoluteEven.java", "test_changes": [{"change_id": "142_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_WidthAbsoluteEven", "test_sign": "de/vandermeer/asciitable/v2/render/Test_WidthAbsoluteEven.test_CodeForDoc:()V", "class": "Test_WidthAbsoluteEven", "method": "test_CodeForDoc", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.render.Test_WidthAbsoluteEven#test_CodeForDoc", "old_test_code": null, "new_test_code": "@Test\npublic void test_CodeForDoc() {\n WidthAbsoluteEven w;\n int[] cols;\n V2_AsciiTable at;\n w = new WidthAbsoluteEven(74);\n at = new V2_AsciiTable();\n at.addRow(\"one\");\n cols = w.getColumnWidths(at);\n assertEquals(1, cols.length);\n assertEquals(72, cols[0]);\n System.out.println(ArrayUtils.toString(cols));\n w = new WidthAbsoluteEven(74);\n at = new V2_AsciiTable();\n at.addRow(\"one\", \"two\");\n cols = w.getColumnWidths(at);\n assertEquals(2, cols.length);\n assertEquals(36, cols[0]);\n assertEquals(35, cols[1]);\n System.out.println(ArrayUtils.toString(cols));\n w = new WidthAbsoluteEven(74);\n at = new V2_AsciiTable();\n at.addRow(\"one\", \"two\", \"three\");\n cols = w.getColumnWidths(at);\n assertEquals(3, cols.length);\n assertEquals(24, cols[0]);\n assertEquals(23, cols[1]);\n assertEquals(23, cols[2]);\n System.out.println(ArrayUtils.toString(cols));\n w = new WidthAbsoluteEven(74);\n at = new V2_AsciiTable();\n at.addRow(\"one\", \"two\", \"three\", \"four\");\n cols = w.getColumnWidths(at);\n assertEquals(4, cols.length);\n assertEquals(18, cols[0]);\n assertEquals(17, cols[1]);\n assertEquals(17, cols[2]);\n assertEquals(17, cols[3]);\n System.out.println(ArrayUtils.toString(cols));\n w = new WidthAbsoluteEven(74);\n at = new V2_AsciiTable();\n at.addRow(\"one\", \"two\", \"three\", \"four\", \"five\");\n cols = w.getColumnWidths(at);\n assertEquals(5, cols.length);\n assertEquals(14, cols[0]);\n assertEquals(14, cols[1]);\n assertEquals(14, cols[2]);\n assertEquals(13, cols[3]);\n assertEquals(13, cols[4]);\n System.out.println(ArrayUtils.toString(cols));\n w = new WidthAbsoluteEven(79);\n at = new V2_AsciiTable();\n at.addRow(\"one\", \"two\", \"three\", \"four\", \"five\");\n cols = w.getColumnWidths(at);\n assertEquals(5, cols.length);\n assertEquals(15, cols[0]);\n assertEquals(15, cols[1]);\n assertEquals(15, cols[2]);\n assertEquals(14, cols[3]);\n assertEquals(14, cols[4]);\n System.out.println(ArrayUtils.toString(cols));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["34-106"], "old_production_code": "", "new_production_code": "@Override\npublic int[] getColumnWidths(V2_AsciiTable table) {\n if (table == null) {\n return null;\n }\n int colNumber = table.getColumnCount();\n int[] ret = new int[colNumber];\n int content = 0;\n if (table.getDefaultPadding() > 0) {\n content = colNumber * table.getDefaultPadding() + colNumber;\n } else {\n content = colNumber * 3;\n }\n int borders = colNumber + 1;\n if (this.width < (content + borders)) {\n throw new IllegalArgumentException(\"wrong width argument: width must allow for borders\");\n }\n int distribute = this.width - 1 - colNumber;\n int colmin = distribute / colNumber;\n int leftover = distribute - colmin * colNumber;\n for (int i = 0; i < colNumber; i++) {\n ret[i] = colmin;\n if (leftover != 0) {\n ret[i] += 1;\n leftover -= 1;\n }\n }\n return ret;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.java", "line_nums_new": "42-75", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8148148148148148, "branch_coverage_gold": 2.8195, "method_coverage_gold": 4.878, "line_coverage_gold": 3.9474, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthAbsoluteEven.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_WidthByColumns_9b7be406", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/render/Test_WidthByColumns.java", "test_changes": [{"change_id": "143_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_WidthByColumns", "test_sign": "de/vandermeer/asciitable/v2/render/Test_WidthByColumns.testAdd:()V", "class": "Test_WidthByColumns", "method": "testAdd", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.render.Test_WidthByColumns#testAdd", "old_test_code": null, "new_test_code": "@Test\npublic void testAdd() {\n WidthFixedColumns cw = new WidthFixedColumns();\n cw.add(5);\n assertEquals(1, cw.ar.length);\n assertEquals(5, cw.ar[0]);\n cw.add(3);\n assertEquals(2, cw.ar.length);\n assertEquals(5, cw.ar[0]);\n assertEquals(3, cw.ar[1]);\n cw.add(1);\n assertEquals(2, cw.ar.length);\n assertEquals(5, cw.ar[0]);\n assertEquals(3, cw.ar[1]);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-55"], "old_production_code": "", "new_production_code": "public WidthFixedColumns add(int width) {\n if (width >= 3) {\n this.ar = ArrayUtils.add(this.ar, width);\n }\n return this;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/WidthFixedColumns.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/WidthFixedColumns.add:(I)Lde/vandermeer/asciitable/v2/render/WidthFixedColumns", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/WidthFixedColumns.add:(I)Lde/vandermeer/asciitable/v2/render/WidthFixedColumns", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthFixedColumns.java", "line_nums_new": "47-52", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.3759, "method_coverage_gold": 1.2195, "line_coverage_gold": 0.5263, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/render/WidthFixedColumns.add:(I)Lde/vandermeer/asciitable/v2/render/WidthFixedColumns"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/WidthFixedColumns.add:(I)Lde/vandermeer/asciitable/v2/render/WidthFixedColumns", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthFixedColumns.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_WidthLongestWord_ec3443bb", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/render/Test_WidthLongestWord.java", "test_changes": [{"change_id": "138_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_WidthLongestWord", "test_sign": "de/vandermeer/asciitable/v2/render/Test_WidthLongestWord.test_CodeForDoc:()V", "class": "Test_WidthLongestWord", "method": "test_CodeForDoc", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.render.Test_WidthLongestWord#test_CodeForDoc", "old_test_code": null, "new_test_code": "@Test\npublic void test_CodeForDoc() {\n V2_AsciiTable at;\n int[] cols;\n V2_Width width;\n at = new V2_AsciiTable(0);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n width = new WidthLongestWord();\n cols = width.getColumnWidths(at);\n assertEquals(2, cols.length);\n assertEquals(6, cols[0]);\n assertEquals(11, cols[1]);\n System.out.println(ArrayUtils.toString(cols));\n at = new V2_AsciiTable(1);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n width = new WidthLongestWord();\n cols = width.getColumnWidths(at);\n assertEquals(2, cols.length);\n assertEquals(8, cols[0]);\n assertEquals(13, cols[1]);\n System.out.println(ArrayUtils.toString(cols));\n at = new V2_AsciiTable(0);\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\").setPadding(new int[] { 2, 3 });\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\").setPadding(new int[] { 3, 4 });\n at.addRule();\n width = new WidthLongestWord();\n cols = width.getColumnWidths(at);\n assertEquals(2, cols.length);\n assertEquals(12, cols[0]);\n assertEquals(19, cols[1]);\n System.out.println(ArrayUtils.toString(cols));\n at = new V2_AsciiTable();\n at.addRow(new LoremIpsum().getWords());\n width = new WidthLongestWord();\n cols = width.getColumnWidths(at);\n assertEquals(1, cols.length);\n assertEquals(12, cols[0]);\n System.out.println(ArrayUtils.toString(cols));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["36-90"], "old_production_code": "", "new_production_code": "@Override\npublic int[] getColumnWidths(V2_AsciiTable table) {\n return (table == null) ? null : WidthUtilities.longestWord(table);\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/WidthLongestWord.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/WidthLongestWord.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/WidthLongestWord.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthLongestWord.java", "line_nums_new": "29-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.85, "branch_coverage_gold": 6.203, "method_coverage_gold": 10.3659, "line_coverage_gold": 6.0526, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/row/ContentRow.setPadding:([I)Z", "de/vandermeer/asciitable/v2/render/WidthLongestWord.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/WidthLongestWord.getColumnWidths:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthLongestWord.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdmeer_asciitable-v0.3.2__fab3f14_3cb41d9__Test_WidthUtilities_3b7ec239", "project_name": "vdmeer_asciitable-v0.3.2", "git_clone_url": "https://github.com/vdmeer/asciitable.git", "rev1": "fab3f14a473237f5b54958cefb52b45663724deb", "rev2": "3cb41d90875c846877d881fcd67adf1481afce0e", "rev1_date": "2015-08-19T07:32:05Z", "rev2_date": "2015-08-19T19:26:34Z", "git_diff_url": "https://github.com/vdmeer/asciitable/compare/fab3f14a473237f5b54958cefb52b45663724deb...3cb41d90875c846877d881fcd67adf1481afce0e", "test_file": "src/test/java/de/vandermeer/asciitable/v2/render/Test_WidthUtilities.java", "test_changes": [{"change_id": "144_vdmeer_asciitable-v0.3.2_fab3f14_3cb41d9_Test_WidthUtilities", "test_sign": "de/vandermeer/asciitable/v2/render/Test_WidthUtilities.test_LongestWord:()V", "class": "Test_WidthUtilities", "method": "test_LongestWord", "module": "", "junit_selector": "de.vandermeer.asciitable.v2.render.Test_WidthUtilities#test_LongestWord", "old_test_code": null, "new_test_code": "@Test\npublic void test_LongestWord() {\n V2_AsciiTable at;\n int[] cols;\n at = new V2_AsciiTable();\n at.addRule();\n at.addRow(\"first row (col1)\", \"with some information (col2)\");\n at.addRule();\n at.addRow(\"second row (col1)\", \"with some information (col2)\");\n at.addRule();\n cols = WidthUtilities.longestWord(at);\n assertEquals(2, cols.length);\n assertEquals(8, cols[0]);\n assertEquals(13, cols[1]);\n System.out.println(ArrayUtils.toString(cols));\n at = new V2_AsciiTable();\n at.addRow(new LoremIpsum().getWords());\n cols = WidthUtilities.longestWord(at);\n assertEquals(1, cols.length);\n assertEquals(12, cols[0]);\n System.out.println(ArrayUtils.toString(cols));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-59"], "old_production_code": "", "new_production_code": "public static int[] longestWord(V2_AsciiTable table) {\n if (table == null) {\n return null;\n }\n if (table.getTable().size() == 0) {\n return new int[0];\n }\n int[] ret = new int[table.getColumnCount()];\n for (V2_Row row : table.getTable()) {\n if (row instanceof ContentRow) {\n ContentRow crow = (ContentRow) row;\n for (int i = 0; i < crow.getColumns().length; i++) {\n if (crow.getColumns()[i] != null) {\n String[] ar = StringUtils.split(crow.getColumns()[i].toString());\n for (int k = 0; k < ar.length; k++) {\n int count = ar[k].length() + crow.getPadding()[i] + crow.getPadding()[i];\n if (count > ret[i]) {\n ret[i] = count;\n }\n }\n }\n }\n }\n }\n return ret;\n}", "focal_file_path": "src/main/java/de/vandermeer/asciitable/v2/render/WidthUtilities.java", "focal_method_sign": "de/vandermeer/asciitable/v2/render/WidthUtilities.longestWord:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "de/vandermeer/asciitable/v2/render/WidthUtilities.longestWord:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthUtilities.java", "line_nums_new": "40-69", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8928571428571429, "branch_coverage_gold": 4.8872, "method_coverage_gold": 8.5366, "line_coverage_gold": 5.3509, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["217fa632a0a2d2301825d455d4b4a708fe0e459b"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["de/vandermeer/asciitable/v2/V2_AsciiTable.addRule:()V", "de/vandermeer/asciitable/v2/render/WidthUtilities.longestWord:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "de/vandermeer/asciitable/v2/V2_AsciiTable.addRow:([Ljava/lang/Object;)Lde/vandermeer/asciitable/v2/row/ContentRow"], "all_deps_old": [], "deps_changes": [{"method_sign": "de/vandermeer/asciitable/v2/render/WidthUtilities.longestWord:(Lde/vandermeer/asciitable/v2/V2_AsciiTable;)[I", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/de/vandermeer/asciitable/v2/render/WidthUtilities.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v0.3.2", "java_version": 8} {"task_id": "vdurmont_emoji-java-v5.1.1__107534d_340811e__EmojiManagerTest_7ba4d56a", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "107534d2c1fc91df058b97344a97f5a1bfc0dd09", "rev2": "340811eeb47b123486f9d670ff7ec6ef6f462461", "rev1_date": "2017-02-13T00:36:42Z", "rev2_date": "2017-02-13T00:51:33Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/107534d2c1fc91df058b97344a97f5a1bfc0dd09...340811eeb47b123486f9d670ff7ec6ef6f462461", "test_file": "src/test/java/com/vdurmont/emoji/EmojiManagerTest.java", "test_changes": [{"change_id": "158_vdurmont_emoji-java-v5.1.1_107534d_340811e_EmojiManagerTest", "test_sign": "com/vdurmont/emoji/EmojiManagerTest.isOnlyEmojis_for_random_string_returns_false:()V", "class": "EmojiManagerTest", "method": "isOnlyEmojis_for_random_string_returns_false", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiManagerTest#isOnlyEmojis_for_random_string_returns_false", "old_test_code": null, "new_test_code": "@Test\npublic void isOnlyEmojis_for_random_string_returns_false() {\n String str = \"😀a\";\n boolean isEmoji = EmojiManager.isOnlyEmojis(str);\n assertFalse(isEmoji);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["148-158"], "old_production_code": "", "new_production_code": "public static boolean isOnlyEmojis(String string) {\n return string != null && EmojiParser.removeAllEmojis(string).isEmpty();\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "focal_method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "line_nums_new": "140-142", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 45.3901, "method_coverage_gold": 48.8095, "line_coverage_gold": 56.6667, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "159_vdurmont_emoji-java-v5.1.1_107534d_340811e_EmojiManagerTest", "test_sign": "com/vdurmont/emoji/EmojiManagerTest.isOnlyEmojis_for_an_emoji_returns_true:()V", "class": "EmojiManagerTest", "method": "isOnlyEmojis_for_an_emoji_returns_true", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiManagerTest#isOnlyEmojis_for_an_emoji_returns_true", "old_test_code": null, "new_test_code": "@Test\npublic void isOnlyEmojis_for_an_emoji_returns_true() {\n String str = \"😀\";\n boolean isEmoji = EmojiManager.isOnlyEmojis(str);\n assertTrue(isEmoji);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-134"], "old_production_code": "", "new_production_code": "public static boolean isOnlyEmojis(String string) {\n return string != null && EmojiParser.removeAllEmojis(string).isEmpty();\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "focal_method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "line_nums_new": "140-142", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 43.2624, "method_coverage_gold": 48.8095, "line_coverage_gold": 56.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "160_vdurmont_emoji-java-v5.1.1_107534d_340811e_EmojiManagerTest", "test_sign": "com/vdurmont/emoji/EmojiManagerTest.isOnlyEmojis_for_emojis_returns_true:()V", "class": "EmojiManagerTest", "method": "isOnlyEmojis_for_emojis_returns_true", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiManagerTest#isOnlyEmojis_for_emojis_returns_true", "old_test_code": null, "new_test_code": "@Test\npublic void isOnlyEmojis_for_emojis_returns_true() {\n String str = \"😀😀😀\";\n boolean isEmoji = EmojiManager.isOnlyEmojis(str);\n assertTrue(isEmoji);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-146"], "old_production_code": "", "new_production_code": "public static boolean isOnlyEmojis(String string) {\n return string != null && EmojiParser.removeAllEmojis(string).isEmpty();\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "focal_method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "line_nums_new": "140-142", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 46.0993, "method_coverage_gold": 48.8095, "line_coverage_gold": 57.3333, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiManager.isOnlyEmojis:(Ljava/lang/String;)Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__59d8dbb_1617037__EmojiManagerTest_56085334", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "59d8dbbdd73ae82dbb337ea5f4e3c38f98cefc16", "rev2": "16170374162ae373b3e6d80d64bba92af3849877", "rev1_date": "2016-03-13T18:55:08Z", "rev2_date": "2016-03-13T20:11:14Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/59d8dbbdd73ae82dbb337ea5f4e3c38f98cefc16...16170374162ae373b3e6d80d64bba92af3849877", "test_file": "src/test/java/com/vdurmont/emoji/EmojiManagerTest.java", "test_changes": [{"change_id": "147_vdurmont_emoji-java-v5.1.1_59d8dbb_1617037_EmojiManagerTest", "test_sign": "com/vdurmont/emoji/EmojiManagerTest.getAll_doesnt_return_duplicates:()V", "class": "EmojiManagerTest", "method": "getAll_doesnt_return_duplicates", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiManagerTest#getAll_doesnt_return_duplicates", "old_test_code": null, "new_test_code": "@Test\npublic void getAll_doesnt_return_duplicates() {\n Collection emojis = EmojiManager.getAll();\n Set unicodes = new HashSet();\n for (Emoji emoji : emojis) {\n assertFalse(\"Duplicate: \" + emoji.getDescription(), unicodes.contains(emoji.getUnicode()));\n unicodes.add(emoji.getUnicode());\n }\n assertEquals(unicodes.size(), emojis.size());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["123-137"], "old_production_code": "public static Collection getAll() {\n return EMOJIS_BY_ALIAS.values();\n}", "new_production_code": "public static Collection getAll() {\n return ALL_EMOJIS;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "focal_method_sign": "com/vdurmont/emoji/EmojiManager.getAll:()Ljava/util/Collection", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiManager.getAll:()Ljava/util/Collection", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "line_nums_old": "110-112", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "line_nums_new": "112-114", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 18.9189, "method_coverage_gold": 30.1587, "line_coverage_gold": 30.2632, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiManager.getAll:()Ljava/util/Collection", "com/vdurmont/emoji/Emoji.getDescription:()Ljava/lang/String", "com/vdurmont/emoji/Emoji.getUnicode:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiManager.getAll:()Ljava/util/Collection", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiManager.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__6089b9a_a8ab623__EmojiParserTest_26f1dd8f", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "6089b9a521bbdbd6420efbab0aa49d204400c418", "rev2": "a8ab623c4bc5a2543cac6ed0b667ad132b093429", "rev1_date": "2015-08-18T21:29:00Z", "rev2_date": "2015-08-18T23:07:01Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/6089b9a521bbdbd6420efbab0aa49d204400c418...a8ab623c4bc5a2543cac6ed0b667ad132b093429", "test_file": "src/test/java/com/vdurmont/emoji/EmojiParserTest.java", "test_changes": [{"change_id": "175_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_one_alias_an_another_colon_after:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_one_alias_an_another_colon_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_one_alias_an_another_colon_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_one_alias_an_another_colon_after() {\n String str = \"test :candidate: test:\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(1, candidates.size());\n assertEquals(\"candidate\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["269-281"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "177_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlHexadecimal_PARSE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlHexadecimal_PARSE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlHexadecimal_PARSE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlHexadecimal_PARSE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlHexadecimal(str, FitzpatrickAction.PARSE);\n assertEquals(\"👦\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["160-170"], "old_production_code": "", "new_production_code": "public static String parseToHtmlHexadecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlHexidecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlHexidecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "189-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 29.5918, "method_coverage_gold": 46.3415, "line_coverage_gold": 46.0733, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "178_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlHexadecimal_IGNORE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlHexadecimal_IGNORE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlHexadecimal_IGNORE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlHexadecimal_IGNORE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlHexadecimal(str, FitzpatrickAction.IGNORE);\n assertEquals(\"👦\\uD83C\\uDFFF\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["184-194"], "old_production_code": "", "new_production_code": "public static String parseToHtmlHexadecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlHexidecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlHexidecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "189-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 27.551, "method_coverage_gold": 43.9024, "line_coverage_gold": 44.5026, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "179_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlDecimal_REMOVE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlDecimal_REMOVE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlDecimal_REMOVE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlDecimal_REMOVE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlDecimal(str, FitzpatrickAction.REMOVE);\n assertEquals(\"👦\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-134"], "old_production_code": "", "new_production_code": "public static String parseToHtmlDecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlDecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlDecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "150-165", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 24.4898, "method_coverage_gold": 41.4634, "line_coverage_gold": 42.9319, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "180_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_a_fitzpatrick_modifier() {\n String str = \"test :candidate|type_3: test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(1, candidates.size());\n assertEquals(\"candidate\", candidates.get(0).alias);\n assertEquals(Fitzpatrick.TYPE_3, candidates.get(0).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["343-355"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8666666666666667, "branch_coverage_gold": 5.102, "method_coverage_gold": 12.1951, "line_coverage_gold": 15.1832, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "181_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_one_alias_an_another_colon_before_after:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_one_alias_an_another_colon_before_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_one_alias_an_another_colon_before_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_one_alias_an_another_colon_before_after() {\n String str = \"test ::candidate: test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(1, candidates.size());\n assertEquals(\"candidate\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["297-309"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "182_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlDecimal_PARSE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlDecimal_PARSE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlDecimal_PARSE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlDecimal_PARSE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlDecimal(str, FitzpatrickAction.PARSE);\n assertEquals(\"👦\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-122"], "old_production_code": "", "new_production_code": "public static String parseToHtmlDecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlDecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlDecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "150-165", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 29.5918, "method_coverage_gold": 46.3415, "line_coverage_gold": 46.0733, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "183_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToAliases_IGNORE_without_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToAliases_IGNORE_without_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToAliases_IGNORE_without_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToAliases_IGNORE_without_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\";\n String result = EmojiParser.parseToAliases(str, FitzpatrickAction.IGNORE);\n assertEquals(\":boy:\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["76-86"], "old_production_code": "", "new_production_code": "public static String parseToAliases(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String replacement = \":\" + emoji.getAliases().get(0) + \":\";\n if (fitzpatrickAction == FitzpatrickAction.PARSE) {\n replacement = \":\" + emoji.getAliases().get(0) + \"|\" + fitzpatrick.toString().toLowerCase() + \":\";\n }\n result = result.replace(emoji.getUnicode(fitzpatrick), replacement);\n }\n }\n }\n result = result.replace(emoji.getUnicode(), \":\" + emoji.getAliases().get(0) + \":\");\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "40-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 29.5918, "method_coverage_gold": 43.9024, "line_coverage_gold": 46.0733, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "184_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToAliases_REMOVE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToAliases_REMOVE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToAliases_REMOVE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToAliases_REMOVE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToAliases(str, FitzpatrickAction.REMOVE);\n assertEquals(\":boy:\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["40-50"], "old_production_code": "", "new_production_code": "public static String parseToAliases(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String replacement = \":\" + emoji.getAliases().get(0) + \":\";\n if (fitzpatrickAction == FitzpatrickAction.PARSE) {\n replacement = \":\" + emoji.getAliases().get(0) + \"|\" + fitzpatrick.toString().toLowerCase() + \":\";\n }\n result = result.replace(emoji.getUnicode(fitzpatrick), replacement);\n }\n }\n }\n result = result.replace(emoji.getUnicode(), \":\" + emoji.getAliases().get(0) + \":\");\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "40-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 24.4898, "method_coverage_gold": 39.0244, "line_coverage_gold": 42.4084, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "185_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_one_alias:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_one_alias", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_one_alias", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_one_alias() {\n String str = \"test :candidate: test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(1, candidates.size());\n assertEquals(\"candidate\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["255-267"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "186_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlHexadecimal_REMOVE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlHexadecimal_REMOVE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlHexadecimal_REMOVE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlHexadecimal_REMOVE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlHexadecimal(str, FitzpatrickAction.REMOVE);\n assertEquals(\"👦\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["172-182"], "old_production_code": "", "new_production_code": "public static String parseToHtmlHexadecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlHexidecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlHexidecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "189-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6, "branch_coverage_gold": 24.4898, "method_coverage_gold": 41.4634, "line_coverage_gold": 42.9319, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlHexadecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "187_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToAliases_IGNORE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToAliases_IGNORE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToAliases_IGNORE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToAliases_IGNORE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToAliases(str, FitzpatrickAction.IGNORE);\n assertEquals(\":boy:\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-74"], "old_production_code": "", "new_production_code": "public static String parseToAliases(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String replacement = \":\" + emoji.getAliases().get(0) + \":\";\n if (fitzpatrickAction == FitzpatrickAction.PARSE) {\n replacement = \":\" + emoji.getAliases().get(0) + \"|\" + fitzpatrick.toString().toLowerCase() + \":\";\n }\n result = result.replace(emoji.getUnicode(fitzpatrick), replacement);\n }\n }\n }\n result = result.replace(emoji.getUnicode(), \":\" + emoji.getAliases().get(0) + \":\");\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "40-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 29.5918, "method_coverage_gold": 43.9024, "line_coverage_gold": 46.0733, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "188_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlDecimal_IGNORE_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToHtmlDecimal_IGNORE_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlDecimal_IGNORE_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlDecimal_IGNORE_with_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\\uD83C\\uDFFF\";\n String result = EmojiParser.parseToHtmlDecimal(str, FitzpatrickAction.IGNORE);\n assertEquals(\"👦\\uD83C\\uDFFF\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["136-146"], "old_production_code": "", "new_production_code": "public static String parseToHtmlDecimal(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String search = fitzpatrickAction == FitzpatrickAction.PARSE ? emoji.getUnicode(fitzpatrick) : emoji.getUnicode();\n result = result.replace(search, emoji.getHtmlDecimal());\n }\n }\n }\n result = result.replace(emoji.getUnicode(), emoji.getHtmlDecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "150-165", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 27.551, "method_coverage_gold": 43.9024, "line_coverage_gold": 44.5026, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "189_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToUnicode_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToUnicode_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToUnicode_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToUnicode_with_a_fitzpatrick_modifier() {\n String str = \":boy|type_6:\";\n String result = EmojiParser.parseToUnicode(str);\n assertEquals(\"\\uD83D\\uDC66\\uD83C\\uDFFF\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["232-242"], "old_production_code": "public static String parseToUnicode(String input) {\n List aliases = getAliasesCandidates(input);\n String result = input;\n for (String alias : aliases) {\n Emoji emoji = EmojiManager.getForAlias(alias);\n if (emoji != null) {\n result = result.replace(\":\" + alias + \":\", emoji.getUnicode());\n }\n }\n for (Emoji emoji : EmojiManager.getAll()) {\n result = result.replace(emoji.getHtmlHexidecimal(), emoji.getUnicode());\n result = result.replace(emoji.getHtml(), emoji.getUnicode());\n }\n return result;\n}", "new_production_code": "public static String parseToUnicode(String input) {\n List candidates = getAliasCandidates(input);\n String result = input;\n for (AliasCandidate candidate : candidates) {\n Emoji emoji = EmojiManager.getForAlias(candidate.alias);\n if (emoji != null) {\n if (emoji.supportsFitzpatrick() || (!emoji.supportsFitzpatrick() && candidate.fitzpatrick == null)) {\n String replacement = emoji.getUnicode();\n if (candidate.fitzpatrick != null) {\n replacement += candidate.fitzpatrick.unicode;\n }\n result = result.replace(\":\" + candidate.fullString + \":\", replacement);\n }\n }\n }\n for (Emoji emoji : EmojiManager.getAll()) {\n result = result.replace(emoji.getHtmlHexidecimal(), emoji.getUnicode());\n result = result.replace(emoji.getHtml(), emoji.getUnicode());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToUnicode:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToUnicode:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_old": "39-59", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "70-96", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 33.6735, "method_coverage_gold": 56.0976, "line_coverage_gold": 59.1623, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToUnicode:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToUnicode:(Ljava/lang/String;)Ljava/lang/String", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "190_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_two_aliases_sharing_a_colon:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_two_aliases_sharing_a_colon", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_two_aliases_sharing_a_colon", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_two_aliases_sharing_a_colon() {\n String str = \"test :candi:candidate: test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(2, candidates.size());\n assertEquals(\"candi\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n assertEquals(\"candidate\", candidates.get(1).alias);\n assertNull(candidates.get(1).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["327-341"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "191_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToAliases_REMOVE_without_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "parseToAliases_REMOVE_without_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToAliases_REMOVE_without_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void parseToAliases_REMOVE_without_a_fitzpatrick_modifier() {\n String str = \"\\uD83D\\uDC66\";\n String result = EmojiParser.parseToAliases(str, FitzpatrickAction.REMOVE);\n assertEquals(\":boy:\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["52-62"], "old_production_code": "", "new_production_code": "public static String parseToAliases(String input, FitzpatrickAction fitzpatrickAction) {\n String result = prepareParsing(input, fitzpatrickAction);\n for (Emoji emoji : EmojiManager.getAll()) {\n if (fitzpatrickAction != FitzpatrickAction.REMOVE) {\n if (emoji.supportsFitzpatrick()) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n String replacement = \":\" + emoji.getAliases().get(0) + \":\";\n if (fitzpatrickAction == FitzpatrickAction.PARSE) {\n replacement = \":\" + emoji.getAliases().get(0) + \"|\" + fitzpatrick.toString().toLowerCase() + \":\";\n }\n result = result.replace(emoji.getUnicode(fitzpatrick), replacement);\n }\n }\n }\n result = result.replace(emoji.getUnicode(), \":\" + emoji.getAliases().get(0) + \":\");\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "40-58", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5, "branch_coverage_gold": 24.4898, "method_coverage_gold": 39.0244, "line_coverage_gold": 42.4084, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToAliases:(Ljava/lang/String;Lcom/vdurmont/emoji/EmojiParser$FitzpatrickAction;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "192_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_one_alias_an_another_colon_right_after:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_one_alias_an_another_colon_right_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_one_alias_an_another_colon_right_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_one_alias_an_another_colon_right_after() {\n String str = \"test :candidate::test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(1, candidates.size());\n assertEquals(\"candidate\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["283-295"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "194_vdurmont_emoji-java-v5.1.1_6089b9a_a8ab623_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasCanditates_with_two_aliases:()V", "class": "EmojiParserTest", "method": "getAliasCanditates_with_two_aliases", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasCanditates_with_two_aliases", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasCanditates_with_two_aliases() {\n String str = \"test :candi: :candidate: test\";\n List candidates = EmojiParser.getAliasCandidates(str);\n assertEquals(2, candidates.size());\n assertEquals(\"candi\", candidates.get(0).alias);\n assertNull(candidates.get(0).fitzpatrick);\n assertEquals(\"candidate\", candidates.get(1).alias);\n assertNull(candidates.get(1).fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["311-325"], "old_production_code": "", "new_production_code": "protected static List getAliasCandidates(String input) {\n List candidates = new ArrayList();\n String regex = \"(?<=:)\\\\+?(\\\\w|\\\\|)+(?=:)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(input);\n matcher = matcher.useTransparentBounds(true);\n while (matcher.find()) {\n String match = matcher.group();\n if (!match.contains(\"|\")) {\n candidates.add(new AliasCandidate(match, match, null));\n } else {\n String[] splitted = match.split(\"\\\\|\");\n if (splitted.length == 2 || splitted.length > 2) {\n candidates.add(new AliasCandidate(match, splitted[0], splitted[1]));\n } else {\n candidates.add(new AliasCandidate(match, match, null));\n }\n }\n }\n return candidates;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "98-118", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7333333333333333, "branch_coverage_gold": 4.0816, "method_coverage_gold": 4.878, "line_coverage_gold": 8.9005, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasCandidates:(Ljava/lang/String;)Ljava/util/List", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__9e3cf97_27b1e9b__EmojiParserTest_2ecc3070", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "9e3cf97c0df34a8a66693f60c2726b7a4346c3d7", "rev2": "27b1e9ba1df554609e3d99c36f34ba975a4adbc3", "rev1_date": "2015-09-30T18:27:55Z", "rev2_date": "2015-09-30T18:38:01Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/9e3cf97c0df34a8a66693f60c2726b7a4346c3d7...27b1e9ba1df554609e3d99c36f34ba975a4adbc3", "test_file": "src/test/java/com/vdurmont/emoji/EmojiParserTest.java", "test_changes": [{"change_id": "149_vdurmont_emoji-java-v5.1.1_9e3cf97_27b1e9b_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.removeAllEmojis_removes_all_the_emojis_from_the_string:()V", "class": "EmojiParserTest", "method": "removeAllEmojis_removes_all_the_emojis_from_the_string", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#removeAllEmojis_removes_all_the_emojis_from_the_string", "old_test_code": null, "new_test_code": "@Test\npublic void removeAllEmojis_removes_all_the_emojis_from_the_string() {\n String input = \"An 😀awesome 😃string 😄with a \\uD83D\\uDC66\\uD83C\\uDFFFfew 😉emojis!\";\n String expected = \"An awesome string with a few emojis!\";\n assertEquals(expected, EmojiParser.removeAllEmojis(input));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["366-372"], "old_production_code": "", "new_production_code": "public static String removeAllEmojis(String str) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n str = str.replaceAll(fitzpatrick.unicode, \"\");\n }\n for (Emoji emoji : EmojiManager.getAll()) {\n str = str.replaceAll(emoji.getUnicode(), \"\");\n }\n return str;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "231-242", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3, "branch_coverage_gold": 21.5686, "method_coverage_gold": 36.1111, "line_coverage_gold": 37.766, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8d9f65b0031b0907b292e2f81aaac8bd141f0d33"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "150_vdurmont_emoji-java-v5.1.1_9e3cf97_27b1e9b_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.removeEmojis_only_removes_the_emojis_in_the_iterable_from_the_string:()V", "class": "EmojiParserTest", "method": "removeEmojis_only_removes_the_emojis_in_the_iterable_from_the_string", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#removeEmojis_only_removes_the_emojis_in_the_iterable_from_the_string", "old_test_code": null, "new_test_code": "@Test\npublic void removeEmojis_only_removes_the_emojis_in_the_iterable_from_the_string() {\n String input = \"An 😀awesome 😃string 😄with a \\uD83D\\uDC66\\uD83C\\uDFFFfew 😉emojis!\";\n String expected = \"An awesome string with a few emojis!\";\n assertEquals(expected, EmojiParser.removeAllEmojis(input));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["374-380"], "old_production_code": "", "new_production_code": "public static String removeAllEmojis(String str) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n str = str.replaceAll(fitzpatrick.unicode, \"\");\n }\n for (Emoji emoji : EmojiManager.getAll()) {\n str = str.replaceAll(emoji.getUnicode(), \"\");\n }\n return str;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "231-242", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.3, "branch_coverage_gold": 21.5686, "method_coverage_gold": 36.1111, "line_coverage_gold": 37.766, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["8d9f65b0031b0907b292e2f81aaac8bd141f0d33"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__9e3cf97_8d9f65b__EmojiParserTest_59f5e6d7", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "9e3cf97c0df34a8a66693f60c2726b7a4346c3d7", "rev2": "8d9f65b0031b0907b292e2f81aaac8bd141f0d33", "rev1_date": "2015-09-30T18:27:55Z", "rev2_date": "2015-09-30T18:32:41Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/9e3cf97c0df34a8a66693f60c2726b7a4346c3d7...8d9f65b0031b0907b292e2f81aaac8bd141f0d33", "test_file": "src/test/java/com/vdurmont/emoji/EmojiParserTest.java", "test_changes": [{"change_id": "148_vdurmont_emoji-java-v5.1.1_9e3cf97_8d9f65b_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.removeAllEmojis_test:()V", "class": "EmojiParserTest", "method": "removeAllEmojis_test", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#removeAllEmojis_test", "old_test_code": null, "new_test_code": "@Test\npublic void removeAllEmojis_test() {\n String input = \"An 😀awesome 😃string 😄with a \\uD83D\\uDC66\\uD83C\\uDFFFfew 😉emojis!\";\n String expected = \"An awesome string with a few emojis!\";\n assertEquals(expected, EmojiParser.removeAllEmojis(input));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["366-372"], "old_production_code": "", "new_production_code": "public static String removeAllEmojis(String str) {\n for (Fitzpatrick fitzpatrick : Fitzpatrick.values()) {\n str = str.replaceAll(fitzpatrick.unicode, \"\");\n }\n for (Emoji emoji : EmojiManager.getAll()) {\n str = str.replaceAll(emoji.getUnicode(), \"\");\n }\n return str;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "271-282", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 21.5686, "method_coverage_gold": 36.1111, "line_coverage_gold": 37.766, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.removeAllEmojis:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__a0b7694_e6eef6f__EmojiLoaderTest_88ba04f7", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "a0b76942f3feb7e48223e7c0a1a5d978c94c15bf", "rev2": "e6eef6f3b692f30d1f58901c98e4448d031e39da", "rev1_date": "2014-09-21T17:56:20Z", "rev2_date": "2014-09-21T18:56:42Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/a0b76942f3feb7e48223e7c0a1a5d978c94c15bf...e6eef6f3b692f30d1f58901c98e4448d031e39da", "test_file": "src/test/java/com/vdurmont/emoji/EmojiLoaderTest.java", "test_changes": [{"change_id": "141_vdurmont_emoji-java-v5.1.1_a0b7694_e6eef6f_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_computes_the_html:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_computes_the_html", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_computes_the_html", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_computes_the_html() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\" + \"\\\"emoji\\\": \\\"😄\\\",\" + \"\\\"description\\\": \\\"smiling face with open mouth and smiling eyes\\\",\" + \"\\\"aliases\\\": [\\\"smile\\\"],\" + \"\\\"tags\\\": [\\\"happy\\\", \\\"joy\\\", \\\"pleased\\\"]\" + \"}\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertEquals(\"😄\", emoji.getUnicode());\n assertEquals(\"😄\", emoji.getHtml());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["87-103"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n return new Emoji(description, aliases, tags, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n String html = getHtmlFromUnicode(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "43-56", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "43-57", "dependency_updated": "updated", "score": 0.5042, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.2428}}, {"dep_id": 0, "method_sign": "com/vdurmont/emoji/Emoji.getHtml:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "46-48", "dependency_updated": "inserted", "score": 0.1883, "signal_scores": {"nc": 0.0, "lcs_u": 0.8571, "ed": 0.1667, "class": 0.0, "tfidf": 0.0408}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 9.5238, "method_coverage_gold": 25.0, "line_coverage_gold": 23.7624, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/Emoji.getUnicode:()Ljava/lang/String", "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.getHtml:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/Emoji.getHtml:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__c3d8fd6_6089b9a__EmojiLoaderTest_2a5c6aba", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "c3d8fd6604fa2562a9af2609604816326624be51", "rev2": "6089b9a521bbdbd6420efbab0aa49d204400c418", "rev1_date": "2015-08-18T21:23:46Z", "rev2_date": "2015-08-18T21:29:00Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/c3d8fd6604fa2562a9af2609604816326624be51...6089b9a521bbdbd6420efbab0aa49d204400c418", "test_file": "src/test/java/com/vdurmont/emoji/EmojiLoaderTest.java", "test_changes": [{"change_id": "172_vdurmont_emoji-java-v5.1.1_c3d8fd6_6089b9a_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_with_support_for_fitzpatrick_false:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_with_support_for_fitzpatrick_false", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_with_support_for_fitzpatrick_false", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_with_support_for_fitzpatrick_false() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDE15\\\",\\n\" + \" \\\"description\\\": \\\"confused face\\\",\\n\" + \" \\\"supports_fitzpatrick\\\": false,\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"confused\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertFalse(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["131-150"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5197, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3396, "class": 1.0, "tfidf": 0.4209}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "36-38", "dependency_updated": "inserted", "score": 0.2494, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.3396, "class": 0.0, "tfidf": 0.1118}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 10.0, "method_coverage_gold": 15.1515, "line_coverage_gold": 21.7054, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "173_vdurmont_emoji-java-v5.1.1_c3d8fd6_6089b9a_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_without_support_for_fitzpatrick:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_without_support_for_fitzpatrick", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_without_support_for_fitzpatrick", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_without_support_for_fitzpatrick() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDE15\\\",\\n\" + \" \\\"description\\\": \\\"confused face\\\",\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"confused\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertFalse(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["152-170"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5136, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.36, "class": 1.0, "tfidf": 0.381}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "36-38", "dependency_updated": "inserted", "score": 0.2535, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.36, "class": 0.0, "tfidf": 0.1147}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 10.0, "method_coverage_gold": 15.1515, "line_coverage_gold": 20.9302, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "174_vdurmont_emoji-java-v5.1.1_c3d8fd6_6089b9a_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_with_support_for_fitzpatrick_true:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_with_support_for_fitzpatrick_true", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_with_support_for_fitzpatrick_true", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_with_support_for_fitzpatrick_true() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDC66\\\",\\n\" + \" \\\"description\\\": \\\"boy\\\",\\n\" + \" \\\"supports_fitzpatrick\\\": true,\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"boy\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" \\\"child\\\"\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertTrue(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-129"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5208, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3462, "class": 1.0, "tfidf": 0.4209}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "36-38", "dependency_updated": "inserted", "score": 0.2505, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.3462, "class": 0.0, "tfidf": 0.1118}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 10.0, "method_coverage_gold": 15.1515, "line_coverage_gold": 21.7054, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__c3d8fd6_93c9d79__EmojiLoaderTest_2a5c6aba", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "c3d8fd6604fa2562a9af2609604816326624be51", "rev2": "93c9d79e69f896bee72c931c6de7cc27bf248e1d", "rev1_date": "2015-08-18T21:23:46Z", "rev2_date": "2015-08-18T23:47:28Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/c3d8fd6604fa2562a9af2609604816326624be51...93c9d79e69f896bee72c931c6de7cc27bf248e1d", "test_file": "src/test/java/com/vdurmont/emoji/EmojiLoaderTest.java", "test_changes": [{"change_id": "166_vdurmont_emoji-java-v5.1.1_c3d8fd6_93c9d79_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_with_support_for_fitzpatrick_false:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_with_support_for_fitzpatrick_false", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_with_support_for_fitzpatrick_false", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_with_support_for_fitzpatrick_false() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDE15\\\",\\n\" + \" \\\"description\\\": \\\"confused face\\\",\\n\" + \" \\\"supports_fitzpatrick\\\": false,\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"confused\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertNotNull(emoji);\n assertFalse(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["135-155"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5192, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3396, "class": 1.0, "tfidf": 0.4187}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.2467, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.3396, "class": 0.0, "tfidf": 0.1001}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 5.102, "method_coverage_gold": 12.8205, "line_coverage_gold": 15.3439, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["a8ab623c4bc5a2543cac6ed0b667ad132b093429", "6089b9a521bbdbd6420efbab0aa49d204400c418"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "167_vdurmont_emoji-java-v5.1.1_c3d8fd6_93c9d79_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_without_support_for_fitzpatrick:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_without_support_for_fitzpatrick", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_without_support_for_fitzpatrick", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_without_support_for_fitzpatrick() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDE15\\\",\\n\" + \" \\\"description\\\": \\\"confused face\\\",\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"confused\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertNotNull(emoji);\n assertFalse(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["157-176"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5135, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.36, "class": 1.0, "tfidf": 0.3802}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.2505, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.36, "class": 0.0, "tfidf": 0.1022}}], "coverage_gold": 0.8571428571428571, "branch_coverage_gold": 5.102, "method_coverage_gold": 12.8205, "line_coverage_gold": 14.8148, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["a8ab623c4bc5a2543cac6ed0b667ad132b093429", "6089b9a521bbdbd6420efbab0aa49d204400c418"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "168_vdurmont_emoji-java-v5.1.1_c3d8fd6_93c9d79_EmojiLoaderTest", "test_sign": "com/vdurmont/emoji/EmojiLoaderTest.buildEmojiFromJSON_with_support_for_fitzpatrick_true:()V", "class": "EmojiLoaderTest", "method": "buildEmojiFromJSON_with_support_for_fitzpatrick_true", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiLoaderTest#buildEmojiFromJSON_with_support_for_fitzpatrick_true", "old_test_code": null, "new_test_code": "@Test\npublic void buildEmojiFromJSON_with_support_for_fitzpatrick_true() throws UnsupportedEncodingException {\n JSONObject json = new JSONObject(\"{\\n\" + \" \\\"emoji\\\": \\\"\\uD83D\\uDC66\\\",\\n\" + \" \\\"description\\\": \\\"boy\\\",\\n\" + \" \\\"supports_fitzpatrick\\\": true,\\n\" + \" \\\"aliases\\\": [\\n\" + \" \\\"boy\\\"\\n\" + \" ],\\n\" + \" \\\"tags\\\": [\\n\" + \" \\\"child\\\"\\n\" + \" ]\\n\" + \" }\");\n Emoji emoji = EmojiLoader.buildEmojiFromJSON(json);\n assertNotNull(emoji);\n assertTrue(emoji.supportsFitzpatrick());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["112-133"], "old_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, aliases, tags, html, bytes);\n}", "new_production_code": "protected static Emoji buildEmojiFromJSON(JSONObject json) throws UnsupportedEncodingException {\n if (!json.has(\"emoji\")) {\n return null;\n }\n byte[] bytes = json.getString(\"emoji\").getBytes(\"UTF-8\");\n String description = null;\n if (json.has(\"description\")) {\n description = json.getString(\"description\");\n }\n boolean supportsFitzpatrick = false;\n if (json.has(\"supports_fitzpatrick\")) {\n supportsFitzpatrick = json.getBoolean(\"supports_fitzpatrick\");\n }\n List aliases = jsonArrayToStringList(json.getJSONArray(\"aliases\"));\n List tags = jsonArrayToStringList(json.getJSONArray(\"tags\"));\n int html = getHtmlCodeFromBytes(bytes);\n return new Emoji(description, supportsFitzpatrick, aliases, tags, html, bytes);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "focal_method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_old": "44-58", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "line_nums_new": "44-62", "dependency_updated": "updated", "score": 0.5202, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3462, "class": 1.0, "tfidf": 0.4187}}, {"dep_id": 1, "method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "line_nums_new": "40-42", "dependency_updated": "inserted", "score": 0.2478, "signal_scores": {"nc": 0.0, "lcs_u": 0.9474, "ed": 0.3462, "class": 0.0, "tfidf": 0.1001}}], "coverage_gold": 0.9285714285714286, "branch_coverage_gold": 5.102, "method_coverage_gold": 12.8205, "line_coverage_gold": 15.3439, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["a8ab623c4bc5a2543cac6ed0b667ad132b093429", "6089b9a521bbdbd6420efbab0aa49d204400c418"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiLoader.buildEmojiFromJSON:(Lorg/json/JSONObject;)Lcom/vdurmont/emoji/Emoji", "change_type": "UPDATE", "file_path_old": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiLoader.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/vdurmont/emoji/Emoji.supportsFitzpatrick:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/Emoji.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__d17c151_ab6de60__EmojiParserTest_3692e2ce", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "d17c1513ce11172dd54a8ae2d4ad979444b4773b", "rev2": "ab6de60c81d962f8ff9470c3e106925279b6bbab", "rev1_date": "2015-03-12T15:48:39Z", "rev2_date": "2015-03-12T15:56:29Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/d17c1513ce11172dd54a8ae2d4ad979444b4773b...ab6de60c81d962f8ff9470c3e106925279b6bbab", "test_file": "src/test/java/com/vdurmont/emoji/EmojiParserTest.java", "test_changes": [{"change_id": "156_vdurmont_emoji-java-v5.1.1_d17c151_ab6de60_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.parseToHtmlDecimal_replaces_the_emojis_by_their_html_decimal_representation:()V", "class": "EmojiParserTest", "method": "parseToHtmlDecimal_replaces_the_emojis_by_their_html_decimal_representation", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#parseToHtmlDecimal_replaces_the_emojis_by_their_html_decimal_representation", "old_test_code": null, "new_test_code": "@Test\npublic void parseToHtmlDecimal_replaces_the_emojis_by_their_html_decimal_representation() {\n String str = \"An 😀awesome 😃string with a few 😉emojis!\";\n String result = EmojiParser.parseToHtmlDecimal(str);\n assertEquals(\"An 😀awesome 😃string with a few 😉emojis!\", result);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["37-47"], "old_production_code": "", "new_production_code": "public static String parseToHtmlDecimal(String input) {\n String result = input;\n for (Emoji emoji : EmojiManager.getAll()) {\n result = result.replace(emoji.getUnicode(), emoji.getHtmlDecimal());\n }\n return result;\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "86-92", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 41.6667, "method_coverage_gold": 43.3333, "line_coverage_gold": 48.7603, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.parseToHtmlDecimal:(Ljava/lang/String;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "vdurmont_emoji-java-v5.1.1__fcb7f1f_d432936__EmojiParserTest_6bc8bc4b", "project_name": "vdurmont_emoji-java-v5.1.1", "git_clone_url": "https://github.com/vdurmont/emoji-java.git", "rev1": "fcb7f1fa638758f67f3eda599b97e0cb66fd233f", "rev2": "d4329363b86b6f5b68e4778459621ab0470df964", "rev1_date": "2019-08-18T14:47:28Z", "rev2_date": "2019-08-18T14:47:28Z", "git_diff_url": "https://github.com/vdurmont/emoji-java/compare/fcb7f1fa638758f67f3eda599b97e0cb66fd233f...d4329363b86b6f5b68e4778459621ab0470df964", "test_file": "src/test/java/com/vdurmont/emoji/EmojiParserTest.java", "test_changes": [{"change_id": "151_vdurmont_emoji-java-v5.1.1_fcb7f1f_d432936_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasAt_with_one_alias:()V", "class": "EmojiParserTest", "method": "getAliasAt_with_one_alias", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasAt_with_one_alias", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasAt_with_one_alias() {\n String str = \"test :boy: test\";\n AliasCandidate candidate = EmojiParser.getAliasAt(str, 5);\n assertTrue(candidate.emoji.getAliases().contains(\"boy\"));\n assertNull(candidate.fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["338-349"], "old_production_code": "", "new_production_code": "protected static AliasCandidate getAliasAt(String input, int start) {\n if (input.charAt(start) != ':')\n return null;\n int aliasEnd = input.indexOf(':', start + 2);\n if (aliasEnd == -1)\n return null;\n int fitzpatrickStart = input.indexOf('|', start + 2);\n if (fitzpatrickStart != -1 && fitzpatrickStart < aliasEnd) {\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, fitzpatrickStart));\n if (emoji == null)\n return null;\n if (!emoji.supportsFitzpatrick())\n return null;\n Fitzpatrick fitzpatrick = Fitzpatrick.fitzpatrickFromType(input.substring(fitzpatrickStart + 1, aliasEnd));\n return new AliasCandidate(emoji, fitzpatrick, start, aliasEnd);\n }\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, aliasEnd));\n if (emoji == null)\n return null;\n return new AliasCandidate(emoji, null, start, aliasEnd);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "159-176", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 22.9814, "method_coverage_gold": 25.5556, "line_coverage_gold": 36.4486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "com/vdurmont/emoji/Emoji.getAliases:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "152_vdurmont_emoji-java-v5.1.1_fcb7f1f_d432936_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasAt_with_one_alias_an_another_colon_before_after:()V", "class": "EmojiParserTest", "method": "getAliasAt_with_one_alias_an_another_colon_before_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasAt_with_one_alias_an_another_colon_before_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasAt_with_one_alias_an_another_colon_before_after() {\n String str = \"test ::boy: test\";\n AliasCandidate candidate = EmojiParser.getAliasAt(str, 5);\n assertNull(candidate);\n candidate = EmojiParser.getAliasAt(str, 6);\n assertTrue(candidate.emoji.getAliases().contains(\"boy\"));\n assertNull(candidate.fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["377-391"], "old_production_code": "", "new_production_code": "protected static AliasCandidate getAliasAt(String input, int start) {\n if (input.charAt(start) != ':')\n return null;\n int aliasEnd = input.indexOf(':', start + 2);\n if (aliasEnd == -1)\n return null;\n int fitzpatrickStart = input.indexOf('|', start + 2);\n if (fitzpatrickStart != -1 && fitzpatrickStart < aliasEnd) {\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, fitzpatrickStart));\n if (emoji == null)\n return null;\n if (!emoji.supportsFitzpatrick())\n return null;\n Fitzpatrick fitzpatrick = Fitzpatrick.fitzpatrickFromType(input.substring(fitzpatrickStart + 1, aliasEnd));\n return new AliasCandidate(emoji, fitzpatrick, start, aliasEnd);\n }\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, aliasEnd));\n if (emoji == null)\n return null;\n return new AliasCandidate(emoji, null, start, aliasEnd);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "159-176", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 23.6025, "method_coverage_gold": 25.5556, "line_coverage_gold": 36.4486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "com/vdurmont/emoji/Emoji.getAliases:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "153_vdurmont_emoji-java-v5.1.1_fcb7f1f_d432936_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasAt_with_one_alias_an_another_colon_right_after:()V", "class": "EmojiParserTest", "method": "getAliasAt_with_one_alias_an_another_colon_right_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasAt_with_one_alias_an_another_colon_right_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasAt_with_one_alias_an_another_colon_right_after() {\n String str = \"test :boy::test\";\n AliasCandidate candidate = EmojiParser.getAliasAt(str, 5);\n assertTrue(candidate.emoji.getAliases().contains(\"boy\"));\n assertNull(candidate.fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["364-375"], "old_production_code": "", "new_production_code": "protected static AliasCandidate getAliasAt(String input, int start) {\n if (input.charAt(start) != ':')\n return null;\n int aliasEnd = input.indexOf(':', start + 2);\n if (aliasEnd == -1)\n return null;\n int fitzpatrickStart = input.indexOf('|', start + 2);\n if (fitzpatrickStart != -1 && fitzpatrickStart < aliasEnd) {\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, fitzpatrickStart));\n if (emoji == null)\n return null;\n if (!emoji.supportsFitzpatrick())\n return null;\n Fitzpatrick fitzpatrick = Fitzpatrick.fitzpatrickFromType(input.substring(fitzpatrickStart + 1, aliasEnd));\n return new AliasCandidate(emoji, fitzpatrick, start, aliasEnd);\n }\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, aliasEnd));\n if (emoji == null)\n return null;\n return new AliasCandidate(emoji, null, start, aliasEnd);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "159-176", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 22.9814, "method_coverage_gold": 25.5556, "line_coverage_gold": 36.4486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "com/vdurmont/emoji/Emoji.getAliases:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "154_vdurmont_emoji-java-v5.1.1_fcb7f1f_d432936_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasAt_with_one_alias_an_another_colon_after:()V", "class": "EmojiParserTest", "method": "getAliasAt_with_one_alias_an_another_colon_after", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasAt_with_one_alias_an_another_colon_after", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasAt_with_one_alias_an_another_colon_after() {\n String str = \"test :boy: test:\";\n AliasCandidate candidate = EmojiParser.getAliasAt(str, 5);\n assertTrue(candidate.emoji.getAliases().contains(\"boy\"));\n assertNull(candidate.fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["351-362"], "old_production_code": "", "new_production_code": "protected static AliasCandidate getAliasAt(String input, int start) {\n if (input.charAt(start) != ':')\n return null;\n int aliasEnd = input.indexOf(':', start + 2);\n if (aliasEnd == -1)\n return null;\n int fitzpatrickStart = input.indexOf('|', start + 2);\n if (fitzpatrickStart != -1 && fitzpatrickStart < aliasEnd) {\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, fitzpatrickStart));\n if (emoji == null)\n return null;\n if (!emoji.supportsFitzpatrick())\n return null;\n Fitzpatrick fitzpatrick = Fitzpatrick.fitzpatrickFromType(input.substring(fitzpatrickStart + 1, aliasEnd));\n return new AliasCandidate(emoji, fitzpatrick, start, aliasEnd);\n }\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, aliasEnd));\n if (emoji == null)\n return null;\n return new AliasCandidate(emoji, null, start, aliasEnd);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "159-176", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6428571428571429, "branch_coverage_gold": 22.9814, "method_coverage_gold": 25.5556, "line_coverage_gold": 36.4486, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "com/vdurmont/emoji/Emoji.getAliases:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "155_vdurmont_emoji-java-v5.1.1_fcb7f1f_d432936_EmojiParserTest", "test_sign": "com/vdurmont/emoji/EmojiParserTest.getAliasAt_with_a_fitzpatrick_modifier:()V", "class": "EmojiParserTest", "method": "getAliasAt_with_a_fitzpatrick_modifier", "module": "", "junit_selector": "com.vdurmont.emoji.EmojiParserTest#getAliasAt_with_a_fitzpatrick_modifier", "old_test_code": null, "new_test_code": "@Test\npublic void getAliasAt_with_a_fitzpatrick_modifier() {\n String str = \"test :boy|type_3: test\";\n AliasCandidate candidate = EmojiParser.getAliasAt(str, 5);\n assertTrue(candidate.emoji.getAliases().contains(\"boy\"));\n assertEquals(Fitzpatrick.TYPE_3, candidate.fitzpatrick);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["393-404"], "old_production_code": "", "new_production_code": "protected static AliasCandidate getAliasAt(String input, int start) {\n if (input.charAt(start) != ':')\n return null;\n int aliasEnd = input.indexOf(':', start + 2);\n if (aliasEnd == -1)\n return null;\n int fitzpatrickStart = input.indexOf('|', start + 2);\n if (fitzpatrickStart != -1 && fitzpatrickStart < aliasEnd) {\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, fitzpatrickStart));\n if (emoji == null)\n return null;\n if (!emoji.supportsFitzpatrick())\n return null;\n Fitzpatrick fitzpatrick = Fitzpatrick.fitzpatrickFromType(input.substring(fitzpatrickStart + 1, aliasEnd));\n return new AliasCandidate(emoji, fitzpatrick, start, aliasEnd);\n }\n Emoji emoji = EmojiManager.getForAlias(input.substring(start, aliasEnd));\n if (emoji == null)\n return null;\n return new AliasCandidate(emoji, null, start, aliasEnd);\n}", "focal_file_path": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "focal_method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "line_nums_new": "159-176", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7857142857142857, "branch_coverage_gold": 24.2236, "method_coverage_gold": 30.0, "line_coverage_gold": 40.4984, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "com/vdurmont/emoji/Emoji.getAliases:()Ljava/util/List"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/vdurmont/emoji/EmojiParser.getAliasAt:(Ljava/lang/String;I)Lcom/vdurmont/emoji/EmojiParser$AliasCandidate", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/vdurmont/emoji/EmojiParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.1.1", "java_version": 11} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__005c931_521f76f__HtmxResponseTest_357b0050", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "005c93153981f55840035b4de0f0457d6006a404", "rev2": "521f76ffe2edc2050766363f406e8a470a554952", "rev1_date": "2023-09-13T08:02:39Z", "rev2_date": "2023-09-13T11:35:38Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/005c93153981f55840035b4de0f0457d6006a404...521f76ffe2edc2050766363f406e8a470a554952", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.java", "test_changes": [{"change_id": "450_wimdeblauwe_htmx-spring-boot-5.0.0_005c931_521f76f_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.testAddingTriggersAfterSettle:()V", "class": "HtmxResponseTest", "method": "testAddingTriggersAfterSettle", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#testAddingTriggersAfterSettle", "old_test_code": null, "new_test_code": "@Test\npublic void testAddingTriggersAfterSettle() {\n HtmxResponse response = new HtmxResponse().addTrigger(\"event\", null, HxTriggerLifecycle.SETTLE);\n assertThat(response.getTriggersAfterSettle()).containsKey(\"event\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-69"], "old_production_code": "Map getTriggersAfterSettle() {\n if (this.triggers.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSettle);\n}", "new_production_code": "Map getTriggersAfterSettle() {\n if (this.triggersAfterSettle.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSettle);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "261-266", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "258-263", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 1.8519, "method_coverage_gold": 6.4516, "line_coverage_gold": 6.4417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.addTrigger:(Ljava/lang/String;Ljava/lang/String;Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxTriggerLifecycle;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "451_wimdeblauwe_htmx-spring-boot-5.0.0_005c931_521f76f_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.testAddingTriggersAfterSwap:()V", "class": "HtmxResponseTest", "method": "testAddingTriggersAfterSwap", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#testAddingTriggersAfterSwap", "old_test_code": null, "new_test_code": "@Test\npublic void testAddingTriggersAfterSwap() {\n HtmxResponse response = new HtmxResponse().addTrigger(\"event\", null, HxTriggerLifecycle.SWAP);\n assertThat(response.getTriggersAfterSwap()).containsKey(\"event\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-60"], "old_production_code": "Map getTriggersAfterSwap() {\n if (this.triggers.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSwap);\n}", "new_production_code": "Map getTriggersAfterSwap() {\n if (this.triggersAfterSwap.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSwap);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "268-273", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "265-270", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 1.8519, "method_coverage_gold": 6.4516, "line_coverage_gold": 6.4417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.addTrigger:(Ljava/lang/String;Ljava/lang/String;Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxTriggerLifecycle;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__139bd0a_62eead0__HtmxResponseTest_254d0d5b", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "139bd0ab62ad71f543c7037846c5f0215a70cc23", "rev2": "62eead036b1f32405d51e8503670a0e373cb1c9c", "rev1_date": "2023-09-12T13:28:59Z", "rev2_date": "2023-09-12T13:29:00Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/139bd0ab62ad71f543c7037846c5f0215a70cc23...62eead036b1f32405d51e8503670a0e373cb1c9c", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.java", "test_changes": [{"change_id": "426_wimdeblauwe_htmx-spring-boot-5.0.0_139bd0a_62eead0_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.andShouldOverrideProperties:()V", "class": "HtmxResponseTest", "method": "andShouldOverrideProperties", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#andShouldOverrideProperties", "old_test_code": null, "new_test_code": "@Test\npublic void andShouldOverrideProperties() {\n HtmxResponse response1 = new HtmxResponse().retarget(\"selector1\").reswap(HxSwapType.INNER_HTML).browserRedirect(\"url1\").browserRefresh(false).pushHistory(\"url1\");\n HtmxResponse response2 = new HtmxResponse().retarget(\"selector2\").reswap(HxSwapType.OUTER_HTML).browserRedirect(\"url2\").browserRefresh(true).pushHistory(\"url2\");\n response1.and(response2);\n assertThat(response1).satisfies(response -> {\n assertThat(response.getHeaderRetarget()).isEqualTo(\"selector2\");\n assertThat(response.getHeaderReswap()).isEqualTo(HxSwapType.OUTER_HTML.getValue());\n assertThat(response.getHeaderRedirect()).isEqualTo(\"url2\");\n assertThat(response.getHeaderRefresh()).isEqualTo(true);\n assertThat(response.getHeaderPushHistory()).isEqualTo(\"url2\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-142"], "old_production_code": "public HtmxResponse and(HtmxResponse otherResponse) {\n otherResponse.templates.forEach(otherTemplate -> {\n if (this.templates.stream().anyMatch(mav -> same(otherTemplate, mav))) {\n LOG.info(\"Duplicate template '{}' found while merging HtmxResponse\", otherTemplate);\n } else {\n templates.add(otherTemplate);\n }\n });\n mergeMapAndLog(HxTriggerLifecycle.RECEIVE, this.triggers, otherResponse.triggers);\n mergeMapAndLog(HxTriggerLifecycle.SETTLE, this.triggersAfterSettle, otherResponse.triggersAfterSettle);\n mergeMapAndLog(HxTriggerLifecycle.SWAP, this.triggersAfterSwap, otherResponse.triggersAfterSwap);\n if (otherResponse.getHeaderPushHistory() != null) {\n this.headerPushHistory = otherResponse.getHeaderPushHistory();\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderRefresh()) {\n this.headerRefresh = true;\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderReswap() != null) {\n this.headerReswap = otherResponse.getHeaderReswap();\n }\n return this;\n}", "new_production_code": "public HtmxResponse and(HtmxResponse otherResponse) {\n otherResponse.templates.forEach(otherTemplate -> {\n if (this.templates.stream().anyMatch(mav -> same(otherTemplate, mav))) {\n LOG.info(\"Duplicate template '{}' found while merging HtmxResponse\", otherTemplate);\n } else {\n templates.add(otherTemplate);\n }\n });\n mergeMapAndLog(HxTriggerLifecycle.RECEIVE, this.triggers, otherResponse.triggers);\n mergeMapAndLog(HxTriggerLifecycle.SETTLE, this.triggersAfterSettle, otherResponse.triggersAfterSettle);\n mergeMapAndLog(HxTriggerLifecycle.SWAP, this.triggersAfterSwap, otherResponse.triggersAfterSwap);\n if (otherResponse.getHeaderPushHistory() != null) {\n this.headerPushHistory = otherResponse.getHeaderPushHistory();\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderRefresh()) {\n this.headerRefresh = true;\n }\n if (otherResponse.getHeaderRetarget() != null) {\n this.headerRetarget = otherResponse.getHeaderRetarget();\n }\n if (otherResponse.getHeaderReswap() != null) {\n this.headerReswap = otherResponse.getHeaderReswap();\n }\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "187-216", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "187-216", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.6296, "method_coverage_gold": 22.3529, "line_coverage_gold": 20.0637, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.reswap:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxSwapType;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.browserRefresh:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.retarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.browserRedirect:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.pushHistory:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__17f288f_c144e76__HtmxViewHandlerInterceptorTest_78943739", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "17f288f5673f1ca080155910d771433ac79b5b54", "rev2": "c144e761fc616aa5043ce58158fa75c4053e4a08", "rev1_date": "2024-04-17T06:12:31Z", "rev2_date": "2024-04-17T07:09:42Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/17f288f5673f1ca080155910d771433ac79b5b54...c144e761fc616aa5043ce58158fa75c4053e4a08", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.java", "test_changes": [{"change_id": "427_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerWithoutDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerWithoutDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerWithoutDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerWithoutDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-without-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger\", \"event1,event2\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["91-96"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.9431, "method_coverage_gold": 24.2574, "line_coverage_gold": 24.2574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "428_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxReplaceUrl:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxReplaceUrl", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxReplaceUrl", "old_test_code": null, "new_test_code": "@Test\npublic void testHxReplaceUrl() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-replace-url\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Replace-Url\", \"/path\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["35-40"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.7236, "method_coverage_gold": 21.2871, "line_coverage_gold": 21.9472, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "429_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerAfterSwapWithoutDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerAfterSwapWithoutDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerAfterSwapWithoutDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerAfterSwapWithoutDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-after-swap-without-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger-After-Swap\", \"event1,event2\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["77-82"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.9431, "method_coverage_gold": 24.2574, "line_coverage_gold": 24.2574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "430_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerWithDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerWithDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerWithDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerWithDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-with-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger\", \"{\\\"event1\\\":null,\\\"event2\\\":{\\\"var\\\":\\\"value\\\"}}\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-89"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.1626, "method_coverage_gold": 24.7525, "line_coverage_gold": 24.9175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "431_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerAfterSettleWithoutDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerAfterSettleWithoutDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerAfterSettleWithoutDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerAfterSettleWithoutDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-after-settle-without-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger-After-Settle\", \"event1,event2\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["63-68"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.9431, "method_coverage_gold": 24.2574, "line_coverage_gold": 24.2574, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "432_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxReswap:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxReswap", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxReswap", "old_test_code": null, "new_test_code": "@Test\npublic void testHxReswap() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-reswap\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Reswap\", \"outerHTML transition:true focus-scroll:true swap:100ms settle:300ms scroll:#target:bottom show:#target:top\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["49-54"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.9756, "method_coverage_gold": 29.703, "line_coverage_gold": 31.3531, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "433_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxLocationWithoutContextData:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxLocationWithoutContextData", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxLocationWithoutContextData", "old_test_code": null, "new_test_code": "@Test\npublic void testHxLocationWithoutContextData() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-location-without-context-data\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Location\", \"/path\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["28-33"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.9756, "method_coverage_gold": 22.7723, "line_coverage_gold": 23.1023, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "434_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerAfterSettleWithDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerAfterSettleWithDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerAfterSettleWithDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerAfterSettleWithDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-after-settle-with-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger-After-Settle\", \"{\\\"event1\\\":null,\\\"event2\\\":{\\\"var\\\":\\\"value\\\"}}\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["56-61"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.1626, "method_coverage_gold": 24.7525, "line_coverage_gold": 24.9175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "435_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxLocationWithContextData:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxLocationWithContextData", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxLocationWithContextData", "old_test_code": null, "new_test_code": "@Test\npublic void testHxLocationWithContextData() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-location-with-context-data\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Location\", \"{\\\"path\\\":\\\"/path\\\",\\\"source\\\":\\\"source\\\",\\\"event\\\":\\\"event\\\",\\\"handler\\\":\\\"handler\\\",\\\"target\\\":\\\"target\\\",\\\"swap\\\":\\\"swap\\\",\\\"values\\\":{\\\"value1\\\":\\\"v1\\\",\\\"value2\\\":\\\"v2\\\"},\\\"headers\\\":{\\\"header1\\\":\\\"v1\\\",\\\"header2\\\":\\\"v2\\\"}}\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-26"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 8.5366, "method_coverage_gold": 30.6931, "line_coverage_gold": 27.0627, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "436_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxTriggerAfterSwapWithDetails:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxTriggerAfterSwapWithDetails", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxTriggerAfterSwapWithDetails", "old_test_code": null, "new_test_code": "@Test\npublic void testHxTriggerAfterSwapWithDetails() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-trigger-after-swap-with-details\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Trigger-After-Swap\", \"{\\\"event1\\\":null,\\\"event2\\\":{\\\"var\\\":\\\"value\\\"}}\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["70-75"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 10.1626, "method_coverage_gold": 24.7525, "line_coverage_gold": 24.9175, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "437_wimdeblauwe_htmx-spring-boot-5.0.0_17f288f_c144e76_HtmxViewHandlerInterceptorTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxViewHandlerInterceptorTest.testHxReselect:()V", "class": "HtmxViewHandlerInterceptorTest", "method": "testHxReselect", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxViewHandlerInterceptorTest#testHxReselect", "old_test_code": null, "new_test_code": "@Test\npublic void testHxReselect() throws Exception {\n mockMvc.perform(get(\"/hvhi/hx-reselect\")).andExpect(status().isOk()).andExpect(header().string(\"HX-Reselect\", \"#target\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-47"], "old_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n setVary(request, response);\n }\n return true;\n}", "new_production_code": "@Override\npublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {\n if (handler instanceof HandlerMethod) {\n Method method = ((HandlerMethod) handler).getMethod();\n setHxTrigger(response, method);\n setHxRefresh(response, method);\n }\n return true;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_old": "19-31", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "line_nums_new": "18-29", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 7.7236, "method_coverage_gold": 21.2871, "line_coverage_gold": 21.9472, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.preHandle:(Ljakarta/servlet/http/HttpServletRequest;Ljakarta/servlet/http/HttpServletResponse;Ljava/lang/Object;)Z", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxHandlerInterceptor.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__39bff64_e4dd70b__HtmxResponseTest_254d0d5b", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "39bff648cc28b8ae8cb2a5572f6885b0fbc18555", "rev2": "e4dd70b320115b52ade6f7fa2cf3179cafc921f5", "rev1_date": "2023-09-12T19:08:43Z", "rev2_date": "2023-09-12T19:10:14Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/39bff648cc28b8ae8cb2a5572f6885b0fbc18555...e4dd70b320115b52ade6f7fa2cf3179cafc921f5", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.java", "test_changes": [{"change_id": "474_wimdeblauwe_htmx-spring-boot-5.0.0_39bff64_e4dd70b_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.andShouldOverrideProperties:()V", "class": "HtmxResponseTest", "method": "andShouldOverrideProperties", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#andShouldOverrideProperties", "old_test_code": null, "new_test_code": "@Test\npublic void andShouldOverrideProperties() {\n HtmxResponse response1 = new HtmxResponse().retarget(\"selector1\").reswap(HxSwapType.INNER_HTML).browserRedirect(\"url1\").browserRefresh(false).pushHistory(\"url1\");\n HtmxResponse response2 = new HtmxResponse().retarget(\"selector2\").reswap(HxSwapType.OUTER_HTML).browserRedirect(\"url2\").browserRefresh(true).pushHistory(\"url2\");\n response1.and(response2);\n assertThat(response1).satisfies(response -> {\n assertThat(response.getHeaderRetarget()).isEqualTo(\"selector2\");\n assertThat(response.getHeaderReswap()).isEqualTo(HxSwapType.OUTER_HTML.getValue());\n assertThat(response.getHeaderRedirect()).isEqualTo(\"url2\");\n assertThat(response.getHeaderRefresh()).isEqualTo(true);\n assertThat(response.getHeaderPushHistory()).isEqualTo(\"url2\");\n });\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-142"], "old_production_code": "public HtmxResponse and(HtmxResponse otherResponse) {\n otherResponse.templates.forEach(otherTemplate -> {\n if (this.templates.stream().anyMatch(mav -> same(otherTemplate, mav))) {\n LOG.info(\"Duplicate template '{}' found while merging HtmxResponse\", otherTemplate);\n } else {\n templates.add(otherTemplate);\n }\n });\n mergeMapAndLog(HxTriggerLifecycle.RECEIVE, this.triggers, otherResponse.triggers);\n mergeMapAndLog(HxTriggerLifecycle.SETTLE, this.triggersAfterSettle, otherResponse.triggersAfterSettle);\n mergeMapAndLog(HxTriggerLifecycle.SWAP, this.triggersAfterSwap, otherResponse.triggersAfterSwap);\n if (otherResponse.getHeaderPushHistory() != null) {\n this.headerPushHistory = otherResponse.getHeaderPushHistory();\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderRefresh()) {\n this.headerRefresh = true;\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderReswap() != null) {\n this.headerReswap = otherResponse.getHeaderReswap();\n }\n return this;\n}", "new_production_code": "public HtmxResponse and(HtmxResponse otherResponse) {\n otherResponse.templates.forEach(otherTemplate -> {\n if (this.templates.stream().anyMatch(mav -> same(otherTemplate, mav))) {\n LOG.info(\"Duplicate template '{}' found while merging HtmxResponse\", otherTemplate);\n } else {\n templates.add(otherTemplate);\n }\n });\n mergeMapAndLog(HxTriggerLifecycle.RECEIVE, this.triggers, otherResponse.triggers);\n mergeMapAndLog(HxTriggerLifecycle.SETTLE, this.triggersAfterSettle, otherResponse.triggersAfterSettle);\n mergeMapAndLog(HxTriggerLifecycle.SWAP, this.triggersAfterSwap, otherResponse.triggersAfterSwap);\n if (otherResponse.getHeaderPushHistory() != null) {\n this.headerPushHistory = otherResponse.getHeaderPushHistory();\n }\n if (otherResponse.getHeaderRedirect() != null) {\n this.headerRedirect = otherResponse.getHeaderRedirect();\n }\n if (otherResponse.getHeaderRefresh()) {\n this.headerRefresh = true;\n }\n if (otherResponse.getHeaderRetarget() != null) {\n this.headerRetarget = otherResponse.getHeaderRetarget();\n }\n if (otherResponse.getHeaderReswap() != null) {\n this.headerReswap = otherResponse.getHeaderReswap();\n }\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "191-220", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "187-216", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.6296, "method_coverage_gold": 20.4301, "line_coverage_gold": 19.3252, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.reswap:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxSwapType;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.browserRefresh:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.retarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.browserRedirect:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.pushHistory:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.and:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__66dda80_ef2356f__HtmxReswapTest_9eb9b31c", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "66dda80e8563eafad50050cf2d1886ccca9d9462", "rev2": "ef2356f772cc9491c1d4be945b8a30a541372511", "rev1_date": "2023-10-12T08:34:49Z", "rev2_date": "2023-10-12T08:34:49Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/66dda80e8563eafad50050cf2d1886ccca9d9462...ef2356f772cc9491c1d4be945b8a30a541372511", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.java", "test_changes": [{"change_id": "492_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollBottomWithTarget:()V", "class": "HtmxReswapTest", "method": "testScrollBottomWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollBottomWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollBottomWithTarget() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.BOTTOM).scrollTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML scroll:#target:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-36"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.4878, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2727, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "188-191", "dependency_updated": "inserted", "score": 0.487, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5455, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3285, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3266, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0909, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "493_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSwap:()V", "class": "HtmxReswapTest", "method": "testSwap", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSwap", "old_test_code": null, "new_test_code": "@Test\nvoid testSwap() {\n var reswap = HtmxReswap.innerHtml().swap(Duration.ofMillis(200));\n assertThat(reswap).hasToString(\"innerHTML swap:200ms\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-93"], "old_production_code": "", "new_production_code": "public HtmxReswap swap(Duration duration) {\n this.swap = duration;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "232-235", "dependency_updated": "inserted", "score": 0.8468, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3487}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.2389, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2153}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2309, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "494_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowTopWithTarget:()V", "class": "HtmxReswapTest", "method": "testShowTopWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowTopWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testShowTopWithTarget() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.TOP).showTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML show:#target:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-87"], "old_production_code": "", "new_production_code": "public HtmxReswap showTarget(String cssSelector) {\n this.showTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "221-224", "dependency_updated": "inserted", "score": 0.4941, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5882, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.4816, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2353, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3373, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2353, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.331, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1176, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "495_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollTopWithTarget:()V", "class": "HtmxReswapTest", "method": "testScrollTopWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollTopWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollTopWithTarget() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.TOP).scrollTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML scroll:#target:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-51"], "old_production_code": "", "new_production_code": "public HtmxReswap scrollTarget(String cssSelector) {\n this.scrollTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "188-191", "dependency_updated": "inserted", "score": 0.5012, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6316, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.4949, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3158, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3332, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2105, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.329, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1053, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "496_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testFocusScrollTrue:()V", "class": "HtmxReswapTest", "method": "testFocusScrollTrue", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testFocusScrollTrue", "old_test_code": null, "new_test_code": "@Test\nvoid testFocusScrollTrue() {\n var reswap = HtmxReswap.innerHtml().focusScroll(true);\n assertThat(reswap).hasToString(\"innerHTML focus-scroll:true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "public HtmxReswap focusScroll(boolean enabled) {\n this.focusScroll = enabled;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "166-169", "dependency_updated": "inserted", "score": 0.5194, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7333, "class": 1.0, "tfidf": 0.1441}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3094, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3062, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1333, "class": 1.0, "tfidf": 0.2414}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "497_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowTop:()V", "class": "HtmxReswapTest", "method": "testShowTop", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowTop", "old_test_code": null, "new_test_code": "@Test\nvoid testShowTop() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.TOP);\n assertThat(reswap).hasToString(\"innerHTML show:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-78"], "old_production_code": "", "new_production_code": "public HtmxReswap show(Position position) {\n this.show = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.5455, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5714, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3173, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2529, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "498_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowBottomWithTarget:()V", "class": "HtmxReswapTest", "method": "testShowBottomWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowBottomWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testShowBottomWithTarget() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.BOTTOM).showTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML show:#target:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-72"], "old_production_code": "", "new_production_code": "public HtmxReswap showTarget(String cssSelector) {\n this.showTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "221-224", "dependency_updated": "inserted", "score": 0.4796, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.4758, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3315, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3281, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "499_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollBottom:()V", "class": "HtmxReswapTest", "method": "testScrollBottom", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollBottom", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollBottom() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.BOTTOM);\n assertThat(reswap).hasToString(\"innerHTML scroll:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-27"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.5338, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3323, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0833, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2461, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0833, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "500_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testFocusScrollFalse:()V", "class": "HtmxReswapTest", "method": "testFocusScrollFalse", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testFocusScrollFalse", "old_test_code": null, "new_test_code": "@Test\nvoid testFocusScrollFalse() {\n var reswap = HtmxReswap.innerHtml().focusScroll(false);\n assertThat(reswap).hasToString(\"innerHTML focus-scroll:false\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-15"], "old_production_code": "", "new_production_code": "public HtmxReswap focusScroll(boolean enabled) {\n this.focusScroll = enabled;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "166-169", "dependency_updated": "inserted", "score": 0.5118, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6875, "class": 1.0, "tfidf": 0.1441}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3048, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.125, "class": 1.0, "tfidf": 0.2414}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2853, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1875, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "501_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollTop:()V", "class": "HtmxReswapTest", "method": "testScrollTop", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollTop", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollTop() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.TOP);\n assertThat(reswap).hasToString(\"innerHTML scroll:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-42"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.5612, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6667, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3173, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2324, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "502_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSwapOptions:()V", "class": "HtmxReswapTest", "method": "testSwapOptions", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSwapOptions", "old_test_code": null, "new_test_code": "@Test\nvoid testSwapOptions() {\n assertThat(HtmxReswap.afterBegin()).hasToString(\"afterbegin\");\n assertThat(HtmxReswap.afterEnd()).hasToString(\"afterend\");\n assertThat(HtmxReswap.beforeBegin()).hasToString(\"beforebegin\");\n assertThat(HtmxReswap.beforeEnd()).hasToString(\"beforeend\");\n assertThat(HtmxReswap.delete()).hasToString(\"delete\");\n assertThat(HtmxReswap.none()).hasToString(\"none\");\n assertThat(HtmxReswap.outerHtml()).hasToString(\"outerHTML\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-104"], "old_production_code": "", "new_production_code": "public static HtmxReswap none() {\n return new HtmxReswap(HxSwapType.NONE);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "69-71", "dependency_updated": "inserted", "score": 0.3841, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1818, "class": 1.0, "tfidf": 0.3302}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": 0.3572, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1818, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 7, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.3467, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 4, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.3303, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1818, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 6, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3214, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2727, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.3153, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0909, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 5, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "55-57", "dependency_updated": "inserted", "score": 0.3103, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.0909, "class": 1.0, "tfidf": 0.3302}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.3093, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.0, "class": 1.0, "tfidf": 0.3098}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 7.7844, "line_coverage_gold": 6.5606, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "503_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSettle:()V", "class": "HtmxReswapTest", "method": "testSettle", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSettle", "old_test_code": null, "new_test_code": "@Test\nvoid testSettle() {\n var reswap = HtmxReswap.innerHtml().settle(Duration.ofMillis(200));\n assertThat(reswap).hasToString(\"innerHTML settle:200ms\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-57"], "old_production_code": "", "new_production_code": "public HtmxReswap settle(Duration duration) {\n this.settle = duration;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "199-202", "dependency_updated": "inserted", "score": 0.8468, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3487}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3343, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2222, "class": 1.0, "tfidf": 0.2153}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2529, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "504_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testTransition:()V", "class": "HtmxReswapTest", "method": "testTransition", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testTransition", "old_test_code": null, "new_test_code": "@Test\nvoid testTransition() {\n var reswap = HtmxReswap.innerHtml().transition();\n assertThat(reswap).hasToString(\"innerHTML transition:true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-110"], "old_production_code": "", "new_production_code": "public HtmxReswap transition() {\n this.transition = true;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "267-270", "dependency_updated": "inserted", "score": 0.8568, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3913}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3479, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.3, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.299, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1, "class": 1.0, "tfidf": 0.234}}], "coverage_gold": 0.36363636363636365, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "505_wimdeblauwe_htmx-spring-boot-5.0.0_66dda80_ef2356f_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowBottom:()V", "class": "HtmxReswapTest", "method": "testShowBottom", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowBottom", "old_test_code": null, "new_test_code": "@Test\nvoid testShowBottom() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.BOTTOM);\n assertThat(reswap).hasToString(\"innerHTML show:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-63"], "old_production_code": "", "new_production_code": "public HtmxReswap show(Position position) {\n this.show = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.5173, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.335, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2488, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__8edc311_8b0ada3__HtmxResponseTest_357b0050", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "8edc3111ad8501d972d35c7965ed5a171f05b33b", "rev2": "8b0ada37f7716486beb049834738a56c3117d334", "rev1_date": "2023-09-13T14:15:15Z", "rev2_date": "2023-09-13T14:16:16Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/8edc3111ad8501d972d35c7965ed5a171f05b33b...8b0ada37f7716486beb049834738a56c3117d334", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.java", "test_changes": [{"change_id": "471_wimdeblauwe_htmx-spring-boot-5.0.0_8edc311_8b0ada3_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.testAddingTriggersAfterSettle:()V", "class": "HtmxResponseTest", "method": "testAddingTriggersAfterSettle", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#testAddingTriggersAfterSettle", "old_test_code": null, "new_test_code": "@Test\npublic void testAddingTriggersAfterSettle() {\n HtmxResponse response = new HtmxResponse().addTrigger(\"event\", null, HxTriggerLifecycle.SETTLE);\n assertThat(response.getTriggersAfterSettle()).containsKey(\"event\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["62-69"], "old_production_code": "Map getTriggersAfterSettle() {\n if (this.triggers.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSettle);\n}", "new_production_code": "Map getTriggersAfterSettle() {\n if (this.triggersAfterSettle.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSettle);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "261-266", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "261-266", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 1.8519, "method_coverage_gold": 6.4516, "line_coverage_gold": 6.4417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.addTrigger:(Ljava/lang/String;Ljava/lang/String;Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxTriggerLifecycle;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSettle:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}, {"change_id": "472_wimdeblauwe_htmx-spring-boot-5.0.0_8edc311_8b0ada3_HtmxResponseTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponseTest.testAddingTriggersAfterSwap:()V", "class": "HtmxResponseTest", "method": "testAddingTriggersAfterSwap", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponseTest#testAddingTriggersAfterSwap", "old_test_code": null, "new_test_code": "@Test\npublic void testAddingTriggersAfterSwap() {\n HtmxResponse response = new HtmxResponse().addTrigger(\"event\", null, HxTriggerLifecycle.SWAP);\n assertThat(response.getTriggersAfterSwap()).containsKey(\"event\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-60"], "old_production_code": "Map getTriggersAfterSwap() {\n if (this.triggers.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSwap);\n}", "new_production_code": "Map getTriggersAfterSwap() {\n if (this.triggersAfterSwap.isEmpty()) {\n return Collections.emptyMap();\n }\n return new HashMap<>(this.triggersAfterSwap);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_old": "268-273", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "line_nums_new": "268-273", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.5384615384615384, "branch_coverage_gold": 1.8519, "method_coverage_gold": 6.4516, "line_coverage_gold": 6.4417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.addTrigger:(Ljava/lang/String;Ljava/lang/String;Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HxTriggerLifecycle;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.getTriggersAfterSwap:()Ljava/util/Map", "change_type": "UPDATE", "file_path_old": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxResponse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wimdeblauwe_htmx-spring-boot-5.0.0__a352e58_9f1137a__HtmxReswapTest_9eb9b31c", "project_name": "wimdeblauwe_htmx-spring-boot-5.0.0", "git_clone_url": "https://github.com/wimdeblauwe/htmx-spring-boot.git", "rev1": "a352e58d5042125bbeec28a6dca27d1e9fcf8180", "rev2": "9f1137a1128affd5d8aefbe7183fc926067d0f96", "rev1_date": "2023-10-12T09:12:36Z", "rev2_date": "2023-10-12T17:36:01Z", "git_diff_url": "https://github.com/wimdeblauwe/htmx-spring-boot/compare/a352e58d5042125bbeec28a6dca27d1e9fcf8180...9f1137a1128affd5d8aefbe7183fc926067d0f96", "test_file": "htmx-spring-boot/src/test/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.java", "test_changes": [{"change_id": "478_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollBottomWithTarget:()V", "class": "HtmxReswapTest", "method": "testScrollBottomWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollBottomWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollBottomWithTarget() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.BOTTOM).scrollTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML scroll:#target:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-36"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.4878, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2727, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "188-191", "dependency_updated": "inserted", "score": 0.487, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5455, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3285, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.1818, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3266, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0909, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "479_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSwap:()V", "class": "HtmxReswapTest", "method": "testSwap", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSwap", "old_test_code": null, "new_test_code": "@Test\nvoid testSwap() {\n var reswap = HtmxReswap.innerHtml().swap(Duration.ofMillis(200));\n assertThat(reswap).hasToString(\"innerHTML swap:200ms\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-93"], "old_production_code": "", "new_production_code": "public HtmxReswap swap(Duration duration) {\n this.swap = duration;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "232-235", "dependency_updated": "inserted", "score": 0.8468, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3487}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.2389, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 1.0, "tfidf": 0.2153}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2309, "signal_scores": {"nc": 0.0, "lcs_u": 0.125, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.swap:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "480_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowTopWithTarget:()V", "class": "HtmxReswapTest", "method": "testShowTopWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowTopWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testShowTopWithTarget() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.TOP).showTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML show:#target:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["80-87"], "old_production_code": "", "new_production_code": "public HtmxReswap showTarget(String cssSelector) {\n this.showTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "221-224", "dependency_updated": "inserted", "score": 0.4941, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5882, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.4816, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2353, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3373, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2353, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.331, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1176, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "481_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollTopWithTarget:()V", "class": "HtmxReswapTest", "method": "testScrollTopWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollTopWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollTopWithTarget() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.TOP).scrollTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML scroll:#target:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["44-51"], "old_production_code": "", "new_production_code": "public HtmxReswap scrollTarget(String cssSelector) {\n this.scrollTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "188-191", "dependency_updated": "inserted", "score": 0.5012, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6316, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.4949, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3158, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3332, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2105, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.329, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1053, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scrollTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "482_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testFocusScrollTrue:()V", "class": "HtmxReswapTest", "method": "testFocusScrollTrue", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testFocusScrollTrue", "old_test_code": null, "new_test_code": "@Test\nvoid testFocusScrollTrue() {\n var reswap = HtmxReswap.innerHtml().focusScroll(true);\n assertThat(reswap).hasToString(\"innerHTML focus-scroll:true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-21"], "old_production_code": "", "new_production_code": "public HtmxReswap focusScroll(boolean enabled) {\n this.focusScroll = enabled;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "166-169", "dependency_updated": "inserted", "score": 0.5194, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7333, "class": 1.0, "tfidf": 0.1441}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3094, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3062, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1333, "class": 1.0, "tfidf": 0.2414}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "483_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowTop:()V", "class": "HtmxReswapTest", "method": "testShowTop", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowTop", "old_test_code": null, "new_test_code": "@Test\nvoid testShowTop() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.TOP);\n assertThat(reswap).hasToString(\"innerHTML show:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-78"], "old_production_code": "", "new_production_code": "public HtmxReswap show(Position position) {\n this.show = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.5455, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5714, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3173, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2529, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "484_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowBottomWithTarget:()V", "class": "HtmxReswapTest", "method": "testShowBottomWithTarget", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowBottomWithTarget", "old_test_code": null, "new_test_code": "@Test\nvoid testShowBottomWithTarget() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.BOTTOM).showTarget(\"#target\");\n assertThat(reswap).hasToString(\"innerHTML show:#target:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["65-72"], "old_production_code": "", "new_production_code": "public HtmxReswap showTarget(String cssSelector) {\n this.showTarget = cssSelector;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "221-224", "dependency_updated": "inserted", "score": 0.4796, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.1381}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.4758, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.2, "class": 1.0, "tfidf": 0.3321}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3315, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.2, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3281, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1, "class": 1.0, "tfidf": 0.2744}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 7.1856, "line_coverage_gold": 7.9523, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.showTarget:(Ljava/lang/String;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "485_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollBottom:()V", "class": "HtmxReswapTest", "method": "testScrollBottom", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollBottom", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollBottom() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.BOTTOM);\n assertThat(reswap).hasToString(\"innerHTML scroll:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["23-27"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.5338, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.5, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3323, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.0833, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2461, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0833, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "486_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testFocusScrollFalse:()V", "class": "HtmxReswapTest", "method": "testFocusScrollFalse", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testFocusScrollFalse", "old_test_code": null, "new_test_code": "@Test\nvoid testFocusScrollFalse() {\n var reswap = HtmxReswap.innerHtml().focusScroll(false);\n assertThat(reswap).hasToString(\"innerHTML focus-scroll:false\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-15"], "old_production_code": "", "new_production_code": "public HtmxReswap focusScroll(boolean enabled) {\n this.focusScroll = enabled;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "166-169", "dependency_updated": "inserted", "score": 0.5118, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6875, "class": 1.0, "tfidf": 0.1441}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3048, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.125, "class": 1.0, "tfidf": 0.2414}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2853, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1875, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.focusScroll:(Z)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "487_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testScrollTop:()V", "class": "HtmxReswapTest", "method": "testScrollTop", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testScrollTop", "old_test_code": null, "new_test_code": "@Test\nvoid testScrollTop() {\n var reswap = HtmxReswap.innerHtml().scroll(HtmxReswap.Position.TOP);\n assertThat(reswap).hasToString(\"innerHTML scroll:top\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-42"], "old_production_code": "", "new_production_code": "public HtmxReswap scroll(Position position) {\n this.scroll = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "177-180", "dependency_updated": "inserted", "score": 0.5612, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.6667, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3173, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1111, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2324, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.0, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.scroll:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "488_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSwapOptions:()V", "class": "HtmxReswapTest", "method": "testSwapOptions", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSwapOptions", "old_test_code": null, "new_test_code": "@Test\nvoid testSwapOptions() {\n assertThat(HtmxReswap.afterBegin()).hasToString(\"afterbegin\");\n assertThat(HtmxReswap.afterEnd()).hasToString(\"afterend\");\n assertThat(HtmxReswap.beforeBegin()).hasToString(\"beforebegin\");\n assertThat(HtmxReswap.beforeEnd()).hasToString(\"beforeend\");\n assertThat(HtmxReswap.delete()).hasToString(\"delete\");\n assertThat(HtmxReswap.none()).hasToString(\"none\");\n assertThat(HtmxReswap.outerHtml()).hasToString(\"outerHTML\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["95-104"], "old_production_code": "", "new_production_code": "public static HtmxReswap none() {\n return new HtmxReswap(HxSwapType.NONE);\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 3, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "69-71", "dependency_updated": "inserted", "score": 0.3841, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.1818, "class": 1.0, "tfidf": 0.3302}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "34-36", "dependency_updated": "inserted", "score": 0.3572, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1818, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 7, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": 0.3467, "signal_scores": {"nc": 0.0, "lcs_u": 0.4, "ed": 0.0909, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 4, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "48-50", "dependency_updated": "inserted", "score": 0.3303, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1818, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 6, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3214, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2727, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "76-78", "dependency_updated": "inserted", "score": 0.3153, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.0909, "class": 1.0, "tfidf": 0.3098}}, {"dep_id": 5, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "55-57", "dependency_updated": "inserted", "score": 0.3103, "signal_scores": {"nc": 0.0, "lcs_u": 0.1667, "ed": 0.0909, "class": 1.0, "tfidf": 0.3302}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "41-43", "dependency_updated": "inserted", "score": 0.3093, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.0, "class": 1.0, "tfidf": 0.3098}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 7.7844, "line_coverage_gold": 6.5606, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.outerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.none:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.beforeEnd:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.delete:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.afterBegin:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "489_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testSettle:()V", "class": "HtmxReswapTest", "method": "testSettle", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testSettle", "old_test_code": null, "new_test_code": "@Test\nvoid testSettle() {\n var reswap = HtmxReswap.innerHtml().settle(Duration.ofMillis(200));\n assertThat(reswap).hasToString(\"innerHTML settle:200ms\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["53-57"], "old_production_code": "", "new_production_code": "public HtmxReswap settle(Duration duration) {\n this.settle = duration;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "199-202", "dependency_updated": "inserted", "score": 0.8468, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3487}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.3343, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.2222, "class": 1.0, "tfidf": 0.2153}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2529, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.125, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.settle:(Ljava/time/Duration;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "490_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testTransition:()V", "class": "HtmxReswapTest", "method": "testTransition", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testTransition", "old_test_code": null, "new_test_code": "@Test\nvoid testTransition() {\n var reswap = HtmxReswap.innerHtml().transition();\n assertThat(reswap).hasToString(\"innerHTML transition:true\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["106-110"], "old_production_code": "", "new_production_code": "public HtmxReswap transition() {\n this.transition = true;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "267-270", "dependency_updated": "inserted", "score": 0.8568, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.3913}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.3479, "signal_scores": {"nc": 0.0, "lcs_u": 0.625, "ed": 0.3, "class": 1.0, "tfidf": 0.0}}, {"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.299, "signal_scores": {"nc": 0.0, "lcs_u": 0.2222, "ed": 0.1, "class": 1.0, "tfidf": 0.234}}], "coverage_gold": 0.36363636363636365, "branch_coverage_gold": 3.4483, "method_coverage_gold": 4.7904, "line_coverage_gold": 5.9642, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.transition:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "491_wimdeblauwe_htmx-spring-boot-5.0.0_a352e58_9f1137a_HtmxReswapTest", "test_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswapTest.testShowBottom:()V", "class": "HtmxReswapTest", "method": "testShowBottom", "module": "htmx-spring-boot", "junit_selector": "io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxReswapTest#testShowBottom", "old_test_code": null, "new_test_code": "@Test\nvoid testShowBottom() {\n var reswap = HtmxReswap.innerHtml().show(HtmxReswap.Position.BOTTOM);\n assertThat(reswap).hasToString(\"innerHTML show:bottom\");\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["59-63"], "old_production_code": "", "new_production_code": "public HtmxReswap show(Position position) {\n this.show = position;\n return this;\n}", "focal_file_path": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "focal_method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "210-213", "dependency_updated": "inserted", "score": 0.5173, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.4, "class": 1.0, "tfidf": 0.3686}}, {"dep_id": 2, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "62-64", "dependency_updated": "inserted", "score": 0.335, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1, "class": 1.0, "tfidf": 0.3039}}, {"dep_id": 0, "method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "line_nums_new": "255-258", "dependency_updated": "inserted", "score": 0.2488, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1, "class": 1.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 4.023, "method_coverage_gold": 6.5868, "line_coverage_gold": 7.5547, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap"], "all_deps_old": [], "deps_changes": [{"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.show:(Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap$Position;)Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.innerHtml:()Lio/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap", "change_type": "ADD", "file_path_old": null, "file_path_new": "htmx-spring-boot/src/main/java/io/github/wimdeblauwe/htmx/spring/boot/mvc/HtmxReswap.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "5.0.0", "java_version": 17} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFTipoCategoriaCombinacaoVeicularTest_48b15ac4", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicularTest.java", "test_changes": [{"change_id": "1074_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoCategoriaCombinacaoVeicularTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicularTest.deveRetornarCategoriaCorretaParaCodigoValido:()V", "class": "MDFTipoCategoriaCombinacaoVeicularTest", "method": "deveRetornarCategoriaCorretaParaCodigoValido", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoCategoriaCombinacaoVeicularTest#deveRetornarCategoriaCorretaParaCodigoValido", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarCategoriaCorretaParaCodigoValido() {\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_2_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"02\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_3_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"04\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_4_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"06\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_5_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"07\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_6_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"08\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_7_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"10\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_8_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"11\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_9_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"12\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_10_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"13\"));\n assertEquals(MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_ACIMA_10_EIXOS, MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"14\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-22"], "old_production_code": "", "new_production_code": "public static MDFTipoCategoriaCombinacaoVeicular valueOfCodigo(final String codigo) {\n for (MDFTipoCategoriaCombinacaoVeicular tipoEmitente : MDFTipoCategoriaCombinacaoVeicular.values()) {\n if (tipoEmitente.getCodigo().equalsIgnoreCase(codigo)) {\n return tipoEmitente;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "line_nums_new": "31-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0222, "line_coverage_gold": 0.0346, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1089_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoCategoriaCombinacaoVeicularTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicularTest.deveRetornarCodigoCorreto:()V", "class": "MDFTipoCategoriaCombinacaoVeicularTest", "method": "deveRetornarCodigoCorreto", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoCategoriaCombinacaoVeicularTest#deveRetornarCodigoCorreto", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarCodigoCorreto() {\n assertEquals(\"02\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_2_EIXOS.getCodigo());\n assertEquals(\"13\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_10_EIXOS.getCodigo());\n assertEquals(\"14\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_ACIMA_10_EIXOS.getCodigo());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["31-36"], "old_production_code": "", "new_production_code": "public String getCodigo() {\n return this.codigo;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.getCodigo:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.getCodigo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "line_nums_new": "27-29", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0292, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.getCodigo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.getCodigo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1093_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoCategoriaCombinacaoVeicularTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicularTest.deveRetornarNullParaCodigoInvalido:()V", "class": "MDFTipoCategoriaCombinacaoVeicularTest", "method": "deveRetornarNullParaCodigoInvalido", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoCategoriaCombinacaoVeicularTest#deveRetornarNullParaCodigoInvalido", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarNullParaCodigoInvalido() {\n assertNull(MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"99\"));\n assertNull(MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(\"INVALIDO\"));\n assertNull(MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-29"], "old_production_code": "", "new_production_code": "public static MDFTipoCategoriaCombinacaoVeicular valueOfCodigo(final String codigo) {\n for (MDFTipoCategoriaCombinacaoVeicular tipoEmitente : MDFTipoCategoriaCombinacaoVeicular.values()) {\n if (tipoEmitente.getCodigo().equalsIgnoreCase(codigo)) {\n return tipoEmitente;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "line_nums_new": "31-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0222, "line_coverage_gold": 0.0346, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1099_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoCategoriaCombinacaoVeicularTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicularTest.deveRetornarDescricaoCorretaNoToString:()V", "class": "MDFTipoCategoriaCombinacaoVeicularTest", "method": "deveRetornarDescricaoCorretaNoToString", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoCategoriaCombinacaoVeicularTest#deveRetornarDescricaoCorretaNoToString", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarDescricaoCorretaNoToString() {\n assertEquals(\"02 - Veículo Comercial 2 eixos\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_2_EIXOS.toString());\n assertEquals(\"13 - Veículo Comercial 10 eixos\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_10_EIXOS.toString());\n assertEquals(\"14 - Veículo Comercial Acima de 10 eixos\", MDFTipoCategoriaCombinacaoVeicular.VEICULO_COMERCIAL_ACIMA_10_EIXOS.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-43"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return codigo + \" - \" + descricao;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "line_nums_new": "40-43", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0292, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFTipoIndicadorAntecipacaoPagamentoTest_aad5f212", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamentoTest.java", "test_changes": [{"change_id": "1084_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoIndicadorAntecipacaoPagamentoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamentoTest.testValueOfCodigoInvalido:()V", "class": "MDFTipoIndicadorAntecipacaoPagamentoTest", "method": "testValueOfCodigoInvalido", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoIndicadorAntecipacaoPagamentoTest#testValueOfCodigoInvalido", "old_test_code": null, "new_test_code": "@Test\npublic void testValueOfCodigoInvalido() {\n MDFTipoIndicadorAntecipacaoPagamento tipo = MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo(\"2\");\n assertNull(tipo);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-33"], "old_production_code": "", "new_production_code": "public static MDFTipoIndicadorAntecipacaoPagamento valueOfCodigo(final String codigo) {\n for (final MDFTipoIndicadorAntecipacaoPagamento operacao : MDFTipoIndicadorAntecipacaoPagamento.values()) {\n if (operacao.getCodigo().equals(codigo)) {\n return operacao;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "19-26", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0222, "line_coverage_gold": 0.0201, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1086_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoIndicadorAntecipacaoPagamentoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamentoTest.testValueOfCodigoNao:()V", "class": "MDFTipoIndicadorAntecipacaoPagamentoTest", "method": "testValueOfCodigoNao", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoIndicadorAntecipacaoPagamentoTest#testValueOfCodigoNao", "old_test_code": null, "new_test_code": "@Test\npublic void testValueOfCodigoNao() {\n MDFTipoIndicadorAntecipacaoPagamento tipo = MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo(\"0\");\n assertEquals(MDFTipoIndicadorAntecipacaoPagamento.NAO, tipo);\n Assert.assertNotNull(tipo);\n assertEquals(\"0\", tipo.getCodigo());\n assertEquals(\"0 - Não\", tipo.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-18"], "old_production_code": "", "new_production_code": "public String getCodigo() {\n return this.codigo;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": 0.408, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.4375, "class": 1.0, "tfidf": 0.0446}}, {"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "32-35", "dependency_updated": "inserted", "score": 0.2931, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.1875, "class": 1.0, "tfidf": 0.0332}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0219, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1097_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoIndicadorAntecipacaoPagamentoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamentoTest.testValueOfCodigoSim:()V", "class": "MDFTipoIndicadorAntecipacaoPagamentoTest", "method": "testValueOfCodigoSim", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoIndicadorAntecipacaoPagamentoTest#testValueOfCodigoSim", "old_test_code": null, "new_test_code": "@Test\npublic void testValueOfCodigoSim() {\n MDFTipoIndicadorAntecipacaoPagamento tipo = MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo(\"1\");\n assertEquals(MDFTipoIndicadorAntecipacaoPagamento.SIM, tipo);\n Assert.assertNotNull(tipo);\n assertEquals(\"1\", tipo.getCodigo());\n assertEquals(\"1 - Sim\", tipo.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-27"], "old_production_code": "", "new_production_code": "public static MDFTipoIndicadorAntecipacaoPagamento valueOfCodigo(final String codigo) {\n for (final MDFTipoIndicadorAntecipacaoPagamento operacao : MDFTipoIndicadorAntecipacaoPagamento.values()) {\n if (operacao.getCodigo().equals(codigo)) {\n return operacao;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "19-26", "dependency_updated": "inserted", "score": 0.5381, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.8125, "class": 1.0, "tfidf": 0.1682}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "28-30", "dependency_updated": "inserted", "score": 0.4078, "signal_scores": {"nc": 0.0, "lcs_u": 0.7778, "ed": 0.4375, "class": 1.0, "tfidf": 0.0437}}, {"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "line_nums_new": "32-35", "dependency_updated": "inserted", "score": 0.2827, "signal_scores": {"nc": 0.0, "lcs_u": 0.375, "ed": 0.125, "class": 1.0, "tfidf": 0.0326}}], "coverage_gold": 0.8333333333333334, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0219, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.getCodigo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFTipoPermissaoAntecipacaoTest_ce5cf88e", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacaoTest.java", "test_changes": [{"change_id": "1076_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoPermissaoAntecipacaoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacaoTest.testValueOfCodigo:()V", "class": "MDFTipoPermissaoAntecipacaoTest", "method": "testValueOfCodigo", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoPermissaoAntecipacaoTest#testValueOfCodigo", "old_test_code": null, "new_test_code": "@Test\npublic void testValueOfCodigo() {\n assertEquals(MDFTipoPermissaoAntecipacao.NAO_PERMITE_ANTECIPAR, MDFTipoPermissaoAntecipacao.valueOfCodigo(\"0\"));\n assertEquals(MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR, MDFTipoPermissaoAntecipacao.valueOfCodigo(\"1\"));\n assertEquals(MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR_COM_CONFIRMACAO, MDFTipoPermissaoAntecipacao.valueOfCodigo(\"2\"));\n assertNull(MDFTipoPermissaoAntecipacao.valueOfCodigo(\"3\"));\n assertNull(MDFTipoPermissaoAntecipacao.valueOfCodigo(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-31"], "old_production_code": "", "new_production_code": "public static MDFTipoPermissaoAntecipacao valueOfCodigo(final String codigo) {\n for (MDFTipoPermissaoAntecipacao tipoEmitente : MDFTipoPermissaoAntecipacao.values()) {\n if (tipoEmitente.getCodigo().equalsIgnoreCase(codigo)) {\n return tipoEmitente;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "line_nums_new": "24-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0222, "line_coverage_gold": 0.0237, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1085_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoPermissaoAntecipacaoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacaoTest.testGetCodigo:()V", "class": "MDFTipoPermissaoAntecipacaoTest", "method": "testGetCodigo", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoPermissaoAntecipacaoTest#testGetCodigo", "old_test_code": null, "new_test_code": "@Test\npublic void testGetCodigo() {\n assertEquals(\"0\", MDFTipoPermissaoAntecipacao.NAO_PERMITE_ANTECIPAR.getCodigo());\n assertEquals(\"1\", MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR.getCodigo());\n assertEquals(\"2\", MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR_COM_CONFIRMACAO.getCodigo());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "", "new_production_code": "public String getCodigo() {\n return this.codigo;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.getCodigo:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.getCodigo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "line_nums_new": "20-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0164, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.getCodigo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.getCodigo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1101_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoPermissaoAntecipacaoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacaoTest.testToString:()V", "class": "MDFTipoPermissaoAntecipacaoTest", "method": "testToString", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoPermissaoAntecipacaoTest#testToString", "old_test_code": null, "new_test_code": "@Test\npublic void testToString() {\n assertEquals(\"0 - Não permite antecipar\", MDFTipoPermissaoAntecipacao.NAO_PERMITE_ANTECIPAR.toString());\n assertEquals(\"1 - Permite antecipar as parcelas\", MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR.toString());\n assertEquals(\"2 - Permite antecipar as parcelas mediante confirmação\", MDFTipoPermissaoAntecipacao.PERMITE_ANTECIPAR_COM_CONFIRMACAO.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return codigo + \" - \" + descricao;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0164, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoPermissaoAntecipacao.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFTipoValePedagioTest_ce5cf88e", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagioTest.java", "test_changes": [{"change_id": "1075_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoValePedagioTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagioTest.testGetCodigo:()V", "class": "MDFTipoValePedagioTest", "method": "testGetCodigo", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoValePedagioTest#testGetCodigo", "old_test_code": null, "new_test_code": "@Test\npublic void testGetCodigo() {\n assertEquals(\"01\", MDFTipoValePedagio.TAG.getCodigo());\n assertEquals(\"02\", MDFTipoValePedagio.CUPOM.getCodigo());\n assertEquals(\"03\", MDFTipoValePedagio.CARTAO.getCodigo());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-15"], "old_production_code": "", "new_production_code": "public String getCodigo() {\n return this.codigo;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.getCodigo:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.getCodigo:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "line_nums_new": "20-22", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0164, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.getCodigo:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.getCodigo:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1096_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoValePedagioTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagioTest.testToString:()V", "class": "MDFTipoValePedagioTest", "method": "testToString", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoValePedagioTest#testToString", "old_test_code": null, "new_test_code": "@Test\npublic void testToString() {\n assertEquals(\"01 - TAG\", MDFTipoValePedagio.TAG.toString());\n assertEquals(\"02 - Cupom\", MDFTipoValePedagio.CUPOM.toString());\n assertEquals(\"03 - Cart\\u00E3o\", MDFTipoValePedagio.CARTAO.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["17-22"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return codigo + \" - \" + descricao;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "line_nums_new": "33-36", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0164, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1098_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFTipoValePedagioTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagioTest.testValueOfCodigo:()V", "class": "MDFTipoValePedagioTest", "method": "testValueOfCodigo", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.def.MDFTipoValePedagioTest#testValueOfCodigo", "old_test_code": null, "new_test_code": "@Test\npublic void testValueOfCodigo() {\n assertEquals(MDFTipoValePedagio.TAG, MDFTipoValePedagio.valueOfCodigo(\"01\"));\n assertEquals(MDFTipoValePedagio.CUPOM, MDFTipoValePedagio.valueOfCodigo(\"02\"));\n assertEquals(MDFTipoValePedagio.CARTAO, MDFTipoValePedagio.valueOfCodigo(\"03\"));\n assertNull(MDFTipoValePedagio.valueOfCodigo(\"99\"));\n assertNull(MDFTipoValePedagio.valueOfCodigo(null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["24-31"], "old_production_code": "", "new_production_code": "public static MDFTipoValePedagio valueOfCodigo(final String codigo) {\n for (MDFTipoValePedagio tipoEmitente : MDFTipoValePedagio.values()) {\n if (tipoEmitente.getCodigo().equalsIgnoreCase(codigo)) {\n return tipoEmitente;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "line_nums_new": "24-31", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0222, "line_coverage_gold": 0.0237, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoValePedagio.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFInfoModalRodoviarioANTTTest_66e6dbb7", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTTTest.java", "test_changes": [{"change_id": "1092_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioANTTTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTTTest.devePermitirInfContratoNuloEManterReferencia:()V", "class": "MDFInfoModalRodoviarioANTTTest", "method": "devePermitirInfContratoNuloEManterReferencia", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioANTTTest#devePermitirInfContratoNuloEManterReferencia", "old_test_code": null, "new_test_code": "@Test\npublic void devePermitirInfContratoNuloEManterReferencia() {\n Assert.assertNull(antt.getInfContrato());\n MDFInfoModalRodoviarioInfContrato contrato = new MDFInfoModalRodoviarioInfContrato();\n antt.setInfContrato(contrato);\n Assert.assertSame(contrato, antt.getInfContrato());\n antt.setInfContrato(null);\n Assert.assertNull(antt.getInfContrato());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["109-119"], "old_production_code": "", "new_production_code": "public MDFInfoModalRodoviarioInfContrato getInfContrato() {\n return infContrato;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.getInfContrato:()Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.getInfContrato:()Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.java", "line_nums_new": "88-90", "dependency_updated": "inserted", "score": 0.4526, "signal_scores": {"nc": 0.0, "lcs_u": 0.9286, "ed": 0.2955, "class": 1.0, "tfidf": 0.2201}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.setInfContrato:(Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.java", "line_nums_new": "92-94", "dependency_updated": "inserted", "score": 0.424, "signal_scores": {"nc": 0.0, "lcs_u": 0.9286, "ed": 0.2955, "class": 1.0, "tfidf": 0.0987}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0109, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.setInfContrato:(Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato;)V", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.getInfContrato:()Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.setInfContrato:(Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.getInfContrato:()Lcom/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioANTT.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFInfoModalRodoviarioInfContratoTest_edaeb049", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContratoTest.java", "test_changes": [{"change_id": "1077_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfContratoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContratoTest.deveRejeitarValorContratoGlobalComMaisDe13DigitosTotais:()V", "class": "MDFInfoModalRodoviarioInfContratoTest", "method": "deveRejeitarValorContratoGlobalComMaisDe13DigitosTotais", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfContratoTest#deveRejeitarValorContratoGlobalComMaisDe13DigitosTotais", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarValorContratoGlobalComMaisDe13DigitosTotais() {\n BigDecimal invalido = new BigDecimal(\"100000000000.00\");\n contrato.setValorContratoGlobal(invalido);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["38-44"], "old_production_code": "", "new_production_code": "public void setValorContratoGlobal(BigDecimal valorContratoGlobal) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(valorContratoGlobal, \"Valor do Contrato Global\");\n this.valorContratoGlobal = valorContratoGlobal;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0111, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1081_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfContratoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContratoTest.deveAceitarValorContratoGlobalValidoIntermediario:()V", "class": "MDFInfoModalRodoviarioInfContratoTest", "method": "deveAceitarValorContratoGlobalValidoIntermediario", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfContratoTest#deveAceitarValorContratoGlobalValidoIntermediario", "old_test_code": null, "new_test_code": "@Test\npublic void deveAceitarValorContratoGlobalValidoIntermediario() {\n BigDecimal valor = new BigDecimal(\"1234567890.23\");\n contrato.setValorContratoGlobal(valor);\n assertEquals(0, contrato.getValorContratoGlobal().compareTo(valor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-36"], "old_production_code": "", "new_production_code": "public BigDecimal getValorContratoGlobal() {\n return valorContratoGlobal;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "31-33", "dependency_updated": "inserted", "score": 0.4803, "signal_scores": {"nc": 0.0, "lcs_u": 0.9545, "ed": 0.4286, "class": 1.0, "tfidf": 0.2255}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": 0.4779, "signal_scores": {"nc": 0.0, "lcs_u": 0.9545, "ed": 0.4286, "class": 1.0, "tfidf": 0.215}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0182, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1082_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfContratoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContratoTest.deveAceitarValorContratoGlobalValidoNoLimite:()V", "class": "MDFInfoModalRodoviarioInfContratoTest", "method": "deveAceitarValorContratoGlobalValidoNoLimite", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfContratoTest#deveAceitarValorContratoGlobalValidoNoLimite", "old_test_code": null, "new_test_code": "@Test\npublic void deveAceitarValorContratoGlobalValidoNoLimite() {\n BigDecimal validoLimite = new BigDecimal(\"9999999999.99\");\n contrato.setValorContratoGlobal(validoLimite);\n assertEquals(\"Valor retornado deve ser igual ao atribuído (compareTo == 0)\", 0, contrato.getValorContratoGlobal().compareTo(validoLimite));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["19-27"], "old_production_code": "", "new_production_code": "public BigDecimal getValorContratoGlobal() {\n return valorContratoGlobal;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "31-33", "dependency_updated": "inserted", "score": 0.4795, "signal_scores": {"nc": 0.0, "lcs_u": 0.9545, "ed": 0.4773, "class": 1.0, "tfidf": 0.1877}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": 0.4631, "signal_scores": {"nc": 0.0, "lcs_u": 0.9545, "ed": 0.4773, "class": 1.0, "tfidf": 0.118}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0182, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.getValorContratoGlobal:()Ljava/math/BigDecimal", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1087_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfContratoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContratoTest.deveRejeitarValorContratoGlobalComMaisDe2CasasDecimais:()V", "class": "MDFInfoModalRodoviarioInfContratoTest", "method": "deveRejeitarValorContratoGlobalComMaisDe2CasasDecimais", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfContratoTest#deveRejeitarValorContratoGlobalComMaisDe2CasasDecimais", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarValorContratoGlobalComMaisDe2CasasDecimais() {\n BigDecimal invalido = new BigDecimal(\"1.234\");\n contrato.setValorContratoGlobal(invalido);\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["46-52"], "old_production_code": "", "new_production_code": "public void setValorContratoGlobal(BigDecimal valorContratoGlobal) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(valorContratoGlobal, \"Valor do Contrato Global\");\n this.valorContratoGlobal = valorContratoGlobal;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "line_nums_new": "35-38", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0111, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.setValorContratoGlobal:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfContrato.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFInfoModalRodoviarioInfPagPrazoTest_143eb7bb", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazoTest.java", "test_changes": [{"change_id": "1083_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagPrazoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazoTest.deveAceitarVParcelaValidoIntermediario:()V", "class": "MDFInfoModalRodoviarioInfPagPrazoTest", "method": "deveAceitarVParcelaValidoIntermediario", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagPrazoTest#deveAceitarVParcelaValidoIntermediario", "old_test_code": null, "new_test_code": "@Test\npublic void deveAceitarVParcelaValidoIntermediario() {\n BigDecimal valor = new BigDecimal(\"1234567890.23\");\n prazo.setVParcela(valor);\n assertEquals(0, prazo.getVParcela().compareTo(valor));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-94"], "old_production_code": "public void setVParcela(BigDecimal vParcela) {\n this.vParcela = vParcela;\n}", "new_production_code": "public void setVParcela(BigDecimal vParcela) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vParcela, \"Valor da Parcela\");\n this.vParcela = vParcela;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_old": "59-61", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_new": "68-71", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0334, "line_coverage_gold": 0.0201, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.getVParcela:()Ljava/math/BigDecimal"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1088_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagPrazoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazoTest.deveAceitarVParcelaValidoNoLimite:()V", "class": "MDFInfoModalRodoviarioInfPagPrazoTest", "method": "deveAceitarVParcelaValidoNoLimite", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagPrazoTest#deveAceitarVParcelaValidoNoLimite", "old_test_code": null, "new_test_code": "@Test\npublic void deveAceitarVParcelaValidoNoLimite() {\n BigDecimal limite = new BigDecimal(\"9999999999.99\");\n prazo.setVParcela(limite);\n assertEquals(0, prazo.getVParcela().compareTo(limite));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["82-87"], "old_production_code": "public void setVParcela(BigDecimal vParcela) {\n this.vParcela = vParcela;\n}", "new_production_code": "public void setVParcela(BigDecimal vParcela) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vParcela, \"Valor da Parcela\");\n this.vParcela = vParcela;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_old": "59-61", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_new": "68-71", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0334, "line_coverage_gold": 0.0201, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.getVParcela:()Ljava/math/BigDecimal"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1091_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagPrazoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazoTest.deveRejeitarVParcelaComMaisDe13Digitos:()V", "class": "MDFInfoModalRodoviarioInfPagPrazoTest", "method": "deveRejeitarVParcelaComMaisDe13Digitos", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagPrazoTest#deveRejeitarVParcelaComMaisDe13Digitos", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarVParcelaComMaisDe13Digitos() {\n prazo.setVParcela(new BigDecimal(\"100000000000.00\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-104"], "old_production_code": "public void setVParcela(BigDecimal vParcela) {\n this.vParcela = vParcela;\n}", "new_production_code": "public void setVParcela(BigDecimal vParcela) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vParcela, \"Valor da Parcela\");\n this.vParcela = vParcela;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_old": "59-61", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_new": "68-71", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0091, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1094_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagPrazoTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazoTest.deveRejeitarVParcelaComMaisDe2CasasDecimais:()V", "class": "MDFInfoModalRodoviarioInfPagPrazoTest", "method": "deveRejeitarVParcelaComMaisDe2CasasDecimais", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagPrazoTest#deveRejeitarVParcelaComMaisDe2CasasDecimais", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarVParcelaComMaisDe2CasasDecimais() {\n prazo.setVParcela(new BigDecimal(\"10.999\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["96-99"], "old_production_code": "public void setVParcela(BigDecimal vParcela) {\n this.vParcela = vParcela;\n}", "new_production_code": "public void setVParcela(BigDecimal vParcela) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vParcela, \"Valor da Parcela\");\n this.vParcela = vParcela;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_old": "59-61", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "line_nums_new": "68-71", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0091, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.setVParcela:(Ljava/math/BigDecimal;)V", "change_type": "UPDATE", "file_path_old": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagPrazo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFInfoModalRodoviarioInfPagTest_6c670cd0", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagTest.java", "test_changes": [{"change_id": "1078_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagTest.deveSetarEnumsDeFormaSimples:()V", "class": "MDFInfoModalRodoviarioInfPagTest", "method": "deveSetarEnumsDeFormaSimples", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagTest#deveSetarEnumsDeFormaSimples", "old_test_code": null, "new_test_code": "@Test\npublic void deveSetarEnumsDeFormaSimples() {\n pag.setIndPag(MDFTipoInfPag.A_PRAZO);\n pag.setIndicadorAtencipacaoAdiantamento(MDFTipoIndicadorAntecipacaoPagamento.SIM);\n Assert.assertEquals(MDFTipoInfPag.A_PRAZO, pag.getIndPag());\n Assert.assertEquals(MDFTipoIndicadorAntecipacaoPagamento.SIM, pag.getIndicadorAtencipacaoAdiantamento());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["139-150"], "old_production_code": "", "new_production_code": "public MDFTipoIndicadorAntecipacaoPagamento getIndicadorAtencipacaoAdiantamento() {\n return indicadorAtencipacaoAdiantamento;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.getIndicadorAtencipacaoAdiantamento:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.getIndicadorAtencipacaoAdiantamento:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "line_nums_new": "189-191", "dependency_updated": "inserted", "score": 0.3195, "signal_scores": {"nc": 0.0, "lcs_u": 0.3143, "ed": 0.2286, "class": 1.0, "tfidf": 0.1623}}, {"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setIndicadorAtencipacaoAdiantamento:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "line_nums_new": "193-195", "dependency_updated": "inserted", "score": 0.3035, "signal_scores": {"nc": 0.0, "lcs_u": 0.3429, "ed": 0.2286, "class": 1.0, "tfidf": 0.0727}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.05, "line_coverage_gold": 0.0383, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.getIndicadorAtencipacaoAdiantamento:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setIndicadorAtencipacaoAdiantamento:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento;)V", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.getIndPag:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoInfPag", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setIndPag:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoInfPag;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.getIndicadorAtencipacaoAdiantamento:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setIndicadorAtencipacaoAdiantamento:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoIndicadorAntecipacaoPagamento;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1080_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagTest.deveRejeitarVAdiantComMaisDe2Casas:()V", "class": "MDFInfoModalRodoviarioInfPagTest", "method": "deveRejeitarVAdiantComMaisDe2Casas", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagTest#deveRejeitarVAdiantComMaisDe2Casas", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarVAdiantComMaisDe2Casas() {\n pag.setVAdiant(new BigDecimal(\"10.999\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["129-132"], "old_production_code": "", "new_production_code": "public void setVAdiant(BigDecimal vAdiant) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vAdiant, \"Valor do Adiantamento\");\n this.vAdiant = vAdiant;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "line_nums_new": "201-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0111, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1095_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagTest.deveRejeitarVAdiantComMaisDe13Digitos:()V", "class": "MDFInfoModalRodoviarioInfPagTest", "method": "deveRejeitarVAdiantComMaisDe13Digitos", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagTest#deveRejeitarVAdiantComMaisDe13Digitos", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveRejeitarVAdiantComMaisDe13Digitos() {\n pag.setVAdiant(new BigDecimal(\"10000000000.00\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["134-137"], "old_production_code": "", "new_production_code": "public void setVAdiant(BigDecimal vAdiant) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vAdiant, \"Valor do Adiantamento\");\n this.vAdiant = vAdiant;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "line_nums_new": "201-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0111, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1100_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioInfPagTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPagTest.deveAceitarVAdiantValidoNoLimite:()V", "class": "MDFInfoModalRodoviarioInfPagTest", "method": "deveAceitarVAdiantValidoNoLimite", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioInfPagTest#deveAceitarVAdiantValidoNoLimite", "old_test_code": null, "new_test_code": "@Test(expected = NumberFormatException.class)\npublic void deveAceitarVAdiantValidoNoLimite() {\n pag.setVAdiant(new BigDecimal(\"99999999999.99\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["124-127"], "old_production_code": "", "new_production_code": "public void setVAdiant(BigDecimal vAdiant) {\n DFBigDecimalValidador.tamanho13Com2CasasDecimais(vAdiant, \"Valor do Adiantamento\");\n this.vAdiant = vAdiant;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "line_nums_new": "201-204", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0111, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.setVAdiant:(Ljava/math/BigDecimal;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioInfPag.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__08d6beb_befec93__MDFInfoModalRodoviarioPedagioDispTest_072ee80e", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "08d6beb769271e7f016a860a5651fbe4644f2fcd", "rev2": "befec93983b9ef02b56ec66d980cae981b29a95f", "rev1_date": "2025-10-17T19:25:50Z", "rev2_date": "2025-10-17T19:27:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/08d6beb769271e7f016a860a5651fbe4644f2fcd...befec93983b9ef02b56ec66d980cae981b29a95f", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDispTest.java", "test_changes": [{"change_id": "1090_wmixvideo_nfe-v5.0.43_08d6beb_befec93_MDFInfoModalRodoviarioPedagioDispTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDispTest.deveSetarEObterCategoriaCombinacaoVeicular:()V", "class": "MDFInfoModalRodoviarioPedagioDispTest", "method": "deveSetarEObterCategoriaCombinacaoVeicular", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.nota.MDFInfoModalRodoviarioPedagioDispTest#deveSetarEObterCategoriaCombinacaoVeicular", "old_test_code": null, "new_test_code": "@Test\npublic void deveSetarEObterCategoriaCombinacaoVeicular() {\n MDFTipoCategoriaCombinacaoVeicular categoriaCombinacaoVeicular = MDFTipoCategoriaCombinacaoVeicular.values()[0];\n disp.setCategoriaCombinacaoVeicular(categoriaCombinacaoVeicular);\n Assert.assertEquals(categoriaCombinacaoVeicular, disp.getCategoriaCombinacaoVeicular());\n disp.setCategoriaCombinacaoVeicular(null);\n Assert.assertNull(disp.getCategoriaCombinacaoVeicular());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["160-169"], "old_production_code": "", "new_production_code": "public void setCategoriaCombinacaoVeicular(MDFTipoCategoriaCombinacaoVeicular categoriaCombinacaoVeicular) {\n this.categoriaCombinacaoVeicular = categoriaCombinacaoVeicular;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.setCategoriaCombinacaoVeicular:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.setCategoriaCombinacaoVeicular:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.java", "line_nums_new": "128-130", "dependency_updated": "inserted", "score": 0.588, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.7143, "class": 1.0, "tfidf": 0.4488}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.getCategoriaCombinacaoVeicular:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.java", "line_nums_new": "124-126", "dependency_updated": "inserted", "score": 0.5815, "signal_scores": {"nc": 0.0, "lcs_u": 0.9667, "ed": 0.6905, "class": 1.0, "tfidf": 0.4628}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0334, "line_coverage_gold": 0.0365, "is_traceback": false, "commit_gap": {"count": 1, "skipped_commits": ["4ec696ae24a1956becb2b30a9e6ed540e31a5ed3"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.setCategoriaCombinacaoVeicular:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular;)V", "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.getCategoriaCombinacaoVeicular:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.getCategoriaCombinacaoVeicular:()Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.setCategoriaCombinacaoVeicular:(Lcom/fincatto/documentofiscal/mdfe3/classes/def/MDFTipoCategoriaCombinacaoVeicular;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/MDFInfoModalRodoviarioPedagioDisp.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__478e9d1_302f0f3__NFNotaInfoAgropecuarioTipoGuiaTest_df5680b5", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "478e9d112aa87e20a00ca54971b1acb80dcf0f8b", "rev2": "302f0f365ab8de9a7343a3dc9bf2d425134343db", "rev1_date": "2025-09-22T12:56:56Z", "rev2_date": "2025-09-22T12:59:49Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/478e9d112aa87e20a00ca54971b1acb80dcf0f8b...302f0f365ab8de9a7343a3dc9bf2d425134343db", "test_file": "src/test/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuiaTest.java", "test_changes": [{"change_id": "1061_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTipoGuiaTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuiaTest.deveRetornarEnumCorretoParaCodigoValido:()V", "class": "NFNotaInfoAgropecuarioTipoGuiaTest", "method": "deveRetornarEnumCorretoParaCodigoValido", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoAgropecuarioTipoGuiaTest#deveRetornarEnumCorretoParaCodigoValido", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarEnumCorretoParaCodigoValido() {\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.GTA, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"1\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.TTA, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"2\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.DTA, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"3\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.ATV, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"4\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.PTV, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"5\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.GTV, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"6\"));\n assertEquals(NFNotaInfoAgropecuarioTipoGuia.GUIA_FLORESTAL, NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"7\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["10-19"], "old_production_code": "", "new_production_code": "public static NFNotaInfoAgropecuarioTipoGuia valueOfCodigo(final String codigo) {\n for (final NFNotaInfoAgropecuarioTipoGuia tpGuia : NFNotaInfoAgropecuarioTipoGuia.values()) {\n if (tpGuia.getCodigo().equals(codigo)) {\n return tpGuia;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "line_nums_new": "25-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0223, "line_coverage_gold": 0.0292, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1064_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTipoGuiaTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuiaTest.deveRetornarNullParaCodigoInvalidoOuNulo:()V", "class": "NFNotaInfoAgropecuarioTipoGuiaTest", "method": "deveRetornarNullParaCodigoInvalidoOuNulo", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoAgropecuarioTipoGuiaTest#deveRetornarNullParaCodigoInvalidoOuNulo", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarNullParaCodigoInvalidoOuNulo() {\n assertNull(NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"0\"));\n assertNull(NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"8\"));\n assertNull(NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(null));\n assertNull(NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo(\"\"));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["21-27"], "old_production_code": "", "new_production_code": "public static NFNotaInfoAgropecuarioTipoGuia valueOfCodigo(final String codigo) {\n for (final NFNotaInfoAgropecuarioTipoGuia tpGuia : NFNotaInfoAgropecuarioTipoGuia.values()) {\n if (tpGuia.getCodigo().equals(codigo)) {\n return tpGuia;\n }\n }\n return null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "line_nums_new": "25-32", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0187, "method_coverage_gold": 0.0223, "line_coverage_gold": 0.0292, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.valueOfCodigo:(Ljava/lang/String;)Lcom/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1065_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTipoGuiaTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuiaTest.deveRetornarToStringFormatadoCorretamente:()V", "class": "NFNotaInfoAgropecuarioTipoGuiaTest", "method": "deveRetornarToStringFormatadoCorretamente", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoAgropecuarioTipoGuiaTest#deveRetornarToStringFormatadoCorretamente", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarToStringFormatadoCorretamente() {\n assertEquals(\"1 - Guia de Trânsito Animal\", NFNotaInfoAgropecuarioTipoGuia.GTA.toString());\n assertEquals(\"7 - Guia Florestal (DOF, SisFlora - PA e MT ou SIAM - MG)\", NFNotaInfoAgropecuarioTipoGuia.GUIA_FLORESTAL.toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["29-33"], "old_production_code": "", "new_production_code": "@Override\npublic String toString() {\n return codigo + \" - \" + descricao;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.toString:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.toString:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "line_nums_new": "34-37", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0237, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.toString:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.toString:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/NFNotaInfoAgropecuarioTipoGuia.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__478e9d1_302f0f3__NFNotaInfoAgropecuarioTest_3ac19a9f", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "478e9d112aa87e20a00ca54971b1acb80dcf0f8b", "rev2": "302f0f365ab8de9a7343a3dc9bf2d425134343db", "rev1_date": "2025-09-22T12:56:56Z", "rev2_date": "2025-09-22T12:59:49Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/478e9d112aa87e20a00ca54971b1acb80dcf0f8b...302f0f365ab8de9a7343a3dc9bf2d425134343db", "test_file": "src/test/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioTest.java", "test_changes": [{"change_id": "1058_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioTest.naoAceitaCPFInvalido:()V", "class": "NFNotaInfoAgropecuarioTest", "method": "naoAceitaCPFInvalido", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaInfoAgropecuarioTest#naoAceitaCPFInvalido", "old_test_code": null, "new_test_code": "@Test\npublic void naoAceitaCPFInvalido() {\n NFNotaInfoAgropecuarioDefensivo d = new NFNotaInfoAgropecuarioDefensivo();\n try {\n d.setNumeroReceituario(\"ABCDEFGHIJABCDEFGHIJABCDEFGHIJ\");\n d.setCPFRespTec(\"39053344706A\");\n fail(\"Deveria lançar exceção para CPF inválido\");\n } catch (RuntimeException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["86-97"], "old_production_code": "", "new_production_code": "public void setCPFRespTec(String CPFRespTec) {\n DFStringValidador.cpf(CPFRespTec, \"CPF do Responsável Técnico\");\n this.cpfRespTec = CPFRespTec;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setCPFRespTec:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setCPFRespTec:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "line_nums_new": "36-39", "dependency_updated": "inserted", "score": 0.1264, "signal_scores": {"nc": 0.0, "lcs_u": 0.3846, "ed": 0.25, "class": 0.0, "tfidf": 0.0738}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "line_nums_new": "27-30", "dependency_updated": "inserted", "score": 0.1175, "signal_scores": {"nc": 0.0, "lcs_u": 0.45, "ed": 0.2, "class": 0.0, "tfidf": 0.022}}], "coverage_gold": 0.5, "branch_coverage_gold": 0.0375, "method_coverage_gold": 0.0335, "line_coverage_gold": 0.0256, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setCPFRespTec:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setCPFRespTec:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1060_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioTest.naoAceitaNumeroGuiaComMaisDe9Digitos:()V", "class": "NFNotaInfoAgropecuarioTest", "method": "naoAceitaNumeroGuiaComMaisDe9Digitos", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaInfoAgropecuarioTest#naoAceitaNumeroGuiaComMaisDe9Digitos", "old_test_code": null, "new_test_code": "@Test\npublic void naoAceitaNumeroGuiaComMaisDe9Digitos() {\n NFNotaInfoAgropecuarioGuiaTransito g = new NFNotaInfoAgropecuarioGuiaTransito();\n try {\n g.setNumeroGuia(1234567890);\n fail(\"Deveria lançar exceção para número > 9\");\n } catch (RuntimeException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["117-124"], "old_production_code": "", "new_production_code": "public void setNumeroGuia(Integer numeroGuia) {\n DFIntegerValidador.tamanho9(numeroGuia, \"Número da Guia\");\n this.numeroGuia = numeroGuia;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setNumeroGuia:(Ljava/lang/Integer;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setNumeroGuia:(Ljava/lang/Integer;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "line_nums_new": "53-56", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.0125, "method_coverage_gold": 0.0167, "line_coverage_gold": 0.0073, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setNumeroGuia:(Ljava/lang/Integer;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setNumeroGuia:(Ljava/lang/Integer;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1066_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioTest.naoAceitaReceituarioComMaisDe30Caracteres:()V", "class": "NFNotaInfoAgropecuarioTest", "method": "naoAceitaReceituarioComMaisDe30Caracteres", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaInfoAgropecuarioTest#naoAceitaReceituarioComMaisDe30Caracteres", "old_test_code": null, "new_test_code": "@Test\npublic void naoAceitaReceituarioComMaisDe30Caracteres() {\n NFNotaInfoAgropecuarioDefensivo d = new NFNotaInfoAgropecuarioDefensivo();\n try {\n d.setNumeroReceituario(\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\");\n fail(\"Deveria lançar exceção para receituário > 30\");\n } catch (RuntimeException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["99-106"], "old_production_code": "", "new_production_code": "public void setNumeroReceituario(String numeroReceituario) {\n DFStringValidador.tamanho30(numeroReceituario, \"Número da receita ou receituário de aplicação do defensivo\");\n this.numeroReceituario = numeroReceituario;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "line_nums_new": "27-30", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0223, "line_coverage_gold": 0.0091, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.setNumeroReceituario:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioDefensivo.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1067_wmixvideo_nfe-v5.0.43_478e9d1_302f0f3_NFNotaInfoAgropecuarioTest", "test_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioTest.naoAceitaSerieGuiaComMaisDe9Caracteres:()V", "class": "NFNotaInfoAgropecuarioTest", "method": "naoAceitaSerieGuiaComMaisDe9Caracteres", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaInfoAgropecuarioTest#naoAceitaSerieGuiaComMaisDe9Caracteres", "old_test_code": null, "new_test_code": "@Test\npublic void naoAceitaSerieGuiaComMaisDe9Caracteres() {\n NFNotaInfoAgropecuarioGuiaTransito g = new NFNotaInfoAgropecuarioGuiaTransito();\n try {\n g.setSerieGuia(\"ABCDEFGHIJ\");\n fail(\"Deveria lançar exceção para série > 9\");\n } catch (RuntimeException expected) {\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-115"], "old_production_code": "", "new_production_code": "public void setSerieGuia(String serieGuia) {\n DFStringValidador.tamanho9(serieGuia, \"Série da Guia\");\n this.serieGuia = serieGuia;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setSerieGuia:(Ljava/lang/String;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setSerieGuia:(Ljava/lang/String;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "line_nums_new": "44-47", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.0, "branch_coverage_gold": 0.025, "method_coverage_gold": 0.0223, "line_coverage_gold": 0.0091, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setSerieGuia:(Ljava/lang/String;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.setSerieGuia:(Ljava/lang/String;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/classes/nota/NFNotaInfoAgropecuarioGuiaTransito.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__483409b_54ff218__DFYearMonthTransformerTest_cb0768c4", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "483409b44402ed5283d894e3d92d9c442c629414", "rev2": "54ff218ac69fe7195a8ff215dc3c7e731c7ff3a3", "rev1_date": "2025-11-21T18:54:24Z", "rev2_date": "2025-11-21T20:44:04Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/483409b44402ed5283d894e3d92d9c442c629414...54ff218ac69fe7195a8ff215dc3c7e731c7ff3a3", "test_file": "src/test/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformerTest.java", "test_changes": [{"change_id": "1012_wmixvideo_nfe-v5.0.43_483409b_54ff218_DFYearMonthTransformerTest", "test_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformerTest.deveTransformarLocalDateEmString:()V", "class": "DFYearMonthTransformerTest", "method": "deveTransformarLocalDateEmString", "module": "", "junit_selector": "com.fincatto.documentofiscal.transformers.DFYearMonthTransformerTest#deveTransformarLocalDateEmString", "old_test_code": null, "new_test_code": "@Test\npublic void deveTransformarLocalDateEmString() throws Exception {\n Assert.assertEquals(\"2015-10\", new DFYearMonthTransformer().write(YearMonth.of(2015, 10)));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["20-23"], "old_production_code": "", "new_production_code": "@Override\npublic String write(final YearMonth data) {\n return DFYearMonthTransformer.DATETIME_FORMATTER_YYYYMM.format(data);\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "focal_method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.write:(Ljava/time/YearMonth;)Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.write:(Ljava/time/YearMonth;)Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "line_nums_new": "43-46", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0166, "line_coverage_gold": 0.0146, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.write:(Ljava/time/YearMonth;)Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.write:(Ljava/time/YearMonth;)Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1013_wmixvideo_nfe-v5.0.43_483409b_54ff218_DFYearMonthTransformerTest", "test_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformerTest.deveTransformarDataStringEmLocalDate:()V", "class": "DFYearMonthTransformerTest", "method": "deveTransformarDataStringEmLocalDate", "module": "", "junit_selector": "com.fincatto.documentofiscal.transformers.DFYearMonthTransformerTest#deveTransformarDataStringEmLocalDate", "old_test_code": null, "new_test_code": "@Test\npublic void deveTransformarDataStringEmLocalDate() throws Exception {\n Assert.assertEquals(\"2006-02\", new DFYearMonthTransformer().read(\"2006-02-01-02:00\").toString());\n Assert.assertEquals(\"2006-02\", new DFYearMonthTransformer().read(\"2006-02-01\").toString());\n Assert.assertEquals(\"2006-02\", new DFYearMonthTransformer().read(\"01/02/2006\").toString());\n Assert.assertEquals(\"2006-02\", new DFYearMonthTransformer().read(\"01/02/2006 12:00:01\").toString());\n Assert.assertEquals(\"2006-02\", new DFYearMonthTransformer().read(\"2006-02-01T00:00:00-03:00\").toString());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["11-18"], "old_production_code": "", "new_production_code": "@Override\npublic YearMonth read(final String data) {\n try {\n return YearMonth.parse(data, DFYearMonthTransformer.DATETIME_FORMATTER_YYYYMMDD);\n } catch (final Exception e) {\n try {\n return YearMonth.from(DFYearMonthTransformer.DATATIME_FORMATTER_YYYYMMDDXXX.parse(data));\n } catch (final Exception e2) {\n try {\n return YearMonth.from(DFYearMonthTransformer.DATETIME_FORMATTER_DDMMYYYY.parse(data));\n } catch (final Exception e3) {\n try {\n return YearMonth.from(DFYearMonthTransformer.DATETIME_FORMATTER_DDMMYYYHHMMSS.parse(data));\n } catch (final Exception e4) {\n try {\n return YearMonth.from(DFYearMonthTransformer.DATATIME_FORMATTER_YYYYMMDDHHMMSSXXXX.parse(data));\n } catch (final Exception e5) {\n return YearMonth.parse(data, DFYearMonthTransformer.DATETIME_FORMATTER_YYYYMM);\n }\n }\n }\n }\n }\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "focal_method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.read:(Ljava/lang/String;)Ljava/time/YearMonth", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.read:(Ljava/lang/String;)Ljava/time/YearMonth", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "line_nums_new": "18-41", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.8181818181818182, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.0166, "line_coverage_gold": 0.0291, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.read:(Ljava/lang/String;)Ljava/time/YearMonth"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.read:(Ljava/lang/String;)Ljava/time/YearMonth", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/transformers/DFYearMonthTransformer.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__8d24b44_17db355__MDFChaveParserTest_c73f03c6", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "8d24b4455fcb47897f2f25d6bdb91296830659d2", "rev2": "17db355b1e45856230a65ddf5f5ac2e0fdcc60a3", "rev1_date": "2025-10-03T13:39:23Z", "rev2_date": "2025-10-03T13:39:23Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/8d24b4455fcb47897f2f25d6bdb91296830659d2...17db355b1e45856230a65ddf5f5ac2e0fdcc60a3", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.java", "test_changes": [{"change_id": "1106_wmixvideo_nfe-v5.0.43_8d24b44_17db355_MDFChaveParserTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.deveIdentificarEmitentePessoaFisica:()V", "class": "MDFChaveParserTest", "method": "deveIdentificarEmitentePessoaFisica", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.parsers.MDFChaveParserTest#deveIdentificarEmitentePessoaFisica", "old_test_code": null, "new_test_code": "@Test\npublic void deveIdentificarEmitentePessoaFisica() {\n MDFChaveParser parser = new MDFChaveParser(\"35191012346589017069580010000000012345678901\");\n assertTrue(parser.isEmitentePessoaFisica());\n assertFalse(parser.isEmitentePessoaJuridica());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-72"], "old_production_code": "", "new_production_code": "public boolean isEmitentePessoaFisica() {\n return DFUtils.isCpfValido(this.chave.substring(9, 20));\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "93-95", "dependency_updated": "inserted", "score": 0.467, "signal_scores": {"nc": 0.0, "lcs_u": 0.9545, "ed": 0.6, "class": 1.0, "tfidf": 0.0488}}, {"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.4194, "signal_scores": {"nc": 0.0, "lcs_u": 0.7917, "ed": 0.4857, "class": 1.0, "tfidf": 0.0488}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1935, "method_coverage_gold": 0.0334, "line_coverage_gold": 0.0803, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["5905ca1dc0c8766b09ce5598e625ab6ecf1583fc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1107_wmixvideo_nfe-v5.0.43_8d24b44_17db355_MDFChaveParserTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.deveRetornarCpfEmitenteQuandoValido:()V", "class": "MDFChaveParserTest", "method": "deveRetornarCpfEmitenteQuandoValido", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.parsers.MDFChaveParserTest#deveRetornarCpfEmitenteQuandoValido", "old_test_code": null, "new_test_code": "@Test\npublic void deveRetornarCpfEmitenteQuandoValido() {\n MDFChaveParser parser = new MDFChaveParser(\"35191012346589017069580010000000012345678901\");\n assertEquals(\"46589017069\", parser.getCpfEmitente());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["32-36"], "old_production_code": "", "new_production_code": "public String getCpfEmitente() {\n return isEmitentePessoaFisica() ? this.chave.substring(9, 20) : null;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.getCpfEmitente:()Ljava/lang/String", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.getCpfEmitente:()Ljava/lang/String", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "57-59", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0562, "method_coverage_gold": 0.0279, "line_coverage_gold": 0.0383, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["5905ca1dc0c8766b09ce5598e625ab6ecf1583fc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.getCpfEmitente:()Ljava/lang/String"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.getCpfEmitente:()Ljava/lang/String", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "1108_wmixvideo_nfe-v5.0.43_8d24b44_17db355_MDFChaveParserTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.deveIdentificarEmitentePessoaJuridica:()V", "class": "MDFChaveParserTest", "method": "deveIdentificarEmitentePessoaJuridica", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.parsers.MDFChaveParserTest#deveIdentificarEmitentePessoaJuridica", "old_test_code": null, "new_test_code": "@Test\npublic void deveIdentificarEmitentePessoaJuridica() {\n MDFChaveParser parser = new MDFChaveParser(\"35191012345678000195580010000000012345678901\");\n assertTrue(parser.isEmitentePessoaJuridica());\n assertFalse(parser.isEmitentePessoaFisica());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["74-79"], "old_production_code": "", "new_production_code": "public boolean isEmitentePessoaJuridica() {\n return DFUtils.isCnpjValido(this.chave.substring(6, 20));\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "101-103", "dependency_updated": "inserted", "score": 0.4712, "signal_scores": {"nc": 0.0, "lcs_u": 0.9583, "ed": 0.6216, "class": 1.0, "tfidf": 0.0488}}, {"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "93-95", "dependency_updated": "inserted", "score": 0.4367, "signal_scores": {"nc": 0.0, "lcs_u": 0.8636, "ed": 0.5135, "class": 1.0, "tfidf": 0.0488}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1935, "method_coverage_gold": 0.0334, "line_coverage_gold": 0.0803, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["5905ca1dc0c8766b09ce5598e625ab6ecf1583fc"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaFisica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isEmitentePessoaJuridica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__e9c3158_5e1ce44__MDFChaveParserTest_eace922b", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "e9c31589e14f3aeac6b7a989b1de09c83e5df3f7", "rev2": "5e1ce440bb4cb379167634a562defe23bc3b6cfc", "rev1_date": "2025-10-13T13:26:38Z", "rev2_date": "2025-10-13T13:26:38Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/e9c31589e14f3aeac6b7a989b1de09c83e5df3f7...5e1ce440bb4cb379167634a562defe23bc3b6cfc", "test_file": "src/test/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.java", "test_changes": [{"change_id": "1057_wmixvideo_nfe-v5.0.43_e9c3158_5e1ce44_MDFChaveParserTest", "test_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParserTest.deveIdentificarSerieReservadaParaPessoaFisica:()V", "class": "MDFChaveParserTest", "method": "deveIdentificarSerieReservadaParaPessoaFisica", "module": "", "junit_selector": "com.fincatto.documentofiscal.mdfe3.classes.parsers.MDFChaveParserTest#deveIdentificarSerieReservadaParaPessoaFisica", "old_test_code": null, "new_test_code": "@Test\npublic void deveIdentificarSerieReservadaParaPessoaFisica() {\n assertTrue(parserPessoaFisica.isSerieReservadaPessoaFisica());\n assertFalse(parserPessoaJuridica.isSerieReservadaPessoaFisica());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["118-122"], "old_production_code": "", "new_production_code": "public boolean isSerieReservadaPessoaFisica() {\n if (DFUtils.isNumerico(this.getSerie())) {\n final int serie = Integer.parseInt(this.getSerie());\n return serie >= 920 && serie <= 969;\n }\n return false;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "focal_method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isSerieReservadaPessoaFisica:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isSerieReservadaPessoaFisica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "line_nums_new": "118-124", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0436, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0182, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isSerieReservadaPessoaFisica:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.isSerieReservadaPessoaFisica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/mdfe3/classes/parsers/MDFChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "wmixvideo_nfe-v5.0.43__e9c3158_5e1ce44__NotaFiscalChaveParserTest_eace922b", "project_name": "wmixvideo_nfe-v5.0.43", "git_clone_url": "https://github.com/wmixvideo/nfe.git", "rev1": "e9c31589e14f3aeac6b7a989b1de09c83e5df3f7", "rev2": "5e1ce440bb4cb379167634a562defe23bc3b6cfc", "rev1_date": "2025-10-13T13:26:38Z", "rev2_date": "2025-10-13T13:26:38Z", "git_diff_url": "https://github.com/wmixvideo/nfe/compare/e9c31589e14f3aeac6b7a989b1de09c83e5df3f7...5e1ce440bb4cb379167634a562defe23bc3b6cfc", "test_file": "src/test/java/com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParserTest.java", "test_changes": [{"change_id": "1056_wmixvideo_nfe-v5.0.43_e9c3158_5e1ce44_NotaFiscalChaveParserTest", "test_sign": "com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParserTest.deveIdentificarSerieReservadaParaPessoaFisica:()V", "class": "NotaFiscalChaveParserTest", "method": "deveIdentificarSerieReservadaParaPessoaFisica", "module": "", "junit_selector": "com.fincatto.documentofiscal.nfe400.NotaFiscalChaveParserTest#deveIdentificarSerieReservadaParaPessoaFisica", "old_test_code": null, "new_test_code": "@Test\npublic void deveIdentificarSerieReservadaParaPessoaFisica() {\n NotaFiscalChaveParser notaFiscalChaveParser = new NotaFiscalChaveParser(\"42151100038883975022649694579133596141399591\");\n assertTrue(notaFiscalChaveParser.isSerieReservadaPessoaFisica());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["108-112"], "old_production_code": "", "new_production_code": "public boolean isSerieReservadaPessoaFisica() {\n if (DFUtils.isNumerico(this.getSerie())) {\n final int serie = Integer.parseInt(this.getSerie());\n return serie >= 920 && serie <= 969;\n }\n return false;\n}", "focal_file_path": "src/main/java/com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.java", "focal_method_sign": "com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.isSerieReservadaPessoaFisica:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.isSerieReservadaPessoaFisica:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.java", "line_nums_new": "125-131", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0374, "method_coverage_gold": 0.0278, "line_coverage_gold": 0.0182, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.isSerieReservadaPessoaFisica:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.isSerieReservadaPessoaFisica:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/com/fincatto/documentofiscal/nfe400/NotaFiscalChaveParser.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "v5.0.43", "java_version": 11} {"task_id": "xerial_sqlite-jdbc-3.51.2.0__5db235f_3b73529__PrepStmtTest_be30fd45", "project_name": "xerial_sqlite-jdbc-3.51.2.0", "git_clone_url": "https://github.com/xerial/sqlite-jdbc.git", "rev1": "5db235ff4f100e72bfbb20cbf125aecdf44857e1", "rev2": "3b73529fedd9df35ad14b4a0576ccf6062749c6f", "rev1_date": "2024-09-25T01:30:01Z", "rev2_date": "2024-09-25T11:36:35Z", "git_diff_url": "https://github.com/xerial/sqlite-jdbc/compare/5db235ff4f100e72bfbb20cbf125aecdf44857e1...3b73529fedd9df35ad14b4a0576ccf6062749c6f", "test_file": "src/test/java/org/sqlite/PrepStmtTest.java", "test_changes": [{"change_id": "66_xerial_sqlite-jdbc-3.51.2.0_5db235f_3b73529_PrepStmtTest", "test_sign": "org/sqlite/PrepStmtTest.pragmaGetGeneratedKeys:()V", "class": "PrepStmtTest", "method": "pragmaGetGeneratedKeys", "module": "", "junit_selector": "org.sqlite.PrepStmtTest#pragmaGetGeneratedKeys", "old_test_code": null, "new_test_code": "@Test\npublic void pragmaGetGeneratedKeys() throws SQLException {\n SQLiteConnection connection = (SQLiteConnection) DriverManager.getConnection(\"jdbc:sqlite::memory:?jdbc.get_generated_keys=false\");\n assertThat(connection.getConnectionConfig().isGetGeneratedKeys()).isFalse();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["84-91"], "old_production_code": "", "new_production_code": "public boolean isGetGeneratedKeys() {\n return getGeneratedKeys;\n}", "focal_file_path": "src/main/java/org/sqlite/SQLiteConnectionConfig.java", "focal_method_sign": "org/sqlite/SQLiteConnectionConfig.isGetGeneratedKeys:()Z", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/sqlite/SQLiteConnectionConfig.isGetGeneratedKeys:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/sqlite/SQLiteConnectionConfig.java", "line_nums_new": "134-136", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 11.3931, "method_coverage_gold": 14.6067, "line_coverage_gold": 20.1895, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/sqlite/SQLiteConnection.getConnectionConfig:()Lorg/sqlite/SQLiteConnectionConfig", "org/sqlite/JDBC.connect:(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection", "org/sqlite/PrepStmtTest.close:()V", "org/sqlite/SQLiteConnectionConfig.isGetGeneratedKeys:()Z"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/sqlite/SQLiteConnectionConfig.isGetGeneratedKeys:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/sqlite/SQLiteConnectionConfig.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "3.51.2.0", "java_version": 11} {"task_id": "yegor256_cactoos-0.57.0__78d621e_1a3841b__IoCheckedBytesTest_30766e57", "project_name": "yegor256_cactoos-0.57.0", "git_clone_url": "https://github.com/yegor256/cactoos.git", "rev1": "78d621ea282d77f30afa94c47947ab027628a03e", "rev2": "1a3841bcbec498e84ef31aa502940b60d13b3e47", "rev1_date": "2022-07-15T10:32:51Z", "rev2_date": "2022-07-15T17:12:39Z", "git_diff_url": "https://github.com/yegor256/cactoos/compare/78d621ea282d77f30afa94c47947ab027628a03e...1a3841bcbec498e84ef31aa502940b60d13b3e47", "test_file": "src/test/java/org/cactoos/bytes/IoCheckedBytesTest.java", "test_changes": [{"change_id": "91_yegor256_cactoos-0.57.0_78d621e_1a3841b_IoCheckedBytesTest", "test_sign": "org/cactoos/bytes/IoCheckedBytesTest.worksNormallyWhenNoExceptionIsThrown:()V", "class": "IoCheckedBytesTest", "method": "worksNormallyWhenNoExceptionIsThrown", "module": "", "junit_selector": "org.cactoos.bytes.IoCheckedBytesTest#worksNormallyWhenNoExceptionIsThrown", "old_test_code": null, "new_test_code": "@Test\nvoid worksNormallyWhenNoExceptionIsThrown() throws Exception {\n final Text source = new TextOf(\"hello, cactoos!\");\n new Assertion<>(\"Must work normally when no exception is thrown\", new IoCheckedBytes(new BytesOf(source)).asBytes(), new IsEqual<>(new BytesOf(source).asBytes())).affirm();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-67"], "old_production_code": "", "new_production_code": "@Override\npublic byte[] asBytes() throws IOException {\n return this.scalar.value();\n}", "focal_file_path": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "focal_method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "line_nums_new": "78-81", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 1.4741, "line_coverage_gold": 1.2417, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/cactoos/bytes/BytesOf.asBytes:()[B", "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "92_yegor256_cactoos-0.57.0_78d621e_1a3841b_IoCheckedBytesTest", "test_sign": "org/cactoos/bytes/IoCheckedBytesTest.worksWithFallback:()V", "class": "IoCheckedBytesTest", "method": "worksWithFallback", "module": "", "junit_selector": "org.cactoos.bytes.IoCheckedBytesTest#worksWithFallback", "old_test_code": null, "new_test_code": "@Test\nvoid worksWithFallback() throws IOException {\n final byte[] empty = {};\n new Assertion<>(\"Must work with fallback\", new IoCheckedBytes(() -> {\n throw new IllegalArgumentException(\"OK\");\n }, new Fallback.From<>(IllegalArgumentException.class, ex -> empty)).asBytes(), new IsEqual<>(empty)).affirm();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["69-85"], "old_production_code": "", "new_production_code": "@Override\npublic byte[] asBytes() throws IOException {\n return this.scalar.value();\n}", "focal_file_path": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "focal_method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "line_nums_new": "78-81", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.7075, "line_coverage_gold": 0.7662, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/cactoos/bytes/IoCheckedBytes.asBytes:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/cactoos/bytes/IoCheckedBytes.asBytes:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/cactoos/bytes/IoCheckedBytes.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.57.0", "java_version": 11} {"task_id": "yegor256_cactoos-0.57.0__c5fc3b7_d568d63__JoinedListIteratorTest_e6a1da6a", "project_name": "yegor256_cactoos-0.57.0", "git_clone_url": "https://github.com/yegor256/cactoos.git", "rev1": "c5fc3b79fc6d892b4053440b48b5fd4ec39fbb2f", "rev2": "d568d6374655d96f66d3d8eeccbab2eda510a2d3", "rev1_date": "2025-02-21T17:59:01Z", "rev2_date": "2025-02-21T19:22:23Z", "git_diff_url": "https://github.com/yegor256/cactoos/compare/c5fc3b79fc6d892b4053440b48b5fd4ec39fbb2f...d568d6374655d96f66d3d8eeccbab2eda510a2d3", "test_file": "src/test/java/org/cactoos/list/JoinedListIteratorTest.java", "test_changes": [{"change_id": "79_yegor256_cactoos-0.57.0_c5fc3b7_d568d63_JoinedListIteratorTest", "test_sign": "org/cactoos/list/JoinedListIteratorTest.previousIndexTest:()V", "class": "JoinedListIteratorTest", "method": "previousIndexTest", "module": "", "junit_selector": "org.cactoos.list.JoinedListIteratorTest#previousIndexTest", "old_test_code": null, "new_test_code": "@Test\nvoid previousIndexTest() {\n final ListIterator joined = new JoinedListIterator<>(new ListOf<>(1).listIterator(), new ListOf<>(2).listIterator(), new ListOf<>(3).listIterator());\n joined.next();\n new Assertion<>(\"Must return index of the previous element\", joined.previousIndex(), new IsEqual<>(0)).affirm();\n joined.next();\n new Assertion<>(\"Must return index of the previous element\", joined.previousIndex(), new IsEqual<>(1)).affirm();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["171-190"], "old_production_code": "@Override\npublic int previousIndex() {\n int previousidx = -1;\n if (this.hasPrevious()) {\n previousidx = this.cursor.get() - 1;\n }\n return previousidx;\n}", "new_production_code": "@Override\npublic int previousIndex() {\n int previousidx = -1;\n if (this.hasPrevious()) {\n previousidx = this.cursor.get();\n }\n return previousidx;\n}", "focal_file_path": "src/main/java/org/cactoos/list/JoinedListIterator.java", "focal_method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "file_path_old": "src/main/java/org/cactoos/list/JoinedListIterator.java", "line_nums_old": "142-149", "file_path_new": "src/main/java/org/cactoos/list/JoinedListIterator.java", "line_nums_new": "142-149", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 2.4194, "method_coverage_gold": 1.794, "line_coverage_gold": 1.8013, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/cactoos/list/ListEnvelope.listIterator:()Ljava/util/ListIterator", "org/cactoos/list/JoinedListIterator.next:()Ljava/lang/Object", "org/cactoos/list/JoinedListIterator.previousIndex:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/org/cactoos/list/JoinedListIterator.java", "file_path_new": "src/main/java/org/cactoos/list/JoinedListIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0.57.0", "java_version": 11} {"task_id": "yegor256_cactoos-0.57.0__d737e65_cf5bfaa__JoinedListIteratorTest_e6a1da6a", "project_name": "yegor256_cactoos-0.57.0", "git_clone_url": "https://github.com/yegor256/cactoos.git", "rev1": "d737e65d07e6fe79e5951d78a575f70133c0445c", "rev2": "cf5bfaa1edb079f170b1531248ca9f9012060953", "rev1_date": "2025-03-03T08:31:46Z", "rev2_date": "2025-03-03T09:00:16Z", "git_diff_url": "https://github.com/yegor256/cactoos/compare/d737e65d07e6fe79e5951d78a575f70133c0445c...cf5bfaa1edb079f170b1531248ca9f9012060953", "test_file": "src/test/java/org/cactoos/list/JoinedListIteratorTest.java", "test_changes": [{"change_id": "76_yegor256_cactoos-0.57.0_d737e65_cf5bfaa_JoinedListIteratorTest", "test_sign": "org/cactoos/list/JoinedListIteratorTest.previousIndexTest:()V", "class": "JoinedListIteratorTest", "method": "previousIndexTest", "module": "", "junit_selector": "org.cactoos.list.JoinedListIteratorTest#previousIndexTest", "old_test_code": null, "new_test_code": "@Test\nvoid previousIndexTest() {\n final ListIterator joined = new JoinedListIterator<>(new ListOf<>(1).listIterator(), new ListOf<>(2).listIterator(), new ListOf<>(3).listIterator());\n joined.next();\n new Assertion<>(\"Must return index of the previous element\", joined.previousIndex(), new IsEqual<>(0)).affirm();\n joined.next();\n new Assertion<>(\"Must return index of the previous element\", joined.previousIndex(), new IsEqual<>(1)).affirm();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["152-171"], "old_production_code": "@Override\npublic int previousIndex() {\n int previousidx = -1;\n if (this.hasPrevious()) {\n previousidx = this.cursor.get() - 1;\n }\n return previousidx;\n}", "new_production_code": "@Override\npublic int previousIndex() {\n int previousidx = -1;\n if (this.hasPrevious()) {\n previousidx = this.cursor.get();\n }\n return previousidx;\n}", "focal_file_path": "src/main/java/org/cactoos/list/JoinedListIterator.java", "focal_method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "file_path_old": "src/main/java/org/cactoos/list/JoinedListIterator.java", "line_nums_old": "123-130", "file_path_new": "src/main/java/org/cactoos/list/JoinedListIterator.java", "line_nums_new": "123-130", "dependency_updated": "updated", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.9, "branch_coverage_gold": 2.4194, "method_coverage_gold": 1.794, "line_coverage_gold": 1.8013, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/cactoos/list/ListEnvelope.listIterator:()Ljava/util/ListIterator", "org/cactoos/list/JoinedListIterator.next:()Ljava/lang/Object", "org/cactoos/list/JoinedListIterator.previousIndex:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/cactoos/list/JoinedListIterator.previousIndex:()I", "change_type": "UPDATE", "file_path_old": "src/main/java/org/cactoos/list/JoinedListIterator.java", "file_path_new": "src/main/java/org/cactoos/list/JoinedListIterator.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "fail", "new_on_new": "pass"}}], "version": "0.57.0", "java_version": 11} {"task_id": "yegor256_cactoos-0.57.0__e67ed25_b798f1b__ThrowsOnFalseTest_65d37e67", "project_name": "yegor256_cactoos-0.57.0", "git_clone_url": "https://github.com/yegor256/cactoos.git", "rev1": "e67ed256ce17240a45d206bfc063ec3f0542d27d", "rev2": "b798f1b2a29df8b4a83992b051668125b80292de", "rev1_date": "2024-02-24T09:11:55Z", "rev2_date": "2024-02-24T09:12:26Z", "git_diff_url": "https://github.com/yegor256/cactoos/compare/e67ed256ce17240a45d206bfc063ec3f0542d27d...b798f1b2a29df8b4a83992b051668125b80292de", "test_file": "src/test/java/org/cactoos/scalar/ThrowsOnFalseTest.java", "test_changes": [{"change_id": "75_yegor256_cactoos-0.57.0_e67ed25_b798f1b_ThrowsOnFalseTest", "test_sign": "org/cactoos/scalar/ThrowsOnFalseTest.returnsTrueOnTrue:()V", "class": "ThrowsOnFalseTest", "method": "returnsTrueOnTrue", "module": "", "junit_selector": "org.cactoos.scalar.ThrowsOnFalseTest#returnsTrueOnTrue", "old_test_code": null, "new_test_code": "@Test\nvoid returnsTrueOnTrue() throws Exception {\n new Assertion<>(\"Must return true on true statement\", new ThrowsOnFalse(() -> true, \"test\").value(), new IsEqual<>(true)).affirm();\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["64-71"], "old_production_code": "", "new_production_code": "@Override\npublic Boolean value() throws Exception {\n if (!this.scalar.value()) {\n throw this.exception.value();\n }\n return true;\n}", "focal_file_path": "src/main/java/org/cactoos/scalar/ThrowsOnFalse.java", "focal_method_sign": "org/cactoos/scalar/ThrowsOnFalse.value:()Ljava/lang/Boolean", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/cactoos/scalar/ThrowsOnFalse.value:()Ljava/lang/Boolean", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/cactoos/scalar/ThrowsOnFalse.java", "line_nums_new": "73-79", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.6666666666666666, "branch_coverage_gold": 0.2128, "method_coverage_gold": 0.1756, "line_coverage_gold": 0.2094, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/cactoos/scalar/ThrowsOnFalse.value:()Ljava/lang/Boolean"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/cactoos/scalar/ThrowsOnFalse.value:()Ljava/lang/Boolean", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/cactoos/scalar/ThrowsOnFalse.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "0.57.0", "java_version": 11} {"task_id": "ysc_word-word-1.3__2661151_3a4045b__DoubleArrayDictionaryTrieTest_c408ecbf", "project_name": "ysc_word-word-1.3", "git_clone_url": "https://github.com/ysc/word.git", "rev1": "266115109d8c731916f3d962c8204af7d50d6f8a", "rev2": "3a4045b3c00d542f7ed47da39129060a900aaef9", "rev1_date": "2015-05-07T18:17:03Z", "rev2_date": "2015-05-07T18:41:21Z", "git_diff_url": "https://github.com/ysc/word/compare/266115109d8c731916f3d962c8204af7d50d6f8a...3a4045b3c00d542f7ed47da39129060a900aaef9", "test_file": "src/test/java/org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrieTest.java", "test_changes": [{"change_id": "126_ysc_word-word-1.3_2661151_3a4045b_DoubleArrayDictionaryTrieTest", "test_sign": "org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrieTest.testRemoveAll:()V", "class": "DoubleArrayDictionaryTrieTest", "method": "testRemoveAll", "module": "", "junit_selector": "org.apdplat.word.dictionary.impl.DoubleArrayDictionaryTrieTest#testRemoveAll", "old_test_code": null, "new_test_code": "@Test\npublic void testRemoveAll() {\n Dictionary dictionary = new DoubleArrayDictionaryTrie();\n try {\n dictionary.removeAll(Arrays.asList(\"APDPlat\", \"杨尚川\"));\n fail();\n } catch (Exception e) {\n assertEquals(\"not yet support menthod!\", e.getMessage());\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["57-66"], "old_production_code": "", "new_production_code": "@Override\npublic void removeAll(List items) {\n throw new RuntimeException(\"not yet support menthod!\");\n}", "focal_file_path": "src/main/java/org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.java", "focal_method_sign": "org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.removeAll:(Ljava/util/List;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.removeAll:(Ljava/util/List;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.java", "line_nums_new": "269-272", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.0, "method_coverage_gold": 0.53, "line_coverage_gold": 0.1279, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["f724e6b29b96e116d8c7a6c2bd88ab69ad69254f", "d4f4692c85435dce0189f2dea49ececc7e4b63db"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.removeAll:(Ljava/util/List;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.removeAll:(Ljava/util/List;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/apdplat/word/dictionary/impl/DoubleArrayDictionaryTrie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "word-1.3", "java_version": 8} {"task_id": "ysc_word-word-1.3__40b7cd0_3efb73d__DoubleArrayGenericTrieTest_ff067d85", "project_name": "ysc_word-word-1.3", "git_clone_url": "https://github.com/ysc/word.git", "rev1": "40b7cd05dcfe1a617ae0d6e6b4ca59ffb7394a9d", "rev2": "3efb73d67624acdcf84bbcac53ef3587703fc31c", "rev1_date": "2015-05-14T22:27:20Z", "rev2_date": "2015-05-14T23:34:27Z", "git_diff_url": "https://github.com/ysc/word/compare/40b7cd05dcfe1a617ae0d6e6b4ca59ffb7394a9d...3efb73d67624acdcf84bbcac53ef3587703fc31c", "test_file": "src/test/java/org/apdplat/word/util/DoubleArrayGenericTrieTest.java", "test_changes": [{"change_id": "141_ysc_word-word-1.3_40b7cd0_3efb73d_DoubleArrayGenericTrieTest", "test_sign": "org/apdplat/word/util/DoubleArrayGenericTrieTest.testTrigram:()V", "class": "DoubleArrayGenericTrieTest", "method": "testTrigram", "module": "", "junit_selector": "org.apdplat.word.util.DoubleArrayGenericTrieTest#testTrigram", "old_test_code": null, "new_test_code": "@Test\npublic void testTrigram() {\n try {\n Map map = new HashMap<>();\n List lines = Files.readAllLines(Paths.get(\"src/test/resources/trigram.txt\"));\n lines.forEach(line -> {\n String[] attrs = line.split(\"\\\\s+\");\n if (attrs != null && attrs.length == 2) {\n map.put(attrs[0], Integer.parseInt(attrs[1]));\n }\n });\n DoubleArrayGenericTrie doubleArrayGenericTrie = new DoubleArrayGenericTrie(WordConfTools.getInt(\"trigram.double.array.trie.size\", 9800000));\n doubleArrayGenericTrie.putAll(map);\n map.keySet().forEach(key -> assertEquals(map.get(key).intValue(), doubleArrayGenericTrie.get(key)));\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-108"], "old_production_code": "", "new_production_code": "public void putAll(Map map) {\n if (check != null) {\n throw new RuntimeException(\"addAll method can just be used once after clear method!\");\n }\n List items = map.keySet().stream().sorted().collect(Collectors.toList());\n if (LOGGER.isDebugEnabled()) {\n if (items.size() < 10) {\n items.forEach(item -> LOGGER.debug(item + \"=\" + map.get(item)));\n }\n }\n init(items, map);\n}", "focal_file_path": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "focal_method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "line_nums_new": "246-263", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 3.4448, "method_coverage_gold": 2.7692, "line_coverage_gold": 3.554, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["a5655060ad998f948bc6f230af25387652c33a65", "05e0e34cd0ec11fb6406c0728a603c6c646b1d69"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "142_ysc_word-word-1.3_40b7cd0_3efb73d_DoubleArrayGenericTrieTest", "test_sign": "org/apdplat/word/util/DoubleArrayGenericTrieTest.testBigram:()V", "class": "DoubleArrayGenericTrieTest", "method": "testBigram", "module": "", "junit_selector": "org.apdplat.word.util.DoubleArrayGenericTrieTest#testBigram", "old_test_code": null, "new_test_code": "@Test\npublic void testBigram() {\n try {\n Map map = new HashMap<>();\n List lines = Files.readAllLines(Paths.get(\"src/test/resources/bigram.txt\"));\n lines.forEach(line -> {\n String[] attrs = line.split(\"\\\\s+\");\n if (attrs != null && attrs.length == 2) {\n map.put(attrs[0], Integer.parseInt(attrs[1]));\n }\n });\n DoubleArrayGenericTrie doubleArrayGenericTrie = new DoubleArrayGenericTrie(WordConfTools.getInt(\"bigram.double.array.trie.size\", 5300000));\n doubleArrayGenericTrie.putAll(map);\n map.keySet().forEach(key -> assertEquals(map.get(key).intValue(), doubleArrayGenericTrie.get(key)));\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-89"], "old_production_code": "", "new_production_code": "public void putAll(Map map) {\n if (check != null) {\n throw new RuntimeException(\"addAll method can just be used once after clear method!\");\n }\n List items = map.keySet().stream().sorted().collect(Collectors.toList());\n if (LOGGER.isDebugEnabled()) {\n if (items.size() < 10) {\n items.forEach(item -> LOGGER.debug(item + \"=\" + map.get(item)));\n }\n }\n init(items, map);\n}", "focal_file_path": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "focal_method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "line_nums_new": "246-263", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 3.4448, "method_coverage_gold": 2.7692, "line_coverage_gold": 3.554, "is_traceback": true, "commit_gap": {"count": 2, "skipped_commits": ["a5655060ad998f948bc6f230af25387652c33a65", "05e0e34cd0ec11fb6406c0728a603c6c646b1d69"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apdplat/word/util/WordConfTools.getInt:(Ljava/lang/String;I)I", "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "word-1.3", "java_version": 8} {"task_id": "ysc_word-word-1.3__40b7cd0_a565506__DoubleArrayGenericTrieTest_ff067d85", "project_name": "ysc_word-word-1.3", "git_clone_url": "https://github.com/ysc/word.git", "rev1": "40b7cd05dcfe1a617ae0d6e6b4ca59ffb7394a9d", "rev2": "a5655060ad998f948bc6f230af25387652c33a65", "rev1_date": "2015-05-14T22:27:20Z", "rev2_date": "2015-05-14T22:28:59Z", "git_diff_url": "https://github.com/ysc/word/compare/40b7cd05dcfe1a617ae0d6e6b4ca59ffb7394a9d...a5655060ad998f948bc6f230af25387652c33a65", "test_file": "src/test/java/org/apdplat/word/util/DoubleArrayGenericTrieTest.java", "test_changes": [{"change_id": "129_ysc_word-word-1.3_40b7cd0_a565506_DoubleArrayGenericTrieTest", "test_sign": "org/apdplat/word/util/DoubleArrayGenericTrieTest.testTrigram:()V", "class": "DoubleArrayGenericTrieTest", "method": "testTrigram", "module": "", "junit_selector": "org.apdplat.word.util.DoubleArrayGenericTrieTest#testTrigram", "old_test_code": null, "new_test_code": "@Test\npublic void testTrigram() {\n try {\n Map map = new HashMap<>();\n List lines = Files.readAllLines(Paths.get(\"src/test/resources/trigram.txt\"));\n lines.forEach(line -> {\n String[] attrs = line.split(\"\\\\s+\");\n if (attrs != null && attrs.length == 2) {\n map.put(attrs[0], Integer.parseInt(attrs[1]));\n }\n });\n DoubleArrayGenericTrie doubleArrayGenericTrie = new DoubleArrayGenericTrie(WordConfTools.getInt(\"trigram.double.array.trie.size\", 10100000));\n doubleArrayGenericTrie.putAll(map);\n map.keySet().forEach(key -> assertEquals(map.get(key).intValue(), doubleArrayGenericTrie.get(key)));\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["90-108"], "old_production_code": "", "new_production_code": "public void putAll(Map map) {\n if (check != null) {\n throw new RuntimeException(\"addAll method can just be used once after clear method!\");\n }\n List items = map.keySet().stream().sorted().collect(Collectors.toList());\n if (LOGGER.isDebugEnabled()) {\n if (items.size() < 10) {\n items.forEach(item -> LOGGER.debug(item + \"=\" + map.get(item)));\n }\n }\n init(items, map);\n}", "focal_file_path": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "focal_method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "line_nums_new": "246-263", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7777777777777778, "branch_coverage_gold": 3.4448, "method_coverage_gold": 2.7692, "line_coverage_gold": 3.554, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["05e0e34cd0ec11fb6406c0728a603c6c646b1d69"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "130_ysc_word-word-1.3_40b7cd0_a565506_DoubleArrayGenericTrieTest", "test_sign": "org/apdplat/word/util/DoubleArrayGenericTrieTest.testBigram:()V", "class": "DoubleArrayGenericTrieTest", "method": "testBigram", "module": "", "junit_selector": "org.apdplat.word.util.DoubleArrayGenericTrieTest#testBigram", "old_test_code": null, "new_test_code": "@Test\npublic void testBigram() {\n try {\n Map map = new HashMap<>();\n List lines = Files.readAllLines(Paths.get(\"src/test/resources/bigram.txt\"));\n lines.forEach(line -> {\n String[] attrs = line.split(\"\\\\s+\");\n if (attrs != null && attrs.length == 2) {\n map.put(attrs[0], Integer.parseInt(attrs[1]));\n }\n });\n DoubleArrayGenericTrie doubleArrayGenericTrie = new DoubleArrayGenericTrie(WordConfTools.getInt(\"bigram.double.array.trie.size\", 5500000));\n doubleArrayGenericTrie.putAll(map);\n map.keySet().forEach(key -> assertEquals(map.get(key).intValue(), doubleArrayGenericTrie.get(key)));\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["71-89"], "old_production_code": "", "new_production_code": "public void putAll(Map map) {\n if (check != null) {\n throw new RuntimeException(\"addAll method can just be used once after clear method!\");\n }\n List items = map.keySet().stream().sorted().collect(Collectors.toList());\n if (LOGGER.isDebugEnabled()) {\n if (items.size() < 10) {\n items.forEach(item -> LOGGER.debug(item + \"=\" + map.get(item)));\n }\n }\n init(items, map);\n}", "focal_file_path": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "focal_method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "file_path_old": null, "line_nums_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "line_nums_new": "246-263", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.7692307692307693, "branch_coverage_gold": 3.4448, "method_coverage_gold": 2.7692, "line_coverage_gold": 3.554, "is_traceback": true, "commit_gap": {"count": 1, "skipped_commits": ["05e0e34cd0ec11fb6406c0728a603c6c646b1d69"]}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["org/apdplat/word/util/WordConfTools.getInt:(Ljava/lang/String;I)I", "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V"], "all_deps_old": [], "deps_changes": [{"method_sign": "org/apdplat/word/util/DoubleArrayGenericTrie.putAll:(Ljava/util/Map;)V", "change_type": "ADD", "file_path_old": null, "file_path_new": "src/main/java/org/apdplat/word/util/DoubleArrayGenericTrie.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "word-1.3", "java_version": 8} {"task_id": "zxing_zxing-zxing-3.5.4__2b14992_45b3a16__GrayscaleLuminanceSourceTestCase_f75f7285", "project_name": "zxing_zxing-zxing-3.5.4", "git_clone_url": "https://github.com/zxing/zxing.git", "rev1": "2b1499246b11415889e4a02d65023b86201a0610", "rev2": "45b3a16e812cb08cd66d25b3bb4767f92b0833b3", "rev1_date": "2025-11-10T20:35:54Z", "rev2_date": "2025-11-11T03:01:40Z", "git_diff_url": "https://github.com/zxing/zxing/compare/2b1499246b11415889e4a02d65023b86201a0610...45b3a16e812cb08cd66d25b3bb4767f92b0833b3", "test_file": "core/src/test/java/com/google/zxing/GrayscaleLuminanceSourceTestCase.java", "test_changes": [{"change_id": "493_zxing_zxing-zxing-3.5.4_2b14992_45b3a16_GrayscaleLuminanceSourceTestCase", "test_sign": "com/google/zxing/GrayscaleLuminanceSourceTestCase.testCrop:()V", "class": "GrayscaleLuminanceSourceTestCase", "method": "testCrop", "module": "core", "junit_selector": "com.google.zxing.GrayscaleLuminanceSourceTestCase#testCrop", "old_test_code": null, "new_test_code": "@Test\npublic void testCrop() {\n assertTrue(SOURCE.isCropSupported());\n LuminanceSource cropped = SOURCE.crop(1, 1, 1, 1);\n assertEquals(1, cropped.getHeight());\n assertEquals(1, cropped.getWidth());\n assertArrayEquals(new byte[] { 0x7F }, cropped.getRow(0, null));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["33-40"], "old_production_code": "", "new_production_code": "@Override\npublic LuminanceSource crop(int left, int top, int width, int height) {\n return new GrayscaleLuminanceSource(luminances, dataWidth, dataHeight, this.left + left, this.top + top, width, height);\n}", "focal_file_path": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "focal_method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "focal_all_deps_scored": [{"dep_id": 1, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "110-119", "dependency_updated": "inserted", "score": 0.7718, "signal_scores": {"nc": 1.0, "lcs_u": 1.0, "ed": 1.0, "class": 1.0, "tfidf": 0.0302}}, {"dep_id": 0, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "61-73", "dependency_updated": "inserted", "score": 0.3108, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.3333, "class": 1.0, "tfidf": 0.0376}}, {"dep_id": 2, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "105-108", "dependency_updated": "inserted", "score": 0.2955, "signal_scores": {"nc": 0.0, "lcs_u": 0.2667, "ed": 0.2667, "class": 1.0, "tfidf": 0.0692}}], "coverage_gold": 0.9166666666666666, "branch_coverage_gold": 0.0544, "method_coverage_gold": 0.4362, "line_coverage_gold": 0.2016, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "com/google/zxing/LuminanceSource.getHeight:()I", "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "com/google/zxing/LuminanceSource.getWidth:()I"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "494_zxing_zxing-zxing-3.5.4_2b14992_45b3a16_GrayscaleLuminanceSourceTestCase", "test_sign": "com/google/zxing/GrayscaleLuminanceSourceTestCase.testRotateCropped:()V", "class": "GrayscaleLuminanceSourceTestCase", "method": "testRotateCropped", "module": "core", "junit_selector": "com.google.zxing.GrayscaleLuminanceSourceTestCase#testRotateCropped", "old_test_code": null, "new_test_code": "@Test\npublic void testRotateCropped() {\n assertTrue(SOURCE.isCropSupported());\n assertTrue(SOURCE.isRotateSupported());\n LuminanceSource cropped = SOURCE.crop(1, 1, 2, 2);\n assertArrayEquals(new byte[] { 0x7F, 0x3F }, cropped.getRow(0, null));\n assertArrayEquals(new byte[] { 0x7F, 0x3F }, cropped.getRow(1, null));\n LuminanceSource rot90 = cropped.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x3F, 0x3F }, rot90.getRow(0, null));\n assertArrayEquals(new byte[] { 0x7F, 0x7F }, rot90.getRow(1, null));\n LuminanceSource rot180 = rot90.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x3F, 0x7F }, rot180.getRow(0, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F }, rot180.getRow(1, null));\n LuminanceSource rot270 = rot180.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x7F, 0x7F }, rot270.getRow(0, null));\n assertArrayEquals(new byte[] { 0x3F, 0x3F }, rot270.getRow(1, null));\n LuminanceSource rot360 = rot270.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x7F, 0x3F }, rot360.getRow(0, null));\n assertArrayEquals(new byte[] { 0x7F, 0x3F }, rot360.getRow(1, null));\n assertArrayEquals(cropped.getMatrix(), rot360.getMatrix());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["67-87"], "old_production_code": "", "new_production_code": "@Override\npublic LuminanceSource crop(int left, int top, int width, int height) {\n return new GrayscaleLuminanceSource(luminances, dataWidth, dataHeight, this.left + left, this.top + top, width, height);\n}", "focal_file_path": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "focal_method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "110-119", "dependency_updated": "inserted", "score": 0.4203, "signal_scores": {"nc": 0.0, "lcs_u": 1.0, "ed": 0.3077, "class": 1.0, "tfidf": 0.0209}}, {"dep_id": 1, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "121-124", "dependency_updated": "inserted", "score": 0.383, "signal_scores": {"nc": 0.0, "lcs_u": 0.5882, "ed": 0.5294, "class": 1.0, "tfidf": 0.0159}}, {"dep_id": 4, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "126-143", "dependency_updated": "inserted", "score": 0.3405, "signal_scores": {"nc": 0.0, "lcs_u": 0.4545, "ed": 0.4091, "class": 1.0, "tfidf": 0.0197}}, {"dep_id": 0, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "61-73", "dependency_updated": "inserted", "score": 0.3252, "signal_scores": {"nc": 0.0, "lcs_u": 0.5, "ed": 0.2308, "class": 1.0, "tfidf": 0.0456}}, {"dep_id": 5, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "105-108", "dependency_updated": "inserted", "score": 0.3183, "signal_scores": {"nc": 0.0, "lcs_u": 0.4667, "ed": 0.2667, "class": 1.0, "tfidf": 0.0159}}, {"dep_id": 3, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "75-103", "dependency_updated": "inserted", "score": 0.3054, "signal_scores": {"nc": 0.0, "lcs_u": 0.4444, "ed": 0.2308, "class": 1.0, "tfidf": 0.0032}}], "coverage_gold": 0.8974358974358975, "branch_coverage_gold": 0.1415, "method_coverage_gold": 0.5998, "line_coverage_gold": 0.3763, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.isCropSupported:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "495_zxing_zxing-zxing-3.5.4_2b14992_45b3a16_GrayscaleLuminanceSourceTestCase", "test_sign": "com/google/zxing/GrayscaleLuminanceSourceTestCase.testMatrix:()V", "class": "GrayscaleLuminanceSourceTestCase", "method": "testMatrix", "module": "core", "junit_selector": "com.google.zxing.GrayscaleLuminanceSourceTestCase#testMatrix", "old_test_code": null, "new_test_code": "@Test\npublic void testMatrix() {\n assertArrayEquals(new byte[] { 0x00, 0x7F, (byte) 0xFF, 0x3F, 0x7F, 0x3F, 0x3F, 0x7F, 0x3F }, SOURCE.getMatrix());\n LuminanceSource croppedFullWidth = SOURCE.crop(0, 1, 3, 2);\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F, 0x3F, 0x7F, 0x3F }, croppedFullWidth.getMatrix());\n LuminanceSource croppedCorner = SOURCE.crop(1, 1, 2, 2);\n assertArrayEquals(new byte[] { 0x7F, 0x3F, 0x7F, 0x3F }, croppedCorner.getMatrix());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["89-99"], "old_production_code": "", "new_production_code": "@Override\npublic byte[] getMatrix() {\n int width = getWidth();\n int height = getHeight();\n if (width == dataWidth && height == dataHeight) {\n return luminances;\n }\n int area = width * height;\n byte[] matrix = new byte[area];\n int inputOffset = top * dataWidth + left;\n if (width == dataWidth) {\n System.arraycopy(luminances, inputOffset, matrix, 0, area);\n return matrix;\n }\n for (int y = 0; y < height; y++) {\n int outputOffset = y * width;\n System.arraycopy(luminances, inputOffset, matrix, outputOffset, width);\n inputOffset += dataWidth;\n }\n return matrix;\n}", "focal_file_path": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "focal_method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "75-103", "dependency_updated": "inserted", "score": 0.4178, "signal_scores": {"nc": 0.0, "lcs_u": 0.6667, "ed": 0.6667, "class": 1.0, "tfidf": 0.0091}}, {"dep_id": 1, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "110-119", "dependency_updated": "inserted", "score": 0.2659, "signal_scores": {"nc": 0.0, "lcs_u": 0.25, "ed": 0.1667, "class": 1.0, "tfidf": 0.0258}}], "coverage_gold": 1.0, "branch_coverage_gold": 0.1089, "method_coverage_gold": 0.3817, "line_coverage_gold": 0.2487, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.crop:(IIII)Lcom/google/zxing/LuminanceSource", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "496_zxing_zxing-zxing-3.5.4_2b14992_45b3a16_GrayscaleLuminanceSourceTestCase", "test_sign": "com/google/zxing/GrayscaleLuminanceSourceTestCase.testRotate:()V", "class": "GrayscaleLuminanceSourceTestCase", "method": "testRotate", "module": "core", "junit_selector": "com.google.zxing.GrayscaleLuminanceSourceTestCase#testRotate", "old_test_code": null, "new_test_code": "@Test\npublic void testRotate() {\n assertTrue(SOURCE.isRotateSupported());\n assertArrayEquals(new byte[] { 0x00, 0x7F, (byte) 0xFF }, SOURCE.getRow(0, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, SOURCE.getRow(1, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, SOURCE.getRow(2, null));\n LuminanceSource rot90 = SOURCE.rotateCounterClockwise();\n assertArrayEquals(new byte[] { (byte) 0xFF, 0x3F, 0x3F }, rot90.getRow(0, null));\n assertArrayEquals(new byte[] { 0x7F, 0x7F, 0x7F }, rot90.getRow(1, null));\n assertArrayEquals(new byte[] { 0x00, 0x3F, 0x3F }, rot90.getRow(2, null));\n LuminanceSource rot180 = rot90.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, rot180.getRow(0, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, rot180.getRow(1, null));\n assertArrayEquals(new byte[] { (byte) 0xFF, 0x7F, 0x00 }, rot180.getRow(2, null));\n LuminanceSource rot270 = rot180.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x3F, 0x3F, 0x00 }, rot270.getRow(0, null));\n assertArrayEquals(new byte[] { 0x7F, 0x7F, 0x7F }, rot270.getRow(1, null));\n assertArrayEquals(new byte[] { 0x3F, 0x3F, (byte) 0xFF }, rot270.getRow(2, null));\n LuminanceSource rot360 = rot270.rotateCounterClockwise();\n assertArrayEquals(new byte[] { 0x00, 0x7F, (byte) 0xFF }, rot360.getRow(0, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, rot360.getRow(1, null));\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, rot360.getRow(2, null));\n assertArrayEquals(SOURCE.getMatrix(), rot360.getMatrix());\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["42-65"], "old_production_code": "", "new_production_code": "@Override\npublic boolean isRotateSupported() {\n return true;\n}", "focal_file_path": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "focal_method_sign": "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "focal_all_deps_scored": [{"dep_id": 2, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "121-124", "dependency_updated": "inserted", "score": 0.3111, "signal_scores": {"nc": 0.0, "lcs_u": 0.3529, "ed": 0.3529, "class": 1.0, "tfidf": 0.0105}}, {"dep_id": 1, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "75-103", "dependency_updated": "inserted", "score": 0.3024, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.3333, "class": 1.0, "tfidf": 0.0021}}, {"dep_id": 3, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "61-73", "dependency_updated": "inserted", "score": 0.2851, "signal_scores": {"nc": 0.0, "lcs_u": 0.3333, "ed": 0.1667, "class": 1.0, "tfidf": 0.0448}}, {"dep_id": 0, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "126-143", "dependency_updated": "inserted", "score": 0.284, "signal_scores": {"nc": 0.0, "lcs_u": 0.2727, "ed": 0.2727, "class": 1.0, "tfidf": 0.0114}}], "coverage_gold": 0.6756756756756757, "branch_coverage_gold": 0.1197, "method_coverage_gold": 0.4907, "line_coverage_gold": 0.3091, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/zxing/GrayscaleLuminanceSource.rotateCounterClockwise:()Lcom/google/zxing/LuminanceSource", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getMatrix:()[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.isRotateSupported:()Z", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}, {"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}, {"change_id": "497_zxing_zxing-zxing-3.5.4_2b14992_45b3a16_GrayscaleLuminanceSourceTestCase", "test_sign": "com/google/zxing/GrayscaleLuminanceSourceTestCase.testGetRow:()V", "class": "GrayscaleLuminanceSourceTestCase", "method": "testGetRow", "module": "core", "junit_selector": "com.google.zxing.GrayscaleLuminanceSourceTestCase#testGetRow", "old_test_code": null, "new_test_code": "@Test\npublic void testGetRow() {\n assertArrayEquals(new byte[] { 0x3F, 0x7F, 0x3F }, SOURCE.getRow(2, new byte[3]));\n}", "old_test_file_path": [], "old_test_lnum": [], "new_test_lnum": ["101-104"], "old_production_code": "", "new_production_code": "@Override\npublic byte[] getRow(int y, byte[] row) {\n if (y < 0 || y >= getHeight()) {\n throw new IllegalArgumentException(\"Requested row is outside the image: \" + y);\n }\n int width = getWidth();\n if (row == null || row.length < width) {\n row = new byte[width];\n }\n int offset = (y + top) * dataWidth + left;\n System.arraycopy(luminances, offset, row, 0, width);\n return row;\n}", "focal_file_path": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "focal_method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "focal_all_deps_scored": [{"dep_id": 0, "method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "file_path_old": null, "line_nums_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "line_nums_new": "61-73", "dependency_updated": "inserted", "score": null, "signal_scores": {"nc": 0.0, "lcs_u": 0.0, "ed": 0.0, "class": 0.0, "tfidf": 0.0}}], "coverage_gold": 0.75, "branch_coverage_gold": 0.0435, "method_coverage_gold": 0.2726, "line_coverage_gold": 0.1277, "is_traceback": false, "commit_gap": {"count": 0, "skipped_commits": []}, "test_is_refactoring_only": false, "has_test_dep_change": false, "all_deps_new": ["com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B"], "all_deps_old": [], "deps_changes": [{"method_sign": "com/google/zxing/GrayscaleLuminanceSource.getRow:(I[B)[B", "change_type": "ADD", "file_path_old": null, "file_path_new": "core/src/main/java/com/google/zxing/GrayscaleLuminanceSource.java", "source": "production", "is_test_dependency": false, "is_refactoring_only": false}], "variant_result": {"old_on_old": null, "old_on_new": null, "new_on_old": "error", "new_on_new": "pass"}}], "version": "zxing-3.5.4", "java_version": 8}