auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>boolean maybeOverrideCodeGen(Node n) { @Nullable Node parent = n.getParent(); switch (n.getToken()) { case INDEX_SIGNATURE: Node first = n.getFirstChild(); if (null != first) { add("{["); add(first); add(":"); add(first.getDeclaredTypeExpression()); add("]:"); add(n.getDeclaredTypeExpression()); add("}"); } return true; case UNDEFINED_TYPE: add("undefined"); return true; case CAST: add("("); add(n.getFirstChild()); add(" as "); add(n.getDeclaredTypeExpression()); add(")"); return true; case NAME: if (n.getParent().isParamList()) { Visibility visibility = (Visibility) n.getProp(Node.ACCESS_MODIFIER); if (visibility != null) { switch (visibility) { case PRIVATE: add("private "); break; case PROTECTED: add("protected "); break; case PUBLIC: add("public "); break; default: break; } } if (n.getBooleanProp(Node.IS_CONSTANT_NAME)) { add("readonly "); } } return false; case ANY_TYPE: String anyTypeName = externsMap.get("any"); if (anyTypeName != null) { add(anyTypeName); return true; } return false; case EXPORT: if (!n.hasOneChild()) { return false; } if (n.getFirstChild().getToken() == Token.TYPE_ALIAS) { add("export"); add(n.getFirstChild()); return true; } return false; <START> case FUNCTION_TYPE: <END> if (parent != null && parent.getToken() == Token.UNION_TYPE && parent.getFirstChild() == n) { add("("); } return false; default: return false; } }</code><technical_language>I understand code adds "(" adds ")" apart. convince produce balanced parens</technical_language>

Target:
boolean maybeOverrideCodeGen(Node n) { @Nullable Node parent = n.getParent(); switch (n.getToken()) { case INDEX_SIGNATURE: Node first = n.getFirstChild(); if (null != first) { add("{["); add(first); add(":"); add(first.getDeclaredTypeExpression()); add("]:"); add(n.getDeclaredTypeExpression()); add("}"); } return true; case UNDEFINED_TYPE: add("undefined"); return true; case CAST: add("("); add(n.getFirstChild()); add(" as "); add(n.getDeclaredTypeExpression()); add(")"); return true; case NAME: if (n.getParent().isParamList()) { Visibility visibility = (Visibility) n.getProp(Node.ACCESS_MODIFIER); if (visibility != null) { switch (visibility) { case PRIVATE: add("private "); break; case PROTECTED: add("protected "); break; case PUBLIC: add("public "); break; default: break; } } if (n.getBooleanProp(Node.IS_CONSTANT_NAME)) { add("readonly "); } } return false; case ANY_TYPE: String anyTypeName = externsMap.get("any"); if (anyTypeName != null) { add(anyTypeName); return true; } return false; case EXPORT: if (!n.hasOneChild()) { return false; } if (n.getFirstChild().getToken() == Token.TYPE_ALIAS) { add("export"); add(n.getFirstChild()); return true; } return false; case FUNCTION_TYPE: if (parent != null && parent.getToken() == Token.UNION_TYPE) { add("("); } return false; default: return false; } }
Source:
<code>public <V> V run(String callableName, Callable<V> callable) throws Exception { requireNonNull(callableName, "callableName is null"); requireNonNull(callable, "callable is null"); long startTime = System.nanoTime(); int attempt = 0; while (true) { attempt++; if (attempt > 1) { retryRunnable.ifPresent(Runnable::run); } try { return callable.call(); } catch (Exception e) { <START> suppressedExceptions.add(e); <END> e = exceptionMapper.apply(e); for (Class<? extends Exception> clazz : exceptionWhiteList) { if (clazz.isInstance(e)) { throw addSuppressedExceptions(e, suppressedExceptions); } } if (attempt >= maxAttempts || Duration.nanosSince(startTime).compareTo(maxRetryTime) >= 0) { throw addSuppressedExceptions(e, suppressedExceptions); } log.debug("Failed on executing %s with attempt %d, will retry. Exception: %s", callableName, attempt, e.getMessage()); int delayInMs = (int) Math.min(minSleepTime.toMillis() * Math.pow(scaleFactor, attempt - 1), maxSleepTime.toMillis()); int jitter = ThreadLocalRandom.current().nextInt(Math.max(1, (int) (delayInMs * 0.1))); try { TimeUnit.MILLISECONDS.sleep(delayInMs + jitter); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); throw addSuppressedExceptions(new RuntimeException(ie), suppressedExceptions); } } } }</code><technical_language>if suppressed</technical_language>

Target:
public <V> V run(String callableName, Callable<V> callable) throws Exception { requireNonNull(callableName, "callableName is null"); requireNonNull(callable, "callable is null"); List<Throwable> suppressedExceptions = new ArrayList<>(); long startTime = System.nanoTime(); int attempt = 0; while (true) { attempt++; if (attempt > 1) { retryRunnable.ifPresent(Runnable::run); } try { return callable.call(); } catch (Exception e) { e = exceptionMapper.apply(e); for (Class<? extends Exception> clazz : exceptionWhiteList) { if (clazz.isInstance(e)) { addSuppressed(e, suppressedExceptions); throw e; } } if (attempt >= maxAttempts || Duration.nanosSince(startTime).compareTo(maxRetryTime) >= 0) { addSuppressed(e, suppressedExceptions); throw e; } log.debug("Failed on executing %s with attempt %d, will retry. Exception: %s", callableName, attempt, e.getMessage()); suppressedExceptions.add(e); int delayInMs = (int) Math.min(minSleepTime.toMillis() * Math.pow(scaleFactor, attempt - 1), maxSleepTime.toMillis()); int jitter = ThreadLocalRandom.current().nextInt(Math.max(1, (int) (delayInMs * 0.1))); try { TimeUnit.MILLISECONDS.sleep(delayInMs + jitter); } catch (InterruptedException ie) { Thread.currentThread().interrupt(); Exception exception = new RuntimeException(ie); addSuppressed(new RuntimeException(ie), suppressedExceptions); throw exception; } } } }
Source:
<code><START> public CFIndex getCount() { <END> return INSTANCE.CFArrayGetCount(this); }</code><technical_language>sense return int/long here</technical_language>

