auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder) { String exampleName = getExampleName(node); boolean isBeforeExample = isBeforeExample(node); resultRecorder.setSpecificationDescription( specificationDescriber.getDescription(node.getResource(), exampleName)); if (!isBeforeExample) { announceBeforeExample(exampleName, node.getElement(), resultRecorder); } try { <START> if (exampleFilter != null && exampleFilter.shouldSkip(node.getElement())) { <END> resultRecorder.setImplementationStatus(ImplementationStatus.SKIPPED); } else { node.getChildren().processSequentially(evaluator, resultRecorder); } } catch (FailFastException f) { } setupCommandForExample(node, resultRecorder, exampleName); if (!isBeforeExample) { announceAfterExample(exampleName, node.getElement(), resultRecorder); } }</code><technical_language>This is nice - day a version of Java Lambdas convert exampleFilter of standard interfaces</technical_language>

Target:
public void execute(CommandCall node, Evaluator evaluator, ResultRecorder resultRecorder) { String exampleName = getExampleName(node); boolean isBeforeExample = isBeforeExample(node); resultRecorder.setSpecificationDescription( specificationDescriber.getDescription(node.getResource(), exampleName)); ImplementationStatus status = getImplementationStatus(node); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceBeforeExample(exampleName, node.getElement(), resultRecorder); } try { resultRecorder.setImplementationStatus(status); if (status == ImplementationStatus.IGNORED) { resultRecorder.record(Result.IGNORED); } else { node.getChildren().processSequentially(evaluator, resultRecorder); } } catch (FailFastException f) { } setupCommandForExample(node, resultRecorder, exampleName); if (!isBeforeExample && status != ImplementationStatus.IGNORED) { announceAfterExample(exampleName, node.getElement(), resultRecorder); } }
Source:
<code>protected void recover(Message message) throws Exception { IndexInfo info = indexInfo.create(message); String uri = info.getId() != null ? String.format( "/%s/%s/%s", info.getIndex(), info.getType(), info.getId()) : String.format( "/%s/%s/", info.getIndex(), info.getType()); String entity = info.getSource() instanceof Map ? jsonMapper.writeValueAsString(info.getSource()) : info.getSource().toString(); <START> HttpResponse response = client.executeWithLoadBalancer( <END> HttpRequest.newBuilder() .verb(HttpRequest.Verb.POST) .setRetriable(true) .uri(uri) .entity(entity) .build()); IOUtils.toByteArray(response.getInputStream()); }</code><technical_language>Need close response release connection pool resources</technical_language>

Target:
protected void recover(Message message) throws Exception { IndexInfo info = indexInfo.create(message); String uri = info.getId() != null ? String.format( "/%s/%s/%s", info.getIndex(), info.getType(), info.getId()) : String.format( "/%s/%s/", info.getIndex(), info.getType()); String entity = info.getSource() instanceof Map ? jsonMapper.writeValueAsString(info.getSource()) : info.getSource().toString(); HttpResponse response = null; try { response = client.executeWithLoadBalancer( HttpRequest.newBuilder() .verb(HttpRequest.Verb.POST) .setRetriable(true) .uri(uri) .entity(entity) .build()); if (response.getStatus() / 100 != 2) { Servo.getCounter( MonitorConfig.builder("unrecoverableRow") .withTag(SINK_ID, getSinkId()) .withTag(TagKey.ROUTING_KEY, message.getRoutingKey()) .build()).increment(); } } catch (Exception e) { log.error("Exception while recover: " + e.getMessage(), e); Servo.getCounter("recoverException").increment(); writeTo(new DefaultMessageContainer(message, jsonMapper)); } finally { if (response != null) { response.close(); } } }
Source:
<code>public InputStream getStream() { if (Guard.isStringNullOrEmpty(requestPayload)) { return null; } <START> final byte[] stringBytes = requestPayload.getBytes(); <END> this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); }</code><technical_language>This character set UTF-8</technical_language>

Target:
public InputStream getStream() { if (Guard.isStringNullOrEmpty(requestPayload)) { return null; } final byte[] stringBytes = requestPayload.getBytes(Charset.forName("UTF-8")); this.size = stringBytes.length; return new ByteArrayInputStream(stringBytes); }
Source:
<code>public CompletionTimeProcessing processOneToOne(String tenantId, CompletionTimeProcessing completionTimeProcessing) throws RetryAttemptException{ Span rootSpan = completionTimeProcessing.getRootSpan(); List<Span> trace = spanCache.getTrace(tenantId, rootSpan.getTraceId()); if (trace == null) { throw new RetryAttemptException("trace not present in the cache"); } Annotation lastAnnotation = extractLastAnnotation(trace); if (lastAnnotation == null) { <START> return null; <END> } if (completionTimeProcessing.getLastTimestamp() == null || completionTimeProcessing.getLastTimestamp() < lastAnnotation.getTimestamp()) { completionTimeProcessing.setCompletionTime(null); completionTimeProcessing.setLastTimestamp(lastAnnotation.getTimestamp()); return completionTimeProcessing; } CompletionTime completionTime = CompletionTimeUtil.spanToCompletionTime(rootSpan); completionTime.setProperties(extractProperties(trace)); completionTime.setDuration(getTraceDuration(rootSpan, lastAnnotation.getTimestamp())); completionTimeProcessing.setCompletionTime(completionTime); return completionTimeProcessing; }</code><technical_language>this treated a retry condition? processing end - i.e. completion time for trace</technical_language>

Target:
public CompletionTimeProcessing processOneToOne(String tenantId, CompletionTimeProcessing completionTimeProcessing) throws RetryAttemptException{ if (completionTimeProcessing.getCompletionTime() != null) { return null; } Span rootSpan = completionTimeProcessing.getRootSpan(); Set<Span> trace = spanCache.getTrace(tenantId, rootSpan.getTraceId()); if (trace == null) { throw new RetryAttemptException("trace not present in the cache"); } Annotation lastAnnotation = extractLastAnnotation(trace); if (lastAnnotation == null) { throw new RetryAttemptException("No annotation present, cannot calculate completion time - trying retry"); } if (completionTimeProcessing.getLastTimestamp() == null || completionTimeProcessing.getLastTimestamp() < lastAnnotation.getTimestamp()) { completionTimeProcessing.setLastTimestamp(lastAnnotation.getTimestamp()); return completionTimeProcessing; } CompletionTime completionTime = CompletionTimeUtil.spanToCompletionTime(rootSpan); completionTime.setProperties(extractProperties(trace)); completionTime.setDuration(getTraceDuration(rootSpan, lastAnnotation.getTimestamp())); completionTimeProcessing.setCompletionTime(completionTime); return completionTimeProcessing; }
Source:
<code>protected void initRPC() throws IOException { InetSocketAddress bindAddr = getRpcAddressToBindTo(); <START> LOG.info("ZKFC RpcServer binding to " + bindAddr); <END> rpcServer = new ZKFCRpcServer(conf, bindAddr, this, getPolicyProvider()); }</code><technical_language>logger format {}</technical_language>

