auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testLifeCycleAPITwoLevels() { DocumentModel folderDoc1 = session.createDocumentModel("/", "testFolder1", "Folder"); folderDoc1 = session.createDocument(folderDoc1); DocumentModel folderDoc2 = session.createDocumentModel(folderDoc1.getPathAsString(), "testFolder2", "Folder"); folderDoc2 = session.createDocument(folderDoc2); DocumentModel testFile1 = session.createDocumentModel(folderDoc2.getPathAsString(), "testFile1", "File"); testFile1 = session.createDocument(testFile1); DocumentModel testFile2 = session.createDocumentModel(folderDoc2.getPathAsString(), "testFile2", "File"); testFile2 = session.createDocument(testFile2); DocumentModel testFile3 = session.createDocumentModel(folderDoc2.getPathAsString(), "testFile3", "File"); testFile3 = session.createDocument(testFile3); session.saveDocument(folderDoc1); session.saveDocument(folderDoc2); session.saveDocument(testFile1); session.saveDocument(testFile2); session.saveDocument(testFile3); Collection<String> allowedStateTransitions = session.getAllowedStateTransitions(folderDoc1.getRef()); assertTrue(allowedStateTransitions.contains("approve")); assertTrue(session.followTransition(folderDoc1.getRef(), "approve")); session.save(); nextTransaction(); assertEquals("approved", session.getCurrentLifeCycleState(folderDoc2.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile1.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile2.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile3.getRef())); }

Target:
public void testLifeCycleAPITwoLevels() { DocumentModel folderDoc1 = session.createDocumentModel("/", "testFolder1", "Folder"); folderDoc1 = session.createDocument(folderDoc1); DocumentModel folderDoc2 = session.createDocumentModel("/testFolder1", "testFolder2", "Folder"); folderDoc2 = session.createDocument(folderDoc2); DocumentModel testFile1 = session.createDocumentModel("/testFolder1/testFolder2", "testFile1", "File"); testFile1 = session.createDocument(testFile1); DocumentModel testFile2 = session.createDocumentModel("/testFolder1/testFolder2", "testFile2", "File"); testFile2 = session.createDocument(testFile2); DocumentModel testFile3 = session.createDocumentModel("/testFolder1/testFolder2", "testFile3", "File"); testFile3 = session.createDocument(testFile3); session.saveDocument(folderDoc1); session.saveDocument(folderDoc2); session.saveDocument(testFile1); session.saveDocument(testFile2); session.saveDocument(testFile3); Collection<String> allowedStateTransitions = session.getAllowedStateTransitions(folderDoc1.getRef()); assertTrue(allowedStateTransitions.contains("approve")); assertTrue(session.followTransition(folderDoc1.getRef(), "approve")); session.save(); nextTransaction(); assertEquals("approved", session.getCurrentLifeCycleState(folderDoc2.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile1.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile2.getRef())); assertEquals("approved", session.getCurrentLifeCycleState(testFile3.getRef())); }
Source:
public boolean equals(Object obj) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( getClass() != obj.getClass() ) { return false; } IterableMappingMethod other = (IterableMappingMethod) obj; if ( !getResultType().equals( other.getResultType() ) ) { return false; } if ( getSourceParameters().size() != other.getSourceParameters().size() ) { return false; } for ( int i = 0; i < getSourceParameters().size(); i++ ) { List<Type> thisTypeParameters = getSourceParameters().get( i ).getType().getTypeParameters(); List<Type> otherTypeParameters = other.getSourceParameters().get( i ).getType().getTypeParameters(); if ( thisTypeParameters.isEmpty() && otherTypeParameters.isEmpty() ) { continue; } if ( !thisTypeParameters.get( 0 ).equals( otherTypeParameters.get( 0 ) ) ) { return false; } } return true; }

Target:
public boolean equals(Object obj) { if ( this == obj ) { return true; } if ( obj == null ) { return false; } if ( getClass() != obj.getClass() ) { return false; } IterableMappingMethod other = (IterableMappingMethod) obj; if ( !getResultType().equals( other.getResultType() ) ) { return false; } if ( getSourceParameters().size() != other.getSourceParameters().size() ) { return false; } for ( int i = 0; i < getSourceParameters().size(); i++ ) { List<Type> thisTypeParameters = getSourceParameters().get( i ).getType().getTypeParameters(); List<Type> otherTypeParameters = other.getSourceParameters().get( i ).getType().getTypeParameters(); if ( !thisTypeParameters.equals( otherTypeParameters ) ) { return false; } } return true; }
Source:
public static void assertLogMessageEquals(String expected, String actual) { String expectedGoogleId = expected.split("\\|\\|\\|")[6]; assertLogMessageEquals(expected, actual, expectedGoogleId); }

Target:
public static void assertLogMessageEquals(String expected, String actual) { String expectedGoogleId = expected.split("\\|\\|\\|")[ActivityLogEntry.POSITION_OF_GOOGLEID]; assertLogMessageEquals(expected, actual, expectedGoogleId); }
Source:
private byte[] getBaseQualitiesImpl() { try { Fragment fragment; if (isAligned) { fragment = getCurrentAlignment(); } else { fragment = getCurrentUnalignedRead(); } boolean reverse = false; byte[] quals = fragment.getFragmentQualities().getBytes(); for (int i = 0; i < quals.length / 2; i++) { quals[i] -= 33; quals[quals.length - i - 1] -= 33; if (reverse) { byte temp = quals[i]; quals[i] = quals[quals.length - i - 1]; quals[quals.length - i - 1] = temp; } } if (quals.length % 2 != 0) { quals[quals.length / 2] -= 33; } return quals; } catch (ErrorMsg e) { throw new RuntimeException(e); } }

