auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>protected byte[] getFile(String dateDir, String attemptDir, String fileName) throws StorageFileNotFoundException { Path path = getPrefixDir(dateDir, attemptDir).resolve(fileName); try (InputStream in = Files.newInputStream(path)) { if (path.toString().endsWith(LogFiles.LOG_PLAIN_TEXT_FILE_SUFFIX)) { <START> ByteArrayOutputStream byteOutput = new ByteArrayOutputStream(); <END> GZIPOutputStream gzipOutput = new GZIPOutputStream(byteOutput); byte[] buffer = new byte[1024]; while (true) { int len = in.read(buffer); if (len < 0) { break; } gzipOutput.write(buffer, 0, len); } byteOutput.close(); gzipOutput.close(); return byteOutput.toByteArray(); } else { return ByteStreams.toByteArray(in); } } catch (FileNotFoundException ex) { throw new StorageFileNotFoundException(ex); } catch (IOException ex) { throw Throwables.propagate(ex); } }</code><technical_language>codes written simpler this. try (ByteArrayOutputStream byteOutput = new ByteArrayOutputStream(); GZIPOutputStream gzipOutput = new GZIPOutputStream(byteOutput)) { ByteStreams.copy(in, gzipOutput); return byteOutput.toByteArray(); }</technical_language>

