auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean execute(BuildCommand command, BuildSession buildSession) { URLService urlService = new URLService(); String url = urlService.prefixPartialUrl(command.getStringArg("url")); String dest = command.getStringArg("dest"); String src = command.getStringArg("src"); File artifact = buildSession.resolveRelativeDir(command.getWorkingDirectory(), dest); FileHandler handler = new FileHandler(artifact, src); String checksumUrl = null; ChecksumFileHandler checksumFileHandler = null; if (command.hasArg("checksumUrl")) { checksumUrl = new URLService().prefixPartialUrl(command.getStringArg("checksumUrl")); File checksumFile; if (command.hasArg("checksumFile")) { checksumFile = buildSession.resolveRelativeDir(command.getWorkingDirectory(), command.getStringArg("checksumFile")); } else { checksumFile = TempFiles.createUniqueFile("checksum"); } checksumFileHandler = new ChecksumFileHandler(checksumFile); } boolean fileExist = artifact.exists(); LOG.debug( "Requesting the file [" + artifact.getAbsolutePath() + "], exist? [" + fileExist + "]"); if (fileExist && artifact.isFile()) { try { url += "?sha1=" + URLEncoder.encode(StringUtil.sha1Digest(artifact), "UTF-8"); } catch (UnsupportedEncodingException e) { LOG.error("Download error", e); return false; } } buildSession.download(handler, url, checksumFileHandler, checksumUrl); return true; }

Target:
public boolean execute(BuildCommand command, BuildSession buildSession) { URLService urlService = new URLService(); String url = urlService.prefixPartialUrl(command.getStringArg("url")); String dest = command.getStringArg("dest"); String src = command.getStringArg("src"); File artifact = buildSession.resolveRelativeDir(command.getWorkingDirectory(), dest); FileHandler handler = new FileHandler(artifact, src); String checksumUrl = null; ChecksumFileHandler checksumFileHandler = null; if (command.hasArg("checksumUrl")) { checksumUrl = new URLService().prefixPartialUrl(command.getStringArg("checksumUrl")); File checksumFile; if (command.hasArg("checksumFile")) { checksumFile = buildSession.resolveRelativeDir(command.getWorkingDirectory(), command.getStringArg("checksumFile")); } else { checksumFile = TempFiles.createUniqueFile("checksum"); } checksumFileHandler = new ChecksumFileHandler(checksumFile); } boolean fileExist = artifact.exists(); LOG.debug("Requesting the file [{}], exist? [{}]", artifact.getAbsolutePath(), fileExist); if (fileExist && artifact.isFile()) { try { url += "?sha1=" + URLEncoder.encode(StringUtil.sha1Digest(artifact), "UTF-8"); } catch (UnsupportedEncodingException e) { LOG.error("Download error", e); return false; } } buildSession.download(handler, url, checksumFileHandler, checksumUrl); return true; }
Source:
public static Path createTemporaryPath(ConnectorSession session, HdfsContext context, HdfsEnvironment hdfsEnvironment, Path targetPath) { String temporaryPrefix = getTemporaryStagingDirectoryLocation(session) .replace("${USER}", context.getIdentity().getUser()); if (isViewFileSystem(context, hdfsEnvironment, targetPath)) { temporaryPrefix = ".hive-staging"; } Path temporaryRoot = new Path(targetPath, temporaryPrefix); Path temporaryPath = new Path(temporaryRoot, randomUUID().toString()); createDirectory(context, hdfsEnvironment, temporaryPath); return temporaryPath; }

Target:
public static Path createTemporaryPath(ConnectorSession session, HdfsContext context, HdfsEnvironment hdfsEnvironment, Path targetPath) { String temporaryPrefix = getTemporaryStagingDirectoryPath(session) .replace("${USER}", context.getIdentity().getUser()); if (isViewFileSystem(context, hdfsEnvironment, targetPath)) { temporaryPrefix = ".hive-staging"; } Path temporaryRoot = new Path(targetPath, temporaryPrefix); Path temporaryPath = new Path(temporaryRoot, randomUUID().toString()); createDirectory(context, hdfsEnvironment, temporaryPath); return temporaryPath; }
Source:
public Johan(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{G}{W}"); addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.WIZARD); this.power = new MageInt(5); this.toughness = new MageInt(4); Ability ability = new BeginningOfCombatTriggeredAbility(new CantAttackSourceEffect(Duration.EndOfCombat).setText("you may have {this} gain \"{this} can't attack\" until end of combat"), TargetController.YOU, true); ability.addEffect(new ConditionalContinuousEffect( new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.EndOfCombat, new FilterControlledCreaturePermanent("creatures")), new InvertCondition(SourceTappedCondition.instance), "If you do, attacking doesn't cause creatures you control to tap this combat if {this} is untapped")); this.addAbility(ability); }

