auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void returnFalseForIsConnectedWhenNetworkConnectionIsUnavailable() { when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(mockNetworkInfo); when(mockNetworkInfo.isConnected()).thenReturn(false); Assert.assertFalse(merlinsBeard.isConnected()); }

Target:
public void returnFalseForIsConnectedWhenNetworkConnectionIsUnavailable() { when(mockConnectivityManager.getActiveNetworkInfo()).thenReturn(mockNetworkInfo); when(mockNetworkInfo.isConnected()).thenReturn(false); assertThat(merlinsBeard.isConnected()).isFalse(); }
Source:
private boolean isMasterDomain(StorageDomain domain) { return domain.getStorageDomainType() == StorageDomainType.Master && domain.getStatus() != null && domain.getStatus() == StorageDomainStatus.Active; }

Target:
private boolean isMasterDomain(StorageDomain domain) { return domain.getStorageDomainType() == StorageDomainType.Master && domain.getStatus() == StorageDomainStatus.Active; }
Source:
public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); if (mIsCreate && mDevice != null) { outState.putSerializable("device", mDevice); } }

Target:
public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable("device", mDevice); }
Source:
private void navigateToUrl(String url) { if (url.startsWith("www.")) url = "http://" + url; Pattern reWebLink = Pattern.create("^https?://"); if (reWebLink.test(url)) { globalDisplay_.openWindow(url); return; } Pattern reSrcRef = Pattern.create("@[^#]+#\\d+"); if (reSrcRef.test(url)) return; final String finalUrl = url; server_.stat(finalUrl, new ServerRequestCallback<FileSystemItem>() { @Override public void onResponseReceived(FileSystemItem file) { if (file == null || !file.exists()) { globalDisplay_.showWarningBar(false, "No file at path '" + finalUrl + "'."); return; } FileType fileType = fileTypeRegistry_.getTypeForFile(file); if (fileType != null && fileType instanceof EditableFileType) { fileType.openFile(file, null, NavigationMethods.DEFAULT, events_); } else { events_.fireEvent(new OpenFileInBrowserEvent(file)); } } @Override public void onError(ServerError error) { Debug.logError(error); } }); }

Target:
private void navigateToUrl(String url) { if (url.startsWith("www.")) url = "http://" + url; Pattern reWebLink = Pattern.create("^https?://"); if (reWebLink.test(url)) { globalDisplay_.openWindow(url); return; } Pattern reSrcRef = Pattern.create("@[^#]+#\\d+"); if (reSrcRef.test(url)) return; final String finalUrl = url; server_.stat(finalUrl, new ServerRequestCallback<FileSystemItem>() { @Override public void onResponseReceived(FileSystemItem file) { if (file == null || !file.exists()) { String message = "No file at path '" + finalUrl + "'."; String caption = "Error navigating to file"; globalDisplay_.showErrorMessage(caption, message); return; } FileType fileType = fileTypeRegistry_.getTypeForFile(file); if (fileType != null && fileType instanceof EditableFileType) { fileType.openFile(file, null, NavigationMethods.DEFAULT, events_); } else { events_.fireEvent(new OpenFileInBrowserEvent(file)); } } @Override public void onError(ServerError error) { Debug.logError(error); } }); }
Source:
public <T, E1 extends Exception, E2 extends Exception> T transaction(TransactionActionWithExceptions<T, D, E1, E2> action, Class<E1> exClass1, Class<E2> exClass2) throws E1, E2 { try { return transactionRetryExecutor.runInterruptible(() -> { try (Handle handle = dbi.open()) { handle.begin(); T retval; try { retval = action.call(handle, handle.attach(daoIface)); } catch (Exception ex) { try { handle.rollback(); } catch (Exception rollback) { ex.addSuppressed(rollback); } Throwables.propagateIfInstanceOf(ex, exClass1); Throwables.propagateIfInstanceOf(ex, exClass2); Throwables.propagateIfPossible(ex); throw new TransactionFailedException( "Transaction failed do to exception being thrown " + "from within the callback. See cause " + "for the original exception.", ex); } validateTransactionAndCommit(handle); return retval; } }); } catch (RetryGiveupException ex) { Throwable innerException = ex.getCause(); Throwables.propagateIfInstanceOf(innerException, exClass1); Throwables.propagateIfInstanceOf(innerException, exClass2); throw Throwables.propagate(innerException); } catch (InterruptedException ex) { throw Throwables.propagate(ex); } }

Target:
public <T, E1 extends Exception, E2 extends Exception> T transaction(TransactionActionWithExceptions<T, D, E1, E2> action, Class<E1> exClass1, Class<E2> exClass2) throws E1, E2 { try { return transactionRetryExecutor.runInterruptible(() -> { try (Handle handle = dbi.open()) { handle.begin(); T retval; try { retval = action.call(handle, handle.attach(daoIface)); } catch (Exception ex) { try { handle.rollback(); } catch (Exception rollback) { ex.addSuppressed(rollback); } Throwables.propagateIfInstanceOf(ex, exClass1); Throwables.propagateIfInstanceOf(ex, exClass2); Throwables.propagateIfPossible(ex); throw new TransactionFailedException( "Transaction failed due to exception being thrown " + "from within the callback. See cause " + "for the original exception.", ex); } validateTransactionAndCommit(handle); return retval; } }); } catch (RetryGiveupException ex) { Throwable innerException = ex.getCause(); Throwables.propagateIfInstanceOf(innerException, exClass1); Throwables.propagateIfInstanceOf(innerException, exClass2); throw Throwables.propagate(innerException); } catch (InterruptedException ex) { throw Throwables.propagate(ex); } }
Source:
public String getLatestRevisionLocation() { return new String(req.getContextPath() + Prefix.XREF_P + path + "?r=" + getLatestRevision()); }