Target:
protected void initRPC() throws IOException { InetSocketAddress bindAddr = getRpcAddressToBindTo(); LOG.info("ZKFC RpcServer binding to {}", bindAddr); rpcServer = new ZKFCRpcServer(conf, bindAddr, this, getPolicyProvider()); }
Source:
<code>public static List<FilterEntry> parse(String filters) { List<FilterEntry> ret = new LinkedList<>(); Matcher m = PARSE_PATTERN.matcher(filters); while (m.find()) { log.debug(String.format("parse: handling '%s'", m.group(0))); boolean exclude = "exclude".equals(m.group("exclude")); String event = m.group("event"); String recipient = m.group("recipient"); String transport = null; String name = null; if ("*".equals(event)) { event = null; } if (!"*".equals(recipient)) { String s[] = recipient.split(":", 2); if (s.length != 2) { throw new RuntimeException( String.format( "Invalid recipient: '%s'", recipient )); } transport = s[0]; name = s[1]; <START> } <END> ret.add(new FilterEntry(event, exclude,transport, name)); } return Collections.unmodifiableList(ret); }</code><technical_language>this complex, do mix splits... I send a version</technical_language>

Target:
public static List<FilterEntry> parse(String filters) { List<FilterEntry> ret = new LinkedList<>(); if (!PATTERN_BLANK.matcher(filters).matches()) { Matcher m = PATTERN_PARSE.matcher(filters); boolean ok = false; int expectedStart = 0; while (m.find()) { log.debug(String.format("parse: handling '%s'", m.group(0))); if (m.start() != expectedStart) { throw new RuntimeException("Cannot parse filters"); } expectedStart = m.end(); ok = m.end() == m.regionEnd(); ret.add( new FilterEntry( m.group("anymsg") != null ? null : m.group("message"), m.group("exclude") != null, m.group("anyrecipient") != null ? null : m.group("transport"), m.group("name") ) ); } if (!ok) { throw new IllegalArgumentException("Cannot parse filters"); } } return Collections.unmodifiableList(ret); }
Source:
<code>public void execute(DelegateExecution execution) { ThrowMessage throwMessage = getThrowMessage(execution); boolean isSent = send(execution, throwMessage); <START> if(isSent) <END> dispatchEvent(execution, throwMessage); super.execute(execution); }</code><technical_language>Please, brackets if body, if a single line. BTW, install check style plugin in IDE configure [this configuration file](<LINK_0></technical_language>

Target:
public void execute(DelegateExecution execution) { ThrowMessage throwMessage = getThrowMessage(execution); boolean isSent = send(execution, throwMessage); if(isSent) { dispatchEvent(execution, throwMessage); } super.execute(execution); }
Source:
<code><START> protected void tearDown() throws Exception { <END> IRemoteServices fRemoteServices; IRemoteConnection fRemoteConnection; fRemoteServices = PTPRemoteCorePlugin.getDefault().getRemoteServices("org.eclipse.ptp.remote.RemoteTools"); assertNotNull(fRemoteServices); IRemoteConnectionManager connMgr = fRemoteServices.getConnectionManager(); assertNotNull(connMgr); fRemoteConnection = connMgr.getConnection(CONNECTION_NAME); final IRemoteFileManager fileManager = fRemoteServices.getFileManager(fRemoteConnection); final IFileStore dstFileStore = fileManager.getResource(CONNECTION_DIR); dstFileStore.delete(EFS.NONE, null); }</code><technical_language>this method moved AbstractRemoteTest? This avoid ptp dependencies perf.tests</technical_language>

Target:
protected void tearDown() { deleteResource(CONNECTION_DIR); }
Source:
<code>private void generateRequestParameterArgsBuilderMethodImplementation(String format, String request, String member, String type) { buffer.addImport(ArrayList.class); buffer.addLine(format, request, member, type); <START> buffer.addLine( "this.%1$s = new ArrayList<>();", member); <END> buffer.addLine( "for (int i = 0; i < %1$s.length; i++) {", member); buffer.addLine( "this.%1$s.add(%1$s[i].build());", member); buffer.addLine( "}"); buffer.addLine( "return this;"); buffer.addLine("}"); buffer.addLine(); }</code><technical_language>size of list is needed, is it: new ArrayList<>(%1$s.length) list is created a default capacity of 10, resized needed. If 10 elements wasting space. If more unnecessary resizes garbage collections)</technical_language>

Target:
private void generateRequestParameterArgsBuilderMethodImplementation(String format, String request, String member, String type) { buffer.addImport(ArrayList.class); buffer.addLine(format, request, member, type); buffer.addLine( "this.%1$s = new ArrayList<>(%1$s.length);", member); buffer.addLine( "for (%1$s element : %2$s) {", type, member); buffer.addLine( "this.%1$s.add(element.build());", member); buffer.addLine( "}"); buffer.addLine( "return this;"); buffer.addLine("}"); buffer.addLine(); }
Source:
<code><START> private void deleteBucketLifeCycle(String bucketName) <END> throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> queryParamMap = new HashMap<>(); queryParamMap.put("lifecycle", ""); HttpResponse response = executeDelete(bucketName, "", queryParamMap); response.body().close(); }</code><technical_language>public</technical_language>

Target:
public void deleteBucketLifeCycle(String bucketName) throws InvalidBucketNameException, NoSuchAlgorithmException, InsufficientDataException, IOException, InvalidKeyException, NoResponseException, XmlPullParserException, ErrorResponseException, InternalException { Map<String,String> queryParamMap = new HashMap<>(); queryParamMap.put("lifecycle", ""); HttpResponse response = executeDelete(bucketName, "", queryParamMap); response.body().close(); }
Source:
<code>public String toHaskell() { <START> return String.format("%s%d", Function.ARG_PREFIX, this.getPosition()); <END> }</code><technical_language>This unique lambda's get nested somehow. I would, I imagine could, lead some human confusion: (\arg0 -> map (\arg0 -> arg0) arg0) If drop function's hashCode in somewhere, a of differentiating arg0's</technical_language>