Target:
public Johan(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{G}{W}"); addSuperType(SuperType.LEGENDARY); this.subtype.add(SubType.HUMAN); this.subtype.add(SubType.WIZARD); this.power = new MageInt(5); this.toughness = new MageInt(4); Condition condition = new CompoundCondition("if {this} is untapped", new InvertCondition(SourceTappedCondition.instance), SourceOnBattlefieldCondition.instance); Ability ability = new BeginningOfCombatTriggeredAbility(new CantAttackSourceEffect(Duration.EndOfCombat).setText("you may have {this} gain \"{this} can't attack\" until end of combat"), TargetController.YOU, true); ability.addEffect(new ConditionalContinuousEffect( new GainAbilityControlledEffect(JohanVigilanceAbility.getInstance(), Duration.EndOfCombat, new FilterControlledCreaturePermanent("creatures")), condition, "If you do, attacking doesn't cause creatures you control to tap this combat if {this} is untapped")); this.addAbility(ability); }
Source:
public void handleIntent(Intent intent) { if (Intent.ACTION_SEND.equals(intent.getAction()) && Constants.PLAIN_TEXT_MIME_TYPE.equals(intent.getType())) { new IntentFunnel(WikipediaApp.getInstance()).logShareIntent(); openSearchFromIntent(intent.getStringExtra(Intent.EXTRA_TEXT), SearchFragment.InvokeSource.INTENT_SHARE); } else if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && Constants.PLAIN_TEXT_MIME_TYPE.equals(intent.getType()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { new IntentFunnel(WikipediaApp.getInstance()).logProcessTextIntent(); openSearchFromIntent(intent.getStringExtra(Intent.EXTRA_PROCESS_TEXT), SearchFragment.InvokeSource.INTENT_PROCESS_TEXT); } else if (intent.hasExtra(Constants.INTENT_SEARCH_FROM_WIDGET)) { new IntentFunnel(WikipediaApp.getInstance()).logSearchWidgetTap(); openSearchFromIntent(null, SearchFragment.InvokeSource.WIDGET); } }

Target:
public void handleIntent(Intent intent) { IntentFunnel funnel = new IntentFunnel(WikipediaApp.getInstance()); if (Intent.ACTION_SEND.equals(intent.getAction()) && Constants.PLAIN_TEXT_MIME_TYPE.equals(intent.getType())) { funnel.logShareIntent(); openSearchFromIntent(intent.getStringExtra(Intent.EXTRA_TEXT), SearchFragment.InvokeSource.INTENT_SHARE); } else if (Intent.ACTION_PROCESS_TEXT.equals(intent.getAction()) && Constants.PLAIN_TEXT_MIME_TYPE.equals(intent.getType()) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { funnel.logProcessTextIntent(); openSearchFromIntent(intent.getStringExtra(Intent.EXTRA_PROCESS_TEXT), SearchFragment.InvokeSource.INTENT_PROCESS_TEXT); } else if (intent.hasExtra(Constants.INTENT_SEARCH_FROM_WIDGET)) { funnel.logSearchWidgetTap(); openSearchFromIntent(null, SearchFragment.InvokeSource.WIDGET); } }
Source:
public static ApexStream<String> fromKafka09(String name, String brokers, String topic) { return null; }

Target:
public static ApexStream<String> fromKafka09(String name, String brokers, String topic) { throw new UnsupportedOperationException(); }
Source:
public void setRegexp( final String regexp ) { this.regexp = regexp; }

Target:
public void setRegexp( final String regexp ) { this.regexp = Pattern.compile( regexp ); }
Source:
public List<QuotaStorageConsumptionParameter> getQuotaStorageConsumptionParameters() { List<QuotaStorageConsumptionParameter> list = new ArrayList<QuotaStorageConsumptionParameter>(); for (DiskImage disk : getDisksList()) { list.add(new QuotaStorageConsumptionParameter( disk.getQuotaId(), null, QuotaConsumptionParameter.QuotaAction.CONSUME, disk.getstorage_ids().get(0), disk.getActualSize())); } return list; }

Target:
public List<QuotaConsumptionParameter> getQuotaStorageConsumptionParameters() { List<QuotaConsumptionParameter> list = new ArrayList<QuotaConsumptionParameter>(); for (DiskImage disk : getDisksList()) { list.add(new QuotaStorageConsumptionParameter( disk.getQuotaId(), null, QuotaConsumptionParameter.QuotaAction.CONSUME, disk.getstorage_ids().get(0), disk.getActualSize())); } return list; }
Source:
public void createVirtualNetwork() { Subnet subnet = Subnet.builder().name("subnetName") .properties(SubnetProperties.builder().addressPrefix(TEST_VIRTUALNETWORK_ADDRESS_PREFIX).build()).build(); final VirtualNetwork.VirtualNetworkProperties virtualNetworkProperties = VirtualNetwork.VirtualNetworkProperties .builder().subnets(ImmutableList.<Subnet> of(subnet)) .addressSpace(AddressSpace.create(Arrays.asList(TEST_VIRTUALNETWORK_ADDRESS_PREFIX))).build(); VirtualNetwork vn = api().createOrUpdate(virtualNetworkName, LOCATION, null, virtualNetworkProperties); resourceAvailable.apply(new Supplier<Provisionable>() { @Override public Provisionable get() { VirtualNetwork updated = api().get(virtualNetworkName); return updated == null ? null : updated.properties(); } }); assertEquals(vn.name(), virtualNetworkName); assertEquals(vn.location(), LOCATION); }

Target:
public void createVirtualNetwork() { Subnet subnet = Subnet.builder().name("subnetName") .properties(SubnetProperties.builder().addressPrefix(TEST_VIRTUALNETWORK_ADDRESS_PREFIX).build()).build(); final VirtualNetwork.VirtualNetworkProperties virtualNetworkProperties = VirtualNetwork.VirtualNetworkProperties .builder().subnets(ImmutableList.<Subnet> of(subnet)) .addressSpace(AddressSpace.create(Arrays.asList(TEST_VIRTUALNETWORK_ADDRESS_PREFIX))).build(); VirtualNetwork vn = api().createOrUpdate(virtualNetworkName, LOCATION, null, virtualNetworkProperties); networkAvailablePredicate.create(resourceGroupName).apply(virtualNetworkName); assertEquals(vn.name(), virtualNetworkName); assertEquals(vn.location(), LOCATION); }
Source:
public void performAction(BasePanel panel, ParserResult parserResult) { BibDatabaseMode mode = getBibDatabaseModeFromParserResult(parserResult); ImportCustomEntryTypesDialog dlg = new ImportCustomEntryTypesDialog(mode, getListOfUnknownAndUnequalCustomizations(parserResult)); dlg.showAndWait(); }

Target:
public void performAction(BasePanel panel, ParserResult parserResult) { BibDatabaseMode mode = getBibDatabaseModeFromParserResult(parserResult); ImportCustomEntryTypesDialog importCustomEntryTypesDialog = new ImportCustomEntryTypesDialog(mode, getListOfUnknownAndUnequalCustomizations(parserResult)); importCustomEntryTypesDialog.showAndWait(); }
Source:
public Concat() { super(new Column[] { new Column("org/apache/tajo/storage/text", TajoDataTypes.Type.TEXT), }); }

Target:
public Concat() { super(new Column[] { new Column("text", TajoDataTypes.Type.TEXT), }); }
Source:
public AppUrl(String url) { this(Config.APP_URL, url); }

Target:
public AppUrl(String url) { super(url); Assumption.assertTrue(url.startsWith("http")); }
Source:
private void search (Pattern p) { try { getExtensionSearch().search(p.pattern(), ExtensionSearch.Type.All, true, false); } catch (NullPointerException npe) { String warningMsg = Constant.messages.getString("httpsessions.popup.find.warning"); View.getSingleton().showWarningDialog(warningMsg); LOG.warn("Unable to search. Is the search extension disabled?"); LOG.debug(npe.getMessage(), npe); } }

Target:
private void search (Pattern p) { getExtensionSearch().search(p.pattern(), ExtensionSearch.Type.All, true, false); }
Source:
public SessionFunnel(WikipediaApp app) { super(app, SCHEMA_NAME, REVISION, app.isProdRelease() ? Funnel.SAMPLE_LOG_100 : Funnel.SAMPLE_LOG_ALL); sessionData = Prefs.getSessionData(); if (sessionData.getLeadLatency() > 0) { leadSectionLatency.addSample(sessionData.getLeadLatency()); } if (sessionData.getRestLatency() > 0) { restSectionsLatency.addSample(sessionData.getRestLatency()); } if (sessionData.getStartTime() == 0) { sessionData.setStartTime(new Date().getTime()); } touchSession(); }

Target:
public SessionFunnel(WikipediaApp app) { super(app, SCHEMA_NAME, REVISION, app.isProdRelease() ? Funnel.SAMPLE_LOG_100 : Funnel.SAMPLE_LOG_ALL); sessionData = Prefs.getSessionData(); if (sessionData.getStartTime() == 0) { sessionData.setStartTime(System.currentTimeMillis()); sessionData.setLastTouchTime(System.currentTimeMillis()); } touchSession(); }
Source:
@SuppressWarnings("UnusedDeclaration") public void shutdown() { cache.clear(); cleanupThread.shutdown(); stats.shutdown(); dispatcher.shutdown(); if (this == singleton) { singleton = null; } shutdown = true; }

Target:
public void shutdown() { if (shutdown) { return; } cache.clear(); cleanupThread.shutdown(); stats.shutdown(); dispatcher.shutdown(); if (this == singleton) { singleton = null; } shutdown = true; }
Source:
public HealthCheckHandler(RestServerState restServerState) { this.restServerState = restServerState; this.healthCheckUri = restServerState.getHealthCheckUri(); logger.info("Created HealthCheckRequestHandler for restServerHealthCheckUri=" + healthCheckUri); }

Target:
public HealthCheckHandler(RestServerState restServerState) { this.restServerState = restServerState; this.healthCheckUri = restServerState.getHealthCheckUri(); logger.info("Created HealthCheckHandler for HealthCheckUri=" + healthCheckUri); }
Source:
private void enforceRing() { enforceRing(null, false); }

Target:
private void enforceRing() { if (ringSize != -1) { enforceRing(null, false); } }
Source:
public void destroySession(String sessionName, IProgressMonitor monitor) throws ExecutionException { List<String> command = createCommand(LTTngControlServiceConstants.COMMAND_DESTROY_SESSION, sessionName); ICommandResult result = executeCommand(command, monitor, false); String[] errorOutput = result.getErrorOutput(); if (isError(result) && (errorOutput.length > 0)) { if (ignoredPattern(errorOutput, LTTngControlServiceConstants.SESSION_NOT_FOUND_ERROR_PATTERN)) { return; } throw new ExecutionException(Messages.TraceControl_CommandError + " " + toCommandString(command) + "\n" + result.toString()); } Document doc = getDocumentFromStrings(result.getOutput()); NodeList sessions = doc.getElementsByTagName(MIStrings.SESSION); if (sessions.getLength() != 1) { throw new ExecutionException(NLS.bind(Messages.TraceControl_MiInvalidNumberOfElementError, MIStrings.SESSION)); } Node rawSessionName = getFirstOf(sessions.item(0).getChildNodes(), MIStrings.NAME); if (rawSessionName == null) { throw new ExecutionException(Messages.TraceControl_MiMissingRequiredError); } if (!rawSessionName.getTextContent().equals(sessionName)) { throw new ExecutionException(NLS.bind(Messages.TraceControl_UnexpectedValueError, rawSessionName.getTextContent(), sessionName)); } }

Target:
public void destroySession(String sessionName, IProgressMonitor monitor) throws ExecutionException { List<String> command = createCommand(LTTngControlServiceConstants.COMMAND_DESTROY_SESSION, sessionName); ICommandResult result = executeCommand(command, monitor, false); String[] errorOutput = result.getErrorOutput(); if (isError(result)) { if (ignoredPattern(errorOutput, LTTngControlServiceConstants.SESSION_NOT_FOUND_ERROR_PATTERN)) { return; } throw new ExecutionException(Messages.TraceControl_CommandError + " " + toCommandString(command) + "\n" + result.toString()); } Document doc = getDocumentFromStrings(result.getOutput()); NodeList sessions = doc.getElementsByTagName(MIStrings.SESSION); if (sessions.getLength() != 1) { throw new ExecutionException(NLS.bind(Messages.TraceControl_MiInvalidNumberOfElementError, MIStrings.SESSION)); } Node rawSessionName = getFirstOf(sessions.item(0).getChildNodes(), MIStrings.NAME); if (rawSessionName == null) { throw new ExecutionException(Messages.TraceControl_MiMissingRequiredError); } if (!rawSessionName.getTextContent().equals(sessionName)) { throw new ExecutionException(NLS.bind(Messages.TraceControl_UnexpectedValueError, rawSessionName.getTextContent(), sessionName)); } }
Source:
private boolean isSystemUserImport(HttpServletRequest request){ boolean skipRoleCheck = false; String authHeader = request.getHeader("Authorization"); if (authHeader != null && !authHeader.isEmpty()) { StringTokenizer st = new StringTokenizer(authHeader); if (st.hasMoreTokens()) { String basic = st.nextToken(); if (basic.equalsIgnoreCase("Bearer")) { String accessToken = st.nextToken(); final Map<String, Object> decodedToken = tokenService.decodeAndVerify(accessToken); if (accessToken != null && !accessToken.isEmpty()) { LinkedHashMap<String, Object> userContextMap = (LinkedHashMap<String, Object>) decodedToken.get("<LINK_0>"); String userType = (String) userContextMap.get("userType"); if (userType.equals(UserType.SYSTEM.getName())){ String clientId = decodedToken.get("clientId").toString(); if (clientId.equals(ApplicationConstants.RANDOMIZE_CLIENT) || clientId.equalsIgnoreCase(ApplicationConstants.DICOM_CLIENT)){ skipRoleCheck = true; } } } } } } return skipRoleCheck; }

Target:
private boolean isSystemUserImport(HttpServletRequest request){ boolean skipRoleCheck = false; String authHeader = request.getHeader("Authorization"); if (authHeader != null && !authHeader.isEmpty()) { StringTokenizer st = new StringTokenizer(authHeader); if (st.hasMoreTokens()) { String basic = st.nextToken(); if (basic.equalsIgnoreCase("Bearer")) { String accessToken = st.nextToken(); final Map<String, Object> decodedToken = tokenService.decodeAndVerify(accessToken); if (accessToken != null && !accessToken.isEmpty()) { LinkedHashMap<String, Object> userContextMap = (LinkedHashMap<String, Object>) decodedToken.get("<LINK_0>"); String userType = (String) userContextMap.get("userType"); if (userType.equals(UserType.SYSTEM.getName())){ String clientId = decodedToken.get("clientId").toString(); if (StringUtils.equalsIgnoreCase(clientId, ApplicationConstants.RANDOMIZE_CLIENT) || StringUtils.equalsIgnoreCase(clientId, ApplicationConstants.DICOM_CLIENT)){ skipRoleCheck = true; } } } } } } return skipRoleCheck; }
Source:
public QueryRunner<Result<SearchResultValue>> createRunner(Segment adapter) { adapters.add(new SegmentForTesting(adapter.getIdentifier(), adapter.getDataInterval())); return new NoopQueryRunner<Result<SearchResultValue>>(); }

Target:
public QueryRunner<Result<SearchResultValue>> createRunner(Segment adapter) { if (!(adapter instanceof ReferenceCountingSegment)) { throw new IAE("Expected instance of ReferenceCountingSegment, got %s", adapter.getClass()); } adapters.add((SegmentForTesting) ((ReferenceCountingSegment) adapter).getBaseSegment()); return new BlockingQueryRunner<Result<SearchResultValue>>( new NoopQueryRunner<Result<SearchResultValue>>(), waitLatch, notifyLatch ); }
Source:
public boolean hasNext() { if (backgroundThread == null) { throw new IllegalStateException("iterator has been closed"); } if (currentBlock.hasNext()) return true; Throwable t = currentBlock.getException(); if (t != null) { if (t instanceof Error) { throw (Error) t; } else if (t instanceof RuntimeException) { throw (RuntimeException) t; } else { throw new RuntimeException(t); } } if (currentBlock.isEndOfStream()) return false; try { currentBlock = buffer.take(); } catch (InterruptedException e) { throw new RuntimeException("Error reading from background thread", e); } return hasNext(); }

Target:
public boolean hasNext() { if (backgroundThread == null) { throw new IllegalStateException("iterator has been closed"); } ensureHasNext(); return currentBlock.hasNext(); }
Source:
private void addUDFValue(FieldTypeClass fieldType, FieldContainer container, Row row) { Integer fieldId = Integer.valueOf(row.getString("udf_type_id")); String fieldName = m_udfMap.get(fieldId); Object value = null; FieldType field = m_project.getCustomFields().getFieldByAlias(fieldType, fieldName); if (field != null) { DataType fieldDataType = field.getDataType(); switch (fieldDataType) { case DATE: { value = row.getDate("udf_date"); break; } case CURRENCY: case NUMERIC: { value = row.getDouble("udf_number"); break; } case GUID: case INTEGER: { value = row.getInteger("udf_code_id"); break; } case BOOLEAN: { value = STATICTYPE_UDF_MAP.get(row.getString("udf_text")); break; } default: { value = row.getString("udf_text"); break; } } container.set(field, value); } }

Target:
private void addUDFValue(FieldTypeClass fieldType, FieldContainer container, Row row) { Integer fieldId = Integer.valueOf(row.getString("udf_type_id")); String fieldName = m_udfMap.get(fieldId); Object value = null; FieldType field = m_project.getCustomFields().getFieldByAlias(fieldType, fieldName); if (field != null) { DataType fieldDataType = field.getDataType(); switch (fieldDataType) { case DATE: { value = row.getDate("udf_date"); break; } case CURRENCY: case NUMERIC: { value = row.getDouble("udf_number"); break; } case GUID: case INTEGER: { value = row.getInteger("udf_code_id"); break; } case BOOLEAN: { String text = row.getString("udf_text"); if (text != null) { value = STATICTYPE_UDF_MAP.get(text); if (value == null) { value = Boolean.valueOf(row.getBoolean("udf_text")); } } else { value = Boolean.valueOf(row.getBoolean("udf_number")); } break; } default: { value = row.getString("udf_text"); break; } } container.set(field, value); } }
Source:
List<MavenArtifact> fetchMavenArtifacts(Dependency dependency) throws IOException { IOException lastException = null; long sleepingTimeBetweenRetriesInMillis = 1000; int triesLeft = NUMBER_OF_TRIES; while (triesLeft-- > 0) { try { return searcher.searchSha1(dependency.getSha1sum()); } catch (FileNotFoundException fnfe) { throw fnfe; } catch (IOException ioe) { LOGGER.debug("Could not connect to Central search (tries left: {}): {}", triesLeft, ioe.getMessage()); lastException = ioe; if (triesLeft > 0) { try { Thread.sleep(sleepingTimeBetweenRetriesInMillis); sleepingTimeBetweenRetriesInMillis *= 2; } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } } LOGGER.warn("Finally failed connecting to Central search." + " Giving up after tries. Last exception was: {}", NUMBER_OF_TRIES, lastException); throw lastException; }

Target:
protected List<MavenArtifact> fetchMavenArtifacts(Dependency dependency) throws IOException { IOException lastException = null; long sleepingTimeBetweenRetriesInMillis = 1000; int triesLeft = NUMBER_OF_TRIES; while (triesLeft-- > 0) { try { return searcher.searchSha1(dependency.getSha1sum()); } catch (FileNotFoundException fnfe) { throw fnfe; } catch (IOException ioe) { LOGGER.debug("Could not connect to Central search (tries left: {}): {}", triesLeft, ioe.getMessage()); lastException = ioe; if (triesLeft > 0) { try { Thread.sleep(sleepingTimeBetweenRetriesInMillis); sleepingTimeBetweenRetriesInMillis *= 2; } catch (InterruptedException e) { Thread.currentThread().interrupt(); } } } } final String message = "Finally failed connecting to Central search." + " Giving up after " + NUMBER_OF_TRIES + " tries."; throw new IOException(message, lastException); }
Source:
public ContainerCreated createContainer(CreateContainerParams createContainerParams) throws IOException { String containerName = getNormalizedContainerName(createContainerParams); String workspaceID = getCheWorkspaceId(createContainerParams); workspaceID = workspaceID.isEmpty() ? generateWorkspaceID() : workspaceID; String imageName = createContainerParams.getContainerConfig().getImage(); Set<String> containerExposedPorts = createContainerParams.getContainerConfig().getExposedPorts().keySet(); Set<String> imageExposedPorts = inspectImage(imageName).getConfig().getExposedPorts().keySet(); Set<String> exposedPorts = new HashSet<>(); exposedPorts.addAll(containerExposedPorts); exposedPorts.addAll(imageExposedPorts); boolean runContainerAsRoot = runContainerAsRoot(imageName); String[] envVariables = createContainerParams.getContainerConfig().getEnv(); String[] volumes = createContainerParams.getContainerConfig().getHostConfig().getBinds(); Map<String, String> additionalLabels = createContainerParams.getContainerConfig().getLabels(); createOpenShiftService(workspaceID, exposedPorts, additionalLabels); String deploymentName = createOpenShiftDeployment(workspaceID, imageName, containerName, exposedPorts, envVariables, volumes, runContainerAsRoot); String containerID = waitAndRetrieveContainerID(deploymentName); if (containerID == null) { throw new RuntimeException("Failed to get the ID of the container running in the OpenShift pod"); } return new ContainerCreated(containerID, null); }

Target:
public ContainerCreated createContainer(CreateContainerParams createContainerParams) throws IOException { String containerName = getNormalizedContainerName(createContainerParams); String workspaceID = getCheWorkspaceId(createContainerParams); workspaceID = workspaceID.isEmpty() ? generateWorkspaceID() : workspaceID; String imageName = createContainerParams.getContainerConfig().getImage(); Set<String> containerExposedPorts = createContainerParams.getContainerConfig().getExposedPorts().keySet(); Set<String> imageExposedPorts = inspectImage(imageName).getConfig().getExposedPorts().keySet(); Set<String> exposedPorts = getExposedPorts(containerExposedPorts, imageExposedPorts); boolean runContainerAsRoot = runContainerAsRoot(imageName); String[] envVariables = createContainerParams.getContainerConfig().getEnv(); String[] volumes = createContainerParams.getContainerConfig().getHostConfig().getBinds(); Map<String, String> additionalLabels = createContainerParams.getContainerConfig().getLabels(); createOpenShiftService(workspaceID, exposedPorts, additionalLabels); String deploymentName = createOpenShiftDeployment(workspaceID, imageName, containerName, exposedPorts, envVariables, volumes, runContainerAsRoot); String containerID = waitAndRetrieveContainerID(deploymentName); if (containerID == null) { throw new OpenShiftException("Failed to get the ID of the container running in the OpenShift pod"); } return new ContainerCreated(containerID, null); }
Source:
public String toString() { return "CHUNKED_FIXED_SIZE"; }

Target:
public String toString() { return "ChunkedNumberArrayFactory with delegate " + delegate; }
Source:
public boolean needsAuthentication() { return ((loginToken == null && apiKey == null) || super.needsAuthentication()); }

Target:
public boolean needsAuthentication() { return ((loginToken == null && Strings.isNullOrEmpty(apiKey)) || super.needsAuthentication()); }
Source:
public void onMessage(ScheduleCheckMessage message) { LOGGER.debug("ScheduleCheckMessage for " + message.getPipelineName() + " is received"); try { schedulingPerformanceLogger.pickedUpPipelineForScheduleCheck(message.trackingId(), message.getPipelineName()); producer.autoSchedulePipeline(message.getPipelineName(), new ServerHealthStateOperationResult(), message.trackingId()); LOGGER.debug("Finished checking for pipeline " + message.getPipelineName()); } catch (Exception e) { LOGGER.error(e.getMessage(), e); throw new RuntimeException(e); } finally { checkCompletedTopic.post(new ScheduleCheckCompletedMessage(message.getPipelineName(), message.trackingId())); schedulingPerformanceLogger.postingMessageAboutScheduleCheckCompletion(message.trackingId(), message.getPipelineName()); LOGGER.debug("Finished posting materialCheckCompletedMessage for pipeline " + message.getPipelineName()); } }

Target:
public void onMessage(ScheduleCheckMessage message) { LOGGER.debug("ScheduleCheckMessage for is received", message.getPipelineName()); try { schedulingPerformanceLogger.pickedUpPipelineForScheduleCheck(message.trackingId(), message.getPipelineName()); producer.autoSchedulePipeline(message.getPipelineName(), new ServerHealthStateOperationResult(), message.trackingId()); LOGGER.debug("Finished checking for pipeline {}", message.getPipelineName()); } catch (Exception e) { LOGGER.error(e.getMessage(), e); throw new RuntimeException(e); } finally { checkCompletedTopic.post(new ScheduleCheckCompletedMessage(message.getPipelineName(), message.trackingId())); schedulingPerformanceLogger.postingMessageAboutScheduleCheckCompletion(message.trackingId(), message.getPipelineName()); LOGGER.debug("Finished posting materialCheckCompletedMessage for pipeline {}", message.getPipelineName()); } }
Source:
private void assertMessageEventExecutionSet(InterruptingMessageEventExecutionSet executionSet, String eventName, boolean isInterrupting, String slaDueDate) { assertNotNull(executionSet); assertNotNull(executionSet.getMessageRef()); assertEquals(eventName, executionSet.getMessageRef().getValue()); if (getMarshallerType() == Marshaller.NEW) { assertNotNull(executionSet.getIsInterrupting()); assertEquals(isInterrupting, executionSet.getIsInterrupting().getValue()); assertNotNull(executionSet.getSlaDueDate()); assertEquals(slaDueDate, executionSet.getSlaDueDate().getValue()); } }

Target:
private void assertMessageEventExecutionSet(InterruptingMessageEventExecutionSet executionSet, String eventName, boolean isInterrupting, String slaDueDate) { assertNotNull(executionSet); assertNotNull(executionSet.getMessageRef()); assertEquals(eventName, executionSet.getMessageRef().getValue()); assertStartEventIsInterrupting(executionSet, isInterrupting); assertStartEventSlaDueDate(executionSet, slaDueDate); }
Source:
protected String generateId() { String id = Long.toString(new Date().getTime()%100000); return id; }

Target:
protected String generateId() { return "" + (new Date().getTime() % 100000); }
Source:
protected ServiceInstance mapApplicationInstanceToServiceInstance( Tuple2<ApplicationDetail, InstanceDetail> tuple) { ApplicationDetail applicationDetail = tuple.getT1(); InstanceDetail instanceDetail = tuple.getT2(); String applicationId = applicationDetail.getId(); String applicationIndex = instanceDetail.getIndex(); String instanceId = applicationId + "." + applicationIndex; String name = applicationDetail.getName(); String url = applicationDetail.getUrls().size() > 0 ? applicationDetail.getUrls().get(0) : null; boolean secure = (url + "").toLowerCase().startsWith("https"); HashMap<String, String> metadata = new HashMap<>(); metadata.put("applicationId", applicationId); metadata.put("instanceId", applicationIndex); return new DefaultServiceInstance(instanceId, name, url, 80, secure, metadata); }

Target:
protected ServiceInstance mapApplicationInstanceToServiceInstance( Tuple2<ApplicationDetail, InstanceDetail> tuple) { ApplicationDetail applicationDetail = tuple.getT1(); InstanceDetail instanceDetail = tuple.getT2(); String applicationId = applicationDetail.getId(); String applicationIndex = instanceDetail.getIndex(); String instanceId = applicationId + "." + applicationIndex; String name = applicationDetail.getName(); String url = applicationDetail.getUrls().size() > 0 ? applicationDetail.getUrls().get(0) : null; boolean secure = (url + "").toLowerCase().startsWith("https"); HashMap<String, String> metadata = new HashMap<>(); metadata.put("applicationId", applicationId); metadata.put("instanceId", applicationIndex); return new DefaultServiceInstance(instanceId, name, url, secure ? 443 : 80, secure, metadata); }
Source:
public void aCreateAndUpdateStandaloneTaskForUser() { String authenticatedUserId = securityManager.getAuthenticatedUserId(); Task standaloneTask = taskRuntime.create(TaskPayloadBuilder.create() .withName("test task update") .withDescription("test task update description") .withDueDate(new Date()) .withPriority(50) .withAssignee(authenticatedUserId) .build()); assertThat(RuntimeTestConfiguration.createdTasks).contains(standaloneTask.getId()); Page<Task> tasks = taskRuntime.tasks(Pageable.of(0, 50)); assertThat(tasks.getTotalItems()).isEqualTo(1); assertThat(tasks.getContent()).containsOnly(standaloneTask) .extracting("status", "assignee") .contains(tuple(Task.TaskStatus.ASSIGNED, authenticatedUserId)); final Task updatedTask = taskRuntime.update(TaskPayloadBuilder.update() .withTaskId(standaloneTask.getId()) .withName(standaloneTask.getName() + " [UPDATED]") .withPriority(60) .withDueDate(new Date()) .withDescription(standaloneTask.getDescription() + " [UPDATED]") .build()); tasks = taskRuntime.tasks(Pageable.of(0, 50)); assertThat(RuntimeTestConfiguration.updatedTasks).contains(updatedTask.getId()); assertThat(tasks.getTotalItems()).isEqualTo(1); assertThat(tasks.getContent()) .filteredOn("status", Task.TaskStatus.ASSIGNED) .containsOnly(updatedTask); }

Target:
public void aCreateAndUpdateStandaloneTaskForUser() { String authenticatedUserId = securityManager.getAuthenticatedUserId(); Task standaloneTask = taskRuntime.create(TaskPayloadBuilder.create() .withName("test task update") .withDescription("test task update description") .withDueDate(new Date()) .withPriority(50) .withAssignee(authenticatedUserId) .build()); assertThat(RuntimeTestConfiguration.createdTasks).contains(standaloneTask.getId()); Page<Task> tasks = taskRuntime.tasks(Pageable.of(0, 50)); assertThat(tasks.getContent()).containsOnly(standaloneTask) .extracting("status", "assignee") .contains(tuple(Task.TaskStatus.ASSIGNED, authenticatedUserId)); final Task updatedTask = taskRuntime.update(TaskPayloadBuilder.update() .withTaskId(standaloneTask.getId()) .withName(standaloneTask.getName() + " [UPDATED]") .withPriority(60) .withDueDate(new Date()) .withDescription(standaloneTask.getDescription() + " [UPDATED]") .build()); tasks = taskRuntime.tasks(Pageable.of(0, 50)); assertThat(RuntimeTestConfiguration.updatedTasks).contains(updatedTask.getId()); assertThat(tasks.getTotalItems()).isEqualTo(1); assertThat(tasks.getContent()) .filteredOn("status", Task.TaskStatus.ASSIGNED) .containsOnly(updatedTask); }
Source:
public String getBigImage() { return nullIfEmpty(image.getUrl()); }

Target:
public String getBigImage() { return trimToNull(image.getUrl()); }
Source:
public void setFailure(Throwable failure) { if (failure == null) { failure = new Exception(); } synchronized (resultLock) { this.failure = failure; if (! setDone()) { return; } } listenerHelper.callListeners(); }

Target:
public void setFailure(Throwable failure) { synchronized (resultLock) { if (! setDone()) { return; } if (failure == null) { failure = new Exception(); } this.failure = failure; } listenerHelper.callListeners(); }
Source:
public void should_create_list_codec_for_cql_type_and_empty_java_value() { ListType cqlType = DataTypes.listOf(DataTypes.listOf(DataTypes.INT)); List<List<Integer>> value = Collections.emptyList(); TestCachingCodecRegistry registry = new TestCachingCodecRegistry(mockCache); InOrder inOrder = inOrder(mockCache); TypeCodec<List<List<Integer>>> codec = registry.codecFor(cqlType, value); assertThat(codec).isNotNull(); assertThat(codec.accepts(value)).isTrue(); codec.encode(value, ProtocolVersion.DEFAULT); inOrder.verify(mockCache).lookup(null, GenericType.listOf(GenericType.BOOLEAN), false); }

Target:
public void should_create_list_codec_for_cql_type_and_empty_java_value() { ListType cqlType = DataTypes.listOf(DataTypes.listOf(DataTypes.INT)); GenericType<List<List<Integer>>> javaType = GenericType.listOf(GenericType.listOf(GenericType.INTEGER)); List<List<Integer>> value = Collections.singletonList(Collections.emptyList()); TestCachingCodecRegistry registry = new TestCachingCodecRegistry(mockCache); InOrder inOrder = inOrder(mockCache); TypeCodec<List<List<Integer>>> codec = registry.codecFor(cqlType, value); assertThat(codec).isNotNull(); assertThat(codec.accepts(cqlType)).isTrue(); assertThat(codec.accepts(javaType)).isTrue(); assertThat(codec.accepts(value)).isTrue(); codec.encode(value, ProtocolVersion.DEFAULT); inOrder.verify(mockCache).lookup(cqlType, javaType, true); }
Source:
protected void log(final Level level, final String msg, final Throwable t) { this.logger.log(level, this.simpleName + " " + msg, t); }

Target:
protected void log(final Level level, final String msg, final Throwable t) { this.LOGGER.log(level, this.simpleName + " " + msg, t); }
Source:
private AdHocPlannedStatement planTask(SqlTask task) throws PlanningErrorException, PlannerFallbackException { final PlannerTool ptool = m_catalogContext.m_ptool; assert(ptool != null); try { return ptool.planSqlCalcite(task); } catch (PlannerFallbackException ex) { throw ex; } catch (ValidationException vex) { throw new PlannerFallbackException(); } catch (Exception ex) { Throwable cause = ex.getCause(); while(cause != null && cause.getCause() != null) { cause = cause.getCause(); } throw new PlanningErrorException(ex.getMessage(), cause); } catch (StackOverflowError error) { throw new PlanningErrorException("Encountered stack overflow error. " + "Try reducing the number of predicate expressions in the query."); } catch (AssertionError ae) { String msg = "An unexpected internal error occurred when planning a statement issued via @AdHoc. " + "Please contact VoltDB at support@voltdb.com with your log files."; StringWriter stringWriter = new StringWriter(); PrintWriter writer = new PrintWriter(stringWriter); ae.printStackTrace(writer); String stackTrace = stringWriter.toString(); m_batch.getContext().getLogger().error(msg + "\n" + stackTrace); throw new PlanningErrorException(msg); } }

Target:
private AdHocPlannedStatement planTask(SqlTask task) throws PlanningErrorException, PlannerFallbackException { final PlannerTool ptool = m_catalogContext.m_ptool; assert(ptool != null); try { return ptool.planSqlCalcite(task); } catch (PlannerFallbackException ex) { throw ex; } catch (Exception ex) { if (ex.getMessage().contains("class org.apache.calcite.sql.SqlDynamicParam: ?")) { throw new PlannerFallbackException(); } Throwable cause = ex.getCause(); while(cause != null && cause.getCause() != null) { cause = cause.getCause(); } if (cause.getMessage().contains("class org.apache.calcite.sql.SqlDynamicParam: ?")) { throw new PlannerFallbackException(); } throw new PlanningErrorException(ex.getMessage(), cause); } catch (StackOverflowError error) { throw new PlanningErrorException("Encountered stack overflow error. " + "Try reducing the number of predicate expressions in the query."); } catch (AssertionError ae) { String msg = "An unexpected internal error occurred when planning a statement issued via @AdHoc. " + "Please contact VoltDB at support@voltdb.com with your log files."; StringWriter stringWriter = new StringWriter(); PrintWriter writer = new PrintWriter(stringWriter); ae.printStackTrace(writer); String stackTrace = stringWriter.toString(); m_batch.getContext().getLogger().error(msg + "\n" + stackTrace); throw new PlanningErrorException(msg); } }
Source:
public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) { return Futures.transform(super.getAsync(tableRef, cells), ret -> { markCellsRead(tableRef, cells, ret); return ret; }, MoreExecutors.directExecutor()); }

Target:
public ListenableFuture<Map<Cell, byte[]>> getAsync(TableReference tableRef, Set<Cell> cells) { return getWithLoader(tableRef, cells, super::getAsync); }
Source:
public String post(@RequestParam(value = "causeOfDeath",required = false) String causeOfDeath, @RequestParam(value = "dead",required = false) Boolean dead, @RequestParam(value = "deathDate",required = false) Date deathDate, @RequestParam("patientId") String patientId) { PersonService personService = Context.getPersonService(); try { PatientService patientService = Context.getPatientService(); Patient patient = patientService.getPatientByUuid(patientId); Person person = personService.getPerson(patient.getPatientId()); Date date=new Date(); if (dead!=null && !causeOfDeath.equals("null") && deathDate != null && !deathDate.before(person.getBirthdate()) && !deathDate.after(date)) { person.setDead(dead); person.setCauseOfDeath(getConceptByUUId(causeOfDeath)); person.setDeathDate(deathDate); } else { person.setDeathDate(null); person.setDead(false); person.setCauseOfDeath(null); } personService.savePerson(person); return "redirect:/coreapps/clinicianfacing/patient.page?patientId=" + patient.getUuid() + ""; } catch (Exception e) { System.out.println(e); return null; } }

Target:
public String post(@RequestParam(value = "causeOfDeath", required = false) String causeOfDeath, @RequestParam(value = "dead", required = false) Boolean dead, @RequestParam(value = "deathDate", required = false) Date deathDate, @RequestParam("patientId") String patientId) { PatientService patientService = Context.getPatientService(); Patient patient = patientService.getPatientByUuid(patientId); try { Date date = new Date(); if (dead != null && !causeOfDeath.equals("") && deathDate != null && !deathDate.before(patient.getBirthdate()) && !deathDate.after(date)) { patient.setDead(dead); patient.setCauseOfDeath(getConceptByUUId(causeOfDeath)); patient.setDeathDate(deathDate); } else { patient.setDeathDate(null); patient.setDead(false); patient.setCauseOfDeath(null); } patientService.savePatient(patient); return "redirect:/coreapps/clinicianfacing/patient.page?patientId=" + patient.getUuid() + ""; } catch (Exception e) { log.error(e.getMessage()); return "redirect:/aijar/markPatientDead.page?patientId={{" + patient.getUuid() + "}}"; } }
Source:
void executeSingleUpload(final S3BlobStore blobStore, final String blobName, final InputStream input, final long blobSize) throws IOException { if (blobSize > MAX_FILE_SIZE.getBytes()) { throw new IllegalArgumentException("Upload request size [" + blobSize + "] can't be larger than " + MAX_FILE_SIZE); } if (blobSize > blobStore.bufferSizeInBytes()) { throw new IllegalArgumentException("Upload request size [" + blobSize + "] can't be larger than buffer size"); } final ObjectMetadata md = new ObjectMetadata(); md.setContentLength(blobSize); if (blobStore.serverSideEncryption()) { md.setSSEAlgorithm(ObjectMetadata.AES_256_SERVER_SIDE_ENCRYPTION); } final PutObjectRequest putRequest = new PutObjectRequest(blobStore.bucket(), blobName, input, md); putRequest.setStorageClass(blobStore.getStorageClass()); putRequest.setCannedAcl(blobStore.getCannedACL()); try (AmazonS3Reference clientReference = blobStore.clientReference()) { clientReference.client().putObject(putRequest); } catch (final AmazonClientException e) { if (!this.blobStore.getRepositoryMetaData().settings().hasValue(S3RepositorySettings.ACCESS_KEY_SETTING.getKey()) && !this.blobStore.getRepositoryMetaData().settings().hasValue(S3RepositorySettings.SECRET_KEY_SETTING.getKey()) ) { throw new BlobStoreException("Cannot find required credentials to create a repository of type s3. " + "Credentials must be provided either as repository options access_key and secret_key or AWS IAM roles."); } else { throw new IOException("Unable to upload object [" + blobName + "] using a single upload", e); } } }

Target:
void executeSingleUpload(final S3BlobStore blobStore, final String blobName, final InputStream input, final long blobSize) throws IOException { if (blobSize > MAX_FILE_SIZE.getBytes()) { throw new IllegalArgumentException("Upload request size [" + blobSize + "] can't be larger than " + MAX_FILE_SIZE); } if (blobSize > blobStore.bufferSizeInBytes()) { throw new IllegalArgumentException("Upload request size [" + blobSize + "] can't be larger than buffer size"); } final ObjectMetadata md = new ObjectMetadata(); md.setContentLength(blobSize); if (blobStore.serverSideEncryption()) { md.setSSEAlgorithm(ObjectMetadata.AES_256_SERVER_SIDE_ENCRYPTION); } final PutObjectRequest putRequest = new PutObjectRequest(blobStore.bucket(), blobName, input, md); putRequest.setStorageClass(blobStore.getStorageClass()); putRequest.setCannedAcl(blobStore.getCannedACL()); try (AmazonS3Reference clientReference = blobStore.clientReference()) { clientReference.client().putObject(putRequest); } catch (final AmazonClientException e) { throw new IOException("Unable to upload object [" + blobName + "] using a single upload", e); } }
Source:
public boolean isConnected(String context) { return (getChannel(context) != null); }

Target:
public boolean isConnected(String context) { ManagedChannel channel = channels.get(context); return channel != null && !channel.isShutdown(); }
Source:
public GetCrossColoParallelOperationPolicy(String datacenterName, PartitionId partitionId, int parallelism, OperationContext oc) throws CoordinatorException { super(datacenterName, partitionId, true); super.successTarget = 1; super.requestParallelism = parallelism; this.localDataCenterName = datacenterName; this.coordinatorMetrics = oc.getCoordinatorMetrics(); this.remainingReplicaCount = replicaIdCount; replicaListPerDatacenter = new HashMap<String, List<ReplicaId>>(); replicasInFlightPerDatacenter = new HashMap<String, List<ReplicaId>>(); Map<String, Integer> availableReplicaCountPerDatacenter = new HashMap<String, Integer>(); List<ReplicaId> replicaIds = partitionId.getReplicaIds(); for (ReplicaId replicaId : replicaIds) { addReplicaToDataCenter(replicaId, availableReplicaCountPerDatacenter); } remoteDataCenterCount += replicaListPerDatacenter.size() - 1; shuffleAndPopulate(availableReplicaCountPerDatacenter); }

Target:
public GetCrossColoParallelOperationPolicy(String datacenterName, PartitionId partitionId, int parallelism, OperationContext oc) throws CoordinatorException { super(datacenterName, partitionId, true); super.successTarget = 1; super.requestParallelism = parallelism; this.localDataCenterName = datacenterName; this.coordinatorMetrics = oc.getCoordinatorMetrics(); this.remainingReplicaCount = replicaIdCount; replicaListPerDatacenter = new HashMap<String, List<ReplicaId>>(); replicasInFlightPerDatacenter = new HashMap<String, List<ReplicaId>>(); Map<String, Integer> availableReplicasCountPerDatacenter = new HashMap<String, Integer>(); populateReplicaListPerDatacenter(partitionId.getReplicaIds(), availableReplicasCountPerDatacenter); remoteDataCenterCount = replicaListPerDatacenter.size() - 1; shuffleAndPopulate(availableReplicasCountPerDatacenter); }
Source:
public RemoveUnregisteredVmCommand(T parameters, CommandContext cmdContext) { super(parameters, cmdContext); setStorageDomainId(parameters.getStorageDomainId()); }

Target:
public RemoveUnregisteredVmCommand(T parameters, CommandContext cmdContext) { super(parameters, cmdContext); }
Source:
public String getOpenArgString() { return openArg; }

Target:
public String getOpenArgString() { return this.openArg; }
Source:
public void reportUsedIUs(Collection<IInstallableUnit> usedUnits) { if (localMetadataRepository.getConsider() == Consider.DEFAULT) { warnAboutLocalIus(usedUnits); } }

Target:
public void reportUsedIUs(Collection<IInstallableUnit> usedUnits) { final Set<IInstallableUnit> localIUs = localMetadataRepository.query(QueryUtil.ALL_UNITS, null).toSet(); localIUs.retainAll(usedUnits); if (!localIUs.isEmpty()) { Boolean consider = localMetadataRepository.getConsider(); log(consider, "The following locally built units have been used to resolve project dependencies:"); for (IInstallableUnit localIu : localIUs) { log(consider, " " + localIu.getId() + "/" + localIu.getVersion()); } } }