Target:
public String getLatestRevisionLocation() { StringBuilder sb = new StringBuilder(); sb.append(req.getContextPath()); sb.append(Prefix.XREF_P); sb.append(path); sb.append("?r="); sb.append(Util.URIEncode(getLatestRevision())); return sb.toString(); }
Source:
private void makePrivate(String noteId, AuthenticationInfo subject) { if (subject != null && !"anonymous".equals(subject.getUser())) { NotebookAuthorization notebookAuthorization = NotebookAuthorization.getInstance(); Set<String> users = notebookAuthorization.getOwners(noteId); users.add(subject.getUser()); notebookAuthorization.setOwners(noteId, users); users = notebookAuthorization.getReaders(noteId); users.add(subject.getUser()); notebookAuthorization.setReaders(noteId, users); users = notebookAuthorization.getWriters(noteId); users.add(subject.getUser()); notebookAuthorization.setWriters(noteId, users); } }

Target:
private void makePrivate(String noteId, AuthenticationInfo subject) { if (AuthenticationInfo.isAnonymous(subject)) { LOG.info("User is anonymous, permissions are not set for pulled notes"); return; } NotebookAuthorization notebookAuthorization = NotebookAuthorization.getInstance(); Set<String> users = notebookAuthorization.getOwners(noteId); users.add(subject.getUser()); notebookAuthorization.setOwners(noteId, users); users = notebookAuthorization.getReaders(noteId); users.add(subject.getUser()); notebookAuthorization.setReaders(noteId, users); users = notebookAuthorization.getWriters(noteId); users.add(subject.getUser()); notebookAuthorization.setWriters(noteId, users); }
Source:
BundleDescription[] getFragments(final BundleDescription host) { final List<BundleDescription> fragments = new ArrayList<>(); synchronized (this.monitor) { for (Iterator<BundleDescription> iter = bundleDescriptions.values().iterator(); iter.hasNext();) { BundleDescription bundle = iter.next(); HostSpecification hostSpec = bundle.getHost(); if (hostSpec != null) { BundleDescription[] hosts = hostSpec.getHosts(); if (hosts != null) for (BundleDescription host1 : hosts) { if (host1 == host) { fragments.add(bundle); break; } } } } } return fragments.toArray(new BundleDescription[fragments.size()]); }

Target:
BundleDescription[] getFragments(final BundleDescription host) { final List<BundleDescription> fragments = new ArrayList<>(); synchronized (this.monitor) { for (Iterator<BundleDescription> iter = bundleDescriptions.values().iterator(); iter.hasNext();) { BundleDescription bundle = iter.next(); HostSpecification hostSpec = bundle.getHost(); if (hostSpec != null) { BundleDescription[] hosts = hostSpec.getHosts(); if (hosts != null) for (BundleDescription hostCandidate : hosts) { if (hostCandidate == host) { fragments.add(bundle); break; } } } } } return fragments.toArray(new BundleDescription[fragments.size()]); }
Source:
public String getFieldType() { return fieldType; }

Target:
public RegistrationFieldType getFieldType() { return fieldType; }
Source:
public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof VmNetworkInterface)) { return false; } VmNetworkInterface other = (VmNetworkInterface) obj; if (!ObjectUtils.objectsEqual(getNetworkName(), other.getNetworkName())) { return false; } if (!ObjectUtils.objectsEqual(getVnicProfileName(), other.getVnicProfileName())) { return false; } if (isPortMirroring() != other.isPortMirroring()) { return false; } if (!ObjectUtils.objectsEqual(getVmName(), other.getVmName())) { return false; } if (isPlugged() != other.isPlugged()) { return false; } if (!ObjectUtils.objectsEqual(getQosName(), other.getNetworkName())) { return false; } return true; }

Target:
public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof VmNetworkInterface)) { return false; } VmNetworkInterface other = (VmNetworkInterface) obj; if (!ObjectUtils.objectsEqual(other.getNetworkName(), other.getNetworkName())) { return false; } if (!ObjectUtils.objectsEqual(other.getVnicProfileName(), other.getVnicProfileName())) { return false; } if (isPortMirroring() != other.isPortMirroring()) { return false; } if (!ObjectUtils.objectsEqual(other.getVmName(), other.getVmName())) { return false; } if (isPlugged() != other.isPlugged()) { return false; } if (!ObjectUtils.objectsEqual(getQosName(), other.getQosName())) { return false; } return true; }
Source:
public void listSettingRevisionsContext() { ConfigurationClient configurationClient = createSyncConfigurationClient(); SettingSelector settingSelector = new SettingSelector().keys("prodDBConnection"); Context ctx = new Context(key2, value2); PagedIterable<ConfigurationSetting> csStream = configurationClient.listSettingRevisions(settingSelector, ctx); csStream.streamByPage().forEach(setting -> { System.out.printf("Key: %s, Value: %s", setting.value().get(0).key(), setting.value().get(0).value()); }); END: com.azure.data.applicationconfig.configurationclient.listSettingRevisions#SettingSelector-Context }

Target:
public void listSettingRevisionsContext() { ConfigurationClient configurationClient = createSyncConfigurationClient(); SettingSelector settingSelector = new SettingSelector().keys("prodDBConnection"); Context ctx = new Context(key2, value2); configurationClient.listSettingRevisions(settingSelector, ctx).forEach(setting -> { System.out.printf("Key: %s, Value: %s", setting.key(), setting.value()); }); END: com.azure.data.applicationconfig.configurationclient.listSettingRevisions#settingSelector-context }
Source:
public void write(NullWritable n, T record) throws IOException { try { record.write(this.statement); this.numRecords += 1L; this.statement.addBatch(); if (this.numRecords % this.batchSize == 0L) { LOG.info("log commit called on a batch of size : " + this.batchSize); this.statement.executeBatch(); } } catch (SQLException e) { throw new IOException("Exception while committing to database.", e); } }

Target:
public void write(NullWritable n, T record) throws IOException { try { record.write(this.statement); this.numRecords += 1L; this.statement.addBatch(); if (this.numRecords % this.batchSize == 0L) { LOG.info("log commit called on a batch of size : " + this.batchSize); this.statement.executeBatch(); this.conn.commit(); } } catch (SQLException e) { throw new IOException("Exception while committing to database.", e); } }
Source:
private static int divide(BigInteger[] unscaled, int divisor) { BigInteger[] bi = unscaled[0].divideAndRemainder(BigInteger.valueOf(divisor)); unscaled[0] = bi[0]; return bi[1].shortValue(); }

Target:
private static int divide(BigInteger[] unscaled, int divisor) { BigInteger[] bi = unscaled[0].divideAndRemainder(BigInteger.valueOf(divisor)); unscaled[0] = bi[0]; return bi[1].intValue(); }
Source:
public void testASCIIMinMax() { final String CHARS = "#O*o+-,. "; final int len = CHARS.length(); final int width = 10; final byte[] array = new byte[width * len]; for (int i = 0; i < len; i++) { for (int j = 0; j < width; j++) { array[i * width + j] = (byte) (i * width + j); } } final UnsignedByteType min = new UnsignedByteType(0); final UnsignedByteType max = new UnsignedByteType(90); final Img<UnsignedByteType> img = ArrayImgs.unsignedBytes(array, width, len); final String ascii = (String) ops.run(DefaultASCII.class, img, min, max); for (int i = 0; i < len; i++) { for (int j = 0; j < width; j++) { assertTrue(ascii.charAt(i * (width + 1) + j) == CHARS.charAt(i)); } assertTrue(ascii.charAt(i * (width + 1) + width) == '\n'); } final String asciiUnclamped = (String) ops.run(DefaultASCII.class, img); assertTrue(asciiUnclamped != ascii); }

Target:
public void testASCIIMinMax() { final String CHARS = "#O*o+-,. "; final int len = CHARS.length(); final int width = 10; final byte[] array = new byte[width * len]; for (int i = 0; i < len; i++) { for (int j = 0; j < width; j++) { array[i * width + j] = (byte) (i * width + j); } } final UnsignedByteType min = new UnsignedByteType(0); final UnsignedByteType max = new UnsignedByteType(90); final Img<UnsignedByteType> img = ArrayImgs.unsignedBytes(array, width, len); final String ascii = (String) ops.run(DefaultASCII.class, img, min, max); for (int i = 0; i < len; i++) { for (int j = 0; j < width; j++) { assertEquals(ascii.charAt(i * (width + 1) + j), CHARS.charAt(i)); } assertEquals(ascii.charAt(i * (width + 1) + width), '\n'); } final String asciiUnclamped = (String) ops.run(DefaultASCII.class, img); assertEquals(asciiUnclamped, ascii); }
Source:
public static Slice stBuffer(@SqlType(GEOMETRY_TYPE_NAME) Slice input, @SqlType(DOUBLE) double distance) { if (distance < 0) { throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "distance must be greater than or equal to 0"); } if (distance == 0) { return input; } if (Double.isNaN(distance)) { throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "distance must not be NaN"); } OGCGeometry geometry = deserialize(input); if (geometry.isEmpty()) { return null; } return serialize(geometry.buffer(distance)); }

