auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public boolean isOpeningQuote(HighlighterIterator iterator, int offset) { if(iterator.getTokenType() == ErlangTypes.ERL_SINGLE_QUOTE) { iterator.retreat(); boolean isAtomBefore = !iterator.atEnd() && iterator.getTokenType().equals(ErlangTypes.ERL_ATOM_NAME); iterator.retreat(); <START> boolean atomStartsFromQuote = !iterator.atEnd() && iterator.getTokenType().equals(ErlangTypes.ERL_SINGLE_QUOTE); <END> iterator.advance(); iterator.advance(); return !isAtomBefore || !atomStartsFromQuote; } return super.isOpeningQuote(iterator, offset); }</code><technical_language>equality comparison for token types</technical_language>

Target:
public boolean isOpeningQuote(HighlighterIterator iterator, int offset) { if(iterator.getTokenType() == ErlangTypes.ERL_SINGLE_QUOTE) { iterator.retreat(); boolean isAtomBefore = !iterator.atEnd() && iterator.getTokenType() == ErlangTypes.ERL_ATOM_NAME; iterator.retreat(); boolean atomStartsFromQuote = !iterator.atEnd() && iterator.getTokenType() == ErlangTypes.ERL_SINGLE_QUOTE; iterator.advance(); iterator.advance(); return !isAtomBefore || !atomStartsFromQuote; } return super.isOpeningQuote(iterator, offset); }
Source:
<code>protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { Class<?> result = loadedClasses.get(name); if (result==null) throw new ClassNotFoundException(""+name+" not known here"); <START> return result; <END> }</code><technical_language>Strictly, do if (resolve) resolveClass(result); (in case a class added linked)</technical_language>

Target:
protected synchronized Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException { Class<?> result = loadedClasses.get(name); if (result==null) throw new ClassNotFoundException(""+name+" not known here"); if (resolve) resolveClass(result); return result; }
Source:
<code>public void testCreateLongVarChar() throws Exception { SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); builder.setName(tname("ft2")); builder.setNamespaceURI(dataStore.getNamespaceURI()); builder.setCRS(DefaultGeographicCRS.WGS84); builder.add(aname("geometry_one_two_three_four"), Geometry.class); builder.add(aname("longvar"), String.class); SimpleFeatureType featureType = builder.buildFeatureType(); dataStore.createSchema(featureType); SimpleFeatureBuilder fBuilder = new SimpleFeatureBuilder(featureType); fBuilder.add(null); StringBuffer vBuffer = new StringBuffer(4000); for(int i=0;i<3999;i++) { vBuffer.append("x"); } <START> fBuilder.add(vBuffer.toString()); <END> }</code><technical_language>Unsure is happening here... is feature builder throw exception if limits? Btw, is FeatureTypes.getFieldLength in handy for a test</technical_language>

Target:
public void testCreateLongVarChar() throws Exception { SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder(); builder.setName(tname("ft3")); builder.setNamespaceURI(dataStore.getNamespaceURI()); builder.setCRS(DefaultGeographicCRS.WGS84); builder.add(aname("geometry_one_two_three_four"), Geometry.class); builder.add(aname("longvar"), String.class); SimpleFeatureType featureType = builder.buildFeatureType(); dataStore.createSchema(featureType); SimpleFeatureBuilder fBuilder = new SimpleFeatureBuilder(featureType); fBuilder.add(null); StringBuffer vBuffer = new StringBuffer(4000); for (int i = 0; i < 3999; i++) { vBuffer.append("x"); } fBuilder.add(vBuffer.toString()); SimpleFeature f = fBuilder.buildFeature(null); Transaction transaction = new DefaultTransaction("create"); SimpleFeatureSource featureSource = dataStore.getFeatureSource(featureType.getName().getLocalPart()); SimpleFeatureCollection collection = DataUtilities.collection(f); SimpleFeatureStore outStore = (SimpleFeatureStore) featureSource; outStore.setTransaction(transaction); try { List<FeatureId> ids = outStore.addFeatures(collection); transaction.commit(); } catch (Exception problem) { problem.printStackTrace(); transaction.rollback(); } finally { transaction.close(); } }
Source:
<code>public void testGetRegionServers() throws Exception { List<ServerName> serverNames = new ArrayList<>(ADMIN.getRegionServers(true)); Assert.assertEquals(3, serverNames.size()); List<ServerName> serversToDecom = new ArrayList<>(); ServerName serverToDecommission = serverNames.get(0); serversToDecom.add(serverToDecommission); ADMIN.decommissionRegionServers(serversToDecom, false); waitForServerDecom(serverToDecommission, true); Assert.assertEquals(2, ADMIN.getRegionServers(true).size()); <START> <END> ADMIN.recommissionRegionServer(serverToDecommission, Collections.emptyList()); Assert.assertEquals(3, ADMIN.getRegionServers(true).size()); waitForServerDecom(serverToDecommission, false); }</code><technical_language>Add Assert.assertEquals(3, ADMIN.getRegionServers(false).size()); for paranoid reviewers (cough cough me)</technical_language>

Target:
public void testGetRegionServers() throws Exception { List<ServerName> serverNames = new ArrayList<>(ADMIN.getRegionServers(true)); Assert.assertEquals(3, serverNames.size()); List<ServerName> serversToDecom = new ArrayList<>(); ServerName serverToDecommission = serverNames.get(0); serversToDecom.add(serverToDecommission); ADMIN.decommissionRegionServers(serversToDecom, false); waitForServerCommissioned(serverToDecommission, true); Assert.assertEquals(2, ADMIN.getRegionServers(true).size()); Assert.assertEquals(3, ADMIN.getRegionServers(false).size()); ADMIN.recommissionRegionServer(serverToDecommission, Collections.emptyList()); waitForServerCommissioned(null, false); Assert.assertEquals(3, ADMIN.getRegionServers(true).size()); Assert.assertEquals(3, ADMIN.getRegionServers(false).size()); }
Source:
<code>public void pressKeyCodeWithMetastateTest() { try { driver.pressKey(new KeyEvent(AndroidKey.SPACE) .withMetaModifier(KeyEventMetaModifier.SHIFT_ON)); } catch (WebDriverException e) { <START> fail(e.getMessage()); <END> } }</code><technical_language>check result of command io.appium.android.apis/.text.KeyEventText activity</technical_language>

