auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private Hashtable<String, XMLObject> initializeSession() { Hashtable<String, XMLObject> messages = (Hashtable<String, XMLObject>) context.getSessionStore().get(context, SAML_STORAGE_KEY).orElse(null); if (messages == null) { synchronized (context) { messages = (Hashtable<String, XMLObject>) context.getSessionStore().get(context, SAML_STORAGE_KEY).orElse(null); if (messages == null) { messages = new Hashtable<>(); updateSession(messages); } } } return messages; }

Target:
private Hashtable<String, XMLObject> initializeSession() { return getMessagesFromSession().orElseGet( () -> { synchronized (context) { return getMessagesFromSession().orElseGet( () -> { Hashtable<String, XMLObject> messagesHashtable = new Hashtable<>(); updateSession(messagesHashtable); return messagesHashtable; } ); } } ); }
Source:
public void unsubscribe() { synchronized (this) { if (unsubscribed || subscriptions == null) { return; } else { unsubscribed = true; } } unsubscribeFromAll(subscriptions); }

Target:
public void unsubscribe() { synchronized (this) { if (unsubscribed) { return; } unsubscribed = true; } unsubscribeFromAll(subscriptions); }
Source:
public synchronized Optional<InboxMessage> oldestMessageToDeliver(ShardIndex index) { TenantInboxRecords storage = multitenantStorage.currentSlice(); Optional<InboxMessage> result = storage.readAll() .stream() .filter((r) -> index.equals(r.getShardIndex()) && r.getStatus() == InboxMessageStatus.TO_DELIVER) .min(InMemoryInboxStorage::compareMessages); return result; }

Target:
public Optional<InboxMessage> oldestMessageToDeliver(ShardIndex index) { TenantInboxRecords storage = multitenantStorage.currentSlice(); Optional<InboxMessage> result = storage.readAll() .stream() .filter((r) -> index.equals(r.getShardIndex()) && isToDeliver(r)) .min(InMemoryInboxStorage::compareMessages); return result; }
Source:
protected String getOutputNameFromSettings(IServerAttributes server, IModule module) { String ret = super.getOutputNameFromSettings(server, module); if (ret == null && module.equals(findProjectModule(server))) { String suffix = ServerModelUtilities.getDefaultSuffixForModule(module); ret = module.getName() + suffix; } return ret; }

Target:
protected String getOutputNameFromSettings(IServerAttributes server, IModule module) { String ret = super.getOutputNameFromSettings(server, module); if (ret == null && module.equals(findProjectModule(server))) { String suffix = ServerModelUtilities.getDefaultSuffixForModule(module); String deployName = getDeployName(module); ret = deployName + suffix; } return ret; }
Source:
protected AbstractProjectFoldersGenerator getProjectFoldersGenerator() { String groupId = project.getGroupId(); String artifactId = project.getArtifactId(); PackagingType packagingType = PackagingType.fromString(project.getPackaging()); if (packagingType.equals(PackagingType.MULE_DOMAIN_BUNDLE)) { return new BundleDomainProjectFoldersGenerator(groupId, artifactId, packagingType); } return new MuleProjectFoldersGenerator(groupId, artifactId, packagingType); }

Target:
public AbstractProjectFoldersGenerator getProjectFoldersGenerator() { return ProjectFoldersGeneratorFactory.create(getProjectInformation()); }
Source:
public Integer call() { int subsequentEmptyBatches = 0; do { try { final Span span = queue.poll(5, TimeUnit.SECONDS); if (span == null) { subsequentEmptyBatches++; } else { notificationsHandler.onQueueSizeChanged(queue.size()); logEntries.add(create(span)); } if (subsequentEmptyBatches >= MAX_SUBSEQUENT_EMPTY_BATCHES && !logEntries.isEmpty() || logEntries.size() >= maxBatchSize || !logEntries.isEmpty() && stop) { log(logEntries); logEntries.clear(); subsequentEmptyBatches = 0; } } catch (final Exception e) { LOGGER.log(Level.WARNING, "Unexpected exception flushing spans", e); } } while (stop == false); return processedSpans; }

Target:
public Integer call() { int subsequentEmptyBatches = 0; do { try { final Span span = queue.poll(5, TimeUnit.SECONDS); if (span == null) { subsequentEmptyBatches++; } else { logEntries.add(create(span)); } if (subsequentEmptyBatches >= MAX_SUBSEQUENT_EMPTY_BATCHES && !logEntries.isEmpty() || logEntries.size() >= maxBatchSize || !logEntries.isEmpty() && stop) { log(logEntries); logEntries.clear(); subsequentEmptyBatches = 0; } } catch (final Exception e) { LOGGER.log(Level.WARNING, "Unexpected exception flushing spans", e); } } while (stop == false); return processedSpans; }
Source:
private void logRequest(OCSPReq ocspRequest) { StringBuffer logbuff = new StringBuffer(); logbuff.append("OCSP Request:\n"); logbuff.append(" TBSRequest:\n"); logbuff.append(" version: " + getValueOrDefault(ocspRequest.getVersionNumber(), "") + "\n"); logbuff.append( " requestorName: " + getValueOrDefault(ocspRequest.getRequestorName(), "").toString() + "\n"); logbuff.append(" requestList:\n"); Req[] requests = ocspRequest.getRequestList(); if (requests != null) { int i = 0; for (Req req : requests) { logbuff.append(" Certificate " + i++ + "\n"); CertificateID cert = req.getCertID(); if (cert != null) { logbuff.append( " hashAlgorithm: " + getValueOrDefault(cert.getHashAlgOID(), "").toString() + "\n"); logbuff.append( " issuerNameHash: " + getValueOrDefault(Arrays.toString(cert.getIssuerNameHash()), "") + "\n"); logbuff.append( " issuerKeyHash: " + getValueOrDefault(Arrays.toString(cert.getIssuerKeyHash()), "") + "\n"); logbuff.append( " cert serial number: " + getValueOrDefault(cert.getSerialNumber(), "").toString() + "\n"); } } } LOGGER.trace(logbuff.toString()); }