Target:
public static Slice stBuffer(@SqlType(GEOMETRY_TYPE_NAME) Slice input, @SqlType(DOUBLE) double distance) { if (Double.isNaN(distance)) { throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "distance is NaN"); } if (distance < 0) { throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "distance is negative"); } if (distance == 0) { return input; } OGCGeometry geometry = deserialize(input); if (geometry.isEmpty()) { return null; } return serialize(geometry.buffer(distance)); }
Source:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_login); setTitle(getString(R.string.txtSignIn)); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); userLoginUri = Uri.parse(getString(R.string.website) + "cgi/user.pl"); resetPasswordUri = Uri.parse(getString(R.string.website) + "cgi/reset_password.pl"); customTabActivityHelper = new CustomTabActivityHelper(); customTabActivityHelper.setConnectionCallback(this); customTabActivityHelper.mayLaunchUrl(userLoginUri, null, null); signup.setEnabled(false); final SharedPreferences settings = getSharedPreferences("login", 0); String loginS = settings.getString("user", getResources().getString(R.string.txt_anonymous)); if (!loginS.equals(getResources().getString(R.string.txt_anonymous))) { new MaterialDialog.Builder(this) .title("Login") .content("Already logged in!") .neutralText(R.string.ok_button) .show(); } apiClient = new Retrofit.Builder() .baseUrl(BuildConfig.HOST) .client(Utils.HttpClientBuilder()) .build() .create(OpenFoodAPIService.class); }

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(getResources().getBoolean(R.bool.portrait_only)){ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } setContentView(R.layout.activity_login); setTitle(getString(R.string.txtSignIn)); setSupportActionBar(toolbar); getSupportActionBar().setDisplayHomeAsUpEnabled(true); userLoginUri = Uri.parse(getString(R.string.website) + "cgi/user.pl"); resetPasswordUri = Uri.parse(getString(R.string.website) + "cgi/reset_password.pl"); customTabActivityHelper = new CustomTabActivityHelper(); customTabActivityHelper.setConnectionCallback(this); customTabActivityHelper.mayLaunchUrl(userLoginUri, null, null); signup.setEnabled(false); final SharedPreferences settings = getSharedPreferences("login", 0); String loginS = settings.getString("user", getResources().getString(R.string.txt_anonymous)); if (!loginS.equals(getResources().getString(R.string.txt_anonymous))) { new MaterialDialog.Builder(this) .title(R.string.log_in) .content(R.string.login_true) .neutralText(R.string.ok_button) .show(); } apiClient = new Retrofit.Builder() .baseUrl(BuildConfig.HOST) .client(Utils.HttpClientBuilder()) .build() .create(OpenFoodAPIService.class); }
Source:
public Take route(final Request request) throws IOException { return new TkEmpty(); }