Target:
private byte[] getBaseQualitiesImpl() { try { Fragment fragment; if (isAligned) { fragment = getCurrentAlignment(); } else { fragment = getCurrentUnalignedRead(); } return SAMUtils.fastqToPhred(fragment.getFragmentQualities()); } catch (ErrorMsg e) { throw new RuntimeException(e); } }
Source:
public void testChangeEventsOnlyOnSave() throws Exception { final ConfigChangedEvent[] events = new ConfigChangedEvent[1]; db.getListenerList().addConfigChangedListener( new ConfigChangedListener() { public void onConfigChanged(ConfigChangedEvent event) { events[0] = event; } }); FileBasedConfig config = db.getConfig(); assertNull(events[0]); config.setString("test", "section", "event", "value"); assertNull(events[0]); config.save(); assertNotNull(events[0]); assertEquals(events[0].getRepository(), db); events[0] = null; assertNull(events[0]); config.unset("test", "section", "event"); assertNull(events[0]); config.save(); assertNotNull(events[0]); assertEquals(events[0].getRepository(), db); }

Target:
public void testChangeEventsOnlyOnSave() throws Exception { final ConfigChangedEvent[] events = new ConfigChangedEvent[1]; db.getListenerList().addConfigChangedListener( new ConfigChangedListener() { public void onConfigChanged(ConfigChangedEvent event) { events[0] = event; } }); FileBasedConfig config = db.getConfig(); assertNull(events[0]); config.setString("test", "section", "event", "value"); assertNull(events[0]); config.save(); assertNotNull(events[0]); assertEquals(events[0].getRepository(), db); events[0] = null; config.unset("test", "section", "event"); assertNull(events[0]); config.save(); assertNotNull(events[0]); assertEquals(events[0].getRepository(), db); }
Source:
public Object visit(ASTMethodDeclaration node, Object data) { if (currentLookup.peek() == null) { return super.visit(node, data); } for (ASTAnnotation annot : node.getDeclaredAnnotations()) { if (Override.class.equals(annot.getType())) { return super.visit(node, data); } } try { boolean overridden = currentLookup.peek().isOverridden(node.getName(), node.getFormalParameters()); if (overridden) { addViolation(data, node, new Object[]{node.getQualifiedName().getOperation()}); } } catch (NoSuchMethodException e) { } return super.visit(node, data); }

Target:
public Object visit(ASTMethodDeclaration node, Object data) { if (currentLookup.peek() == null) { return super.visit(node, data); } for (ASTAnnotation annot : node.getDeclaredAnnotations()) { if (Override.class.equals(annot.getType())) { return super.visit(node, data); } } try { boolean overridden = currentLookup.peek().isOverridden(node.getName(), node.getFormalParameters()); if (overridden) { addViolation(data, node, new Object[]{node.getQualifiedName().getOperation()}); } } catch (NoSuchMethodException e) { LOG.warning("MissingOverride encountered unexpected method " + node.getMethodName()); } return super.visit(node, data); }
Source:
public void check(OperationResult result) { HealthStateType healthStateType = HealthStateType.general(HealthStateScope.forPipeline(pipelineName)); Pipeline pipeline = pipelineService.fullPipelineByCounter(pipelineName, pipelineCounter); if (pipeline == null) { result.success(healthStateType); return; } if (!pipeline.hasStageBeenRun(stageName)) { if (goConfigService.hasPreviousStage(pipelineName, stageName)) { CaseInsensitiveString previousStageName = goConfigService.previousStage(pipelineName, stageName).name(); StageConfig currentStageConfig = goConfigService.nextStage(pipelineName, previousStageName.toString()); Approval approval = currentStageConfig.getApproval(); if (approval.isAllowOnlyOnSuccess()) { Stage previousStage = pipeline.getStages().byName(previousStageName.toString()); StageResult previousStageResult = previousStage.getResult(); if (previousStageResult != StageResult.Passed) { String errorMessage = String.format("Cannot schedule %s as the previous stage %s has %s!", stageName, previousStageName.toString(), previousStageResult.name()); healthStateType = HealthStateType.forbidden(); result.notAcceptable(errorMessage, healthStateType); return; } } } } result.success(healthStateType); }

Target:
public void check(OperationResult result) { HealthStateType healthStateType = HealthStateType.general(HealthStateScope.forPipeline(pipelineName)); Pipeline pipeline = pipelineService.fullPipelineByCounter(pipelineName, pipelineCounter); ScheduleStageResult scheduleStageResult = schedulingCheckerService.shouldAllowSchedulingStage(pipeline, stageName); if (scheduleStageResult == ScheduleStageResult.PreviousStageNotPassed) { String errorMessage = String.format("Cannot schedule %s as the previous stage %s has %s!", stageName, scheduleStageResult.getPreviousStageName(), scheduleStageResult.getPreviousStageResult()); healthStateType = HealthStateType.forbidden(); result.notAcceptable(errorMessage, healthStateType); return; } result.success(healthStateType); }
Source:
public void add(String... values) { for (String value : values) { arguments.add(value); } }

Target:
public void add(String... values) { arguments.addAll(Arrays.asList(values)); }
Source:
void deleteSecurityGroup(String region, String group) { checkNotNull(emptyToNull(region), "region must be defined"); checkNotNull(emptyToNull(group), "group must be defined"); String groupName = namingConvention.create().sharedNameForGroup(group); Multimap<String, String> securityGroupFilterByName = ImmutableMultimap.of("group-name", groupName); Set<SecurityGroup> securityGroupsToDelete = client.getSecurityGroupApi().get() .describeSecurityGroupsInRegionWithFilter(region, securityGroupFilterByName); if (securityGroupsToDelete.size() > 1) { logger.warn("When trying to delete security group found more than one matching the name. Will delete all - {}.", group, securityGroupsToDelete); } for (SecurityGroup securityGroup : securityGroupsToDelete) { logger.debug(">> deleting securityGroup(%s)", groupName); client.getSecurityGroupApi().get().deleteSecurityGroupInRegionById(region, securityGroup.getId()); securityGroupMap.invalidate(new RegionNameAndIngressRules(region, groupName, null, false, null)); logger.debug("<< deleted securityGroup(%s)", groupName); } }