Target:
private void logRequest(OCSPReq ocspRequest) { StringBuilder logBuilder = new StringBuilder(); logBuilder.append("OCSP Request:\n"); logBuilder.append(" TBSRequest:\n"); logBuilder.append( " version: " + getValueOrDefault(ocspRequest.getVersionNumber(), "") + "\n"); logBuilder.append( " requestorName: " + getValueOrDefault(ocspRequest.getRequestorName(), "").toString() + "\n"); logBuilder.append(" requestList:\n"); Req[] requests = ocspRequest.getRequestList(); if (requests != null) { for (int i = 0; i < requests.length; i++) { logBuilder.append(" Certificate " + i + "\n"); CertificateID cert = requests[i].getCertID(); if (cert != null) { logBuilder.append( " hashAlgorithm: " + getValueOrDefault(cert.getHashAlgOID(), "").toString() + "\n"); logBuilder.append( " issuerNameHash: " + getValueOrDefault(Arrays.toString(cert.getIssuerNameHash()), "") + "\n"); logBuilder.append( " issuerKeyHash: " + getValueOrDefault(Arrays.toString(cert.getIssuerKeyHash()), "") + "\n"); logBuilder.append( " cert serial number: " + getValueOrDefault(cert.getSerialNumber(), "").toString() + "\n"); } } } LOGGER.trace(logBuilder.toString()); }
Source:
private static void parseTimeout(Builder builder, String queryParam) { int index = queryParam.indexOf('='); if (index < 0) { return; } String timeoutString = queryParam.substring(index + 1); int numbersEnd = 0; while (numbersEnd < timeoutString.length() && Character.isDigit(timeoutString.charAt(numbersEnd))) { numbersEnd++; } if (numbersEnd == 0) { if (timeoutString.startsWith("-")) { builder.withTimeout(0, TimeUnit.MILLISECONDS); } else { } } else { long timeoutValue = Long.parseLong(timeoutString, 0, numbersEnd, 10); builder.withTimeout(timeoutValue, TimeUnit.MILLISECONDS); String suffix = timeoutString.substring(numbersEnd); TimeUnit timeoutUnit; if ("ns".equals(suffix)) { timeoutUnit = TimeUnit.NANOSECONDS; } else if ("us".equals(suffix)) { timeoutUnit = TimeUnit.MICROSECONDS; } else if ("ms".equals(suffix)) { timeoutUnit = TimeUnit.MILLISECONDS; } else if ("s".equals(suffix)) { timeoutUnit = TimeUnit.SECONDS; } else if ("m".equals(suffix)) { timeoutUnit = TimeUnit.MINUTES; } else if ("h".equals(suffix)) { timeoutUnit = TimeUnit.HOURS; } else if ("d".equals(suffix)) { timeoutUnit = TimeUnit.DAYS; } else { timeoutUnit = TimeUnit.MILLISECONDS; } builder.withTimeout(timeoutValue, timeoutUnit); } }

Target:
private static void parseTimeout(Builder builder, String queryParam) { int index = queryParam.indexOf('='); if (index < 0) { return; } String timeoutString = queryParam.substring(index + 1); int numbersEnd = 0; while (numbersEnd < timeoutString.length() && Character.isDigit(timeoutString.charAt(numbersEnd))) { numbersEnd++; } if (numbersEnd == 0) { if (timeoutString.startsWith("-")) { builder.withTimeout(0, TimeUnit.MILLISECONDS); } else { } } else { String timeoutValueString = timeoutString.substring(0, numbersEnd); long timeoutValue = Long.parseLong(timeoutValueString); builder.withTimeout(timeoutValue, TimeUnit.MILLISECONDS); String suffix = timeoutString.substring(numbersEnd); TimeUnit timeoutUnit = TIME_UNIT_MAP.get(suffix); if (timeoutUnit == null) { timeoutUnit = TimeUnit.MILLISECONDS; } builder.withTimeout(timeoutValue, timeoutUnit); } }
Source:
private void createAndEmailErrorReport(List<PDPBadEmailRecord> badEmailRecords) { if (CollectionUtils.isNotEmpty(badEmailRecords)) { LOG.info("createBadEmailReport, there are " + badEmailRecords.size() + " bad email records to report"); File reportFile = cuAchAdviceNotificationWrrorReportService.createBadEmailReport(badEmailRecords); cuAchAdviceNotificationWrrorReportService.emailBadEmailReport(reportFile); } else { LOG.info("createBadEmailReport, there were no bad email addresses to report."); } }

Target:
private void createAndEmailErrorReport(List<PDPBadEmailRecord> badEmailRecords) { if (CollectionUtils.isNotEmpty(badEmailRecords)) { LOG.info("createBadEmailReport, there are " + badEmailRecords.size() + " bad email addresses to report"); File reportFile = cuAchAdviceNotificationErrorReportService.createBadEmailReport(badEmailRecords); cuAchAdviceNotificationErrorReportService.emailBadEmailReport(reportFile); } else { LOG.info("createBadEmailReport, there were no bad email addresses to report."); } }
Source:
public void requestAccess(final Callback<String> callback, final String username, final String password, final URL url) { AsyncTask<Void, Void, HeaderAndBody> task = new AsyncTask<Void, Void, HeaderAndBody>() { private Exception exception; @Override protected HeaderAndBody doInBackground(Void... params) { HeaderAndBody result; try { HttpProvider provider = new HttpRestProvider(new URL(url.toString() + AuthData.Endpoints.ACCESS)); provider.setDefaultHeader("Accept", "application/json"); provider.setDefaultHeader("Authorization", "Basic " + buildLoginData(username, password)); result = provider.post(""); Timber.d("Called with POST to: ", new String(provider.getUrl().toString())); Timber.d("Result of the POST: ", new String(result.getBody())); } catch (MalformedURLException e) { Timber.d(SecretStoreAuthzModule.class.getSimpleName(), "Error with URL", e); exception = e; return null; } catch (HttpException e) { if (e.getStatusCode() == HttpsURLConnection.HTTP_UNAUTHORIZED) { Timber.e(SecretStoreAuthzModule.class.getSimpleName(), "Wrong Credentials", e); } if (e.getStatusCode() == HttpsURLConnection.HTTP_INTERNAL_ERROR) { Timber.e(SecretStoreAuthzModule.class.getSimpleName(), "Server Error", e); } if (e.getStatusCode() == HttpsURLConnection.HTTP_NOT_FOUND) { Timber.e(SecretStoreAuthzModule.class.getSimpleName(), "Wrong URL", e); } if (e.getStatusCode() == HttpsURLConnection.HTTP_BAD_METHOD) { Timber.e(SecretStoreAuthzModule.class.getSimpleName(), "Bad Method", e); } exception = e; return null; } return result; } @Override protected void onPostExecute(HeaderAndBody headerAndBody) { if (exception == null) { callback.onSuccess(new String(headerAndBody.getBody())); } else { callback.onFailure(exception); } } }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); }