Target:
public Take route(final Request request) throws IOException { throw new UnsupportedOperationException("not implemented yet"); }
Source:
public void testLoadOrderedPublicEvents_8() throws Throwable { UserDetails user = new OAuth2TestUtils.UserBuilder("jack_bauer", "0x24") .withAuthorization(Group.FREE_GROUP_NAME, "tempRole", Permission.BACKOFFICE).build(); String accessToken = mockOAuthInterceptor(user); ResultActions result = mockMvc .perform(get("/plugins/cms/contents") .param("status", IContentService.STATUS_ONLINE) .param("sort", IEntityManager.ENTITY_TYPE_CODE_FILTER_KEY) .param("direction", FieldSearchFilter.ASC_ORDER) .param("filters[0].attribute", IContentManager.ENTITY_TYPE_CODE_FILTER_KEY) .param("filters[0].operator", "eq") .param("filters[0].value", "EVN") .sessionAttr("user", user) .header("Authorization", "Bearer " + accessToken)); String bodyResult = result.andReturn().getResponse().getContentAsString(); result.andExpect(status().isOk()); String[] expectedFreeContentsId = {"EVN20", "EVN192", "EVN23", "EVN24", "EVN21", "EVN25", "EVN191", "EVN194", "EVN193"}; int payloadSize = JsonPath.read(bodyResult, "$.payload.size()"); Assert.assertEquals(expectedFreeContentsId.length, payloadSize); for (int i = 0; i < expectedFreeContentsId.length; i++) { String expectedId = expectedFreeContentsId[i]; String extractedId = JsonPath.read(bodyResult, "$.payload[" + i + "].id"); Assert.assertEquals(expectedId, extractedId); } }

Target:
public void testLoadOrderedPublicEvents_8() throws Throwable { UserDetails user = new OAuth2TestUtils.UserBuilder("jack_bauer", "0x24") .withAuthorization(Group.FREE_GROUP_NAME, "tempRole", Permission.BACKOFFICE).build(); String accessToken = mockOAuthInterceptor(user); ResultActions result = mockMvc .perform(get("/plugins/cms/contents") .param("status", IContentService.STATUS_ONLINE) .param("sort", IEntityManager.ENTITY_TYPE_CODE_FILTER_KEY) .param("direction", FieldSearchFilter.ASC_ORDER) .param("filters[0].attribute", IContentManager.ENTITY_TYPE_CODE_FILTER_KEY) .param("filters[0].operator", "eq") .param("filters[0].value", "EVN") .sessionAttr("user", user) .header("Authorization", "Bearer " + accessToken)); result.andDo(print()) .andExpect(status().isOk()) .andExpect(jsonPath("$.payload.size()", is(9))) .andExpect(jsonPath("$.payload[0].id", is("EVN20"))) .andExpect(jsonPath("$.payload[1].id", is("EVN192"))) .andExpect(jsonPath("$.payload[2].id", is("EVN23"))) .andExpect(jsonPath("$.payload[3].id", is("EVN24"))) .andExpect(jsonPath("$.payload[4].id", is("EVN21"))) .andExpect(jsonPath("$.payload[5].id", is("EVN25"))) .andExpect(jsonPath("$.payload[6].id", is("EVN191"))) .andExpect(jsonPath("$.payload[7].id", is("EVN194"))) .andExpect(jsonPath("$.payload[8].id", is("EVN193"))); }
Source:
private void validateSize(int bytes) { bytesRead += bytes; if (bytesRead > maxRequestSize && shouldLimit) { throw new IllegalArgumentException( "Request size exceeded maximum number of allowed bytes " + MAX_REQUEST_SIZE_BYTES); } }

Target:
private void validateSize(int bytes) { bytesRead += bytes; if (bytesRead > maxRequestSize && shouldLimit) { throw new ServiceException(ErrorType.REQUEST_ENTITY_TOO_LARGE, SafeArg.of("maxRequestSizeBytes", maxRequestSize)); } }
Source:
private void validateNewCommits(RefControl ctl, ReceiveCommand cmd) { if (ctl.canForgeAuthor() && ctl.canForgeCommitter() && ctl.canForgeGerritServerIdentity() && ctl.canUploadMerges() && !project.isUseSignedOffBy() && Iterables.isEmpty(rejectCommits) && !GitRepositoryManager.REF_CONFIG.equals(ctl.getRefName()) && !(MagicBranch.isMagicBranch(cmd.getRefName()) || NEW_PATCHSET.matcher(cmd.getRefName()).matches())) { return; } final RevWalk walk = rp.getRevWalk(); walk.reset(); walk.sort(RevSort.NONE); try { Set<ObjectId> existing = Sets.newHashSet(); walk.markStart(walk.parseCommit(cmd.getNewId())); markHeadsAsUninteresting(walk, existing); RevCommit c; while ((c = walk.next()) != null) { if (existing.contains(c)) continue; if (!validCommit(ctl, cmd, c)) { break; } } } catch (IOException err) { cmd.setResult(REJECTED_MISSING_OBJECT); log.error("Invalid pack upload; one or more objects weren't sent", err); } }

Target:
private void validateNewCommits(RefControl ctl, ReceiveCommand cmd) { if (ctl.canForgeAuthor() && ctl.canForgeCommitter() && ctl.canForgeGerritServerIdentity() && ctl.canUploadMerges() && !project.isUseSignedOffBy() && Iterables.isEmpty(rejectCommits) && !GitRepositoryManager.REF_CONFIG.equals(ctl.getRefName()) && !(MagicBranch.isMagicBranch(cmd.getRefName()) || NEW_PATCHSET.matcher(cmd.getRefName()).matches())) { return; } final RevWalk walk = rp.getRevWalk(); walk.reset(); walk.sort(RevSort.NONE); try { Set<ObjectId> existing = Sets.newHashSet(); walk.markStart(walk.parseCommit(cmd.getNewId())); markHeadsAsUninteresting(walk, existing); RevCommit c; while ((c = walk.next()) != null) { if (existing.contains(c)) { continue; } else if (!validCommit(ctl, cmd, c)) { break; } } } catch (IOException err) { cmd.setResult(REJECTED_MISSING_OBJECT); log.error("Invalid pack upload; one or more objects weren't sent", err); } }
Source:
private void createMetrics() { LatencyMetric globalBaselineCalcLatencyGauge = new RebalanceLatencyGauge( WagedRebalancerMetricNames.GlobalBaselineCalcLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric partialRebalanceLatencyGauge = new RebalanceLatencyGauge( WagedRebalancerMetricNames.PartialRebalanceLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric stateReadLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.StateReadLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric stateWriteLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.StateWriteLatencyGauge.name(), getResetIntervalInMs()); CountMetric calcFailureCount = new RebalanceFailureCount(WagedRebalancerMetricNames.RebalanceFailureCount.name()); addMetric(globalBaselineCalcLatencyGauge); addMetric(partialRebalanceLatencyGauge); addMetric(stateReadLatencyGauge); addMetric(stateWriteLatencyGauge); addMetric(calcFailureCount); }

Target:
private void createMetrics() { LatencyMetric globalBaselineCalcLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.GlobalBaselineCalcLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric partialRebalanceLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.PartialRebalanceLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric stateReadLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.StateReadLatencyGauge.name(), getResetIntervalInMs()); LatencyMetric stateWriteLatencyGauge = new RebalanceLatencyGauge(WagedRebalancerMetricNames.StateWriteLatencyGauge.name(), getResetIntervalInMs()); CountMetric calcFailureCount = new RebalanceFailureCount(WagedRebalancerMetricNames.RebalanceFailureCounter.name()); addMetric(globalBaselineCalcLatencyGauge); addMetric(partialRebalanceLatencyGauge); addMetric(stateReadLatencyGauge); addMetric(stateWriteLatencyGauge); addMetric(calcFailureCount); }
Source:
} catch (JAXBException e) { throw new RuntimeException("Could not initialize " + StandardBusinessDocumentConverter.class, e); }