Target:
public void pressKeyCodeWithMetastateTest() { driver.pressKey(new KeyEvent(AndroidKey.SPACE) .withMetaModifier(KeyEventMetaModifier.SHIFT_ON)); final String state = driver.findElement(PRESS_RESULT_VIEW).getText(); assertThat(state, containsString(String.format("KEYCODE_%s", AndroidKey.SPACE.name()))); assertThat(state, containsString(String.format("META_%s", KeyEventMetaModifier.SHIFT_ON.name()))); }
Source:
<code>private void doOperationComplete(Channel channel) { <START> if (!channel.isActive()) { <END> this.fail(CHANNEL_CLOSED_ON_ACQUIRE); return; } final ChannelPipeline pipeline = channel.pipeline(); checkState(pipeline != null, "expected non-null channel pipeline"); final RntbdRequestManager requestManager = pipeline.get(RntbdRequestManager.class); checkState(requestManager != null, "expected non-null request manager"); if (requestManager.hasRequestedRntbdContext()) { this.originalPromise.setSuccess(channel); } else { channel.writeAndFlush(RntbdHealthCheckRequest.MESSAGE).addListener(completed -> { if (completed.isSuccess()) { reportIssueUnless( logger, this.acquired && requestManager.hasRntbdContext(), this, "acquired: {}, rntbdContext: {}", this.acquired, requestManager.rntbdContext()); this.originalPromise.setSuccess(channel); } else { final Throwable cause = completed.cause(); logger.warn("Channel({}) health check request failed due to:", channel, cause); this.fail(cause); } }); } }</code><technical_language>channel.ensureIneventLop()</technical_language>

Target:
private void doOperationComplete(Channel channel) { checkState(channel.eventLoop().inEventLoop()); if (!channel.isActive()) { this.fail(CHANNEL_CLOSED_ON_ACQUIRE); return; } final ChannelPipeline pipeline = channel.pipeline(); checkState(pipeline != null, "expected non-null channel pipeline"); final RntbdRequestManager requestManager = pipeline.get(RntbdRequestManager.class); checkState(requestManager != null, "expected non-null request manager"); if (requestManager.hasRequestedRntbdContext()) { this.originalPromise.setSuccess(channel); } else { channel.writeAndFlush(RntbdHealthCheckRequest.MESSAGE).addListener(completed -> { if (completed.isSuccess()) { reportIssueUnless( logger, this.acquired && requestManager.hasRntbdContext(), this, "acquired: {}, rntbdContext: {}", this.acquired, requestManager.rntbdContext()); this.originalPromise.setSuccess(channel); } else { final Throwable cause = completed.cause(); logger.warn("Channel({}) health check request failed due to:", channel, cause); this.fail(cause); } }); } }
Source:
<code>private void checkTokenResult(TenantOrDomainAndCredentials<?> credentials, String json) throws InterruptedException { server.enqueue(jsonResponse("/v3/token.json")); AuthInfo authInfo = null; if (credentials.credentials() instanceof PasswordCredentials) { authInfo = authenticationApi .authenticatePassword((TenantOrDomainAndCredentials<PasswordCredentials>) credentials); } else if (credentials.credentials() instanceof TokenCredentials) { authInfo = authenticationApi.authenticateToken((TenantOrDomainAndCredentials<TokenCredentials>) credentials); } else if (credentials.credentials() instanceof ApiAccessKeyCredentials) { authInfo = authenticationApi .authenticateAccessKey((TenantOrDomainAndCredentials<ApiAccessKeyCredentials>) credentials); } else { <START> throw new InterruptedException(String.format("Unsupported authentication method with class: %s", <END> credentials.credentials().getClass().getName())); } assertTrue(authInfo instanceof Token); assertEquals(authInfo, tokenFromResource("/v3/token.json")); assertEquals(server.getRequestCount(), 1); assertSent(server, "POST", "/auth/tokens", stringFromResource(json)); }</code><technical_language>throw IllegalArgumentException</technical_language>

