auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void save(AuditLog event) { Map<String, Object> returnVal = null; if (event.isExternal()) { returnVal = getCallsHandler().executeModification("InsertExternalAuditLog", getExternalEventSqlMapper(event)); } else { returnVal = getCallsHandler().executeModification("InsertAuditLog", getSqlMapper(event)); } event.setAuditLogId((Integer) returnVal.get("audit_log_id")); }

Target:
public void save(AuditLog event) { if (event.isExternal()) { getCallsHandler().executeModification("InsertExternalAuditLog", getExternalEventSqlMapper(event)); } else { getCallsHandler().executeModification("InsertAuditLog", getSqlMapper(event)); } }
Source:
public Map<String, String> getProperties() { return unmodifiableMap(properties .entrySet() .stream() .collect( Collectors.toMap(Map.Entry::getKey, e -> e.getValue().property) )); }

Target:
public Map<String, String> getProperties() { return unmodifiableMap(properties.entrySet().stream() .collect(toMap(Map.Entry::getKey, e -> e.getValue().propertyValue))); }
Source:
public void doSetUserClaimValuesWithID(String userID, Map<String, List<String>> multiValuedClaimsToAdd, Map<String, List<String>> multiValuedClaimsToDelete, Map<String, List<String>> claimsExcludingMultiValuedClaims, String profileName) throws NotImplementedException { throw new NotImplementedException("This functionality is not yet implemented for JDBC userstores."); }

Target:
public void doSetUserClaimValuesWithID(String userID, Map<String, List<String>> multiValuedClaimsToAdd, Map<String, List<String>> multiValuedClaimsToDelete, Map<String, List<String>> claimsExcludingMultiValuedClaims, String profileName) throws NotImplementedException { throw new NotImplementedException("This functionality is not yet implemented for UniqueID JDBC userstores."); }
Source:
public String url(Map<String, ?> parametersMap) { String safeQueryString = ""; for (String parameter : parametersMap.keySet()) { String cleanParameter = this.url(parameter); Object mapValues = parametersMap.get(parameter); if (mapValues.getClass().isArray()) { Object[] values = (Object[]) mapValues; for (Object value : values) { String valueAsString = String.valueOf(value); String cleanValue = this.url(valueAsString); if (!safeQueryString.equals("")) { safeQueryString += AND; } safeQueryString += cleanParameter + EQUALS + cleanValue; } } else if (Collection.class.isAssignableFrom(mapValues.getClass())) { Collection<?> values = (Collection<?>) mapValues; for (Object value : values) { String valueAsString = String.valueOf(value); String cleanValue = this.url(valueAsString); if (!safeQueryString.equals("")) { safeQueryString += AND; } safeQueryString += cleanParameter + EQUALS + cleanValue; } } else { String valueAsString = String.valueOf(mapValues); String cleanValue = this.url(valueAsString); if (!safeQueryString.equals("")) { safeQueryString += AND; } safeQueryString += cleanParameter + EQUALS + cleanValue; } } return safeQueryString; }

Target:
public String url(Map<String, ?> parametersMap) { StringBuilder queryStringBuilder = new StringBuilder(); for (Map.Entry<String, ?> entry : parametersMap.entrySet()) { String cleanKey = this.url(entry.getKey()); Object mapValues = entry.getValue(); if (mapValues.getClass().isArray()) { Object[] values = (Object[]) mapValues; for (Object value : values) { addQueryStringPair(cleanKey, value, queryStringBuilder); } } else if (Collection.class.isAssignableFrom(mapValues.getClass())) { Collection<?> values = (Collection<?>) mapValues; for (Object value : values) { addQueryStringPair(cleanKey, value, queryStringBuilder); } } else { addQueryStringPair(cleanKey, mapValues, queryStringBuilder); } } return queryStringBuilder.toString(); }
Source:
private boolean isInEmulator() { return Build.FINGERPRINT.startsWith("generic") || Build.FINGERPRINT.startsWith("unknown") || Build.MODEL.contains("google_sdk") || Build.MODEL.contains("Emulator") || Build.MODEL.contains("Android SDK built for x86") || Build.MANUFACTURER.contains("Genymotion") || (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic")) || "google_sdk".equals(Build.PRODUCT); }

Target:
private boolean isInEmulator() { return Build.FINGERPRINT.startsWith("generic") || Build.FINGERPRINT.startsWith("unknown") || Build.MODEL.contains("google_sdk") || Build.MODEL.contains("Emulator") || Build.MODEL.contains("Android SDK built for x86") || Build.MANUFACTURER.contains("Genymotion") || (Build.BRAND.startsWith("generic") && Build.DEVICE.startsWith("generic")) || Build.PRODUCT.equals("google_sdk"); }
Source:
void delete(@Nonnull UnionVFile file) throws CannotDeleteFileException { if (!file.isWritable()) { throw new CannotDeleteFileException(file.getLocation()); } else { file.getWrappedFiles().get(0).delete(); } }

Target:
void delete(@Nonnull UnionVFile file) throws CannotDeleteFileException { if (!isWritable()) { throw new UnsupportedOperationException(); } try { UnionVDir parent = (UnionVDir) file.getParent(); parent.internalDelete(file.getName()); } catch (UnsupportedOperationException e) { throw new AssertionError(e); } }
Source:
public void setupBackdrop(Provider provider){ identifierTv = findViewById(R.id.provider_dashboard_identifier_tv); editProviderIv = findViewById(R.id.provider_dashboard_edit_iv); if(provider != null){ String display = provider.getPerson().getDisplay(); if(display == null){ display = provider.getPerson().getName().getNameString(); } setTitle(display); identifierTv.setText(provider.getIdentifier()); } editProviderIv.setOnClickListener(v -> { Intent intent = new Intent(ProviderDashboardActivity.this, AddProviderActivity.class); intent.putExtra(ApplicationConstants.BundleKeys.PROVIDER_ID_BUNDLE, provider); startActivityForResult(intent, EDIT_PROVIDER_REQ_CODE); }); }

Target:
public void setupBackdrop(Provider provider) { identifierTv = findViewById(R.id.provider_dashboard_identifier_tv); editProviderIv = findViewById(R.id.provider_dashboard_edit_iv); if (provider != null) { String display = provider.getPerson().getDisplay(); if (display == null) { display = provider.getPerson().getName().getNameString(); } setTitle(display); identifierTv.setText(provider.getIdentifier()); } editProviderIv.setOnClickListener(view -> { Intent intent = new Intent(ProviderDashboardActivity.this, AddProviderActivity.class); intent.putExtra(ApplicationConstants.BundleKeys.PROVIDER_ID_BUNDLE, provider); startActivityForResult(intent, EDIT_PROVIDER_REQ_CODE); }); }
Source:
private void setLength( PageCursor cursor, long length ) throws IOException { if ( !cursor.next( (length - 1) / entriesPerPage ) ) { throw new IllegalStateException(); } }

Target:
private void setLength( PageCursor cursor, long length ) throws IOException { if ( !cursor.next( (length - 1) / entriesPerPage ) ) { throw new IllegalStateException( String.format( "Unable to extend the backing file %s to desired size %d.", pagedFile, length ) ); } }
Source:
public static EC2HardwareBuilder t3_nano() { return new EC2HardwareBuilder(InstanceType.T3_NANO).t1() .ram(512) .processors(ImmutableList.of(new Processor(2.0, 1.0))); }

Target:
public static EC2HardwareBuilder t3_nano() { return new EC2HardwareBuilder(InstanceType.T3_NANO).t1() .ram(512) .processors(ImmutableList.of(new Processor(2.0, 2.5))); }
Source:
private SessionFactory initABasicSessionFactory() { backendMock.expectSchema( AutomaticIndexingBasicIT.IndexedEntity.INDEX, b -> b .field( "indexedField", String.class ) .field( "noReindexOnUpdateField", String.class ) .field( "indexedElementCollectionField", String.class ) .field( "noReindexOnUpdateElementCollectionField", String.class ) ); SessionFactory factory = ormSetupHelper.withBackendMock( backendMock ) .setup( AutomaticIndexingBasicIT.IndexedEntity.class ); backendMock.verifyExpectationsMet(); return factory; }

Target:
private SessionFactory initABasicSessionFactory() { backendMock.expectAnySchema( IndexedEntity.INDEX ); SessionFactory factory = ormSetupHelper.withBackendMock( backendMock ) .setup( IndexedEntity.class ); backendMock.verifyExpectationsMet(); return factory; }
Source:
public void testRetriesCorrectNumberOfTimesAndFindsRandomBackoffWithInExponentialInterval() throws Exception { Random random = mock(Random.class); ExponentialBackoff backoff = new ExponentialBackoff(3, ONE_SECOND, random); when(random.nextDouble()).thenReturn(1.0); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(2)); when(random.nextDouble()).thenReturn(1.0); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(4)); when(random.nextDouble()).thenReturn(1.0); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(8)); assertThat(backoff.nextBackoff()).isEmpty(); }