Target:
} catch (JAXBException e) { throw new MeldingsUtvekslingRuntimeException("Could not initialize " + StandardBusinessDocumentConverter.class, e); }
Source:
private void removeMember(DbSession dbSession, OrganizationDto organization, UserDto user) { ensureLastAdminIsNotRemoved(dbSession, organization, user); int userId = user.getId(); String organizationUuid = organization.getUuid(); dbClient.userPermissionDao().deleteOrganizationMemberPermissions(dbSession, organizationUuid, userId); dbClient.permissionTemplateDao().deleteUserPermissionsByOrganization(dbSession, organizationUuid, userId); dbClient.qProfileEditUsersDao().deleteByUser(dbSession, user); dbClient.userGroupDao().deleteByOrganizationAndUser(dbSession, organizationUuid, userId); dbClient.propertiesDao().deleteByOrganizationAndUser(dbSession, organizationUuid, userId); dbClient.propertiesDao().deleteByOrganizationAndMatchingLogin(dbSession, organizationUuid, user.getLogin(), singletonList(DEFAULT_ISSUE_ASSIGNEE)); dbClient.organizationMemberDao().delete(dbSession, organizationUuid, userId); userIndexer.commitAndIndex(dbSession, user); }

Target:
private void removeMember(DbSession dbSession, OrganizationDto organization, UserDto user) { ensureLastAdminIsNotRemoved(dbSession, organization, user); int userId = user.getId(); String organizationUuid = organization.getUuid(); dbClient.userPermissionDao().deleteOrganizationMemberPermissions(dbSession, organizationUuid, userId); dbClient.permissionTemplateDao().deleteUserPermissionsByOrganization(dbSession, organizationUuid, userId); dbClient.qProfileEditUsersDao().deleteByOrganizationAndUser(dbSession, organization, user); dbClient.userGroupDao().deleteByOrganizationAndUser(dbSession, organizationUuid, userId); dbClient.propertiesDao().deleteByOrganizationAndUser(dbSession, organizationUuid, userId); dbClient.propertiesDao().deleteByOrganizationAndMatchingLogin(dbSession, organizationUuid, user.getLogin(), singletonList(DEFAULT_ISSUE_ASSIGNEE)); dbClient.organizationMemberDao().delete(dbSession, organizationUuid, userId); userIndexer.commitAndIndex(dbSession, user); }
Source:
public static String sanitize(String input) { String sanitized = CharMatcher.JAVA_LETTER_OR_DIGIT .or(CharMatcher.WHITESPACE) .retainFrom(input); sanitized = CharMatcher.WHITESPACE.trimAndCollapseFrom(sanitized, ' '); return CharMatcher.WHITESPACE.replaceFrom(sanitized, '-').toLowerCase(); }

Target:
public static String sanitize(String input) { if (Strings.isNullOrEmpty(input)) { return input; } String sanitized = CharMatcher.JAVA_LETTER_OR_DIGIT .or(CharMatcher.WHITESPACE) .retainFrom(input); sanitized = CharMatcher.WHITESPACE.trimAndCollapseFrom(sanitized, ' '); return CharMatcher.WHITESPACE.replaceFrom(sanitized, '-').toLowerCase(); }
Source:
@BeforeClass public void beforeClass() throws Exception { admin = _gSetupTool.getClusterManagementTool(); super.beforeClass(); }

Target:
public void beforeClass() throws Exception { super.beforeClass(); }
Source:
@Override public RelNode convert(RelNode rel) { LogicalJoin join = (LogicalJoin) rel; List<RelNode> newInputs = new ArrayList<>(); for (RelNode input : join.getInputs()) { if (!(input.getConvention() instanceof EnumerableConvention)) { input = convert( input, input.getTraitSet() .replace(EnumerableConvention.INSTANCE)); } newInputs.add(input); } final RelOptCluster cluster = join.getCluster(); final RelNode left = newInputs.get(0); final RelNode right = newInputs.get(1); final JoinInfo info = JoinInfo.of(left, right, join.getCondition()); if (!info.isEqui() && join.getJoinType() != JoinRelType.INNER) { try { return EnumerableThetaJoin.create( left, right, join.getCondition(), join.getVariablesSet(), join.getJoinType()); } catch (InvalidRelException e) { EnumerableRules.LOGGER.debug(e.toString()); return null; } } else if (info.isEqui() && join.isNonCorrelateSemiJoin()) { return EnumerableNestedLoopJoin.create( left, right, join.getCondition(), join.getVariablesSet(), ImmutableBitSet.of(), join.getJoinType()); } else { RelNode newRel; try { newRel = EnumerableHashJoin.create( left, right, info.getEquiCondition(left, right, cluster.getRexBuilder()), join.getVariablesSet(), join.getJoinType()); } catch (InvalidRelException e) { EnumerableRules.LOGGER.debug(e.toString()); return null; } if (!info.isEqui()) { newRel = new EnumerableFilter(cluster, newRel.getTraitSet(), newRel, info.getRemaining(cluster.getRexBuilder())); } return newRel; } }

