auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void createSelection(Composite container) { Label lblSelect = new Label(container, SWT.NONE); lblSelect.setText("Select " + getTypeString() + ":"); items = createTable(container, SWT.BORDER | SWT.V_SCROLL | extraListOptions); String[] names; if (includeCurrent) { names = ConfigInfo.names(available).toArray(new String[0]); } else { names = ConfigInfo.namesWithoutCurrent(available).toArray(new String[0]); } Arrays.sort(names, String.CASE_INSENSITIVE_ORDER); setItems(names, compOrConfigNamesWithFlags); Boolean hasProtectedConfigs = ConfigInfo.hasProtectedConfigs(available); if (hasProtectedConfigs) { Group group = new Group(container, SWT.SHADOW_IN); group.setLayout(new RowLayout(SWT.HORIZONTAL)); Label messageImageLabel = new Label(group, SWT.NONE); messageImageLabel.setImage(JFaceResources. getImage(DLG_IMG_MESSAGE_WARNING)); Label messageLabel = new Label(group, SWT.NONE); messageLabel.setFont(JFaceResources.getDialogFont()); messageLabel.setText("Represents Protected " + getTypeString()); } }

Target:
protected void createSelection(Composite container) { Label lblSelect = new Label(container, SWT.NONE); lblSelect.setText("Select " + getTypeString() + ":"); items = createTable(container, SWT.BORDER | SWT.V_SCROLL | extraListOptions); String[] names; if (includeCurrent) { names = ConfigInfo.names(available).toArray(new String[0]); } else { names = ConfigInfo.namesWithoutCurrent(available).toArray(new String[0]); } Arrays.sort(names, String.CASE_INSENSITIVE_ORDER); setItems(names, compOrConfigNamesWithFlags); Boolean hasProtectedConfigs = ConfigInfo.hasProtectedElement(available); if (hasProtectedConfigs) { Group group = new Group(container, SWT.SHADOW_IN); group.setLayout(new RowLayout(SWT.HORIZONTAL)); Label messageImageLabel = new Label(group, SWT.NONE); messageImageLabel.setImage(JFaceResources.getImage(DLG_IMG_MESSAGE_WARNING)); Label messageLabel = new Label(group, SWT.NONE); messageLabel.setFont(JFaceResources.getDialogFont()); messageLabel.setText("Represents Protected " + getTypeString()); } }
Source:
ProjectCreatorGroupsProvider(@GerritServerConfig final Config config, SchemaFactory<ReviewDb> db, final SystemConfig systemConfig) { String[] createGroupNames = config.getStringList("repository", "*", "createGroup"); Set<AccountGroup.Id> createGroups = ConfigUtil.groupsFor(db, createGroupNames, log); if (createGroups.isEmpty()){ groupIds = Collections.singleton(systemConfig.adminGroupId); }else{ groupIds = createGroups; } }

Target:
ProjectCreatorGroupsProvider(@GerritServerConfig final Config config, SchemaFactory<ReviewDb> db, final SystemConfig systemConfig) { String[] names = config.getStringList("repository", "*", "createGroup"); Set<AccountGroup.Id> createGroups = ConfigUtil.groupsFor(db, names, log); if (createGroups.isEmpty()) { groupIds = Collections.singleton(systemConfig.adminGroupId); } else { groupIds = createGroups; } }
Source:
public Boolean hasDiagnosis(Diagnosis diagnosis) { for (Diagnosis diagnosisFound : getDiagnoses()) { if (diagnosis.equals(diagnosisFound)) { return true; } } return false; }

Target:
public Boolean hasDiagnosis(Diagnosis diagnosis) { for (Diagnosis diagnosis1 : getDiagnoses()) { if (diagnosis.equals(diagnosis1)) { return true; } } return false; }
Source:
public String getUrl(int requestId, CheckerInfo checkerInfo) { return String.format(URL, checkerInfo.getCurrencyBase(), checkerInfo.getCurrencyCounter()); }

Target:
public String getUrl(int requestId, CheckerInfo checkerInfo) { return String.format(URL, checkerInfo.getCurrencyPairId()); }
Source:
public void testDeleteFiltering() throws Exception { String tableName = "TestDeleteFiltering"; byte[] familyBytes = Bytes.toBytes("f"); byte[] columnBytes = Bytes.toBytes("c"); HRegion region = createRegion(tableName, familyBytes, 0); try { region.initialize(); TransactionStateCache cache = new TransactionStateCacheSupplier(conf).get(); LOG.info("Coprocessor is using transaction state: " + cache.getLatestState()); byte[] row = Bytes.toBytes(1); for (int i = 4; i < V.length; i++) { if (i != 5) { Put p = new Put(row); p.add(familyBytes, columnBytes, V[i], Bytes.toBytes(V[i])); region.put(p); } } long deleteTs = V[5] + 1; Delete d = new Delete(row, deleteTs); LOG.info("Issuing delete at timestamp " + deleteTs); d.deleteColumns(familyBytes, columnBytes, deleteTs); region.delete(d); List<Cell> results = Lists.newArrayList(); LOG.info("Flushing region " + region.getRegionNameAsString()); region.flushcache(); Scan scan = new Scan(); scan.setMaxVersions(10); RegionScanner regionScanner = region.getScanner(scan); assertFalse(regionScanner.next(results)); assertKeyValueMatches(results, 1, new long[]{V[8], V[6], deleteTs}, new byte[][]{Bytes.toBytes(V[8]), Bytes.toBytes(V[6]), new byte[0]}); } finally { region.close(); } }