Target:
void deleteSecurityGroup(String region, String group) { checkNotNull(emptyToNull(region), "region must be defined"); checkNotNull(emptyToNull(group), "group must be defined"); String groupName = namingConvention.create().sharedNameForGroup(group); Multimap<String, String> securityGroupFilterByName = ImmutableMultimap.of("group-name", groupName); Set<SecurityGroup> securityGroupsToDelete = client.getSecurityGroupApi().get() .describeSecurityGroupsInRegionWithFilter(region, securityGroupFilterByName); if (securityGroupsToDelete.size() > 1) { logger.warn("When trying to delete security group %s found more than one matching the name. Will delete all - %s.", group, securityGroupsToDelete); } for (SecurityGroup securityGroup : securityGroupsToDelete) { logger.debug(">> deleting securityGroup(%s)", groupName); client.getSecurityGroupApi().get().deleteSecurityGroupInRegionById(region, securityGroup.getId()); securityGroupMap.invalidate(new RegionNameAndIngressRules(region, groupName, null, false, null)); logger.debug("<< deleted securityGroup(%s)", groupName); } }
Source:
protected <T extends Rollup> Table<Locator, Long, T> getRollupsForLocators(final List<Locator> locators, String columnFamily, Range range) { Table<Locator, Long, T> locatorTimestampRollup = HashBasedTable.create(); Map<Locator, List<ResultSetFuture>> resultSetFuturesMap = selectForLocatorListAndRange(columnFamily, locators, range); for (Map.Entry<Locator, List<ResultSetFuture>> entry : resultSetFuturesMap.entrySet() ) { Locator locator = entry.getKey(); try { List<ResultSetFuture> futures = entry.getValue(); Table<Locator, Long, T> result = toLocatorTimestampRollup(futures, locator, CassandraModel.getGranularity(columnFamily)); locatorTimestampRollup.putAll(result); } catch (Exception ex) { Instrumentation.markReadError(); LOG.error(String.format("error querying rollup from column family %s for locator %s, range %s", columnFamily, locator, range), ex); } } return locatorTimestampRollup; }

Target:
protected <T extends Rollup> Table<Locator, Long, T> getRollupsForLocators(final List<Locator> locators, String columnFamily, Range range) { Table<Locator, Long, T> locatorTimestampRollup = HashBasedTable.create(); Map<Locator, List<ResultSetFuture>> resultSetFuturesMap = selectForLocatorListAndRange(columnFamily, locators, range); for (Map.Entry<Locator, List<ResultSetFuture>> entry : resultSetFuturesMap.entrySet() ) { Locator locator = entry.getKey(); List<ResultSetFuture> futures = entry.getValue(); Table<Locator, Long, T> result = toLocatorTimestampRollup(futures, locator, CassandraModel.getGranularity(columnFamily)); locatorTimestampRollup.putAll(result); } return locatorTimestampRollup; }
Source:
private CommandBase<?> retrieveCommand(CommandEntity cmdEntity, CommandContext cmdContext) { CommandBase<?> command = null; if (cmdEntity != null) { if (cmdContext == null) { cmdContext = new CommandContext(new EngineContext()).withExecutionContext(new ExecutionContext()); } command = CommandsFactory.createCommand(cmdEntity.getCommandType(), cmdEntity.getCommandParameters(), cmdContext); if (command == null) { log.info("Unable to reconstruct command '{}' using parameters '{}'.", cmdEntity.getCommandType(), cmdEntity.getCommandParameters()); } else { command.setCommandStatus(cmdEntity.getCommandStatus(), false); command.setCommandData(cmdEntity.getData()); command.setReturnValue(cmdEntity.getReturnValue()); if (!Guid.isNullOrEmpty(cmdEntity.getParentCommandId()) && !cmdEntity.getParentCommandId().equals(cmdEntity.getId()) && command.getParameters().getParentParameters() == null) { CommandBase<?> parentCommand = retrieveCommand(cmdEntity.getParentCommandId()); if (parentCommand != null) { command.getParameters().setParentParameters(parentCommand.getParameters()); } } } } return command; }

Target:
private CommandBase<?> retrieveCommand(CommandEntity cmdEntity, CommandContext cmdContext) { CommandBase<?> command = null; if (cmdEntity != null) { if (cmdContext == null) { cmdContext = new CommandContext(new EngineContext()).withExecutionContext(new ExecutionContext()); } command = CommandsFactory.createCommand(cmdEntity.getCommandType(), cmdEntity.getCommandParameters(), cmdContext); if (command != null) { command.setCommandStatus(cmdEntity.getCommandStatus(), false); command.setCommandData(cmdEntity.getData()); command.setReturnValue(cmdEntity.getReturnValue()); if (!Guid.isNullOrEmpty(cmdEntity.getParentCommandId()) && !cmdEntity.getParentCommandId().equals(cmdEntity.getId()) && command.getParameters().getParentParameters() == null) { CommandBase<?> parentCommand = retrieveCommand(cmdEntity.getParentCommandId()); if (parentCommand != null) { command.getParameters().setParentParameters(parentCommand.getParameters()); } } } } return command; }
Source:
public final void window(MessageCollector collector, TaskCoordinator coordinator) { context.getSystemStreamPartitions().forEach(ssp -> { OperatorImpl impl = this.operatorGraph.get(ssp.getSystemStream()); impl.onTimer(collector, coordinator); }); }

Target:
public final void window(MessageCollector collector, TaskCoordinator coordinator) { systemStreamPartitions.forEach(ssp -> { this.operatorGraph.get(ssp.getSystemStream()) .onTick(collector, coordinator); }); }
Source:
public SetAlarmNotificationsResponse setAlarmNotifications( @OrganisationIdentification final String organisationIdentification, @RequestPayload final SetAlarmNotificationsRequest request) throws OsgpException { LOGGER.info("Incoming SetAlarmNotificationsRequest for meter: {}.", request.getDeviceIdentification()); LOGGER.info("=============> Platform, setAlarmNotifications, call received"); final SetAlarmNotificationsResponse response = new SetAlarmNotificationsResponse(); try { final String deviceIdentification = request.getDeviceIdentification(); final SetAlarmNotificationsRequestData requestData = request.getSetAlarmNotificationsRequestData(); final AlarmNotifications alarmNotifications = this.configurationMapper.map( requestData.getAlarmNotifications(), AlarmNotifications.class); final String correlationUid = this.configurationService.setAlarmNotifications(organisationIdentification, deviceIdentification, alarmNotifications); final AsyncResponse asyncResponse = new AsyncResponse(); asyncResponse.setCorrelationUid(correlationUid); asyncResponse.setDeviceIdentification(request.getDeviceIdentification()); response.setAsyncResponse(asyncResponse); } catch (final Exception e) { LOGGER.error("Exception: while setting alarm notifications on device: for organisation {}.", new Object[] { e.getMessage(), request.getDeviceIdentification(), organisationIdentification }, e); this.handleException(e); } return response; }