Target:
@Override public RelNode convert(RelNode rel) { LogicalJoin join = (LogicalJoin) rel; List<RelNode> newInputs = new ArrayList<>(); for (RelNode input : join.getInputs()) { if (!(input.getConvention() instanceof EnumerableConvention)) { input = convert( input, input.getTraitSet() .replace(EnumerableConvention.INSTANCE)); } newInputs.add(input); } final RelOptCluster cluster = join.getCluster(); final RelNode left = newInputs.get(0); final RelNode right = newInputs.get(1); final JoinInfo info = JoinInfo.of(left, right, join.getCondition()); if (!info.isEqui() && join.getJoinType() != JoinRelType.INNER) { try { return EnumerableNestedLoopJoin.create( left, right, join.getCondition(), join.getVariablesSet(), join.getJoinType()); } catch (InvalidRelException e) { EnumerableRules.LOGGER.debug(e.toString()); return null; } } else { RelNode newRel; try { newRel = EnumerableHashJoin.create( left, right, info.getEquiCondition(left, right, cluster.getRexBuilder()), join.getVariablesSet(), join.getJoinType()); } catch (InvalidRelException e) { EnumerableRules.LOGGER.debug(e.toString()); return null; } if (!info.isEqui()) { newRel = new EnumerableFilter(cluster, newRel.getTraitSet(), newRel, info.getRemaining(cluster.getRexBuilder())); } return newRel; } }
Source:
public void testInsertSingleIterable() throws Exception { UsesBatching b = handle.attach(UsesBatching.class); List<Something> to_insert = Arrays.asList(new Something(1, "Tom"), new Something(2, "Tatu")); int[] counts = b.insertBeans(to_insert); assertThat(counts).hasSize(2).containsOnly(1); assertThat(b.size()).isEqualTo(2); }

Target:
public void testInsertSingleIterable() throws Exception { UsesBatching b = handle.attach(UsesBatching.class); List<Something> to_insert = Arrays.asList(new Something(1, "Tom"), new Something(2, "Tatu")); int[] counts = b.insertBeans(to_insert); assertThat(counts).containsExactly(1, 1); assertThat(b.size()).isEqualTo(2); }
Source:
public void exitJava(int exitCode, boolean hardExit) { FMLLog.log.info("Java has been asked to exit (code {}) by {}.", exitCode, Thread.currentThread().getStackTrace()[2]); if (hardExit) { FMLLog.log.info("This is an abortive exit and could cause world corruption or other things"); } if (Boolean.parseBoolean(System.getProperty("fml.debugExit", "false"))) { FMLLog.log.info("Exit trace", new Throwable()); } else { FMLLog.log.info("If this was an unexpected exit, use -Dfml.debugExit=true as a JVM argument to find out where it was called"); } if (hardExit) { Runtime.getRuntime().halt(exitCode); } else { Runtime.getRuntime().exit(exitCode); } }

Target:
public void exitJava(int exitCode, boolean hardExit) { FMLLog.log.warn("Java has been asked to exit (code {})", exitCode); if (hardExit) { FMLLog.log.warn("This is an abortive exit and could cause world corruption or other things"); } StackTraceElement[] stack = Thread.currentThread().getStackTrace(); FMLLog.log.warn("Exit trace:"); for (int i = 2; i < stack.length; i++) { FMLLog.log.warn("\t{}", stack[i]); } if (hardExit) { Runtime.getRuntime().halt(exitCode); } else { Runtime.getRuntime().exit(exitCode); } }
Source:
public void testPhoneHomeParameterCreator() { PhoneHomeParameterCreator phoneHomeParameterCreator = new PhoneHomeParameterCreator(); phoneHomeParameterCreator.addParam("1", "hazelcast"); phoneHomeParameterCreator.addParam("2", "phonehome"); Map<String, String> map = phoneHomeParameterCreator.getParameters(); assertEquals(phoneHomeParameterCreator.build(), "?1=hazelcast&2=phonehome"); assertNotNull(map); assertEquals(map.get("1"), "hazelcast"); assertEquals(map.get("2"), "phonehome"); assertNull(map.get("3")); }

Target:
public void testPhoneHomeParameterCreator() { PhoneHomeParameterCreator phoneHomeParameterCreator = new PhoneHomeParameterCreator(); phoneHomeParameterCreator.addParam("1", "hazelcast"); phoneHomeParameterCreator.addParam("2", "phonehome"); Map<String, String> map = phoneHomeParameterCreator.getParameters(); assertEquals("?1=hazelcast&2=phonehome", phoneHomeParameterCreator.build()); assertEquals(ImmutableMap.of("1", "hazelcast", "2", "phonehome"), map); }
Source:
private void buildFailoverRegions() { final Set<? extends Set<? extends SchedulingExecutionVertex>> distinctRegions = PipelinedRegionComputeUtil.computePipelinedRegions(topology); for (Set<? extends SchedulingExecutionVertex> regionVertices : distinctRegions) { LOG.debug("Creating a failover region with vertices.", regionVertices.size()); final FailoverRegion failoverRegion = new FailoverRegion(regionVertices); regions.add(failoverRegion); for (SchedulingExecutionVertex vertex : regionVertices) { vertexToRegionMap.put(vertex.getId(), failoverRegion); } } LOG.info("Created failover regions.", regions.size()); }

Target:
private void buildFailoverRegions() { final Set<Set<SchedulingExecutionVertex>> distinctRegions = PipelinedRegionComputeUtil.computePipelinedRegions(topology); for (Set<SchedulingExecutionVertex> regionVertices : distinctRegions) { LOG.debug("Creating a failover region with vertices.", regionVertices.size()); final FailoverRegion failoverRegion = new FailoverRegion(regionVertices); regions.add(failoverRegion); for (SchedulingExecutionVertex vertex : regionVertices) { vertexToRegionMap.put(vertex.getId(), failoverRegion); } } LOG.info("Created failover regions.", regions.size()); }
Source:
public void route(final Message message, final RoutingContext context) throws Exception { if (logger.isTraceEnabled()) { logger.trace("Diverting message " + message + " into " + this); } Message copy = null; if (!forwardAddress.equals(context.getAddress(message))) { long id = storageManager.generateID(); copy = message.copy(id); copy.referenceOriginalMessage(message, this.getUniqueName().toString()); copy.setAddress(forwardAddress); copy.setExpiration(message.getExpiration()); copy.reencode(); switch (routingType) { case ANYCAST: copy.setRoutingType(RoutingType.ANYCAST); break; case MULTICAST: copy.setRoutingType(RoutingType.MULTICAST); break; case STRIP: copy.setRoutingType(null); break; case PASS: break; } if (transformer != null) { copy = transformer.transform(copy); copy.reencode(); } } else { copy = message; } postOffice.route(copy, context.getTransaction(), false); }

