auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public ImmutableValue<Text> author() { <START> return new ImmutableSpongeValue<Text>(Keys.BOOK_AUTHOR, this.getValue()); <END> }</code><technical_language>Is default value</technical_language>

Target:
public ImmutableValue<Text> author() { return author; }
Source:
<code>private List<ParameterOption> getIPv4Addresses() { ArrayList<ParameterOption> interfaceOptions = new ArrayList<>(); <START> HashSet<String> subnets = new HashSet<>(); <END> try { final Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { final NetworkInterface current = interfaces.nextElement(); if (!current.isUp() || current.isLoopback() || current.isVirtual()) { continue; } for (InterfaceAddress ifAddr : current.getInterfaceAddresses()) { InetAddress addr = ifAddr.getAddress(); if (addr.isLoopbackAddress() || (addr instanceof Inet6Address)) { continue; } String ipv4Address = addr.getHostAddress(); String subNetString = NetUtil.getIpv4NetAddress(ipv4Address, ifAddr.getNetworkPrefixLength()) + "/" + String.valueOf(ifAddr.getNetworkPrefixLength()); subnets.add(subNetString); } } } catch (SocketException ex) { logger.error("Could not retrieve network interface: {}", ex.getMessage(), ex); return null; } for (String subnet : subnets) { ParameterOption po = new ParameterOption(subnet, subnet); interfaceOptions.add(po); } return interfaceOptions; }</code><technical_language>Change occurrence Set</technical_language>

Target:
private List<ParameterOption> getIPv4Addresses() { List<ParameterOption> interfaceOptions = new ArrayList<>(); Set<String> subnets = new HashSet<>(); try { final Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { final NetworkInterface current = interfaces.nextElement(); if (!current.isUp() || current.isLoopback() || current.isVirtual()) { continue; } for (InterfaceAddress ifAddr : current.getInterfaceAddresses()) { InetAddress addr = ifAddr.getAddress(); if (addr.isLoopbackAddress() || (addr instanceof Inet6Address)) { continue; } String ipv4Address = addr.getHostAddress(); try { @SuppressWarnings("null") String subNetString = NetUtil.getIpv4NetAddress(ipv4Address, ifAddr.getNetworkPrefixLength()) + "/" + String.valueOf(ifAddr.getNetworkPrefixLength()); subnets.add(subNetString); } catch (IllegalArgumentException ex) { logger.error("Could not calculate network address: Ignoring IP {}", ex.getMessage(), ipv4Address, ex); } } } } catch (SocketException ex) { logger.error("Could not retrieve network interface: {}", ex.getMessage(), ex); return null; } for (String subnet : subnets) { ParameterOption po = new ParameterOption(subnet, subnet); interfaceOptions.add(po); } return interfaceOptions; }
Source:
<code>long webkit_download_decide_destination(long download, long suggested_filename) { assert WEBKIT2 : WebKitGTK.Webkit2AssertMsg; final String fileName = getString(suggested_filename); if (!browser.isDisposed ()) { FileDialog dialog = new FileDialog (browser.getShell (), SWT.SAVE); dialog.setFileName (fileName); String title = Compatibility.getMessage ("SWT_FileDownload"); dialog.setText (title); String path = dialog.open (); if (path != null) { path = URI_FILEROOT + path; byte[] uriBytes = Converter.wcsToMbcs (path, true); WebKitGTK.webkit_download_set_allow_overwrite (download, true); WebKitGTK.webkit_download_set_destination (download, uriBytes); OS.g_object_ref <START> (download); <END> browser.getDisplay().asyncExec(() -> { openDownloadWindow (download, fileName); }); } } return 0; }</code><technical_language>checking, is this de-referenced anywhere</technical_language>

Target:
long webkit_download_decide_destination(long download, long suggested_filename) { assert WEBKIT2 : WebKitGTK.Webkit2AssertMsg; final String fileName = getString(suggested_filename); if (!browser.isDisposed ()) { FileDialog dialog = new FileDialog (browser.getShell (), SWT.SAVE); dialog.setFileName (fileName); String title = Compatibility.getMessage ("SWT_FileDownload"); dialog.setText (title); String path = dialog.open (); if (path != null) { path = URI_FILEROOT + path; byte[] uriBytes = Converter.wcsToMbcs (path, true); WebKitGTK.webkit_download_set_allow_overwrite (download, true); WebKitGTK.webkit_download_set_destination (download, uriBytes); openDownloadWindow (download, fileName); } } return 0; }
Source:
<code>public MergingPageIterator( Collection<Iterator<Page>> iterators, List<Type> types, List<Integer> sortFields, List<SortOrder> sortOrders) { requireNonNull(sortFields, "sortFields is null"); requireNonNull(sortOrders, "sortOrders is null"); checkArgument(sortFields.size() == sortOrders.size(), "sortFields and sortOrders size must match"); this.types = ImmutableList.copyOf(requireNonNull(types, "types is null")); this.sortFields = ImmutableList.copyOf(sortFields); this.sortOrders = ImmutableList.copyOf(sortOrders); this.pageBuilder = new PageBuilder(types); iterators.stream() .map(PagePositionIterator::new) .filter(PagePositionIterator::hasNext) <START> .forEach(queue::add); <END> }</code><technical_language>reuse: <LINK_0> construct PagePosition iterator</technical_language>

Target:
public MergingPageIterator( Collection<Iterator<Page>> iterators, List<Type> types, List<Integer> sortFields, List<SortOrder> sortOrders) { requireNonNull(sortFields, "sortFields is null"); requireNonNull(sortOrders, "sortOrders is null"); checkArgument(sortFields.size() == sortOrders.size(), "sortFields and sortOrders size must match"); this.types = ImmutableList.copyOf(requireNonNull(types, "types is null")); this.sortFields = ImmutableList.copyOf(sortFields); this.sortOrders = ImmutableList.copyOf(sortOrders); this.pageBuilder = new PageBuilder(types); this.pagePositions = mergeSorted( iterators.stream() .map(pages -> concat(transform(pages, PagePositionIterator::new))) .collect(toList()), naturalOrder()); }
Source:
<code>public void onStop() { super.onStop(); isActivityStarted = false; <START> AppConstants.videoListDeleteMode = false; <END> try { if (playerFragment != null) { playerFragment.onStop(); } } catch (Exception ex) { logger.error(ex); } }</code><technical_language>remove this statement, this variable is else</technical_language>