Target:
public void testDeleteFiltering() throws Exception { String tableName = "TestDeleteFiltering"; byte[] familyBytes = Bytes.toBytes("f"); byte[] columnBytes = Bytes.toBytes("c"); HRegion region = createRegion(tableName, familyBytes, 0); try { region.initialize(); TransactionStateCache cache = new TransactionStateCacheSupplier(conf).get(); LOG.info("Coprocessor is using transaction state: " + cache.getLatestState()); byte[] row = Bytes.toBytes(1); for (int i = 4; i < V.length; i++) { Put p = new Put(row); p.add(familyBytes, columnBytes, V[i], Bytes.toBytes(V[i])); region.put(p); } long deleteTs = V[5] + 1; Delete d = new Delete(row, deleteTs); LOG.info("Issuing delete at timestamp " + deleteTs); d.deleteColumns(familyBytes, columnBytes, deleteTs); region.delete(d); List<Cell> results = Lists.newArrayList(); LOG.info("Flushing region " + region.getRegionNameAsString()); region.flushcache(); Scan scan = new Scan(); scan.setMaxVersions(10); RegionScanner regionScanner = region.getScanner(scan); assertFalse(regionScanner.next(results)); assertKeyValueMatches(results, 1, new long[]{V[8], V[6], deleteTs}, new byte[][]{Bytes.toBytes(V[8]), Bytes.toBytes(V[6]), new byte[0]}); } finally { region.close(); } }
Source:
public void run() { while (running.get()) { try { final DelayedWithTimeout task = DelayedUtil.takeWithoutInterrupt(queue); if (task == null || task == DelayedUtil.DELAYED_POISON) { continue; } if (task instanceof DelayedTask) { threadPool.execute(((DelayedTask) task).getObject()); } else { ((BufferNode) task).dispatch(); } } catch (Throwable e) { LOG.error("Caught error", e); if (timeoutExecutorError != null) { timeoutExecutorError.exe(e); } } } }

Target:
public void run() { while (running.get()) { final DelayedWithTimeout task = DelayedUtil.takeWithoutInterrupt(queue); if (task == null || task == DelayedUtil.DELAYED_POISON) { continue; } if (task instanceof DelayedTask) { threadPool.execute(((DelayedTask) task).getObject()); } else { ((BufferNode) task).dispatch(); } } }
Source:
FactoryDescriptor(String name, String extendingType, ImmutableSet<String> implementingTypes, ImmutableSet<FactoryMethodDescriptor> methodDescriptors) { this.name = checkNotNull(name); this.extendingType = checkNotNull(extendingType); this.implementingTypes = checkNotNull(implementingTypes); this.methodDescriptors = checkNotNull(methodDescriptors); ImmutableSetMultimap.Builder<Key, String> builder = ImmutableSetMultimap.builder(); for (FactoryMethodDescriptor descriptor : methodDescriptors) { for (Parameter parameter : descriptor.providedParameters()) { builder.putAll(parameter.asKey(), parameter.name()); } } ImmutableMap.Builder<Key, String> providersBuilder = ImmutableMap.builder(); for (Entry<Key, Collection<String>> entry : builder.build().asMap().entrySet()) { Key key = entry.getKey(); switch (entry.getValue().size()) { case 0: throw new AssertionError(); case 1: providersBuilder.put(key, Iterables.getOnlyElement(entry.getValue()) + "Provider"); break; default: providersBuilder.put(key, identifierMatcher.replaceFrom(key.toString(), '_') + "Provider"); break; } } this.providerNames = providersBuilder.build(); }

Target:
FactoryDescriptor(String name, String extendingType, ImmutableSet<String> implementingTypes, ImmutableSet<FactoryMethodDescriptor> methodDescriptors) { this.name = checkNotNull(name); this.extendingType = checkNotNull(extendingType); this.implementingTypes = checkNotNull(implementingTypes); this.methodDescriptors = checkNotNull(methodDescriptors); ImmutableSetMultimap.Builder<Key, String> providerNamesBuilder = ImmutableSetMultimap.builder(); for (FactoryMethodDescriptor descriptor : methodDescriptors) { for (Parameter parameter : descriptor.providedParameters()) { providerNamesBuilder.putAll(parameter.asKey(), parameter.name()); } } ImmutableMap.Builder<Key, String> providersBuilder = ImmutableMap.builder(); for (Entry<Key, Collection<String>> entry : providerNamesBuilder.build().asMap().entrySet()) { Key key = entry.getKey(); switch (entry.getValue().size()) { case 0: throw new AssertionError(); case 1: providersBuilder.put(key, Iterables.getOnlyElement(entry.getValue()) + "Provider"); break; default: providersBuilder.put(key, identifierMatcher.replaceFrom(key.toString(), '_') + "Provider"); break; } } this.providerNames = providersBuilder.build(); }
Source:
private CliProcessWrapper getTestCliProcessWrapper(boolean connectToAlias) { CliProcessWrapper cli = new CliProcessWrapper() .addCliArgument("-Djboss.cli.config=" + TMP_JBOSS_CLI_FILE.toPath()) .addCliArgument("--connect") .addCliArgument("--echo-command") .addCliArgument("--command=:read-attribute(name=server-state)"); if (connectToAlias) { cli.addCliArgument("--controller=" + CONTROLLER_ALIAS_NAME); } return cli; }

Target:
private CliProcessWrapper getTestCliProcessWrapper(boolean connectToAlias) { CliProcessWrapper cli = new CliProcessWrapper() .addCliArgument("-Djboss.cli.config=" + tempJbossConfigFile.getAbsolutePath()) .addCliArgument("--echo-command"); if (connectToAlias) { cli.addCliArgument("--controller=" + CONTROLLER_ALIAS_NAME); } return cli; }
Source:
public static int parseInteger(String value, int defaultValue) { if (isNullOrEmpty(value)) { return defaultValue; } try { return Integer.parseInt(value); } catch (NumberFormatException e) { return defaultValue; } }

Target:
public static int parseInteger(String value, int defaultValue) { if (isNullOrEmpty(value)) { return defaultValue; } return Integer.parseInt(value); }
Source:
public Query(String cypherQuery, String countQuery, Map<String, Object> parameters) { Assert.notNull(cypherQuery, "Query must not be null."); Assert.notNull(parameters, "Parameters must not be null."); this.cypherQuery = sanitize(cypherQuery); this.countQuery = sanitize(countQuery); this.parameters = parameters; }

Target:
public Query(String cypherQuery, String countQuery, Map<String, Object> parameters) { Assert.notNull(cypherQuery, "Query must not be null."); Assert.notNull(countQuery, "Count query must not be null."); Assert.notNull(parameters, "Parameters must not be null."); this.cypherQuery = sanitize(cypherQuery); this.countQuery = sanitize(countQuery); this.parameters = parameters; }
Source:
protected Builder() { id("azurecompute") .name("Microsoft Azure Service Management Service API") .version("2014-10-01") .identityName("Path to Management Certificate .p12 file, or PEM string") .credentialName("Password to Management Certificate") .defaultEndpoint("<LINK_1>${" + SUBSCRIPTION_ID + "}") .endpointName("Service Management Endpoint ending in your Subscription Id") .documentation(URI.create("<LINK_0>")) .defaultProperties(AzureManagementApiMetadata.defaultProperties()) .view(typeToken(ComputeServiceContext.class)) .defaultModules(ImmutableSet.<Class<? extends Module>>builder() .add(AzureComputeServiceContextModule.class) .add(AzureComputeHttpApiModule.class).build()); }