Target:
public void requestAccess(final Callback<String> callback, final String username, final String password, final URL url) { new Thread(new Runnable() { @Override public void run() { HeaderAndBody result; try { HttpProvider provider = new HttpRestProvider(new URL(url.toString() + AuthData.Endpoints.ACCESS)); provider.setDefaultHeader("Accept", "application/json"); provider.setDefaultHeader("Authorization", "Basic " + buildLoginData(username, password)); result = provider.post(""); callback.onSuccess(new String(result.getBody())); } catch (MalformedURLException e) { Timber.d(SecretStoreAuthzModule.class.getSimpleName(), "Error with URL", e); callback.onFailure(e); } catch (HttpException e) { Timber.d(SecretStoreAuthzModule.class.getSimpleName(), "HTTP error", e); callback.onFailure(e); } catch (RuntimeException e) { Timber.d(SecretStoreAuthzModule.class.getSimpleName(), "Connection Exception", e); callback.onFailure(e); } } }).start(); }
Source:
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } TlsAuthenticationConfig other = (TlsAuthenticationConfig) obj; if (roleAttribute == null) { if (other.roleAttribute != null) { return false; } } else if (!roleAttribute.equals(other.roleAttribute)) { return false; } return true; }

Target:
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } TlsAuthenticationConfig other = (TlsAuthenticationConfig) obj; return Objects.equals(roleAttribute, other.roleAttribute); }
Source:
public NetworkInterface getNetworkInterface() { throw new UnsupportedOperationException("Retrieval of network interface not supported"); }

Target:
public NetworkInterface getNetworkInterface() { return null; }
Source:
public void onNext(Observable<? extends T> t) { if (t == null) { return; } if (fastMode) { if (t.getClass() == ScalarSynchronousObservable.class) { T v = ((ScalarSynchronousObservable<? extends T>)t).get(); fastEmitNext(v); if (maxConcurrent != Integer.MAX_VALUE) { request(1); } } else { FastInnerSubscriber<T> fastInner = new FastInnerSubscriber<T>(this); getOrCreateComposite().add(fastInner); FAST_WIP.getAndIncrement(this); t.unsafeSubscribe(fastInner); } } else { if (t.getClass() == ScalarSynchronousObservable.class) { tryEmitScalar(((ScalarSynchronousObservable<? extends T>)t).get()); } else { InnerSubscriber<T> inner = new InnerSubscriber<T>(this, uniqueId++); addInner(inner); t.unsafeSubscribe(inner); emit(); } } }

Target:
public void onNext(Observable<? extends T> t) { if (t == null) { return; } if (t instanceof ScalarSynchronousObservable) { tryEmit(((ScalarSynchronousObservable<? extends T>)t).get()); } else { InnerSubscriber<T> inner = new InnerSubscriber<T>(this, uniqueId++); addInner(inner); t.unsafeSubscribe(inner); emit(); } }
Source:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTurnScreenOn(true); final CountDownLatch latch = new CountDownLatch(1); KeyguardManager keyguardManager = getSystemService(KeyguardManager.class); keyguardManager.requestDismissKeyguard(this, new KeyguardManager.KeyguardDismissCallback() { @Override public void onDismissSucceeded() { latch.countDown(); } }); try { latch.await(500, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { Log.w("WebViewTestActivity", "Failed to dismiss keyguard"); } mWebView = new WebView(this); setContentView(mWebView); }

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTurnScreenOn(true); dismissKeyguard(); mWebView = new WebView(this); setContentView(mWebView); }
Source:
protected ContentObserver getContentObserver() { return new ContentObserver(createHandler(getClass().getSimpleName())) { @Override public void onChange(boolean selfChange, Uri uri) { super.onChange(selfChange, uri); queryOne(uri) .doOnNext(item -> Log.v(TAG, "onChange(" + uri + ')')) .map(it -> new StoreItem<>(uri, it)) .subscribe(subjectCache::onNext, error -> Log.e(TAG, "Cannot retrieve the item: " + uri, error)); } }; }

Target:
protected ContentObserver getContentObserver() { return new ContentObserver(createHandler(getClass().getSimpleName())) { @Override public void onChange(boolean selfChange, Uri uri) { super.onChange(selfChange, uri); queryOne(uri) .doOnNext(item -> Log.v(TAG, format("onChange(%1s)", uri))) .map(it -> new StoreItem<>(uri, it)) .subscribe(subjectCache::onNext, error -> Log.e(TAG, "Cannot retrieve the item: " + uri, error)); } }; }
Source:
private Context startTracingSpan(Method method, Context context) { String spanName = String.format("%s/%s", interfaceParser.getServiceName(), method.getName()); context = TracerProxy.setSpanName(spanName, context); return TracerProxy.start(spanName, context); }

Target:
private Context startTracingSpan(Method method, Context context) { String spanName = String.format("%s.%s", interfaceParser.getServiceName(), method.getName()); context = TracerProxy.setSpanName(spanName, context); return TracerProxy.start(spanName, context); }
Source:
public void refresh() { String name = vdsManager.getVdsName(); log.debug("refreshing host {}", name); VdsDynamic vdsDynamic = getDynamicInfo(name); vdsManager.updateDynamicData(vdsDynamic); PrometheusClient promClient = getPrometheusClient(); if (vdsManager.isTimeToRefreshStatistics()) { VdsStatistics stat = new VdsStatistics(); stat.setId(vdsManager.getVdsId()); stat.setUsageMemPercent(promClient.getNodeMemUsage(name)); stat.setMemAvailable(promClient.getNodeMemAvailable(name)); stat.setMemFree(promClient.getNodeMemFree(name)); stat.setMemShared(promClient.getNodeMemShared(name)); stat.setSwapTotal(promClient.getNodeSwapTotalMb(name)); stat.setSwapFree(promClient.getNodeSwapFreeMb(name)); stat.setAnonymousHugePages(promClient.getNodeAnonHugePages(name)); stat.setHugePages( promClient.getNodeHugePages(name).stream() .map(k -> new HugePage(k.getFirst(), k.getSecond())) .collect(Collectors.toList()) ); stat.setBootTime(promClient.getNodeBootTime(name)); stat.setCpuIdle(promClient.getNodeCpuIdle(name)); stat.setCpuSys(promClient.getNodeCpuSystem(name)); stat.setCpuUser(promClient.getNodeCpuUser(name)); stat.setCpuLoad(promClient.getNodeCpuLoad(name)); stat.setUsageCpuPercent(promClient.getNodeCpuUsage(name)); vdsManager.updateStatisticsData(stat); } vdsManager.afterRefreshTreatment(true); }