Target:
public SetAlarmNotificationsResponse setAlarmNotifications( @OrganisationIdentification final String organisationIdentification, @RequestPayload final SetAlarmNotificationsRequest request) throws OsgpException { LOGGER.info("Incoming SetAlarmNotificationsRequest for meter: {}.", request.getDeviceIdentification()); final SetAlarmNotificationsResponse response = new SetAlarmNotificationsResponse(); try { final String deviceIdentification = request.getDeviceIdentification(); final SetAlarmNotificationsRequestData requestData = request.getSetAlarmNotificationsRequestData(); final AlarmNotifications alarmNotifications = this.configurationMapper.map( requestData.getAlarmNotifications(), AlarmNotifications.class); final String correlationUid = this.configurationService.setAlarmNotifications(organisationIdentification, deviceIdentification, alarmNotifications); final AsyncResponse asyncResponse = new AsyncResponse(); asyncResponse.setCorrelationUid(correlationUid); asyncResponse.setDeviceIdentification(request.getDeviceIdentification()); response.setAsyncResponse(asyncResponse); } catch (final Exception e) { LOGGER.error("Exception: while setting alarm notifications on device: for organisation {}.", new Object[] { e.getMessage(), request.getDeviceIdentification(), organisationIdentification }, e); this.handleException(e); } return response; }
Source:
public String getKeyFilter() { return keyFilter == null ? "" : keyFilter; }

Target:
public String getKeyFilter() { return keyFilter; }
Source:
public String getFieldName() { return isAnnotatedFieldName ? annotatedFieldName : getProperty().getName(); }

Target:
public String getFieldName() { return annotatedFieldName == null ? getProperty().getName() : annotatedFieldName; }
Source:
public String makeSizeString(long size) { long t = size; if (t==0) return "0"+suffixBytes; if (t<0) return "-"+makeSizeString(-t); long b = t%bytesPerMetricUnit; t = t/bytesPerMetricUnit; long kb = t%bytesPerMetricUnit; t = t/bytesPerMetricUnit; long mb = t%bytesPerMetricUnit; t = t/bytesPerMetricUnit; long gb = t; if (gb>2) return Strings.makeRealString(gb + (1.0*mb/bytesPerMetricUnit), maxLen, precision, 0) + suffixGiga; if (mb>2) return Strings.makeRealString((gb*bytesPerMetricUnit) + mb + (1.0*kb/bytesPerMetricUnit), maxLen, precision, 0) + suffixMega; if (kb>2) return Strings.makeRealString((mb*bytesPerMetricUnit) + kb + (1.0*b/bytesPerMetricUnit), maxLen, precision, 0) + suffixKilo; return (kb*bytesPerMetricUnit) + b + suffixBytes; }

Target:
public String makeSizeString(long size) { return makeSizeString(size, precision); }
Source:
protected boolean requiresRuntime(OperationContext context) { return context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY; }