Target:
public void onStop() { super.onStop(); isActivityStarted = false; try { if (playerFragment != null) { playerFragment.onStop(); } } catch (Exception ex) { logger.error(ex); } }
Source:
<code><START> public void insertTemplateTitle(String title) { <END> wait.forElementClickable(editTemplateTitleInput); editTemplateTitleInput.sendKeys(title); }</code><technical_language>return InfoboxBuilderPage</technical_language>

Target:
public InfoboxBuilderPage insertTemplateTitle(String title) { wait.forElementClickable(editTemplateTitleInput); editTemplateTitleInput.sendKeys(title); return this; }
Source:
<code>public static void addServiceProvider (IInvocationContext context, IProblemLocation problem, Collection<ICommandAccess> proposals) throws CoreException { ASTNode node= problem.getCoveredNode(context.getASTRoot()); if (! (node instanceof Name)) { return; } Name name= (Name) node; ITypeBinding typeBinding= name.resolveTypeBinding(); if (typeBinding != null) { ICompilationUnit targetCU= ASTResolving.findCompilationUnitForBinding(context.getCompilationUnit(), context.getASTRoot(), typeBinding); IType type= context.getCompilationUnit().getJavaProject().findType(typeBinding.getQualifiedName()); ITypeHierarchy th= type.newTypeHierarchy(null); IType[] subTypes= th.getAllSubtypes(type); List<IType> typeProposals= new ArrayList<>(Arrays.asList(type)); typeProposals.addAll(Arrays.asList(subTypes)); Image image= JavaPluginImages.get(JavaPluginImages.IMG_MISC_PUBLIC); for (IType <START> t : <END> typeProposals) { proposals.add(new NewProviderMethodDeclaration( Messages.format(CorrectionMessages.LocalCorrectionsSubProcessor_add_provider_method_description, t.getElementName()), targetCU, context.getASTRoot(), typeBinding, IProposalRelevance.CREATE_METHOD, image, t.getElementName())); } } }</code><technical_language>need filter types, propose accessible in current module</technical_language>