Target:
public void route(final Message message, final RoutingContext context) throws Exception { if (logger.isTraceEnabled()) { logger.trace("Diverting message " + message + " into " + this); } context.setReusable(false); Message copy = null; if (!forwardAddress.equals(context.getAddress(message))) { long id = storageManager.generateID(); copy = message.copy(id); copy.referenceOriginalMessage(message, this.getUniqueName().toString()); copy.setAddress(forwardAddress); copy.setExpiration(message.getExpiration()); copy.reencode(); switch (routingType) { case ANYCAST: copy.setRoutingType(RoutingType.ANYCAST); break; case MULTICAST: copy.setRoutingType(RoutingType.MULTICAST); break; case STRIP: copy.setRoutingType(null); break; case PASS: break; } if (transformer != null) { copy = transformer.transform(copy); } } else { copy = message; } postOffice.route(copy, new RoutingContextImpl(context.getTransaction()).setReusable(false), false); }
Source:
protected void setUp() throws Exception { if (loadedBindings == null) { IEclipseContext globalContext = Activator.getDefault().getGlobalContext(); workbenchContext = globalContext.createChild("workbenchContext"); loadedBindings = new ArrayList<Binding>(); contextManager = new ContextManager(); ContextSet.setComparator(new ContextSet.CComp(contextManager)); for (int i = 0; i < CONTEXTS.length; i += 3) { Context context = contextManager.getContext(CONTEXTS[i]); context.define(CONTEXTS[i + 1], null, CONTEXTS[i + 2]); } commandManager = new CommandManager(); Category category = commandManager.getCategory("bogus"); category.define("Bogus", null); for (int i = 0; i < COMMANDS.length; i += 2) { Command cmd = commandManager.getCommand(COMMANDS[i]); cmd.define(COMMANDS[i + 1], null, category); } for (int i = 0; i < BINDINGS.length; i += 3) { KeySequence seq = KeySequence.getInstance(BINDINGS[i + 1]); Command cmd = commandManager.getCommand(BINDINGS[i]); loadedBindings.add(new KeyBinding(seq, new ParameterizedCommand(cmd, null), "org.eclipse.ui.defaultAcceleratorConfiguration", BINDINGS[i + 2], null, null, null, Binding.SYSTEM)); } } System.out.println("Made setup"); }

Target:
protected void setUp() throws Exception { if (loadedBindings == null) { IEclipseContext globalContext = Activator.getDefault().getGlobalContext(); workbenchContext = globalContext.createChild("workbenchContext"); loadedBindings = new ArrayList<Binding>(); contextManager = new ContextManager(); ContextSet.setComparator(new ContextSet.CComp(contextManager)); for (int i = 0; i < CONTEXTS.length; i += 3) { Context context = contextManager.getContext(CONTEXTS[i]); context.define(CONTEXTS[i + 1], null, CONTEXTS[i + 2]); } commandManager = new CommandManager(); Category category = commandManager.getCategory("bogus"); category.define("Bogus", null); for (int i = 0; i < COMMANDS.length; i += 2) { Command cmd = commandManager.getCommand(COMMANDS[i]); cmd.define(COMMANDS[i + 1], null, category); } for (int i = 0; i < BINDINGS.length; i += 3) { KeySequence seq = KeySequence.getInstance(BINDINGS[i + 1]); Command cmd = commandManager.getCommand(BINDINGS[i]); loadedBindings.add(new KeyBinding(seq, new ParameterizedCommand(cmd, null), "org.eclipse.ui.defaultAcceleratorConfiguration", BINDINGS[i + 2], null, null, null, Binding.SYSTEM)); } } }
Source:
public int hashCode() { return Objects.hash( groups.getData(), groups.getMetadata().orElse(null), userRegex.map(Pattern::pattern), userRegex.map(Pattern::flags), sourceRegex.map(Pattern::pattern), sourceRegex.map(Pattern::flags)); }

Target:
public int hashCode() { return Objects.hash( group, queryType, userRegex.map(Pattern::pattern), userRegex.map(Pattern::flags), sourceRegex.map(Pattern::pattern), sourceRegex.map(Pattern::flags)); }
Source:
public static ConnectionType get(int id) { return lookupTable.get(id); }

Target:
public static ConnectionType get(int id) { ConnectionType connectionType = lookupTable.get(id); if (connectionType != null) return connectionType; return UNKNOWN; }
Source:
public TestMethodWorker(IInvoker invoker, IMethodInstance[] testMethods, XmlSuite suite, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ClassMethodMap classMethodMap, ITestContext testContext, List<IClassListener> listeners) { m_invoker = invoker; m_suite = suite; m_parameters = parameters; m_groupMethods = groupMethods; m_classMethodMap = classMethodMap; m_testContext = testContext; m_listeners = listeners; List<IMethodInstance> localMethodInstances = Lists.newArrayList(testMethods); Collections.sort(localMethodInstances, new Comparator<IMethodInstance>() { @Override public int compare(IMethodInstance o1, IMethodInstance o2) { Integer i1 = o1.getMethod().getPriority(); Integer i2 = o2.getMethod().getPriority(); return i1.compareTo(i2); } }); m_methodInstances = localMethodInstances.toArray(new IMethodInstance[localMethodInstances.size()]); }