Target:
public void testRetriesCorrectNumberOfTimesAndFindsRandomBackoffWithInExponentialInterval() throws Exception { Random random = mock(Random.class); ExponentialBackoff backoff = new ExponentialBackoff(3, ONE_SECOND, random); when(random.nextDouble()).thenReturn(1.0); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(2)); when(random.nextDouble()).thenReturn(1.0); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(4)); when(random.nextDouble()).thenReturn(0.5); assertThat(backoff.nextBackoff()).contains(ONE_SECOND.multipliedBy(4 )); assertThat(backoff.nextBackoff()).isEmpty(); }
Source:
@Deprecated public EmailDeviceInfoLens(Context context, String[] addresses, String subject, String version, int versionCode) { this(context, subject, version, versionCode, addresses); }

Target:
public EmailDeviceInfoLens(Context context, String[] addresses, String subject, String version, int versionCode) { this(context, subject, version, versionCode, addresses); }
Source:
public Response getDatasourceRuleHistory( @PathParam("dataSourceName") final String dataSourceName, @QueryParam("interval") final String interval, @QueryParam("count") final Integer count ) { Interval theInterval = interval == null ? null : new Interval(interval); if (theInterval == null && count != null && count > 0) { return Response.ok(auditManager.fetchAuditHistory(dataSourceName, "rules", count)) .build(); } return Response.ok(auditManager.fetchAuditHistory(dataSourceName, "rules", theInterval)) .build(); }

Target:
public Response getDatasourceRuleHistory( @PathParam("dataSourceName") final String dataSourceName, @QueryParam("interval") final String interval, @QueryParam("count") final Integer count ) { Interval theInterval = interval == null ? null : new Interval(interval); if (theInterval == null && count != null) { try { return Response.ok(auditManager.fetchAuditHistory(dataSourceName, "rules", count)) .build(); } catch (IllegalArgumentException e) { return Response.status(Response.Status.BAD_REQUEST) .entity(ImmutableMap.<String, Object>of("error", e.getMessage())) .build(); } } return Response.ok(auditManager.fetchAuditHistory(dataSourceName, "rules", theInterval)) .build(); }
Source:
public static String getSpaceGroupId(String categoryId) { String categoryPath = ""; String spaceGroupId = ""; String rootCatId = categoryId; try { FAQService faqService = CommonsUtils.getService(FAQService.class); Category category = faqService.getCategoryById(categoryId); categoryPath = category.getPath(); if (categoryPath.indexOf(Utils.CATE_SPACE_ID_PREFIX) >= 0){ rootCatId = categoryPath.split("/")[1]; } } catch (Exception e) { e.printStackTrace(); } if (rootCatId.indexOf(Utils.CATE_SPACE_ID_PREFIX) < 0) return ""; String prettyname = rootCatId.split(Utils.CATE_SPACE_ID_PREFIX)[1]; spaceGroupId = SpaceUtils.SPACE_GROUP + CommonUtils.SLASH + prettyname; return spaceGroupId; }

Target:
public static String getSpaceGroupId(String categoryId) { String spaceGroupId = ""; String spaceCateId = categoryId; try { FAQService faqService = CommonsUtils.getService(FAQService.class); Category category = faqService.getCategoryById(categoryId); String categoryPath = category.getPath(); if (categoryPath.indexOf(Utils.CATE_SPACE_ID_PREFIX) >= 0){ spaceCateId = categoryPath.split("/")[1]; } } catch (Exception e) { LOG.warn("Get category id failed.", e); } if (spaceCateId.indexOf(Utils.CATE_SPACE_ID_PREFIX) < 0) return ""; String prettyname = spaceCateId.split(Utils.CATE_SPACE_ID_PREFIX)[1]; spaceGroupId = SpaceUtils.SPACE_GROUP + CommonUtils.SLASH + prettyname; return spaceGroupId; }
Source:
private List<EntitySkinnable> getNearbySkinnableNPCs(Player player) { List<EntitySkinnable> results = new ArrayList<EntitySkinnable>(); for (NPC npc : getAllNPCs()) { Entity npcEntity = npc.getEntity(); if (npcEntity instanceof Player && player.canSee((Player) npcEntity) && player.getWorld().equals(npcEntity.getWorld()) && player.getLocation().distanceSquared(npcEntity.getLocation()) < 100 * 100) { EntitySkinnable skinnable = NMS.getSkinnableNPC(npcEntity); assert skinnable != null; results.add(skinnable); } } return results; }