Target:
protected Builder() { id("azurecompute") .name("Microsoft Azure Service Management Service API") .version("2014-10-01") .identityName("Path to Management Certificate .p12 file, or PEM string") .credentialName("Password to Management Certificate") .endpointName("Service Management Endpoint ending in your Subscription Id") .documentation(URI.create("<LINK_0>")) .defaultProperties(AzureManagementApiMetadata.defaultProperties()) .view(typeToken(ComputeServiceContext.class)) .defaultModules(ImmutableSet.<Class<? extends Module>>builder() .add(AzureComputeServiceContextModule.class) .add(AzureComputeHttpApiModule.class).build()); }
Source:
void setCurrentPacket(StreamInputPacketIndexEntry currentPacket) throws CTFReaderException { StreamInputPacketIndexEntry prevPacket = null; fCurrentPacket = currentPacket; if (fCurrentPacket != null) { ByteBuffer bb = null; try { bb = getByteBufferAt( fCurrentPacket.getOffsetBits(), (fCurrentPacket.getPacketSizeBits() + BITS_PER_BYTE - 1) / BITS_PER_BYTE); } catch (IOException e) { throw new CTFReaderException(e.getMessage(), e); } BitBuffer bitBuffer = new BitBuffer(bb); fBitBuffer = bitBuffer; if (fTracePacketHeaderDecl != null) { fCurrentTracePacketHeaderDef = getTracePacketHeaderDefinition(bitBuffer); } if (fStreamPacketContextDecl != null) { fCurrentStreamPacketContextDef = getStreamPacketContextDefinition(bitBuffer); if (getCurrentPacket().getTarget() != null) { fCurrentCpu = (int) getCurrentPacket().getTargetId(); } fLostEventsInThisPacket = (int) getCurrentPacket().getLostEvents(); if (fLostEventsInThisPacket != 0) { fHasLost = true; long lostEventsStartTime; int index = fStreamInputReader.getStreamInput().getIndex().indexOf(currentPacket); if (index == 0) { lostEventsStartTime = currentPacket.getTimestampBegin() + 1; } else { prevPacket = fStreamInputReader.getStreamInput().getIndex().getElement(index - 1); lostEventsStartTime = prevPacket.getTimestampEnd(); } fLostEventsDuration = Math.abs(lostEventsStartTime - currentPacket.getTimestampBegin()); } } fLastTimestamp = currentPacket.getTimestampBegin(); } else { fBitBuffer = null; fLastTimestamp = 0; } }

Target:
void setCurrentPacket(StreamInputPacketIndexEntry currentPacket) throws CTFReaderException { StreamInputPacketIndexEntry prevPacket = null; fCurrentPacket = currentPacket; if (fCurrentPacket != null) { ByteBuffer bb = null; try { bb = getByteBufferAt(fCurrentPacket.getOffsetBytes(), (fCurrentPacket.getPacketSizeBits() + BITS_PER_BYTE - 1) / BITS_PER_BYTE); } catch (IOException e) { throw new CTFReaderException(e.getMessage(), e); } BitBuffer bitBuffer = new BitBuffer(bb); fBitBuffer = bitBuffer; if (fTracePacketHeaderDecl != null) { fCurrentTracePacketHeaderDef = getTracePacketHeaderDefinition(bitBuffer); } if (fStreamPacketContextDecl != null) { fCurrentStreamPacketContextDef = getStreamPacketContextDefinition(bitBuffer); if (getCurrentPacket().getTarget() != null) { fCurrentCpu = (int) getCurrentPacket().getTargetId(); } fLostEventsInThisPacket = (int) getCurrentPacket().getLostEvents(); if (fLostEventsInThisPacket != 0) { fHasLost = true; long lostEventsStartTime; int index = fStreamInputReader.getStreamInput().getIndex().indexOf(currentPacket); if (index == 0) { lostEventsStartTime = currentPacket.getTimestampBegin() + 1; } else { prevPacket = fStreamInputReader.getStreamInput().getIndex().getElement(index - 1); lostEventsStartTime = prevPacket.getTimestampEnd(); } fLostEventsDuration = Math.abs(lostEventsStartTime - currentPacket.getTimestampBegin()); } } fLastTimestamp = currentPacket.getTimestampBegin(); } else { fBitBuffer = null; fLastTimestamp = 0; } }
Source:
protected void executeQueryCommand() { Map<String, Object> response = SSOOAuthServiceUtils.getAvailableNamespaces( getSessionDataContainer().getSsoAccessToken(getParameters().getSessionId())); Map<String, List<String>> namespacesMap = new HashMap<>(); for (ExtensionProxy authz: EngineExtensionsManager.getInstance().getExtensionsByService(Authz.class.getName())) { for (String namespace : authz.getContext().<Collection<String>>get(Authz.ContextKeys.AVAILABLE_NAMESPACES, Collections.<String>emptyList())) { MultiValueMapUtils.addToMap(AuthzUtils.getName(authz), namespace, namespacesMap); } } if (response.containsKey("result")) { namespacesMap = (Map<String, List<String>>) response.get("result"); } for (List<String> entry : namespacesMap.values()) { Collections.sort(entry); } setReturnValue(namespacesMap); }

Target:
protected void executeQueryCommand() { Map<String, Object> response = SSOOAuthServiceUtils.getAvailableNamespaces( getSessionDataContainer().getSsoAccessToken(getParameters().getSessionId())); Map<String, List<String>> namespacesMap = new HashMap<>(); if (response.containsKey("result")) { namespacesMap = (Map<String, List<String>>) response.get("result"); } for (List<String> entry : namespacesMap.values()) { Collections.sort(entry); } setReturnValue(namespacesMap); }
Source:
public void init() throws APIManagerIntegrationTestException { String warFileName = "jaxrs_basic"; String warFileLocation = System.getProperty("user.dir") + File.separator+ "src/test/resources" + File.separator + warFileName + ".war"; createUsers(); apiPublisher = new APIPublisherRestClient(publisherURL); apiPublisher.login(apiProvider, "wso2123$"); apiStore = new APIStoreRestClient(storeURL); apiStore.login("APIConsumer", "wso2123$"); try { WebAppDeployUtils.deployWebApp(serviceEndpoint, admin, admin, warFileLocation, warFileName); boolean isWebAppDeployed = WebAppDeployUtils.isWebApplicationDeployed(serviceEndpoint, admin, admin, warFileName); assertTrue(isWebAppDeployed, warFileName + " is not deployed" ); log.info("WebApp deployed successfully"); } catch (RemoteException | MalformedURLException e) { log.error("Error when deploying webApp", e); } }

