anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: karatelabs/karate
Issue: `logPrettyResponse` configuration parameter is not considered

`logPrettyResponse` is not considered when configured, either in `karate-config.js` or in the feature itself.
Looking at the code I found the issue and will submit a PR to fix it.


Changed files:
karate-core/src/main/java/com/intuit/karate/http/HttpLogger.java

diff --git a/karate-core/src/main/java/com/intuit/karate/http/HttpLogger.java b/karate-core/src/main/java/com/intuit/karate/http/HttpLogger.java
index f6d7466cd..bc5464d12 100644
--- a/karate-core/src/main/java/com/intuit/karate/http/HttpLogger.java
+++ b/karate-core/src/main/java/com/intuit/karate/http/HttpLogger.java
@@ -69,7 +69,7 @@ public class HttpLogger {
         }
         Variable v = new Variable(body);
         String text;
-        if (config != null && config.isLogPrettyRequest()) {
+        if (config != null && needsPrettyLogging(config, request)) {
             text = v.getAsPrettyString();
         } else {
             text = v.getAsString();
@@ -80,6 +80,18 @@ public class HttpLogger {
         sb.append(text);
     }
 
+    private static boolean needsPrettyLogging(Config config, boolean request) {
+        return logPrettyRequest(config, request) || logPrettyResponse(config, request);
+    }
+
+    private static boolean logPrettyResponse(Config config, boolean request) {
+        return !request && config.isLogPrettyResponse();
+    }
+
+    private static boolean logPrettyRequest(Config config, boolean request) {
+        return request && config.isLogPrettyRequest();
+    }
+
     private static HttpLogModifier logModifier(Config config, String uri) {
         HttpLogModifier logModifier = config.getLogModifier();
         return logModifier == null ? null : logModifier.enableForUri(uri) ? logModifier : null;
Repository: karatelabs/karate
Issue: Double Click and Right Click in Karate Robot framework for windows app

Double click doesnt work in Karate Robot framework for windows app
```
locate('abc').doubleClick(0,0)
```
It clicks twice  but does it slowly such that the double click does not really work. I found doubleClick() method in RobotBase.Java which has a 40ms delay between the clicks and i'm not sure if that is the reason behind the lag in clicks.

Right Click also doesnt work as there is no method in Element.java but there is a rightClick() method in RobotBase.Java which calls Click(3) internally 

Changed files:
karate-robot/src/main/java/com/intuit/karate/robot/RobotBase.java

diff --git a/karate-robot/src/main/java/com/intuit/karate/robot/RobotBase.java b/karate-robot/src/main/java/com/intuit/karate/robot/RobotBase.java
index af420922a..0ee7dfbfc 100644
--- a/karate-robot/src/main/java/com/intuit/karate/robot/RobotBase.java
+++ b/karate-robot/src/main/java/com/intuit/karate/robot/RobotBase.java
@@ -277,7 +277,7 @@ public abstract class RobotBase implements Robot, Plugin {
 
     @Override
     public Robot rightClick() {
-        return click(3);
+        return click(2);
     }
 
     @Override
@@ -299,9 +299,20 @@ public abstract class RobotBase implements Robot, Plugin {
 
     @Override
     public Robot doubleClick() {
-        click();
-        delay(40);
-        click();
+        if (highlight) {
+            getLocation().highlight(highlightDuration);
+            int toDelay = highlightDuration;
+            if (toDelay > 0) {
+                RobotUtils.delay(toDelay);
+            }
+        }
+        int clickType = mask(1);
+        robot.mousePress(clickType);
+        robot.mouseRelease(clickType);
+        RobotUtils.delay(100);
+        robot.mousePress(clickType);
+        robot.mouseRelease(clickType);
+
         return this;
     }