Target:
private List<SkinnableEntity> getNearbySkinnableNPCs(Player player) { List<SkinnableEntity> results = new ArrayList<SkinnableEntity>(); double viewDistance = Setting.NPC_SKIN_VIEW_DISTANCE.asDouble(); viewDistance *= viewDistance; for (NPC npc : getAllNPCs()) { Entity npcEntity = npc.getEntity(); if (npcEntity instanceof Player && player.canSee((Player) npcEntity) && player.getWorld().equals(npcEntity.getWorld()) && player.getLocation(CACHE_LOCATION) .distanceSquared(npc.getStoredLocation()) < viewDistance) { SkinnableEntity skinnable = NMS.getSkinnable(npcEntity); results.add(skinnable); } } return results; }
Source:
public CaseMigrationReportInstance migrateCaseInstance(String containerId, String caseId, String targetContainerId, String payload, String marshallingType) { Map<String, Object> mapping = Collections.emptyMap(); if (payload != null) { logger.debug("About to unmarshal mapping from payload: '{}' using container marshaller", payload, containerId); mapping = marshallerHelper.unmarshal(containerId, payload, marshallingType, Map.class); } if (mapping == null || !mapping.containsKey("ProcessMapping")) { throw new IllegalArgumentException("Case instance migration requires ProcessMapping to be provided"); } Map<String, String> processMapping = (Map<String, String>) mapping.getOrDefault("ProcessMapping", Collections.emptyMap()); Map<String, String> nodeMapping = (Map<String, String>) mapping.getOrDefault("ProcessMapping", Collections.emptyMap()); logger.debug("About to migrate case instance with id from container '{}' to container '{}' with process mapping '{}' and with node mapping {}", caseId, containerId, targetContainerId, processMapping, nodeMapping); CaseMigrationReport report = caseInstanceMigrationService.migrate(caseId, targetContainerId, processMapping, nodeMapping); logger.debug("Migration of case instance finished with report {}", caseId, report); return ConvertUtils.convertCaseMigrationReport(caseId, report); }

Target:
public CaseMigrationReportInstance migrateCaseInstance(String containerId, String caseId, String targetContainerId, String payload, String marshallingType) { Map<String, Object> mapping = Collections.emptyMap(); if (payload != null) { logger.debug("About to unmarshal mapping from payload: '{}' using container marshaller", payload, containerId); mapping = marshallerHelper.unmarshal(containerId, payload, marshallingType, Map.class); } if (mapping == null || !mapping.containsKey("ProcessMapping")) { throw new IllegalArgumentException("Case instance migration requires ProcessMapping to be provided"); } Map<String, String> processMapping = (Map<String, String>) mapping.get("ProcessMapping"); Map<String, String> nodeMapping = (Map<String, String>) mapping.getOrDefault("NodeMapping", Collections.emptyMap()); logger.debug("About to migrate case instance with id from container '{}' to container '{}' with process mapping '{}' and with node mapping {}", caseId, containerId, targetContainerId, processMapping, nodeMapping); CaseMigrationReport report = caseInstanceMigrationService.migrate(caseId, targetContainerId, processMapping, nodeMapping); logger.debug("Migration of case instance finished with report {}", caseId, report); return ConvertUtils.convertCaseMigrationReport(caseId, report); }
Source:
public static boolean isOptionChecked_inCDT(IProject project, String optionIDString, String parentToolName) { IConfiguration ActiveConf = helper_getActiveConfiguration(project); ITool gccCompileriTool = helper_getGccCompilerTool(parentToolName, ActiveConf); IOption optionTemplate = gccCompileriTool.getOptionById(optionIDString); if (optionTemplate == null) { MessageDialogSyncedRunnable.openErrorSyncedRunnable("Error", "Could not aquire Option template VREF__0000040"); return false; } try { IOption MutableOptionToSet = gccCompileriTool.getOptionToSet(optionTemplate, false); boolean value = (boolean) MutableOptionToSet.getValue(); return value; } catch (BuildException e) { MessageDialogSyncedRunnable.openErrorSyncedRunnable("Error", "Failed to get option for writing VREF__0000034"); e.printStackTrace(); } return false; }

Target:
public static boolean isOptionChecked_inCDT(IProject project, String optionIDString, String parentToolName) { IConfiguration ActiveConf = helper_getActiveConfiguration(project); ITool gccCompileriTool = helper_getGccCompilerTool(parentToolName, ActiveConf); IOption optionTemplate = gccCompileriTool.getOptionById(optionIDString); if (optionTemplate == null) { MessageDialogSyncedRunnable.openErrorSyncedRunnable("Error", "Could not aquire Option template"); return false; } try { IOption MutableOptionToSet = gccCompileriTool.getOptionToSet(optionTemplate, false); return (boolean) MutableOptionToSet.getValue(); } catch (BuildException e) { MessageDialogSyncedRunnable.openErrorSyncedRunnable("Error", "Failed to get option for writing"); } return false; }
Source:
private void createFiveObservationsForPatientCodeCategory(IIdType thePatientId, String theObservationCode, String theCategoryCode, Integer theTimeOffset) { for (int idx=0; idx<5; idx++ ) { Observation obs = new Observation(); obs.getSubject().setReferenceElement(thePatientId); obs.getCode().addCoding().setCode(theObservationCode).setSystem(codeSystem); obs.setValue(new StringType(theObservationCode + "_0")); Date effectiveDtm = new Date(observationDate.getTimeInMillis() - (3600*1000*(theTimeOffset+idx))); obs.setEffective(new DateTimeType(effectiveDtm)); obs.getCategoryFirstRep().addCoding().setCode(theCategoryCode).setSystem(categorySystem); String observationId = myObservationDao.create(obs, mockSrd()).getId().toUnqualifiedVersionless().getValue(); observationPatientMap.put(observationId, thePatientId.getValue()); observationCategoryMap.put(observationId, theCategoryCode); observationCodeMap.put(observationId, theObservationCode); observationEffectiveMap.put(observationId, effectiveDtm); } }