Target:
protected boolean requiresRuntime(OperationContext context) { return (context.getProcessType() != ProcessType.EMBEDDED_SERVER || context.getRunningMode() != RunningMode.ADMIN_ONLY) && (context.getProcessType() != ProcessType.EMBEDDED_HOST_CONTROLLER); }
Source:
private void upload(HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/html"); File nodeSourceJsonFile = null; try { String sessionId = null; CatalogObject catalogObject = new CatalogObject(); for (FileItem formItem : new ServletRequestTransformer().getFormItems(request)) { if (formItem.isFormField()) { if (formItem.getFieldName().equals("sessionId")) { sessionId = formItem.getString(); } else if (formItem.getFieldName().equals(BUCKET_NAME_PARAM)) { catalogObject.setBucketName(formItem.getString()); } else if (formItem.getFieldName().equals(NAME_PARAM)) { catalogObject.setNodeSourceName(formItem.getString()); } else if (formItem.getFieldName().equals(FILE_CONTENT_PARAM)) { nodeSourceJsonFile = File.createTempFile("node-source-configuration", ".json"); new PrintWriter(nodeSourceJsonFile).write(formItem.getString()); formItem.write(nodeSourceJsonFile); catalogObject.setNodeSourceJsonFile(nodeSourceJsonFile); } else if (formItem.getFieldName().equals(KIND_PARAM)) { catalogObject.setKind(formItem.getString()); } else if (formItem.getFieldName().equals(COMMIT_MESSAGE_PARAM)) { catalogObject.setCommitMessage(formItem.getString()); } else if (formItem.getFieldName().equals(OBJECT_CONTENT_TYPE_PARAM)) { catalogObject.setObjectContentType(formItem.getString()); } } formItem.delete(); } CatalogRequestBuilder catalogRequestBuilder = new CatalogRequestBuilder(catalogObject); String requestUri = catalogRequestBuilder.build(); LOGGER.info("Node Source exported to catalog using resource URI: " + requestUri); catalogRequestBuilder.postNodeSourceRequestToCatalog(sessionId, requestUri, response); } catch (Exception e) { logErrorAndWriteResponseToClient(e, response); } finally { if (nodeSourceJsonFile != null) { nodeSourceJsonFile.delete(); } } }

Target:
private void upload(HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/html"); try (CatalogObjectAction catalogObjectAction = buildCatalogObjetAction(request)) { CatalogRequestBuilder catalogRequestBuilder = new CatalogRequestBuilder(catalogObjectAction); String requestUri = catalogRequestBuilder.build(); LOGGER.info("Post node source to catalog with URI: " + requestUri); postRequestAndHandleResponse(response, catalogObjectAction, catalogRequestBuilder, requestUri); } catch (Exception e) { logErrorAndWriteResponseToClient(e, response); } }
Source:
protected void processTuple(T tuple, boolean isStream1Data) { Spillable.SpillableByteArrayListMultimap<K,T> store = isStream1Data ? stream1Data : stream2Data; K key = extractKey(tuple,isStream1Data); long timeBucket = extractTime(tuple,isStream1Data); if (!((ManagedTimeStateMultiValue)store).put(key, tuple,timeBucket)) { return; } Spillable.SpillableByteArrayListMultimap<K, T> valuestore = isStream1Data ? stream2Data : stream1Data; Future<List> future = ((ManagedTimeStateMultiValue)valuestore).getAsync(key); if (future.isDone()) { try { joinStream(tuple,isStream1Data, future.get()); } catch (InterruptedException e) { throw new RuntimeException(e); } catch (ExecutionException e) { throw new RuntimeException(e); } } else { waitingEvents.put(new JoinEvent<>(key,tuple,isStream1Data),future); } }

Target:
protected void processTuple(T tuple, boolean isStream1Data) { Spillable.SpillableByteArrayListMultimap<K,T> store = isStream1Data ? stream1Data : stream2Data; K key = extractKey(tuple,isStream1Data); long timeBucket = extractTime(tuple,isStream1Data); if (!((ManagedTimeStateMultiValue)store).put(key, tuple,timeBucket)) { return; } Spillable.SpillableByteArrayListMultimap<K, T> valuestore = isStream1Data ? stream2Data : stream1Data; Future<List> future = ((ManagedTimeStateMultiValue)valuestore).getAsync(key); if (future.isDone()) { try { joinStream(tuple,isStream1Data, future.get()); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); } } else { waitingEvents.put(new JoinEvent<>(key,tuple,isStream1Data),future); } }
Source:
protected boolean validateFieldValueRequired(FormField field, Object value) { String message = translationService.getTranslation(ProcessingEngineConstants.FieldStateValidatorImplFieldIsRequired); Optional<Object> optional = Optional.ofNullable(value); Predicate predicate = optional.map((Function<Object, Predicate>) o -> validators.get(o.getClass())).orElse(o -> o != null); if (!predicate.test(value)) { field.setError(message); return false; } return true; }

Target:
protected boolean validateFieldValueRequired(FormField field, Object value) { String message = translationService.getTranslation(ProcessingEngineConstants.FieldStateValidatorImplFieldIsRequired); if (value == null) { field.setError(message); return false; } if (validators.containsKey(value.getClass())) { Predicate predicate = validators.get(value.getClass()); if (!predicate.test(value)) { field.setError(message); return false; } } return true; }
Source:
public void acceptAlert() { Alert alert = driver.switchTo().alert(); alert.accept(); }

Target:
public void acceptAlert() { Alert alert = driver.switchTo().alert(); String alertText = alert.getText(); alert.accept(); Reporter.log(String.format("INFO - Accepted alert: %s", alertText)); }
Source:
public synchronized void paintLayer(Graphics2D g, Rectangle2D region) { g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); super.paintLayer(g, region); if (_ctx.isEmpty()) return; if (!_imgInfoValid) { if (!setBasePos(_basePos)) { return; } } final java.util.List<TpeMessage> messages = new ArrayList<>(); for (int i = 0; i < _featureList.size(); ++i) { final TpeImageFeature tif = _featureList.elementAt(i); tif.draw(g, _imgInfo); final Option<Collection<TpeMessage>> opt = tif.getMessages(); if (opt.isDefined()) { messages.addAll(opt.getValue()); } } if (_baseOutOfView) { messages.add(TpeMessage.warningMessage("Base position is out of view.")); } if (messages.size() > 0) displayMessages(messages, g); }

Target:
public synchronized void paintLayer(Graphics2D g, Rectangle2D region) { g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); super.paintLayer(g, region); if (_ctx.isEmpty()) return; if (!_imgInfoValid) { if (!setBasePos(_basePos)) { return; } } final java.util.List<TpeMessage> messages = new ArrayList<>(); for (final TpeImageFeature tif : _featureList) { tif.draw(g, _imgInfo); final Option<Collection<TpeMessage>> opt = tif.getMessages(); if (opt.isDefined()) { messages.addAll(opt.getValue()); } } if (_baseOutOfView) { messages.add(TpeMessage.warningMessage("Base position is out of view.")); } if (messages.size() > 0) displayMessages(messages, g); }
Source:
private void resolveCharsets(String dbCharset, Table resolved) { if ( this.charset != null ) resolved.charset = this.charset; else resolved.charset = dbCharset; for ( StringColumnDef c : resolved.getStringColumns() ) { if ( c.charset == null ) c.charset = resolved.charset; } }

Target:
private void resolveCharsets(String dbCharset, Table resolved) { if ( this.charset != null ) resolved.charset = this.charset; else resolved.charset = dbCharset; resolved.setDefaultColumnCharsets(); }
Source:
public ImmutableBitmap getBitmapIndex(String dimension, String value) { if (isVirtualColumn(dimension)) { return null; } final Column column = index.getColumn(dimension); if (column == null || !columnSupportsFiltering(column)) { if (value == null) { return bitmapFactory.complement(bitmapFactory.makeEmptyImmutableBitmap(), getNumRows()); } else { return bitmapFactory.makeEmptyImmutableBitmap(); } } if (!column.getCapabilities().hasBitmapIndexes()) { return null; } final BitmapIndex bitmapIndex = column.getBitmapIndex(); return bitmapIndex.getBitmap(bitmapIndex.getIndex(value)); }