Target:
public void refresh() { String name = vdsManager.getVdsName(); log.debug("refreshing host {}", name); VdsDynamic vdsDynamic = getDynamicInfo(name); vdsManager.updateDynamicData(vdsDynamic); PrometheusClient promClient = getPrometheusClient(); if (vdsManager.isTimeToRefreshStatistics() && promClient != null) { VdsStatistics stat = new VdsStatistics(); stat.setId(vdsManager.getVdsId()); stat.setUsageMemPercent(promClient.getNodeMemUsage(name)); stat.setMemAvailable(promClient.getNodeMemAvailable(name)); stat.setMemFree(promClient.getNodeMemFree(name)); stat.setMemShared(promClient.getNodeMemShared(name)); stat.setSwapTotal(promClient.getNodeSwapTotalMb(name)); stat.setSwapFree(promClient.getNodeSwapFreeMb(name)); stat.setAnonymousHugePages(promClient.getNodeAnonHugePages(name)); stat.setHugePages( promClient.getNodeHugePages(name).stream() .map(k -> new HugePage(k.getFirst(), k.getSecond())) .collect(Collectors.toList()) ); stat.setBootTime(promClient.getNodeBootTime(name)); stat.setCpuIdle(promClient.getNodeCpuIdle(name)); stat.setCpuSys(promClient.getNodeCpuSystem(name)); stat.setCpuUser(promClient.getNodeCpuUser(name)); stat.setCpuLoad(promClient.getNodeCpuLoad(name)); stat.setUsageCpuPercent(promClient.getNodeCpuUsage(name)); vdsManager.updateStatisticsData(stat); } vdsManager.afterRefreshTreatment(true); }
Source:
public void showWindow() { final Project project = appContext.getRootProject(); checkState(project != null); switchView.showWindow(); switchView.setSwitchButtonEnabled(false); invalidateLoadedData(); performOperationWithCredentialsRequestIfNeeded(new RemoteSubversionOperation<InfoResponse>() { @Override public Promise<InfoResponse> perform(Credentials credentials) { return service.info(appContext.getRootProject().getLocation(), ".", "HEAD", false, credentials); } }, null).then(new Operation<InfoResponse>() { @Override public void apply(InfoResponse response) throws OperationException { if (!response.getItems().isEmpty()) { SubversionItem subversionItem = response.getItems().get(0); projectUri = subversionItem.getProjectUri(); } defaultViewInitialization(); handleSwitchButton(); } }).catchError(new Operation<PromiseError>() { @Override public void apply(PromiseError error) throws OperationException { notificationManager.notify("Error retrieving svn info", error.getMessage(), FAIL, EMERGE_MODE); defaultViewInitialization(); handleSwitchButton(); } }); }

Target:
public void showWindow() { final Project project = appContext.getRootProject(); checkState(project != null); switchView.showWindow(); switchView.setSwitchButtonEnabled(false); invalidateLoadedData(); performOperationWithCredentialsRequestIfNeeded(new RemoteSubversionOperation<InfoResponse>() { @Override public Promise<InfoResponse> perform(Credentials credentials) { return service.info(appContext.getRootProject().getLocation(), ".", "HEAD", false, credentials); } }, null).then(new Operation<InfoResponse>() { @Override public void apply(InfoResponse response) throws OperationException { if (!response.getItems().isEmpty()) { SubversionItem subversionItem = response.getItems().get(0); projectUri = subversionItem.getProjectUri(); } defaultViewInitialization(); handleSwitchButton(); } }).catchError(new Operation<PromiseError>() { @Override public void apply(PromiseError error) throws OperationException { projectUri = "^"; Path location = appContext.getRootProject().getLocation(); notificationManager.notify(constants.infoRequestError(location.toString()), error.getMessage(), FAIL, EMERGE_MODE); defaultViewInitialization(); handleSwitchButton(); } }); }
Source:
protected void commonAddColumn(final int index, final GridColumn<?> column) { checkSimulation(); SimulationDescriptor simulationDescriptor = simulation.getSimulationDescriptor(); ScenarioHeaderMetaData scenarioHeaderMetaData = (ScenarioHeaderMetaData) column.getHeaderMetaData().get(1); String title = scenarioHeaderMetaData.getTitle(); String group = scenarioHeaderMetaData.getColumnGroup(); String columnId = scenarioHeaderMetaData.getColumnId(); FactIdentifier factIdentifier = FactIdentifier.create(columnId, String.class.getCanonicalName()); ExpressionIdentifier ei = ExpressionIdentifier.create(columnId, FactMappingType.valueOf(group)); final int columnIndex = index == -1 ? getColumnCount() : index; try { simulationDescriptor.addFactMapping(columnIndex, title, factIdentifier, ei); if (index == -1) { super.appendColumn(column); } else { super.insertColumn(index, column); } } catch (Throwable t) { eventBus.fireEvent(new ScenarioGridReloadEvent()); return; } final List<Scenario> scenarios = simulation.getUnmodifiableScenarios(); IntStream.range(0, scenarios.size()) .forEach(rowIndex -> { String value = title + "-" + Random.nextInt(); setNewCell(rowIndex, columnIndex, () -> new ScenarioGridCell(new ScenarioGridCellValue(value))); }); }