Target:
public int getCount() { return INSTANCE.CFArrayGetCount(this).intValue(); }
Source:
<code>CompletableFuture<LogicalSlot> allocateLogicalSlot(ExecutionVertexID executionVertexId) { <START> Preconditions.checkArgument(executionSlotSharingGroup.getExecutionVertexIds().contains(executionVertexId)); <END> CompletableFuture<SingleLogicalSlot> logicalSlotFuture = requestedLogicalSlots.getValueByKeyA(executionVertexId); if (logicalSlotFuture != null) { LOG.debug("Request for already exists", getLogicalSlotString(executionVertexId)); } else { logicalSlotFuture = allocateNonExistentLogicalSlot(executionVertexId); } return logicalSlotFuture.thenApply(Function.identity()); }</code><technical_language>error message helpful</technical_language>

Target:
CompletableFuture<LogicalSlot> allocateLogicalSlot(ExecutionVertexID executionVertexId) { Preconditions.checkState(state == State.ALLOCATED, "SharedSlot (physical request %s) has been released", physicalSlotRequestId); Preconditions.checkArgument( executionSlotSharingGroup.getExecutionVertexIds().contains(executionVertexId), "Trying to allocate a logical slot for execution %s which is not in the ExecutionSlotSharingGroup", executionVertexId); CompletableFuture<SingleLogicalSlot> logicalSlotFuture = requestedLogicalSlots.getValueByKeyA(executionVertexId); if (logicalSlotFuture != null) { LOG.debug("Request for already exists", getLogicalSlotString(executionVertexId)); } else { logicalSlotFuture = allocateNonExistentLogicalSlot(executionVertexId); } return logicalSlotFuture.thenApply(Function.identity()); }
Source:
<code>public void updateUserFromUserDTO(UserDTO userDTO, User user) { if ( userDTO == null ) { return; } String[] settings1 = userDTOContactDataDTOSettings( userDTO ); if ( settings1 != null ) { user.setSettings( Arrays.copyOf( settings1, settings1.length ) ); } else { user.setSettings( null ); } List<String> preferences = userDTOContactDataDTOPreferences( userDTO ); if ( preferences != null ) { <START> for ( String contactDataDTOPreference : userDTOContactDataDTOPreferences( userDTO ) ) { <END> user.addPreference( contactDataDTOPreference ); } } user.setAddress( userDTOContactDataDTOAddress( userDTO ) ); String phone = userDTOContactDataDTOPhone( userDTO ); if ( phone != null ) { user.setPhone( Integer.parseInt( phone ) ); } else { user.setPhone( null ); } user.setEmail( userDTOContactDataDTOEmail( userDTO ) ); user.setName( userDTO.getName() ); }</code><technical_language>preferences instead of method call used</technical_language>

Target:
public void updateUserFromUserDTO(UserDTO userDTO, User user) { if ( userDTO == null ) { return; } String[] settings1 = userDTOContactDataDTOSettings( userDTO ); if ( settings1 != null ) { user.setSettings( Arrays.copyOf( settings1, settings1.length ) ); } else { user.setSettings( null ); } List<String> preferences = userDTOContactDataDTOPreferences( userDTO ); if ( preferences != null ) { for ( String contactDataDTOPreference : preferences ) { user.addPreference( contactDataDTOPreference ); } } user.setAddress( userDTOContactDataDTOAddress( userDTO ) ); String phone = userDTOContactDataDTOPhone( userDTO ); if ( phone != null ) { user.setPhone( Integer.parseInt( phone ) ); } else { user.setPhone( null ); } user.setEmail( userDTOContactDataDTOEmail( userDTO ) ); user.setName( userDTO.getName() ); }
Source:
<code>public void createNewMFAService() { final DefaultMultiFactorAuthenticationSupportingWebApplicationService svc = new DefaultMultiFactorAuthenticationSupportingWebApplicationService("<LINK_0>", <START> "<LINK_0>", null, null, "test_loa"); <END> assertEquals(svc.getAuthenticationMethod(), "test_loa"); final Response res = svc.getResponse("testTicketId"); assertNotNull(res); assertEquals(res.getResponseType(), Response.ResponseType.REDIRECT); assertEquals(res.getUrl(), "<LINK_0>?ticket=testTicketId"); }</code><technical_language>for clarity, test String "test_authnMethod" instead of LOA. :)</technical_language>

Target:
public void createNewMFAService() { final DefaultMultiFactorAuthenticationSupportingWebApplicationService svc = new DefaultMultiFactorAuthenticationSupportingWebApplicationService("<LINK_0>", "<LINK_0>", null, null, "test_authn_method"); assertEquals(svc.getAuthenticationMethod(), "test_authn_method"); final Response res = svc.getResponse("testTicketId"); assertNotNull(res); assertEquals(res.getResponseType(), Response.ResponseType.REDIRECT); assertEquals(res.getUrl(), "<LINK_0>?ticket=testTicketId"); }
Source:
<code>public void define(WebService.NewController controller) { WebService.NewAction action = controller.createAction(DELETE_ACTION) .setPost(true) .setDescription("Delete a Webhook.<br>" + "Requires 'Administer' permission on the specified project, or global 'Administer' permission.") .setSince("7.1") .setHandler(this); <START> action.createParam(KEY_PARAM) <END> .setRequired(true) .setMaximumLength(KEY_PARAM_MAXIMUN_LENGTH) .setDescription("The key of the webhook to be deleted") .setExampleValue(KEY_PROJECT_EXAMPLE_001); }</code><technical_language>I forgot provide feedback earlier: parameter "key" is inconsistent parameter "id" of web services api/webhooks/deliveries api/webhooks/delivery. @teryk @julienlancelot term "id" "key"</technical_language>