Target:
public void init() throws APIManagerIntegrationTestException { String warFileName = "jaxrs_basic"; String warFileLocation = System.getProperty("user.dir") + File.separator+ "src/test/resources" + File.separator + warFileName + ".war"; createUsers(); apiPublisher = new APIPublisherRestClient(publisherURL); apiPublisher.login(apiProvider, "wso2123$"); apiStore = new APIStoreRestClient(storeURL); apiStore.login("APIConsumer", "wso2123$"); try { WebAppDeployUtils.deployWebApp(serviceEndpoint, admin, admin, warFileLocation, warFileName); boolean isWebAppDeployed = isWebApplicationDeployed(serviceEndpoint, admin, admin, warFileName); assertTrue(isWebAppDeployed, warFileName + " is not deployed" ); log.info("WebApp deployed successfully"); } catch (RemoteException | MalformedURLException e) { log.error("Error when deploying webApp - " + warFileName + ".war", e); } }
Source:
public void processRecord(ComputationContext context, String inputStreamName, Record record) { context.askForCheckpoint(); Work work = WorkComputation.deserialize(record.getData()); log.warn("Trying to run Work from DLQ: " + work.getCategory() + ":" + work.getId()); try { work.setWorkInstanceState(Work.State.UNKNOWN); new WorkHolder(work).run(); cleanup(work, null); log.warn(work.getId() + ": Success."); countSuccess++; } catch (Exception e) { cleanup(work, e); log.warn(work.getId() + ": Failure, skipping."); } countTotal++; }

Target:
public void processRecord(ComputationContext context, String inputStreamName, Record record) { context.askForCheckpoint(); Work work = WorkComputation.deserialize(record.getData()); log.info("Trying to run Work from DLQ: " + work.getCategory() + ":" + work.getId()); try { work.setWorkInstanceState(Work.State.UNKNOWN); new WorkHolder(work).run(); cleanup(work, null); log.info(work.getId() + ": Success."); countSuccess++; } catch (Exception e) { cleanup(work, e); log.error(work.getId() + ": Failure, skipping.", e); } countTotal++; }
Source:
public void addPages() { if (getModel().originatedFromDockerExplorer()) { addPage(new ConnectionWizardPage(this, new IConnectionAware<IConnection>() { @Override public IConnection getConnection() { return getModel().getConnection(); } @Override public boolean hasConnection() { return getModel().hasConnection(); } @Override public void setConnection(IConnection connection) { getModel().setConnection((Connection) connection); } @Override public Object getContext() { return getModel().getContext(); } })); } addPage(new DeployImagePage(this, getModel())); addPage(new DeploymentConfigPage(this, getModel())); addPage(new ServicesAndRoutingPage(this, getModel())); addPage(new ResourceLabelsPage(this, getModel())); }

Target:
public void addPages() { if (getModel().originatedFromDockerExplorer()) { addPage(new ConnectionWizardPage(this, getModel())); } addPage(new DeployImagePage(this, getModel())); addPage(new DeploymentConfigPage(this, getModel())); addPage(new ServicesAndRoutingPage(this, getModel())); addPage(new ResourceLabelsPage(this, getModel())); }
Source:
public Set<DocumentFlag> flags() { return documentFlags; }

Target:
public EnumSet<DocumentFlag> flags() { return documentFlags; }
Source:
public StatsSnapshot(StatsSnapshot original) { this.value = original.value; if (original.subMap != null) { this.subMap = new HashMap<>(original.subMap.size()); original.subMap.forEach((k, v) -> { this.subMap.put(k, new StatsSnapshot(v)); }); } }

Target:
public StatsSnapshot(StatsSnapshot original) { this.value = original.value; if (original.subMap != null) { this.subMap = new HashMap<>(original.subMap.size()); original.subMap.forEach((k, v) -> this.subMap.put(k, new StatsSnapshot(v))); } }
Source:
private void isKeyFound(int bruteForceKey) { if (bruteForceKey == HistogramController.this.getView().getSecretKey()) { HistogramController.this.bruteForceKeyFound = true; HistogramController.this.getView().getKeyControl() .setBorder(BorderFactory.createLineBorder(Color.green, 5)); HistogramController.this .getView() .getAnnouncement() .setText( HistogramController.this.wrapHtml( HistogramController.this.getModel() .genRandomGrats() + HistogramController.i18n .tr(" You found the secret key and are now able to read the secret message. The Key is") + " " + bruteForceKey + ". " + HistogramController.i18n .tr("Now only the histogram technique left."), 500)); HistogramController.this .getView() .getExplanations() .setText( HistogramController.i18n.tr("The Key was") + " " + bruteForceKey + ". " + HistogramController.i18n .tr("Congratulations! Yeay! Now lets try to break it with histograms. ")); } else { HistogramController.this .getView() .getAnnouncement() .setText( HistogramController.this.getModel() .genRandomBlamings()); HistogramController.this.getView().getKeyControl() .setBorder(BorderFactory.createLineBorder(Color.blue, 2)); } }

Target:
private void isKeyFound(int bruteForceKey) { if (bruteForceKey == HistogramController.this.getView().getSecretKey()) { HistogramController.this.bruteForceKeyFound = true; HistogramController.this.getView().getKeyControl() .setBorder(BorderFactory.createLineBorder(Color.green, 5)); HistogramController.this .getView() .getAnnouncement() .setText( HistogramController.this.wrapHtml( HistogramController.this.getModel() .genRandomGrats() + " " + HistogramController.i18n .tr("You found the secret key and are now able to read the secret message. The Key is") + " " + bruteForceKey + ". " + HistogramController.i18n .tr("Now only the histogram technique left."), 500)); HistogramController.this .getView() .getExplanations() .setText( HistogramController.i18n.tr("The Key was") + " " + bruteForceKey + ". " + HistogramController.i18n .tr("Congratulations! Yeay! Now lets try to break it with histograms.")); } else { HistogramController.this .getView() .getAnnouncement() .setText( HistogramController.this.getModel() .genRandomBlamings()); HistogramController.this.getView().getKeyControl() .setBorder(BorderFactory.createLineBorder(Color.blue, 2)); } }
Source:
public static ArrayList<String> readListFromFile(File file, boolean keepExtension) throws IOException { ArrayList<String> list = new ArrayList<String>(120); BufferedReader in = null; try { in = new BufferedReader(new FileReader(file)); String line = null; while ((line = in.readLine()) != null) { if (keepExtension) { line = Lib.removeExtension(line); } if (Strings.isValid(line)) { list.add(line); } } } finally { Lib.close(in); } return list; }