Target:
private void checkTokenResult(TenantOrDomainAndCredentials<?> credentials, String json) throws InterruptedException { server.enqueue(jsonResponse("/v3/token.json")); AuthInfo authInfo = null; if (credentials.credentials() instanceof PasswordCredentials) { authInfo = authenticationApi .authenticatePassword((TenantOrDomainAndCredentials<PasswordCredentials>) credentials); } else if (credentials.credentials() instanceof TokenCredentials) { authInfo = authenticationApi.authenticateToken((TenantOrDomainAndCredentials<TokenCredentials>) credentials); } else if (credentials.credentials() instanceof ApiAccessKeyCredentials) { authInfo = authenticationApi .authenticateAccessKey((TenantOrDomainAndCredentials<ApiAccessKeyCredentials>) credentials); } else { throw new IllegalArgumentException(String.format("Unsupported authentication method with class: %s", credentials.credentials().getClass().getName())); } assertTrue(authInfo instanceof Token); assertEquals(authInfo, tokenFromResource("/v3/token.json")); assertEquals(server.getRequestCount(), 1); assertSent(server, "POST", "/auth/tokens", stringFromResource(json)); }
Source:
<code>public Collection<BeanArchiveBuilder> scan() { URLHandler handler = null; int idCounter = 0; boolean jandexEnabled = isJandexEnabled(); for (String resourceName : resources) { for (URL url : resourceLoader.getResources(resourceName)) { <START> if (jandexEnabled) { <END> Class<?> clazz = Reflections.loadClass(JANDEX_ENABLED_FS_URL_HANDLER_CLASS_STRING, resourceLoader); try { handler = (URLHandler) clazz.getConstructor(String.class, Bootstrap.class).newInstance(String.valueOf(idCounter++), bootstrap); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (SecurityException e) { e.printStackTrace(); } } else { handler = new FileSystemURLHandler(String.valueOf(idCounter++), bootstrap); } try { BeanArchiveBuilder builder = handler.handle(getUrlPath(resourceName, url)); builders.add(builder); } catch (URISyntaxException e) { log.warn("could not read: " + resourceName, e); } } } return builders; }</code><technical_language>This needs cleanup</technical_language>

Target:
public Collection<BeanArchiveBuilder> scan() { URLHandler handler = null; for (String resourceName : resources) { for (URL url : resourceLoader.getResources(resourceName)) { if (Reflections.isClassLoadable(Weld.JANDEX_INDEX_CLASS, resourceLoader)) { Class<?> clazz = Reflections.loadClass(JANDEX_ENABLED_FS_URL_HANDLER_CLASS_STRING, resourceLoader); try { handler = (URLHandler) clazz.getConstructor(String.class, Bootstrap.class).newInstance(getUrlPath(resourceName, url).toString(), bootstrap); } catch (Exception ex) { throw new IllegalStateException(UNABLE_TO_CREATE_JANDEX_URL_HANDLER, ex); } } else { try { handler = new FileSystemURLHandler(getUrlPath(resourceName, url), bootstrap); } catch (URISyntaxException e) { throw new IllegalStateException(BAD_URI_SYNTAX_EXCEPTION_TEXT + resourceName, e); } } try { BeanArchiveBuilder builder = handler.handle(getUrlPath(resourceName, url)); builders.add(builder); } catch (URISyntaxException e) { throw new IllegalStateException(BAD_URI_SYNTAX_EXCEPTION_TEXT + resourceName, e); } } } return builders; }
Source:
<code>public ModifyStandingOrderRequest(StandingOrder modifiedStandingOrder) { this.setStandingOrderId(modifiedStandingOrder.getStandingOrderId()); this.setAmount(modifiedStandingOrder.getAmount()); this.setName(modifiedStandingOrder.getName()); this.setPurpose(modifiedStandingOrder.getPurposeText()); this.setInterval(modifiedStandingOrder.getInterval()); this.setExecutionDay(modifiedStandingOrder.getExecutionDay()); <START> this.setFirst_execution_date(modifiedStandingOrder.getFirst_execution_date()); <END> this.setLast_execution_date(modifiedStandingOrder.getLast_execution_date()); }</code><technical_language>please camelCase</technical_language>

Target:
public ModifyStandingOrderRequest(StandingOrder modifiedStandingOrder) { this.setStandingOrderId(modifiedStandingOrder.getStandingOrderId()); this.setAmount(modifiedStandingOrder.getAmount()); this.setName(modifiedStandingOrder.getName()); this.setPurpose(modifiedStandingOrder.getPurposeText()); this.setInterval(modifiedStandingOrder.getInterval()); this.setExecutionDay(modifiedStandingOrder.getExecutionDay()); this.setFirstExecutionDate(modifiedStandingOrder.getFirstExecutionDate()); this.setLastExecutionDate(modifiedStandingOrder.getLastExecutionDate()); }
Source:
<code>public Fails(EngineMessage expected, String... variableReplacements) { <START> matcher = allOf( not(isValid()), new WithMessages(expected), hasVariableReplacements(variableReplacements)); <END> }</code><technical_language>I call other constructor instead of duplicating this code</technical_language>

Target:
public Fails(EngineMessage expected, String... variableReplacements) { this(Collections.singletonList(expected), variableReplacements); }
Source:
<code>public ServiceModel generateService(ApiService service, ApiServiceConfig serviceConfig, ApiRole role, ApiConfigList roleConfig) { String hostname = role.getHostRef().getHostname(); String scheme; String port = getRoleConfigValue(roleConfig, "phoenix_query_server_port"); <START> scheme = "http"; <END> return createServiceModel(String.format(Locale.getDefault(), "%s://%s:%s", scheme, hostname, port)); }</code><technical_language>initialize scheme 2 lines (where declare it)</technical_language>

Target:
public ServiceModel generateService(ApiService service, ApiServiceConfig serviceConfig, ApiRole role, ApiConfigList roleConfig) { String hostname = role.getHostRef().getHostname(); String scheme = "http"; String port = getRoleConfigValue(roleConfig, "phoenix_query_server_port"); return createServiceModel(String.format(Locale.getDefault(), "%s://%s:%s", scheme, hostname, port)); }
Source:
<code><START> private HttpURLConnection openConnection(URL url) throws IOException { <END> return (HttpURLConnection) url.openConnection(); }</code><technical_language>suggestion private static HttpURLConnection openConnection(URL url) throws IOException {</technical_language>

Target:
private static HttpURLConnection openConnection(URL url) throws IOException { return (HttpURLConnection) url.openConnection(); }
Source:
<code>public void postStop() { if (!fsm.state().equals(uninitialized)) { if(logger.isInfoEnabled()) { logger.info("Conference: " + self().path() + "At the postStop() method."); } if(conferenceApiClient != null && !conferenceApiClient.isTerminated()) <START> getContext().stop(conferenceApiClient); <END> getContext().stop(self()); } super.postStop(); }</code><technical_language>@maria-farooq instead of waiting for Conference actor get destroyed in order destroy conferenceApiClient, of fact ConferenceApiClient send DownloaderResponse Confernece actor kill actor this point</technical_language>

Target:
public void postStop() { if (!fsm.state().equals(uninitialized)) { if(logger.isInfoEnabled()) { logger.info("Conference: " + self().path() + "At the postStop() method."); } if(callApiClient != null && !callApiClient.isTerminated()) getContext().stop(callApiClient); getContext().stop(self()); } super.postStop(); }
Source:
<code>protected final CreateImageUploadUrlAjaxPageData getCreateImageUploadUrlPageData() { <START> verifyPrivileges(); <END> CreateImageUploadUrlAjaxPageData data = new CreateImageUploadUrlAjaxPageData(account); try { data.nextUploadUrl = getUploadUrl(); data.ajaxStatus = "Image upload url created, proceed to uploading"; } catch (BlobstoreFailureException | IllegalArgumentException e) { data.nextUploadUrl = null; isError = true; data.ajaxStatus = "An error occurred when creating upload URL, please try again"; } return data; }</code><technical_language>Actually, verifyPrivileges() part of get*PageData() method? If this method is narrated, like: I want get *PageData, I verify if I privileges, ... While wrong, consider moving execute() instead. narration becomes: I want execute this action, I verify if I privileges, ... more sense. removes need for empty verifyPrivileges() method. This applies for in ImageUploadAction</technical_language>

Target:
protected final CreateImageUploadUrlAjaxPageData getCreateImageUploadUrlPageData() { CreateImageUploadUrlAjaxPageData data = new CreateImageUploadUrlAjaxPageData(account); try { data.nextUploadUrl = getUploadUrl(); data.ajaxStatus = "Image upload url created, proceed to uploading"; } catch (BlobstoreFailureException | IllegalArgumentException e) { data.nextUploadUrl = null; isError = true; data.ajaxStatus = "An error occurred when creating upload URL, please try again"; } return data; }
Source:
<code>public AtomicHashMap() { <START> this(new FastCopyHashMap<>(), ProxyMode.NONE); <END> }</code><technical_language>option is necessary: I removed enum replaced COARSE, tests passed</technical_language>

Target:
public AtomicHashMap() { this(new FastCopyHashMap<>(), ProxyMode.COARSE); }
Source:
<code>public void checkIfHit() { if (!spaceship.defeated()) { int hit = spaceship.ifHit(alienBullets); if (hit != -1) { alienBullets.removeElementAt(hit); } } else { end(); } Iterator iteralien = ConcreteAggregate.createIterator(aliens); while (iteralien.hasNext()) { Alien alien = (Alien) iteralien.next(); int hit = alien.ifHit(shipBullets); if (hit != -1) { if (alien.defeated()) { score = alien.addScore(score); aliens.removeElementAt(iteralien.position()); } shipBullets.removeElementAt(hit); } } <START> Iterator iterbarrier = ConcreteAggregate.createIterator(barriers); <END> while (iterbarrier.hasNext()) { Barrier barrier = (Barrier) iterbarrier.next(); int hit = barrier.ifHit(alienBullets); if (hit != -1) { alienBullets.removeElementAt(hit); if (barrier.destroyed()) { barriers.removeElementAt(iterbarrier.position()); } } } }</code><technical_language>iterbarrier -> iterBarriers</technical_language>

Target:
public void checkIfHit() { if (!spaceship.defeated()) { int hit = spaceship.ifHit(alienBullets); if (hit != -1) { alienBullets.removeElementAt(hit); } } else { end(); } Iterator iterAliens = ConcreteAggregate.createIterator(aliens); synchronized (aliens) { while (iterAliens.hasNext()) { Alien alien = (Alien) iterAliens.next(); int hit = alien.ifHit(shipBullets); if (hit != -1) { if (alien.defeated()) { score = alien.addScore(score); aliens.removeElementAt(iterAliens.position()); } shipBullets.removeElementAt(hit); } } } Iterator iterBarriers = ConcreteAggregate.createIterator(barriers); while (iterBarriers.hasNext()) { Barrier barrier = (Barrier) iterBarriers.next(); int hit = barrier.ifHit(alienBullets); if (hit != -1) { alienBullets.removeElementAt(hit); if (barrier.destroyed()) { barriers.removeElementAt(iterBarriers.position()); } } } }
Source:
<code>protected Object evaluateLiteralExpression(String className, String value, ClassLoader classLoader) { <START> throw new IllegalStateException(toString() + " operator cannot be used into a Given clause"); <END> }</code><technical_language>Please change to: > ... operator in a clause</technical_language>

Target:
protected Object evaluateLiteralExpression(String className, String value, ClassLoader classLoader) { throw new IllegalStateException(toString() + " operator cannot be used in a GIVEN clause"); }
Source:
<code>private static String encodeParameters(Map<String, String> map) { StringBuilder dataStringBuilder = new StringBuilder(); map.forEach((key, value) -> { <START> dataStringBuilder.append(key + "=" + SanitizationHelper.sanitizeForUri(value) + "&"); <END> }); return dataStringBuilder.toString(); }</code><technical_language>This inlined</technical_language>

Target:
private static String encodeParameters(Map<String, String> map) { StringBuilder dataStringBuilder = new StringBuilder(); map.forEach((key, value) -> dataStringBuilder.append(key + "=" + SanitizationHelper.sanitizeForUri(value) + "&")); return dataStringBuilder.toString(); }
Source:
<code>protected Histogram<Integer> getUnfilteredDepthHistogram(){ <START> return getHistogram(unfilteredDepthHistogramArray, "coverage", "count"); <END> }</code><technical_language>..UnfilteredDepthCount</technical_language>

Target:
protected Histogram<Integer> getUnfilteredDepthHistogram(){ return getHistogram(unfilteredDepthHistogramArray, "coverage", "unfiltered_coverage_count"); }
Source:
<code>private void updateMemoryBrowserView(final Object context, final IMemoryBlockRetrieval retrieval, final ILaunch launch) { if (retrieval != null && launch != null && !launch.isTerminated()) { if (retrieval instanceof IMemorySpaceAwareMemoryBlockRetrieval) { <START> String[] memorySpaces={}; <END> if (retrieval instanceof IMemorySpaceAwareMemoryBlockRetrieval) { ((IMemorySpaceAwareMemoryBlockRetrieval)retrieval).getMemorySpaces(context, new GetMemorySpacesRequest() { public void done() { updateTab(retrieval, context, isSuccess() ? getMemorySpaces() : new String[0]); if (fLaunching && launch != null) { ILaunchConfiguration launchConfig = launch .getLaunchConfiguration(); try { String attr = ATTR_MEMORY_TABS; String secondaryId = ((IViewSite)getSite()) .getSecondaryId(); if (secondaryId != null) { attr = attr + "." + secondaryId; } String memento = launchConfig.getAttribute(attr, ""); if (memento != null && memento.length() != 0) { createMemoryTabsFromMemento(memento, context); } fLaunching = false; } catch (Exception e) { } } } }); } updateTab(retrieval, context, memorySpaces); } else { updateTab(retrieval, context, new String[0]); } } else { fUnsupportedLabel.setText(""); handleUnsupportedSelection(); } }</code><technical_language>memorySpaces is assigned (except here)</technical_language>

Target:
private void updateMemoryBrowserView(final Object context, final IMemoryBlockRetrieval retrieval, final ILaunch launch) { if (retrieval != null && launch != null && !launch.isTerminated()) { if (retrieval instanceof IMemorySpaceAwareMemoryBlockRetrieval) { boolean suspended = false; if(context instanceof IAdaptable) { IAdaptable adaptable = (IAdaptable) context; IDMContext dmc = (IDMContext) adaptable.getAdapter(IDMContext.class); if (dmc != null) { IExecutionDMContext edmc = DMContexts.getAncestorOfType(dmc, IExecutionDMContext.class); if (edmc != null) { DsfServicesTracker tracker = new DsfServicesTracker(MemoryBrowserPlugin.getBundleContext(), dmc.getSessionId()); IRunControl rc = (IRunControl) tracker.getService(IRunControl.class); if (rc != null && rc.isSuspended(edmc)) { suspended = true; } tracker.dispose(); } } } boolean launching = false; if (suspended) { try { launching = launch.getLaunchConfiguration().getAttribute(ATTR_LAUNCHING, false); } catch (CoreException e1) { MemoryBrowserPlugin.getDefault().getLog().log(new Status(Status.ERROR, MemoryBrowserPlugin.PLUGIN_ID, "Could not get the launching attribute", e1)); } } if (retrieval instanceof IMemorySpaceAwareMemoryBlockRetrieval) { final boolean finalLaunching = launching; ((IMemorySpaceAwareMemoryBlockRetrieval)retrieval).getMemorySpaces(context, new GetMemorySpacesRequest() { public void done() { updateTab(retrieval, context, isSuccess() ? getMemorySpaces() : new String[0]); if (finalLaunching && launch != null) { loadMemoryTabs(launch, context); } } }); } else { updateTab(retrieval, context, new String[0]); if (launching && launch != null) { loadMemoryTabs(launch, context); } } } else { updateTab(retrieval, context, new String[0]); } } else { fUnsupportedLabel.setText(""); handleUnsupportedSelection(); } }
Source:
<code>protected SftpFileSystem(final GenericFileName rootName, final Session session, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.session = Objects.requireNonNull(session, "session"); this.connectTimeoutMillis = SftpFileSystemConfigBuilder.getInstance() .getConnectTimeoutMillis(fileSystemOptions); <START> detectExecDisabled(); <END> }</code><technical_language>@apearc03 Thank for updating ASL headers. expect state of a server change re-detect execDisabled, please execDisabled final detectExecDisabled() return a boolean. A boolean method cleaner IMO. ctor say: this.execDisable = detectExecDisabled(); drop final ivar if execDisabled needs reset post construction</technical_language>

Target:
protected SftpFileSystem(final GenericFileName rootName, final Session session, final FileSystemOptions fileSystemOptions) { super(rootName, null, fileSystemOptions); this.session = Objects.requireNonNull(session, "session"); this.connectTimeoutMillis = SftpFileSystemConfigBuilder.getInstance() .getConnectTimeoutMillis(fileSystemOptions); this.execDisabled = detectExecDisabled(); }
Source:
<code>private Collection<RefRight> getWildProjectRights() { <START> final ProjectState s = projectCache.get(wildProject.getNameKey()); <END> return s != null ? s.getLocalRights() : Collections.<RefRight> emptyList(); }</code><technical_language>getId() instead</technical_language>

Target:
private Collection<RefRight> getWildProjectRights() { final ProjectState s = projectCache.get(wildProject.getId()); return s != null ? s.getLocalRights() : Collections.<RefRight> emptyList(); }
Source:
<code>private ValidationResult validateSnapshotsLegality() { Optional<Snapshot> snapshot = getSnapshotDao().getSnapshotsByImageStatus(getVmId(), ImageStatus.ILLEGAL).stream().findFirst(); <START> if (snapshot.isPresent() && !snapshot.get().getId().equals(getParameters().getSnapshotId())) { <END> return new ValidationResult(EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_WITH_ILLEGAL_VOLUME_EXISTS, String.format("$snapshot %s", snapshot.get().getDescription())); } return ValidationResult.VALID; }</code><technical_language>ignore ACTIVE snapshot</technical_language>

Target:
private ValidationResult validateSnapshotsLegality() { List<DiskImage> diskImages = getDiskImageDao().getAllSnapshotsForVmSnapshot(getParameters().getSnapshotId()); if (diskImages.stream().filter(img -> img.getImageStatus() == ImageStatus.ILLEGAL).findAny().isPresent()) { return ValidationResult.VALID; } List<Guid> otherSnapshotsId = getSnapshotDao().getAll(getVmId()). stream(). map(Snapshot::getId). filter(id -> !id.equals(getParameters().getSnapshotId())). collect(Collectors.toList()); for (Guid snapshotId : otherSnapshotsId) { diskImages = getDiskImageDao().getAllSnapshotsForVmSnapshot(snapshotId); if (diskImages.stream().filter(img -> img.getImageStatus() == ImageStatus.ILLEGAL).findAny().isPresent()) { return new ValidationResult(EngineMessage.ACTION_TYPE_FAILED_VM_SNAPSHOT_WITH_ILLEGAL_VOLUME_EXISTS, String.format("$snapshot %s", getSnapshotDao().get(getParameters().getSnapshotId()).getDescription())); } } return ValidationResult.VALID; }
Source:
<code>public void runCommand(String[] args, boolean tsqlMode) throws Exception { CommandLineParser parser = new PosixParser(); if (args.length == 0) { printUsage(tsqlMode); return; } CommandLine cmd = parser.parse(options, args); String hostName = null; Integer port = null; if (cmd.hasOption("h")) { hostName = cmd.getOptionValue("h"); } if (cmd.hasOption("p")) { port = Integer.parseInt(cmd.getOptionValue("p")); } String param; if (cmd.getArgs().length > 1) { printUsage(tsqlMode); return; } else { param = cmd.getArgs()[0]; } if(hostName == null) { if (tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS) != null) { hostName = tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS).split(":")[0]; } } if (port == null) { if (tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS) != null) { port = Integer.parseInt(tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS).split(":")[1]); } } if ((hostName == null) ^ (port == null)) { return; } else if (hostName != null && port != null) { tajoConf.setVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS, hostName + ":" + port); tajoClient = new TajoClientImpl(ServiceTrackerFactory.get(tajoConf)); } else if (hostName == null && port == null) { tajoClient = new TajoClientImpl(ServiceTrackerFactory.get(tajoConf)); } <START> if (!tajoClient.isConnected()) { <END> System.out.println("ERROR: cannot connect Tajo server"); } processConfKey(writer, param); writer.flush(); }</code><technical_language>Actually, this class need TajoClient. I removing tajoClient is a solution. So, need System.out.print statement</technical_language>