Target:
public ImmutableBitmap getBitmapIndex(String dimension, String value) { if (isVirtualColumn(dimension)) { return null; } final Column column = index.getColumn(dimension); if (column == null || !columnSupportsFiltering(column)) { if (NullHandling.isNullOrEquivalent(value)) { return bitmapFactory.complement(bitmapFactory.makeEmptyImmutableBitmap(), getNumRows()); } else { return bitmapFactory.makeEmptyImmutableBitmap(); } } if (!column.getCapabilities().hasBitmapIndexes()) { return null; } final BitmapIndex bitmapIndex = column.getBitmapIndex(); return bitmapIndex.getBitmap(bitmapIndex.getIndex(value)); }
Source:
public Void call() throws Exception { LOGGER.info("\n\nThread Starting " + t.getName() + " ; " + query.getStatement() + " for " + numberOfExecutions + "times\n\n"); Long start = EnvironmentEdgeManager.currentTimeMillis(); for (long i = numberOfExecutions; (i > 0 && ((EnvironmentEdgeManager.currentTimeMillis() - start) < executionDurationInMs)); i--) { try { if (diffQuery()) { break; } } catch (Exception e) { e.printStackTrace(); } } LOGGER.info("\n\nThread exiting." + t.getName() + "\n\n"); return null; }

Target:
public Void call() throws Exception { LOGGER.info("\n\nThread Starting " + t.getName() + " ; " + query.getStatement() + " for " + numberOfExecutions + "times\n\n"); Long start = EnvironmentEdgeManager.currentTimeMillis(); for (long i = numberOfExecutions; (i > 0 && ((EnvironmentEdgeManager.currentTimeMillis() - start) < executionDurationInMs)); i--) { try { diffQuery(); } catch (Exception e) { e.printStackTrace(); } } LOGGER.info("\n\nThread exiting." + t.getName() + "\n\n"); return null; }
Source:
public RelDataType getNamedType(SqlIdentifier typeName) { Pair<CalciteSchema, String> pair = Util.schema(getRootSchema(), ImmutableList.<String>of(), typeName); CalciteSchema.TypeEntry typeEntry = pair.left.getType(pair.right, false); if (typeEntry != null) { return typeEntry.getType().apply(typeFactory); } else { return null; } }

Target:
public RelDataType getNamedType(SqlIdentifier typeName) { CalciteSchema.TypeEntry typeEntry = SqlValidatorUtil.getTypeEntry(getRootSchema(), typeName); if (typeEntry != null) { return typeEntry.getType().apply(typeFactory); } else { return null; } }
Source:
public byte[] get() { try { FileInputStream inputStream = null; try { inputStream = new FileInputStream(file); return IOUtils.toByteArray(inputStream); } finally { if (inputStream != null) { inputStream.close(); } } } catch (IOException e) { throw new Error(e); } }

Target:
public byte[] get() { try { FileInputStream inputStream = new FileInputStream(file); try { return IOUtils.toByteArray(inputStream); } finally { inputStream.close(); } } catch (IOException e) { throw new Error(e); } }
Source:
private Response<QueueDescription> deserializeQueue(Response<Object> response) { final QueueDescriptionEntry entry = deserialize(response.getValue(), QueueDescriptionEntry.class); if (entry == null) { return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), null); } final QueueDescription result = entry.getContent().getQueueDescription(); final String queueName = getTitleValue(entry.getTitle()); QueueHelper.setName(result, queueName); return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), result); }

Target:
private Response<QueueDescription> deserializeQueue(Response<Object> response) { final QueueDescriptionEntry entry = deserialize(response.getValue(), QueueDescriptionEntry.class); if (entry == null) { return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), null); } else if (entry.getContent() == null) { logger.warning("entry.getContent() is null. There should have been content returned. Entry: {}", entry); return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), null); } final QueueDescription result = entry.getContent().getQueueDescription(); final String queueName = getTitleValue(entry.getTitle()); QueueHelper.setName(result, queueName); return new SimpleResponse<>(response.getRequest(), response.getStatusCode(), response.getHeaders(), result); }
Source:
public List<ReplPathMapping> write(boolean isExportTask) throws SemanticException { List<ReplPathMapping> replPathMappings = Collections.emptyList(); if (tableSpec == null) { writeMetaData(null); } else if (shouldExport()) { PartitionIterable withPartitions = getPartitions(); writeMetaData(withPartitions); if (!replicationSpec.isMetadataOnly() && !Utils.shouldDumpMetaDataOnlyForExternalTables(tableSpec.tableHandle, conf) && !(replicationSpec.isRepl() && tableSpec.tableHandle.getTableType().equals(TableType.EXTERNAL_TABLE))) { replPathMappings = writeData(withPartitions, isExportTask); } } else if (isExportTask) { throw new SemanticException(ErrorMsg.INCOMPATIBLE_SCHEMA.getMsg()); } return replPathMappings; }