Target:
private void createFiveObservationsForPatientCodeCategory(IIdType thePatientId, String theObservationCode, String theCategoryCode, Integer theTimeOffset) { for (int idx=0; idx<5; idx++ ) { Observation obs = new Observation(); obs.getSubject().setReferenceElement(thePatientId); obs.getCode().addCoding().setCode(theObservationCode).setSystem(codeSystem); obs.setValue(new StringType(theObservationCode + "_0")); Date effectiveDtm = calculateObservationDateFromOffset(theTimeOffset, idx); obs.setEffective(new DateTimeType(effectiveDtm)); obs.getCategoryFirstRep().addCoding().setCode(theCategoryCode).setSystem(categorySystem); String observationId = myObservationDao.create(obs, mockSrd()).getId().toUnqualifiedVersionless().getValue(); observationPatientMap.put(observationId, thePatientId.getValue()); observationCategoryMap.put(observationId, theCategoryCode); observationCodeMap.put(observationId, theObservationCode); observationEffectiveMap.put(observationId, effectiveDtm); } }
Source:
protected List<FormModelCreationContainer> getRegisteredCreationManagers() { List<FormModelCreationContainer> registeredContainers = new ArrayList<>(); SyncBeanDef<FormModelCreationContainer> containerDef = IOC.getBeanManager().lookupBean( FormModelCreationContainer.class ); Collection<SyncBeanDef<FormModelCreationViewManager>> managerDefs = IOC.getBeanManager().lookupBeans( FormModelCreationViewManager.class ); managerDefs.forEach( managerDef -> { FormModelCreationContainer container = containerDef.newInstance(); container.setup( managerDef.newInstance(), aContainer -> selectContainer( aContainer ) ); registeredContainers.add( container ); } ); return registeredContainers; }

Target:
protected List<FormModelCreationContainer> getRegisteredCreationManagers() { List<FormModelCreationContainer> registeredContainers = new ArrayList<>(); modelManagerInstance.forEach( modelManager -> { FormModelCreationContainer container = containerInstance.get(); container.setup( modelManager, this::selectContainer ); registeredContainers.add( container ); } ); return registeredContainers; }
Source:
public DriverQueryPlan explain(String query, Configuration conf) throws GrillException { checkConfigured(); String rewrittenQuery = rewriteQuery(query,conf); String explainQuery = "explain " + rewrittenQuery; LOG.info("explain " + rewrittenQuery); Configuration explainConf = new Configuration(conf); explainConf.setBoolean(GrillConfConstants.QUERY_PERSISTENT_RESULT_INDRIVER, false); QueryContext explainQueryCtx = new QueryContext(explainQuery, null, explainConf); JdbcQueryContext queryContext = new JdbcQueryContext(explainQueryCtx); queryContext.setPrepared(false); queryContext.setRewrittenQuery(rewrittenQuery); QueryResult result = new QueryCallable(queryContext).call(); if (result.error != null) { throw new GrillException("Query explain failed!", result.error); } return new JDBCQueryPlan(); }

Target:
public DriverQueryPlan explain(String query, Configuration conf) throws GrillException { checkConfigured(); String rewrittenQuery = rewriteQuery(query,conf); Configuration explainConf = new Configuration(conf); explainConf.setBoolean(GrillConfConstants.QUERY_PERSISTENT_RESULT_INDRIVER, false); String explainQuery = explainConf.get(JDBC_EXPLAIN_KEYWORD) + rewrittenQuery; LOG.info("Explain Query : " + explainQuery); QueryContext explainQueryCtx = new QueryContext(explainQuery, null, explainConf); QueryResult result = executeInternal(explainQueryCtx,explainQuery); if (result.error != null) { throw new GrillException("Query explain failed!", result.error); } return new JDBCQueryPlan(); }
Source:
public boolean create(Identifier identifierRecord) { LOG.trace("IdentifierDAO.create() - Begin"); boolean result = true; if (identifierRecord != null) { result = super.create(identifierRecord); } LOG.trace("IdentifierDAO.create() - End"); return result; }

Target:
public boolean create(Identifier identifierRecord) { LOG.trace("IdentifierDAO.create()"); return identifierRecord != null ? super.create(identifierRecord) : true; }
Source:
private void purgeReportRecords() { Calendar deadline = Calendar.getInstance(); deadline.add(Calendar.YEAR, ONE_YEAR_AGO); log.info("Starting scan for Report entries, older than: " + deadline.getTime()); ReportDao reportDao = new ReportDao(); List<Report> reportList = reportDao.list("all"); int retirees = 0; for (Report item : reportList) { if (item.getCreatedDateTime() != null && deadline.getTime().after(item.getCreatedDateTime())) { log.info("Deleting old Report entry: " + item.getKey().getId()); SurveyTaskUtil.spawnDeleteTask(SurveyTaskRequest.DELETE_REPORT_ACTION, item.getKey().getId()); retirees++; } } log.info("Attempted to retire " + retirees + " of " + reportList.size()); }

Target:
private void purgeReportRecords() { Calendar deadline = Calendar.getInstance(); deadline.add(Calendar.YEAR, ONE_YEAR_AGO); log.fine("Starting scan for Report entries, older than: " + deadline.getTime()); ReportDao reportDao = new ReportDao(); List<Report> reportList = reportDao.listAllCreatedBefore(deadline.getTime()); log.fine("Attempting to retire " + reportList.size() + " old Report entries"); reportDao.delete(reportList); }
Source:
public synchronized byte[] evaluateResponse(final byte[] response) throws SaslException { try { final byte[] challenge = delegate.evaluateResponse(response); if (isComplete() && ! complete) { complete = true; cancelTimeoutTask(); } return challenge; } catch (SaslException | RuntimeException | Error e) { if (isComplete() && ! complete) { complete = true; cancelTimeoutTask(); } throw e; } }

Target:
public synchronized byte[] evaluateResponse(final byte[] response) throws SaslException { if (terminated) { throw log.mechServerTimedOut(getMechanismName()).toSaslException(); } try { final byte[] challenge = delegate.evaluateResponse(response); if (isComplete() && ! complete) { complete = true; cancelTimeoutTask(); } return challenge; } catch (SaslException | RuntimeException | Error e) { if (isComplete() && ! complete) { complete = true; cancelTimeoutTask(); } throw e; } }
Source:
public static void register(Essentials plugin) { if (!((Reserve)Bukkit.getServer().getPluginManager().getPlugin("Reserve")).economyProvided()) { Reserve.instance().registerProvider(new ReserveEssentials(plugin)); } }