Target:
protected byte[] getFile(String dateDir, String attemptDir, String fileName) throws StorageFileNotFoundException { Path path = getPrefixDir(dateDir, attemptDir).resolve(fileName); try (InputStream in = Files.newInputStream(path)) { if (path.toString().endsWith(LogFiles.LOG_PLAIN_TEXT_FILE_SUFFIX)) { try (ByteArrayOutputStream byteOutput = new ByteArrayOutputStream(); GZIPOutputStream gzipOutput = new GZIPOutputStream(byteOutput)) { ByteStreams.copy(in, gzipOutput); gzipOutput.finish(); return byteOutput.toByteArray(); } } else { return ByteStreams.toByteArray(in); } } catch (FileNotFoundException ex) { throw new StorageFileNotFoundException(ex); } catch (IOException ex) { throw Throwables.propagate(ex); } }
Source:
<code>public void generatedCgoPackage() throws IOException { ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "cgo", tmp); <START> workspace.setUp(); <END> ProcessResult result = workspace.runBuckCommand("run", " result.assertSuccess(); }</code><technical_language>please add: GoAssumptions.assumeGoVersionAtLeast("1.10.0");</technical_language>

Target:
public void generatedCgoPackage() throws IOException { GoAssumptions.assumeGoVersionAtLeast("1.10.0"); ProjectWorkspace workspace = TestDataHelper.createProjectWorkspaceForScenario(this, "cgo", tmp); workspace.setUp(); ProcessResult result = workspace.runBuckCommand("run", " result.assertSuccess(); }
Source:
<code>public synchronized <I> boolean hasStringiferFor(Class<I> valueClass) { <START> final boolean contains = entries.containsKey(valueClass) && (entries.get(valueClass) != null); <END> return contains; }</code><technical_language>Codecov reports branch out of is covered tests</technical_language>

Target:
public synchronized <I> boolean hasStringiferFor(Class<I> valueClass) { final boolean contains = entries.containsKey(valueClass); return contains; }
Source:
<code>public Object execute(ExecutionEvent event) throws ExecutionException { IStructuredSelection selection = (IStructuredSelection) HandlerUtil .getCurrentSelection(event); final Repository repository = SelectionUtils.getRepository(selection); final GitFlowRepository gfRepo = new GitFlowRepository(repository); InputDialog inputDialog = new InputDialog( HandlerUtil.getActiveShell(event), UIText.FeatureStartHandler_provideFeatureName, UIText.FeatureStartHandler_pleaseProvideANameForTheNewFeature, "", new FeatureNameValidator(gfRepo)); if (inputDialog.open() != Window.OK) { return null; } final String featureName = inputDialog.getValue(); <START> Job job = new Job(UIText.FeatureStartHandler_startingNewFeature) { <END> @Override protected IStatus run(IProgressMonitor monitor) { try { new FeatureStartOperation(gfRepo, featureName) .execute(monitor); } catch (CoreException e) { return error(e.getMessage(), e); } return Status.OK_STATUS; } }; job.setUser(true); job.schedule(); return null; }</code><technical_language>if this touches workspace files lock repository level WorkspaceJob</technical_language>

Target:
public Object execute(ExecutionEvent event) throws ExecutionException { IStructuredSelection selection = (IStructuredSelection) HandlerUtil .getCurrentSelection(event); final Repository repository = SelectionUtils.getRepository(selection); final GitFlowRepository gfRepo = new GitFlowRepository(repository); InputDialog inputDialog = new InputDialog( HandlerUtil.getActiveShell(event), UIText.FeatureStartHandler_provideFeatureName, UIText.FeatureStartHandler_pleaseProvideANameForTheNewFeature, "", new FeatureNameValidator(gfRepo)); if (inputDialog.open() != Window.OK) { return null; } final String featureName = inputDialog.getValue(); WorkspaceJob job = new WorkspaceJob(UIText.FeatureStartHandler_startingNewFeature) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) { try { new FeatureStartOperation(gfRepo, featureName) .execute(monitor); } catch (CoreException e) { return error(e.getMessage(), e); } return Status.OK_STATUS; } }; job.setUser(true); job.schedule(); return null; }
Source:
<code>public static OrderStatus adaptOrderStatus(GDAXOrder order) { if(order.getStatus().equals("pending")) { return OrderStatus.PENDING_NEW; } if(order.getStatus().equals("done") || order.getStatus().equals("settled")) { if(order.getDoneReason().equals("filled")) return OrderStatus.FILLED; <START> return null; END> } if(order.getFilledSize().compareTo(BigDecimal.ZERO) == 0) return OrderStatus.NEW; if(order.getFilledSize().compareTo(BigDecimal.ZERO) > 0 && order.getSize().compareTo(order.getFilledSize()) < 0) return OrderStatus.PARTIALLY_FILLED; return null; }</code><technical_language>UNKNOWN status similar</technical_language>

Target:
public static OrderStatus adaptOrderStatus(GDAXOrder order) { if(order.getStatus().equals("pending")) { return OrderStatus.PENDING_NEW; } if(order.getStatus().equals("done") || order.getStatus().equals("settled")) { if(order.getDoneReason().equals("filled")) { return OrderStatus.FILLED; } return OrderStatus.UNKNOWN; } if(order.getFilledSize().signum() == 0) return OrderStatus.NEW; if(order.getFilledSize().compareTo(BigDecimal.ZERO) > 0 && order.getSize().compareTo(order.getFilledSize()) < 0) return OrderStatus.PARTIALLY_FILLED; return OrderStatus.UNKNOWN; }
Source:
<code>private void populateCPUList(List<ServerCpu> cpus, boolean canChangeArchitecture) { getArchitecture().getSelectedItemChangedEvent().removeListener(this); ServerCpu oldSelectedCpu = getCPU().getSelectedItem(); ArchitectureType oldSelectedArch = getArchitecture().getSelectedItem(); getCPU().setItems(cpus); initSupportedArchitectures(); try { getCPU().setSelectedItem(oldSelectedCpu != null ? Linq.firstOrNull(cpus, new Linq.ServerCpuPredicate(oldSelectedCpu.getCpuName())) : null); } catch <START> (Exception e) <END> { logger.log(Level.WARNING, "Failed setting the ServerCpu. Exception message: " + e.getMessage()); } if (getCPU().getSelectedItem() == null || !isCPUinitialized) { initCPU(); } if (getIsEdit()) { if (!canChangeArchitecture) { getArchitecture().setItems(new ArrayList<>(Collections.singletonList(getEntity().getArchitecture()))); } if (oldSelectedArch != null) { getArchitecture().setSelectedItem(oldSelectedArch); } else { if (getEntity() != null) { getArchitecture().setSelectedItem(getEntity().getArchitecture()); } else { getArchitecture().setSelectedItem(ArchitectureType.undefined); } } } else { getArchitecture().setSelectedItem(ArchitectureType.undefined); } initCpuArchTypeFiltering(); }</code><technical_language>is specific exception want handle here</technical_language>

Target:
private void populateCPUList(List<ServerCpu> cpus, boolean canChangeArchitecture) { getArchitecture().getSelectedItemChangedEvent().removeListener(this); ServerCpu oldSelectedCpu = getCPU().getSelectedItem(); ArchitectureType oldSelectedArch = getArchitecture().getSelectedItem(); getCPU().setItems(cpus); initSupportedArchitectures(); try { getCPU().setSelectedItem(oldSelectedCpu != null ? Linq.firstOrNull(cpus, new Linq.ServerCpuPredicate(oldSelectedCpu.getCpuName())) : null); } catch (JavaScriptException e) { logger.log(Level.WARNING, "Failed setting the ServerCpu. Exception message: " + e.getMessage()); } if (getCPU().getSelectedItem() == null || !isCPUinitialized) { initCPU(); } if (getIsEdit()) { if (!canChangeArchitecture) { getArchitecture().setItems(new ArrayList<>(Collections.singletonList(getEntity().getArchitecture()))); } if (oldSelectedArch != null) { getArchitecture().setSelectedItem(oldSelectedArch); } else { if (getEntity() != null) { getArchitecture().setSelectedItem(getEntity().getArchitecture()); } else { getArchitecture().setSelectedItem(ArchitectureType.undefined); } } } else { getArchitecture().setSelectedItem(ArchitectureType.undefined); } initCpuArchTypeFiltering(); }
Source:
<code>private static CEditor getCEditor(IEditorPart editorPart) { if (editorPart instanceof CEditor) { return (CEditor) editorPart; } <START> else { <END> return null; } }</code><technical_language>Redundant "else"</technical_language>

Target:
private static CEditor getCEditor(IEditorPart editorPart) { if (editorPart instanceof CEditor) { return (CEditor) editorPart; } return null; }
Source:
<code>protected void executeVdsBrokerCommand() { result = getBroker().sysprep( getParameters().getJobId().toString(), getParameters().getVolumes().stream().map(volume -> { Map<String, <START> Object> volumeAddress <END> = new HashMap<>(); volumeAddress.put("sd_id", volume.getStorageDomainId().toString()); volumeAddress.put("img_id", volume.getImageId().toString()); volumeAddress.put("vol_id", volume.getVolumeId().toString()); return volumeAddress; }).collect(Collectors.toList())); proceedProxyReturnValue(); }</code><technical_language>object if call toString IDs</technical_language>

Target:
protected void executeVdsBrokerCommand() { result = getBroker().sysprep( getParameters().getJobId().toString(), getParameters().getVolumes().stream().map(volume -> { Map<String, String> volumeAddress = new HashMap<>(); volumeAddress.put("sd_id", volume.getStorageDomainId().toString()); volumeAddress.put("img_id", volume.getImageId().toString()); volumeAddress.put("vol_id", volume.getVolumeId().toString()); return volumeAddress; }).collect(Collectors.toList())); proceedProxyReturnValue(); }
Source:
<code>public void enqueue(List<WriteInfo> writes) { sweepableCellsWriter.enqueue(writes); <START> sweepableTimestampsWriter.enqueue(writes); <END> }</code><technical_language>if write sweepable cells fail write sweepable timestamps (e.g. cassandra down)</technical_language>

Target:
public void enqueue(List<WriteInfo> writes) { sweepableTimestampsWriter.enqueue(writes); sweepableCellsWriter.enqueue(writes); }
Source:
<code>public void initialize(ResourceManager rm) { URL lcPath = IOUtilities.loadFromClasspath( TemporalChunkerAnnotator.class, rm.getString(TemporalChunkerConfigurator.MODEL_PATH) ); URL lexPath = IOUtilities.loadFromClasspath( TemporalChunkerAnnotator.class, rm.getString(TemporalChunkerConfigurator.MODEL_LEX_PATH) ); tagger = new Chunker( <START> "/Users/zhilifeng/Desktop/DanRothResearch/illinois-cogcomp-nlp/temporal-normalizer/src/" + <END> "main/java/edu/illinois/cs/cogcomp/temporal/normalizer/main/" + "prev_TB_full_1label_corr_bestit/prev_TB_full_1label_corr_bestit.lc", "/Users/zhilifeng/Desktop/DanRothResearch/illinois-cogcomp-nlp/temporal-normalizer/src/" + "main/java/edu/illinois/cs/cogcomp/temporal/normalizer/main/" + "prev_TB_full_1label_corr_bestit/prev_TB_full_1label_corr_bestit.lex" ); this.useHeidelTime = rm.getString(TemporalChunkerConfigurator.USE_HEIDELTIME) != "False"; this.dct = new Date(); if (this.useHeidelTime) { this.heidelTime = new HeidelTimeStandalone( Language.ENGLISH, DocumentType.valueOf(rm.getString(TemporalChunkerConfigurator.DOCUMENT_TYPE)), OutputType.valueOf(rm.getString(TemporalChunkerConfigurator.OUTPUT_TYPE)), rm.getString(TemporalChunkerConfigurator.HEIDELTIME_CONFIG), POSTagger.valueOf(rm.getString(TemporalChunkerConfigurator.POSTAGGER_TYPE)), true ); } else { timexNormalizer = new TimexNormalizer(); timexNormalizer.setTime(this.dct); } this.timex = new ArrayList<>(); this.factory = DocumentBuilderFactory.newInstance(); try { this.builder = this.factory.newDocumentBuilder(); } catch (Exception e) { e.printStackTrace(); } }</code><technical_language>This is portable. need create models deploy a jar, refer jar paths here</technical_language>

Target:
public void initialize(ResourceManager rm) { URL lcPath = IOUtilities.loadFromClasspath( TemporalChunkerAnnotator.class, rm.getString(TemporalChunkerConfigurator.MODEL_PATH) ); URL lexPath = IOUtilities.loadFromClasspath( TemporalChunkerAnnotator.class, rm.getString(TemporalChunkerConfigurator.MODEL_LEX_PATH) ); tagger = new Chunker( rm.getString(TemporalChunkerConfigurator.MODEL_PATH), rm.getString(TemporalChunkerConfigurator.MODEL_LEX_PATH)); tagger.readModel(lcPath); tagger.readLexicon(lexPath); this.useHeidelTime = rm.getString(TemporalChunkerConfigurator.USE_HEIDELTIME) != "False"; this.dct = new Date(); if (this.useHeidelTime) { this.heidelTime = new HeidelTimeStandalone( Language.ENGLISH, DocumentType.valueOf(rm.getString(TemporalChunkerConfigurator.DOCUMENT_TYPE)), OutputType.valueOf(rm.getString(TemporalChunkerConfigurator.OUTPUT_TYPE)), rm.getString(TemporalChunkerConfigurator.HEIDELTIME_CONFIG), POSTagger.valueOf(rm.getString(TemporalChunkerConfigurator.POSTAGGER_TYPE)), true ); } else { timexNormalizer = new TimexNormalizer(); timexNormalizer.setTime(this.dct); } this.timex = new ArrayList<>(); this.factory = DocumentBuilderFactory.newInstance(); try { this.builder = this.factory.newDocumentBuilder(); } catch (Exception e) { e.printStackTrace(); } }
Source:
<code>public void run() { try { boolean isMaxAliveReached; do { BinRpcMessage message = new BinRpcMessage(socket.getInputStream(), true, config.getEncoding()); logger.trace("Event BinRpcMessage: {}", message); byte[] returnValue = rpcResponseHandler.handleMethodCall(message.getMethodName(), message.getResponseData()); if (returnValue != null) { socket.getOutputStream().write(returnValue); } isMaxAliveReached = System.currentTimeMillis() - created > (config.getSocketMaxAlive() * 1000); } while (!isMaxAliveReached); } catch (EOFException eof) { <START> closeSocket(); <END> } catch (Exception e) { logger.error("{}", e.getMessage(), e); closeSocket(); } finally { closeSocket(); } }</code><technical_language>long closeSocket() is called finally block, is required call catch block. is implemented here, called in case of (EOF)Exception</technical_language>

Target:
public void run() { try { boolean isMaxAliveReached; do { BinRpcMessage message = new BinRpcMessage(socket.getInputStream(), true, config.getEncoding()); logger.trace("Event BinRpcMessage: {}", message); byte[] returnValue = rpcResponseHandler.handleMethodCall(message.getMethodName(), message.getResponseData()); if (returnValue != null) { socket.getOutputStream().write(returnValue); } isMaxAliveReached = System.currentTimeMillis() - created > (config.getSocketMaxAlive() * 1000); } while (!isMaxAliveReached); } catch (EOFException eof) { } catch (Exception e) { logger.warn("{}", e.getMessage(), e); } finally { try { socket.close(); } catch (IOException ioe) { } } }
Source:
<code>public FindAllDeviceModelsResponse findAllDeviceModels( @OrganisationIdentification final String organisationIdentification, <START> @RequestPayload final FindAllDeviceModelsRequest request) throws OsgpException { <END> LOGGER.info("Find all DeviceModels for organisation: {}.", organisationIdentification); final FindAllDeviceModelsResponse response = new FindAllDeviceModelsResponse(); try { final List<DeviceModel> deviceModels = this.firmwareManagementService .findAllDeviceModels(organisationIdentification); response.getDeviceModels().addAll(this.firmwareManagementMapper.mapAsList(deviceModels, com.alliander.osgp.adapter.ws.schema.core.firmwaremanagement.DeviceModel.class)); } catch (final MethodConstraintViolationException e) { LOGGER.error("Exception: {}, StackTrace: {}", e.getMessage(), e.getStackTrace(), e); throw new FunctionalException(FunctionalExceptionType.VALIDATION_ERROR, ComponentType.WS_CORE, new ValidationException(e.getConstraintViolations())); } catch (final Exception e) { this.handleException(e); } return response; }</code><technical_language>![MAJOR](<LINK_0> Remove this unused method parameter "request". [![rule](<LINK_1>](<LINK_2></technical_language>

Target:
public FindAllDeviceModelsResponse findAllDeviceModels( @OrganisationIdentification final String organisationIdentification, @RequestPayload final FindAllDeviceModelsRequest request) throws OsgpException { LOGGER.info("Find all DeviceModels for organisation: {}.", organisationIdentification); final FindAllDeviceModelsResponse response = new FindAllDeviceModelsResponse(); try { final List<DeviceModel> deviceModels = this.firmwareManagementService .findAllDeviceModels(organisationIdentification); response.getDeviceModels().addAll(this.firmwareManagementMapper.mapAsList(deviceModels, com.alliander.osgp.adapter.ws.schema.core.firmwaremanagement.DeviceModel.class)); } catch (final MethodConstraintViolationException e) { LOGGER.error("Exception find all devicemodels {}: ", e); throw new FunctionalException(FunctionalExceptionType.VALIDATION_ERROR, ComponentType.WS_CORE, new ValidationException(e.getConstraintViolations())); } catch (final Exception e) { this.handleException(e); } return response; }
Source:
<code>protected Object readRecord(Object old, Schema expected, ResolvingDecoder in) throws IOException { final Object record = data.newRecord(old, expected); final Object state = data.getRecordState(record, expected); <START> final List<Field> expectedFields = expected.getFields(); <END> for (Field field : in.readFieldOrder()) { int pos = field.pos(); String name = field.name(); Object oldDatum = null; if (old != null) { oldDatum = data.getField(record, name, pos, state); } readField(record, field, oldDatum, in, state); } return record; }</code><technical_language>nitpick: unused expectedFields</technical_language>

Target:
protected Object readRecord(Object old, Schema expected, ResolvingDecoder in) throws IOException { final Object record = data.newRecord(old, expected); final Object state = data.getRecordState(record, expected); for (Field field : in.readFieldOrder()) { int pos = field.pos(); String name = field.name(); Object oldDatum = null; if (old != null) { oldDatum = data.getField(record, name, pos, state); } readField(record, field, oldDatum, in, state); } return record; }
Source:
<code>public HttpServerImpl(VertxInternal vertx, HttpServerOptions options) { this.options = HttpServerOptions.copiedOptions(options); this.vertx = vertx; this.creatingContext = vertx.getContext(); if (creatingContext != null) { if (creatingContext.isMultithreaded()) { throw new IllegalStateException("Cannot use HttpServer in a multi-threaded worker verticle"); } creatingContext.addCloseHook(this); } this.sslHelper = new SSLHelper(options, KeyStoreHelper.create(vertx, options.getKeyStoreOptions()), KeyStoreHelper.create(vertx, options.getTrustStoreOptions())); <START> this.metrics = vertx.metrics().register(this, options); <END> }</code><technical_language>this is unregistered. Memory leak</technical_language>

Target:
public HttpServerImpl(VertxInternal vertx, HttpServerOptions options) { this.options = HttpServerOptions.copiedOptions(options); this.vertx = vertx; this.creatingContext = vertx.getContext(); if (creatingContext != null) { if (creatingContext.isMultithreaded()) { throw new IllegalStateException("Cannot use HttpServer in a multi-threaded worker verticle"); } creatingContext.addCloseHook(this); } this.sslHelper = new SSLHelper(options, KeyStoreHelper.create(vertx, options.getKeyStoreOptions()), KeyStoreHelper.create(vertx, options.getTrustStoreOptions())); this.metrics = vertx.metricsSPI().register(this, options); }
Source:
<code>public ToolDescription createToolDescription() { <START> ToolDescriptionImpl toolDescription = new ToolDescriptionImpl(); <END> return toolDescription; }</code><technical_language>Lost @not-generated code</technical_language>

Target:
public ToolDescription createToolDescription() { ToolDescriptionImpl toolDescription = new ToolDescriptionImpl(); ElementVariable elementVar = createElementVariable(); elementVar.setName("element"); toolDescription.setElement(elementVar); ElementViewVariable elementViewVar = createElementViewVariable(); elementViewVar.setName("elementView"); toolDescription.setElementView(elementViewVar); toolDescription.setInitialOperation(this.createInitialOperation()); return toolDescription; }
Source:
<code>void set(DiffPreferences prefs) { this.prefs = prefs; setIgnoreWhitespace(prefs.ignoreWhitespace()); tabWidth.setIntValue(prefs.tabSize()); lineLength.setIntValue(prefs.lineLength()); syntaxHighlighting.setValue(prefs.syntaxHighlighting()); whitespaceErrors.setValue(prefs.showWhitespaceErrors()); showTabs.setValue(prefs.showTabs()); lineNumbers.setValue(prefs.showLineNumbers()); leftSide.setValue(view.diffTable.isVisibleA()); <START> leftSide.setEnabled(!prefs.hideEmptyPane()); <END> emptyPane.setValue(!prefs.hideEmptyPane()); topMenu.setValue(!prefs.hideTopMenu()); manualReview.setValue(prefs.manualReview()); expandAllComments.setValue(prefs.expandAllComments()); renderEntireFile.setValue(prefs.renderEntireFile()); renderEntireFile.setEnabled(view.canEnableRenderEntireFile(prefs)); setTheme(prefs.theme()); mode.setEnabled(prefs.syntaxHighlighting()); if (prefs.syntaxHighlighting()) { setMode(view.getCmFromSide(DisplaySide.B).getStringOption("mode")); } switch (view.getIntraLineStatus()) { case OFF: case OK: intralineDifference.setValue(prefs.intralineDifference()); break; case TIMEOUT: case FAILURE: intralineDifference.setValue(false); intralineDifference.setEnabled(false); break; } if (prefs.context() == WHOLE_FILE_CONTEXT) { contextLastValue = DEFAULT_CONTEXT; context.setText(""); contextEntireFile.setValue(true); } else { context.setIntValue(prefs.context()); contextEntireFile.setValue(false); } }</code><technical_language>hideEmptyPane = true this is a modified file, I unable hide left side</technical_language>

Target:
void set(DiffPreferences prefs) { this.prefs = prefs; setIgnoreWhitespace(prefs.ignoreWhitespace()); tabWidth.setIntValue(prefs.tabSize()); lineLength.setIntValue(prefs.lineLength()); syntaxHighlighting.setValue(prefs.syntaxHighlighting()); whitespaceErrors.setValue(prefs.showWhitespaceErrors()); showTabs.setValue(prefs.showTabs()); lineNumbers.setValue(prefs.showLineNumbers()); leftSide.setValue(view.diffTable.isVisibleA()); emptyPane.setValue(!prefs.hideEmptyPane()); leftSide.setEnabled(!(prefs.hideEmptyPane() && view.diffTable.getChangeType() == ChangeType.ADDED)); topMenu.setValue(!prefs.hideTopMenu()); manualReview.setValue(prefs.manualReview()); expandAllComments.setValue(prefs.expandAllComments()); renderEntireFile.setValue(prefs.renderEntireFile()); renderEntireFile.setEnabled(view.canEnableRenderEntireFile(prefs)); setTheme(prefs.theme()); mode.setEnabled(prefs.syntaxHighlighting()); if (prefs.syntaxHighlighting()) { setMode(view.getCmFromSide(DisplaySide.B).getStringOption("mode")); } switch (view.getIntraLineStatus()) { case OFF: case OK: intralineDifference.setValue(prefs.intralineDifference()); break; case TIMEOUT: case FAILURE: intralineDifference.setValue(false); intralineDifference.setEnabled(false); break; } if (prefs.context() == WHOLE_FILE_CONTEXT) { contextLastValue = DEFAULT_CONTEXT; context.setText(""); contextEntireFile.setValue(true); } else { context.setIntValue(prefs.context()); contextEntireFile.setValue(false); } }
Source:
<code><START> public void setHazelcastRegisteredEventListenerId(String hazelcastRegisteredEventListenerId) { <END> this.hazelcastRegisteredEventListenerId = hazelcastRegisteredEventListenerId; }</code><technical_language>protected. bad allow end-user mutate this local property</technical_language>

Target:
protected void setHazelcastRegisteredEventListenerId(String hazelcastRegisteredEventListenerId) { this.hazelcastRegisteredEventListenerId = hazelcastRegisteredEventListenerId; }
Source:
<code>public List<Integer> getProjects() { <START> assert projects == null || !projects.isEmpty(); <END> if (projects == null) { int fieldCount = target.getFieldCount(); List<Integer> res = new ArrayList<>(fieldCount); for (int i = 0; i < fieldCount; i++) { res.add(i); } return res; } return projects; }</code><technical_language>allow empty projects distinct null. I guess null means "all table fields", empty projects columns selected. For query SELECT current_date() FORM map</technical_language>

Target:
public List<Integer> getProjects() { if (projects == null) { int fieldCount = target.getFieldCount(); List<Integer> res = new ArrayList<>(fieldCount); for (int i = 0; i < fieldCount; i++) { res.add(i); } return res; } return projects; }
Source:
<code>private String readAllLines(BufferedReader bufferedReader) { String tempString; String returnString = null; try { while ((tempString = bufferedReader.readLine()) != null) { returnString += tempString + '\n'; } } catch (IOException e) { log.error("IOException while trying to read from buffer", e); } <START> return (returnString == null) ? null : returnString.toString(); <END> }</code><technical_language>write: "return returnString"</technical_language>

Target:
private String readAllLines(BufferedReader bufferedReader) { String tempString; StringBuilder returnString = new StringBuilder(); try { while ((tempString = bufferedReader.readLine()) != null) { returnString.append(tempString).append('\n'); } } catch (IOException e) { log.error("IOException while trying to read from buffer", e); } return returnString.toString(); }
Source:
<code>public ConfigurationClientBuilder httpLogOptions(HttpLogOptions logOptions) { <START> httpLogOptions = Objects.requireNonNull(logOptions, "Http log options cannot be null."); <END> return this; }</code><technical_language>allow null I - this lets user clear out configuration in builder next time call build, get HttpLoggingPolicy null options. This means need HttpLoggingPolicy do if options null</technical_language>

Target:
public ConfigurationClientBuilder httpLogOptions(HttpLogOptions logOptions) { httpLogOptions = logOptions; return this; }
Source:
<code>private Optional<CurrentWsResponse.Homepage> applicationAndPortfolioHomepage(DbSession dbSession, UserDto user) { Optional<ComponentDto> componentOptional = ofNullable(dbClient.componentDao().selectByUuid(dbSession, of(user.getHomepageParameter()).orElse(EMPTY)).orNull()); <START> if (!componentOptional.isPresent() || !pluginRepository.hasPlugin(GOVERNANCE_PLUGIN_KEY) <END> || !userSession.hasComponentPermission(USER, componentOptional.get())) { cleanUserHomepageInDb(dbSession, user); return empty(); } return of(CurrentWsResponse.Homepage.newBuilder() .setType(CurrentWsResponse.HomepageType.valueOf(user.getHomepageType())) .setComponent(componentOptional.get().getKey()) .build()); }</code><technical_language>suggestion: extract in a method, named for example shouldCleanPortfolioHomepage</technical_language>

Target:
private Optional<CurrentWsResponse.Homepage> applicationAndPortfolioHomepage(DbSession dbSession, UserDto user) { Optional<ComponentDto> componentOptional = ofNullable(dbClient.componentDao().selectByUuid(dbSession, of(user.getHomepageParameter()).orElse(EMPTY)).orNull()); if (shouldCleanApplicationOrPortfolioHomepage(componentOptional)) { cleanUserHomepageInDb(dbSession, user); return empty(); } return of(CurrentWsResponse.Homepage.newBuilder() .setType(CurrentWsResponse.HomepageType.valueOf(user.getHomepageType())) .setComponent(componentOptional.get().getKey()) .build()); }
Source:
<code>void boundaryError(Disposable subscriber, Throwable ex) { SubscriptionHelper.cancel(upstream); <START> subscribers.delete(subscriber); <END> if (errors.addThrowable(ex)) { subscribers.dispose(); synchronized (this) { buffers = null; } done = true; drain(); } else { RxJavaPlugins.onError(ex); } }</code><technical_language>dispose() subscribers remove dispose() call below</technical_language>

Target:
void boundaryError(Disposable subscriber, Throwable ex) { SubscriptionHelper.cancel(upstream); subscribers.delete(subscriber); onError(ex); }
Source:
<code>private void setSingleWorkflowTargetState(String workflow, final TargetState state) { LOG.info("Set " + workflow + " to target state " + state); WorkflowConfig workflowConfig = TaskUtil.getWorkflowConfig(_accessor, workflow); if (workflowConfig == null) { LOG.warn("WorkflowConfig for not found!", workflow); return; } WorkflowContext workflowContext = TaskUtil.getWorkflowContext(_propertyStore, workflow); if (state != TargetState.DELETE && workflowContext != null && workflowContext.getFinishTime() != WorkflowContext.UNFINISHED) { LOG.info("Workflow is already completed, skip to update its target state {}", <START> workflow + state); <END> return; } DataUpdater<ZNRecord> updater = currentData -> { if (currentData != null) { currentData.setSimpleField(WorkflowConfig.WorkflowConfigProperty.TargetState.name(), state.name()); } else { LOG.warn( "TargetState DataUpdater: Fails to update target state for {}. CurrentData is null.", workflow); } return currentData; }; PropertyKey workflowConfigKey = TaskUtil.getWorkflowConfigKey(_accessor, workflow); _accessor.getBaseDataAccessor().update(workflowConfigKey.getPath(), updater, AccessOption.PERSISTENT); }</code><technical_language>This runtime exception. workflow + state</technical_language>

Target:
private void setSingleWorkflowTargetState(String workflow, final TargetState state) { LOG.info("Set " + workflow + " to target state " + state); WorkflowConfig workflowConfig = TaskUtil.getWorkflowConfig(_accessor, workflow); if (workflowConfig == null) { LOG.warn("WorkflowConfig for not found!", workflow); return; } WorkflowContext workflowContext = TaskUtil.getWorkflowContext(_propertyStore, workflow); if (state != TargetState.DELETE && workflowContext != null && workflowContext.getFinishTime() != WorkflowContext.UNFINISHED) { LOG.info("Workflow is already completed, skip to update its target state {}", workflow, state); return; } DataUpdater<ZNRecord> updater = currentData -> { if (currentData != null) { currentData.setSimpleField(WorkflowConfig.WorkflowConfigProperty.TargetState.name(), state.name()); } else { LOG.warn( "TargetState DataUpdater: Fails to update target state for {}. CurrentData is null.", workflow); } return currentData; }; PropertyKey workflowConfigKey = TaskUtil.getWorkflowConfigKey(_accessor, workflow); _accessor.getBaseDataAccessor().update(workflowConfigKey.getPath(), updater, AccessOption.PERSISTENT); }
Source:
<code>private boolean validateLine(byte[] line, int lineStart, int lineEnd) { for (; lineStart < lineEnd; lineStart++) { if ((line[lineStart] & 128) > 0) { int utf8Index = lineStart++; int utf8Bit = 64; if ((line[utf8Index] & utf8Bit) == 0) { return false; } for (; (lineStart - utf8Index) < 4 && (line[utf8Index] & utf8Bit) > 0 && (line[lineStart] & 128) > 0 && (line[lineStart] & 64) == 0 ; lineStart++, utf8Bit >>= 1) <START> {}; <END> utf8Bit <<= 1; lineStart--; if ((lineStart - utf8Index) == 0) { return false; } if ((line[utf8Index] & utf8Bit) > 0 && (line[lineStart] & 128) == 0) { return false; } } } return true; }</code><technical_language>nit: unnecessary semicolon</technical_language>

Target:
private boolean validateLine(byte[] line, int lineStart, int lineEnd) { for (; lineStart < lineEnd; lineStart++) { if ((line[lineStart] & 128) > 0) { int utf8Index = lineStart++; int utf8Bit = 64; if ((line[utf8Index] & utf8Bit) == 0) { return false; } for (; (lineStart - utf8Index) < 4 && (line[utf8Index] & utf8Bit) > 0 && (line[lineStart] & 128) > 0 && (line[lineStart] & 64) == 0; lineStart++, utf8Bit >>= 1) { } utf8Bit <<= 1; lineStart--; if ((lineStart - utf8Index) == 0) { return false; } if ((line[utf8Index] & utf8Bit) > 0 && (line[lineStart] & 128) == 0) { return false; } } } return true; }
Source:
<code>public String render(final GetTapesResult obj) { final TapeList result = obj.getTapes(); if (result == null || Guard.isNullOrEmpty(result.getTapes())) { return "You do not have any tapes"; } this.tapeList = result.getTapes(); <START> initTable(ImmutableList.of("Bar Code", "ID", "State", "Last Modified", "Available Raw Capacity", "BucketID", "Assigned to Storage Domain", "Ejection Date", "Ejection Location", "Ejection Label")); <END> return ASCIITable.getInstance().getTable(getHeaders(), formatTableContents()); }</code><technical_language>alignment need set for additional elements</technical_language>

Target:
public String render(final GetTapesResult obj) { final TapeList result = obj.getTapes(); if (result == null || Guard.isNullOrEmpty(result.getTapes())) { return "You do not have any tapes"; } this.tapeList = result.getTapes(); initTable(ImmutableList.of("Bar Code", "ID", "State", "Last Modified", "Available Raw Capacity", "BucketID", "Assigned to Storage Domain", "Ejection Date", "Ejection Location", "Ejection Label", "Ejection Pending")); return ASCIITable.getInstance().getTable(getHeaders(), formatTableContents()); }
Source:
<code>public void onStartup(final ServletContext servletContext) throws ServletException { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); Context initialContext; try { initialContext = new InitialContext(); final String logLocation = (String) initialContext .lookup("java:comp/env/osgp/AdapterDomainAdmin/log-config"); if ((new File(logLocation).exists())) { LogbackConfigurer.initLogging(logLocation); } else { LogbackConfigurer.initLogging("classpath:logback.xml"); } } catch (final NameNotFoundException | FileNotFoundException | JoranException e) { <START> LOGGER.info("Caught an exception [" + e.getMessage() + "]"); <END> LOGGER.info("Using classpath logback.xml."); } catch (final NamingException e) { throw new ServletException("naming exception", e); } final AnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext(); rootContext.register(ApplicationContext.class); servletContext.addListener(new ContextLoaderListener(rootContext)); }</code><technical_language>This stop Jenkins/SonarQube complaining exception is handled propertly I think. objection changing line like: LOGGER.info("Using classpath logback.xml.", e);</technical_language>

Target:
public void onStartup(final ServletContext servletContext) throws ServletException { startUp(servletContext); }
Source:
<code>public void tesIsModifiedBySameLastModifiedAndDifferentSize() throws Exception { File f1 = createFile("foo", "lorem".getBytes()); File f2 = createFile("bar", "lorem ipsum".getBytes()); long now = System.currentTimeMillis(); f1.setLastModified(now); f2.setLastModified(now); FileSnapshot save = FileSnapshot.save(f1); <START> Thread.sleep(3000L); <END> assertEquals(save.lastModified(), f2.lastModified()); assertTrue(save.isModified(f2)); }</code><technical_language>this in tests</technical_language>

Target:
public void tesIsModifiedBySameLastModifiedAndDifferentSize() throws Exception { File f1 = createFile("foo", "lorem".getBytes()); File f2 = createFile("bar", "lorem ipsum".getBytes()); long now = System.currentTimeMillis(); f1.setLastModified(f2.lastModified()); FileSnapshot save = FileSnapshot.save(f1); Thread.sleep(3000L); assertEquals(save.lastModified(), f2.lastModified()); assertTrue(save.isModified(f2)); }
Source:
<code>private void process(Message message, org.springframework.messaging.Message<Object> messagingMessage) { setAttributesIfNecessary(message, messagingMessage); org.springframework.messaging.Message<?> reply = sendAndReceiveMessage(messagingMessage); if (reply != null) { Address replyTo; String replyToProperty = message.getMessageProperties().getReplyTo(); if (replyToProperty != null) { replyTo = new Address(replyToProperty); } else { replyTo = AmqpInboundGateway.this.defaultReplyTo; } org.springframework.amqp.core.Message amqpMessage = MappingUtils.mapReplyMessage(reply, AmqpInboundGateway.this.amqpMessageConverter, AmqpInboundGateway.this.headerMapper, message.getMessageProperties().getReceivedDeliveryMode(), AmqpInboundGateway.this.replyHeadersMappedLast); if (replyTo != null) { AmqpInboundGateway.this.amqpTemplate.send(replyTo.getExchangeName(), replyTo.getRoutingKey(), amqpMessage); } else { if (!AmqpInboundGateway.this.amqpTemplateExplicitlySet) { throw new IllegalStateException("There is no 'replyTo' message property " + <START> "and the `defaultReplyTo` hasn't been configured."); <END> } else { AmqpInboundGateway.this.amqpTemplate.send(amqpMessage); } } } }</code><technical_language>This is a breaking change - template a converter gateway's converter. setMessageConverter(). in private CTOR, extract template's converter a field</technical_language>

Target:
private void process(Message message, org.springframework.messaging.Message<Object> messagingMessage) { setAttributesIfNecessary(message, messagingMessage); org.springframework.messaging.Message<?> reply = sendAndReceiveMessage(messagingMessage); if (reply != null) { Address replyTo; String replyToProperty = message.getMessageProperties().getReplyTo(); if (replyToProperty != null) { replyTo = new Address(replyToProperty); } else { replyTo = AmqpInboundGateway.this.defaultReplyTo; } org.springframework.amqp.core.Message amqpMessage = MappingUtils.mapReplyMessage(reply, AmqpInboundGateway.this.templateMessageConverter, AmqpInboundGateway.this.headerMapper, message.getMessageProperties().getReceivedDeliveryMode(), AmqpInboundGateway.this.replyHeadersMappedLast); if (replyTo != null) { AmqpInboundGateway.this.amqpTemplate.send(replyTo.getExchangeName(), replyTo.getRoutingKey(), amqpMessage); } else { if (!AmqpInboundGateway.this.amqpTemplateExplicitlySet) { throw new IllegalStateException("There is no 'replyTo' message property " + "and the `defaultReplyTo` hasn't been configured."); } else { AmqpInboundGateway.this.amqpTemplate.send(amqpMessage); } } } }
Source:
<code>protected TupleBatch countFilter(final TupleBatch tb) { final int numTuples = tb.numTuples(); if (numTuples <= 0) { return tb; } doCount.inputTB = tb; final List<? extends Column<?>> columns = tb.getDataColumns(); final BitSet toRemove = new BitSet(numTuples); for (int i = 0; i < numTuples; ++i) { final int nextIndex = uniqueTuples.numTuples(); final int cntHashCode = HashUtils.hashSubRow(tb, keyColIndices, i); IntArrayList tupleIndexList = uniqueTupleIndices.get(cntHashCode); if (tupleIndexList == null) { tupleIndexList = new IntArrayList(); uniqueTupleIndices.put(cntHashCode, tupleIndexList); } doCount.found = false; doCount.meet = false; doCount.sourceRow = i; tupleIndexList.forEach(doCount); if (!doCount.found) { for (int j : keyColIndices) { uniqueTuples.put(j, columns.get(j), i); } <START> tupleCounts.put(0, new IntArrayColumn(new int[] { 1 }, 1), 0); <END> tupleIndexList.add(nextIndex); if (threshold <= 1) { doCount.meet = true; } } if (!doCount.meet) { toRemove.set(i); } } return tb.filterOut(toRemove).selectColumns(keyColIndices); }</code><technical_language>putInt() construct this bogus singleton column</technical_language>

Target:
protected TupleBatch countFilter(final TupleBatch tb) { final int numTuples = tb.numTuples(); if (numTuples <= 0) { return tb; } doCount.inputTB = tb; final List<? extends Column<?>> columns = tb.getDataColumns(); final BitSet toRemove = new BitSet(numTuples); for (int i = 0; i < numTuples; ++i) { final int nextIndex = uniqueTuples.numTuples(); final int cntHashCode = HashUtils.hashSubRow(tb, keyColIndices, i); IntArrayList tupleIndexList = uniqueTupleIndices.get(cntHashCode); if (tupleIndexList == null) { tupleIndexList = new IntArrayList(); uniqueTupleIndices.put(cntHashCode, tupleIndexList); } doCount.found = false; doCount.meet = false; doCount.sourceRow = i; tupleIndexList.forEach(doCount); if (!doCount.found) { for (int j : keyColIndices) { uniqueTuples.put(j, columns.get(j), i); } tupleCounts.putInt(0, 1); tupleIndexList.add(nextIndex); if (threshold <= 1) { doCount.meet = true; } } if (!doCount.meet) { toRemove.set(i); } } return tb.filterOut(toRemove).selectColumns(keyColIndices); }
Source:
<code>public void onSpawn() { <START> rabbit = npc.getEntity() instanceof Rabbit ? (Rabbit) npc.getEntity() : null; <END> }</code><technical_language>call setType here</technical_language>

Target:
public void onSpawn() { rabbit = npc.getEntity() instanceof Rabbit ? (Rabbit) npc.getEntity() : null; setType(type); }
Source:
<code>protected void appendName(ActivityPartition activitypartition, Collection<String> displayValue, StringBuilder sb) { Element represents = activitypartition.getRepresents(); String activitypartitionName = UMLLabelInternationalization.getInstance().getLabel(activitypartition); if (represents != null) { <START> try { activitypartitionName = ((NamedElement) represents).getName() ; } catch (ClassCastException e) { } <END> } appendString(sb, activitypartitionName, UNAMED); return; }</code><technical_language>a strange of handling cast. explicit check represents instanceof NamedElement? exception thrown catch it</technical_language>

Target:
protected void appendName(ActivityPartition activitypartition, Collection<String> displayValue, StringBuilder sb) { Element represents = activitypartition.getRepresents(); String activitypartitionName = UMLLabelInternationalization.getInstance().getLabel(activitypartition); if (represents != null) { if (represents instanceof NamedElement) { activitypartitionName = ((NamedElement) represents).getName() ; } } appendString(sb, activitypartitionName, UNAMED); return; }
Source:
<code>public <Q, I, U> SubscriptionQueryResult<I, U> subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, SubscriptionQueryBackpressure backpressure, int updateBufferSize) { <START> return subscriptionQuery(queryName, query, initialResponseType, updateResponseType, backpressure, updateBufferSize); <END> }</code><technical_language>This recursive invocation ends</technical_language>

Target:
public <Q, I, U> SubscriptionQueryResult<I, U> subscriptionQuery(String queryName, Q query, ResponseType<I> initialResponseType, ResponseType<U> updateResponseType, SubscriptionQueryBackpressure backpressure, int updateBufferSize) { SubscriptionQueryMessage<?, I, U> interceptedQuery = getSubscriptionQueryMessage( queryName, query, initialResponseType, updateResponseType); SubscriptionQueryResult<QueryResponseMessage<I>, SubscriptionQueryUpdateMessage<U>> result = queryBus.subscriptionQuery(interceptedQuery, backpressure, updateBufferSize); return getSubscriptionQueryResult(result); }
Source:
<code>private void flushData(final EventTypePartition pk, final List<ConsumedEvent> data, final Optional<String> metadata) { try { final NakadiCursor sentOffset = offsets.get(pk).getSentOffset(); final SubscriptionCursor cursor = getContext().getCursorConverter().convert( sentOffset, getContext().getCursorTokenService().generateToken()); final int batchSize = getContext().getWriter().writeSubscriptionBatch( getOut().getOutputStream(), cursor, data, metadata); <START> getOut().getOutputStream().flush(); <END> bytesSentMeter.mark(batchSize); batchesSent++; } catch (final IOException e) { getLog().error("Failed to write data to output.", e); shutdownGracefully("Failed to write data to output"); } }</code><technical_language>do in EventStreamWriter</technical_language>

Target:
private void flushData(final EventTypePartition pk, final List<ConsumedEvent> data, final Optional<String> metadata) { try { final NakadiCursor sentOffset = offsets.get(pk).getSentOffset(); final SubscriptionCursor cursor = getContext().getCursorConverter().convert( sentOffset, getContext().getCursorTokenService().generateToken()); final int batchSize = getContext().getWriter().writeSubscriptionBatch( getOut().getOutputStream(), cursor, data, metadata); bytesSentMeter.mark(batchSize); batchesSent++; } catch (final IOException e) { getLog().error("Failed to write data to output.", e); shutdownGracefully("Failed to write data to output"); } }
Source:
<code>private static void addToRequired(final JSONObject schema, final String[] toBeRequired) { final Set<String> required = new HashSet<>(Arrays.asList(toBeRequired)); for(int i = 0; i < schema.getJSONArray("required").length(); i++) { <START> required.add(schema.getJSONArray("required").getString(i)); <END> } schema.put("required", required); }</code><technical_language>JSONArray times in iteration. extract a variable</technical_language>

Target:
private static void addToRequired(final JSONObject schema, final String[] toBeRequired) { final Set<String> required = new HashSet<>(Arrays.asList(toBeRequired)); JSONArray currentRequired = schema.getJSONArray("required"); for(int i = 0; i < currentRequired.length(); i++) { required.add(currentRequired.getString(i)); } schema.put("required", required); }
Source:
<code>public Object visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable { if (command.hasAnyFlag(FlagBitSets.CACHE_MODE_LOCAL | FlagBitSets.SKIP_REMOTE_LOOKUP)) { return invokeNext(ctx, command); } if (!ctx.isOriginLocal()) { for (Object key : command.getKeys()) { if (ctx.lookupEntry(key) == null) { return UnsureResponse.INSTANCE; } } return invokeNext(ctx, command); } LocalizedCacheTopology cacheTopology = checkTopologyId(command); Map<Address, List<Object>> requestedKeys = getKeysByOwner(ctx, command.getKeys(), cacheTopology, null, null); if (requestedKeys.isEmpty()) { return invokeNext(ctx, command); } GlobalTransaction gtx = ctx.isInTxScope() ? ((TxInvocationContext) ctx).getGlobalTransaction() : null; ClusteredGetAllFuture allFuture = new ClusteredGetAllFuture(requestedKeys.size(), command); for (Map.Entry<Address, List<Object>> pair : requestedKeys.entrySet()) { ClusteredGetAllCommand clusteredGetAllCommand = cf.buildClusteredGetAllCommand(pair.getValue(), command.getFlagsBitSet(), gtx); clusteredGetAllCommand.setTopologyId(command.getTopologyId()); Set<Address> target = Collections.singleton(pair.getKey()); rpcManager.invokeRemotelyAsync(target, clusteredGetAllCommand, syncIgnoreLeavers) .whenComplete(new ClusteredGetAllHandler(allFuture, ctx, command, pair.getValue(), target)); } <START> return asyncValue(handleRemotelyRetrievedKeys(ctx, allFuture, allFuture)).thenApply(ctx, command, allFuture); <END> }</code><technical_language>Good point :)</technical_language>

Target:
public Object visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable { if (command.hasAnyFlag(FlagBitSets.CACHE_MODE_LOCAL | FlagBitSets.SKIP_REMOTE_LOOKUP)) { return invokeNext(ctx, command); } if (!ctx.isOriginLocal()) { for (Object key : command.getKeys()) { if (ctx.lookupEntry(key) == null) { return UnsureResponse.INSTANCE; } } return invokeNext(ctx, command); } LocalizedCacheTopology cacheTopology = checkTopologyId(command); Map<Address, List<Object>> requestedKeys = getKeysByOwner(ctx, command.getKeys(), cacheTopology, null, null); if (requestedKeys.isEmpty()) { return invokeNext(ctx, command); } GlobalTransaction gtx = ctx.isInTxScope() ? ((TxInvocationContext) ctx).getGlobalTransaction() : null; ClusteredGetAllFuture allFuture = new ClusteredGetAllFuture(requestedKeys.size(), command); for (Map.Entry<Address, List<Object>> pair : requestedKeys.entrySet()) { ClusteredGetAllCommand clusteredGetAllCommand = cf.buildClusteredGetAllCommand(pair.getValue(), command.getFlagsBitSet(), gtx); clusteredGetAllCommand.setTopologyId(command.getTopologyId()); rpcManager.invokeRemotelyAsync(Collections.singleton(pair.getKey()), clusteredGetAllCommand, syncIgnoreLeavers) .whenComplete(new ClusteredGetAllHandler(pair.getKey(), allFuture, ctx, command, pair.getValue(), null)); } return asyncValue(allFuture).thenApply(ctx, command, allFuture); }
Source:
<code>protected boolean wordMatches(String text) { if (text != null) { if (fMatchers == null || fMatchers.length == 0) { return true; } for (StringMatcher <START> fMatcher : <END> fMatchers) { if (fMatcher.match(text)) { return true; } } } return false; }</code><technical_language>rename matcher</technical_language>

Target:
protected boolean wordMatches(String text) { if (text != null) { if (fMatchers == null || fMatchers.length == 0) { return true; } for (StringMatcher matcher : fMatchers) { if (matcher.match(text)) { return true; } } } return false; }