Target:
public void runCommand(String[] args, boolean tsqlMode) throws Exception { CommandLineParser parser = new PosixParser(); if (args.length == 0) { printUsage(tsqlMode); return; } CommandLine cmd = parser.parse(options, args); String hostName = null; Integer port = null; if (cmd.hasOption("h")) { hostName = cmd.getOptionValue("h"); } if (cmd.hasOption("p")) { port = Integer.parseInt(cmd.getOptionValue("p")); } String param; if (cmd.getArgs().length > 1) { printUsage(tsqlMode); return; } else { param = cmd.getArgs()[0]; } if(hostName == null) { if (tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS) != null) { hostName = tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS).split(":")[0]; } } if (port == null) { if (tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS) != null) { port = Integer.parseInt(tajoConf.getVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS).split(":")[1]); } } if ((hostName == null) ^ (port == null)) { return; } else if (hostName != null && port != null) { tajoConf.setVar(TajoConf.ConfVars.TAJO_MASTER_CLIENT_RPC_ADDRESS, hostName + ":" + port); } processConfKey(writer, param); writer.flush(); }
Source:
<code>void fetchPDF() throws IOException, FetcherException { Optional<URL> url = fetcher.findFullText(bibEntry); <START> assertTrue(url.isPresent()); assertEquals(new URL("<LINK_0>"), url.get()); <END> }</code><technical_language>merge lines suggestion assertEquals(Optional.of(new URL("<LINK_0>")), url);</technical_language>

