anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: nationalsecurityagency/datawave
Issue: Expose geowave configuration from ShardQueryConfiguration in ShardQueryLogic

There are a few configuration options available for geowave in shardqueryconfiguration which are not exposed in shardquerylogic.  This makes it impossible to change these settings without rebuilding the jar.  We should fix this.

Changed files:
warehouse/query-core/src/main/java/datawave/query/tables/ShardQueryLogic.java

diff --git a/warehouse/query-core/src/main/java/datawave/query/tables/ShardQueryLogic.java b/warehouse/query-core/src/main/java/datawave/query/tables/ShardQueryLogic.java
index 8616807ee4..7a08ec5fca 100644
--- a/warehouse/query-core/src/main/java/datawave/query/tables/ShardQueryLogic.java
+++ b/warehouse/query-core/src/main/java/datawave/query/tables/ShardQueryLogic.java
@@ -2186,6 +2186,30 @@ public class ShardQueryLogic extends BaseQueryLogic<Entry<Key,Value>> {
         getConfig().setPointMaxExpansion(pointMaxExpansion);
     }
     
+    public int getGeoWaveRangeSplitThreshold() {
+        return getConfig().getGeoWaveRangeSplitThreshold();
+    }
+    
+    public void setGeoWaveRangeSplitThreshold(int geoWaveRangeSplitThreshold) {
+        getConfig().setGeoWaveRangeSplitThreshold(geoWaveRangeSplitThreshold);
+    }
+    
+    public double getGeoWaveMaxRangeOverlap() {
+        return getConfig().getGeoWaveMaxRangeOverlap();
+    }
+    
+    public void setGeoWaveMaxRangeOverlap(double geoWaveMaxRangeOverlap) {
+        getConfig().setGeoWaveMaxRangeOverlap(geoWaveMaxRangeOverlap);
+    }
+    
+    public boolean isOptimizeGeoWaveRanges() {
+        return getConfig().isOptimizeGeoWaveRanges();
+    }
+    
+    public void setOptimizeGeoWaveRanges(boolean optimizeGeoWaveRanges) {
+        getConfig().setOptimizeGeoWaveRanges(optimizeGeoWaveRanges);
+    }
+    
     public int getGeoWaveMaxEnvelopes() {
         return getConfig().getGeoWaveMaxEnvelopes();
     }
Repository: wro4j/wro4j
Issue: Stale wro4j-core.jar when undeployed on windows tomcat

My application cannot be undeployed correctly on windows tomcat because there seems to be a file-lock on the wro4j-core.....jar event after application shutdown.

I tried to manually call WroManagerFactory.destroy() without any luck.

I suspect wro4j itself causing this file to be locked.
How do I correctly shutdown wro4j correctly?


Changed files:
wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java

diff --git a/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java b/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
index 2fa8c3979..e8ee3f09f 100644
--- a/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
+++ b/wro4j-core/src/main/java/ro/isdc/wro/util/WroUtil.java
@@ -321,6 +321,7 @@ public final class WroUtil {
     try {
       final InputStream stream = WroUtil.class.getResourceAsStream("regexp.properties");
       final Properties props = new RegexpProperties().load(stream);
+	  stream.close();
       return props.getProperty(key);
     } catch (final IOException e) {
       throw new WroRuntimeException("Could not load pattern with key: " + key + " from property file", e);