Target:
public void define(WebService.NewController controller) { WebService.NewAction action = controller.createAction(DELETE_ACTION) .setPost(true) .setDescription("Delete a Webhook.<br>" + "Requires 'Administer' permission on the specified project, or global 'Administer' permission.") .setSince("7.1") .setHandler(this); action.createParam(KEY_PARAM) .setRequired(true) .setMaximumLength(KEY_PARAM_MAXIMUN_LENGTH) .setDescription("The key of the webhook to be deleted,"+ "auto-generated value can be obtained through api/webhooks/create or api/webhooks/list") .setExampleValue(KEY_PROJECT_EXAMPLE_001); }
Source:
<code>public static String executePost(String targetURL, String urlParameters, String clientCredentials) throws SSOAgentException { URL url; HttpURLConnection connection = null; try { url = new URL(targetURL); connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Authorization", "Basic " + clientCredentials); connection.setRequestProperty("Content-Length", "" + Integer.toString(urlParameters.getBytes(Charset.forName("UTF-8")).length)); connection.setUseCaches(false); connection.setDoInput(true); connection.setDoOutput(true); DataOutputStream wr = new DataOutputStream( connection.getOutputStream()); wr.writeBytes(urlParameters); wr.flush(); wr.close(); InputStream is = connection.getInputStream(); BufferedReader rd = new BufferedReader(new InputStreamReader(is)); String line; StringBuilder response = new StringBuilder(); while ((line = rd.readLine()) != null) { response.append(line); response.append('\r'); } rd.close(); return response.toString(); } catch (Exception e) { if (log.isDebugEnabled()) { log.debug("Exception occurred : ", e); } <START> throw new SSOAgentException(e); <END> } finally { if (connection != null) { connection.disconnect(); } } }</code><technical_language>add some message exception</technical_language>

Target:
public static String executePost(String targetURL, String urlParameters, String clientCredentials) throws SSOAgentException { URL url; HttpURLConnection connection = null; try { url = new URL(targetURL); connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("POST"); connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); connection.setRequestProperty("Authorization", "Basic " + clientCredentials); connection.setRequestProperty("Content-Length", "" + Integer.toString(urlParameters.getBytes(Charset.forName("UTF-8")).length)); connection.setUseCaches(false); connection.setDoInput(true); connection.setDoOutput(true); DataOutputStream wr = new DataOutputStream( connection.getOutputStream()); wr.writeBytes(urlParameters); wr.flush(); wr.close(); InputStream is = connection.getInputStream(); BufferedReader rd = new BufferedReader(new InputStreamReader(is)); String line; StringBuilder response = new StringBuilder(); while ((line = rd.readLine()) != null) { response.append(line); response.append('\r'); } rd.close(); return response.toString(); } catch (Exception e) { throw new SSOAgentException("Exception while executiong post", e); } finally { if (connection != null) { connection.disconnect(); } } }
Source:
<code>public void setProjectOrDefault(IProject project) { if (project != null) { setProject(project); } else if (!projects.isEmpty()) { <START> setProject(projects.get(0)); <END> } }</code><technical_language>In page, projects sorted a comparator, projects.get(0) a randomly chosen project. problem solved in NewApplicationWizardModel.getDefaultProject() applying comparator</technical_language>

Target:
protected void setProjectOrDefault(IProject project) { if (projects == null) { return; } if (project != null && projects.contains(project)) { setProject(project); } else if (!projects.isEmpty()) { project = getDefaultProject(); setProject(project); } }
Source:
<code>private static VariableSymbol getVariableSymbol(AssignmentExpressionTree assignment) { VariableSymbol variableSymbol = null; if (assignment.variable().is(Tree.Kind.IDENTIFIER)) { Symbol reference = ((IdentifierTree) assignment.variable()).symbol(); <START> if (reference instanceof VariableSymbol) { <END> variableSymbol = (VariableSymbol) ((IdentifierTree) assignment.variable()).symbol(); } } else { MemberSelectExpressionTree mse = (MemberSelectExpressionTree) assignment.variable(); if (mse.identifier().symbol() instanceof VariableSymbol) { variableSymbol = (VariableSymbol) mse.identifier().symbol(); } } return variableSymbol; }</code><technical_language>replace "symbol instanceof VariableSymbol" "symbol.isVariableSymbol()"</technical_language>

Target:
private static VariableSymbol getVariableSymbol(AssignmentExpressionTree assignment) { VariableSymbol variableSymbol = null; if (assignment.variable().is(Tree.Kind.IDENTIFIER)) { Symbol reference = ((IdentifierTree) assignment.variable()).symbol(); if (reference.isVariableSymbol()) { variableSymbol = (VariableSymbol) reference; } } else { MemberSelectExpressionTree mse = (MemberSelectExpressionTree) assignment.variable(); if (mse.identifier().symbol().isVariableSymbol()) { variableSymbol = (VariableSymbol) mse.identifier().symbol(); } } return variableSymbol; }
Source:
<code>public static void main(String[] args) { final AtomicBoolean isRunning = new AtomicBoolean(true); Mono.delay(Duration.ofMinutes(2)).subscribe(index -> { System.out.println("2 minutes has elapsed, stopping receive loop."); isRunning.set(false); }); String connectionString = "Endpoint={fully-qualified-namespace};SharedAccessKeyName={policy-name};" + "SharedAccessKey={key}"; ServiceBusReceiverClient receiver = new ServiceBusClientBuilder() .connectionString(connectionString) .sessionReceiver() .sessionId("greetings") .queueName("<<queue-name>>") .buildClient(); while (isRunning.get()) { IterableStream<ServiceBusReceivedMessageContext> messages = receiver.receive(10, Duration.ofSeconds(30)); for (ServiceBusReceivedMessageContext context : messages) { System.out.println("Processing message from session: " + context.getSessionId()); ServiceBusReceivedMessage message = context.getMessage(); boolean isSuccessfullyProcessed = processMessage(message); if (isSuccessfullyProcessed) { <START> receiver.complete(message.getLockToken()); <END> receiver.complete(message.getLockToken(), message.getSessionId()); } else { receiver.abandon(message.getLockToken(), null, message.getSessionId()); } } } receiver.close(); }</code><technical_language>This correct? other</technical_language>

Target:
public static void main(String[] args) { final AtomicBoolean isRunning = new AtomicBoolean(true); Mono.delay(Duration.ofMinutes(2)).subscribe(index -> { System.out.println("2 minutes has elapsed, stopping receive loop."); isRunning.set(false); }); String connectionString = "Endpoint={fully-qualified-namespace};SharedAccessKeyName={policy-name};" + "SharedAccessKey={key}"; ServiceBusReceiverClient receiver = new ServiceBusClientBuilder() .connectionString(connectionString) .sessionReceiver() .sessionId("greetings") .queueName("<<queue-name>>") .buildClient(); while (isRunning.get()) { IterableStream<ServiceBusReceivedMessageContext> messages = receiver.receive(10, Duration.ofSeconds(30)); for (ServiceBusReceivedMessageContext context : messages) { System.out.println("Processing message from session: " + context.getSessionId()); ServiceBusReceivedMessage message = context.getMessage(); boolean isSuccessfullyProcessed = processMessage(message); if (isSuccessfullyProcessed) { receiver.complete(message.getLockToken(), message.getSessionId()); } else { receiver.abandon(message.getLockToken(), null, message.getSessionId()); } } } receiver.close(); }
Source:
<code>public InertialMeasurementUnitAdapter() { super(ImuType.navX); try { this.ahrs = new AHRS(Port.kMXP); } catch (Exception e){ isBroken = true; } <START> this.ahrs.zeroYaw(); <END> }</code><technical_language>want zero yaw initialization</technical_language>

Target:
public InertialMeasurementUnitAdapter() { super(ImuType.navX); try { this.ahrs = new AHRS(Port.kMXP); } catch (Exception e){ isBroken = true; } }
Source:
<code>public void testEnum() { final EnumMap<Planet, String> obj = new EnumMap<Planet, String>(Planet.class); for (Planet p : Planet.values()) { obj.put(p, p.name()); } final byte[] serialized = serialize(_kryo, ImmutableMap.copyOf(obj)); final ImmutableMap<?, ?> deserialized = deserialize(_kryo, serialized, ImmutableMap.class); <START> assertEquals(deserialized, obj); <END> }</code><technical_language>compare deserialized ImmutableMap.copyOf(obj)</technical_language>

Target:
public void testEnum() { final EnumMap<Planet, String> obj = new EnumMap<Planet, String>(Planet.class); for (Planet p : Planet.values()) { obj.put(p, p.name()); } final ImmutableMap<?, ?> immutableObj = ImmutableMap.copyOf(obj); final byte[] serialized = serialize(_kryo, immutableObj); final ImmutableMap<?, ?> deserialized = deserialize(_kryo, serialized, ImmutableMap.class); assertEquals(deserialized, immutableObj); }
Source:
<code>static void completelyRemoveUnusedUser(Path localBaseDir, String user) throws IOException { Path userFileCacheDir = getLocalUserFileCacheDir(localBaseDir, user); <START> LOG.info("completelyRemoveUnusedUser for directory {}", user, userFileCacheDir); <END> Files.deleteIfExists(getCacheDirForFiles(userFileCacheDir)); Files.deleteIfExists(getCacheDirForArchives(userFileCacheDir)); Files.deleteIfExists(userFileCacheDir); Files.deleteIfExists(getLocalUserDir(localBaseDir, user)); }</code><technical_language>This method is deleting baseDir/supervisor/usercache/user1 directory. log that. userFileCacheDir is part of it</technical_language>

Target:
static void completelyRemoveUnusedUser(Path localBaseDir, String user) throws IOException { Path localUserDir = getLocalUserDir(localBaseDir, user); LOG.info("completelyRemoveUnusedUser for directory {}", user, localUserDir); Path userFileCacheDir = getLocalUserFileCacheDir(localBaseDir, user); Files.deleteIfExists(getCacheDirForFiles(userFileCacheDir)); Files.deleteIfExists(getCacheDirForArchives(userFileCacheDir)); Files.deleteIfExists(userFileCacheDir); Files.deleteIfExists(localUserDir); }
Source:
<code>protected void compute(CoreSession session, List<String> ids, Map<String, Serializable> properties) { properties = new HashMap<>(properties); boolean disableAudit = removeBoolean(properties, PARAM_DISABLE_AUDIT); <START> VersioningOption versioingOption = removeVersioningOption(properties, PARAM_VERSIONING_OPTION); <END> for (DocumentModel doc : loadDocuments(session, ids)) { if (disableAudit) { doc.putContextData(PARAM_DISABLE_AUDIT, Boolean.TRUE); } if (versioingOption != null) { doc.putContextData(VersioningService.VERSIONING_OPTION, versioingOption); } for (Entry<String, Serializable> es : properties.entrySet()) { try { doc.setPropertyValue(es.getKey(), es.getValue()); } catch (PropertyException e) { log.warn("Cannot write property: of document: {}", es.getKey(), doc.getId(), e); } } try { session.saveDocument(doc); } catch (PropertyException e) { log.warn("Cannot save document: {}", doc.getId(), e); } } }</code><technical_language>Typo in variable name</technical_language>

Target:
protected void compute(CoreSession session, List<String> ids, Map<String, Serializable> properties) { for (DocumentModel doc : loadDocuments(session, ids)) { if (disableAudit) { doc.putContextData(PARAM_DISABLE_AUDIT, Boolean.TRUE); } if (versioningOption != null) { doc.putContextData(VersioningService.VERSIONING_OPTION, versioningOption); } for (Entry<String, Serializable> es : properties.entrySet()) { if (!PARAM_DISABLE_AUDIT.equals(es.getKey()) && !PARAM_VERSIONING_OPTION.equals(es.getKey())) { try { doc.setPropertyValue(es.getKey(), es.getValue()); } catch (PropertyException e) { log.warn("Cannot write property: of document: {}", es.getKey(), doc.getId(), e); } } } try { session.saveDocument(doc); } catch (PropertyException e) { log.warn("Cannot save document: {}", doc.getId(), e); } } }
Source:
<code>public void getMessage_should_return_message_if_address_is_null() { <START> assertEquals("[null] Test message", new ConnectionException(null, "Test message").getMessage()); <END> }</code><technical_language>remove [null] altogether in case, is message "Test message"</technical_language>

Target:
public void getMessage_should_return_message_if_address_is_null() { assertEquals(new ConnectionException(null, "Test message").getMessage(), "Test message"); }
Source:
<code>public void render(Context context, GlusterVolumeEntity volume, SafeHtmlBuilder sb) { if (volume == null) { return; } if (volume.getIsGeoRepMaster()) { <START> SafeHtml geoRepMasterHtml = <END> SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(geoRepMasterImage).getHTML()); sb.append(applicationTemplates.statusTemplate(geoRepMasterHtml, constants.geoRepMasterVolumeToolTip())); } if (volume.getIsGeoRepSlave()) { SafeHtml geoRepSlaveHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(geoRepSlaveImage).getHTML()); sb.append(applicationTemplates.statusTemplate(geoRepSlaveHtml, messages.geoRepSlaveVolumeToolTip(formatVolClusterName(volume.getGeoRepMasterVolAndClusterName())))); } }</code><technical_language>this : public void render(Context context, GlusterVolumeEntity volume, SafeHtmlBuilder sb) { // render if volume is provided: if (volume == null) { return; } ImageResource image = null; String tooltip = ""; //$NON-NLS-1$ if (volume.getIsGeoRepMaster()) { image = resources.volumeGeoRepMaster(); tooltip = constants.geoRepMasterVolumeToolTip() } if(volume.getIsGeoRepSlave()) { image = resources.volumeGeoRepSlave(); tooltip = messages.geoRepSlaveVolumeToolTip(formatVolClusterName(volume.getGeoRepMasterVolAndClusterName())) } sb.append(applicationTemplates.statusTemplate(SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(image).getHTML()), tooltip)); }</technical_language>

Target:
public void render(Context context, GlusterVolumeEntity volume, SafeHtmlBuilder sb) { if (volume == null) { return; } if (volume.getIsGeoRepMaster()) { SafeHtml geoRepMasterHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(geoRepMasterImage).getHTML()); sb.append(applicationTemplates.statusTemplate(geoRepMasterHtml, constants.geoRepMasterVolumeToolTip())); } if (volume.getIsGeoRepSlave()) { SafeHtml geoRepSlaveHtml = SafeHtmlUtils.fromTrustedString(AbstractImagePrototype.create(geoRepSlaveImage).getHTML()); String[] volClusterNames = formatVolClusterName(volume.getGeoRepMasterVolAndClusterName()); String volName = volClusterNames[0]; String clusterName = volClusterNames.length == 2 ? volClusterNames[1] : "UNKNOWN"; sb.append(applicationTemplates.statusTemplate(geoRepSlaveHtml, messages.geoRepSlaveVolumeToolTip(volName, clusterName))); } }
Source:
<code>public static CommandBase<?> CreateCommand(String className, Guid commandId) { Constructor<?> constructor = null; Boolean isAcessible = null; try { constructor = Class.forName(className).getDeclaredConstructor(Guid.class); if (!constructor.isAccessible()) { isAcessible = constructor.isAccessible(); constructor.setAccessible(true); } return (CommandBase<?>) constructor.newInstance(new Object[] { commandId }); <START> } catch (java.lang.Exception e) { <END> log.error( "CommandsFactory : Failed to get type information using " + "reflection for Class : " + className + ", Command Id:" + commandId, e); return null; } finally { if (isAcessible != null) { constructor.setAccessible(isAcessible); } } }</code><technical_language>prefix of java.lang. removed well</technical_language>