Target:
public static void register(Essentials plugin) { Reserve.instance().registerProvider(new ReserveEssentials(plugin)); }
Source:
private void runOrQueueRunnable(Runnable runnable, long scheduledTime) { if(isExecutingRunnable) { queueRunnableAndSort(runnable, scheduledTime); return; } isExecutingRunnable = true; runnable.run(); isExecutingRunnable = false; }

Target:
private void runOrQueueRunnable(Runnable runnable, long scheduledTime) { if (isExecutingRunnable) { queueRunnableAndSort(runnable, scheduledTime); return; } isExecutingRunnable = true; try { runnable.run(); } finally { isExecutingRunnable = false; } }
Source:
public V get(K key) { Map<K, V> map = cache.get(); V value = map.get(key); if (value != null) { return value; } value = loader.apply(key); requireNonNull(value, "value must not be null"); map.put(key, value); return value; }

Target:
public V get(K key) { V value = cache.get().computeIfAbsent(key, loader); return requireNonNull(value, "loader returned null value"); }
Source:
private static Set<Symbol> typingModuleSymbols() { Map<String, Symbol> typingPython3 = getModuleSymbols("3/typing.pyi", TYPING); Map<String, Symbol> typingPython2 = getModuleSymbols("2/typing.pyi", TYPING); Set<Symbol> typingModuleSymbols = new HashSet<>(); typingPython3.forEach((fqn, python3Symbol) -> { Symbol python2Symbol = typingPython2.get(fqn); if (python2Symbol == null) { typingModuleSymbols.add(python3Symbol); } else { typingModuleSymbols.add(new SymbolImpl(python3Symbol.name(), python3Symbol.fullyQualifiedName())); } }); typingPython2.forEach((fqn, python2Symbol) -> { if (typingPython3.get(fqn) == null) { typingModuleSymbols.add(python2Symbol); } }); return typingModuleSymbols; }

Target:
static Set<Symbol> typingModuleSymbols() { Map<String, Symbol> typingPython3 = getModuleSymbols("3/typing.pyi", TYPING); Map<String, Symbol> typingPython2 = getModuleSymbols("2/typing.pyi", TYPING); Set<Symbol> typingModuleSymbols = new HashSet<>(); typingPython3.forEach((fqn, python3Symbol) -> { Symbol python2Symbol = typingPython2.get(fqn); if (python2Symbol == null) { typingModuleSymbols.add(python3Symbol); } else { typingModuleSymbols.add(new SymbolImpl(python3Symbol.name(), python3Symbol.fullyQualifiedName())); } }); typingPython2.forEach((fqn, python2Symbol) -> { if (typingPython3.get(fqn) == null) { typingModuleSymbols.add(python2Symbol); } }); return typingModuleSymbols; }
Source:
protected OptionParser buildOptionParser() { OptionParser parser = new OptionParser(); parser.accepts( "config", "location of config file" ).withRequiredArg(); parser.accepts( "__separator_1", "" ); parser.accepts( "database", "database that contains the table to bootstrap").withRequiredArg(); parser.accepts( "table", "table to bootstrap").withRequiredArg(); parser.accepts( "__separator_2", "" ); parser.accepts( "abort", "bootstrap_id to abort" ).withRequiredArg(); parser.accepts( "monitor", "bootstrap_id to abort" ).withRequiredArg(); parser.accepts( "__separator_3", "" ); parser.accepts( "log_level", "log level, one of DEBUG|INFO|WARN|ERROR. default: WARN" ).withRequiredArg(); parser.accepts( "host", "mysql host. default: localhost").withRequiredArg(); parser.accepts( "user", "mysql username. default: maxwell" ).withRequiredArg(); parser.accepts( "password", "mysql password" ).withRequiredArg(); parser.accepts( "port", "mysql port. default: 3306" ).withRequiredArg(); parser.accepts( "schema_database", "database that contains maxwell schema and state").withRequiredArg(); parser.accepts( "help", "display help").forHelp(); BuiltinHelpFormatter helpFormatter = new BuiltinHelpFormatter(200, 4) { @Override public String format(Map<String, ? extends OptionDescriptor> options) { this.addRows(options.values()); String output = this.formattedHelpOutput(); return output.replaceAll("--__separator_.*", ""); } }; parser.formatHelpWith(helpFormatter); return parser; }

Target:
protected OptionParser buildOptionParser() { OptionParser parser = new OptionParser(); parser.accepts( "config", "location of config file" ).withRequiredArg(); parser.accepts( "__separator_1", "" ); parser.accepts( "database", "database that contains the table to bootstrap").withRequiredArg(); parser.accepts( "table", "table to bootstrap").withRequiredArg(); parser.accepts( "__separator_2", "" ); parser.accepts( "abort", "bootstrap_id to abort" ).withRequiredArg(); parser.accepts( "monitor", "bootstrap_id to monitor" ).withRequiredArg(); parser.accepts( "__separator_3", "" ); parser.accepts( "log_level", "log level, one of DEBUG|INFO|WARN|ERROR. default: WARN" ).withRequiredArg(); parser.accepts( "host", "mysql host. default: localhost").withRequiredArg(); parser.accepts( "user", "mysql username. default: maxwell" ).withRequiredArg(); parser.accepts( "password", "mysql password" ).withRequiredArg(); parser.accepts( "port", "mysql port. default: 3306" ).withRequiredArg(); parser.accepts( "schema_database", "database that contains maxwell schema and state").withRequiredArg(); parser.accepts( "help", "display help").forHelp(); BuiltinHelpFormatter helpFormatter = new BuiltinHelpFormatter(200, 4) { @Override public String format(Map<String, ? extends OptionDescriptor> options) { this.addRows(options.values()); String output = this.formattedHelpOutput(); return output.replaceAll("--__separator_.*", ""); } }; parser.formatHelpWith(helpFormatter); return parser; }
Source:
public String toString() { StringBuilder result = new StringBuilder(); result.append("Channel(s): ").append(getNumberOfChannels()); if (getAudioDelay() != 0) { result.append(", Delay: ").append(getAudioDelay()); } return result.toString(); }