Target:
void fetchPDF() throws IOException, FetcherException { Optional<URL> url = fetcher.findFullText(bibEntry); assertEquals(Optional.of(new URL("<LINK_0>")), url); }
Source:
<code>private List<String> getAllPathAncestors(final String path) { final List<String> segments = asList(path.split("/")); <START> return range(1, segments.size()).boxed() <END> .map(frameSize -> FEDORA_INTERNAL_PREFIX + "/" + String.join("/", segments.subList(1, frameSize))) .collect(toList()); }</code><technical_language>boxed? IntStream::mapToObj work here, I missing something</technical_language>

Target:
private static List<String> getAllPathAncestors(final String path) { final List<String> segments = asList(path.split("/")); return range(1, segments.size()) .mapToObj(frameSize -> FEDORA_INTERNAL_PREFIX + "/" + String.join("/", segments.subList(1, frameSize))) .collect(toList()); }
Source:
<code>public ParameterWorkerMetrics buildParameterWorkerMetrics() { <START> throw new UnsupportedOperationException(); <END> }</code><technical_language>Passing messages helpful understand</technical_language>

Target:
public ParameterWorkerMetrics buildParameterWorkerMetrics() { throw new UnsupportedOperationException("SSP version of parameter worker currently does not support metrics."); }
Source:
<code>public void handle(HttpExchange exchange) throws IOException { long t1 = System.currentTimeMillis(); DataInputStream din = new DataInputStream(exchange.getRequestBody()); ByteArrayOutputStream bout = new ByteArrayOutputStream(); DataOutputStream dout = new DataOutputStream(bout); String path = exchange.getRequestURI().getPath(); if (path.startsWith("/")) path = path.substring(1); String[] subComponents = path.substring(SOCIAL_URL.length()).split("/"); String method = subComponents[0]; try { switch (method) { case "followRequest": followRequest(din, dout); break; case "getFollowRequests": getFollowRequests(din, dout); break; case "removeFollowRequest": removeFollowRequest(din, dout); break; default: throw new IOException("Unknown method "+ method); } dout.flush(); dout.close(); byte[] b = bout.toByteArray(); exchange.sendResponseHeaders(200, b.length); exchange.getResponseBody().write(b); } catch (Exception e) { Throwable cause = e.getCause(); if (cause != null) exchange.getResponseHeaders().set("Trailer", cause.getMessage()); else exchange.getResponseHeaders().set("Trailer", e.getMessage()); exchange.sendResponseHeaders(400, 0); } finally { exchange.close(); long t2 = System.currentTimeMillis(); if (LOGGING) <START> System.out.println("Corenode server handled " + method + " request in: " + (t2 - t1) + " mS"); <END> } }</code><technical_language>msg mentions corenode</technical_language>

