auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testIsValidValue() { String isValidResult; isValidResult = textBox.isValidValue("a", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("a", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("-", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("-", false); isValidResult = textBox.isValidValue("_", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("_", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("aBc", true); if (caseSensitive) { assertEquals(null, isValidResult); } else { assertEquals(ERROR_MESSAGE, isValidResult); } isValidResult = textBox.isValidValue("aBc", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("CdE", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("CdE", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("a#$%1", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("a#$%1", false); assertEquals(ERROR_TYPED + ": #$%", isValidResult); isValidResult = textBox.isValidValue("a.", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("a.", false); assertEquals(ERROR_TYPED + ": .", isValidResult); }

Target:
public void testIsValidValue() { String isValidResult; isValidResult = textBox.isValidValue("a", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("a", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("-", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("-", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("_", true); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("_", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("aBc", true); if (caseSensitive) { assertEquals(null, isValidResult); } else { assertEquals(ERROR_MESSAGE, isValidResult); } isValidResult = textBox.isValidValue("aBc", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("CdE", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("CdE", false); assertEquals(null, isValidResult); isValidResult = textBox.isValidValue("a#$%1", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("a#$%1", false); assertEquals(ERROR_TYPED + ": #$%", isValidResult); isValidResult = textBox.isValidValue("a.", true); assertEquals(ERROR_MESSAGE, isValidResult); isValidResult = textBox.isValidValue("a.", false); assertEquals(ERROR_TYPED + ": .", isValidResult); }
Source:
public boolean removeInterfacesForNode(int nodeId) { List<Map.Entry<Key, Value>> keyValues = m_managedAddresses.entries().stream() .filter(keyValueEntry -> keyValueEntry.getValue().getNodeId() == nodeId) .collect(Collectors.toList()); keyValues.forEach(keyValue -> { boolean succeeded = m_managedAddresses.remove(keyValue.getKey(), keyValue.getValue()); if (succeeded) { LOG.debug("removeInterfaesForNode: removed IP address from cache: {}", str(keyValue.getKey().getIpAddress())); } }); return true; }

Target:
public void removeInterfacesForNode(int nodeId) { m_lock.writeLock().lock(); try { List<Map.Entry<Key, Value>> keyValues = m_managedAddresses.entries().stream() .filter(keyValueEntry -> keyValueEntry.getValue().getNodeId() == nodeId) .collect(Collectors.toList()); keyValues.forEach(keyValue -> { boolean succeeded = m_managedAddresses.remove(keyValue.getKey(), keyValue.getValue()); if (succeeded) { LOG.debug("removeInterfacesForNode: removed IP address from cache: {}", str(keyValue.getKey().getIpAddress())); } }); } finally { m_lock.writeLock().unlock(); } }
Source:
public void shouldAllowCleanupBeforeStartAndAfterClose() { final KafkaStreams streams = new KafkaStreams(new StreamsBuilder().build(), props, supplier, time); try { streams.cleanUp(); streams.start(); } finally { streams.close(); } streams.cleanUp(); }

Target:
public void shouldAllowCleanupBeforeStartAndAfterClose() { final KafkaStreams streams = new KafkaStreams(new StreamsBuilder().build(), props, supplier, time); try { streams.cleanUp(); streams.start(); } finally { streams.close(); streams.cleanUp(); } }
Source:
public void testKerberosAuthenticatorExceptionInExecute() throws Exception { String principal = flumePrincipal; String keytab = flumeKeytab.getAbsolutePath(); FlumeAuthenticationUtil.clearCredentials(); FlumeAuthenticator authenticator = FlumeAuthenticationUtil.getAuthenticator(principal, keytab); assertTrue(authenticator instanceof KerberosAuthenticator); authenticator.execute(new PrivilegedExceptionAction<Object>() { @Override public Object run() throws Exception { throw new IOException(); } }); }

Target:
public void testKerberosAuthenticatorExceptionInExecute() throws Exception { String principal = flumePrincipal; String keytab = flumeKeytab.getAbsolutePath(); FlumeAuthenticator authenticator = FlumeAuthenticationUtil.getAuthenticator(principal, keytab); assertTrue(authenticator instanceof KerberosAuthenticator); authenticator.execute(new PrivilegedExceptionAction<Object>() { @Override public Object run() throws Exception { throw new IOException(); } }); }
Source:
private void saslXoauth2(String username) throws MessagingException, IOException { try { attemptXoauth2(username); } catch (NegativeSmtpReplyException exception) { if (exception.getReplyCode() == 535) { Log.v(LOG_TAG, "Authentication exception, invalidating token and re-trying", exception); oauthTokenProvider.invalidateToken(username); try { attemptXoauth2(username); } catch (NegativeSmtpReplyException exception2) { if (exception2.getReplyCode() == 535) { Log.v(LOG_TAG, "Authentication exception for new token, permanent error assumed", exception2); oauthTokenProvider.invalidateToken(username); throw new AuthenticationFailedException(exception2.getMessage(), exception2); } else { throw exception2; } } } else { throw exception; } } }

Target:
private void saslXoauth2(String username) throws MessagingException, IOException { retryXoauthWithNewToken = true; try { attemptXoauth2(username); } catch (NegativeSmtpReplyException negativeResponse) { if (negativeResponse.getReplyCode() != SMTP_AUTHENTICATION_FAILURE_ERROR_CODE) { throw negativeResponse; } oauthTokenProvider.invalidateToken(username); if (!retryXoauthWithNewToken) { handlePermanentFailure(negativeResponse); } else { handleTemporaryFailure(username, negativeResponse); } } }
Source:
private Collection<? extends Map<String, Serializable>> buildRecursiveComplexVariableList(final Map<String, Serializable> currentVariables, final List<Map<String, Serializable>> constraintVariablesList, final String inputName) { for (final Entry<String, Serializable> variableEntry : currentVariables.entrySet()) { final Object variableValue = variableEntry.getValue(); if (variableValue instanceof Map<?, ?>) { buildRecursiveVariableList((Map<String, Serializable>) variableValue, constraintVariablesList, inputName); } if (variableValue instanceof List<?>) { for (final Serializable variableValueItem : (List<Serializable>) variableValue) { if (variableValueItem instanceof Map<?, ?>) { buildRecursiveVariableList((Map<String, Serializable>) variableValueItem, constraintVariablesList, inputName); }else{ } } } } return constraintVariablesList; }

Target:
private Collection<? extends Map<String, Serializable>> buildRecursiveComplexVariableList(final Map<String, Serializable> currentVariables, final List<Map<String, Serializable>> constraintVariablesList, final String inputName) { for (final Entry<String, Serializable> variableEntry : currentVariables.entrySet()) { final Object variableValue = variableEntry.getValue(); if (variableValue instanceof Map<?, ?>) { buildRecursiveVariableList((Map<String, Serializable>) variableValue, constraintVariablesList, inputName); } if (variableValue instanceof List<?>) { for (final Serializable variableValueItem : (List<Serializable>) variableValue) { if (variableValueItem instanceof Map<?, ?>) { buildRecursiveVariableList((Map<String, Serializable>) variableValueItem, constraintVariablesList, inputName); } } } } return constraintVariablesList; }
Source:
public LayerPage() { final CatalogIconFactory icons = CatalogIconFactory.get(); table = new GeoServerTablePanel<LayerInfo>("table", provider, true) { @Override protected Component getComponentForProperty(String id, IModel<LayerInfo> itemModel, Property<LayerInfo> property) { if(property == TYPE) { Fragment f = new Fragment(id, "iconFragment", LayerPage.this); f.add(new Image("layerIcon", icons.getSpecificLayerIcon((LayerInfo) itemModel.getObject()))); return f; } else if(property == WORKSPACE) { return workspaceLink(id, itemModel); } else if(property == STORE) { return storeLink(id, itemModel); } else if(property == NAME) { return layerLink(id, itemModel); } else if(property == ENABLED) { LayerInfo layerInfo = (LayerInfo) itemModel.getObject(); boolean enabled = layerInfo.enabled(); PackageResourceReference icon = enabled? icons.getEnabledIcon() : icons.getDisabledIcon(); Fragment f = new Fragment(id, "iconFragment", LayerPage.this); f.add(new Image("layerIcon", icon)); return f; } else if(property == SRS) { return new Label(id, SRS.getModel(itemModel)); } else if (property == TITLE) { return titleLink(id, itemModel); } throw new IllegalArgumentException("Don't know a property named " + property.getName()); } @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(table.getSelection().size() > 0); target.add(removal); } }; table.setOutputMarkupId(true); add(table); add(dialog = new GeoServerDialog("dialog")); setHeaderPanel(headerPanel()); }

Target:
public LayerPage() { final CatalogIconFactory icons = CatalogIconFactory.get(); table = new GeoServerTablePanel<LayerInfo>("table", provider, true) { @Override protected Component getComponentForProperty(String id, IModel<LayerInfo> itemModel, Property<LayerInfo> property) { if(property == TYPE) { Fragment f = new Fragment(id, "iconFragment", LayerPage.this); f.add(new Image("layerIcon", icons.getSpecificLayerIcon(itemModel.getObject()))); return f; } else if(property == STORE) { return storeLink(id, itemModel); } else if(property == NAME) { return layerLink(id, itemModel); } else if(property == ENABLED) { LayerInfo layerInfo = itemModel.getObject(); boolean enabled = layerInfo.enabled(); PackageResourceReference icon = enabled? icons.getEnabledIcon() : icons.getDisabledIcon(); Fragment f = new Fragment(id, "iconFragment", LayerPage.this); f.add(new Image("layerIcon", icon)); return f; } else if(property == SRS) { return new Label(id, SRS.getModel(itemModel)); } else if (property == TITLE) { return titleLink(id, itemModel); } throw new IllegalArgumentException("Don't know a property named " + property.getName()); } @Override protected void onSelectionUpdate(AjaxRequestTarget target) { removal.setEnabled(table.getSelection().size() > 0); target.add(removal); } }; table.setOutputMarkupId(true); add(table); add(dialog = new GeoServerDialog("dialog")); setHeaderPanel(headerPanel()); }
Source:
protected final Result doInBackground(Params... params) { try { enableCancelButton(); setup(params); enableDismissDialogOnCancel(); if (isCancelled()) { return null; } mainBackgroundWork(params); if (isCancelled()) { return null; } disableCancelButton(); return commit(params); } catch (Exception e) { Logger.log(TAG, e.getMessage()); e.printStackTrace(); ACRA.getErrorReporter().handleException(e); unknownError = e; return null; } }

Target:
protected final Result doInBackground(Params... params) { try { enableCancelButton(); setup(params); enableDismissDialogOnCancel(); if (isCancelled()) { return null; } mainBackgroundWork(params); if (!startCommitPhase()) { return null; } else { return commit(params); } } catch (Exception e) { Logger.log(TAG, e.getMessage()); e.printStackTrace(); ACRA.getErrorReporter().handleException(e); unknownError = e; return null; } }
Source:
public void recordUpdateToAggregationLatency(long latency) { if (_updateToAggregationLatencyGauge != null) { _updateToAggregationLatencyGauge.updateValue(latency); } }

Target:
public void recordUpdateToAggregationLatency(long latency) { _updateToAggregationLatencyGauge.updateValue(latency); }
Source:
protected boolean isPeerValid(AdminRow peerRow) { boolean valid = isSchemaV2 ? peerRow.isNotEmpty("native_address") && peerRow.isNotEmpty("native_port") : peerRow.isNotEmpty("rpc_address"); if (valid && EXTENDED_PEER_CHECK) { valid = peerRow.isNotEmpty("host_id") && peerRow.isNotEmpty("data_center") && peerRow.isNotEmpty("rack") && peerRow.isNotEmpty("tokens"); } if (!valid) { LOG.warn( "[{}] Found invalid row in for peer: {}. " + "This is likely a gossip or snitch issue, this node will be ignored.", logPrefix, retrievePeerTableName(), peerRow.getInetAddress("peer")); } return valid; }

Target:
protected boolean isPeerValid(AdminRow peerRow) { boolean hasPeersRpcAddress = peerRow.getInetAddress("rpc_address") != null; boolean hasPeersV2RpcAddress = peerRow.getInetAddress("native_address") != null && peerRow.getInteger("native_port") != null; boolean hasRpcAddress = hasPeersV2RpcAddress || hasPeersRpcAddress; boolean hasHostId = peerRow.getUuid("host_id") != null; boolean valid = hasRpcAddress && hasHostId; if (!valid) { LOG.warn( "[{}] Found invalid row in for peer: {}. " + "This is likely a gossip or snitch issue, this node will be ignored.", logPrefix, retrievePeerTableName(), peerRow.getInetAddress("peer")); } return valid; }
Source:
public VxLanPort bridgeCreateVxLanPort( UUID bridgeId, IPv4Addr mgmtIp, int mgmtPort, int vni, IPv4Addr tunnelIp, UUID tunnelZoneId) throws StateAccessException, SerializationException { BridgeConfig bridgeConfig = bridgeZkManager.get(bridgeId); if (bridgeConfig.vxLanPortIds == null) { bridgeConfig.vxLanPortIds = new ArrayList<>(2); } if (bridgeConfig.vxLanPortId != null) { bridgeConfig.vxLanPortIds.add(0, bridgeConfig.vxLanPortId); } for (UUID id : bridgeConfig.vxLanPortIds) { VxLanPort p = (VxLanPort) portsGet(id); if (p.getMgmtIpAddr().equals(mgmtIp)) { throw new IllegalStateException( "Not expected to find a port for vtep " + mgmtIp); } } VxLanPort port = new VxLanPort(bridgeId, mgmtIp, mgmtPort, vni, tunnelIp, tunnelZoneId); PortConfig portConfig = Converter.toPortConfig(port); List<Op> ops = new ArrayList<>(); ops.addAll(portZkManager.prepareCreate(port.getId(), portConfig)); bridgeConfig.vxLanPortIds.add(port.getId()); ops.addAll(bridgeZkManager.prepareUpdate(bridgeId, bridgeConfig)); zkManager.multi(ops); return port; }

Target:
public VxLanPort bridgeCreateVxLanPort( UUID bridgeId, IPv4Addr mgmtIp, int mgmtPort, int vni, IPv4Addr tunnelIp, UUID tunnelZoneId) throws StateAccessException, SerializationException { BridgeConfig bridgeConfig = bridgeZkManager.get(bridgeId); if (bridgeConfig.vxLanPortIds == null) { bridgeConfig.vxLanPortIds = new ArrayList<>(2); } if (bridgeConfig.vxLanPortId != null) { if (!bridgeConfig.vxLanPortIds.contains(bridgeConfig.vxLanPortId)) { bridgeConfig.vxLanPortIds.add(0, bridgeConfig.vxLanPortId); log.debug("Lazy update of Bridge schema: existing VTEP" + "binding migrated to new schema in {}", bridgeId); } } for (UUID id : bridgeConfig.vxLanPortIds) { VxLanPort p = (VxLanPort) portsGet(id); if (p.getMgmtIpAddr().equals(mgmtIp)) { throw new IllegalStateException( "Not expected to find a port for vtep " + mgmtIp); } } VxLanPort port = new VxLanPort(bridgeId, mgmtIp, mgmtPort, vni, tunnelIp, tunnelZoneId); PortConfig portConfig = Converter.toPortConfig(port); List<Op> ops = new ArrayList<>(); ops.addAll(portZkManager.prepareCreate(port.getId(), portConfig)); if (bridgeConfig.vxLanPortId == null) { bridgeConfig.vxLanPortId = port.getId(); } bridgeConfig.vxLanPortIds.add(port.getId()); ops.addAll(bridgeZkManager.prepareUpdate(bridgeId, bridgeConfig)); zkManager.multi(ops); return port; }
Source:
private long getLogSegmentRefTimeMs(ScanResults results, TimeRange timeRange) { long refTimeInMs = results == null || timeRange.getStartTimeInMs() >= results.logSegmentForecastEndTimeMs || timeRange.getEndTimeInMs() < results.logSegmentForecastStartTimeMs ? -1 : timeRange.getEndTimeInMs(); if (refTimeInMs != -1 && refTimeInMs >= results.logSegmentForecastEndTimeMs) { refTimeInMs = results.logSegmentLastBucketTimeMs; } return refTimeInMs; }

Target:
private long getLogSegmentRefTimeMs(ScanResults results, TimeRange timeRange) { long refTimeInMs = results == null || timeRange.getStartTimeInMs() >= results.logSegmentForecastEndTimeMs || timeRange.getEndTimeInMs() < results.logSegmentForecastStartTimeMs ? REF_TIME_OUT_OF_BOUNDS : timeRange.getEndTimeInMs(); if (refTimeInMs != REF_TIME_OUT_OF_BOUNDS && refTimeInMs >= results.logSegmentForecastEndTimeMs) { refTimeInMs = results.logSegmentLastBucketTimeMs; } return refTimeInMs; }
Source:
public void close() throws IOException { final File outFile = IndexIO.makeMetricFile(outDir, metricName, IndexIO.BYTE_ORDER); close(outFile); }

Target:
public void close() throws IOException { final File outFile = IndexIO.makeMetricFile(outDir, metricName, IndexIO.BYTE_ORDER); closeFile(outFile); }
Source:
public int parseArgs(final String[] args) throws ParseException { final CommandLineParser parser = new GnuParser(); final CommandLine command = parser.parse(options, args); if (command.hasOption("help")) { return 1; } if (command.hasOption("properties")) { this.properties = parseProperties(command.getOptionValue("properties")); } String defaultValue; defaultValue = properties == null ? "null" : properties.getProperty("aeron.tools.mediadriver.sender"); senderIdleStrategy = parseIdleStrategy(command.getOptionValue("sender", defaultValue)); defaultValue = properties == null ? "null" : properties.getProperty("aeron.tools.mediadriver.receiver"); receiverIdleStrategy = parseIdleStrategy(command.getOptionValue("receiver", defaultValue)); defaultValue = properties == null ? "null" : properties.getProperty("aeron.tools.mediadriver.network"); sharedNetworkIdleStrategy = parseIdleStrategy(command.getOptionValue("network", defaultValue)); defaultValue = properties == null ? "null" : properties.getProperty("aeron.tools.mediadriver.shared"); sharedIdleStrategy = parseIdleStrategy(command.getOptionValue("shared", defaultValue)); defaultValue = properties == null ? "null" : properties.getProperty("aeron.tools.mediadriver.conductor"); conductorIdleStrategy = parseIdleStrategy(command.getOptionValue("conductor", defaultValue)); return 0; }

Target:
public int parseArgs(final String[] args) throws ParseException { final CommandLineParser parser = new GnuParser(); final CommandLine command = parser.parse(options, args); if (command.hasOption("help")) { return 1; } String senderValue = NULL_VALUE; String receiverValue = NULL_VALUE; String sharedNetworkValue = NULL_VALUE; String sharedValue = NULL_VALUE; String conductorValue = NULL_VALUE; if (command.hasOption("properties")) { this.properties = parseProperties(command.getOptionValue("properties")); senderValue = properties.getProperty("aeron.tools.mediadriver.sender"); receiverValue = properties.getProperty("aeron.tools.mediadriver.receiver"); sharedNetworkValue = properties.getProperty("aeron.tools.mediadriver.network"); sharedValue = properties.getProperty("aeron.tools.mediadriver.shared"); conductorValue = properties.getProperty("aeron.tools.mediadriver.conductor"); } senderIdleStrategy = parseIdleStrategy(command.getOptionValue("sender", senderValue)); receiverIdleStrategy = parseIdleStrategy(command.getOptionValue("receiver", receiverValue)); sharedNetworkIdleStrategy = parseIdleStrategy(command.getOptionValue("network", sharedNetworkValue)); sharedIdleStrategy = parseIdleStrategy(command.getOptionValue("shared", sharedValue)); conductorIdleStrategy = parseIdleStrategy(command.getOptionValue("conductor", conductorValue)); return 0; }
Source:
public int compare(String o1, String o2) { if (Objects.equals(o1, o2)) { return 0; } if (o1 == null) { return -1; } if (o2 == null) { return 1; } Long long1 = GuavaUtils.tryParseLong(o1); Long long2 = GuavaUtils.tryParseLong(o2); if (long1 != null && long2 != null) { return Long.compare(long1, long2); } final BigDecimal bd1 = long1 == null ? convertStringToBigDecimal(o1) : new BigDecimal(long1); final BigDecimal bd2 = long2 == null ? convertStringToBigDecimal(o2) : new BigDecimal(long2); if (bd1 != null && bd2 != null) { return bd1.compareTo(bd2); } if (bd1 == null && bd2 == null) { return StringComparators.LEXICOGRAPHIC.compare(o1, o2); } if (bd1 == null) { return -1; } else { return 1; } }

Target:
public int compare(String o1, String o2) { if (o1 == o2) { return 0; } if (o1 == null) { return -1; } if (o2 == null) { return 1; } Long long1 = GuavaUtils.tryParseLong(o1); Long long2 = GuavaUtils.tryParseLong(o2); if (long1 != null && long2 != null) { return Long.compare(long1, long2); } final BigDecimal bd1 = long1 == null ? convertStringToBigDecimal(o1) : new BigDecimal(long1); final BigDecimal bd2 = long2 == null ? convertStringToBigDecimal(o2) : new BigDecimal(long2); if (bd1 != null && bd2 != null) { return bd1.compareTo(bd2); } if (bd1 == null && bd2 == null) { return StringComparators.LEXICOGRAPHIC.compare(o1, o2); } if (bd1 == null) { return -1; } else { return 1; } }
Source:
private String prepareMessageFormatPattern(int invocationIndex, Arguments arguments) { String result = namePattern.replace("{index}", String.valueOf(invocationIndex)); result = result.replace("{arguments.description}", arguments.description()); if (result.contains("{arguments}")) { String replacement = IntStream.range(0, arguments.get().length) .mapToObj(index -> "{" + index + "}") .collect(joining(", ")); result = result.replace("{arguments}", replacement); } return result; }

Target:
private String prepareMessageFormatPattern(int invocationIndex, Arguments arguments) { String result = namePattern.replace("{index}", String.valueOf(invocationIndex)); result = result.replace("{arguments.description}", arguments.getDescription().orElse("")); if (result.contains("{arguments}")) { String replacement = IntStream.range(0, arguments.size()) .mapToObj(index -> "{" + index + "}") .collect(joining(", ")); result = result.replace("{arguments}", replacement); } return result; }
Source:
public static void remarkTransientFields(Class targetClass) { try { BeanInfo info; info = Introspector.getBeanInfo(targetClass); PropertyDescriptor[] propertyDescriptors = info.getPropertyDescriptors(); for (Field f : Project.class.getDeclaredFields()) { if (Modifier.isTransient(f.getModifiers())) { for (int i = 0; i < propertyDescriptors.length; ++i) { if (propertyDescriptors[i].getName().equals(f.getName())) { propertyDescriptors[i].setValue("transient", Boolean.TRUE); } } } } } catch (IntrospectionException ex) { } }

Target:
public static void remarkTransientFields(Class targetClass) { try { BeanInfo info; info = Introspector.getBeanInfo(targetClass); PropertyDescriptor[] propertyDescriptors = info.getPropertyDescriptors(); for (Field f : Project.class.getDeclaredFields()) { if (Modifier.isTransient(f.getModifiers())) { for (int i = 0; i < propertyDescriptors.length; ++i) { if (propertyDescriptors[i].getName().equals(f.getName())) { propertyDescriptors[i].setValue("transient", Boolean.TRUE); } } } } } catch (IntrospectionException ex) { LOGGER.log(Level.WARNING, "An exception ocurred during remarking transient fields:", ex); } }
Source:
Mono<Response<String>> startCopyFromURLWithResponse(URL sourceURL, Metadata metadata, ModifiedAccessConditions sourceModifiedAccessConditions, BlobAccessConditions destAccessConditions, Context context) { metadata = metadata == null ? new Metadata() : metadata; sourceModifiedAccessConditions = sourceModifiedAccessConditions == null ? new ModifiedAccessConditions() : sourceModifiedAccessConditions; destAccessConditions = destAccessConditions == null ? new BlobAccessConditions() : destAccessConditions; SourceModifiedAccessConditions sourceConditions = new SourceModifiedAccessConditions() .sourceIfModifiedSince(sourceModifiedAccessConditions.ifModifiedSince()) .sourceIfUnmodifiedSince(sourceModifiedAccessConditions.ifUnmodifiedSince()) .sourceIfMatch(sourceModifiedAccessConditions.ifMatch()) .sourceIfNoneMatch(sourceModifiedAccessConditions.ifNoneMatch()); return postProcessResponse(this.azureBlobStorage.blobs().startCopyFromURLWithRestResponseAsync( null, null, sourceURL, null, metadata, null, sourceConditions, destAccessConditions.modifiedAccessConditions(), destAccessConditions.leaseAccessConditions(), context)) .map(rb -> new SimpleResponse<>(rb, rb.deserializedHeaders().copyId())); }

Target:
Mono<Response<String>> startCopyFromURLWithResponse(URL sourceURL, Metadata metadata, ModifiedAccessConditions sourceModifiedAccessConditions, BlobAccessConditions destAccessConditions, Context context) { metadata = metadata == null ? new Metadata() : metadata; sourceModifiedAccessConditions = sourceModifiedAccessConditions == null ? new ModifiedAccessConditions() : sourceModifiedAccessConditions; destAccessConditions = destAccessConditions == null ? new BlobAccessConditions() : destAccessConditions; SourceModifiedAccessConditions sourceConditions = new SourceModifiedAccessConditions() .sourceIfModifiedSince(sourceModifiedAccessConditions.ifModifiedSince()) .sourceIfUnmodifiedSince(sourceModifiedAccessConditions.ifUnmodifiedSince()) .sourceIfMatch(sourceModifiedAccessConditions.ifMatch()) .sourceIfNoneMatch(sourceModifiedAccessConditions.ifNoneMatch()); return postProcessResponse(this.azureBlobStorage.blobs().startCopyFromURLWithRestResponseAsync( null, null, sourceURL, null, metadata, null, null, null, null, sourceConditions, destAccessConditions.modifiedAccessConditions(), destAccessConditions.leaseAccessConditions(), context)) .map(rb -> new SimpleResponse<>(rb, rb.deserializedHeaders().copyId())); }
Source:
public void visitFunction(GoloFunction function) { resetIndexAssignmentCounter(); if(function.isNative()) return; ReferenceTable table = function.getBlock().getReferenceTable(); for (String parameterName : function.getParameterNames()) { LocalReference reference = table.get(parameterName); if (reference == null) { throw new IllegalStateException("[please report this bug] " + parameterName + " is not declared in the references of function " + function.getName()); } reference.setIndex(nextAssignmentIndex()); } function.getBlock().accept(this); }

Target:
public void visitFunction(GoloFunction function) { resetIndexAssignmentCounter(); if(function.isNative()) { return; } ReferenceTable table = function.getBlock().getReferenceTable(); for (String parameterName : function.getParameterNames()) { LocalReference reference = table.get(parameterName); if (reference == null) { throw new IllegalStateException("[please report this bug] " + parameterName + " is not declared in the references of function " + function.getName()); } reference.setIndex(nextAssignmentIndex()); } function.getBlock().accept(this); }
Source:
public static AccountCollection all(Map<String, Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException { return request(RequestMethod.GET, classURL(Account.class), params, AccountCollection.class, (RequestOptions) null); }

Target:
public static AccountCollection all(Map<String, Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException { return all(params, (RequestOptions) null); }
Source:
private void initHost() { loadProcesses.add(new RegisterMods(gameManifest)); loadProcesses.add(new CacheTextures()); loadProcesses.add(new RegisterBlockFamilyFactories()); loadProcesses.add(new RegisterBlocks(gameManifest)); loadProcesses.add(new CacheBlocks()); loadProcesses.add(new InitialiseGraphics()); loadProcesses.add(new InitialiseEntitySystem()); loadProcesses.add(new LoadPrefabs()); loadProcesses.add(new ProcessBlockPrefabs()); loadProcesses.add(new RegisterInputSystem()); loadProcesses.add(new RegisterSystems(netMode)); loadProcesses.add(new InitialiseCommandSystem()); loadProcesses.add(new CreateWorldEntity()); loadProcesses.add(new InitialiseWorld(gameManifest)); loadProcesses.add(new InitialiseSystems()); loadProcesses.add(new LoadEntities()); loadProcesses.add(new InitialiseBlockTypeEntities()); if (netMode == NetworkMode.SERVER) { loadProcesses.add(new StartServer()); } loadProcesses.add(new SetupLocalPlayer()); loadProcesses.add(new AwaitCharacterSpawn()); loadProcesses.add(new PrepareWorld()); }

Target:
private void initHost() { loadProcesses.add(new RegisterMods(gameManifest)); loadProcesses.add(new CacheTextures()); loadProcesses.add(new RegisterBlockFamilyFactories()); loadProcesses.add(new RegisterBlocks(gameManifest)); loadProcesses.add(new CacheBlocks()); loadProcesses.add(new InitialiseGraphics()); loadProcesses.add(new InitialiseEntitySystem()); loadProcesses.add(new LoadPrefabs()); loadProcesses.add(new ProcessBlockPrefabs()); loadProcesses.add(new RegisterInputSystem()); loadProcesses.add(new RegisterSystems(netMode)); loadProcesses.add(new InitialiseCommandSystem()); loadProcesses.add(new InitialiseWorld(gameManifest)); loadProcesses.add(new InitialiseSystems()); loadProcesses.add(new LoadEntities()); loadProcesses.add(new InitialiseBlockTypeEntities()); loadProcesses.add(new CreateWorldEntity()); if (netMode == NetworkMode.SERVER) { loadProcesses.add(new StartServer()); } loadProcesses.add(new SetupLocalPlayer()); loadProcesses.add(new AwaitCharacterSpawn()); loadProcesses.add(new PrepareWorld()); }
Source:
private void deleteGroup(Object id) { Group group = dataService.findOneById(GroupMetadata.GROUP, id, Group.class); List<Role> roles = dataService .findAll( RoleMetadata.ROLE, new QueryImpl<Role>().eq(RoleMetadata.GROUP, id), Role.class) .collect(Collectors.toList()); roles.forEach(this::removeMembers); dataService.delete(RoleMetadata.ROLE, roles.stream()); delegate().deleteById(id); mutableAclService.deleteAcl(new GroupIdentity(group.getName()), true); }

Target:
private void deleteGroup(Object id) { Group group = dataService.findOneById(GroupMetadata.GROUP, id, Group.class); Iterable<Role> roles = group.getRoles(); roles.forEach(this::removeMembers); dataService.delete(RoleMetadata.ROLE, StreamSupport.stream(roles.spliterator(), false)); delegate().deleteById(id); mutableAclService.deleteAcl(new GroupIdentity(group.getName()), true); }
Source:
public static <T> T readObjectFromConfAsBase64(String key, Configuration conf) throws IOException { String b64 = conf.get(key); if (b64 == null) { return null; } byte[] bytes = Base64.decodeBase64(b64.getBytes("UTF-8")); ByteArrayInputStream bais = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ObjectInputStream(bais); try { return (T) ois.readObject(); } catch (ClassNotFoundException e) { LOG.error("Could not read object from config with key " + key, e); throw new IOException(e); } catch (ClassCastException e) { LOG.error("Couldn't cast object read from config with key " + key, e); throw new IOException(e); } }

Target:
public static <T> T readObjectFromConfAsBase64(String key, Configuration conf) throws IOException { String b64 = conf.get(key); if (b64 == null) { return null; } byte[] bytes = Base64.decodeBase64(b64.getBytes("UTF-8")); ByteArrayInputStream bais = null; GZIPInputStream gis = null; ObjectInputStream ois = null; try { bais = new ByteArrayInputStream(bytes); gis = new GZIPInputStream(bais); ois = new ObjectInputStream(gis); return (T) ois.readObject(); } catch (ClassNotFoundException e) { throw new IOException("Could not read object from config with key " + key, e); } catch (ClassCastException e) { throw new IOException("Couldn't cast object read from config with key " + key, e); } finally { Closeables.close(ois); Closeables.close(gis); Closeables.close(bais); } }
Source:
public SiriusGenericDecorator(IDecoratorTarget decoratorTarget, Set<SiriusDecorationDescriptorProvider> decorationDescriptorProviders) { super(decoratorTarget); this.decorationDescriptorProviders = decorationDescriptorProviders; editPart = (GraphicalEditPart) getDecoratorTarget().getAdapter(GraphicalEditPart.class); View view = (View) getDecoratorTarget().getAdapter(View.class); DRepresentationElement model = (DRepresentationElement) view.getElement(); }

Target:
public SiriusGenericDecorator(IDecoratorTarget decoratorTarget, Set<SiriusDecorationDescriptorProvider> decorationDescriptorProviders) { super(decoratorTarget); this.decorationDescriptorProviders = decorationDescriptorProviders; editPart = (GraphicalEditPart) getDecoratorTarget().getAdapter(GraphicalEditPart.class); View view = (View) getDecoratorTarget().getAdapter(View.class); DRepresentationElement model = (DRepresentationElement) view.getElement(); this.session = SessionManager.INSTANCE.getSession(model.getTarget()); }
Source:
public static void main(String[] args) throws InterruptedException { long count = 0; long nanos = System.nanoTime(); int max = 10; if (0 < args.length) { max = Integer.parseInt(args[0]); } List<ExampleDTLSClient> clients = new ArrayList<>(); for (int index = 0; index < max; ++index) { ExampleDTLSClient client = startTest(args); clients.add(client); } for (ExampleDTLSClient client : clients) { count += client.waitReady(100000, TimeUnit.SECONDS); } nanos = System.nanoTime() - nanos; System.out.println(count + " messages in " + TimeUnit.NANOSECONDS.toMillis(nanos) + " ms"); System.out.println((count * 1000) / TimeUnit.NANOSECONDS.toMillis(nanos) + " messages per s"); }

Target:
public static void main(String[] args) throws InterruptedException { long count = 0; long nanos = System.nanoTime(); int max = 1; if (0 < args.length) { max = Integer.parseInt(args[0]); } List<ExampleDTLSClient> clients = new ArrayList<>(); for (int index = 0; index < max; ++index) { ExampleDTLSClient client = startTest(args); clients.add(client); } for (ExampleDTLSClient client : clients) { count += client.waitReady(100000, TimeUnit.SECONDS); } nanos = System.nanoTime() - nanos; System.out.println(count + " messages in " + TimeUnit.NANOSECONDS.toMillis(nanos) + " ms"); System.out.println((count * 1000) / TimeUnit.NANOSECONDS.toMillis(nanos) + " messages per s"); }
Source:
protected PurchaseOrderDocument createPurchaseOrderDocumentFromSourceDocument( PurchaseOrderDocument sourceDocument, String docType) throws WorkflowException { PurchaseOrderDocument newDocument = super.createPurchaseOrderDocumentFromSourceDocument(sourceDocument, docType); List<PurApItem> items = (List<PurApItem>) newDocument.getItems(); items.stream() .flatMap((item) -> item.getSourceAccountingLines().stream()) .forEach((accountingLine) -> accountingLine.setOverrideCode(AccountingLineOverride.CODE.NONE)); return newDocument; }

Target:
protected PurchaseOrderDocument createPurchaseOrderDocumentFromSourceDocument( PurchaseOrderDocument sourceDocument, String docType) throws WorkflowException { PurchaseOrderDocument newDocument = super.createPurchaseOrderDocumentFromSourceDocument(sourceDocument, docType); resetOverrideCodesOnItemAccountingLines(newDocument); return newDocument; }
Source:
public void init() { if (catalinaBase == null || "".equals(catalinaBase)) catalinaBase = catalinaHome; log.info("Java home: " + java); lifecycle = new TomcatServerLifecycle(this); evaluateFile((evaluatedFile) -> { Path filesystemFile; try { URL resource = getClass().getResource("/" + evaluatedFile); filesystemFile = FileSystems.getDefault().getPath(evaluatedFile); Path target = FileSystems.getDefault().getPath(catalinaBase, "conf", "radargun-tomcat-" + ServiceHelper.getContext().getSlaveIndex() + ".xml"); if (resource != null) { try (InputStream is = resource.openStream()) { log.info("Found " + evaluatedFile + " as a resource"); Files.copy(is, target, StandardCopyOption.REPLACE_EXISTING); } } else if (filesystemFile.toFile().exists()) { log.info("Found " + evaluatedFile + " in plugin directory"); Files.copy(filesystemFile, target, StandardCopyOption.REPLACE_EXISTING); } else if (FileSystems.getDefault().getPath(catalinaBase, "conf", evaluatedFile).toFile().exists()) { log.info("Found " + evaluatedFile + " in server conf/ directory"); filesystemFile = FileSystems.getDefault().getPath(catalinaBase, "conf", evaluatedFile); Files.copy(filesystemFile, target, StandardCopyOption.REPLACE_EXISTING); } else { throw new FileNotFoundException("File " + evaluatedFile + " not found neither as resource nor in filesystem."); } } catch (IOException e) { log.error("Failed to copy file", e); throw new RuntimeException(e); } return filesystemFile.toString(); }); }

Target:
public void init() { if (catalinaBase == null || "".equals(catalinaBase)) catalinaBase = catalinaHome; log.info("Java home: " + java); lifecycle = new TomcatServerLifecycle(this); evaluateFile(catalinaHome, "conf"); }
Source:
public QuestionableActivityListingDTO checkNonCuresAuditCriteriaOnCreate(CertifiedProductSearchDetails newListing) { QuestionableActivityListingDTO activity = null; if (ff4j.check(FeatureList.EFFECTIVE_RULE_DATE)) { if (!newListing.getIcs().getInherits()) { List<CertificationResult> matchingCertResults = newListing.getCertificationResults().stream() .filter(cr -> cr.isSuccess() && (cr.getCriterion().getId().equals(d2Criterion.getId()) || cr.getCriterion().getId().equals(d3Criterion.getId()) || cr.getCriterion().getId().equals(d10Criterion.getId()))) .collect(Collectors.toList()); if (matchingCertResults.size() > 0) { String criteriaNumbers = matchingCertResults.stream() .map(cr -> cr.getCriterion().getNumber()) .collect(Collectors.joining(", ")); activity = new QuestionableActivityListingDTO(); activity.setAfter(criteriaNumbers); } } } return activity; }

Target:
public QuestionableActivityListingDTO checkNonCuresAuditCriteriaOnCreate(CertifiedProductSearchDetails newListing) { QuestionableActivityListingDTO activity = null; Date certificationDate = new Date(newListing.getCertificationDate()); if (certificationDate.equals(specialProperties.getEffectiveRuleDate()) || certificationDate.after(specialProperties.getEffectiveRuleDate())) { if (!hasICS(newListing)) { List<CertificationResult> matchingCertResults = newListing.getCertificationResults().stream() .filter(cr -> cr.isSuccess() && (cr.getCriterion().getId().equals(d2Criterion.getId()) || cr.getCriterion().getId().equals(d3Criterion.getId()) || cr.getCriterion().getId().equals(d10Criterion.getId()))) .collect(Collectors.toList()); if (matchingCertResults.size() > 0) { String criteriaNumbers = matchingCertResults.stream() .map(cr -> cr.getCriterion().getNumber()) .collect(Collectors.joining(", ")); activity = new QuestionableActivityListingDTO(); activity.setAfter(criteriaNumbers); } } } return activity; }
Source:
public static void setUpClass() throws Exception { repository = new TestRepository(); repository.create(HistoryGuru.class.getResourceAsStream( "repositories.zip")); RepositoryFactory.setIgnored(); FileUtilities.getAllFiles(new File(repository.getSourceRoot()), files, true); RuntimeEnvironment.getInstance().setVerbose(true); HistoryGuru instance = HistoryGuru.getInstance(); instance.addRepositories(repository.getSourceRoot()); instance.createCache(); Collection<String> repos = new ArrayList<>(); repos.add("git"); repos.add("bazaar"); repos.add("mercurial"); repos.add("teamware"); repos.add("rcs_test"); repos.add("nonexistent"); instance.createCache(repos); }

Target:
public static void setUpClass() throws Exception { repository = new TestRepository(); repository.create(HistoryGuru.class.getResourceAsStream( "repositories.zip")); RepositoryFactory.setIgnored(RuntimeEnvironment.getInstance()); FileUtilities.getAllFiles(new File(repository.getSourceRoot()), files, true); RuntimeEnvironment.getInstance().setVerbose(true); HistoryGuru instance = HistoryGuru.getInstance(); instance.addRepositories(repository.getSourceRoot()); instance.createCache(); Collection<String> repos = new ArrayList<>(); repos.add("git"); repos.add("bazaar"); repos.add("mercurial"); repos.add("teamware"); repos.add("rcs_test"); repos.add("nonexistent"); instance.createCache(repos); }
Source:
public void write(Path path, byte[] data, Consumer<Long> progressConsumer) { FileWrapper directory = getDirectory(path); Optional<FileWrapper> existingFile = userContext.getByPath(path).join(); if (existingFile.isPresent() && existingFile.get().getFileProperties().isDirectory) { return; } AsyncReader resetableFileInputStream = new AsyncReader.ArrayBacked(data); String fileName = path.getFileName().toString(); ProgressConsumer<Long> pc = l -> progressConsumer.accept(l); FileWrapper fileWrapper = directory.uploadOrOverwriteFile(fileName, resetableFileInputStream, data.length, userContext.network, userContext.crypto, pc, userContext.crypto.random.randomBytes(32)).join(); }

Target:
public void write(Path path, byte[] data, Consumer<Long> progressConsumer) { FileWrapper directory = getDirectory(path); AsyncReader resetableFileInputStream = new AsyncReader.ArrayBacked(data); String fileName = path.getFileName().toString(); ProgressConsumer<Long> pc = l -> progressConsumer.accept(l); FileWrapper fileWrapper = directory.uploadOrOverwriteFile(fileName, resetableFileInputStream, data.length, userContext.network, userContext.crypto, pc, userContext.crypto.random.randomBytes(32)).join(); }
Source:
public void handleCancel(String consumerTag) { log.info("consumer has been cancelled unexpectedly: " + consumerTag); queue.handleEnd(); }

Target:
public void handleCancel(String consumerTag) { log.debug("consumer has been cancelled unexpectedly: " + consumerTag); queue.handleEnd(); }
Source:
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; List<Cookie> ssoCookies = CookieUtils.getCookiesForName(req, cookieName); if (ssoCookies.isEmpty()) { for (final String path : unAuthenticatedPaths) { if (req.getRequestURI().contains(path)) { final Subject sub = new Subject(); sub.getPrincipals().add(new PrimaryPrincipal("anonymous")); LOGGER.unAuthenticatePathBypass(path, req.getRequestURI()); continueWithEstablishedSecurityContext(sub, req, res, chain); } } if (req.getMethod().equals("OPTIONS")) { Subject sub = new Subject(); sub.getPrincipals().add(new PrimaryPrincipal("anonymous")); continueWithEstablishedSecurityContext(sub, req, res, chain); } else { sendRedirectToLoginURL(req, res); } } else { for(Cookie ssoCookie : ssoCookies) { String wireToken = ssoCookie.getValue(); try { JWT token = new JWTToken(wireToken); if (validateToken(req, res, chain, token)) { Subject subject = createSubjectFromToken(token); continueWithEstablishedSecurityContext(subject, req, res, chain); return; } } catch (ParseException ignore) { } } if(res != null && !res.isCommitted()) { sendRedirectToLoginURL(req, res); } } }

Target:
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; List<Cookie> ssoCookies = CookieUtils.getCookiesForName(req, cookieName); if (ssoCookies.isEmpty()) { for (final String path : unAuthenticatedPaths) { if (req.getRequestURI().contains(path)) { final Subject sub = new Subject(); sub.getPrincipals().add(new PrimaryPrincipal("anonymous")); LOGGER.unauthenticatedPathBypass(path, req.getRequestURI()); continueWithEstablishedSecurityContext(sub, req, res, chain); } } if ("OPTIONS".equals(req.getMethod())) { Subject sub = new Subject(); sub.getPrincipals().add(new PrimaryPrincipal("anonymous")); continueWithEstablishedSecurityContext(sub, req, res, chain); } else { sendRedirectToLoginURL(req, res); } } else { for(Cookie ssoCookie : ssoCookies) { String wireToken = ssoCookie.getValue(); try { JWT token = new JWTToken(wireToken); if (validateToken(req, res, chain, token)) { Subject subject = createSubjectFromToken(token); continueWithEstablishedSecurityContext(subject, req, res, chain); return; } } catch (ParseException ignore) { } } if(res != null && !res.isCommitted()) { sendRedirectToLoginURL(req, res); } } }
Source:
private List<List<Type>> computeChains(Symbol m, Type type) { Symbol.TypeSymbol typeSymbol = type.symbol(); Set<ClassJavaType> superTypes = ((JavaSymbol.TypeJavaSymbol) typeSymbol).directSuperTypes(); List<List<Type>> result = new ArrayList<>(); for (Type superType: superTypes) { for (List<Type> chain: computeChains(m, superType)) { List<Type> newChain = new ArrayList<>(); newChain.addAll(chain); newChain.add(type); result.add(newChain); } } boolean definesSymbol = definesSymbol(m, typeSymbol, false); boolean isSpecialization = !((JavaType) startType).isParameterized() && ((JavaType) type).isParameterized(); if (definesSymbol && !isSpecialization && result.isEmpty()) { List<Type> newChain = new ArrayList<>(); newChain.add(type); result.add(newChain); } return result; }

Target:
private List<List<Type>> computeChains(Symbol m, Type type) { Symbol.TypeSymbol typeSymbol = type.symbol(); Set<ClassJavaType> superTypes = ((JavaSymbol.TypeJavaSymbol) typeSymbol).directSuperTypes(); List<List<Type>> result = superTypes.stream() .flatMap(superType -> computeChains(m, superType).stream()) .peek(c -> c.add(type)) .collect(Collectors.toList()); boolean definesSymbol = definesSymbol(m, typeSymbol); boolean isSpecialization = !((JavaType) startType).isParameterized() && ((JavaType) type).isParameterized(); if (definesSymbol && !isSpecialization && result.isEmpty()) { result.add(Lists.newArrayList(type)); } return result; }
Source:
public VisitContext getVisitContext(FacesContext context, Collection<String> ids, Set<VisitHint> hints) { if (ids != null) { UIViewRoot viewRoot = context.getViewRoot(); char separator = UINamingContainer.getSeparatorChar(context); String containerClientIdAndSeparator = viewRoot.getContainerClientId(context) + separator; ArrayList<String> newIds = new ArrayList<String>(); for (String id : ids) { if (!id.startsWith(separator + "")) { if (!id.startsWith(containerClientIdAndSeparator)) { id = containerClientIdAndSeparator + id; } } newIds.add(id); } ids = newIds; } return wrappedVisitContextFactory.getVisitContext(context, ids, hints); }

Target:
public VisitContext getVisitContext(FacesContext context, Collection<String> ids, Set<VisitHint> hints) { if (ids != null) { UIViewRoot viewRoot = context.getViewRoot(); String separator = String.valueOf(UINamingContainer.getSeparatorChar(context)); String containerClientIdAndSeparator = viewRoot.getContainerClientId(context) + separator; List<String> newIds = new ArrayList<String>(); for (String id : ids) { if (!id.startsWith(separator) && !id.startsWith(containerClientIdAndSeparator)) { id = containerClientIdAndSeparator + id; } newIds.add(id); } ids = newIds; } return wrappedVisitContextFactory.getVisitContext(context, ids, hints); }
Source:
public SortedMap<Dependency, SortedSet<Dependency>> getMulePlugins() { return this.mulePlugins; }

Target:
public Map<Dependency, Set<Dependency>> getMulePlugins() { return this.mulePlugins; }
Source:
public void prepareTestEnvironment() { File tmpDirFile = new File(System.getProperty("java.io.tmpdir"), "pyflink_" + UUID.randomUUID()); tmpDirFile.mkdirs(); this.tmpDirPath = tmpDirFile.getAbsolutePath(); if (new File("flink-python/lib").exists()) { pythonLibDir = new File("flink-python/lib").getAbsolutePath(); } else if (new File("lib").exists()) { pythonLibDir = new File("lib").getAbsolutePath(); } }

Target:
public void prepareTestEnvironment() { File tmpDirFile = new File(System.getProperty("java.io.tmpdir"), "pyflink_" + UUID.randomUUID()); tmpDirFile.mkdirs(); this.tmpDirPath = tmpDirFile.getAbsolutePath(); }