Target:
protected void commonAddColumn(final int index, final GridColumn<?> column) { checkSimulation(); SimulationDescriptor simulationDescriptor = simulation.getSimulationDescriptor(); ScenarioHeaderMetaData scenarioHeaderMetaData = (ScenarioHeaderMetaData) column.getHeaderMetaData().get(1); String title = scenarioHeaderMetaData.getTitle(); String group = scenarioHeaderMetaData.getColumnGroup(); String columnId = scenarioHeaderMetaData.getColumnId(); FactIdentifier factIdentifier = FactIdentifier.create(columnId, String.class.getCanonicalName()); ExpressionIdentifier ei = ExpressionIdentifier.create(columnId, FactMappingType.valueOf(group)); final int columnIndex = index == -1 ? getColumnCount() : index; try { simulationDescriptor.addFactMapping(columnIndex, title, factIdentifier, ei); if (index == -1) { super.appendColumn(column); } else { super.insertColumn(index, column); } } catch (Throwable t) { eventBus.fireEvent(new ScenarioGridReloadEvent()); return; } final List<Scenario> scenarios = simulation.getUnmodifiableScenarios(); IntStream.range(0, scenarios.size()) .forEach(rowIndex -> { String value = FactMappingValue.getPlaceHolder(rowIndex, columnIndex); setNewCell(rowIndex, columnIndex, () -> new ScenarioGridCell(new ScenarioGridCellValue(value))); }); }
Source:
public void refreshRoutingData(String namespace) { if (_routingZkAddressMap == null || _realmToShardingKeysMap == null || _routingDataReaderMap == null || _routingDataWriterMap == null) { LOG.warn( "refreshRoutingData callback called before ZKMetadataStoreDirectory was fully initialized. Skipping refresh!"); return; } if (!_routingZkAddressMap.containsKey(namespace)) { LOG.error( "Failed to refresh internally-cached routing data! Namespace not found: " + namespace); return; } Map<String, List<String>> rawRoutingData; _realmToShardingKeysMap.remove(namespace); try { rawRoutingData = _routingDataReaderMap.get(namespace).getRoutingData(); _realmToShardingKeysMap.put(namespace, rawRoutingData); } catch (InvalidRoutingDataException e) { _routingDataMap.remove(namespace); LOG.error("Failed to refresh cached routing data for namespace {}", namespace, e); return; } _routingDataMap.remove(namespace); try { _routingDataMap.put(namespace, new TrieRoutingData(rawRoutingData)); } catch (InvalidRoutingDataException e) { LOG.warn("TrieRoutingData is not created for namespace {}", namespace, e); } }

Target:
public void refreshRoutingData(String namespace) { if (_routingZkAddressMap == null || _realmToShardingKeysMap == null || _routingDataReaderMap == null || _routingDataWriterMap == null) { LOG.warn( "refreshRoutingData callback called before ZKMetadataStoreDirectory was fully initialized. Skipping refresh!"); return; } if (!_routingZkAddressMap.containsKey(namespace)) { LOG.error( "Failed to refresh internally-cached routing data! Namespace not found: " + namespace); return; } _realmToShardingKeysMap.remove(namespace); _routingDataMap.remove(namespace); Map<String, List<String>> rawRoutingData; try { rawRoutingData = _routingDataReaderMap.get(namespace).getRoutingData(); _realmToShardingKeysMap.put(namespace, rawRoutingData); } catch (InvalidRoutingDataException e) { LOG.error("Failed to refresh cached routing data for namespace {}", namespace, e); return; } try { _routingDataMap.put(namespace, new TrieRoutingData(rawRoutingData)); } catch (InvalidRoutingDataException e) { LOG.warn("TrieRoutingData is not created for namespace {}", namespace, e); } }
Source:
public long getSystemMemoryUsage() { return 0; }

Target:
public long getSystemMemoryUsage() { return delegate.getSystemMemoryUsage(); }
Source:
public ModelAndView structure() { ModelAndView modelAndView = new ModelAndView("/membership-structure"); String loginName = LoginUserInfo.getLoginName(); if (loginName != null) { AccountModel accountModel = accountService.findByLoginName(loginName); MembershipModel membershipModel = userMembershipEvaluator.evaluate(loginName); UserMembershipModel userMembershipModel = userMembershipEvaluator.evaluateUserMembership(loginName, new Date()); if(userMembershipModel.getType() == UserMembershipType.GIVEN || userMembershipModel.getType() == UserMembershipType.PURCHASED) { modelAndView.addObject("membershipLevel", "5"); } else{ modelAndView.addObject("membershipLevel", membershipModel != null ? membershipModel.getLevel() : ""); } modelAndView.addObject("membershipPoint", accountModel != null ? accountModel.getMembershipPoint() : ""); } modelAndView.addObject("loginName", loginName); return modelAndView; }

Target:
public ModelAndView structure() { ModelAndView modelAndView = new ModelAndView("/membership-structure"); String loginName = LoginUserInfo.getLoginName(); if (loginName != null) { AccountModel accountModel = accountService.findByLoginName(loginName); MembershipModel membershipModel = userMembershipEvaluator.evaluate(loginName); UserMembershipModel userMembershipModel = userMembershipEvaluator.evaluateUserMembership(loginName, new Date()); if(userMembershipModel != null && (userMembershipModel.getType() == UserMembershipType.GIVEN || userMembershipModel.getType() == UserMembershipType.PURCHASED)) { modelAndView.addObject("membershipLevel", MembershipLevel.V5.getLevel()); } else{ modelAndView.addObject("membershipLevel", membershipModel != null ? membershipModel.getLevel() : ""); } modelAndView.addObject("membershipPoint", accountModel != null ? accountModel.getMembershipPoint() : ""); } modelAndView.addObject("loginName", loginName); return modelAndView; }
Source:
public List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) { ItemStack ctxTool = context.get(LootParameters.TOOL); ItemStack fakeTool = ctxTool.copy(); fakeTool.addEnchantment(Enchantments.SILK_TOUCH, 1); if(ItemStack.areItemsEqual(ctxTool, fakeTool) && EnchantmentHelper.getEnchantments(ctxTool).containsKey(Enchantments.SILK_TOUCH)) return generatedLoot; LootContext.Builder builder = new LootContext.Builder(context.getWorld()) .withParameter(LootParameters.BLOCK_STATE, context.get(LootParameters.BLOCK_STATE)) .withRandom(context.getWorld().rand) .withParameter(LootParameters.POSITION, context.get(LootParameters.POSITION)) .withParameter(LootParameters.TOOL, fakeTool) .withNullableParameter(LootParameters.BLOCK_ENTITY, context.get(LootParameters.BLOCK_ENTITY)); if(context.has(LootParameters.THIS_ENTITY)) { builder.withParameter(LootParameters.THIS_ENTITY, context.get(LootParameters.THIS_ENTITY)); } LootContext ctx = builder.build(LootParameterSets.BLOCK); LootTable loottable = context.getWorld().getServer().getLootTableManager().getLootTableFromLocation(context.get(LootParameters.BLOCK_STATE).getBlock().getLootTable()); return loottable.generate(ctx); }