Target:
public String toString() { StringBuilder result = new StringBuilder(); result.append("Channel(s): ").append(getNumberOfChannels()); result.append(", Sample Frequency: ").append(getSampleFrequency()).append(" Hz"); if (getAudioDelay() != 0) { result.append(", Delay: ").append(getAudioDelay()); } return result.toString(); }
Source:
public Observable<Id> deleteAllEntities(ApplicationScope applicationScope) { if(applicationScope.getApplication().getUuid().equals(CpNamingUtils.MANAGEMENT_APPLICATION_ID)){ throw new IllegalArgumentException("Can't delete from management app"); } Observable appObservable = Observable.just(applicationScope); Observable<Id> countObservable = allEntityIdsObservable.getEntities(appObservable) .doOnNext(entity -> asyncEventService.queueEntityDelete(applicationScope, entity.getId())) .map(entityIdScope -> entityIdScope.getId()); return countObservable; }

Target:
public Observable<Id> deleteAllEntities(ApplicationScope applicationScope) { if (applicationScope.getApplication().getUuid().equals(CpNamingUtils.MANAGEMENT_APPLICATION_ID)) { throw new IllegalArgumentException("Can't delete from management app"); } Observable appObservable = Observable.just(applicationScope); EntityCollectionManager entityCollectionManager = entityCollectionManagerFactory.createCollectionManager(applicationScope); GraphManager graphManager = graphManagerFactory.createEdgeManager(applicationScope); MapManager mapManager = getMapManagerForTypes(applicationScope); Observable<Id> countObservable = allEntityIdsObservable.getEntities(appObservable) .map(entityIdScope -> ((EntityIdScope) entityIdScope).getId()) .skip(1) .map(id -> { entityCollectionManager.mark((Id) id) .mergeWith(graphManager.markNode((Id) id, createGraphOperationTimestamp())).toBlocking().last(); return id; }) .doOnNext(id -> deleteAsync(mapManager, applicationScope, (Id) id)); return countObservable; }
Source:
private int sizeExcludingBlobAndCrcSize() { int sizeToReturn = (int) super.sizeInBytes() + blobId.sizeInBytes() + BlobPropertiesSerDe.getBlobPropertiesSerDeSize(properties) + UserMetadata_Size_InBytes + usermetadata.capacity() + Blob_Size_InBytes + BlobType_Size_InBytes; if (getVersionId() == Put_Request_Version_V4) { sizeToReturn += BlobKeyLength_Size_InBytes; if (blobKey != null) { sizeToReturn += blobKey.length; } } return sizeToReturn; }

Target:
private int sizeExcludingBlobAndCrcSize() { if (sizeExcludingBlobAndCrc == -1) { sizeExcludingBlobAndCrc = (int) super.sizeInBytes() + blobId.sizeInBytes() + BlobPropertiesSerDe.getBlobPropertiesSerDeSize(properties) + USERMETADATA_SIZE_IN_BYTES + usermetadata.capacity() + BLOB_SIZE_IN_BYTES + BLOBTYPE_SIZE_IN_BYTES; if (getVersionId() == PUT_REQUEST_VERSION_V4) { sizeExcludingBlobAndCrc += BLOBKEYLENGTH_SIZE_IN_BYTES; if (blobKey != null) { sizeExcludingBlobAndCrc += blobKey.remaining(); } } } return sizeExcludingBlobAndCrc; }
Source:
private void createSocialOverflow(ViewGroup parent) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getActivity()); socialOverflowButtonWrapper = (RelativeLayout) getActivity().getLayoutInflater().inflate(R.layout.navdrawer_overflow_button, parent, false); socialOverflowButton = (ImageButton) socialOverflowButtonWrapper.findViewById(R.id.es_navigationOverflowButton); setSocialOverflowButtonListener(); socialOverflowContainer = new LinearLayout(getContext()); socialOverflowContainer.setOrientation(LinearLayout.VERTICAL); socialOverflowContainer.setVisibility(View.GONE); boolean overflowIsShown = sp.getBoolean(IS_OVERFLOW_SHOWN, false); if (overflowIsShown) { openOverflow(); } else { closeOverflow(); } }

Target:
private void createSocialOverflow(ViewGroup parent) { SharedPreferences sp = Application.getPrefs(); socialOverflowButton = (LinearLayout) getActivity().getLayoutInflater().inflate(R.layout.navdrawer_overflow_button, parent, false); setSocialOverflowButtonListener(); socialOverflowContainer = new LinearLayout(getContext()); socialOverflowContainer.setOrientation(LinearLayout.VERTICAL); socialOverflowContainer.setVisibility(View.GONE); boolean overflowIsShown = sp.getBoolean(IS_OVERFLOW_SHOWN, false); if (overflowIsShown) { openOverflow(); } else { closeOverflow(); } }
Source:
public int decompress(byte[] input, int offset, int length, OutputBuffer output) throws OrcCorruptionException { try { int uncompressedLength = (int) ZstdDecompressor.getDecompressedSize(input, offset, length); if (uncompressedLength > maxBufferSize) { throw new OrcCorruptionException(orcDataSourceId, "Zstd requires buffer (%s) larger than max size (%s)", uncompressedLength, maxBufferSize); } byte[] buffer = output.initialize(uncompressedLength); return decompressor.decompress(input, offset, length, buffer, 0, buffer.length); } catch (MalformedInputException e) { throw new OrcCorruptionException(e, orcDataSourceId, "Invalid compressed stream"); } }

Target:
public int decompress(byte[] input, int offset, int length, OutputBuffer output) throws OrcCorruptionException { try { long uncompressedLength = ZstdDecompressor.getDecompressedSize(input, offset, length); if (uncompressedLength > maxBufferSize) { throw new OrcCorruptionException(orcDataSourceId, "Zstd requires buffer (%s) larger than max size (%s)", uncompressedLength, maxBufferSize); } byte[] buffer = output.initialize(toIntExact(uncompressedLength)); return decompressor.decompress(input, offset, length, buffer, 0, buffer.length); } catch (MalformedInputException e) { throw new OrcCorruptionException(e, orcDataSourceId, "Invalid compressed stream"); } }
Source:
public static Object checkAndCopy(Object val) { if (val == null) { } else if (val instanceof Number && !(val instanceof BigDecimal)) { } else if (val instanceof Boolean) { } else if (val instanceof String) { } else if (val instanceof Character) { } else if (val instanceof CharSequence) { val = val.toString(); } else if (val instanceof JsonObject) { val = ((JsonObject) val).copy(); } else if (val instanceof JsonArray) { val = ((JsonArray) val).copy(); } else if (val instanceof Map) { val = (new JsonObject((Map) val)).copy(); } else if (val instanceof List) { val = (new JsonArray((List) val)).copy(); } else if (val instanceof byte[]) { val = BASE64_ENCODER.encodeToString((byte[]) val); } else if (val instanceof Instant) { val = ISO_INSTANT.format((Instant) val); } else if (val instanceof Enum) { val = ((Enum) val).name(); } else { throw new IllegalStateException("Illegal type in Json: " + val.getClass()); } return val; }