Target:
public List<ReplPathMapping> write(boolean isExportTask) throws SemanticException { List<ReplPathMapping> replPathMappings = Collections.emptyList(); if (tableSpec == null) { writeMetaData(null); } else if (shouldExport()) { PartitionIterable withPartitions = getPartitions(); writeMetaData(withPartitions); if (!replicationSpec.isMetadataOnly() && !(replicationSpec.isRepl() && tableSpec.tableHandle.getTableType().equals(TableType.EXTERNAL_TABLE))) { replPathMappings = writeData(withPartitions, isExportTask); } } else if (isExportTask) { throw new SemanticException(ErrorMsg.INCOMPATIBLE_SCHEMA.getMsg()); } return replPathMappings; }
Source:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(Constants.TAG, "NfcOperationActivity.onCreate"); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); mInputParcel = getIntent().getParcelableExtra(EXTRA_CRYPTO_INPUT); if (mInputParcel == null) { mInputParcel = new CryptoInputParcel(mRequiredInput.mSignatureTime); } setTitle(R.string.nfc_text); vAnimator = (ViewAnimator) findViewById(R.id.view_animator); vAnimator.setDisplayedChild(0); vErrorText = (TextView) findViewById(R.id.nfc_activity_3_error_text); vErrorTryAgainButton = (Button) findViewById(R.id.nfc_activity_3_error_try_again); vErrorTryAgainButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { resumeTagHandling(); if (mRequiredInput.mType != RequiredInputParcel.RequiredInputType.NFC_MOVE_KEY_TO_CARD) { obtainYubiKeyPin(mRequiredInput); } vAnimator.setDisplayedChild(0); } }); Intent intent = getIntent(); Bundle data = intent.getExtras(); mRequiredInput = data.getParcelable(EXTRA_REQUIRED_INPUT); mServiceIntent = data.getParcelable(EXTRA_SERVICE_INTENT); if (mRequiredInput.mType != RequiredInputParcel.RequiredInputType.NFC_MOVE_KEY_TO_CARD) { obtainYubiKeyPin(mRequiredInput); } }

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d(Constants.TAG, "NfcOperationActivity.onCreate"); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); mInputParcel = getIntent().getParcelableExtra(EXTRA_CRYPTO_INPUT); if (mInputParcel == null) { mInputParcel = new CryptoInputParcel(); } setTitle(R.string.nfc_text); vAnimator = (ViewAnimator) findViewById(R.id.view_animator); vAnimator.setDisplayedChild(0); vErrorText = (TextView) findViewById(R.id.nfc_activity_3_error_text); vErrorTryAgainButton = (Button) findViewById(R.id.nfc_activity_3_error_try_again); vErrorTryAgainButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { resumeTagHandling(); if (mRequiredInput.mType != RequiredInputParcel.RequiredInputType.NFC_MOVE_KEY_TO_CARD) { obtainYubiKeyPin(mRequiredInput); } vAnimator.setDisplayedChild(0); } }); Intent intent = getIntent(); Bundle data = intent.getExtras(); mRequiredInput = data.getParcelable(EXTRA_REQUIRED_INPUT); mServiceIntent = data.getParcelable(EXTRA_SERVICE_INTENT); if (mRequiredInput.mType != RequiredInputParcel.RequiredInputType.NFC_MOVE_KEY_TO_CARD) { obtainYubiKeyPin(mRequiredInput); } }
Source:
public ListenerContainerIdleEvent(Object source, long idleTime, @Nullable String id, String... queueNames) { super(source); this.idleTime = Duration.ofMillis(idleTime); this.listenerId = id; this.queueNames = Arrays.asList(queueNames); }

Target:
public ListenerContainerIdleEvent(Object source, long idleTime, @Nullable String id, String... queueNames) { super(source); this.idleTime = idleTime; this.listenerId = id; this.queueNames = Arrays.asList(queueNames); }
Source:
public DynamoDBConfiguration getPasswordResetDBConfiguration() { return this.passwordResetDBConfiguration; }

Target:
public DynamoDBConfiguration getPasswordResetDBConfiguration() { return passwordResetDBConfiguration; }
Source:
public void makeDisabled(boolean b) throws IOException { if(disabled==b) return; if (b && !supportsMakeDisabled()) return; this.disabled = b; if (b) { this.disabledSince = System.currentTimeMillis(); Jenkins.getInstance().getQueue().cancel(this); } save(); ItemListener.fireOnUpdated(this); }

Target:
public void makeDisabled(boolean b) throws IOException { if(disabled==b) return; if (b && !supportsMakeDisabled()) return; this.disabled = b; if (b) { this.disabledSince = System.currentTimeMillis(); Jenkins.getInstance().getQueue().cancel(this); } else { this.disabledSince = null; } save(); ItemListener.fireOnUpdated(this); }
Source:
private Map<StoreKey, StoreKey> createConversionKeyMap(File[] replicas, Map<File, DumpIndexTool.IndexProcessingResults> results) throws Exception { List<StoreKey> storeKeys = new ArrayList<>(); for (File replica : replicas) { DumpIndexTool.IndexProcessingResults result = results.get(replica); for (Map.Entry<StoreKey, DumpIndexTool.Info> entry : result.getKeyToState().entrySet()) { storeKeys.add(entry.getKey()); } } return storeKeyConverter.convert(storeKeys); }

Target:
private Map<StoreKey, StoreKey> createConversionKeyMap(File[] replicas, Map<File, DumpIndexTool.IndexProcessingResults> results) throws Exception { Set<StoreKey> storeKeys = new HashSet<>(); for (File replica : replicas) { DumpIndexTool.IndexProcessingResults result = results.get(replica); for (Map.Entry<StoreKey, DumpIndexTool.Info> entry : result.getKeyToState().entrySet()) { storeKeys.add(entry.getKey()); } } return storeKeyConverter.convert(storeKeys); }
Source:
public FileInStream openFile(AlluxioURI alluxioURI, OpenFilePOptions options) throws IOException { FSDataInputStream inputStream = fileSystem.open(toPath(alluxioURI)); return new AlluxioCachingInputStream(inputStream); }

Target:
public FileInStream openFile(AlluxioURI alluxioURI, OpenFilePOptions options) throws IOException { return new AlluxioCachingInputStream(fileSystem.open(toPath(alluxioURI))); }
Source:
private static void assertGetAllResult(List<VmTemplate> result) { assertNotNull(result); assertFalse(result.isEmpty()); for (VmTemplate template : result){ assertTrue("Template generation wasn't loaded as expected", template.getDbGeneration() == 1); } }

Target:
private static void assertGetAllResult(List<VmTemplate> result) { assertNotNull(result); assertFalse(result.isEmpty()); for (VmTemplate template : result){ assertEquals("Template generation wasn't loaded as expected", 1, template.getDbGeneration()); } }
Source:
public Operation exec(Prolog engine) throws PrologException { engine.setB0(); Term a1 = arg1.dereference(); PrologEnvironment env = (PrologEnvironment) engine.control; Change change = StoredValues.CHANGE.get(engine); Branch.NameKey name = change.getDest(); if (!a1.unify(SymbolTerm.intern(name.get()), engine.trail)) { return engine.fail(); } return cont; }

Target:
public Operation exec(Prolog engine) throws PrologException { engine.setB0(); Term a1 = arg1.dereference(); PrologEnvironment env = (PrologEnvironment) engine.control; Change change = StoredValues.CHANGE.get(engine); Branch.NameKey name = change.getDest(); if (!a1.unify(SymbolTerm.create(name.get()), engine.trail)) { return engine.fail(); } return cont; }
Source:
public List<String> getExtraStackDefinitionsUrls() { return this != null ? getConfig(STACK_DEFINITION_URLS) : ImmutableList.<String>of(); }