Target:
public static CommandBase<?> CreateCommand(String className, Guid commandId) { Constructor<?> constructor = null; Boolean isAcessible = null; try { constructor = Class.forName(className).getDeclaredConstructor(Guid.class); if (!constructor.isAccessible()) { isAcessible = constructor.isAccessible(); constructor.setAccessible(true); } return (CommandBase<?>) constructor.newInstance(new Object[] { commandId }); } catch (Exception e) { log.error( "CommandsFactory : Failed to get type information using " + "reflection for Class : " + className + ", Command Id:" + commandId, e); return null; } finally { if (isAcessible != null) { constructor.setAccessible(isAcessible); } } }
Source:
<code>public static <T> T getOrDefault(CompletableFuture<T> future, T defaultValue) { <START> if (future.isDone() && !future.isCompletedExceptionally()) { <END> return getWithoutException(future); } return defaultValue; }</code><technical_language>isCompletedNormally(future)? T = getWithoutException(future); return != null ? : defaultValue;</technical_language>

Target:
public static <T> T getOrDefault(CompletableFuture<T> future, T defaultValue) { T value = getWithoutException(future); return value == null ? defaultValue : value; }
Source:
<code>public void testFilterPluginNoFiltering() throws Exception { String warningId = ingestXmlFromResourceAndWait(WARNING_METACARD); String cleanId = ingestXmlFromResourceAndWait(CLEAN_METACARD); String errorId = ingestXmlFromResourceAndWait(ERROR_METACARD); Dictionary<String, Object> filterPluginProps = configureMetacardValidityFilterPlugin( Collections.singletonList("invalid-state=data-manager"), false, false, getAdminConfig()); <START> testWithRetry( <END> () -> { query(warningId, TRANSFORMER_XML, HttpStatus.SC_OK); query(cleanId, TRANSFORMER_XML, HttpStatus.SC_OK); query(errorId, TRANSFORMER_XML, HttpStatus.SC_OK); }); configureMetacardValidityFilterPlugin(filterPluginProps, getAdminConfig()); }</code><technical_language>question</technical_language>