Target:
public TestMethodWorker(IInvoker invoker, IMethodInstance[] testMethods, XmlSuite suite, Map<String, String> parameters, ConfigurationGroupMethods groupMethods, ClassMethodMap classMethodMap, ITestContext testContext, List<IClassListener> listeners) { m_invoker = invoker; m_methodInstances = testMethods; m_suite = suite; m_parameters = parameters; m_groupMethods = groupMethods; m_classMethodMap = classMethodMap; m_testContext = testContext; m_listeners = listeners; }
Source:
public void setUp() { registerService(volatileStorageService); managedThingProvider = getService(ThingProvider.class, ManagedThingProvider.class); assertNotNull("Could not get ManagedThingProvider", managedThingProvider); bridge = BridgeBuilder.create(BRIDGE_THING_TYPE_UID, "1").withLabel("My Bridge").build(); assertNotNull("Could not get Bridge Configuration", bridge.getConfiguration()); }

Target:
public void setUp() { registerService(volatileStorageService); managedThingProvider = getService(ThingProvider.class, ManagedThingProvider.class); assertNotNull(managedThingProvider); bridge = BridgeBuilder.create(BRIDGE_THING_TYPE_UID, "1").withLabel("My Bridge").build(); assertNotNull(bridge.getConfiguration()); }
Source:
protected MapSqlParameterSource createFullParametersMapper(CommandEntity entity) { return getCustomMapSqlParameterSource().addValue("user_id", Guid.isNullOrEmpty(entity.getUserId()) ? Guid.Empty : entity.getUserId()) .addValue("command_id", Guid.isNullOrEmpty(entity.getId()) ? Guid.Empty : entity.getId()) .addValue("command_type", entity.getCommandType().getValue()) .addValue("parent_command_id", Guid.isNullOrEmpty(entity.getParentCommandId()) ? Guid.Empty : entity.getParentCommandId()) .addValue("root_command_id", Guid.isNullOrEmpty(entity.getRootCommandId()) ? Guid.Empty : entity.getRootCommandId()) .addValue("job_id", Guid.isNullOrEmpty(entity.getJobId()) ? Guid.Empty : entity.getJobId()) .addValue("step_id", Guid.isNullOrEmpty(entity.getStepId()) ? Guid.Empty : entity.getStepId()) .addValue("command_parameters", serializeParameters(entity.getCommandParameters())) .addValue("command_params_class", entity.getCommandParameters() == null ? null : entity.getCommandParameters().getClass().getName()) .addValue("status", entity.getCommandStatus().toString()) .addValue("executed", entity.isExecuted()) .addValue("callback_enabled", entity.isCallbackEnabled()) .addValue("return_value", serializeReturnValue(entity.getReturnValue())) .addValue("return_value_class", entity.getReturnValue() == null ? null : entity.getReturnValue().getClass().getName()); }

Target:
protected MapSqlParameterSource createFullParametersMapper(CommandEntity entity) { return getCustomMapSqlParameterSource().addValue("user_id", Guid.isNullOrEmpty(entity.getUserId()) ? Guid.Empty : entity.getUserId()) .addValue("command_id", Guid.isNullOrEmpty(entity.getId()) ? Guid.Empty : entity.getId()) .addValue("command_type", entity.getCommandType().getValue()) .addValue("parent_command_id", entity.getParentCommandId()) .addValue("root_command_id", Guid.isNullOrEmpty(entity.getRootCommandId()) ? Guid.Empty : entity.getRootCommandId()) .addValue("job_id", Guid.isNullOrEmpty(entity.getJobId()) ? Guid.Empty : entity.getJobId()) .addValue("step_id", Guid.isNullOrEmpty(entity.getStepId()) ? Guid.Empty : entity.getStepId()) .addValue("command_parameters", serializeParameters(entity.getCommandParameters())) .addValue("command_params_class", entity.getCommandParameters() == null ? null : entity.getCommandParameters().getClass().getName()) .addValue("status", entity.getCommandStatus().toString()) .addValue("executed", entity.isExecuted()) .addValue("callback_enabled", entity.isCallbackEnabled()) .addValue("return_value", serializeReturnValue(entity.getReturnValue())) .addValue("return_value_class", entity.getReturnValue() == null ? null : entity.getReturnValue().getClass().getName()); }
Source:
public void processCorenodeEvent(String username, PublicKeyHash ownedKeyHash) { try { Set<PublicKeyHash> childrenKeys = WriterData.getDirectOwnedKeys(ownedKeyHash, mutable, dht); currentView.computeIfAbsent(ownedKeyHash, k -> new Stat(username, MaybeMultihash.empty(), 0, childrenKeys)); Stat current = currentView.get(ownedKeyHash); MaybeMultihash updatedRoot = mutable.getPointerKeyHash(ownedKeyHash, dht).get(); processMutablePointerEvent(ownedKeyHash, current.target, updatedRoot); for (PublicKeyHash childKey : childrenKeys) { processCorenodeEvent(username, childKey); } } catch (Exception e) { e.printStackTrace(); } }

Target:
public void processCorenodeEvent(String username, PublicKeyHash ownedKeyHash) { try { Set<PublicKeyHash> childrenKeys = WriterData.getDirectOwnedKeys(ownedKeyHash, mutable, dht); currentView.computeIfAbsent(ownedKeyHash, k -> new Stat(username, MaybeMultihash.empty(), 0, childrenKeys)); Stat current = currentView.get(ownedKeyHash); MaybeMultihash updatedRoot = mutable.getPointerTarget(ownedKeyHash, dht).get(); processMutablePointerEvent(ownedKeyHash, current.target, updatedRoot); for (PublicKeyHash childKey : childrenKeys) { processCorenodeEvent(username, childKey); } } catch (Exception e) { e.printStackTrace(); } }
Source:
protected boolean canDoAction() { parameters = getParameters(); if (!super.canDoAction()) { return false; } if (getGeoRepSession().getStatus().equals(GeoRepSessionStatus.ACTIVE)) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_GEOREP_SESSION_RESUMED); return false; } return true; }

Target:
protected boolean canDoAction() { parameters = getParameters(); if (!super.canDoAction()) { return false; } if (getGeoRepSession().getStatus().equals(GeoRepSessionStatus.ACTIVE)) { addCanDoActionMessage(VdcBllMessages.ACTION_TYPE_FAILED_GEOREP_SESSION_ALREADY_RESUMED); return false; } return true; }
Source:
protected void unregisterIdP(IdPClient client) { }

Target:
protected void unregisterIdP(IdPClient client) { DataHolder.getInstance().setIdPClient(null); }