Target:
public static ArrayList<String> readListFromFile(File file, boolean keepExtension) throws IOException { ArrayList<String> list = new ArrayList<String>(120); BufferedReader in = null; try { in = new BufferedReader(new FileReader(file)); String line = null; while ((line = in.readLine()) != null) { if (!keepExtension) { line = Lib.removeExtension(line); } if (Strings.isValid(line)) { list.add(line); } } } finally { Lib.close(in); } return list; }
Source:
public TablesSharedKeyCredential(String accountName, String accountKey) { Objects.requireNonNull(accountName, "'accountName' cannot be null."); Objects.requireNonNull(accountKey, "'accountKey' cannot be null."); this.accountName = accountName; this.accountKey = accountKey; }

Target:
public TablesSharedKeyCredential(String accountName, String accountKey) { this.accountName = Objects.requireNonNull(accountName, "'accountName' cannot be null."); this.accountKey = Objects.requireNonNull(accountKey, "'accountKey' cannot be null."); }
Source:
public final void run() { Cluster result = updateTopology(); new ClusterValidator(result).validate(); if (logger.isDebugEnabled()) { try { logger.debug("Updated topology:{}{}.", lineSeparator(), objectMapperFactory.create().writerWithDefaultPrettyPrinter().writeValueAsString(result)); } catch (JsonProcessingException e) { throw new UncheckedIOException(e); } } if (destinationClusterActivated) { TopologyNomadChange nomadChange = buildNomadChange(result); licenseValidation(destination, nomadChange.getCluster()); onNomadChangeReady(nomadChange); logger.info("Sending the topology change"); try { Cluster clusterForTopologyChange = nomadChange instanceof StripeRemovalNomadChange ? result : destinationCluster; runTopologyChange(clusterForTopologyChange, destinationOnlineNodes, nomadChange); } catch (RuntimeException e) { onNomadChangeFailure(nomadChange, e); } onNomadChangeSuccess(nomadChange); } else { logger.info("Sending the topology change"); Collection<InetSocketAddress> allOnlineSourceNodes = getAllOnlineSourceNodes(); if (!allOnlineSourceNodes.isEmpty()) { setUpcomingCluster(allOnlineSourceNodes, result); } setUpcomingCluster(destinationOnlineNodes.keySet(), result); } logger.info("Command successful!" + lineSeparator()); }

Target:
public final void run() { Cluster result = updateTopology(); new ClusterValidator(result).validate(); if (logger.isDebugEnabled()) { try { logger.debug("Updated topology:{}{}.", lineSeparator(), objectMapperFactory.create().writerWithDefaultPrettyPrinter().writeValueAsString(result)); } catch (JsonProcessingException e) { throw new UncheckedIOException(e); } } if (destinationClusterActivated) { TopologyNomadChange nomadChange = buildNomadChange(result); licenseValidation(destination, nomadChange.getCluster()); onNomadChangeReady(nomadChange); logger.info("Sending the topology change"); try { runTopologyChange(destinationCluster, destinationOnlineNodes, nomadChange); } catch (RuntimeException e) { onNomadChangeFailure(nomadChange, e); } onNomadChangeSuccess(nomadChange); } else { logger.info("Sending the topology change"); Collection<InetSocketAddress> allOnlineSourceNodes = getAllOnlineSourceNodes(); if (!allOnlineSourceNodes.isEmpty()) { setUpcomingCluster(allOnlineSourceNodes, result); } setUpcomingCluster(destinationOnlineNodes.keySet(), result); } logger.info("Command successful!" + lineSeparator()); }
Source:
private void testGeneralQuestionOperations() throws Exception { testCancelNewOrEditQuestion(); testNewQuestionLink(); testInputValidationForQuestion(); testAddQuestionAction(); testResponseRateBeforeEditingQuestion(); testEditQuestionLink(); testEditQuestionAction(); testResponseRateAfterEditingQuestion(); testGetQuestionLink(); testCopyQuestion(); testChangeFeedbackRecipient(); testEditQuestionNumberAction(); testAjaxOnVisibilityMessageButton(); testDeleteQuestionAction(2); testDeleteQuestionAction(1); testEditNonExistentQuestion(); }

Target:
private void testGeneralQuestionOperations() throws Exception { testCancelNewOrEditQuestion(); testNewQuestionLink(); testInputValidationForQuestion(); testAddQuestionAction(); testEditQuestionLink(); testEditQuestionAction(); testGetQuestionLink(); testCopyQuestion(); testChangeFeedbackRecipient(); testEditQuestionNumberAction(); testAjaxOnVisibilityMessageButton(); testDeleteQuestionAction(2); testDeleteQuestionAction(1); testEditNonExistentQuestion(); testResponseRate(); }
Source:
public void givenIdenticalSimpleObjects_whenCompared_thenEqual() { JsonParser parser = new JsonParser(); String string1 = "{\"customer\": {\"id\": \"44521\",\"fullName\": \"Emily Jenkins\", \"age\": 27 }}"; String string2 = "{\"customer\": {\"id\": \"44521\", \"fullName\": \"Emily Jenkins\",\"age\": 27}}"; Assert.assertTrue(parser.parse(string1) .isJsonObject()); Assert.assertEquals(parser.parse(string1), parser.parse(string2)); }