Target:
public void testFilterPluginNoFiltering() throws Exception { String warningId = ingestXmlFromResourceAndWait(WARNING_METACARD); String cleanId = ingestXmlFromResourceAndWait(CLEAN_METACARD); String errorId = ingestXmlFromResourceAndWait(ERROR_METACARD); Dictionary<String, Object> filterPluginProps = configureMetacardValidityFilterPlugin( Collections.singletonList("invalid-state=data-manager"), false, false, getAdminConfig()); query(warningId, TRANSFORMER_XML, HttpStatus.SC_OK); query(cleanId, TRANSFORMER_XML, HttpStatus.SC_OK); query(errorId, TRANSFORMER_XML, HttpStatus.SC_OK); configureMetacardValidityFilterPlugin(filterPluginProps, getAdminConfig()); }
Source:
<code>public ScriptResult executeForkEnvironmentScript(TaskContext context,PrintStream outputSink, PrintStream errorSink) throws Exception { ForkEnvironment forkEnvironment = context.getInitializer().getForkEnvironment(); Map<String, Serializable> variables = taskContextVariableExtractor.extractTaskVariables(context); Map<String, String> thirdPartyCredentials = forkedTaskVariablesManager.extractThirdPartyCredentials(context); ScriptResult scriptResult; ScriptHandler scriptHandler = ScriptLoader.createLocalHandler(); Script<?> script = forkEnvironment.getEnvScript(); forkedTaskVariablesManager .addBindingsToScriptHandler(scriptHandler, context, variables, thirdPartyCredentials); forkedTaskVariablesManager.replaceScriptParameters(script, thirdPartyCredentials, variables, errorSink); scriptResult = scriptHandler.handle(script, outputSink, errorSink); if (scriptResult.errorOccured()) { <START> throw new Exception("Failed to execute fork environment script", <END> scriptResult.getException()); } return scriptResult; }</code><technical_language>![MINOR](<LINK_1> Define throw a dedicated exception instead of a generic one. [![rule](<LINK_2>](<LINK_0></technical_language>

Target:
public ScriptResult executeForkEnvironmentScript(TaskContext context, PrintStream outputSink, PrintStream errorSink) throws Exception { Map<String, Serializable> variables = taskContextVariableExtractor.extractTaskVariables(context); Map<String, String> thirdPartyCredentials = forkedTaskVariablesManager.extractThirdPartyCredentials( context); ScriptHandler scriptHandler = ScriptLoader.createLocalHandler(); Script<?> script = context.getInitializer().getForkEnvironment().getEnvScript(); forkedTaskVariablesManager .addBindingsToScriptHandler(scriptHandler, context, variables, thirdPartyCredentials); forkedTaskVariablesManager.replaceScriptParameters(script, thirdPartyCredentials, variables, errorSink); ScriptResult scriptResult = scriptHandler.handle(script, outputSink, errorSink); if (scriptResult.errorOccured()) { throw new Exception("Failed to execute fork environment script", scriptResult.getException()); } return scriptResult; }
Source:
<code>private void handleCommandStepAndEntities() { if (getCommandStep() != null) { Step taskStep = executionHandler.addTaskStep(getExecutionContext(), getCommandStep(), <START> null, getCommandStepSubjectEntities()); <END> if (taskStep != null) { getExecutionContext().setStep(taskStep); persistCommandIfNeeded(); } } }</code><technical_language>please break a new line</technical_language>

Target:
private void handleCommandStepAndEntities() { if (getCommandStep() != null) { Step taskStep = executionHandler.addTaskStep(getExecutionContext(), getCommandStep(), null, getCommandStepSubjectEntities()); if (taskStep != null) { if (updatingStepProgress()) { stepDao.updateStepProgress(taskStep.getId(), 0); } getExecutionContext().setStep(taskStep); persistCommandIfNeeded(); } } }
Source:
<code>public final Completable flatMapCompletable(final Func1<? super T, ? extends Completable> func) { <START> return Completable.create(new CompletableFlatMapSingleToCompletable(this, func)); <END> }</code><technical_language>forgot commit class itself. Plus, new CompletableFlatMapSingleToCompletable<T>(this, func) is a generic class</technical_language>

Target:
public final Completable flatMapCompletable(final Func1<? super T, ? extends Completable> func) { return Completable.create(new CompletableFlatMapSingleToCompletable<T>(this, func)); }
Source:
<code>public Txn txn(final Task task) { <START> return null; <END> }</code><technical_language>here. do null, a bad practice</technical_language>

Target:
public Txn txn(final Task task) { throw new UnsupportedOperationException(); }
Source:
<code>public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_menu, menu); mOptionsMenu = menu; <START> MenuItem menuItem = mOptionsMenu.findItem(R.id.action_switch_view); <END> changeGridIcon(); return true; }</code><technical_language>Variable used; please, remove this line</technical_language>

Target:
public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_menu, menu); return true; }
Source:
<code>protected boolean doSelect(Viewer viewer, Object parent, Object element) { if (element instanceof PackageFragmentRootContainer) { if (isApplicable() && viewer instanceof StructuredViewer) { PackageFragmentRootContainer rootContainer = (PackageFragmentRootContainer) element; <START> if (rootContainer.getChildren().length > 0) { return hasFilteredChildren((StructuredViewer) viewer, rootContainer); } return false; <END> } } return true; }</code><technical_language>convert conditional expression (? :)</technical_language>