Target:
public List<ItemStack> doApply(List<ItemStack> generatedLoot, LootContext context) { ItemStack ctxTool = context.get(LootParameters.TOOL); if(EnchantmentHelper.getEnchantments(ctxTool).containsKey(Enchantments.SILK_TOUCH)) return generatedLoot; ItemStack fakeTool = ctxTool.copy(); fakeTool.addEnchantment(Enchantments.SILK_TOUCH, 1); LootContext.Builder builder = new LootContext.Builder(context); builder.withParameter(LootParameters.TOOL, fakeTool); LootContext ctx = builder.build(LootParameterSets.BLOCK); LootTable loottable = context.getWorld().getServer().getLootTableManager().getLootTableFromLocation(context.get(LootParameters.BLOCK_STATE).getBlock().getLootTable()); return loottable.generate(ctx); }
Source:
protected <T> Invoker<T> doSelect(List<Invoker<T>> invokers, URL url, Invocation invocation) { String key = invokers.get(0).getUrl().getServiceKey() + "." + invocation.getMethodName(); int length = invokers.size(); int maxWeight = 0; int minWeight = Integer.MAX_VALUE; final List<Invoker<T>> invokerToWeightList = new ArrayList<>(); for (int i = 0; i < length; i++) { int weight = getWeight(invokers.get(i), invocation); maxWeight = Math.max(maxWeight, weight); minWeight = Math.min(minWeight, weight); if (weight > 0) { invokerToWeightList.add(invokers.get(i)); } } AtomicPositiveInteger sequence = sequences.get(key); if (sequence == null) { sequences.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences.get(key); } if (maxWeight > 0 && minWeight < maxWeight) { AtomicPositiveInteger indexSeq = indexSeqs.get(key); if (indexSeq == null) { indexSeqs.putIfAbsent(key, new AtomicPositiveInteger(-1)); indexSeq = indexSeqs.get(key); } length = invokerToWeightList.size(); while (true) { int index = indexSeq.incrementAndGet() % length; int currentWeight; if (index == 0) { currentWeight = sequence.incrementAndGet() % maxWeight; }else { currentWeight = sequence.get() % maxWeight; } if (getWeight(invokerToWeightList.get(index), invocation) > currentWeight) { return invokerToWeightList.get(index); } } } return invokers.get(sequence.getAndIncrement() % length); }

Target:
protected <T> Invoker<T> doSelect(List<Invoker<T>> invokers, URL url, Invocation invocation) { String key = invokers.get(0).getUrl().getServiceKey() + "." + invocation.getMethodName(); int length = invokers.size(); int maxWeight = 0; int minWeight = Integer.MAX_VALUE; final List<Invoker<T>> nonZeroWeightedInvokers = new ArrayList<>(); for (int i = 0; i < length; i++) { int weight = getWeight(invokers.get(i), invocation); maxWeight = Math.max(maxWeight, weight); minWeight = Math.min(minWeight, weight); if (weight > 0) { nonZeroWeightedInvokers.add(invokers.get(i)); } } AtomicPositiveInteger sequence = sequences.get(key); if (sequence == null) { sequences.putIfAbsent(key, new AtomicPositiveInteger()); sequence = sequences.get(key); } if (maxWeight > 0 && minWeight < maxWeight) { AtomicPositiveInteger indexSeq = indexSeqs.get(key); if (indexSeq == null) { indexSeqs.putIfAbsent(key, new AtomicPositiveInteger(-1)); indexSeq = indexSeqs.get(key); } length = nonZeroWeightedInvokers.size(); while (true) { int index = indexSeq.incrementAndGet() % length; int currentWeight; if (index == 0) { currentWeight = sequence.incrementAndGet() % maxWeight; } else { currentWeight = sequence.get() % maxWeight; } if (getWeight(nonZeroWeightedInvokers.get(index), invocation) > currentWeight) { return nonZeroWeightedInvokers.get(index); } } } return invokers.get(sequence.getAndIncrement() % length); }
Source:
public MotionDisplayer(Storage motionData, Model model) { String saved = "10"; String currentSize =TheApp.getCurrentVersionPreferences().get("Visualizer: Experimental Marker Radius (mm)", saved); TheApp.getCurrentVersionPreferences().put("Visualizer: Experimental Marker Radius (mm)", currentSize); DEFAULT_MARKER_SIZE = Double.parseDouble(currentSize); this.experimentalForceScaleFactor = 1.0; this.experimentalMarkerScaleFactor = 1.0; this.model = model; dContext= OpenSimDB.getInstance().getContext(model); simmMotionData = motionData; currentForceShape = DEFAULT_FORCE_SHAPE; modelVisJson = ViewDB.getInstance().getModelVisualizationJson(model); colNames = simmMotionData.getColumnLabels(); int numColumnsIncludingTime = colNames.getSize(); interpolatedStates = new ArrayDouble(0.0, numColumnsIncludingTime-1); modelVisJson.addMotionDisplayer(this); if (model instanceof ModelForExperimentalData) return; }

Target:
public MotionDisplayer(Storage motionData, Model model) { String defaultMarkerRadiusString = "10"; String currentSize =TheApp.getCurrentVersionPreferences().get("Visualizer: Experimental Marker Radius (mm)", defaultMarkerRadiusString); TheApp.getCurrentVersionPreferences().put("Visualizer: Experimental Marker Radius (mm)", currentSize); this.experimentalForceScaleFactor = 1.0; this.experimentalMarkerRadius = Double.parseDouble(currentSize); this.model = model; dContext= OpenSimDB.getInstance().getContext(model); simmMotionData = motionData; currentForceShape = DEFAULT_FORCE_SHAPE; modelVisJson = ViewDB.getInstance().getModelVisualizationJson(model); colNames = simmMotionData.getColumnLabels(); int numColumnsIncludingTime = colNames.getSize(); interpolatedStates = new ArrayDouble(0.0, numColumnsIncludingTime-1); modelVisJson.addMotionDisplayer(this); if (model instanceof ModelForExperimentalData) return; }
Source:
public Optional<Function<JsonValue, Stream<ValidationError>>> create(ValidationContext model) { final JsonValue type = model.getSchema().get("type"); if (JsonString.class.isInstance(type) && "integer".equals(JsonString.class.cast(type).getString())) { return Optional.of(new Impl(model.toPointer(), model.getValueProvider())); } return Optional.empty(); }