Target:
public void givenIdenticalSimpleObjects_whenCompared_thenEqual() { JsonParser parser = new JsonParser(); String string1 = "{\"customer\": {\"id\": \"44521\",\"fullName\": \"Emily Jenkins\", \"age\": 27 }}"; String string2 = "{\"customer\": {\"id\": \"44521\", \"fullName\": \"Emily Jenkins\",\"age\": 27}}"; assertTrue(parser.parse(string1) .isJsonObject()); assertEquals(parser.parse(string1), parser.parse(string2)); }
Source:
public CompletionStage<Void> prepareAllTxStores(Transaction transaction, BatchModification batchModification, Predicate<? super StoreConfiguration> predicate) throws PersistenceException { return Completable.using( this::acquireReadLock, ignore -> { checkStoreAvailability(); if (trace) { log.tracef("Preparing batch for store: %s on transaction %s", batchModification, transaction); } return Flowable.fromIterable(stores.entrySet()) .filter(entry -> !entry.getValue().characteristics.contains(Characteristic.READ_ONLY) && predicate.test(entry.getValue().config)) .flatMapCompletable(entry -> Completable.fromCompletionStage(entry.getKey().prepareWithModifications(transaction, batchModification))); }, this::releaseReadLock ).toCompletionStage(null); }

Target:
public CompletionStage<Void> prepareAllTxStores(Transaction transaction, BatchModification batchModification, Predicate<? super StoreConfiguration> predicate) throws PersistenceException { return Completable.using( this::acquireReadLock, ignore -> { checkStoreAvailability(); if (trace) { log.tracef("Preparing batch for store: %s on transaction %s", batchModification, transaction); } return Flowable.fromIterable(stores) .filter(storeStatus -> !storeStatus.characteristics.contains(Characteristic.READ_ONLY) && predicate.test(storeStatus.config)) .flatMapCompletable(storeStatus -> Completable.fromCompletionStage(storeStatus.store.prepareWithModifications(transaction, batchModification))); }, this::releaseReadLock ).toCompletionStage(null); }
Source:
private IHyperlink[] createTypeLink(IJavaElement element, IJavaElement type, IRegion wordRegion, boolean isFrameworkResource) { String typeName = type.getElementName(); if (isFrameworkResource) { typeName = "android:" + typeName; } String elementName = element.getElementName(); String url = '@' + typeName + '/' + elementName; return new IHyperlink[] { new DeferredResolutionLink(url, null, wordRegion) }; }

Target:
private IHyperlink[] createTypeLink(IJavaElement element, IJavaElement type, IRegion wordRegion, boolean isFrameworkResource) { String typeName = type.getElementName(); if (isFrameworkResource) { typeName = ANDROID_PKG + ':' + typeName; } String elementName = element.getElementName(); String url = '@' + typeName + '/' + elementName; return new IHyperlink[] { new DeferredResolutionLink(url, null, wordRegion) }; }
Source:
private String getPropertySortOrder(Sort.Order order) { StringBuilder sb = new StringBuilder(); if(order.isIgnoreCase()){ sb.append("toLower(").append(order.getProperty()).append(")"); } else { sb.append(order.getProperty()); } sb.append(" ").append(order.getDirection()); return sb.toString(); }

Target:
private static String getPropertySortOrder(Sort.Order order) { StringBuilder sb = new StringBuilder(); if(order.isIgnoreCase()){ sb.append("toLower(").append(order.getProperty()).append(")"); } else { sb.append(order.getProperty()); } sb.append(" ").append(order.getDirection()); return sb.toString(); }
Source:
public String toString() { return urlString; }

Target:
public String toString() { return relativeUrl + query; }
Source:
V call() throws StatusRuntimeException; } protected synchronized <V> V retryRPC(RpcCallable<V> rpc, Logger logger, String rpcName, String description, Object... args) throws AlluxioStatusException { String debugDesc = logger.isDebugEnabled() ? String.format(description, args) : null; long startMs = System.currentTimeMillis(); logger.debug("Enter: {}({})", rpcName, debugDesc); try (Timer.Context ctx = MetricsSystem.timer(getQualifiedMetricName(rpcName)).time()) { V ret = retryRPCInternal(rpc, () -> { MetricsSystem.counter(getQualifiedRetryMetricName(rpcName)).inc(); return null; }); long duration = System.currentTimeMillis() - startMs; logger.debug("Exit (OK): {}({}) in ms", rpcName, debugDesc, duration); if (duration >= mRpcThreshold) { logger.warn("{}({}) returned in ms", rpcName, String.format(description, args), ret, duration); } return ret; } catch (Exception e) { long duration = System.currentTimeMillis() - startMs; MetricsSystem.counter(getQualifiedFailureMetricName(rpcName)).inc(); logger.debug("Exit (ERROR): {}({}) in ms: {}", rpcName, debugDesc, duration, e.toString()); if (duration >= mRpcThreshold) { logger.warn("{}({}) exits with exception in ms (>={}ms)", rpcName, String.format(description, args), e.toString(), duration, mRpcThreshold); } throw e; } }

Target:
V call() throws StatusRuntimeException; } protected synchronized <V> V retryRPC(RpcCallable<V> rpc, Logger logger, String rpcName, String description, Object... args) throws AlluxioStatusException { String debugDesc = logger.isDebugEnabled() ? String.format(description, args) : null; long startMs = System.currentTimeMillis(); logger.debug("Enter: {}({})", rpcName, debugDesc); try (Timer.Context ctx = MetricsSystem.timer(getQualifiedMetricName(rpcName)).time()) { V ret = retryRPCInternal(rpc, () -> { MetricsSystem.counter(getQualifiedRetryMetricName(rpcName)).inc(); return null; }); long duration = System.currentTimeMillis() - startMs; logger.debug("Exit (OK): {}({}) in ms", rpcName, debugDesc, duration); if (duration >= mRpcThreshold) { logger.warn("{}({}) returned in ms (>={} ms)", rpcName, String.format(description, args), ret, duration, mRpcThreshold); } return ret; } catch (Exception e) { long duration = System.currentTimeMillis() - startMs; MetricsSystem.counter(getQualifiedFailureMetricName(rpcName)).inc(); logger.debug("Exit (ERROR): {}({}) in ms: {}", rpcName, debugDesc, duration, e.toString()); if (duration >= mRpcThreshold) { logger.warn("{}({}) exits with exception in ms (>={}ms)", rpcName, String.format(description, args), e.toString(), duration, mRpcThreshold); } throw e; } }
Source:
protected static void createBranch(Repository myRepository, String newRefName) throws IOException { RefUpdate updateRef = myRepository.updateRef(newRefName); Ref sourceBranch = myRepository.findRef("refs/heads/master"); ObjectId startAt = sourceBranch.getObjectId(); String startBranch = Repository.shortenRefName(sourceBranch.getName()); updateRef.setNewObjectId(startAt); updateRef .setRefLogMessage("branch: Created from " + startBranch, false); updateRef.update(); TestUtil.waitForJobs(50, 5000); }