Target:
public String toHaskell() { return this.name; }
Source:
<code>public String getNextAvailableMacAddress(final long networkConfigId, Integer zoneMacIdentifier) { final SequenceFetcher fetch = SequenceFetcher.getInstance(); long seq = fetch.getNextSequence(Long.class, _tgMacAddress, networkConfigId); if(zoneMacIdentifier!=0){ seq = seq | _prefix << 40 | (long)zoneMacIdentifier << 32 | networkConfigId << 16 & 0x00000000ffff0000l; } else { seq = seq | _prefix << 40 | _rand.nextInt(Short.MAX_VALUE) << 16 & 0x00000000ffff0000l; <START> } <END> return NetUtils.long2Mac(seq); }</code><technical_language>Please format coding standards</technical_language>

Target:
public String getNextAvailableMacAddress(final long networkConfigId, Integer zoneMacIdentifier) { final SequenceFetcher fetch = SequenceFetcher.getInstance(); long seq = fetch.getNextSequence(Long.class, _tgMacAddress, networkConfigId); if(zoneMacIdentifier != null && zoneMacIdentifier.intValue() != 0 ){ seq = seq | _prefix << 40 | (long)zoneMacIdentifier << 32 | networkConfigId << 16 & 0x00000000ffff0000l; } else { seq = seq | _prefix << 40 | _rand.nextInt(Short.MAX_VALUE) << 16 & 0x00000000ffff0000l; } return NetUtils.long2Mac(seq); }
Source:
<code>private Mono<Void> sendMessageForReactiveFlow(MessageChannel requestChannel, Message<?> requestMessage) { if (requestChannel instanceof ReactiveStreamsSubscribableChannel) { return ((ReactiveStreamsSubscribableChannel) requestChannel) .subscribeToUpstream(Mono.just(requestMessage)); } else { long sendTimeout = sendTimeout(requestMessage); boolean sent = sendTimeout >= 0 ? requestChannel.send(requestMessage, sendTimeout) : requestChannel.send(requestMessage); <START> return Mono.just(sent) <END> .filter(Boolean::booleanValue) .switchIfEmpty(Mono.error(new MessageDeliveryException(requestMessage, "Failed to send message to channel '" + requestChannel + "' within timeout: " + sendTimeout))) .then(); } }</code><technical_language>please standard if (!sent) { return Mono.error(...); } else { return Mono.empty(); }</technical_language>