Target:
public Optional<Function<JsonValue, Stream<ValidationError>>> create(ValidationContext model) { final JsonValue type = model.getSchema().get("type"); if (type.getValueType().equals(ValueType.STRING) && "integer".equals(JsonString.class.cast(type).getString())) { return Optional.of(new MultipleOfValidation.Impl(model.toPointer(), model.getValueProvider(), 1)); } return Optional.empty(); }
Source:
public INDArray loadFeaturesFromString(String reviewContents, int maxLength){ List<String> tokens = tokenizerFactory.create(reviewContents).getTokens(); List<String> tokensFiltered = new ArrayList<>(); for(String t : tokens ){ if(wordVectors.hasWord(t)) tokensFiltered.add(t); } int outputLength = Math.max(maxLength,tokensFiltered.size()); INDArray features = Nd4j.create(1, vectorSize, outputLength); for( int j=0; j<tokens.size() && j<maxLength; j++ ){ String token = tokens.get(j); INDArray vector = wordVectors.getWordVectorMatrix(token); features.put(new INDArrayIndex[]{NDArrayIndex.point(0), NDArrayIndex.all(), NDArrayIndex.point(j)}, vector); } return features; }

Target:
public INDArray loadFeaturesFromString(String reviewContents, int maxLength) { List<String> tokens = tokenizerFactory.create(reviewContents).getTokens(); List<String> tokensFiltered = new ArrayList<>(); for (String t : tokens) { if (wordVectors.hasWord(t)) tokensFiltered.add(t); } int outputLength = Math.max(maxLength, tokensFiltered.size()); INDArray features = Nd4j.create(1, vectorSize, outputLength); for (int j = 0; j < tokens.size() && j < maxLength; j++) { String token = tokens.get(j); INDArray vector = wordVectors.getWordVectorMatrix(token); features.put(new INDArrayIndex[]{point(0), all(), point(j)}, vector); } return features; }
Source:
private void insert(Map<String, String> partitionSpec, Iterable<HCatRecord> rows) { WriteEntity entity = new WriteEntity.Builder() .withDatabase(databaseName) .withTable(tableName) .withPartition(partitionSpec) .build(); try { WriterContext context = DataTransferFactory.getHCatWriter(entity, config).prepareWrite(); HCatWriter writer = DataTransferFactory.getHCatWriter(context); try { writer.write(rows.iterator()); } catch (HCatException e) { writer.abort(context); throw e; } writer.commit(context); } catch (HCatException e) { throw new RuntimeException(e); } }

Target:
private void insert(Map<String, String> partitionSpec, Iterable<HCatRecord> rows) { WriteEntity entity = new WriteEntity.Builder() .withDatabase(databaseName) .withTable(tableName) .withPartition(partitionSpec) .build(); try { HCatWriter master = DataTransferFactory.getHCatWriter(entity, config); WriterContext context = master.prepareWrite(); HCatWriter writer = DataTransferFactory.getHCatWriter(context); writer.write(rows.iterator()); master.commit(context); } catch (HCatException e) { throw new RuntimeException("An error occurred while inserting data to " + databaseName + "." + tableName, e); } }
Source:
public String getId(TransactionContext txnCtx, Functions functions, Row params, SubQueryResults subQueryResults) { return idFunction.apply( Lists2.map( key.subList(0, width), s -> DataTypes.STRING.value(SymbolEvaluator.evaluate(txnCtx, functions, s, params, subQueryResults)) )); }

Target:
public String getId(TransactionContext txnCtx, Functions functions, Row params, SubQueryResults subQueryResults) { return idFunction.apply( LazyMapList.of( key.subList(0, width), s -> DataTypes.STRING.value(SymbolEvaluator.evaluate(txnCtx, functions, s, params, subQueryResults)) ) ); }
Source:
private void deliver(MessageBatch batch, Retryer<MessageSendingResult> retryer) { try (Timer.Context timer = hermesMetrics.subscriptionLatencyTimer(subscription).time()) { MessageSendingResult result = retryer.call(() -> sender.send(batch, subscription.getEndpoint(), subscription.getBatchSubscriptionPolicy().getRequestTimeout())); monitoring.markSendingResult(batch, subscription, result); } catch (Exception e) { logger.error(format("[batch_id=%s, subscription=%s] Batch was rejected.", batch.getId(), subscription.toSubscriptionName()), e); monitoring.markDiscarded(batch, subscription, e.getMessage()); } }

Target:
private void deliver(MessageBatch batch, Retryer<MessageSendingResult> retryer) { try (Timer.Context timer = hermesMetrics.subscriptionLatencyTimer(subscription).time()) { MessageSendingResult result = retryer.call(() -> sender.send(batch, subscription.getEndpoint(), subscription.getBatchSubscriptionPolicy().getRequestTimeout())); monitoring.markSendingResult(batch, subscription, result); } catch (Exception e) { logger.error("Batch was rejected [batch_id={}, subscription={}].", batch.getId(), subscription.toSubscriptionName(), e); monitoring.markDiscarded(batch, subscription, e.getMessage()); } }
Source:
public String formatNameLatexFree(final String nameToFormat) { if (nameToFormat == null) { return null; } if (namesAsIs) { return nameToFormat; } else if (namesNatbib) { return AuthorList.fixAuthorNatbibLatexFree(nameToFormat); } else if (namesLastOnly) { return AuthorList.fixAuthorLastNameOnlyCommasLatexFree(nameToFormat, false); } else if (namesFf) { return AuthorList.fixAuthorFirstNameFirstCommasLatexFree(nameToFormat, abbrAuthorNames, false); } else { return AuthorList.fixAuthorLastNameFirstCommasLatexFree(nameToFormat, abbrAuthorNames, false); } }