Target:
public static void addServiceProvider (IInvocationContext context, IProblemLocation problem, Collection<ICommandAccess> proposals) throws CoreException { ASTNode node= problem.getCoveredNode(context.getASTRoot()); if (! (node instanceof Name) && ! (node.getParent() instanceof ProvidesDirective)) { return; } Name name= (Name) node; ProvidesDirective prov= (ProvidesDirective) name.getParent(); ITypeBinding targetBinding= name.resolveTypeBinding(); ITypeBinding serviceBinding= prov.getName().resolveTypeBinding(); if (targetBinding != null && serviceBinding != null) { ICompilationUnit targetCU= ASTResolving.findCompilationUnitForBinding(context.getCompilationUnit(), context.getASTRoot(), targetBinding); IJavaProject proj= context.getCompilationUnit().getJavaProject(); IType type= proj.findType(serviceBinding.getQualifiedName()); ITypeHierarchy th= type.newTypeHierarchy(null); IType[] subTypes= th.getAllSubtypes(type); List<IType> typeProposals= new ArrayList<> (Arrays.asList(type)); typeProposals.addAll(Arrays.asList(subTypes)); Image image= JavaPluginImages.get(JavaPluginImages.IMG_MISC_PUBLIC); for (IType t : typeProposals) { if (proj.findType(t.getFullyQualifiedName()) != null && !Flags.isPrivate(t.getFlags())) { proposals.add(new NewProviderMethodDeclaration( Messages.format(CorrectionMessages.LocalCorrectionsSubProcessor_add_provider_method_description, t.getElementName()), targetCU, context.getASTRoot(), targetBinding, IProposalRelevance.CREATE_METHOD, image, t.getElementName())); } } } }
Source:
<code>public boolean apply(Game game, Ability source) { Player player = game.getPlayer(targetPointer.getFirst(game, source)); Player controller = game.getPlayer(source.getControllerId()); if (player == null || controller == null) { return false; } if (player.getHand().isEmpty()) { return true; } Cards revealedCards = new CardsImpl(); revealedCards.addAll(player.getHand()); Card sourceCard = game.getCard(source.getSourceId()); player.revealCards(sourceCard != null ? sourceCard.getIdName() : "Discard", revealedCards, game); if (!controller.chooseUse(outcome, "Choose a a card to discard? (Otherwise " + player.getLogName() + " has to discard 2 cards).", source, game)) { player.discard(2, false, source, game); return true; } TargetCard target = new TargetCard(1, Zone.HAND, new FilterNonlandCard()); if (controller.choose(Outcome.Benefit, revealedCards, target, game)) { Card card = revealedCards.get(target.getFirstTarget(), game); player.discard(card, source, game); <START> } <END> return true; }</code><technical_language>remark: missing "no choose" branch -- a bug in current version, potentially exploited in feature (if player skip choose dialog skip discards get advantage, #4263 example). I recommends in mind xmage's choose dialog logic (do apply good effect force apply bad effect for "cheated" user)</technical_language>

Target:
public boolean apply(Game game, Ability source) { Player player = game.getPlayer(targetPointer.getFirst(game, source)); Player controller = game.getPlayer(source.getControllerId()); if (player == null || controller == null) { return false; } if (player.getHand().isEmpty()) { return true; } Cards revealedCards = new CardsImpl(); revealedCards.addAll(player.getHand()); Card sourceCard = game.getCard(source.getSourceId()); player.revealCards(sourceCard != null ? sourceCard.getIdName() : "Discard", revealedCards, game); if (!controller.chooseUse(outcome, "Choose a card to discard? (Otherwise " + player.getLogName() + " has to discard 2 cards).", source, game)) { player.discard(2, false, source, game); return true; } TargetCard target = new TargetCard(1, Zone.HAND, new FilterNonlandCard()); if (controller.choose(Outcome.Benefit, revealedCards, target, game)) { Card card = revealedCards.get(target.getFirstTarget(), game); player.discard(card, source, game); } return true; }
Source:
<code>public static Code valueOf(final int value) { int classCode = getCodeClass(value); int detailCode = getCodeDetail(value); if (classCode > 0) { throw new MessageFormatException(String.format("Not a CoAP request code: %s", formatCode(classCode, detailCode))); } switch (detailCode) { case 1: return GET; case 2: return POST; case 3: return PUT; case 4: return DELETE; case 5: return FETCH; case 6: return PATCH; <START> <END> default: throw new MessageFormatException(String.format("Unknown CoAP request code: %s", formatCode(classCode, detailCode))); } }</code><technical_language>Please, try omit changing files for formatting</technical_language>

Target:
public static Type valueOf(final int value) { switch (value) { case 0: return CON; case 1: return NON; case 2: return ACK; case 3: return RST; default: throw new IllegalArgumentException("Unknown CoAP type " + value); } }
Source:
<code>public boolean getHasIngressFlows() { if (m_lastIngressFlow == null) { return false; } <START> return (new Date().getTime() - m_lastIngressFlow.getTime()) / 1000 < OnmsSnmpInterface.MAX_FLOW_AGE; <END> }</code><technical_language>new Date().getTime() replaced System.currentTimeMillis()</technical_language>

Target:
public boolean getHasIngressFlows() { if (m_lastIngressFlow == null) { return false; } return (System.currentTimeMillis() - m_lastIngressFlow.getTime()) / 1000 < OnmsSnmpInterface.MAX_FLOW_AGE; }
Source:
<code>public void shouldShutdownTask() throws Exception { mockTaskServiceWrapper.scheduledTasks.add(testTask); deserialize(handle(newPostRequest(getURI(), "{\"action\": \"shutdowntask\", \"tasks\":[\"" + getTestTaskName() + "\"]}"))); assertThat(mockTaskServiceWrapper.scheduledTasks, not(hasItem(testTask))); <START> } <END></code><technical_language>task shutdown shutdown command</technical_language>

Target:
public void shouldShutdownTask() throws Exception { mockTaskServiceWrapper.scheduledTasks.add(testTask); assertThat(mockTaskServiceWrapper.scheduledTasks, hasItem(testTask)); deserialize(handle(newPostRequest(getURI(), "{\"action\": \"shutdowntask\", \"tasks\":[\"" + getTestTaskName() + "\"]}"))); assertThat(mockTaskServiceWrapper.scheduledTasks, not(hasItem(testTask))); }
Source:
<code>private static void checkZoomLevel(long zoomLevel) { checkCondition(zoomLevel > 0, "Zoom level must be > 0"); <START> checkCondition(zoomLevel <= MAX_ZOOM_LEVEL, "Zoom level must be <= %d", MAX_ZOOM_LEVEL); <END> }</code><technical_language>%s need specific formatting %02d. safer works for object</technical_language>

Target:
private static void checkZoomLevel(long zoomLevel) { checkCondition(zoomLevel > 0, ZOOM_LEVEL_TOO_SMALL); checkCondition(zoomLevel <= MAX_ZOOM_LEVEL, ZOOM_LEVEL_TOO_LARGE); }
Source:
<code>@Override public SimpleFeature apply(SimpleFeature input) { Geometry g = (Geometry) input.getDefaultGeometry(); Geometry newGeometry; <START> if ((g != null) || (g instanceof Point) || (g instanceof MultiPoint) || (!g <END> .isEmpty())) { if (g instanceof MultiPolygon) { newGeometry = simplify((MultiPolygon) g); } else if (g instanceof Polygon) { newGeometry = simplify((Polygon) g); } else { DouglasPeuckerSimplifier tss = new DouglasPeuckerSimplifier(g); tss.setDistanceTolerance(distance); tss.setEnsureValid(false); newGeometry = tss.getResultGeometry(); } input.setDefaultGeometry(newGeometry); } return input; }</code><technical_language>I _think_ intended negate two?: || (g instanceof Point) || (g instanceof MultiPoint), in, geoms caught due !g.isEmpty() wanted bypass points? If so, if( g != null && !g.isEmpty() && g.getDimension() > 0){..</technical_language>

Target:
@Override public SimpleFeature apply(SimpleFeature input) { Geometry g = (Geometry) input.getDefaultGeometry(); Geometry newGeometry; if ((g == null) || (g.isEmpty())) return input; if (g.getDimension() == 2) { if (g instanceof MultiPolygon) { newGeometry = simplify((MultiPolygon) g); } else { newGeometry = simplify((Polygon) g); } } else { DouglasPeuckerSimplifier tss = new DouglasPeuckerSimplifier(g); tss.setDistanceTolerance(distance); tss.setEnsureValid(false); newGeometry = tss.getResultGeometry(); } input.setDefaultGeometry(newGeometry); return input; }
Source:
<code>private Boolean connectToServer(final Server s, final PrimeConnectionListener listener) { int tryNum = 0; Exception lastException = null; totalCounter.increment(); boolean success = false; do { try { logger.debug("Executing PrimeConnections request to server with path {}, tryNum={}", s, primeConnectionsURIPath, tryNum); success = connector.connect(s, primeConnectionsURIPath); successCounter.increment(); break; } catch (Exception e) { logger.debug("Error connecting to server: {}", e.getMessage()); lastException = e; sleepBeforeRetry(tryNum); } logger.debug("server:{}, result={}, tryNum={}, maxRetries={}", s, success, tryNum, maxRetries); tryNum++; } while (!success && (tryNum <= maxRetries)); if (listener != null) { try { listener.primeCompleted(s, lastException); } catch (Exception e) { <START> logger.error("Error calling PrimeComplete listener for server '{}'", s.getHost(), e); <END> } } logger.debug("Either done, or quitting server:{}, result={}, tryNum={}, maxRetries={}", s, success, tryNum, maxRetries); return success; }</code><technical_language>this dereference of "s" in this function, if null, please null check logging data it</technical_language>

Target:
private Boolean connectToServer(final Server s, final PrimeConnectionListener listener) { int tryNum = 0; Exception lastException = null; totalCounter.increment(); boolean success = false; do { try { logger.debug("Executing PrimeConnections request to server with path {}, tryNum={}", s, primeConnectionsURIPath, tryNum); success = connector.connect(s, primeConnectionsURIPath); successCounter.increment(); lastException = null; break; } catch (Exception e) { logger.debug("Error connecting to server: {}", e.getMessage()); lastException = e; sleepBeforeRetry(tryNum); } logger.debug("server:{}, result={}, tryNum={}, maxRetries={}", s, success, tryNum, maxRetries); tryNum++; } while (!success && (tryNum <= maxRetries)); if (listener != null) { try { listener.primeCompleted(s, lastException); } catch (Exception e) { logger.error("Error calling PrimeComplete listener for server '{}'", s, e); } } logger.debug("Either done, or quitting server:{}, result={}, tryNum={}, maxRetries={}", s, success, tryNum, maxRetries); return success; }
Source:
<code>private Map<String, Object> createTicket(VM vm, GraphicsInfo graphicsInfo) { Map<String, Object> jsonModel = new HashMap<>(); jsonModel.put("host", graphicsInfo.getIp()); Integer tlsPort = graphicsInfo.getTlsPort(); final GraphicsType type = getParameters().getGraphicsType(); boolean useSsl = false; if (type == GraphicsType.SPICE) { useSsl = tlsPort != null ? tlsPort != -1 : false; } else { final VDS host = <START> vdsDao.getByName(vm.getVmHost()); <END> useSsl = host != null && host.isVncEncryptionEnabled(); tlsPort = graphicsInfo.getPort(); } int port = useSsl ? tlsPort : graphicsInfo.getPort(); jsonModel.put("port", String.valueOf(port)); jsonModel.put("ssl_target", useSsl); return jsonModel; }</code><technical_language>afraid this returns null, it? VM#getVmHost returns IP host name *of VM* - host VM runs vdsDao able find a host. want host VM runs on, right? retrieve is host UUID getRunOnVds query VdsDynamic VDS</technical_language>

Target:
private Map<String, Object> createTicket(VM vm, GraphicsInfo graphicsInfo) { Map<String, Object> jsonModel = new HashMap<>(); jsonModel.put("host", graphicsInfo.getIp()); Integer tlsPort = graphicsInfo.getTlsPort(); final GraphicsType type = getParameters().getGraphicsType(); boolean useSsl = false; if (type == GraphicsType.SPICE) { useSsl = tlsPort != null ? tlsPort != -1 : false; } else { final VdsDynamic host = vdsDynamicDao.get(vm.getRunOnVds()); useSsl = host != null && host.isVncEncryptionEnabled(); tlsPort = graphicsInfo.getPort(); } int port = useSsl ? tlsPort : graphicsInfo.getPort(); jsonModel.put("port", String.valueOf(port)); jsonModel.put("ssl_target", useSsl); return jsonModel; }
Source:
<code>private void setExistingTag(Object tagObject) { if (tagObject instanceof RevTag) existingTag = (RevTag) tagObject; else { setNoExistingTag(); <START> setErrorMessage(UIText.CreateTagDialog_LightweightTagMessage); <END> return; } if (!tagNameText.getText().equals(existingTag.getTagName())) tagNameText.setText(existingTag.getTagName()); if (commitCombo != null) commitCombo.setSelectedElement(existingTag.getObject()); String message = existingTag.getFullMessage(); tagMessageText.setText(null != message ? message : ""); }</code><technical_language>This forbids moving lightweight tags, overwrite button disabled. This improved; strange I move annotated tags lightweight tags. Command-line git allows move a lightweight tag git tag -f myLighweightTag <commitId>. I reason TagOperation able move a lightweight tag</technical_language>

Target:
private void setExistingTag(Object tagObject) { if (tagObject instanceof RevTag) existingTag = new TagWrapper((RevTag) tagObject); else if (tagObject instanceof Ref) { existingTag = new TagWrapper((Ref) tagObject); } else { setNoExistingTag(); return; } if (!tagNameText.getText().equals(existingTag.getName())) tagNameText.setText(existingTag.getName()); if (commitCombo != null) commitCombo.setSelectedElement(existingTag.getId()); String message = existingTag.getMessage(); tagMessageText.setText(null != message ? message : ""); }
Source:
<code><START> public IO<Unit> println(final String s) { <END> return () -> { result = s; return Unit.unit(); }; }</code><technical_language>sense this return string, assign instance variable result. Longer term, need a bind method like: IO<A> bindLeft(IO<A> io, F<A, IO<B>> f) binds, returns a left argument. this another issue. I check Haskell doc if this exists</technical_language>

Target:
public IO<String> println(final String s) { return () -> { return s; }; }
Source:
<code>void setValue(Object primitive) { if (primitive instanceof Character) { <START> this.value = String.valueOf(((Character) primitive).charValue()); <END> } else { $Gson$Preconditions.checkArgument(primitive instanceof Number || isPrimitiveOrString(primitive)); this.value = primitive; } }</code><technical_language>Revert</technical_language>

Target:
void setValue(Object primitive) { if (primitive instanceof Character) { char c = ((Character) primitive).charValue(); this.value = String.valueOf(c); } else { $Gson$Preconditions.checkArgument(primitive instanceof Number || isPrimitiveOrString(primitive)); this.value = primitive; } }
Source:
<code>public boolean equals(Object obj) { <START> if(obj instanceof Lock) { <END> Lock other = (Lock) obj; boolean result = false; result = this.owner.equals(other.owner); result = result && this.created.equals(other.created); result = result && this.failed == other.failed; return result; } return false; }</code><technical_language>tend EqualsBuilder Apache Commons Lang3. ways it: - static method EqualsBuilder#reflectionEquals takes care of slow - declared way: need instante EqualsBuilder append method want, generally call fields want check</technical_language>

Target:
public boolean equals(Object obj) { return EqualsBuilder.reflectionEquals(this, obj); }
Source:
<code>public void onShowProfiler(OpenProfileEvent event) { String profilePath = event.getFilePath(); String htmlPath = event.getHtmlPath(); String htmlLocalPath = event.getHtmlLocalPath(); for (int idx = 0; idx < editors_.size(); idx++) { String path = editors_.get(idx).getPath(); if (path != null && profilePath.equals(path)) { ensureVisible(false); view_.selectTab(idx); return; } } ensureVisible(true); if (event.getDocId() != null) { server_.getSourceDocument(event.getDocId(), new ServerRequestCallback<SourceDocument>() { @Override public void onResponseReceived(SourceDocument response) { addTab(response); } @Override public void onError(ServerError error) { <START> Debug.logError(error); <END> } }); } else { server_.newDocument( FileTypeRegistry.PROFILER.getTypeId(), null, (JsObject) ProfilerContents.create( profilePath, htmlPath, htmlLocalPath, event.getCreateProfile()).cast(), new SimpleRequestCallback<SourceDocument>("Show Profiler") { @Override public void onResponseReceived(SourceDocument response) { addTab(response); } @Override public void onError(ServerError error) { Debug.logError(error); } }); } }</code><technical_language>Is OpenProfileEvent fired a result of a user operation? If is, give user some feedback if this is control flow ends</technical_language>

Target:
public void onShowProfiler(OpenProfileEvent event) { String profilePath = event.getFilePath(); String htmlPath = event.getHtmlPath(); String htmlLocalPath = event.getHtmlLocalPath(); for (int idx = 0; idx < editors_.size(); idx++) { String path = editors_.get(idx).getPath(); if (path != null && profilePath.equals(path)) { ensureVisible(false); view_.selectTab(idx); return; } } ensureVisible(true); if (event.getDocId() != null) { server_.getSourceDocument(event.getDocId(), new ServerRequestCallback<SourceDocument>() { @Override public void onResponseReceived(SourceDocument response) { addTab(response); } @Override public void onError(ServerError error) { Debug.logError(error); globalDisplay_.showErrorMessage("Source Document Error", error.getUserMessage()); } }); } else { server_.newDocument( FileTypeRegistry.PROFILER.getTypeId(), null, (JsObject) ProfilerContents.create( profilePath, htmlPath, htmlLocalPath, event.getCreateProfile()).cast(), new SimpleRequestCallback<SourceDocument>("Show Profiler") { @Override public void onResponseReceived(SourceDocument response) { addTab(response); } @Override public void onError(ServerError error) { Debug.logError(error); globalDisplay_.showErrorMessage("Source Document Error", error.getUserMessage()); } }); } }
Source:
<code>public boolean isBypassIfSameMimeType() { <START> return (bypassIfSameMimeType != null) ? bypassIfSameMimeType : Boolean.FALSE; <END> }</code><technical_language>return Boolean.TRUE.equals(bypassIfSameMimeType)</technical_language>

Target:
public boolean isBypassIfSameMimeType() { return Boolean.TRUE.equals(bypassIfSameMimeType); }
Source:
<code>private static String formatErrorMessageAfter(WindupRuleProvider provider, WindupRuleProvider otherProvider) { <START> return "Rule \"" + provider.getID() + "\" from phase \"" + provider.getPhase() + "\" is to set to execute after\n" <END> + "rule \"" + otherProvider.getID() + "\" from later phase \"" + otherProvider.getPhase() + "\".\nPossible solution is to specify phase " + otherProvider.getPhase() + " or later for the first rule."; }</code><technical_language>Replace "Rule" ---- WindupRuleProvider.class.getSimpleName() + " [" + provider.getID() + "] ..</technical_language>

Target:
private static String formatErrorMessageAfter(WindupRuleProvider provider, WindupRuleProvider otherProvider) { return WindupRuleProvider.class.getSimpleName() + '[' + provider.getID() + "] from phase " + provider.getPhase() + " is to set to execute after\n" + WindupRuleProvider.class.getSimpleName() + '[' + otherProvider.getID() + "] from later phase " + otherProvider.getPhase() + ".\nPossible solution is to specify phase " + otherProvider.getPhase() + " or later for the former."; }
Source:
<code>public void serialize(ICStorageElement element) { if (superClass != null) element.setAttribute(IProjectType.SUPERCLASS, superClass.getId()); element.setAttribute(IBuildObject.ID, id); if (name != null) { element.setAttribute(IBuildObject.NAME, name); } if (unusedChildren != null) { element.setAttribute(IProjectType.UNUSED_CHILDREN, unusedChildren); } if (isAbstract != null) { element.setAttribute(IProjectType.IS_ABSTRACT, isAbstract.toString()); } if (binaryParserList != null) { Iterator<String> bparsIter = binaryParserList.listIterator(); StringBuilder listValue = <START> new StringBuilder(EMPTY_STRING); <END> while (bparsIter.hasNext()) { String current = bparsIter.next(); listValue.append(current); if ((bparsIter.hasNext())) { listValue.append(";"); } } element.setAttribute(BINARY_PARSER, listValue.toString()); } if (osList != null) { Iterator<String> osIter = osList.listIterator(); String listValue = EMPTY_STRING; while (osIter.hasNext()) { String current = osIter.next(); listValue += current; if ((osIter.hasNext())) { listValue += ","; } } element.setAttribute(OS_LIST, listValue); } if (archList != null) { Iterator<String> archIter = archList.listIterator(); String listValue = EMPTY_STRING; while (archIter.hasNext()) { String current = archIter.next(); listValue += current; if ((archIter.hasNext())) { listValue += ","; } } element.setAttribute(ARCH_LIST, listValue); } isDirty = false; }</code><technical_language>new StringBuilder(EMPTY_STRING) is equivalent new StringBuilder()</technical_language>

Target:
public void serialize(ICStorageElement element) { if (superClass != null) element.setAttribute(IProjectType.SUPERCLASS, superClass.getId()); element.setAttribute(IBuildObject.ID, id); if (name != null) { element.setAttribute(IBuildObject.NAME, name); } if (unusedChildren != null) { element.setAttribute(IProjectType.UNUSED_CHILDREN, unusedChildren); } if (isAbstract != null) { element.setAttribute(IProjectType.IS_ABSTRACT, isAbstract.toString()); } if (binaryParserList != null) { Iterator<String> bparsIter = binaryParserList.listIterator(); StringBuilder listValue = new StringBuilder(); while (bparsIter.hasNext()) { String current = bparsIter.next(); listValue.append(current); if ((bparsIter.hasNext())) { listValue.append(';'); } } element.setAttribute(BINARY_PARSER, listValue.toString()); } if (osList != null) { Iterator<String> osIter = osList.listIterator(); String listValue = EMPTY_STRING; while (osIter.hasNext()) { String current = osIter.next(); listValue += current; if ((osIter.hasNext())) { listValue += ","; } } element.setAttribute(OS_LIST, listValue); } if (archList != null) { Iterator<String> archIter = archList.listIterator(); String listValue = EMPTY_STRING; while (archIter.hasNext()) { String current = archIter.next(); listValue += current; if ((archIter.hasNext())) { listValue += ","; } } element.setAttribute(ARCH_LIST, listValue); } isDirty = false; }
Source:
<code>public static byte[] compressBytes(byte[] srcBytes) { ByteArrayOutputStream resultBao = new ByteArrayOutputStream(); GZIPOutputStream zipOutputStream = null; try { zipOutputStream = new GZIPOutputStream(resultBao); zipOutputStream.write(srcBytes); } catch (IOException e) { <START> e.printStackTrace(); <END> return null; } IOUtils.closeQuietly(zipOutputStream); return resultBao.toByteArray(); }</code><technical_language>a real logger.error</technical_language>

Target:
public static byte[] compressBytes(byte[] srcBytes) { ByteArrayOutputStream resultBao = new ByteArrayOutputStream(); GZIPOutputStream zipOutputStream = null; try { zipOutputStream = new GZIPOutputStream(resultBao); zipOutputStream.write(srcBytes); } catch (IOException e) { logger.error("Unable to compress session cookie", e); return null; } IOUtils.closeQuietly(zipOutputStream); return resultBao.toByteArray(); }
Source:
<code>private boolean isFileKeyChanged(Object currFileKey) { boolean changed = currFileKey != MISSING_FILEKEY && !currFileKey.equals(fileKey); <START> LOG.debug("file={}, FileKey changed from to {}", file, fileKey, currFileKey); <END> return changed; }</code><technical_language>this enclosed in "if (changed)" in method</technical_language>

Target:
private boolean isFileKeyChanged(Object currFileKey) { boolean changed = currFileKey != MISSING_FILEKEY && !currFileKey.equals(fileKey); if (changed) { LOG.debug("file={}, FileKey changed from to {}", file, fileKey, currFileKey); } return changed; }
Source:
<code>private Optional<InetSocketAddress> getRandomHostByActiveConnections(Set<InetSocketAddress> desiredHosts) { Set<InetSocketAddress> localFilteredHosts = filterLocalHosts(desiredHosts); Map<InetSocketAddress, CassandraClientPoolingContainer> matchingPools = Maps.filterKeys(currentPools, localFilteredHosts::contains); if (matchingPools.isEmpty()) { <START> return Optional.empty(); <END> } return Optional.of(WeightedHosts.create(matchingPools).getRandomHost()); }</code><technical_language>this error if localHosts is set get here</technical_language>

Target:
private Optional<InetSocketAddress> getRandomHostByActiveConnections(Set<InetSocketAddress> desiredHosts) { Set<InetSocketAddress> localFilteredHosts = maybeFilterLocalHosts(desiredHosts); Map<InetSocketAddress, CassandraClientPoolingContainer> matchingPools = Maps.filterKeys(currentPools, localFilteredHosts::contains); if (matchingPools.isEmpty()) { return Optional.empty(); } return Optional.of(WeightedHosts.create(matchingPools).getRandomHost()); }
Source:
<code>protected Supplier<Operation> createOperationSupplier() { <START> return () -> new DistributedObjectDestroyOperation(parameters.serviceName, parameters.name); <END> }</code><technical_language>DestroyProxyMessageTask implement Supplier, this method create a lamda return this instead</technical_language>

Target:
protected Supplier<Operation> createOperationSupplier() { return this; }
Source:
<code>public void testBasicOperatorStream() throws InjectionException, IOException, ClassNotFoundException { final Configuration filteredConf = filteredMappedStream.getConfiguration(); final Injector injector = Tang.Factory.getTang().newInjector(filteredConf); final String serializedMap = injector.getNamedInstance(SerializedUdf.class); Assert.assertEquals(SerializeUtils.serializeToString(defaultMap), serializedMap); final MISTQuery query = queryBuilder.build(); final DAG<MISTStream, MISTEdge> dag = query.getDAG(); final Map<MISTStream, MISTEdge> neighbors = dag.getEdges(sourceStream); Assert.assertEquals(1, neighbors.size()); final MISTEdge edgeInfo = neighbors.get(filteredStream); Assert.assertEquals(Direction.LEFT, edgeInfo.getDirection()); Assert.assertEquals(new Integer(0), edgeInfo.getIndex()); final Map<MISTStream, MISTEdge> neighbors2 = dag.getEdges(filteredStream); Assert.assertEquals(1, neighbors2.size()); final MISTEdge edgeInfo2 = neighbors2.get(filteredMappedStream); Assert.assertEquals(Direction.LEFT, edgeInfo2.getDirection()); <START> Assert.assertEquals(new Integer(0), edgeInfo2.getIndex()); <END> }</code><technical_language>0</technical_language>

Target:
public void testBasicOperatorStream() throws InjectionException, IOException, ClassNotFoundException { final Configuration filteredConf = filteredMappedStream.getConfiguration(); final Injector injector = Tang.Factory.getTang().newInjector(filteredConf); final String serializedMap = injector.getNamedInstance(SerializedUdf.class); Assert.assertEquals(SerializeUtils.serializeToString(defaultMap), serializedMap); final MISTQuery query = queryBuilder.build(); final DAG<MISTStream, MISTEdge> dag = query.getDAG(); final Map<MISTStream, MISTEdge> neighbors = dag.getEdges(sourceStream); Assert.assertEquals(1, neighbors.size()); final MISTEdge edgeInfo = neighbors.get(filteredStream); Assert.assertEquals(Direction.LEFT, edgeInfo.getDirection()); Assert.assertEquals(0, edgeInfo.getIndex()); final Map<MISTStream, MISTEdge> neighbors2 = dag.getEdges(filteredStream); Assert.assertEquals(1, neighbors2.size()); final MISTEdge edgeInfo2 = neighbors2.get(filteredMappedStream); Assert.assertEquals(Direction.LEFT, edgeInfo2.getDirection()); Assert.assertEquals(0, edgeInfo2.getIndex()); }
Source:
<code>public Object get(Object key) { FSDataInputStream in = null; BufferedReader bin = null; try { <START> this.connect(); <END> in = fs.open(filePath); bin = new BufferedReader(new InputStreamReader(in)); String line; while ((line = bin.readLine()) != null) { try { Map<String, Object> tuple = extractFields(line); if (tuple != null && !tuple.isEmpty() && getKey(tuple).equals(key)) { logger.debug("Found line in FS {}", getValue(tuple)); return getValue(tuple); } } catch (Exception parseExp) { logger.info("Unable to parse line {}", line); } } } catch (IOException e) { throw new RuntimeException(e); } finally { if (bin != null) { IOUtils.closeQuietly(bin); } if (in != null) { IOUtils.closeQuietly(in); } } return null; }</code><technical_language>open file system for call</technical_language>

Target:
public Object get(Object key) { try ( FSDataInputStream in = openWithRetryFsInputStream(filePath); BufferedReader bin = new BufferedReader(new InputStreamReader(in)); ) { String line; while ((line = bin.readLine()) != null) { try { Map<String, Object> tuple = extractFields(line); if (tuple != null && !tuple.isEmpty() && getKey(tuple).equals(key)) { logger.debug("Found line in FS {}", getValue(tuple)); return getValue(tuple); } } catch (Exception parseExp) { throw new RuntimeException(parseExp); } } } catch (IOException e) { throw new RuntimeException(e); } return null; }
Source:
<code>public void initialize() { createRAIFromDim = Functions.unary(ops(), Ops.Create.Img.class, RandomAccessibleInterval.class, Dimensions.class, Util.getTypeFromInterval(in()).createVariable()); createRAIFromRAI = RAIs.function(ops(), Ops.Create.Img.class, in()); derivativeComputers = new UnaryComputerOp[in().numDimensions()]; for (int i = 0; i < in().numDimensions(); i++) { <START> derivativeComputers[i] = RAIs.computer(ops(), Ops.Filter.DirectionalDerivative.class, in(), i); <END> } }</code><technical_language>works if DirectionalDerivative is working for n-d..</technical_language>

Target:
public void initialize() { createRAI = RAIs.function(ops(), Ops.Create.Img.class, in()); derivativeComputers = new UnaryComputerOp[in().numDimensions()]; for (int i = 0; i < in().numDimensions(); i++) { derivativeComputers[i] = RAIs.computer(ops(), Ops.Filter.PartialDerivative.class, in(), i); } }
Source:
<code>protected void deliverResult(R receiver, HttpCalloutOutcomes result) { if(result == HttpCalloutOutcomes.Success) { if(loggedIn == null) { CommCareApplication._().logout(); listener.keysReadyForSync(receiver); return; } else { listener.keysLoginComplete(receiver); return; } <START> } <END> CommCareApplication._().logout(); listener.keysDoneOther(receiver, result); }</code><technical_language>a bad merge here? I accidentally removed this code merging master</technical_language>

Target:
protected void deliverResult(R receiver, HttpCalloutOutcomes result) { if(result == HttpCalloutOutcomes.Success) { if(loggedIn == null) { CommCareApplication._().logout(); listener.keysReadyForSync(receiver); return; } else { listener.keysLoginComplete(receiver); return; } } else if(result == HttpCalloutOutcomes.NetworkFailure) { if(calloutNeeded && userRecordExists){ result = HttpCalloutOutcomes.NetworkFailureBadPassword; } } CommCareApplication._().logout(); listener.keysDoneOther(receiver, result); }
Source:
<code>private boolean hasMagicLinkLoginIntent() { String action = getIntent().getAction(); Uri uri = getIntent().getData(); <START> return Intent.ACTION_VIEW.equals(action) && uri != null && uri.getHost().contains(SignInActivity.MAGIC_LOGIN); <END> }</code><technical_language>I doubt this issue, in mind uri.getHost() return null</technical_language>

Target:
private boolean hasMagicLinkLoginIntent() { String action = getIntent().getAction(); Uri uri = getIntent().getData(); String host = (uri != null && uri.getHost() != null) ? uri.getHost() : ""; return Intent.ACTION_VIEW.equals(action) && host.contains(SignInActivity.MAGIC_LOGIN); }
Source:
<code>private void onOwnershipMsg(final AvroElasticMemoryMessage msg) { final String operationId = msg.getOperationId().toString(); final OwnershipMsg ownershipMsg = msg.getOwnershipMsg(); final int blockId = ownershipMsg.getBlockId(); final int oldOwnerId = ownershipMsg.getOldOwnerId(); final int newOwnerId = ownershipMsg.getNewOwnerId(); <START> Trace.setProcessId("src-" + TRACE_PROCESS_ID); <END> try (final TraceScope onOwnershipMsgScope = Trace.startSpan("[4]on_ownership_msg. blockId: " + blockId, HTraceUtils.fromAvro(msg.getTraceInfo()))) { memoryStore.updateOwnership(blockId, oldOwnerId, newOwnerId); memoryStore.removeBlock(blockId); sender.get().sendOwnershipAckMsg(operationId, blockId, TraceInfo.fromSpan(onOwnershipMsgScope.getSpan())); } }</code><technical_language>I TRACE_PROCESS_ID is id anymore; instead, (1) fully hard-coded string, (2) rename TRACE_PROCESS_ID TRACE_PROCESS_ID_SUFFIX, (3) define a local variable final String traceProcessId = "src-eval"? totally fine all, please feel free a suggestion</technical_language>

Target:
private void onOwnershipMsg(final AvroElasticMemoryMessage msg) { final String operationId = msg.getOperationId().toString(); final OwnershipMsg ownershipMsg = msg.getOwnershipMsg(); final int blockId = ownershipMsg.getBlockId(); final int oldOwnerId = ownershipMsg.getOldOwnerId(); final int newOwnerId = ownershipMsg.getNewOwnerId(); Trace.setProcessId("src_eval"); try (final TraceScope onOwnershipMsgScope = Trace.startSpan(String.format("on_ownership_msg. blockId: %d", blockId), HTraceUtils.fromAvro(msg.getTraceInfo()))) { memoryStore.updateOwnership(blockId, oldOwnerId, newOwnerId); memoryStore.removeBlock(blockId); sender.get().sendOwnershipAckMsg(operationId, blockId, TraceInfo.fromSpan(onOwnershipMsgScope.getSpan())); } }
Source:
<code>public void testGroupBoundary() throws Exception { byte[] bytes = new byte[2]; bytes[0] = (1 << 1 )| 1; bytes[1] = (1 << 0) | (2 << 2) | (3 << 4); <START> ByteBufferInputStream stream = new ByteBufferInputStream(ByteBuffer.wrap(bytes)); <END> RunLengthBitPackingHybridDecoder decoder = new RunLengthBitPackingHybridDecoder(2, stream); assertEquals(decoder.readInt(), 1); assertEquals(decoder.readInt(), 2); assertEquals(decoder.readInt(), 3); assertEquals(stream.available(), 0); }</code><technical_language>this necessary if RunLengthBitPackingHybridDecoder depend InputStream instead</technical_language>

Target:
public void testGroupBoundary() throws Exception { byte[] bytes = new byte[2]; bytes[0] = (1 << 1 )| 1; bytes[1] = (1 << 0) | (2 << 2) | (3 << 4); ByteArrayInputStream stream = new ByteArrayInputStream(bytes); RunLengthBitPackingHybridDecoder decoder = new RunLengthBitPackingHybridDecoder(2, stream); assertEquals(decoder.readInt(), 1); assertEquals(decoder.readInt(), 2); assertEquals(decoder.readInt(), 3); assertEquals(stream.available(), 0); }
Source:
<code>private void emitElapsedWindow(final long timestamp) { final long relativeTimestamp = timestamp - firstTimestamp; while (windowEmissionTime <= relativeTimestamp) { final Window<T> window = windowQueue.poll(); outputEmitter.emitData(new MistDataEvent(window.getWindowData(), window.getLatestTimestamp())); final MistWatermarkEvent latestWatermark = window.getLatestWatermark(); <START> if (latestWatermark != null) { <END> outputEmitter.emitWatermark(latestWatermark); } windowEmissionTime += emitPeriod; } }</code><technical_language>happened if is null? do need throw exception</technical_language>

Target:
private void emitElapsedWindow(final long timestamp) { while (windowEmissionTime <= timestamp) { final Window<T> window = windowQueue.poll(); outputEmitter.emitData(new MistDataEvent((WindowData)window, window.getLatestTimestamp())); final MistWatermarkEvent latestWatermark = window.getLatestWatermark(); if (latestWatermark != null) { outputEmitter.emitWatermark(latestWatermark); } windowEmissionTime += emitPeriod; } }
Source:
<code>public void recoverDeletedKey() { recoverDeletedKeyRunner((keyToDeleteAndRecover) -> { assertKeyEquals(keyToDeleteAndRecover, client.createKey(keyToDeleteAndRecover)); assertNotNull(client.deleteKey(keyToDeleteAndRecover.getName())); pollOnKeyDeletion(keyToDeleteAndRecover.getName()); Key recoveredKey = client.recoverDeletedKey(keyToDeleteAndRecover.getName()); assertEquals(keyToDeleteAndRecover.getName(), recoveredKey.getName()); <START> assertEquals(keyToDeleteAndRecover.notBefore(), recoveredKey.getProperties().getNotBefore()); <END> assertEquals(keyToDeleteAndRecover.getExpires(), recoveredKey.getProperties().getExpires()); }); }</code><technical_language>getNotBefore</technical_language>

Target:
public void recoverDeletedKey() { recoverDeletedKeyRunner((keyToDeleteAndRecover) -> { assertKeyEquals(keyToDeleteAndRecover, client.createKey(keyToDeleteAndRecover)); assertNotNull(client.deleteKey(keyToDeleteAndRecover.getName())); pollOnKeyDeletion(keyToDeleteAndRecover.getName()); Key recoveredKey = client.recoverDeletedKey(keyToDeleteAndRecover.getName()); assertEquals(keyToDeleteAndRecover.getName(), recoveredKey.getName()); assertEquals(keyToDeleteAndRecover.getNotBefore(), recoveredKey.getProperties().getNotBefore()); assertEquals(keyToDeleteAndRecover.getExpires(), recoveredKey.getProperties().getExpires()); }); }
Source:
<code>public int getBuildScheduleDelay() { if (isAnyServer()) { int max = DEFAULT_BUILD_SCHEDULE_DELAY; for (GerritServer server : PluginImpl.getInstance().getServers()) { if (server.getConfig() != null) { <START> max = Math.max(0, server.getConfig().getBuildScheduleDelay()); <END> } } return max; } else if (PluginImpl.getInstance().getServer(serverName) == null || PluginImpl.getInstance().getServer(serverName).getConfig() == null) { return DEFAULT_BUILD_SCHEDULE_DELAY; } else { int buildScheduleDelay = PluginImpl.getInstance().getServer(serverName).getConfig() .getBuildScheduleDelay(); return Math.max(0, buildScheduleDelay); } }</code><technical_language>This is wrong. algorithm is find maximum configured schedule delay configured servers. This change provide configured server's delay</technical_language>

Target:
public int getBuildScheduleDelay() { if (isAnyServer()) { int max = 0; for (GerritServer server : PluginImpl.getInstance().getServers()) { if (server.getConfig() != null) { max = Math.max(max, server.getConfig().getBuildScheduleDelay()); } } return max; } else if (PluginImpl.getInstance().getServer(serverName) == null || PluginImpl.getInstance().getServer(serverName).getConfig() == null) { return DEFAULT_BUILD_SCHEDULE_DELAY; } else { int buildScheduleDelay = PluginImpl.getInstance().getServer(serverName).getConfig() .getBuildScheduleDelay(); return Math.max(0, buildScheduleDelay); } }
Source:
<code>public CompletableFuture<List<Pair<SharedItem,FileWrapper>>> getFiles(List<SharedItem> pointers) { List<CompletableFuture<Optional<?>>> futures = pointers.stream().map(s -> network.getFile(s)).collect(Collectors.toList()); CompletableFuture<List<Pair<SharedItem, FileWrapper>>> identity = CompletableFuture.completedFuture(Collections.emptyList()); <START> return futures.stream().reduce(identity, <END> (a, b) -> b.thenCompose(opt -> a.thenApply(set -> { ArrayList<Pair<SharedItem, FileWrapper>> combined = new ArrayList<>(set.size() + 1); combined.addAll(set); if(opt.isPresent()) { Pair<SharedItem, FileWrapper> pair = (Pair<SharedItem, FileWrapper>)opt.get(); combined.add(new Pair<>(pair.left,pair.right)); } return combined; })), (a, b) -> b.thenCompose(setb -> a.thenApply(seta -> Stream.concat(seta.stream(), setb.stream()).collect(Collectors.toList())))); }</code><technical_language>need combineAllInOrder preserver order</technical_language>

Target:
public CompletableFuture<List<Pair<SharedItem, FileWrapper>>> getFiles(List<SharedItem> pointers) { return Futures.combineAllInOrder(pointers.stream() .map(s -> network.getFile(s.cap, s.owner) .thenApply(opt -> opt.map(f -> new Pair<>(s, f)))) .collect(Collectors.toList())) .thenApply(res -> res.stream() .flatMap(Optional::stream) .collect(Collectors.toList())); }
Source:
<code><START> public ElytronIntegrationChecker build() { <END> return new ElytronIntegrationChecker(this); }</code><technical_language>Please add validation mandatory fields set</technical_language>

Target:
public ElytronIntegrationChecker build() { validate(); return new ElytronIntegrationChecker(this); }