Target:
private Mono<Void> sendMessageForReactiveFlow(MessageChannel requestChannel, Message<?> requestMessage) { if (requestChannel instanceof ReactiveStreamsSubscribableChannel) { return ((ReactiveStreamsSubscribableChannel) requestChannel) .subscribeToUpstream(Mono.just(requestMessage)); } else { long sendTimeout = sendTimeout(requestMessage); boolean sent = sendTimeout >= 0 ? requestChannel.send(requestMessage, sendTimeout) : requestChannel.send(requestMessage); return sent ? Mono.empty() : Mono.error(new MessageDeliveryException(requestMessage, "Failed to send message to channel '" + requestChannel + "' within timeout: " + sendTimeout)); } }
Source:
<code>private static Archive<?> deploy() { WebArchive war = TestUtil.prepareArchive(SpringMvcHttpResponseCodesTest.class.getSimpleName()); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/web-secure.xml", "web.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/jboss-web.xml", "jboss-web.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/mvc-dispatcher-servlet.xml", "mvc-dispatcher-servlet.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/applicationContext.xml", "applicationContext.xml"); war.addAsManifestResource(new StringAsset("Dependencies: org.springframework.spring meta-inf\n"), "MANIFEST.MF"); war.addClass(SpringMvcHttpResponseCodesPerson.class); war.addAsManifestResource(PermissionUtil.createPermissionsXmlAsset( new LoggingPermission("control", ""), <START> new ReflectPermission("suppressAccessChecks"), <END> new RuntimePermission("accessDeclaredMembers") ), "permissions.xml"); return TestUtil.finishContainerPrepare(war, null, SpringMvcHttpResponseCodesResource.class, TestResource.class); }</code><technical_language>permission new LoggingPermission("control", "") is needed in order test pass</technical_language>

Target:
private static Archive<?> deploy() { WebArchive war = TestUtil.prepareArchive(SpringMvcHttpResponseCodesTest.class.getSimpleName()); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/web-secure.xml", "web.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/jboss-web.xml", "jboss-web.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/mvc-dispatcher-servlet.xml", "mvc-dispatcher-servlet.xml"); war.addAsWebInfResource(SpringMvcHttpResponseCodesTest.class.getPackage(), "springMvcHttpResponseCodes/applicationContext.xml", "applicationContext.xml"); war.addAsManifestResource(new StringAsset("Dependencies: org.springframework.spring meta-inf\n"), "MANIFEST.MF"); war.addClass(SpringMvcHttpResponseCodesPerson.class); war.addAsManifestResource(PermissionUtil.createPermissionsXmlAsset( new LoggingPermission("control", ""), new ReflectPermission("suppressAccessChecks") ), "permissions.xml"); return TestUtil.finishContainerPrepare(war, null, SpringMvcHttpResponseCodesResource.class, TestResource.class); }
Source:
<code>protected void locateFile() { FileDialog dialog = new FileDialog(getEditorSite().getShell(), SWT.NONE); dialog.setFilterNames(new String[] {SourceLookupUIMessages.CSourceNotFoundEditor_2}); dialog.setFilterExtensions(new String[] {"*." + FilenameUtils.getExtension(missingFile)}); String res = dialog.open(); if (res != null) { <START> if (IOCase.INSENSITIVE.checkEquals(FilenameUtils.getName(missingFile), FilenameUtils.getName(res))) { <END> String compPath = FilenameUtils.getFullPath(missingFile); IPath newSourcePath = new Path(FilenameUtils.getFullPath(res)); if (compPath.length() > 0) { try { if (isDebugElement) addSourceMappingToLaunch(compPath, newSourcePath); else addSourceMappingToCommon(compPath, newSourcePath); } catch (CoreException e) { } } IWorkbenchPage page = getEditorSite().getPage(); if (isDebugElement) { ISourceDisplay adapter = context.getAdapter(ISourceDisplay.class); if (adapter != null) { adapter.displaySource(context, page, true); } } else if (isTranslationUnit) { reopenTranslationUnit(tunit); } closeEditor(); } } }</code><technical_language>Is IOCase instead of equalsIgnoreCase()? avoid new depency this time</technical_language>

Target:
protected void locateFile() { FileDialog dialog = new FileDialog(getEditorSite().getShell(), SWT.NONE); dialog.setFilterNames(new String[] {SourceLookupUIMessages.CSourceNotFoundEditor_2}); CDebugUtils.FileParts missingFileParts = CDebugUtils.getFileParts(missingFile); dialog.setFilterExtensions(new String[] {"*." + missingFileParts.getExtension()}); String res = dialog.open(); if (res != null) { CDebugUtils.FileParts resParts = CDebugUtils.getFileParts(res); if (resParts.getFileName().toLowerCase().equals(missingFileParts.getFileName().toLowerCase())) { String compPath = missingFileParts.getFolder(); IPath newSourcePath = new Path(resParts.getFolder()); if (compPath.length() > 0) { try { if (isDebugElement) addSourceMappingToLaunch(compPath, newSourcePath); else addSourceMappingToCommon(compPath, newSourcePath); } catch (CoreException e) { } } IWorkbenchPage page = getEditorSite().getPage(); if (isDebugElement) { ISourceDisplay adapter = context.getAdapter(ISourceDisplay.class); if (adapter != null) { adapter.displaySource(context, page, true); } } else if (isTranslationUnit) { reopenTranslationUnit(tunit); } closeEditor(); } } }
Source:
<code>public void map(LongWritable key, Text value, OutputCollector<VKmer, Node> output, Reporter reporter) throws IOException { lineCount++; long readID = 0; String mate0GeneLine = null; String mate1GeneLine = null; if (fastqFormat) { <START> } else { <END> String[] rawLine = value.toString().split("\\t"); if (rawLine.length == 2) { readID = Long.parseLong(rawLine[0]); mate0GeneLine = rawLine[1]; } else if (rawLine.length == 3) { readID = Long.parseLong(rawLine[0]); mate0GeneLine = rawLine[1]; mate1GeneLine = rawLine[2]; } else { throw new IllegalStateException( "input format is not true! only support id'\t'readSeq'\t'mateReadSeq or id'\t'readSeq'"); } } Pattern genePattern = Pattern.compile("[AGCT]+"); if (mate0GeneLine != null) { Matcher geneMatcher = genePattern.matcher(mate0GeneLine); if (geneMatcher.matches()) { thisReadSequence.setAsCopy(mate0GeneLine); if (mate1GeneLine != null) { mateReadSequence.setAsCopy(mate1GeneLine); readHeadInfo.set((byte) 0, readID, 0, thisReadSequence, mateReadSequence); } else { readHeadInfo.set((byte) 0, readID, 0, thisReadSequence, null); } SplitReads(readID, mate0GeneLine.getBytes(), output); } } if (mate1GeneLine != null) { Matcher geneMatcher = genePattern.matcher(mate1GeneLine); if (geneMatcher.matches()) { thisReadSequence.setAsCopy(mate1GeneLine); mateReadSequence.setAsCopy(mate0GeneLine); readHeadInfo.set((byte) 1, readID, 0, thisReadSequence, mateReadSequence); SplitReads(readID, mate1GeneLine.getBytes(), output); } } }</code><technical_language>If support format, fail silently! Raise exception</technical_language>

Target:
public void map(LongWritable key, Text value, OutputCollector<VKmer, Node> output, Reporter reporter) throws IOException { lineCount++; long readID = 0; String mate0GeneLine = null; String mate1GeneLine = null; String[] rawLine = value.toString().split("\\t"); if (rawLine.length == 2) { readID = Long.parseLong(rawLine[0]); mate0GeneLine = rawLine[1]; } else if (rawLine.length == 3) { readID = Long.parseLong(rawLine[0]); mate0GeneLine = rawLine[1]; mate1GeneLine = rawLine[2]; } else { throw new IllegalStateException( "input format is not true! only support id'\t'readSeq'\t'mateReadSeq or id'\t'readSeq'"); } Pattern genePattern = Pattern.compile("[AGCT]+"); if (mate0GeneLine != null) { Matcher geneMatcher = genePattern.matcher(mate0GeneLine); if (geneMatcher.matches()) { thisReadSequence.setAsCopy(mate0GeneLine); if (mate1GeneLine != null) { mateReadSequence.setAsCopy(mate1GeneLine); readHeadInfo.set((byte) 0, readID, 0, thisReadSequence, mateReadSequence); } else { readHeadInfo.set((byte) 0, readID, 0, thisReadSequence, null); } SplitReads(readID, mate0GeneLine.getBytes(), output); } } else { throw new IllegalStateException("thisReadSequence doesn't exist which is not allowed!"); } if (mate1GeneLine != null) { Matcher geneMatcher = genePattern.matcher(mate1GeneLine); if (geneMatcher.matches()) { thisReadSequence.setAsCopy(mate1GeneLine); mateReadSequence.setAsCopy(mate0GeneLine); readHeadInfo.set((byte) 1, readID, 0, thisReadSequence, mateReadSequence); SplitReads(readID, mate1GeneLine.getBytes(), output); } } }
Source:
<code>public void readPayload(int id, PacketBuffer buffer, Side side, MessageContext ctx) throws IOException { super.readPayload(id, buffer, side, ctx); if(id == NET_RENDER_DATA) { if(buffer.readBoolean()) { recipe = new IntegrationRecipe(buffer); } else { recipe = null; } <START> } <END> }</code><technical_language>(you NET_GUI_DATA well)</technical_language>

Target:
public void readPayload(int id, PacketBuffer buffer, Side side, MessageContext ctx) throws IOException { super.readPayload(id, buffer, side, ctx); if(id == NET_GUI_DATA) { if(buffer.readBoolean()) { recipe = new IntegrationRecipe(buffer); } else { recipe = null; } } }
Source:
<code>public boolean equals(final Object other) { <START> if (other instanceof UInt128) { <END> return this.low == ((UInt128) other).low && this.high == ((UInt128) other).high; } return false; }</code><technical_language>smaller cases handled first: if(other instanceof UInt128) { return false; } return this.low == ((UInt128) other).low && this.high == ((UInt128) other).high;</technical_language>

Target:
public boolean equals(final Object other) { if (other instanceof UInt128) { final UInt128 uInt128Other = (UInt128) other; return this.low == uInt128Other.low && this.high == uInt128Other.high; } return false; }
Source:
<code>private List<String> testGetVariantsByRegionHelper(String testRegion, int expectedVariants, HttpStatus status) throws URISyntaxException { <START> String url = "/v2/regions/" + testRegion + "?species=mmusculus&assembly=grcm38"; <END> ResponseEntity<String> response = restTemplate.getForEntity(url, String.class); assertEquals(status, response.getStatusCode()); Configuration configuration = Configuration.defaultConfiguration() .jsonProvider(new JacksonJsonProvider()) .mappingProvider(new JacksonMappingProvider(objectMapper)) .addOptions(Option.SUPPRESS_EXCEPTIONS); List<Variant> variantList = JsonPath.using(configuration).parse(response.getBody()) .read( "$['_embedded']['variantList']", new TypeRef<List<Variant>>() {}); if (variantList == null) { assertEquals(0,expectedVariants); return null; } assertEquals(expectedVariants,variantList.size()); List<String> chromosomes = new ArrayList<>(); variantList.forEach(variant -> { chromosomes.add(variant.getChromosome()); }); return chromosomes; }</code><technical_language>suggestion String url = "/v2/regions/" + testRegion + "/variants?species=mmusculus&assembly=grcm38";</technical_language>

Target:
private List<String> testGetVariantsByRegionHelper(String testRegion, int expectedVariants, HttpStatus status) throws URISyntaxException { String url = "/v2/regions/" + testRegion + "/variants?species=mmusculus&assembly=grcm38"; ResponseEntity<String> response = restTemplate.getForEntity(url, String.class); assertEquals(status, response.getStatusCode()); Configuration configuration = Configuration.defaultConfiguration() .jsonProvider(new JacksonJsonProvider()) .mappingProvider(new JacksonMappingProvider(objectMapper)) .addOptions(Option.SUPPRESS_EXCEPTIONS); List<Variant> variantList = JsonPath.using(configuration).parse(response.getBody()) .read( "$['_embedded']['variantList']", new TypeRef<List<Variant>>() {}); if (variantList == null) { assertEquals(0,expectedVariants); return null; } assertEquals(expectedVariants,variantList.size()); List<String> chromosomes = new ArrayList<>(); variantList.forEach(variant -> { chromosomes.add(variant.getChromosome()); }); return chromosomes; }
Source:
<code>public void setCurrentHeading(double headingInDegrees){ <START> currentHeading.setValue(headingInDegrees); <END> }</code><technical_language>This break heading tracking if called, right</technical_language>

Target:
public void setCurrentHeading(double headingInDegrees){ double rawHeading = getRobotYaw().getValue(); headingOffset = -rawHeading + headingInDegrees; }
Source:
<code>private void autofillFromBuildConfig() { String userName = BuildConfig.DOTCOM_LOGIN_USERNAME; <START> String password = BuildConfig.DOTCOM_LOGIN_PASSWORD; <END> if (!TextUtils.isEmpty(userName)) { mUsernameEditText.setText(userName); AppLog.d(T.NUX, "Autofilled username from build config"); } if (!TextUtils.isEmpty(password)) { mPasswordEditText.setText(password); AppLog.d(T.NUX, "Autofilled password from build config"); } }</code><technical_language>do some extra work get reflection wp.dotcom_login_username wp.dotcom_login_password optional in property file</technical_language>

Target:
private void autofillFromBuildConfig() { if (!BuildConfig.DEBUG) return; String userName = (String) WordPress.getBuildConfigValue(getActivity().getApplication(), "DEBUG_DOTCOM_LOGIN_USERNAME"); String password = (String) WordPress.getBuildConfigValue(getActivity().getApplication(), "DEBUG_DOTCOM_LOGIN_PASSWORD"); if (!TextUtils.isEmpty(userName)) { mUsernameEditText.setText(userName); AppLog.d(T.NUX, "Autofilled username from build config"); } if (!TextUtils.isEmpty(password)) { mPasswordEditText.setText(password); AppLog.d(T.NUX, "Autofilled password from build config"); } }
Source:
<code>public Collection<ArticleRevision> getArticlesRevisedOn(LocalDate fromDate, LocalDate toDate) { return hibernateTemplate.execute(session -> { Query query = session.createQuery("" + "SELECT ar " + "FROM ArticleRevision ar " + "INNER JOIN ar.ingestion ai " + "INNER JOIN ar.ingestion.article at " + "WHERE ai.revisionDate >= :fromDate AND ai.revisionDate < :toDate " + "AND ar.revisionId IS NOT NULL"); query.setParameter("fromDate", java.sql.Date.valueOf(fromDate)); <START> query.setParameter("toDate", java.sql.Date.valueOf(toDate.plusDays(1))); <END> return (Collection<ArticleRevision>) query.list(); }); }</code><technical_language>need change date fields (no time element)</technical_language>

Target:
public Collection<ArticleRevision> getArticlesRevisedOn(LocalDate fromDate, LocalDate toDate) { return hibernateTemplate.execute(session -> { Query query = session.createQuery("" + "SELECT ar " + "FROM ArticleRevision ar " + "INNER JOIN ar.ingestion ai " + "INNER JOIN ar.ingestion.article at " + "WHERE ai.revisionDate >= :fromDate AND ai.revisionDate <= :toDate " + "AND ar.revisionId IS NOT NULL"); query.setParameter("fromDate", java.sql.Date.valueOf(fromDate)); query.setParameter("toDate", java.sql.Date.valueOf(toDate)); return (Collection<ArticleRevision>) query.list(); }); }
Source:
<code>private Response responseWithInvalidCardDetails() { <START> return ResponseUtil.badResponse(String.format("Values do not match expected format/length.")); <END> }</code><technical_language>String.format parameters -> please remove</technical_language>

Target:
private Response responseWithInvalidCardDetails() { return ResponseUtil.badResponse("Values do not match expected format/length."); }
Source:
<code>protected void setUp() throws Exception { super.setUp(); activator.setProfileActivationFilePathInterpolator( new ProfileActivationFilePathInterpolator().setPathTranslator( new DefaultPathTranslator() ) ); context.setProjectDirectory( new File( PATH ) ); File file = new File( PATH + FILE ); if ( !file.exists() ) { if ( !file.createNewFile() ) { <START> throw new RuntimeException( String.format( "Can't create %s", file ) ); <END> } } }</code><technical_language>String.format add here. String concatenation is simpler clearer. Possibly IOException simply fail</technical_language>

Target:
protected void setUp() throws Exception { super.setUp(); activator.setProfileActivationFilePathInterpolator( new ProfileActivationFilePathInterpolator().setPathTranslator( new DefaultPathTranslator() ) ); context.setProjectDirectory( new File( PATH ) ); File file = new File( PATH + FILE ); if ( !file.exists() ) { if ( !file.createNewFile() ) { throw new IOException( "Can't create " + file ); } } }
Source:
<code>private static void checkSuspiciousCall(CallExpression callExpression, Symbol calleeSymbol, SubscriptionContext ctx) { Tree parent = TreeUtils.firstAncestorOfKind(callExpression, Tree.Kind.ASSIGNMENT_STMT, Tree.Kind.CALL_EXPR); if (parent == null) { return; } if (parent.is(Tree.Kind.ASSIGNMENT_STMT)) { <START> AssignmentStatement parentAssignment = (AssignmentStatement) parent; <END> if (parentAssignment.lhsExpressions().get(0).expressions().get(0) instanceof HasSymbol) { Symbol symbol = ((HasSymbol) parentAssignment.lhsExpressions().get(0).expressions().get(0)).symbol(); if (symbol == null) { return; } if(hasUnsafeContextUsage(calleeSymbol, symbol)) { ctx.addIssue(callExpression, MESSAGE); } } } else if (opensUnsecureConnection(calleeSymbol, (CallExpression) parent)) { ctx.addIssue(callExpression, MESSAGE); } }</code><technical_language>create var for ((AssignmentStatement) parent).lhsExpressions().get(0).expressions().get(0)</technical_language>

Target:
private static void checkSuspiciousCall(CallExpression callExpression, Symbol calleeSymbol, SubscriptionContext ctx) { Tree parent = TreeUtils.firstAncestorOfKind(callExpression, Tree.Kind.ASSIGNMENT_STMT, Tree.Kind.CALL_EXPR); if (parent == null) { return; } if (parent.is(Tree.Kind.ASSIGNMENT_STMT)) { Expression lhs = ((AssignmentStatement) parent).lhsExpressions().get(0).expressions().get(0); if (lhs instanceof HasSymbol) { Symbol symbol = ((HasSymbol) lhs).symbol(); if (symbol == null) { return; } if (isUnsafeContext(calleeSymbol, symbol)) { ctx.addIssue(callExpression, MESSAGE); } } } else if (opensUnsecureConnection(calleeSymbol, (CallExpression) parent)) { ctx.addIssue(callExpression, MESSAGE); } }
Source:
<code>public void updateComments(String courseId, CommentSendingState oldState, CommentSendingState newState) { Assumption.assertNotNull(Const.StatusCodes.DBLEVEL_NULL_INPUT, courseId); List<Comment> comments = getCommentEntitiesForSendingState(courseId, oldState); for (Comment comment : comments) { <START> if (!JDOHelper.isDeleted(comment)) { <END> comment.setSendingState(newState); } } log.info(Const.SystemParams.COURSE_BACKUP_LOG_MSG + courseId); getPM().close(); }</code><technical_language>Hmm, checking this update method? Do other similar methods do this</technical_language>

Target:
public void updateComments(String courseId, CommentSendingState oldState, CommentSendingState newState) { Assumption.assertNotNull(Const.StatusCodes.DBLEVEL_NULL_INPUT, courseId); List<Comment> comments = getCommentEntitiesForSendingState(courseId, oldState); for (Comment comment : comments) { comment.setSendingState(newState); } log.info(Const.SystemParams.COURSE_BACKUP_LOG_MSG + courseId); getPM().close(); }
Source:
<code>public Function newInstance(ObjList<Function> args, int position, CairoConfiguration configuration) { Function precision = args.getQuick(1); if (precision.isConstant()) { int precisionValue = precision.getInt(null); <START> return (precisionValue != Numbers.INT_NaN && precisionValue * precisionValue <= Numbers.pow10max * Numbers.pow10max) ? <END> new FuncConst(position, args.getQuick(0), precision) : new DoubleConstant(position, Double.NaN); } return new Func(position, args.getQuick(0), args.getQuick(1)); }</code><technical_language>is secret comparing squared values, compare precisionValue pow10max directly</technical_language>

Target:
public Function newInstance(ObjList<Function> args, int position, CairoConfiguration configuration) { Function scale = args.getQuick(1); if (scale.isConstant()) { int scaleValue = scale.getInt(null); if (scaleValue != Numbers.INT_NaN) { if (scaleValue > -1 && scaleValue < Numbers.pow10max) { return new FuncPosConst(position, args.getQuick(0), scaleValue); } if (scaleValue < 0 && scaleValue > -Numbers.pow10max) { return new FuncNegConst(position, args.getQuick(0), -scaleValue); } } return new DoubleConstant(position, Double.NaN); } return new Func(position, args.getQuick(0), args.getQuick(1)); }
Source:
<code>public FeatureDefinitionData[] getFeatureDefinitionData() { FeatureDefinitionData[] featureDefitionArray = null; List<ArtifactReadable> featureDefinitionArts = orcsApi.getQueryFactory().fromBranch(branch).andIsOfType( CoreArtifactTypes.FeatureDefinition).getResults().getList(); for (ArtifactReadable art : featureDefinitionArts) { String json = art.getSoleAttributeAsString(CoreAttributeTypes.GeneralStringData); ObjectMapper mapper = new ObjectMapper(); try { featureDefitionArray = mapper.readValue(json, FeatureDefinitionData[].class); } catch (Exception ex1) { <START> System.out.println(ex1); <END> } } return featureDefitionArray; }</code><technical_language>allow exception thrown is unrecoverable</technical_language>

Target:
public FeatureDefinitionData[] getFeatureDefinitionData() { FeatureDefinitionData[] featureDefitionArray = null; List<ArtifactReadable> featureDefinitionArts = orcsApi.getQueryFactory().fromBranch(branch).andIsOfType( CoreArtifactTypes.FeatureDefinition).getResults().getList(); for (ArtifactReadable art : featureDefinitionArts) { String json = art.getSoleAttributeAsString(CoreAttributeTypes.GeneralStringData); ObjectMapper mapper = new ObjectMapper(); try { featureDefitionArray = mapper.readValue(json, FeatureDefinitionData[].class); } catch (Exception e) { throw new OseeCoreException(e, String.format("Invalid JSON in general string data attribute on artifactId [%s]", art.getId())); } } return featureDefitionArray; }
Source:
<code>public ZonedDateTime getZonedDateTime() { <START> return ZonedDateTime.of(zonedDateTime.toLocalDateTime(), zonedDateTime.getZone()); <END> }</code><technical_language>simple return zonedDateTime;? immutable object is need create duplicated of it</technical_language>

Target:
public ZonedDateTime getZonedDateTime() { return zonedDateTime; }
Source:
<code>public void readEurekaConfig() { String xml = HAZELCAST_START_TAG + " <network>\n" + " <join>\n" + " <multicast enabled=\"false\"/>\n" + " <tcp-ip enabled=\"false\"/>\n" + " <eureka enabled=\"true\">\n" + " <use-public-ip>true</use-public-ip>\n" + " <namespace>hazelcast</namespace>\n" + " <shouldUseDns>false</shouldUseDns>\n" + " <serviceUrl.default>http://localhost:8082/eureka</serviceUrl.default>\n" + " </eureka>\n" + " </join>\n" + " </network>" + HAZELCAST_END_TAG; Config config = buildConfig(xml); EurekaConfig eurekaConfig = config.getNetworkConfig().getJoin().getEurekaConfig(); assertTrue(eurekaConfig.isEnabled()); assertTrue(eurekaConfig.isUsePublicIp()); assertEquals("hazelcast", eurekaConfig.getProperty("namespace")); <START> assertEquals("false", eurekaConfig.getProperty("shouldUseDns")); <END> }</code><technical_language>please add assertion for serviceUrl.default too</technical_language>

Target:
public void readEurekaConfig() { String xml = HAZELCAST_START_TAG + " <network>\n" + " <join>\n" + " <multicast enabled=\"false\"/>\n" + " <tcp-ip enabled=\"false\"/>\n" + " <eureka enabled=\"true\">\n" + " <use-public-ip>true</use-public-ip>\n" + " <namespace>hazelcast</namespace>\n" + " <shouldUseDns>false</shouldUseDns>\n" + " <serviceUrl.default>http://localhost:8082/eureka</serviceUrl.default>\n" + " </eureka>\n" + " </join>\n" + " </network>" + HAZELCAST_END_TAG; Config config = buildConfig(xml); EurekaConfig eurekaConfig = config.getNetworkConfig().getJoin().getEurekaConfig(); assertTrue(eurekaConfig.isEnabled()); assertTrue(eurekaConfig.isUsePublicIp()); assertEquals("hazelcast", eurekaConfig.getProperty("namespace")); assertEquals("false", eurekaConfig.getProperty("shouldUseDns")); assertEquals("http://localhost:8082/eureka", eurekaConfig.getProperty("serviceUrl.default")); }
Source:
<code>public void whenReadEventsForBlockedConsumerThen403() throws Exception { readEvents() .then() .statusCode(HttpStatus.OK.value()); SettingsControllerAT.blacklist(EVENT_TYPE_NAME, BlacklistService.Type.CONSUMER_ET); <START> Thread.sleep(100); <END> readEvents() .then() .statusCode(403) .body("detail", Matchers.equalTo("Application or event type is blocked")); SettingsControllerAT.whitelist(EVENT_TYPE_NAME, BlacklistService.Type.CONSUMER_ET); readEvents() .then() .statusCode(HttpStatus.OK.value()); }</code><technical_language>wait specific conditions a retry strategy instead of a generic sleep for arbitrary amount of time</technical_language>

Target:
public void whenReadEventsForBlockedConsumerThen403() throws Exception { readEvents() .then() .statusCode(HttpStatus.OK.value()); SettingsControllerAT.blacklist(EVENT_TYPE_NAME, BlacklistService.Type.CONSUMER_ET); TestUtils.waitFor(() -> readEvents() .then() .statusCode(403) .body("detail", Matchers.equalTo("Application or event type is blocked")), 1000, 200); SettingsControllerAT.whitelist(EVENT_TYPE_NAME, BlacklistService.Type.CONSUMER_ET); readEvents() .then() .statusCode(HttpStatus.OK.value()); }
Source:
<code>public List<ResourceJournalEntry> findByNameStartsWith(String name) { <START> Query findByName = query(where("name").regex(name)); <END> return mongoTemplate.find(findByName, ResourceJournalEntry.class, collectionName); }</code><technical_language>name + ".*"for a start semantic</technical_language>

Target:
public List<ResourceJournalEntry> findByNameStartsWith(String name) { Query findByName = query(where("name").regex("^" + name)); return mongoTemplate.find(findByName, ResourceJournalEntry.class, collectionName); }
Source:
<code>public void run() { <START> readMemoryInfoFile(); <END> }</code><technical_language>good add a catch clause log out exception easier debug</technical_language>

Target:
public void run() { try { readMemoryInfoFile(); } catch (Throwable t) { logger.error("error calling readMemoryInfoFile", t); } }
Source:
<code>public Statement apply(Statement base, Description description) { final Flaky annotation = description.getAnnotation(Flaky.class); if (annotation != null) { <START> if ( ! isReviewDatePassed(annotation)) { <END> return new RetryingStatement(base, description); } } return new Statement() { @Override public void evaluate() throws Throwable { base.evaluate(); } }; }</code><technical_language>Funny this code IMO easier read if method is extracted: java if (LocalDate.now().isBefore(reviewDate)) { // retry }</technical_language>

Target:
public Statement apply(Statement base, Description description) { final Flaky annotation = description.getAnnotation(Flaky.class); if (annotation == null) { return base; } if (annotation.githubIssueUrl().trim().length() == 0) { throw new IllegalArgumentException("A GitHub issue URL must be set for usages of the @Flaky annotation"); } final int maxTries = annotation.maxTries(); if (maxTries < 1) { throw new IllegalArgumentException("@Flaky annotation maxTries must be at least one"); } final LocalDate reviewDate; try { reviewDate = LocalDate.parse(annotation.reviewDate()); } catch (DateTimeParseException e) { throw new IllegalArgumentException("@Flaky reviewDate could not be parsed. Please provide a date in yyyy-mm-dd format"); } if ( LocalDate.now().isBefore(reviewDate) ) { return new RetryingStatement(base, description, maxTries); } else { return base; } }
Source:
<code>public List<OSThread> getThreadDetails() { <START> return null; <END> }</code><technical_language>return Collections.emptyList() here. I try deliberate nulls</technical_language>

Target:
public List<OSThread> getThreadDetails() { return Collections.emptyList(); }
Source:
<code>public static String generateResponse(String realm, String authnType) throws Exception { GenerateResponse.intializeSAML(); <START> Response response = GenerateResponse.generateResponse(false); <END> String encoded_response = OpenSAMLUtils.compressAndEncodeString(OpenSAMLUtils.SAMLObjectToString(response), false); return String.format("%s realm=\"%s\" saml-authn-request=\"%s\"", authnType, realm, encoded_response); }</code><technical_language>is typo in intializeSAML initialize</technical_language>

Target:
public static String generateResponse(String realm, String authnType) throws Exception { GenerateResponse.initializeSAML(); Response response = GenerateResponse.generateResponse(false); String encoded_response = OpenSAMLUtils.compressAndEncodeString(OpenSAMLUtils.SAMLObjectToString(response), false); return String.format("%s realm=\"%s\" saml-authn-request=\"%s\"", authnType, realm, encoded_response); }
Source:
<code>public static boolean isIdentifier(String str) { <START> boolean isIdentifier = !str.isEmpty() && Character.isJavaIdentifierStart(str.charAt(0)); <END> for (int i = 1; isIdentifier && i < str.length(); i++) { isIdentifier = Character.isJavaIdentifierPart(str.charAt(i)); } return isIdentifier; }</code><technical_language>Code a bit weird this. I !str.isEmpty() a separate if statement, charAt(0) part of for loop. reading easier</technical_language>

Target:
public static boolean isIdentifier(String str) { boolean isIdentifier = !str.isEmpty(); for (int i = 0; isIdentifier && i < str.length(); i++) { if (i == 0) { isIdentifier = Character.isJavaIdentifierStart(str.charAt(0)); } else { isIdentifier = Character.isJavaIdentifierPart(str.charAt(i)); } } return isIdentifier; }
Source:
<code>public String toString() { <START> String checksString = Optional.ofNullable(checks).stream() .flatMap(Collection::stream) .map(CheckEntry::toString) .collect(Collectors.joining(",")); String pluginStatString = Optional.ofNullable(pluginStat).stream() .flatMap(Collection::stream) .map(PluginStatusEntry::toString) .collect(Collectors.joining(",")); <END> return "CheckResult{" + "status='" + status + "\'," + "host='" + host + "\'," + "checks={" + checksString + "}," + "plugin_stat={" + pluginStatString + "}" + '}'; }</code><technical_language>I this is necessary, CheckEntry PluginStatusEntry toString implemented List implementation care of that. working well? If I this simpler solution: String checksString = StringUtils.join(checks, ",");</technical_language>

Target:
public String toString() { return "CheckResult{" + "status='" + status + "\'," + "host='" + host + "\'," + "checks={" + StringUtils.join(checks, ",") + "}," + "plugin_stat={" + StringUtils.join(pluginStat, ",") + "}" + '}'; }
Source:
<code>private void prepareReplication() { try { if (m_consumerDRGateway != null) { if (m_config.m_startAction != StartAction.CREATE) { Pair<Byte, List<MeshMemberInfo>> expectedClusterMembers = m_producerDRGateway.getInitialConversations(); m_consumerDRGateway.setInitialConversationMembership(expectedClusterMembers.getFirst(), expectedClusterMembers.getSecond()); } <START> m_consumerDRGateway.initialize(m_config.m_startAction != StartAction.CREATE && m_config.m_startAction != StartAction.JOIN); <END> } if (m_producerDRGateway != null) { m_producerDRGateway.startListening(m_catalogContext.cluster.getDrproducerenabled(), VoltDB.getReplicationPort(m_catalogContext.cluster.getDrproducerport()), VoltDB.getDefaultReplicationInterface()); } } catch (Exception ex) { CoreUtils.printPortsInUse(hostLog); VoltDB.crashLocalVoltDB("Failed to initialize DR", false, ex); } }</code><technical_language>This means a joining node initialize consumer side resumeReplication set false, is correct if original cluster started "recover". I join handled rejoin, means resumeReplication true, this change is needed. rebase master this is merged in Dong's change</technical_language>

Target:
private void prepareReplication() { try { if (m_consumerDRGateway != null) { if (m_config.m_startAction != StartAction.CREATE) { Pair<Byte, List<MeshMemberInfo>> expectedClusterMembers = m_producerDRGateway.getInitialConversations(); m_consumerDRGateway.setInitialConversationMembership(expectedClusterMembers.getFirst(), expectedClusterMembers.getSecond()); } m_consumerDRGateway.initialize(m_config.m_startAction, willDoActualRecover()); } if (m_producerDRGateway != null) { m_producerDRGateway.startListening(m_catalogContext.cluster.getDrproducerenabled(), VoltDB.getReplicationPort(m_catalogContext.cluster.getDrproducerport()), VoltDB.getDefaultReplicationInterface()); } } catch (Exception ex) { CoreUtils.printPortsInUse(hostLog); VoltDB.crashLocalVoltDB("Failed to initialize DR", false, ex); } }
Source:
<code><START> private void runningSpawnParticle(final net.minecraft.world.World world, final IParticleData particleTypes, final double xCoord, final double yCoord, final double zCoord, <END> final double xOffset, final double yOffset, final double zOffset) { if (!this.vanish$isVanished) { this.world.addParticle(particleTypes, xCoord, yCoord, zCoord, xOffset, yOffset, zOffset); } }</code><technical_language>here, fix prefixing</technical_language>

Target:
private void impl$runningSpawnParticle(final net.minecraft.world.World world, final IParticleData particleTypes, final double xCoord, final double yCoord, final double zCoord, final double xOffset, final double yOffset, final double zOffset) { if (!this.vanish$isVanished) { this.world.addParticle(particleTypes, xCoord, yCoord, zCoord, xOffset, yOffset, zOffset); } }