Target:
protected static void createBranch(Repository myRepository, String newRefName) throws IOException { RefUpdate updateRef = myRepository.updateRef(newRefName); Ref sourceBranch = myRepository.exactRef("refs/heads/master"); ObjectId startAt = sourceBranch.getObjectId(); String startBranch = Repository.shortenRefName(sourceBranch.getName()); updateRef.setNewObjectId(startAt); updateRef .setRefLogMessage("branch: Created from " + startBranch, false); updateRef.update(); TestUtil.waitForJobs(50, 5000); }
Source:
static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) { return ImmutableIdentifiedLockRequest.of( UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.of("Thread: " + Thread.currentThread().getName())); }

Target:
static IdentifiedLockRequest of(Set<LockDescriptor> lockDescriptors, long acquireTimeoutMs) { return ImmutableIdentifiedLockRequest.of( UUID.randomUUID(), lockDescriptors, acquireTimeoutMs, Optional.empty()); }
Source:
public PriorityQueue<T> take(long n) { if (n >= length()) { return this; } else { PriorityQueue<T> source = this, result = empty(comparator); for (int i = 0; i < n; i++) { result = result.enqueue(source.head()); source = source.tail(); } return result; } }

Target:
public PriorityQueue<T> take(long n) { return ofAll(comparator, iterator().take(n)); }
Source:
public void testEquals() { assertThat(internState, not(equalTo(internStateToCompare))); assertNotEquals(internState, Integer.valueOf(1)); }

Target:
public void testEquals() { assertThat(internState, not(equalTo(unexpectedInternState))); assertNotEquals(Integer.valueOf(1), internState); }
Source:
private void compareContent(CompareAssertionResult result) { if (!compareContent) { return; } String prevContent = null; SampleResult prevResult = null; boolean success = true; StringBuilder buf = new StringBuilder(); for (SampleResult sResult : responses) { String currentContent = sResult.getResponseDataAsString(); currentContent = filterString(currentContent); if (prevContent != null) { success = prevContent.equals(currentContent); } if (success) { prevResult = sResult; prevContent = currentContent; } else { result.setFailure(true); buf.setLength(0); appendResultDetails(buf, prevResult); buf.append(prevContent); result.addToBaseResult(buf.toString()); buf.setLength(0); appendResultDetails(buf, sResult); buf.append(currentContent); result.addToSecondaryResult(buf.toString()); result.setFailureMessage(JMeterUtils.getResString("comparison_differ_content")); break; } } }

Target:
private void compareContent(CompareAssertionResult result) { if (!compareContent) { return; } String prevContent = null; SampleResult prevResult = null; boolean success = true; for (SampleResult sResult : responses) { String currentContent = sResult.getResponseDataAsString(); currentContent = filterString(currentContent); if (prevContent != null) { success = prevContent.equals(currentContent); } if (success) { prevResult = sResult; prevContent = currentContent; } else { result.setFailure(true); StringBuilder sb = new StringBuilder(); appendResultDetails(sb, prevResult); sb.append(prevContent); result.addToBaseResult(sb.toString()); sb.setLength(0); appendResultDetails(sb, sResult); sb.append(currentContent); result.addToSecondaryResult(sb.toString()); result.setFailureMessage(JMeterUtils.getResString("comparison_differ_content")); break; } } }
Source:
public void requestSpace(long sessionId, long blockId, long additionalBytes) throws BlockDoesNotExistException, WorkerOutOfSpaceException, IOException { LOG.debug("requestSpace: sessionId={}, blockId={}, additionalBytes={}", sessionId, blockId, additionalBytes); try (LockResource r = new LockResource(mMetadataWriteLock)) { TempBlockMeta tempBlockMeta = mMetaManager.getTempBlockMeta(blockId); StorageDirView allocationDir = allocateSpace(sessionId, BlockAllocationOptions .defaultsForRequest(additionalBytes, tempBlockMeta.getBlockLocation())); if (allocationDir == null) { throw new WorkerOutOfSpaceException(String.format( "Can't reserve more space for block: %d under session: %d.", blockId, sessionId)); } if (!allocationDir.toBlockStoreLocation().equals(tempBlockMeta.getBlockLocation())) { throw new RuntimeException("Allocation error: location enforcement failed"); } try { mMetaManager.resizeTempBlockMeta( tempBlockMeta, tempBlockMeta.getBlockSize() + additionalBytes); } catch (InvalidWorkerStateException e) { throw Throwables.propagate(e); } } }

Target:
public void requestSpace(long sessionId, long blockId, long additionalBytes) throws BlockDoesNotExistException, WorkerOutOfSpaceException, IOException { LOG.debug("requestSpace: sessionId={}, blockId={}, additionalBytes={}", sessionId, blockId, additionalBytes); try (LockResource r = new LockResource(mMetadataWriteLock)) { TempBlockMeta tempBlockMeta = mMetaManager.getTempBlockMeta(blockId); StorageDirView allocationDir = allocateSpace(sessionId, AllocateOptions.forRequestSpace(additionalBytes, tempBlockMeta.getBlockLocation())); if (allocationDir == null) { throw new WorkerOutOfSpaceException(String.format( "Can't reserve more space for block: %d under session: %d.", blockId, sessionId)); } if (!allocationDir.toBlockStoreLocation().equals(tempBlockMeta.getBlockLocation())) { throw new RuntimeException("Allocation error: location enforcement failed"); } try { mMetaManager.resizeTempBlockMeta( tempBlockMeta, tempBlockMeta.getBlockSize() + additionalBytes); } catch (InvalidWorkerStateException e) { throw Throwables.propagate(e); } } }
Source:
protected void activate() { sortedList = new SortedList<>(model.dataModel.list); sortedList.comparatorProperty().bind(tableView.comparatorProperty()); tableView.setItems(sortedList); scene = root.getScene(); if (scene != null) { scene.addEventHandler(KeyEvent.KEY_RELEASED, keyEventEventHandler); } selectedItemSubscription = EasyBind.subscribe(model.dataModel.selectedItemProperty, selectedItem -> { if (selectedItem != null) { if (selectedSubView != null) selectedSubView.deactivate(); if (selectedItem.getTrade() != null) { selectedSubView = model.dataModel.tradeManager.isBuyer(model.dataModel.getOffer()) ? new BuyerSubView(model) : new SellerSubView(model); selectedSubView.setMinHeight(440); VBox.setVgrow(selectedSubView, Priority.ALWAYS); if (root.getChildren().size() == 1) root.getChildren().add(selectedSubView); else if (root.getChildren().size() == 2) root.getChildren().set(1, selectedSubView); ChatCallback chatCallback = trade -> { openChat(trade); }; selectedSubView.setChatCallback(chatCallback); } updateTableSelection(); } else { removeSelectedSubView(); } model.onSelectedItemChanged(selectedItem); if (selectedSubView != null && selectedItem != null) selectedSubView.activate(); }); selectedTableItemSubscription = EasyBind.subscribe(tableView.getSelectionModel().selectedItemProperty(), selectedItem -> { if (selectedItem != null && !selectedItem.equals(model.dataModel.selectedItemProperty.get())) model.dataModel.onSelectItem(selectedItem); }); updateTableSelection(); model.dataModel.list.addListener(tradesListChangeListener); updateNewChatMessagesByTradeMap(); }