Target:
public String formatNameLatexFree(final String nameToFormat) { if (nameToFormat == null) { return null; } AuthorList authors = AuthorList.parse(nameToFormat); if (namesAsIs) { return nameToFormat; } else if (namesNatbib) { return authors.getAsNatbibLatexFree(); } else if (namesLastOnly) { return authors.getAsLastNamesLatexFree(false); } else if (namesFf) { return authors.getAsFirstLastNamesLatexFree(abbrAuthorNames, false); } else { return authors.getAsLastFirstNamesLatexFree(abbrAuthorNames, false); } }
Source:
private PersistentVolumeClaim getClaimCheWorkspace() { PersistentVolumeClaimList pvcList = openShiftClient.persistentVolumeClaims().list(); for(PersistentVolumeClaim pvc:pvcList.getItems()) { if (persistentVolumeClaim.equals(pvc.getMetadata().getName())) { return pvc; } } Map<String, Quantity> requests = new HashMap<>(); requests.put("storage", new Quantity("10Gi")); PersistentVolumeClaim pvc = new PersistentVolumeClaimBuilder() .withNewMetadata() .withName(persistentVolumeClaim) .endMetadata() .withNewSpec() .withAccessModes("ReadWriteOnce") .withNewResources() .withRequests(requests) .endResources() .endSpec() .build(); return pvc; }

Target:
private PersistentVolumeClaim getClaimCheWorkspace() { PersistentVolumeClaimList pvcList = openShiftClient.persistentVolumeClaims().inNamespace(openShiftCheProjectName).list(); for(PersistentVolumeClaim pvc:pvcList.getItems()) { if (workspacesPersistentVolumeClaim.equals(pvc.getMetadata().getName())) { return pvc; } } Map<String, Quantity> requests = new HashMap<>(); requests.put("storage", new Quantity(workspacesPvcQuantity)); Map<String, String> annotations = Collections.singletonMap(OPENSHIFT_VOLUME_STORAGE_CLASS, OPENSHIFT_VOLUME_STORAGE_CLASS_NAME); PersistentVolumeClaim pvc = new PersistentVolumeClaimBuilder() .withNewMetadata() .withName(workspacesPersistentVolumeClaim) .withAnnotations(annotations) .endMetadata() .withNewSpec() .withAccessModes("ReadWriteMany") .withNewResources() .withRequests(requests) .endResources() .endSpec() .build(); pvc = openShiftClient.persistentVolumeClaims().inNamespace(openShiftCheProjectName).create(pvc); LOG.info("Creating OpenShift PVC {}", pvc.getMetadata().getName()); return pvc; }
Source:
protected Map<String, Object> addSection(ParameterParser params, SessionState state) { String message; String errorMessage = null; Map<String, Object> results = new HashMap<String, Object>(); try { int locationId = params.getInt("locationId"); CitationCollectionOrder.SectionType sectionType = CitationCollectionOrder.SectionType.valueOf(params.getString("sectionType")); CitationCollection collection = getCitationCollection(state, false); CitationCollectionOrder citationCollectionOrder = new CitationCollectionOrder(collection.getId(), locationId, sectionType, rb.getString("nested.section.title.text")); errorMessage = getCitationValidator().getAddSectionErrorMessage(citationCollectionOrder, collection); if (errorMessage==null){ getCitationService().saveSection(citationCollectionOrder); message = rb.getString("resource.updated"); logger.info("Reading list successfully updated."); } else { message = errorMessage; logger.warn("Invalid citation list in addSection(). " + errorMessage); } state.setAttribute(STATE_CITATION_COLLECTION, null); } catch (Exception e){ message = e.getMessage(); logger.warn("Exception in addSection() " + e); } if(errorMessage==null && message != null && ! message.trim().equals("")) { results.put("message", message); } else { results.put("Error: ", new String[]{errorMessage}); } return results; }

Target:
protected Map<String, Object> addSection(ParameterParser params, SessionState state) { String message; String errorMessage = null; Map<String, Object> results = new HashMap<String, Object>(); try { int locationId = params.getInt("locationId"); CitationCollectionOrder.SectionType sectionType = CitationCollectionOrder.SectionType.valueOf(params.getString("sectionType")); CitationCollection collection = getCitationCollection(state, false); CitationCollectionOrder citationCollectionOrder = new CitationCollectionOrder(collection.getId(), locationId, sectionType, rb.getString("nested.section.title.text")); errorMessage = getCitationValidator().getAddSectionErrorMessage(citationCollectionOrder, collection); if (errorMessage==null){ getCitationService().saveSection(citationCollectionOrder); message = rb.getString("resource.updated"); logger.debug("Reading list with collection id: " + collection.getId() + " successfully updated. H1 section added at location: " + locationId); } else { message = errorMessage; logger.warn("Invalid citation list with collection id: " + collection.getId() + " in addSection(). " + errorMessage); } state.setAttribute(STATE_CITATION_COLLECTION, null); } catch (Exception e){ message = e.getMessage(); logger.warn("Exception in addSection() " + e); } if(errorMessage==null && message != null && ! message.trim().equals("")) { results.put("message", message); } else { results.put("Error: ", new String[]{errorMessage}); } return results; }
Source:
protected void configureMessaging() { String provider = this.config.getString(ConfigProperties.CPM_PROVIDER); if ("artemis".equalsIgnoreCase(provider)) { bind(CPMContextListener.class).to(ArtemisContextListener.class).asEagerSingleton(); bind(CPMSessionFactory.class).to(ArtemisSessionFactory.class).asEagerSingleton(); } else { bind(CPMContextListener.class).to(NoopContextListener.class).asEagerSingleton(); bind(CPMSessionFactory.class).to(NoopSessionFactory.class).asEagerSingleton(); } }

Target:
protected void configureMessaging() { String provider = this.config.getString(ConfigProperties.CPM_PROVIDER); if (ArtemisUtil.PROVIDER.equalsIgnoreCase(provider)) { bind(CPMContextListener.class).to(ArtemisContextListener.class).asEagerSingleton(); bind(CPMSessionFactory.class).to(ArtemisSessionFactory.class).asEagerSingleton(); } else { bind(CPMContextListener.class).to(NoopContextListener.class).asEagerSingleton(); bind(CPMSessionFactory.class).to(NoopSessionFactory.class).asEagerSingleton(); } }