Target:
protected boolean doSelect(Viewer viewer, Object parent, Object element) { if (element instanceof PackageFragmentRootContainer) { if (isApplicable() && viewer instanceof StructuredViewer) { PackageFragmentRootContainer rootContainer= (PackageFragmentRootContainer) element; return rootContainer.getChildren().length > 0 ? hasFilteredChildren((StructuredViewer) viewer, rootContainer) : false; } } return true; }
Source:
<code>public void copy_shouldCopyAllTestOrderFields() throws Exception { <START> OrderTest.assertThatAllFieldsAreCopied(new TestOrder(), null, "orderGroup", "sortWeight"); <END> }</code><technical_language>need undo this</technical_language>

Target:
public void copy_shouldCopyAllTestOrderFields() throws Exception { OrderTest.assertThatAllFieldsAreCopied(new TestOrder(), null); }
Source:
<code>private static File getConfigDropinsDir() { File configDropins = null; if (configDirectory != null && configDirectory.exists()) { configDropins = new File(configDirectory, "configDropins"); } <START> <END> if (configDropins == null || !configDropins.exists()) { configDropins = new File(getServerXML().getParent(), "configDropins"); } return configDropins; }</code><technical_language>If rely target for server.xml, I able rely target for configDropins directory well. I switch target, need if</technical_language>

Target:
private static File getConfigDropinsDir() { File configDropins = null; if (configDropins == null || !configDropins.exists()) { configDropins = new File(getServerXML().getParent(), "configDropins"); } return configDropins; }
Source:
<code>private static String getGrobidCRFEngineName(final String modelName) { String defaultEngineName = GrobidProperties.getGrobidCRFEngine().name(); if ( GrobidProperties.getGrobidCRFEngine() == GrobidCRFEngine.DELFT && ( <START> modelName.equals("fulltext") <END> || modelName.equals("segmentation") ) ) { defaultEngineName = GrobidCRFEngine.WAPITI.name(); } return getPropertyValue( GrobidPropertyKeys.PROP_GROBID_CRF_ENGINE + "." + modelName, defaultEngineName ); }</code><technical_language>I remove of constants</technical_language>