Target:
protected void activate() { sortedList = new SortedList<>(model.dataModel.list); sortedList.comparatorProperty().bind(tableView.comparatorProperty()); tableView.setItems(sortedList); scene = root.getScene(); if (scene != null) { scene.addEventHandler(KeyEvent.KEY_RELEASED, keyEventEventHandler); } selectedItemSubscription = EasyBind.subscribe(model.dataModel.selectedItemProperty, selectedItem -> { if (selectedItem != null) { if (selectedSubView != null) selectedSubView.deactivate(); if (selectedItem.getTrade() != null) { selectedSubView = model.dataModel.tradeManager.isBuyer(model.dataModel.getOffer()) ? new BuyerSubView(model) : new SellerSubView(model); selectedSubView.setMinHeight(440); VBox.setVgrow(selectedSubView, Priority.ALWAYS); if (root.getChildren().size() == 1) root.getChildren().add(selectedSubView); else if (root.getChildren().size() == 2) root.getChildren().set(1, selectedSubView); ChatCallback chatCallback = this::openChat; selectedSubView.setChatCallback(chatCallback); } updateTableSelection(); } else { removeSelectedSubView(); } model.onSelectedItemChanged(selectedItem); if (selectedSubView != null && selectedItem != null) selectedSubView.activate(); }); selectedTableItemSubscription = EasyBind.subscribe(tableView.getSelectionModel().selectedItemProperty(), selectedItem -> { if (selectedItem != null && !selectedItem.equals(model.dataModel.selectedItemProperty.get())) model.dataModel.onSelectItem(selectedItem); }); updateTableSelection(); model.dataModel.list.addListener(tradesListChangeListener); updateNewChatMessagesByTradeMap(); }
Source:
public String getColumnText(MyModel element, int columnIndex) { if (element instanceof MyModel) { switch (columnIndex) { case 0: return ((MyModel)element).col1; case 1: return ((MyModel)element).col2; } } return ""; }

Target:
public String getColumnText(MyModel element, int columnIndex) { switch (columnIndex) { case 0: return element.col1; case 1: return element.col2; } return ""; }
Source:
public ProductSearch getSearchProducts(@RequestParam(value = "query", required = false) String query) { List<Product> productList = productService.getAllProducts(); ProductSearch search = new ProductSearch(query); String finalQuery = (query != null) ? query : ""; productList.stream() .filter(p -> eventService.getEventByProductKey(p.getKey()).size() < 1) .filter(p -> p.getTitle().toLowerCase().contains(finalQuery.toLowerCase())) .collect(Collectors.toCollection(ArrayList::new)) .forEach(x -> search.addItem(x.getTitle(), x.getId())); return search; }

Target:
public ProductSearch getSearchProducts(@RequestParam(value = "query", required = false) String query) { List<Product> productList = productService.getAllProducts(); ProductSearch search = new ProductSearch(query); String finalQuery = (query != null) ? query : ""; productList.stream() .filter(p -> eventService.getEventByProductKey(p.getKey()).size() < 1) .filter(p -> p.getTitle().toLowerCase().contains(finalQuery.toLowerCase())) .forEach(x -> search.addItem(x.getTitle(), x.getId())); return search; }
Source:
public void init(GraphHopperConfig ghConfig) { if (ghConfig.has("prepare.threads")) throw new IllegalStateException("Use " + CH.PREPARE + "threads instead of prepare.threads"); if (ghConfig.has("prepare.chWeighting") || ghConfig.has("prepare.chWeightings") || ghConfig.has("prepare.ch.weightings")) throw new IllegalStateException("Use profiles_ch instead of prepare.chWeighting, prepare.chWeightings or prepare.ch.weightings"); if (ghConfig.has("prepare.ch.edge_based")) throw new IllegalStateException("Use profiles_ch instead of prepare.ch.edge_based"); setPreparationThreads(ghConfig.getInt(CH.PREPARE + "threads", getPreparationThreads())); setDisablingAllowed(ghConfig.getBool(CH.INIT_DISABLING_ALLOWED, isDisablingAllowed())); setCHProfileConfigs(ghConfig.getCHProfiles()); pMap = ghConfig.asPMap(); }

Target:
public void init(GraphHopperConfig ghConfig) { if (ghConfig.has("prepare.threads")) throw new IllegalStateException("Use " + CH.PREPARE + "threads instead of prepare.threads"); if (ghConfig.has("prepare.chWeighting") || ghConfig.has("prepare.chWeightings") || ghConfig.has("prepare.ch.weightings")) throw new IllegalStateException("Use profiles_ch instead of prepare.chWeighting, prepare.chWeightings or prepare.ch.weightings, see #1922"); if (ghConfig.has("prepare.ch.edge_based")) throw new IllegalStateException("Use profiles_ch instead of prepare.ch.edge_based, see #1922"); setPreparationThreads(ghConfig.getInt(CH.PREPARE + "threads", getPreparationThreads())); setDisablingAllowed(ghConfig.getBool(CH.INIT_DISABLING_ALLOWED, isDisablingAllowed())); setCHProfileConfigs(ghConfig.getCHProfiles()); pMap = ghConfig.asPMap(); }