Target:
public List<String> getExtraStackDefinitionsUrls() { return getConfig(STACK_DEFINITION_URLS); }
Source:
public boolean visitEnter(FunctionParseNode node) throws SQLException { if (node.isAggregate()) { if (aggregateFunction != null) { throw new SQLFeatureNotSupportedException("Nested aggregate functions are not supported"); } this.aggregateFunction = node; this.isAggregate = true; } else if(node.getClass().isAssignableFrom(ArrayIndexFunction.class)) { this.isAggregate = true; } return true; }

Target:
public boolean visitEnter(FunctionParseNode node) throws SQLException { if (node.isAggregate()) { if (aggregateFunction != null) { throw new SQLFeatureNotSupportedException("Nested aggregate functions are not supported"); } this.aggregateFunction = node; this.isAggregate = true; } return true; }
Source:
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } ExtendedVmDynamic other = (ExtendedVmDynamic) obj; return ObjectUtils.objectsEqual(host, other.host); }

Target:
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } ExtendedVmDynamic other = (ExtendedVmDynamic) obj; return Objects.equals(host, other.host); }
Source:
public CatalogMap(Catalog catalog, CatalogType parent, String name, Class<T> cls, int depth) { m_catalog = catalog; m_parent = parent; m_name = name; m_cls = cls; m_depth = depth; if (depth <= 3) { m_cachedPath = getPath(); } }

Target:
CatalogMap(Catalog catalog, CatalogType parent, String name, Class<T> cls, int depth) { m_catalog = catalog; m_parent = parent; m_name = name; m_cls = cls; m_depth = depth; if (depth <= 3) { m_cachedPath = getPath(); } }
Source:
public void close() { isClosed = true; }

Target:
public void close() throws IOException { isClosed = true; try { flush(); } catch (InterruptedException interruptedException) { throw new IOException(interruptedException); } }
Source:
private void addAllActorsToStage(@ResetSpriteType int reset) { boolean addPenActor = true; for (Sprite sprite : sprites) { if (reset == RESET_SPRITE) { sprite.resetSprite(); sprite.look.createBrightnessContrastHueShader(); } stage.addActor(sprite.look); if (addPenActor) { penActor = new PenActor(); stage.addActor(penActor); addPenActor = false; } } stage.addActor(passepartout); }

Target:
private void addAllActorsToStage(@ResetSpriteType int reset) { for (Sprite sprite : sprites) { if (reset == RESET_SPRITE) { sprite.resetSprite(); sprite.look.createBrightnessContrastHueShader(); } stage.addActor(sprite.look); } penActor = new PenActor(); stage.getRoot().addActorAt(Constants.Z_INDEX_BACKGROUND + 1, penActor); stage.addActor(passepartout); }
Source:
public void getPreferredServerHostkeyAlgorithmOrder_Multiple() throws Exception { KnownHosts obj = new KnownHosts(); obj.addHostkeys(getKnownHosts("known_hosts")); assertThat(obj.getPreferredServerHostkeyAlgorithmOrder("multiple"), nullValue()); }

Target:
public void getPreferredServerHostkeyAlgorithmOrder_Multiple() throws Exception { KnownHosts obj = new KnownHosts(); obj.addHostkeys(getKnownHosts("known_hosts")); assertThat(obj.getPreferredServerHostkeyAlgorithmOrder("multiple"), arrayContaining( equalTo("ecdsa-sha2-nistp256"), equalTo("rsa-sha2-512"), equalTo("rsa-sha2-256"), equalTo("ssh-rsa"), equalTo("ssh-ed25519"), equalTo("ecdsa-sha2-nistp384"), equalTo("ecdsa-sha2-nistp521"), equalTo("ssh-dss") )); }
Source:
public IPaymentDocument copyAsPaymentDocument() { final PaymentRow paymentRow = this; final ICurrencyDAO currenciesRepo = Services.get(ICurrencyDAO.class); final CurrencyId currencyId = currenciesRepo.getByCurrencyCode(paymentRow.getCurrencyISOCode()).getId(); return PaymentDocument.builder() .clientAndOrgId(ClientAndOrgId.ofClientAndOrg(ClientId.METASFRESH, paymentRow.getOrgId())) .paymentId(PaymentId.ofRepoId(paymentRow.getC_Payment_ID())) .bpartnerId(BPartnerId.ofRepoIdOrNull(paymentRow.getC_BPartner_ID())) .paymentDirection(paymentRow.getPaymentDirection()) .documentNo(paymentRow.getDocumentNo()) .openAmt(Money.of(paymentRow.getOpenAmtConv_APAdjusted(), currencyId)) .amountToAllocate(Money.of(paymentRow.getAppliedAmt_APAdjusted(), currencyId)) .dateTrx(TimeUtil.asLocalDate(paymentRow.getDocumentDate())) .build(); }

Target:
public IPaymentDocument copyAsPaymentDocument() { final PaymentRow paymentRow = this; final ICurrencyDAO currenciesRepo = Services.get(ICurrencyDAO.class); final CurrencyId currencyId = currenciesRepo.getByCurrencyCode(paymentRow.getCurrencyISOCode()).getId(); return PaymentDocument.builder() .clientAndOrgId(ClientAndOrgId.ofClientAndOrg(Env.getClientId(), paymentRow.getOrgId())) .paymentId(PaymentId.ofRepoId(paymentRow.getC_Payment_ID())) .bpartnerId(BPartnerId.ofRepoIdOrNull(paymentRow.getC_BPartner_ID())) .paymentDirection(paymentRow.getPaymentDirection()) .documentNo(paymentRow.getDocumentNo()) .openAmt(Money.of(paymentRow.getOpenAmtConv_APAdjusted(), currencyId)) .amountToAllocate(Money.of(paymentRow.getAppliedAmt_APAdjusted(), currencyId)) .dateTrx(TimeUtil.asLocalDate(paymentRow.getDocumentDate())) .build(); }
Source:
private boolean isTransient( String dataServiceName ) { return dataServiceName.contains( DELIMITER ); }

Target:
public static boolean isTransient( String dataServiceName ) { return dataServiceName.startsWith( PREFIX ) && dataServiceName.contains( DELIMITER ); }