Target:
public void handle(HttpExchange exchange) throws IOException { long t1 = System.currentTimeMillis(); DataInputStream din = new DataInputStream(exchange.getRequestBody()); ByteArrayOutputStream bout = new ByteArrayOutputStream(); DataOutputStream dout = new DataOutputStream(bout); String path = exchange.getRequestURI().getPath(); if (path.startsWith("/")) path = path.substring(1); String[] subComponents = path.substring(SOCIAL_URL.length()).split("/"); String method = subComponents[0]; try { switch (method) { case "followRequest": followRequest(din, dout); break; case "getFollowRequests": getFollowRequests(din, dout); break; case "removeFollowRequest": removeFollowRequest(din, dout); break; default: throw new IOException("Unknown method "+ method); } dout.flush(); dout.close(); byte[] b = bout.toByteArray(); exchange.sendResponseHeaders(200, b.length); exchange.getResponseBody().write(b); } catch (Exception e) { Throwable cause = e.getCause(); if (cause != null) exchange.getResponseHeaders().set("Trailer", cause.getMessage()); else exchange.getResponseHeaders().set("Trailer", e.getMessage()); exchange.sendResponseHeaders(400, 0); } finally { exchange.close(); long t2 = System.currentTimeMillis(); if (LOGGING) System.out.println("Social Network server handled " + method + " request in: " + (t2 - t1) + " mS"); } }
Source:
<code>public void run() { if (!directory.isDirectory() && !directory.mkdirs()) { GlowServer.logger .log(Level.SEVERE, "Could not create libraries directory: " + directory); } downloaderService.execute(new LibraryDownloader( "org.xerial", "sqlite-jdbc", "3.21.0", <START> "347e4d1d3e1dff66d389354af8f0021e62344584", DEFAULT_HASH_ALGORITHM)); <END> downloaderService.execute(new LibraryDownloader( "mysql", "mysql-connector-java", "5.1.44", "61b6b998192c85bb581c6be90e03dcd4b9079db4", DEFAULT_HASH_ALGORITHM)); downloaderService.execute(new LibraryDownloader( "org.apache.logging.log4j", "log4j-api", "2.8.1", "e801d13612e22cad62a3f4f3fe7fdbe6334a8e72", DEFAULT_HASH_ALGORITHM)); downloaderService.execute(new LibraryDownloader( "org.apache.logging.log4j", "log4j-core", "2.8.1", "4ac28ff2f1ddf05dae3043a190451e8c46b73c31", DEFAULT_HASH_ALGORITHM)); downloaderService.execute(new LibraryDownloader( "org.apache.commons", "commons-lang3", "3.5", "6c6c702c89bfff3cd9e80b04d668c5e190d588c6", DEFAULT_HASH_ALGORITHM)); downloaderService.shutdown(); try { if (!downloaderService.awaitTermination(1, TimeUnit.MINUTES)) { downloaderService.shutdownNow(); } } catch (InterruptedException e) { GlowServer.logger.log(Level.SEVERE, "Library Manager thread interrupted: ", e); } }</code><technical_language>I DEFAULT_HASH_ALGORITHM code a bit clear. that, I default hash algorithm is SHA1, if need change hashes change. If HashAlgorithm.SHA1, is immediately clear type of hash this is allows switch hashes changing entries once</technical_language>