Target:
public static Object checkAndCopy(Object val) { if (val == null) { } else if (val instanceof Number && !(val instanceof BigDecimal)) { } else if (val instanceof Boolean) { } else if (val instanceof String) { } else if (val instanceof Character) { } else if (val instanceof CharSequence) { val = val.toString(); } else if (val instanceof JsonObject) { val = ((JsonObject) val).copy(); } else if (val instanceof JsonArray) { val = ((JsonArray) val).copy(); } else if (val instanceof Map) { val = (new JsonObject((Map) val)).copy(); } else if (val instanceof List) { val = (new JsonArray((List) val)).copy(); } else if (val instanceof byte[]) { } else if (val instanceof Instant) { } else if (val instanceof Enum) { } else { throw new IllegalStateException("Illegal type in Json: " + val.getClass()); } return val; }
Source:
public void next(T value) { fluxSink.tryEmitNext(value).orThrow(); }

Target:
public void next(T value) { fluxSink.next(value); }
Source:
private boolean modifyOne(final Change.Id changeId) throws NoSuchChangeException, UnloggedFailure, OrmException, EmailException, Exception { final ChangeControl changeControl = changeControlFactory.validateFor(changeId); boolean ok = true; for (final Account.Id accountId: reviewersToRemove) { final ReviewerResult result = removeReviewerFactory.create(changeId, accountId).call(); for (ReviewerResult.Error resultError : result.getErrors()) { if (resultError.getType() == ReviewerResult.Error.Type.COULD_NOT_REMOVE) { final String message = resultError.getName(); String regex = accountId + "$"; if (message.matches("^.* " + regex)) { writeError("error: " + message.replaceAll(regex, "\"" + allReviewers.get(accountId)) + "\"\n"); } else { writeError("error: " + "\"" + allReviewers.get(accountId) + "\" could not be removed\n"); } ok = false; } } } final ReviewerResult result = addReviewerFactory.create(changeId, reviewersToAdd).call(); for (ReviewerResult.Error resultError : result.getErrors()) { ok = false; writeError("\"" + resultError.getName() + "\" could not be added\n"); } return ok; }

Target:
private boolean modifyOne(final Change.Id changeId) throws NoSuchChangeException, UnloggedFailure, OrmException, EmailException, Exception { final ChangeControl changeControl = changeControlFactory.validateFor(changeId); boolean ok = true; for (final String nameOrEmail: reviewersToRemove) { final Account account = accountResolver.find(nameOrEmail); if (account == null) { writeError("error: reviewer does not exist \"" + nameOrEmail + "\"\n"); continue; } Account.Id accountId = account.getId(); final ReviewerResult result = removeReviewerFactory.create(changeId, accountId).call(); for (ReviewerResult.Error resultError : result.getErrors()) { if (resultError.getType() == ReviewerResult.Error.Type.COULD_NOT_REMOVE) { final String message = resultError.getName(); String regex = accountId + "$"; if (message.matches("^.* " + regex)) { writeError("error: " + message.replaceAll(regex, "\"" + nameOrEmail + "\"\n")); } else { writeError("error: " + "\"" + nameOrEmail + "\" could not be removed\n"); } ok = false; } } } final ReviewerResult result = addReviewerFactory.create(changeId, reviewersToAdd).call(); for (ReviewerResult.Error resultError : result.getErrors()) { ok = false; String message; switch (resultError.getType()) { case ACCOUNT_NOT_FOUND: message = "account not found"; break; case ACCOUNT_INACTIVE: message = "account inactive"; break; case CHANGE_NOT_VISIBLE: message = "change is not visible to user"; break; default: message = "could not add reviewer"; } writeError("error: " + message + "\"" + resultError.getName() + "\"\n"); } return ok; }
Source:
protected void executeQueryCommand() { HashMap<String, List<String>> namespacesMap = new HashMap<>(); for (ExtensionProxy authz: EngineExtensionsManager.getInstance().getExtensionsByService(Authz.class.getName())) { for (String namespace : authz.getContext().get(Authz.ContextKeys.AVAILABLE_NAMESPACES, (Collection<String>)Collections.<String>emptyList())) { MultiValueMapUtils.addToMap(AuthzUtils.getName(authz), namespace, namespacesMap); } } for (List<String> entry : namespacesMap.values()) { Collections.sort(entry); } setReturnValue(namespacesMap); }

Target:
protected void executeQueryCommand() { HashMap<String, List<String>> namespacesMap = new HashMap<>(); for (ExtensionProxy authz: EngineExtensionsManager.getInstance().getExtensionsByService(Authz.class.getName())) { for (String namespace : authz.getContext().<Collection<String>>get(Authz.ContextKeys.AVAILABLE_NAMESPACES, Collections.<String>emptyList())) { MultiValueMapUtils.addToMap(AuthzUtils.getName(authz), namespace, namespacesMap); } } for (List<String> entry : namespacesMap.values()) { Collections.sort(entry); } setReturnValue(namespacesMap); }
Source:
private boolean isGenericIdpLinkingFlow(@NonNull String providerId) { return !AuthUI.SOCIAL_PROVIDERS.contains(providerId) && mRequestedSignInCredential != null && getAuth().getCurrentUser() != null && !getAuth().getCurrentUser().isAnonymous(); }

Target:
private boolean isGenericIdpLinkingFlow(@NonNull String providerId) { return AuthUI.SUPPORTED_OAUTH_PROVIDERS.contains(providerId) && mRequestedSignInCredential != null && getAuth().getCurrentUser() != null && !getAuth().getCurrentUser().isAnonymous(); }
Source:
private FormattedDomain parseDomain(Domain domain) { ImmutableList.Builder<FormattedRange> formattedRanges = ImmutableList.builder(); Type type = domain.getType(); domain.getValues().getValuesProcessor().consume( ranges -> formattedRanges.addAll( ranges.getOrderedRanges().stream() .map(range -> new FormattedRange(formatMarker(range.getLow()), formatMarker(range.getHigh()))) .collect(toImmutableList())), discreteValues -> formattedRanges.addAll( discreteValues.getValues().stream() .map(value -> castToVarchar(type, value)) .sorted() .map(value -> new FormattedMarker(Optional.of(value), EXACTLY)) .map(marker -> new FormattedRange(marker, marker)) .collect(toImmutableList())), allOrNone -> {}); return new FormattedDomain(domain.isNullAllowed(), formattedRanges.build()); }