Target:
private static String getGrobidCRFEngineName(final String modelName) { String defaultEngineName = GrobidProperties.getGrobidCRFEngine().name(); return getPropertyValue( GrobidPropertyKeys.PROP_GROBID_CRF_ENGINE + "." + getModelPropertySuffix(modelName), defaultEngineName ); }
Source:
<code>public ProductDTO addBatchContent( @PathParam("owner_key") String ownerKey, @PathParam("product_id") String productId, @ApiParam(name = "contentMap", required = true) Map<String, Boolean> contentMap) { Owner owner = this.getOwnerByKey(ownerKey); Product product = this.fetchProduct(owner, productId); Collection<ProductContent> productContent = new LinkedList<>(); if (product.isLocked()) { throw new ForbiddenException(i18n.tr("product \"{0}\" is locked", product.getId())); } ProductDTO pdto = this.translator.translate(product, ProductDTO.class); <START> <END> boolean changed = false; for (Entry<String, Boolean> entry : contentMap.entrySet()) { Content content = this.fetchContent(owner, entry.getKey()); boolean enabled = entry.getValue() != null ? entry.getValue() : ProductContent.DEFAULT_ENABLED_STATE; ContentDTO cdto = this.translator.translate(content, ContentDTO.class); changed |= pdto.addContent(cdto, enabled); } if (changed) { product = this.productManager.updateProduct(pdto, owner, true); } return this.translator.translate(product, ProductDTO.class); }</code><technical_language>a concerned removing locks here. Admittedly, resource lock product is a bit of a hack anyway, done improve this; scenario update requests for product time worries me. Feels end a typical race condition succeed update is clobbered</technical_language>

Target:
public ProductDTO addBatchContent( @PathParam("owner_key") String ownerKey, @PathParam("product_id") String productId, @ApiParam(name = "contentMap", required = true) Map<String, Boolean> contentMap) { Owner owner = this.getOwnerByKey(ownerKey); OwnerProduct ownerProduct = ownerProductCurator.getOwnerProductByProductId(owner, productId); ownerProductCurator.lock(ownerProduct); ownerProductCurator.refresh(ownerProduct); Product product = ownerProduct.getProduct(); Collection<ProductContent> productContent = new LinkedList<>(); if (product.isLocked()) { throw new ForbiddenException(i18n.tr("product \"{0}\" is locked", product.getId())); } ProductDTO pdto = this.translator.translate(product, ProductDTO.class); boolean changed = false; for (Entry<String, Boolean> entry : contentMap.entrySet()) { Content content = this.fetchContent(owner, entry.getKey()); boolean enabled = entry.getValue() != null ? entry.getValue() : ProductContent.DEFAULT_ENABLED_STATE; ContentDTO cdto = this.translator.translate(content, ContentDTO.class); changed |= pdto.addContent(cdto, enabled); } if (changed) { product = this.productManager.updateProduct(pdto, owner, true); } return this.translator.translate(product, ProductDTO.class); }
Source:
<code>public synchronized void skipNextPacket() throws IOException, BadPcapFileException { if (getFileChannel().size() - getFileChannel().position() == 0) { return; } if (getFileChannel().size() - getFileChannel().position() < PcapFileValues.PACKET_HEADER_SIZE) { throw new BadPcapFileException("A pcap header is invalid."); } ByteBuffer pcapPacketHeader = ByteBuffer.allocate(PcapFileValues.PACKET_HEADER_SIZE); pcapPacketHeader.clear(); <START> <END> getFileChannel().read(pcapPacketHeader); pcapPacketHeader.flip(); pcapPacketHeader.position(PcapFileValues.INCLUDED_LENGTH_POSITION); long includedPacketLength = ConversionHelper.unsignedIntToLong(pcapPacketHeader.getInt()); if (getFileChannel().size() - getFileChannel().position() < includedPacketLength) { throw new BadPcapFileException("A packet header is invalid."); } getFileChannel().position(getFileChannel().position() + includedPacketLength); fFileIndex.put(++fCurrentRank, getFileChannel().position()); }</code><technical_language>missing byte order: pcapPacketHeader.order(fByteOrder);</technical_language>

Target:
public synchronized void skipNextPacket() throws IOException, BadPcapFileException { if (getFileChannel().size() - getFileChannel().position() == 0) { return; } if (getFileChannel().size() - getFileChannel().position() < PcapFileValues.PACKET_HEADER_SIZE) { throw new BadPcapFileException("A pcap header is invalid."); } ByteBuffer pcapPacketHeader = ByteBuffer.allocate(PcapFileValues.PACKET_HEADER_SIZE); pcapPacketHeader.clear(); getFileChannel().read(pcapPacketHeader); pcapPacketHeader.flip(); pcapPacketHeader.position(PcapFileValues.INCLUDED_LENGTH_POSITION); long includedPacketLength = ConversionHelper.unsignedIntToLong(pcapPacketHeader.getInt()); if (getFileChannel().size() - getFileChannel().position() < includedPacketLength) { throw new BadPcapFileException("A packet header is invalid."); } getFileChannel().position(getFileChannel().position() + includedPacketLength); TreeMap<Long, Long> fFileIndex = super.getFileIndex(); fFileIndex.put(++fCurrentRank, getFileChannel().position()); }
Source:
<code>public void onCreateProject(FolderEntry baseFolder, Map<String, AttributeValue> attributes, Map<String, String> options) throws ForbiddenException, ConflictException, ServerException { InputStream packageJson = null; InputStream personJson = null; <START> try { <END> FolderEntry myJsonFiles = baseFolder.createFolder("myJsonFiles"); packageJson = getClass().getClassLoader().getResourceAsStream("files/default_package"); personJson = getClass().getClassLoader().getResourceAsStream("files/default_person"); baseFolder.createFile(FILE_NAME, packageJson); myJsonFiles.createFile("person.json", personJson); } finally { Closeables.closeQuietly(packageJson); Closeables.closeQuietly(personJson); } }</code><technical_language>try resources here</technical_language>