Target:
public void run() { if (!directory.isDirectory() && !directory.mkdirs()) { GlowServer.logger .log(Level.SEVERE, "Could not create libraries directory: " + directory); } downloaderService.execute(new LibraryDownloader( "org.xerial", "sqlite-jdbc", "3.21.0", "347e4d1d3e1dff66d389354af8f0021e62344584", HashAlgorithm.SHA1)); downloaderService.execute(new LibraryDownloader( "mysql", "mysql-connector-java", "5.1.44", "61b6b998192c85bb581c6be90e03dcd4b9079db4", HashAlgorithm.SHA1)); downloaderService.execute(new LibraryDownloader( "org.apache.logging.log4j", "log4j-api", "2.8.1", "e801d13612e22cad62a3f4f3fe7fdbe6334a8e72", HashAlgorithm.SHA1)); downloaderService.execute(new LibraryDownloader( "org.apache.logging.log4j", "log4j-core", "2.8.1", "4ac28ff2f1ddf05dae3043a190451e8c46b73c31", HashAlgorithm.SHA1)); downloaderService.execute(new LibraryDownloader( "org.apache.commons", "commons-lang3", "3.5", "6c6c702c89bfff3cd9e80b04d668c5e190d588c6", HashAlgorithm.SHA1)); downloaderService.shutdown(); try { if (!downloaderService.awaitTermination(1, TimeUnit.MINUTES)) { downloaderService.shutdownNow(); } } catch (InterruptedException e) { GlowServer.logger.log(Level.SEVERE, "Library Manager thread interrupted: ", e); } }
Source:
<code>protected StreamTaskListener createListener() { File f = getLogFile(); if (!f.getParentFile().isDirectory()) { if (!f.getParentFile().mkdirs()) { logger.log(getErrorLoggingLevel(), "Could not create directory {0}", f.getParentFile()); } } if (f.isFile()) { if ((lastRotateMillis + logRotateMillis < System.currentTimeMillis()) || (logRotateSize > 0 && f.length() > logRotateSize)) { lastRotateMillis = System.currentTimeMillis(); File p = null; for (int i = 5; i >= 0; i--) { File o = i == 0 ? f : new File(f.getParentFile(), f.getName() + "." + i); if (o.isFile()) { if (p != null && !p.exists()) { if (!o.renameTo(p)) { logger.log(getErrorLoggingLevel(), "Could not rotate log files {0} to {1}", new Object[]{o, p}); } } else { if (!o.delete()) { logger.log(getErrorLoggingLevel(), "Could not delete log file {0} to enable rotation", o); } } } p = o; } } } else { lastRotateMillis = System.currentTimeMillis(); File oldFile = new File(Jenkins.getActiveInstance().getRootDir(), f.getName()); if (oldFile.isFile()) { File newFile = new File(f.getParentFile(), f.getName() + ".1"); if (!newFile.isFile()) { if (oldFile.renameTo(newFile)) { <START> logger.log(getNormalLoggingLevel(), "Moved {0} to {1}.1", new Object[]{oldFile, f}); <END> } else { logger.log(getErrorLoggingLevel(), "Could not move {0} to {1}.1", new Object[]{oldFile, f}); } } } } try { return new StreamTaskListener(f, true, null); } catch (IOException e) { throw new Error(e); } }</code><technical_language>newFile {1} f {1}.1so if change name - do in place</technical_language>