Target:
private FormattedDomain parseDomain(Domain domain) { ImmutableSet.Builder<FormattedRange> formattedRanges = ImmutableSet.builder(); Type type = domain.getType(); domain.getValues().getValuesProcessor().consume( ranges -> formattedRanges.addAll( ranges.getOrderedRanges().stream() .map(range -> new FormattedRange(formatMarker(range.getLow()), formatMarker(range.getHigh()))) .collect(toImmutableSet())), discreteValues -> formattedRanges.addAll( discreteValues.getValues().stream() .map(value -> getVarcharValue(type, value)) .map(value -> new FormattedMarker(Optional.of(value), EXACTLY)) .map(marker -> new FormattedRange(marker, marker)) .collect(toImmutableSet())), allOrNone -> { throw new IllegalStateException("Unreachable AllOrNone consumer"); }); return new FormattedDomain(domain.isNullAllowed(), formattedRanges.build()); }
Source:
public void testUsingIteratorButPartitionOccursBeforeRetrievingRemoteValues() throws Exception { Cache<MagicKey, String> cache0 = cache(0); cache0.put(new MagicKey(cache(1), cache(2)), "not-local"); cache0.put(new MagicKey(cache(0), cache(1)), "local"); CheckPoint iteratorCP = new CheckPoint(); iteratorCP.triggerForever(Mocks.BEFORE_RELEASE); blockUntilRemoteNodesRespond(iteratorCP, cache0, TestingUtil.extractGlobalComponent(cache0.getCacheManager(), Executor.class, KnownComponentNames.BLOCKING_EXECUTOR)); try (CloseableIterator<?> iterator = Closeables.iterator(cache0.entrySet().stream())) { CheckPoint partitionCP = new CheckPoint(); blockNotifierPartitionStatusChanged(partitionCP, cache0); partitionCP.triggerForever(Mocks.BEFORE_RELEASE); partitionCP.triggerForever(Mocks.AFTER_RELEASE); splitCluster(new int[]{0, 1}, new int[]{2, 3}); partitionCP.awaitStrict(Mocks.AFTER_INVOCATION, 10, TimeUnit.SECONDS); iteratorCP.triggerForever(Mocks.AFTER_RELEASE); try { while (iterator.hasNext()) { iterator.next(); } fail("Expected AvailabilityException"); } catch (AvailabilityException e) { } } }

Target:
public void testUsingIteratorButPartitionOccursBeforeRetrievingRemoteValues() throws Exception { Cache<MagicKey, String> cache0 = cache(0); cache0.put(new MagicKey(cache(1), cache(2)), "not-local"); cache0.put(new MagicKey(cache(0), cache(1)), "local"); CheckPoint iteratorCP = new CheckPoint(); iteratorCP.triggerForever(Mocks.BEFORE_RELEASE); registerBlockingRpcManagerOnInitialPublisherCommand(iteratorCP, cache0, testExecutor()); try (CloseableIterator<?> iterator = Closeables.iterator(cache0.entrySet().stream())) { CheckPoint partitionCP = new CheckPoint(); registerBlockingCacheNotifierOnDegradedMode(partitionCP, cache0); partitionCP.triggerForever(Mocks.BEFORE_RELEASE); partitionCP.triggerForever(Mocks.AFTER_RELEASE); splitCluster(new int[]{0, 1}, new int[]{2, 3}); partitionCP.awaitStrict(Mocks.AFTER_INVOCATION, 10, TimeUnit.SECONDS); iteratorCP.triggerForever(Mocks.AFTER_RELEASE); try { while (iterator.hasNext()) { iterator.next(); } fail("Expected AvailabilityException"); } catch (AvailabilityException e) { } } }
Source:
public RouterConfig(VerifiableProperties verifiableProperties) { routerScalingUnitCount = verifiableProperties.getInt("router.scaling.unit.count", 1); routerHostname = verifiableProperties.getString("router.hostname"); routerDatacenterName = verifiableProperties.getString("router.datacenter.name"); routerMaxConnectionsPerPortPlainText = verifiableProperties.getIntInRange("router.max.connections.per.port.plain.text", 5, 1, 20); routerMaxConnectionsPerPortSSL = verifiableProperties.getIntInRange("router.max.connections.per.port.ssl", 2, 1, 20); routerMaxChunkSize = verifiableProperties.getInt("router.max.chunk.size", 4*1024*1024); }

Target:
public RouterConfig(VerifiableProperties verifiableProperties) { routerScalingUnitCount = verifiableProperties.getIntInRange("router.scaling.unit.count", 1, 0, 10); routerHostname = verifiableProperties.getString("router.hostname"); routerDatacenterName = verifiableProperties.getString("router.datacenter.name"); routerMaxConnectionsPerPortPlainText = verifiableProperties.getIntInRange("router.max.connections.per.port.plain.text", 5, 1, 20); routerMaxConnectionsPerPortSsl = verifiableProperties.getIntInRange("router.max.connections.per.port.ssl", 2, 1, 20); routerMaxPutChunkSizeBytes = verifiableProperties.getInt("router.max.put.chunk.size.bytes", 4 * 1024 * 1024); }
Source:
public void processing_englishStandardDate_shouldWork() throws Exception { List<Date> output = target.processing("19 January 1983"); assertThat(output, hasSize(1)); final Date date = output.get(0); assertThat(date.getDay(), is(19)); assertThat(date.getMonth(), is(1)); assertThat(date.getYear(), is(1983)); assertThat(date.getDayString(), is("19")); assertThat(date.getMonthString(), is("January")); assertThat(date.getYearString(), is("1983")); System.out.println(output.get(0)); }

Target:
public void processing_englishStandardDate_shouldWork() throws Exception { List<Date> output = target.processing("19 January 1983"); assertThat(output, hasSize(1)); final Date date = output.get(0); assertThat(date.getDay(), is(19)); assertThat(date.getMonth(), is(1)); assertThat(date.getYear(), is(1983)); assertThat(date.getDayString(), is("19")); assertThat(date.getMonthString(), is("January")); assertThat(date.getYearString(), is("1983")); }