Target:
public void onCreateProject(FolderEntry baseFolder, Map<String, AttributeValue> attributes, Map<String, String> options) throws ForbiddenException, ConflictException, ServerException { try (InputStream packageJson = getClass().getClassLoader().getResourceAsStream("files/default_package"); InputStream personJson = getClass().getClassLoader().getResourceAsStream("files/default_person")) { FolderEntry myJsonFiles = baseFolder.createFolder("myJsonFiles"); baseFolder.createFile(FILE_NAME, packageJson); myJsonFiles.createFile("person.json", personJson); } catch (IOException ioEx) { throw new ServerException(ioEx.getLocalizedMessage(), ioEx); } }
Source:
<code>public static boolean isUserExist(String username) throws APIManagementException { if (username == null) { <START> throw new APIManagementException("Attempt to execute privileged operation as" + " the anonymous user"); <END> } String tenantDomain = MultitenantUtils.getTenantDomain(username); String tenantAwareUserName = MultitenantUtils.getTenantAwareUsername(username); try { int tenantId = ServiceReferenceHolder.getInstance().getRealmService().getTenantManager().getTenantId(tenantDomain); UserStoreManager manager = ServiceReferenceHolder.getInstance().getRealmService().getTenantUserRealm(tenantId) .getUserStoreManager(); return manager.isExistingUser(tenantAwareUserName); } catch (UserStoreException e) { throw new APIManagementException("UserStoreException while trying the user existence " + username, e); } }</code><technical_language>remove +</technical_language>

Target:
public static boolean isUserExist(String username) throws APIManagementException { if (username == null) { throw new APIManagementException("Attempt to execute privileged operation as the anonymous user"); } String tenantDomain = MultitenantUtils.getTenantDomain(username); String tenantAwareUserName = MultitenantUtils.getTenantAwareUsername(username); try { int tenantId = ServiceReferenceHolder.getInstance().getRealmService().getTenantManager().getTenantId(tenantDomain); UserStoreManager manager = ServiceReferenceHolder.getInstance().getRealmService().getTenantUserRealm(tenantId) .getUserStoreManager(); return manager.isExistingUser(tenantAwareUserName); } catch (UserStoreException e) { throw new APIManagementException("UserStoreException while trying the user existence " + username, e); } }
Source:
<code>public void pass_headers_Test() throws Exception { respondWith(JSON_USERS); Map header = new HashMap(); <START> String key = "X-Domain-Id"; <END> String value = "default"; header.put(key, value); KeystoneToken token = new KeystoneToken(); token.setEndpoint(authURL("/v3")); OSClient.OSClientV3 osClient = OSFactory.clientFromToken(token).headers(header); osClient.identity().users().list(); RecordedRequest request = server.takeRequest(); assertEquals(request.getHeader(key), value); }</code><technical_language>key example is "X-Project-Domain-Id"</technical_language>

Target:
public void pass_headers_Test() throws Exception { respondWith(JSON_USERS); OSClient.OSClientV3 osClient = OSFactory.builderV3() .endpoint(authURL("/v3")) .scopeToDomain(Identifier.byId(DOMAIN_ID)) .authenticate(); osClient.identity().users().list(); RecordedRequest request = server.takeRequest(); assertEquals(request.getHeader(ClientConstants.HEADER_X_DOMAIN_ID), DOMAIN_ID); }
Source:
<code>private long insertDocumentHistoryToNewTree(SQLDatabase db, DocumentRevision newRevision, List<String> revisions, Long docNumericID) throws AttachmentException, DocumentNotFoundException, DatastoreException { Preconditions.checkArgument(checkCurrentRevisionIsInRevisionHistory(newRevision, revisions), "Current revision must exist in revision history."); long previousLeafSeq = getSequenceInQueue(db, newRevision.getId(), null); logger.finer("Inserting a brand new tree for an existing document."); long parentSequence = 0L; for(int i = 0 ; i < revisions.size() - 1 ; i ++) { parentSequence = insertStubRevision(db,docNumericID, revisions.get(i), parentSequence); } String newLeafRev = newRevision.getRevision(); InsertRevisionCallable callable = new InsertRevisionCallable(); callable.docNumericId = docNumericID; callable.revId = newLeafRev; callable.parentSequence = parentSequence; callable.deleted = newRevision.isDeleted(); callable.current = false; callable.data = newRevision.asBytes(); callable.available = !newRevision.isDeleted(); long newLeafSeq = callable.call(db); <START> pickWinnerOfConflicts(db, docNumericID, newRevision.getId()); <END> return newLeafSeq; }</code><technical_language>Do need previousLeafSeq variable? <LINK_0></technical_language>

Target:
private long insertDocumentHistoryToNewTree(SQLDatabase db, DocumentRevision newRevision, List<String> revisions, Long docNumericID) throws AttachmentException, DocumentNotFoundException, DatastoreException { Preconditions.checkArgument(checkCurrentRevisionIsInRevisionHistory(newRevision, revisions), "Current revision must exist in revision history."); logger.finer("Inserting a brand new tree for an existing document."); long parentSequence = 0L; for(int i = 0 ; i < revisions.size() - 1 ; i ++) { parentSequence = insertStubRevision(db,docNumericID, revisions.get(i), parentSequence); } String newLeafRev = newRevision.getRevision(); InsertRevisionCallable callable = new InsertRevisionCallable(); callable.docNumericId = docNumericID; callable.revId = newLeafRev; callable.parentSequence = parentSequence; callable.deleted = newRevision.isDeleted(); callable.current = false; callable.data = newRevision.asBytes(); callable.available = !newRevision.isDeleted(); long newLeafSeq = callable.call(db); pickWinnerOfConflicts(db, docNumericID); return newLeafSeq; }
Source:
<code>public Map<String, Object> getResponseHeaders() { if (!responseMetadata.has(RESPONSE_HEADERS_KEY)) { return Collections.emptyMap(); } JSONObject headers = responseMetadata.getJSONObject(RESPONSE_HEADERS_KEY); Map<String, Object> ret = new HashMap<>(); <START> headers.keySet().forEach(s -> ret.put(s, headers.get(s))); <END> return ret; }</code><technical_language>I say: Map<String, Object> ret = headers.toMap();</technical_language>

Target:
public Map<String, Object> getResponseHeaders() { return responseMetadata.has(RESPONSE_HEADERS_KEY) ? responseMetadata.getJSONObject(RESPONSE_HEADERS_KEY).toMap() : Collections.emptyMap(); }
Source:
<code>public TestFixedHistogramJacknifeStateStrategy() { <START> super(new StrategyCreator()); <END> }</code><technical_language>remove StrategyCreator class a lambda: super(size -> new FixedHistogramJacknifeStateStrategy(size, MIN, MAX));</technical_language>

Target:
public TestFixedHistogramJacknifeStateStrategy() { super(size -> new FixedHistogramJacknifeStateStrategy(size, AbstractTestStateStrategy.MIN, AbstractTestStateStrategy.MAX)); }