Target:
protected StreamTaskListener createListener() { File f = getLogFile(); if (!f.getParentFile().isDirectory()) { if (!f.getParentFile().mkdirs()) { logger.log(getErrorLoggingLevel(), "Could not create directory {0}", f.getParentFile()); } } if (f.isFile()) { if ((lastRotateMillis + logRotateMillis < System.currentTimeMillis()) || (logRotateSize > 0 && f.length() > logRotateSize)) { lastRotateMillis = System.currentTimeMillis(); File prev = null; for (int i = 5; i >= 0; i--) { File curr = i == 0 ? f : new File(f.getParentFile(), f.getName() + "." + i); if (curr.isFile()) { if (prev != null && !prev.exists()) { if (!curr.renameTo(prev)) { logger.log(getErrorLoggingLevel(), "Could not rotate log files {0} to {1}", new Object[]{curr, prev}); } } else { if (!curr.delete()) { logger.log(getErrorLoggingLevel(), "Could not delete log file {0} to enable rotation", curr); } } } prev = curr; } } } else { lastRotateMillis = System.currentTimeMillis(); File oldFile = new File(Jenkins.getActiveInstance().getRootDir(), f.getName()); if (oldFile.isFile()) { File newFile = new File(f.getParentFile(), f.getName() + ".1"); if (!newFile.isFile()) { if (oldFile.renameTo(newFile)) { logger.log(getNormalLoggingLevel(), "Moved {0} to {1}", new Object[]{oldFile, newFile}); } else { logger.log(getErrorLoggingLevel(), "Could not move {0} to {1}", new Object[]{oldFile, newFile}); } } } } try { return new StreamTaskListener(f, true, null); } catch (IOException e) { throw new Error(e); } }
Source:
<code><START> public void size_rolling_policy_has_large_max_files_if_property_is_zero() throws IOException { <END> File logDir = temporaryFolder.newFolder(); String logPattern = "foo"; String sizePattern = "1KB"; Log4JPropertiesBuilder underTest = newLog4JPropertiesBuilder( ROLLING_POLICY_PROPERTY, "size:" +sizePattern, PROPERTY_MAX_FILES, "0"); underTest.configureGlobalFileLog(esRootLoggerConfig, logDir, logPattern); verifySizeRollingPolicy(underTest, logDir, logPattern, sizePattern, 100_000); }</code><technical_language>missing test for property is zero. Code put large max file</technical_language>

Target:
public void size_rolling_policy_has_large_max_files_if_property_is_zero() throws Exception { File logDir = temporaryFolder.newFolder(); String logPattern = "foo"; String sizePattern = "1KB"; Log4JPropertiesBuilder underTest = newLog4JPropertiesBuilder( ROLLING_POLICY_PROPERTY, "size:" + sizePattern, PROPERTY_MAX_FILES, "0"); underTest.configureGlobalFileLog(esRootLoggerConfig, logDir, logPattern); verifySizeRollingPolicy(underTest, logDir, logPattern, sizePattern, 100_000); }
Source:
<code>protected void initWidget(IsWidget widget) { <START> this.widget = Widget.asWidgetOrNull(widget); <END> }</code><technical_language>Instead of null check is crash here. programs crash if view is null, crash early</technical_language>

Target:
protected void initWidget(IsWidget widget) { if (widget == null) { throw new NullPointerException("Widget cannot be null."); } this.widget = widget.asWidget(); }
Source:
<code>public static List<KiePMMLModel> getModels(final KieBase knowledgeBase) { <START> logger.trace("getModels {}", knowledgeBase); <END> List<KiePMMLModel> models = new ArrayList<>(); knowledgeBase.getKiePackages().forEach(kpkg -> { PMMLPackage pmmlPackage = (PMMLPackage) ((InternalKnowledgePackage) kpkg).getResourceTypePackages().get(ResourceType.PMML); if (pmmlPackage != null) { models.addAll(pmmlPackage.getAllModels().values()); } }); return models; }</code><technical_language>please add isTraceEnabled check</technical_language>

Target:
public static List<KiePMMLModel> getModels(final KieBase knowledgeBase) { List<KiePMMLModel> models = new ArrayList<>(); knowledgeBase.getKiePackages().forEach(kpkg -> { PMMLPackage pmmlPackage = (PMMLPackage) ((InternalKnowledgePackage) kpkg).getResourceTypePackages().get(ResourceType.PMML); if (pmmlPackage != null) { models.addAll(pmmlPackage.getAllModels().values()); } }); return models; }
Source:
<code>short getVersion() { <START> return this.version; <END> }</code><technical_language>minor: this required</technical_language>

Target:
short getVersion() { return version; }
Source:
<code>public DruidQueryGeneratorContext visitFilter(FilterNode node, DruidQueryGeneratorContext context) { context = node.getSource().accept(this, context); requireNonNull(context, "context is null"); <START> LinkedHashMap<VariableReferenceExpression, Selection> selections = context.getSelections(); <END> DruidFilterExpressionConverter druidFilterExpressionConverter = new DruidFilterExpressionConverter(typeManager, functionMetadataManager, standardFunctionResolution, session); String filter = node.getPredicate().accept(druidFilterExpressionConverter, selections::get).getDefinition(); return context.withFilter(filter).withOutputColumns(node.getOutputVariables()); }</code><technical_language>Map</technical_language>

Target:
public DruidQueryGeneratorContext visitFilter(FilterNode node, DruidQueryGeneratorContext context) { context = node.getSource().accept(this, context); requireNonNull(context, "context is null"); Map<VariableReferenceExpression, Selection> selections = context.getSelections(); DruidFilterExpressionConverter druidFilterExpressionConverter = new DruidFilterExpressionConverter(typeManager, functionMetadataManager, standardFunctionResolution, session); String filter = node.getPredicate().accept(druidFilterExpressionConverter, selections::get).getDefinition(); return context.withFilter(filter).withOutputColumns(node.getOutputVariables()); }
Source:
<code>public Lazy<T> get() { return new Lazy<T>() { <START> private final Object lock = new Object(); <END> private volatile Object cacheValue = NOT_PRESENT; @SuppressWarnings("unchecked") @Override public T get() { if (cacheValue == NOT_PRESENT) { synchronized (lock) { if (cacheValue == NOT_PRESENT) { cacheValue = delegate.get(); } } } return (T) cacheValue; } }; }</code><technical_language>'this' a lock? Allocation cheap Android</technical_language>

Target:
public Lazy<T> get() { return new Lazy<T>() { private volatile Object cacheValue = NOT_PRESENT; @SuppressWarnings("unchecked") @Override public T get() { if (cacheValue == NOT_PRESENT) { synchronized (this) { if (cacheValue == NOT_PRESENT) { cacheValue = delegate.get(); } } } return (T) cacheValue; } }; }
Source:
<code>public static boolean isJetpack(@NonNull ImmutablePluginModel plugin) { <START> return checkNameOfPlugin(plugin, "jetpack/jetpack"); <END> }</code><technical_language>JETPACK_PLUGIN_NAME here</technical_language>

Target:
public static boolean isJetpack(@NonNull ImmutablePluginModel plugin) { return StringUtils.equals(plugin.getName(), JETPACK_PLUGIN_NAME); }