auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<R extends Row,T> ListenableFuture<Object> issueRowRequest( final Row row, final Batch.Callback<T> callback, final Object[] results, final int index) { LOG.trace("issueRowRequest(Row, Batch.Callback, Object[], index"); SettableFuture<Object> resultFuture = SettableFuture.create(); results[index] = null; ListenableFuture<? extends GeneratedMessage> future = issueRequest(row); if (future != null) { Futures.addCallback(future, new RpcResultFutureCallback<T, GeneratedMessage>( row, callback, index, results, resultFuture) { @Override Object adaptResponse(GeneratedMessage response) { if (response instanceof com.google.bigtable.v1.Row) { return rowToResultAdapter.adaptResponse((com.google.bigtable.v1.Row) response); } else { return new Result(); } } }, service); } else { resultFuture.setException(new UnsupportedOperationException( String.format("Unknown action type %s", row.getClass().getCanonicalName()))); } return resultFuture; }

Target:
<R extends Row,T> ListenableFuture<Object> issueRowRequest( final Row row, final Batch.Callback<T> callback, final Object[] results, final int index) { LOG.trace("issueRowRequest(Row, Batch.Callback, Object[], index"); SettableFuture<Object> resultFuture = SettableFuture.create(); results[index] = null; ListenableFuture<? extends GeneratedMessage> future = issueRequest(row); Futures.addCallback(future, new RpcResultFutureCallback<T, GeneratedMessage>( row, callback, index, results, resultFuture, rowResultConverter), service); return resultFuture; }
Source:
public void shouldPurgeAnAutoGenerationOption() throws Exception { assertNotNull(identifierSourceService.getAutoGenerationOption(Integer.parseInt(getUuid()))); MockHttpServletRequest req = request(RequestMethod.DELETE, getURI() + "/" + getUuid()); req.addParameter("purge", ""); handle(req); assertNull(identifierSourceService.getAutoGenerationOption(Integer.parseInt(getUuid()))); }

Target:
public void shouldPurgeAnAutoGenerationOption() throws Exception { assertNotNull(identifierSourceService.getAutoGenerationOption(getId())); MockHttpServletRequest req = request(RequestMethod.DELETE, getURI() + "/" + getUuid()); req.addParameter("purge", ""); handle(req); assertNull(identifierSourceService.getAutoGenerationOption(getId())); }
Source:
public Subject authenticate(Object credentials) { String username; Properties credProps = new Properties(); if (credentials instanceof String[]) { final String[] aCredentials = (String[]) credentials; username = aCredentials[0]; credProps.setProperty(ResourceConstants.USER_NAME, aCredentials[0]); credProps.setProperty(ResourceConstants.PASSWORD, aCredentials[1]); } else if (credentials instanceof String) { username = ""; credProps.setProperty(ResourceConstants.TOKEN, (String) credentials); } else { throw new AuthenticationFailedException(MISSING_CREDENTIALS_MESSAGE); } org.apache.shiro.subject.Subject shiroSubject = this.securityService.login(credProps); Principal principal; if (shiroSubject == null) { principal = new JMXPrincipal(username); } else { principal = new ShiroPrincipal(shiroSubject); } return new Subject(true, Collections.singleton(principal), Collections.emptySet(), Collections.emptySet()); }

Target:
public Subject authenticate(Object credentials) { String username; Properties credProps = new Properties(); if (credentials instanceof String[]) { final String[] aCredentials = (String[]) credentials; username = aCredentials[0]; credProps.setProperty(ResourceConstants.USER_NAME, aCredentials[0]); credProps.setProperty(ResourceConstants.PASSWORD, aCredentials[1]); } else if (credentials instanceof String) { username = "token-" + credentials.hashCode(); credProps.setProperty(ResourceConstants.TOKEN, (String) credentials); } else { throw new AuthenticationFailedException(MISSING_CREDENTIALS_MESSAGE); } org.apache.shiro.subject.Subject shiroSubject = this.securityService.login(credProps); Principal principal; if (shiroSubject == null) { principal = new JMXPrincipal(username); } else { principal = new ShiroPrincipal(shiroSubject); } return new Subject(true, Collections.singleton(principal), Collections.emptySet(), Collections.emptySet()); }
Source:
public void createClient() { config.setCapabilities(List.of(KieServerConstants.CAPABILITY_BPM_UI)); uiClient = KieServicesFactory.newKieServicesClient(config).getServicesClient(UIServicesClient.class); }

Target:
public void createClient() { config.setCapabilities(Arrays.asList(KieServerConstants.CAPABILITY_BPM_UI)); uiClient = KieServicesFactory.newKieServicesClient(config).getServicesClient(UIServicesClient.class); }
Source:
public void initialise() { wireframeStateChange = new SetWireframe(true); renderingDebugConfig = config.getRendering().getDebug(); new WireframeTrigger(renderingDebugConfig, this); playerCamera = worldRenderer.getActiveCamera(); addDesiredStateChange(new LookThrough(playerCamera)); addDesiredStateChange(new SetViewportToSizeOf(READONLY_GBUFFER, displayResolutionDependentFBOs)); addDesiredStateChange(new BindFBO(READONLY_GBUFFER, displayResolutionDependentFBOs)); update(); displayResolutionDependentFBOs.subscribe(this); }

Target:
public void initialise() { wireframeStateChange = new SetWireframe(true); renderingDebugConfig = config.getRendering().getDebug(); new WireframeTrigger(renderingDebugConfig, this); playerCamera = worldRenderer.getActiveCamera(); addDesiredStateChange(new LookThrough(playerCamera)); addDesiredStateChange(new BindFBO(READONLY_GBUFFER, displayResolutionDependentFBOs)); }
Source:
public Optional<Boolean> match(String principal, String user) { Matcher matcher = principalRegex.matcher(principal); if (matcher.matches()) { if (userRegex.isPresent()) { String userPattern = matcher.replaceAll(userRegex.get()); if (Pattern.compile(userPattern).matcher(user).matches()) { return Optional.of(allow); } } else { for (int i = 1; i <= matcher.groupCount(); i++) { String extractedUsername = matcher.group(i); if (user.equals(extractedUsername)) { return Optional.of(allow); } } } } return Optional.empty(); }

Target:
public Optional<Boolean> match(String principal, String user) { Matcher matcher = principalRegex.matcher(principal); if (!matcher.matches()) { return Optional.empty(); } if (userRegex.isPresent()) { if (userRegex.get().matcher(user).matches()) { return Optional.of(allow); } } if (principalToUserSubstitution.isPresent()) { String userExtraction = matcher.replaceAll(principalToUserSubstitution.get()); if (user.equals(userExtraction)) { return Optional.of(allow); } } return Optional.empty(); }
Source:
public Map<String, RowMetaInterface> getInputFields( StreamLookupMeta meta ) { Map<String, RowMetaInterface> rowMeta = super.getInputFields( meta ); if ( parentTransMeta != null ) { for ( String prevStepName : parentTransMeta.getStepNames() ) { if ( !rowMeta.containsKey( prevStepName ) ) { try { rowMeta.put( prevStepName, parentTransMeta.getPrevStepFields( prevStepName ) ); } catch ( KettleStepException e ) { LOGGER.warn( Messages.getString( "WARNING.CannotDetermineRowMeta" ) ); } } } } return rowMeta; }

Target:
public Map<String, RowMetaInterface> getInputFields( StreamLookupMeta meta ) { Map<String, RowMetaInterface> rowMeta = super.getInputFields( meta ); if ( parentTransMeta != null ) { for ( String prevStepName : parentTransMeta.getStepNames() ) { if ( !rowMeta.containsKey( prevStepName ) ) { try { rowMeta.put( prevStepName, parentTransMeta.getPrevStepFields( prevStepName ) ); } catch ( KettleStepException e ) { LOGGER.warn( Messages.getString( "WARNING.CannotDetermineRowMeta", prevStepName, e.getLocalizedMessage() ) ); } } } } return rowMeta; }
Source:
void recoveredCommittables(List<GlobalCommT> committables) { this.currentGlobalCommittables = globalCommitter.filterRecoveredCommittables(committables); }

Target:
void recoveredCommittables(List<GlobalCommT> committables) { final List<GlobalCommT> recovered = globalCommitter. filterRecoveredCommittables(checkNotNull(committables)); recoveredGlobalCommittables.addAll(recovered); }
Source:
public void addWatcher(Project project, User watcher) { watchManager.watch(project, watcher); currentSession().update(project); }

Target:
public void addWatcher(Project project, User watcher) { log.debug("Adding watcher " + watcher.getLoginName() + " to " + project.getName() + " via WatchManager"); project.addWatcher(watcher); currentSession().update(project); }
Source:
public static long parseDuration(String durationStr) { Preconditions.checkArgument(!Strings.isNullOrEmpty(durationStr)); durationStr = durationStr.trim().toLowerCase(); String value = durationStr.substring(0, durationStr.length() - 1); long parsedValue; try { parsedValue = Long.parseLong(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( String.format("Error parsing the duration string %s. Cannot parse string %s to its long value", durationStr, value)); } char lastChar = durationStr.charAt(durationStr.length() - 1); switch (lastChar) { case 's': return TimeUnit.SECONDS.toMillis(parsedValue); case 'm': return TimeUnit.MINUTES.toMillis(parsedValue); case 'h': return TimeUnit.HOURS.toMillis(parsedValue); case 'd': return TimeUnit.DAYS.toMillis(parsedValue); } throw new IllegalArgumentException(String.format("Time unit not supported: %s", lastChar)); }

Target:
public static long parseDuration(String durationStr) { Preconditions.checkArgument(!Strings.isNullOrEmpty(durationStr)); durationStr = durationStr.trim().toLowerCase(); String value = durationStr.substring(0, durationStr.length() - 1); long parsedValue; try { parsedValue = Long.parseLong(value); } catch (NumberFormatException e) { throw new IllegalArgumentException( String.format("Error parsing the duration string %s. Cannot parse %s as a long", durationStr, value)); } char lastChar = durationStr.charAt(durationStr.length() - 1); switch (lastChar) { case 's': return TimeUnit.SECONDS.toMillis(parsedValue); case 'm': return TimeUnit.MINUTES.toMillis(parsedValue); case 'h': return TimeUnit.HOURS.toMillis(parsedValue); case 'd': return TimeUnit.DAYS.toMillis(parsedValue); } throw new IllegalArgumentException(String.format("Time unit not supported: %s", lastChar)); }
Source:
public int[] getYearsForJournal(Site site) throws IOException, ParseException { Map<String, String> rawQueryParams = new HashMap(); rawQueryParams.put("stats", "true"); rawQueryParams.put("stats.field", "publication_date"); Map<String, Map> rawResult = (Map<String, Map>) solrSearchService.simpleSearch("", site, 0, 0, SolrSearchService.SolrSortOrder .RELEVANCE, SolrSearchService.SolrDateRange.ALL_TIME,rawQueryParams); Map<String, Map> statsField = (Map<String, Map>) rawResult.get("stats").get("stats_fields"); Map<String, String> publicationDate = (Map<String, String>) statsField.get("publication_date"); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Calendar date = Calendar.getInstance(); date.setTime(dateFormat.parse(publicationDate.get("min"))); int minYear = date.get(Calendar.YEAR); date.setTime(dateFormat.parse(publicationDate.get("max"))); int maxYear = date.get(Calendar.YEAR); int[] yearRange = {minYear, maxYear}; return yearRange; }

Target:
public Map<?, ?> getYearsForJournal(Site site) throws IOException, ParseException { Map<String, String> yearRange = (Map<String, String>) solrSearchService.getStats("publication_date", site); return yearRange; }
Source:
public boolean configure(StaplerRequest request, JSONObject object) throws FormException { nativeLibraryPath = object.getString("nativeLibraryPath"); master = object.getString("master"); description = object.getString("description"); frameworkName = object.getString("frameworkName"); slaveAttributes = object.getString("slaveAttributes"); checkpoint = object.getBoolean("checkpoint"); mesosSlaveInfoList = fetchMesosSlaveInfoFromJSON(object); save(); return super.configure(request, object); }

Target:
public boolean configure(StaplerRequest request, JSONObject object) throws FormException { nativeLibraryPath = object.getString("nativeLibraryPath"); master = object.getString("master"); description = object.getString("description"); frameworkName = object.getString("frameworkName"); slaveAttributes = object.getString("slaveAttributes"); checkpoint = object.getBoolean("checkpoint"); slaveInfos = new ArrayList<MesosSlaveInfo>(); JSONArray labels = object.getJSONArray("slaveInfos"); if (labels != null) { for (int i = 0; i < labels.size(); i++) { JSONObject label = labels.getJSONObject(i); if (label != null) { MesosSlaveInfo slaveInfo = new MesosSlaveInfo( object.getString("labelString"), object.getString("slaveCpus"), object.getString("slaveMem"), object.getString("maxExecutors"), object.getString("executorCpus"), object.getString("executorMem"), object.getString("idleTerminationMinutes"), object.getString("slaveAttributes")); slaveInfos.add(slaveInfo); } } } save(); return super.configure(request, object); }
Source:
public int hashCode() { int hash = 7; hash = 31 * hash + Objects.hashCode(id); hash = 31 * hash + Objects.hashCode(email); hash = 31 * hash + getAttributes().hashCode(); return hash; }

Target:
public int hashCode() { int hash = 7; hash = 31 * hash + Objects.hashCode(id); hash = 31 * hash + getAttributes().hashCode(); return hash; }
Source:
private int createHashCode() { int result = annotationDescriptor.hashCode(); result = 31 * result + validatedType.hashCode(); result = 31 * result + constraintValidatorFactory.hashCode(); result = 31 * result + scriptEvaluatorFactory.hashCode(); result = 31 * result + clockProvider.hashCode(); result = 31 * result + temporalValidationTolerance.hashCode(); return result; }

Target:
private int createHashCode() { int result = annotationDescriptor.hashCode(); result = 31 * result + validatedType.hashCode(); result = 31 * result + constraintValidatorFactory.hashCode(); result = 31 * result + constraintValidatorInitializationContext.hashCode(); return result; }
Source:
public PremisLogger getPremisLogger(PID pid) { File file = new File(depositDirectory, DepositConstants.EVENTS_DIR + "/" + pid.getUUID() + ".ttl"); try { PremisLogger premisLogger; if (!file.exists()) { file.getParentFile().mkdirs(); } premisLogger = createNewEventsFile(pid, file); return premisLogger; } catch (IOException e) { failJob(e, "Unexpected problem with deposit events file {}.", file.getAbsoluteFile()); } return null; }

Target:
public PremisLogger getPremisLogger(PID pid) { File file = new File(depositDirectory, DepositConstants.EVENTS_DIR + "/" + pid.getUUID() + ".ttl"); try { if (!file.exists()) { file.getParentFile().mkdirs(); } return new PremisLogger(pid, file); } catch (Exception e) { failJob(e, "Unexpected problem with deposit events file {}.", file.getAbsoluteFile()); } return null; }
Source:
private Channel createQueues(Connection connection) throws IOException, MalformedURLException, URISyntaxException { Channel channel; channel = connection.createChannel(); for (String queueName : this.queues) { if (this.purge) { logger.debug("Deleting queue: " + queueName); channel.queueDelete(queueName); } if (isDefaultQueue(queueName)) { channel.queueDelete(queueName); } else { channel.queueDeclare(queueName, true, false, false, null); } } brokerOffline.put(this.port, false); if (!this.assumeOnline) { Assume.assumeTrue(brokerOffline.get(this.port)); } if (this.management) { Client client = new Client(getAdminUri(), this.adminUser, this.adminPassword); if (!client.alivenessTest("/")) { throw new BrokerNotAliveException("Aliveness test failed for localhost:15672 guest/quest; " + "management not available"); } } return channel; }

Target:
private Channel createQueues(Connection connection) throws IOException, URISyntaxException { Channel channel; channel = connection.createChannel(); for (String queueName : this.queues) { if (this.purge) { LOGGER.debug("Deleting queue: " + queueName); channel.queueDelete(queueName); } if (isDefaultQueue(queueName)) { channel.queueDelete(queueName); } else { channel.queueDeclare(queueName, true, false, false, null); } } BROKER_OFFLINE.put(this.port, false); if (!this.assumeOnline) { Assume.assumeTrue(BROKER_OFFLINE.get(this.port)); } if (this.management) { Client client = new Client(getAdminUri(), this.adminUser, this.adminPassword); if (!client.alivenessTest("/")) { throw new BrokerNotAliveException("Aliveness test failed for localhost:15672 guest/quest; " + "management not available"); } } return channel; }
Source:
public boolean hasPrimaryTerm() { return this.primaryTerm != null && SequenceNumbers.isAssignedPrimaryTerm(this.primaryTerm); }

Target:
public boolean hasPrimaryTerm() { return this.primaryTerm != null; }
Source:
public ActionExecutionException toActionExecutionException( String messagePrefix, boolean verboseFailures, Action action) { if (messagePrefix == null) { messagePrefix = action.describe(); } String message = result.getDetailMessage(messagePrefix, getMessage(), isCatastrophic(), forciblyRunRemotely); if (verboseFailures) { return new ActionExecutionException(message + ": " + getMessage(), this, action, isCatastrophic(), getExitCode()); } else { return new ActionExecutionException(message, action, isCatastrophic(), getExitCode()); } }

Target:
public ActionExecutionException toActionExecutionException( String messagePrefix, boolean verboseFailures, Action action) { if (messagePrefix == null) { messagePrefix = action.describe(); } String message = result.getDetailMessage(messagePrefix, getMessage(), verboseFailures, isCatastrophic(), forciblyRunRemotely); return new ActionExecutionException(message, this, action, isCatastrophic(), getExitCode()); }
Source:
private List<String> buildExpectedErrorMessages() { String feedbackSessionNameError = "The field 'feedback session name' is empty. The value of a/an feedback " + "session name should be no longer than 38 characters. It should not be empty."; String courseIdError = "The field 'course ID' is empty. A course ID can contain letters, numbers, fullstops, " + "hyphens, underscores, and dollar signs. It cannot be longer than 40 characters, cannot be empty and " + "cannot contain spaces."; String creatorEmailError = "The field 'email' is empty. An email address contains some text followed " + "by one '@' sign followed by some more text. It cannot be longer than 254 characters, cannot be empty" + " and cannot contain spaces."; String gracePeriodError = "Grace period should never be negative."; return Arrays.asList(feedbackSessionNameError, courseIdError, creatorEmailError, gracePeriodError); }

Target:
private List<String> buildExpectedErrorMessages() { String feedbackSessionNameError = "The field 'feedback session name' is empty. The value of a/an feedback " + "session name should be no longer than 38 characters. It should not be empty."; String courseIdError = "The field 'course ID' is empty. A course ID can contain letters, numbers, fullstops, " + "hyphens, underscores, and dollar signs. It cannot be longer than 40 characters, cannot be empty and " + "cannot contain spaces."; String creatorEmailError = "The field 'email' is empty. An email address contains some text followed " + "by one '@' sign followed by some more text. It cannot be longer than 254 characters, cannot be empty" + " and cannot contain spaces."; String gracePeriodError = "Grace period should not be negative." + " " + "The value must be one of the options in the grace period dropdown selector."; return Arrays.asList(feedbackSessionNameError, courseIdError, creatorEmailError, gracePeriodError); }
Source:
public Future<Long> write(ByteBuffer src, Callback<Long> callback) { if (src == null) { throw new IllegalArgumentException("Source buffer cannot be null"); } ChunkData chunkData = new ChunkData(Unpooled.wrappedBuffer(src), callback); chunks.add(chunkData); if (channelEventListener != null) { channelEventListener.onEvent(EventType.Write); } if (!isOpen()) { resolveAllRemainingChunks(new ClosedChannelException()); } return chunkData.future; }

Target:
public Future<Long> write(ByteBuffer src, Callback<Long> callback) { if (src == null) { throw new IllegalArgumentException("Source buffer cannot be null"); } return write(Unpooled.wrappedBuffer(src), callback); }
Source:
private DirectEditManager getManager() { if (manager == null) { manager = createDirectEditManager(); } return manager; }

Target:
private DirectEditManager getManager() { if (null == manager) { manager = createDirectEditManager(); } return manager; }
Source:
public void startServer() throws RemotingException { port = (int) (1000 * Math.random() + 10000); ReplierDispatcher dispatcher = new ReplierDispatcher(); dispatcher.addReplier(RpcMessage.class, new RpcMessageHandler()); dispatcher.addReplier(Object.class, (channel, msg) -> { for (int i = 0; i < 10000; i++) { System.currentTimeMillis(); } System.out.println("handle:" + msg + ";thread:" + Thread.currentThread().getName()); return new StringMessage("hello world"); }); exchangeServer = Exchangers.bind(URL.valueOf("dubbo://localhost:" + port), dispatcher); }

Target:
public void startServer() throws RemotingException { port = NetUtils.getAvailablePort(); ReplierDispatcher dispatcher = new ReplierDispatcher(); dispatcher.addReplier(RpcMessage.class, new RpcMessageHandler()); dispatcher.addReplier(Object.class, (channel, msg) -> { for (int i = 0; i < 10000; i++) { System.currentTimeMillis(); } return new StringMessage("hello world"); }); exchangeServer = Exchangers.bind(URL.valueOf("dubbo://localhost:" + port), dispatcher); }
Source:
public List<String> listFiles(PluginTask task) { AmazonS3Client client = newS3Client(task); String bucketName = task.getBucket(); ImmutableList.Builder<String> builder = ImmutableList.builder(); for (String prefix : task.getPathPrefixes()) { try { builder.addAll(listS3FilesByPrefix(client, bucketName, formatPrefix(prefix))); } catch (Exception e) { log.warn("Cannot parse prefix: "+prefix, e); } } return builder.build(); }

Target:
public List<String> listFiles(PluginTask task) { AmazonS3Client client = newS3Client(task); String bucketName = task.getBucket(); ImmutableList.Builder<String> builder = ImmutableList.builder(); for (String prefix : task.getPathPrefixes()) { String formatted; try { formatted = formatPrefix(prefix); } catch (RuntimeException e) { log.error("Cannot parse the invalid prefix. An invalid syntax is included in: "+prefix); throw e; } try { builder.addAll(listS3FilesByPrefix(client, bucketName, formatted)); } catch (RuntimeException e) { String message; String errMessage = e.getMessage(); if (e instanceof AmazonServiceException) { message = "an error occurred in Amazon S3: "+errMessage; } else if (e instanceof AmazonClientException) { message = "an error was encountered in the client: "+errMessage; } else { message = "Cannot get a list of the objects: "+prefix+": "+e.getMessage(); } log.error(message); throw e; } } return builder.build(); }
Source:
private static int getSystemPropertyAndParseInt(String key, int defaultValue) { try { return Integer.parseInt(System.getProperty(key)); } catch (NumberFormatException e) { StatusHandler.log(new Status(IStatus.WARNING, CommonsCorePlugin.ID_PLUGIN, NLS.bind( "Unable to parse property {0}", key))); System.setProperty(key, Integer.toString(defaultValue)); } return defaultValue; }

Target:
private static int getSystemPropertyAndParseInt(String key, int defaultValue) { String property = System.getProperty(key); if (property != null) { try { return Integer.parseInt(property); } catch (NumberFormatException e) { StatusHandler.log(new Status(IStatus.WARNING, CommonsCorePlugin.ID_PLUGIN, NLS.bind( "Unable to parse property {0}", key))); } } return defaultValue; }
Source:
public String toString() { StringBuilder builder = new StringBuilder(); for (String segment : fInput) { builder.append(segment).append(' '); } return nullToEmptyString(builder.toString().trim()); }

Target:
public String toString() { StringBuilder builder = new StringBuilder(); for (String segment : getInput()) { builder.append(segment).append(' '); } return nullToEmptyString(builder.toString().trim()); }
Source:
public void testGetZeroContents() throws IOException { final FileSystemManager fsManager = VFS.getManager(); final FileObject fo = fsManager.resolveFile("http4://monpremierlivre.home.blog/"); final FileContent content = fo.getContent(); Assert.assertNotNull(content.getString(StandardCharsets.UTF_8)); }

Target:
public void testGetZeroContents() throws IOException { final FileSystemManager fsManager = VFS.getManager(); final FileObject fo = fsManager.resolveFile("http4s://www.apache.org/dist/"); final FileContent content = fo.getContent(); Assert.assertEquals(0L, content.getSize()); Assert.assertNotNull(content.getString(StandardCharsets.UTF_8)); }
Source:
public TableDefinitionRepositoryKey(String name, Optional<String> schema) { this.name = name; this.schema = schema; }

Target:
public TableDefinitionRepositoryKey(String name, Optional<String> schema) { this.name = requireNonNull(name, "name is null"); this.schema = requireNonNull(schema, "schema is null"); }
Source:
void addStudyVariablesToUnitRows(final List<ObservationUnitRow> observationUnits, final List<MeasurementVariable> studyVariables) { for (final ObservationUnitRow observationUnitRow : observationUnits) { for (final MeasurementVariable measurementVariable : studyVariables) { final String key; if (measurementVariable.getAlias() != null && !measurementVariable.getAlias().equals("")) { key = measurementVariable.getAlias(); } else { key = measurementVariable.getName(); } observationUnitRow.getVariables() .put(key, new ObservationUnitData(measurementVariable.getValue())); } } }

Target:
void addStudyVariablesToUnitRows(final List<ObservationUnitRow> observationUnits, final List<MeasurementVariable> studyVariables) { for (final ObservationUnitRow observationUnitRow : observationUnits) { for (final MeasurementVariable measurementVariable : studyVariables) { final String key; if (!StringUtils.isEmpty(measurementVariable.getAlias())) { key = measurementVariable.getAlias(); } else { key = measurementVariable.getName(); } observationUnitRow.getVariables() .put(key, new ObservationUnitData(measurementVariable.getValue())); } } }
Source:
public void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters) throws Exception { Preconditions.checkArgument(parameters.containsKey(IMPORT_DATABASE_SERVICE_DBNAME), "unknown database holding projects name, required parameter '%s' is missing!", IMPORT_DATABASE_SERVICE_DBNAME); FileSystem fs = FileSystem.get(conf); try (DataFileWriter<Project> projectWriter = DataStore.create( new FileSystemPath(fs, portBindings.getOutput().get(PORT_OUT_PROJECT)), Project.SCHEMA$)) { DatabaseFacade databaseFacade = ServiceFacadeUtils.instantiate(parameters); StringWriter writer = new StringWriter(); IOUtils.copy(this.getClass().getClassLoader().getResourceAsStream(queryLocation), writer, "utf-8"); SAXParserFactory parserFactory = SAXParserFactory.newInstance(); SAXParser saxParser = parserFactory.newSAXParser(); int currentCount = 0; long startTime = System.currentTimeMillis(); for (String record : databaseFacade.searchSQL(parameters.get(IMPORT_DATABASE_SERVICE_DBNAME), writer.toString())) { saxParser.parse(new InputSource(new StringReader(record)), new DatabaseProjectXmlHandler(new DataFileRecordReceiver<Project>(projectWriter))); currentCount++; if (currentCount%progressLogInterval==0) { log.debug("current progress: " + currentCount + ", last package of " + progressLogInterval + " processed in " + ((System.currentTimeMillis()-startTime)/1000) + " secs"); startTime = System.currentTimeMillis(); } } } }

Target:
public void run(PortBindings portBindings, Configuration conf, Map<String, String> parameters) throws Exception { Preconditions.checkArgument(parameters.containsKey(IMPORT_DATABASE_SERVICE_DBNAME), "unknown database holding projects name, required parameter '%s' is missing!", IMPORT_DATABASE_SERVICE_DBNAME); FileSystem fs = FileSystem.get(conf); try (DataFileWriter<Project> projectWriter = DataStore.create( new FileSystemPath(fs, portBindings.getOutput().get(PORT_OUT_PROJECT)), Project.SCHEMA$)) { DatabaseFacade databaseFacade = ServiceFacadeUtils.instantiate(parameters); SAXParserFactory parserFactory = SAXParserFactory.newInstance(); SAXParser saxParser = parserFactory.newSAXParser(); int currentCount = 0; long startTime = System.currentTimeMillis(); for (String record : databaseFacade.searchSQL(parameters.get(IMPORT_DATABASE_SERVICE_DBNAME), loadQuery())) { saxParser.parse(new InputSource(new StringReader(record)), new DatabaseProjectXmlHandler(new DataFileRecordReceiver<Project>(projectWriter))); currentCount++; if (currentCount%progressLogInterval==0) { log.debug("current progress: " + currentCount + ", last package of " + progressLogInterval + " processed in " + ((System.currentTimeMillis()-startTime)/1000) + " secs"); startTime = System.currentTimeMillis(); } } } }
Source:
public void slicesOfOneFromOne() { Series series = new Series("1"); List<List<Integer>> expected = Arrays.asList(Collections.singletonList(1)); List<Integer> actual = series.slice(1); assertNotNull(actual); assertFalse(actual.isEmpty()); assertEquals(expected, actual); }

Target:
public void slicesOfOneFromOne() { Series series = new Series("1"); List<List<String>> expected = Arrays.asList(Arrays.asList("1")); List<List<String>> actual = series.slices(1); assertEquals(expected, actual); }
Source:
public boolean cancelOrder(String orderId) throws IOException { CoingiCancelOrderRequest request = new CoingiCancelOrderRequest(); request.setOrderId(orderId); CoingiOrder order; try { order = cancelCoingiOrder(request); } catch (CoingiException e) { throw CoingiErrorAdapter.adapt(e); } return order != null; }

Target:
public boolean cancelOrder(String orderId) throws IOException { try { CoingiCancelOrderRequest request = new CoingiCancelOrderRequest(); request.setOrderId(orderId); return cancelCoingiOrder(request) != null; } catch (CoingiException e) { throw CoingiErrorAdapter.adapt(e); } }
Source:
@Override protected void beforeTestsStarted() throws Exception { System.setProperty(IGNITE_BASELINE_AUTO_ADJUST_ENABLED, "false"); U.resolveWorkDirectory(U.defaultWorkDirectory(), "db", true); super.beforeTestsStarted(); grid(0).cluster().active(true); }

Target:
@Override protected void beforeTestsStarted() throws Exception { super.beforeTestsStarted(); grid(0).cluster().active(true); }
Source:
public void setUp() throws Exception { provisioner = new LocalCheDockerEnvironmentProvisioner( false, settingsProvisioners, projectsVolumeProvisioner, installerConfigProvisioner, labelsProvisioner, dockerApiEnvProvisioner, wsAgentServerConfigProvisioner, singlePortLabelsProvisioner, serversConverter, envVarsConverter, memoryAttributeConverter, volumesConverter); allInnerProvisioners = new Object[] { settingsProvisioners, projectsVolumeProvisioner, installerConfigProvisioner, labelsProvisioner, dockerApiEnvProvisioner, wsAgentServerConfigProvisioner, serversConverter, envVarsConverter, memoryAttributeConverter, volumesConverter }; }

Target:
public void setUp() throws Exception { provisioner = new LocalCheDockerEnvironmentProvisioner( true, settingsProvisioners, projectsVolumeProvisioner, installerConfigProvisioner, labelsProvisioner, dockerApiEnvProvisioner, wsAgentServerConfigProvisioner, singlePortLabelsProvisioner, serversConverter, envVarsConverter, memoryAttributeConverter, volumesConverter); allInnerProvisioners = new Object[] { settingsProvisioners, projectsVolumeProvisioner, installerConfigProvisioner, labelsProvisioner, dockerApiEnvProvisioner, wsAgentServerConfigProvisioner, serversConverter, envVarsConverter, memoryAttributeConverter, volumesConverter, singlePortLabelsProvisioner }; }
Source:
public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } final Device device = (Device) o; if (this.deviceIdentification != null ? !this.deviceIdentification.equals(device.deviceIdentification) : device.deviceIdentification != null) { return false; } return true; }

Target:
public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || this.getClass() != o.getClass()) { return false; } final Device device = (Device) o; return Objects.equals(this.deviceIdentification, device.deviceIdentification); }
Source:
public OrmException convertError(String op, String entity, SQLException err) { switch (err.getErrorCode()) { case 1062: return new OrmDuplicateKeyException(entity, err); default: return fallbackConvertError(op, entity, err); } }

Target:
public OrmException convertError(String op, String entity, SQLException err) { switch (err.getErrorCode()) { case MysqlErrorNumbers.ER_DUP_ENTRY: return new OrmDuplicateKeyException(entity, err); default: return fallbackConvertError(op, entity, err); } }
Source:
public void run() { try { if (build instanceof MatrixBuild) { List<MatrixRun> runs = ((MatrixBuild)build).getRuns(); for (AbstractBuild run : runs) { if (run.getActions(FailureCauseBuildAction.class).isEmpty() && run.getActions(FailureCauseMatrixBuildAction.class).isEmpty() && ResultFilter.needToAnalyze(run.getResult()) && run.getNumber() == build.getNumber()) { scanBuild(run); } } endMatrixBuildScan(); } else { if (ResultFilter.needToAnalyze(build.getResult())) { scanBuild(build); } } } catch (Exception e) { logger.log(Level.WARNING, "Failed to add a FailureScanner to " + build.getProject().getFullDisplayName(), e); } }

Target:
public void run() { try { if (build instanceof MatrixBuild) { List<MatrixRun> runs = ((MatrixBuild)build).getRuns(); for (AbstractBuild run : runs) { if (run.getActions(FailureCauseBuildAction.class).isEmpty() && run.getActions(FailureCauseMatrixBuildAction.class).isEmpty() && PluginImpl.needToAnalyze(run.getResult()) && run.getNumber() == build.getNumber()) { scanBuild(run); } } endMatrixBuildScan(); } else { scanBuild(build); } } catch (Exception e) { logger.log(Level.WARNING, "Failed to add a FailureScanner to " + build.getProject().getFullDisplayName(), e); } }
Source:
public void runTetherProvisioningCheck(int type, ResultReceiver receiver) { enforceTetherAccessPermission(); mTethering.runTetherProvisioningCheck(type, receiver); }

Target:
public void runTetherProvisioningCheck(int type, ResultReceiver receiver) { enforceTetherChangePermission(); mTethering.runTetherProvisioningCheck(type, receiver); }
Source:
public void testStaticVisibilityFromLambdas() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(HiddenFieldCheck.class); final String[] expected = { "16:34: " + getCheckMessage(MSG_KEY, "value"), "48:23: " + getCheckMessage(MSG_KEY, "languageCode"), "57:35: " + getCheckMessage(MSG_KEY, "num1"), "70:35: " + getCheckMessage(MSG_KEY, "num2"), "98:23: " + getCheckMessage(MSG_KEY, "lc1"), }; verify(checkConfig, new File("src/test/resources-noncompilable/com/puppycrawl/tools/" + "checkstyle/coding/InputHiddenFieldLambdas.java").getCanonicalPath(), expected); }

Target:
public void testStaticVisibilityFromLambdas() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(HiddenFieldCheck.class); final String[] expected = { "16:34: " + getCheckMessage(MSG_KEY, "value"), "48:31: " + getCheckMessage(MSG_KEY, "languageCode"), "57:35: " + getCheckMessage(MSG_KEY, "number"), "70:35: " + getCheckMessage(MSG_KEY, "id"), "98:33: " + getCheckMessage(MSG_KEY, "note"), "123:57: " + getCheckMessage(MSG_KEY, "stringValue"), "123:78: " + getCheckMessage(MSG_KEY, "intValue"), "134:74: " + getCheckMessage(MSG_KEY, "doubleValue"), "146:51: " + getCheckMessage(MSG_KEY, "firstString"), "146:64: " + getCheckMessage(MSG_KEY, "secondString"), "162:49: " + getCheckMessage(MSG_KEY, "first"), "188:62: " + getCheckMessage(MSG_KEY, "mPi"), "204:27: " + getCheckMessage(MSG_KEY, "justSomeList"), "204:61: " + getCheckMessage(MSG_KEY, "justSomeMap"), "216:55: " + getCheckMessage(MSG_KEY, "someObject"), "224:52: " + getCheckMessage(MSG_KEY, "someObject"), }; verify(checkConfig, new File("src/test/resources-noncompilable/com/puppycrawl/tools/" + "checkstyle/coding/InputHiddenFieldLambdas.java").getCanonicalPath(), expected); }
Source:
public boolean isAlias() { return aliasTarget != null; }

Target:
public boolean isAlias() { return instance instanceof ComponentAlias; }
Source:
public FilesToRunProvider( NestedSet<Artifact> filesToRun, @Nullable RunfilesSupport runfilesSupport, @Nullable Artifact executable) { if (executable != null) { filesToRun = NestedSetBuilder.fromNestedSet(filesToRun).add(executable).build(); } this.filesToRun = filesToRun; this.runfilesSupport = runfilesSupport; this.executable = executable; }

Target:
public FilesToRunProvider( NestedSet<Artifact> filesToRun, @Nullable RunfilesSupport runfilesSupport, @Nullable Artifact executable) { this.filesToRun = filesToRun; this.runfilesSupport = runfilesSupport; this.executable = executable; }
Source:
public static void setImage(ComponentContainer container, ImageView view, String picturePath) { GlideDrawableImageViewTarget imageViewTarget = new GlideDrawableImageViewTarget(view); MediaUtil.MediaSource mediaSource = MediaUtil.determineMediaSource(container.$form(), picturePath); switch (mediaSource) { case ASSET: Drawable drawable = null; try { drawable = MediaUtil.getBitmapDrawable(container.$form(), picturePath); } catch (IOException e) { e.printStackTrace(); } view.setImageDrawable(drawable); break; case REPL_ASSET: String path = MediaUtil.replAssetPath(picturePath); try { Glide.with(container.$context()) .load(Uri.fromFile(new File(path))) .into(imageViewTarget); } catch (Exception e) { Log.e("Image", "Unable to load " + path); } break; default: try { Glide.with(container.$context()) .load(Uri.fromFile(new File(picturePath))) .into(imageViewTarget); } catch (Exception e) { Log.e("Image", "Unable to load " + picturePath); } } if (view.getDrawable() != null) { view.setAdjustViewBounds(true); } view.requestLayout(); }

Target:
public static void setImage(ComponentContainer container, ImageView view, String picturePath) { if (picturePath.endsWith(".gif") && Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD_MR1) { GlideDrawableImageViewTarget imageViewTarget = new GlideDrawableImageViewTarget(view); MediaUtil.MediaSource mediaSource = MediaUtil.determineMediaSource(container.$form(), picturePath); switch (mediaSource) { case ASSET: try { InputStream is = container.$form().getAssets().open(picturePath); ByteArrayOutputStream bos = new ByteArrayOutputStream(); byte[] buf = new byte[4096]; int read; while ((read = is.read(buf)) > 0) { bos.write(buf, 0, read); } buf = bos.toByteArray(); Glide.with(container.$context()) .load(buf) .into(imageViewTarget); } catch (IOException e) { Log.e("Image", "Unable to load " + picturePath); } break; case REPL_ASSET: String replAssetPath = MediaUtil.replAssetPath(picturePath); try { Glide.with(container.$context()) .load(Uri.fromFile(new File(replAssetPath))) .into(imageViewTarget); } catch (Exception e) { Log.e("Image", "Unable to load " + picturePath); } break; default: try { Glide.with(container.$context()) .load(Uri.fromFile(new File(picturePath))) .into(imageViewTarget); } catch (Exception e) { Log.e("Image", "Unable to load " + picturePath); } } } else { Drawable drawable = null; try { drawable = MediaUtil.getBitmapDrawable(container.$form(), picturePath); } catch (IOException e) { e.printStackTrace(); } view.setImageDrawable(drawable); } if (view.getDrawable() != null) { view.setAdjustViewBounds(true); } view.requestLayout(); }
Source:
private void assertContainsInstallableUnitOperand(String message, List<Operand> operands, InstallableUnitOperand operand) { for (Operand operand2 : operands) { if (!(operand2 instanceof InstallableUnitOperand)) continue; InstallableUnitOperand cmp = (InstallableUnitOperand) operand2; if (cmp.first() != null && cmp.first().equals(operand.first()) && cmp.second() != null && cmp.second().equals(operand.second())) return; } fail(message); }

Target:
private void assertContainsInstallableUnitOperand(String message, List<Operand> operands, InstallableUnitOperand operand) { for (Operand op : operands) { if (!(op instanceof InstallableUnitOperand)) continue; InstallableUnitOperand cmp = (InstallableUnitOperand) op; if (cmp.first() != null && cmp.first().equals(operand.first()) && cmp.second() != null && cmp.second().equals(operand.second())) return; } fail(message); }
Source:
protected String cmdString(String... cmds) { if (cmds.length == 0) return ""; else if (cmds.length == 1) return "\"" + escapeJava(cmds[0]) + "\""; else { StringBuffer sb = new StringBuffer(cmdString(cmds[0])); for (int i=1; i<cmds.length; i++) { sb.append(", "); sb.append(cmdString(cmds[i])); } return sb.toString(); } }

Target:
protected String cmdString(String... cmds) { if (cmds.length == 0) return ""; else if (cmds.length == 1) return "\"" + escapeJava(cmds[0]) + "\""; else { StringBuilder sb = new StringBuilder(cmdString(cmds[0])); for (int i=1; i<cmds.length; i++) { sb.append(", "); sb.append(cmdString(cmds[i])); } return sb.toString(); } }
Source:
private void grow() { data = Arrays.copyOf(data, data.length << 1); }

Target:
private void grow() { Object[] newData = new Object[data.length * 2]; int newStart = newData.length / 4; System.arraycopy(data, start, newData, newStart, size); data = newData; start = newStart; }
Source:
List<String> getSuitablePnpm(String dir) { final List<String> pnpmCommand = getPnpmExecutable(dir, false); if (pnpmCommand.isEmpty()) { return Collections.emptyList(); } try { List<String> versionCmd = new ArrayList<>(pnpmCommand); versionCmd.add("--version"); FrontendVersion pnpmVersion = FrontendUtils.getVersion("pnpm", versionCmd); if (FrontendUtils.isVersionAtLeast(pnpmVersion, SUPPORTED_PNPM_VERSION) && pnpmVersion.isOlderThan(BREAKING_PNPM_VERSION)) { return pnpmCommand; } else { final String pnpmCommandString = String.join(" ", pnpmCommand); getLogger().warn( "installed pnpm ('{}', version {}) is not in the compatible versions range (>={}, <{})", pnpmCommandString, pnpmVersion.getFullVersion(), SUPPORTED_PNPM_VERSION.getFullVersion(), BREAKING_PNPM_VERSION.getFullVersion()); if (FrontendUtils.skippingVersionCheck()) { getLogger().info("using '{}' anyway", pnpmCommandString); return pnpmCommand; } else { getLogger().info("installing pnpm version locally", SUPPORTED_PNPM_VERSION.getFullVersion()); } } } catch (UnknownVersionException e) { getLogger().warn( "Error checking pnpm version, installing pnpm locally", e); } return Collections.emptyList(); }

Target:
List<String> getSuitablePnpm(String dir) { List<String> pnpmCommand = getPnpmExecutable(dir, false); String pnpmCommandString = String.join(" ", pnpmCommand); if (!ignoreVersionChecks && !pnpmCommand.isEmpty()) { try { List<String> versionCmd = new ArrayList<>(pnpmCommand); versionCmd.add("--version"); FrontendVersion pnpmVersion = FrontendUtils.getVersion("pnpm", versionCmd); if (!(FrontendUtils.isVersionAtLeast(pnpmVersion, SUPPORTED_PNPM_VERSION) && pnpmVersion.isOlderThan(BREAKING_PNPM_VERSION))) { getLogger().warn( "installed pnpm ('{}', version {}) is not in the compatible versions range (>={}, <{})", pnpmCommandString, pnpmVersion.getFullVersion(), SUPPORTED_PNPM_VERSION.getFullVersion(), BREAKING_PNPM_VERSION.getFullVersion()); pnpmCommand = Collections.emptyList(); } } catch (UnknownVersionException e) { getLogger().warn("error checking pnpm version", e); } } if (!pnpmCommand.isEmpty()) { getLogger().info("using '{}' for frontend package installation", pnpmCommandString); } else { getLogger().info("installing pnpm version locally", SUPPORTED_PNPM_VERSION.getFullVersion()); } return pnpmCommand; }
Source:
private TaskStatus createTaskStatus(TaskHolder taskHolder) { long versionNumber = nextTaskInfoVersion.getAndIncrement(); TaskState state = taskStateMachine.getState(); List<ExecutionFailureInfo> failures = ImmutableList.of(); if (state == TaskState.FAILED) { failures = toFailures(taskStateMachine.getFailureCauses()); } int queuedPartitionedDrivers = 0; int runningPartitionedDrivers = 0; DataSize memoryReservation = new DataSize(0, BYTE); if (taskHolder.getFinalTaskInfo() != null) { TaskStats taskStats = taskHolder.getFinalTaskInfo().getStats(); queuedPartitionedDrivers = taskStats.getQueuedPartitionedDrivers(); runningPartitionedDrivers = taskStats.getRunningPartitionedDrivers(); memoryReservation = taskStats.getMemoryReservation(); } else if (taskHolder.getTaskExecution() != null) { TaskContext taskContext = taskHolder.getTaskExecution().getTaskContext(); queuedPartitionedDrivers = taskContext.getPipelineContexts().stream().mapToInt(context -> context.getPipelineStatus().getQueuedPartitionedDrivers()).sum(); runningPartitionedDrivers = taskContext.getPipelineContexts().stream().mapToInt(context -> context.getPipelineStatus().getRunningPartitionedDrivers()).sum(); memoryReservation = taskContext.getMemoryReservation(); } return new TaskStatus(taskStateMachine.getTaskId(), taskInstanceId, versionNumber, state, location, nodeId, failures, queuedPartitionedDrivers, runningPartitionedDrivers, memoryReservation); }

Target:
private TaskStatus createTaskStatus(TaskHolder taskHolder) { long versionNumber = nextTaskInfoVersion.getAndIncrement(); TaskState state = taskStateMachine.getState(); List<ExecutionFailureInfo> failures = ImmutableList.of(); if (state == TaskState.FAILED) { failures = toFailures(taskStateMachine.getFailureCauses()); } int queuedPartitionedDrivers = 0; int runningPartitionedDrivers = 0; DataSize memoryReservation = new DataSize(0, BYTE); if (taskHolder.getFinalTaskInfo() != null) { TaskStats taskStats = taskHolder.getFinalTaskInfo().getStats(); queuedPartitionedDrivers = taskStats.getQueuedPartitionedDrivers(); runningPartitionedDrivers = taskStats.getRunningPartitionedDrivers(); memoryReservation = taskStats.getMemoryReservation(); } else if (taskHolder.getTaskExecution() != null) { TaskContext taskContext = taskHolder.getTaskExecution().getTaskContext(); for (PipelineContext pipelineContext : taskContext.getPipelineContexts()) { PipelineStatus pipelineStatus = pipelineContext.getPipelineStatus(); queuedPartitionedDrivers += pipelineStatus.getQueuedPartitionedDrivers(); runningPartitionedDrivers += pipelineStatus.getRunningPartitionedDrivers(); } memoryReservation = taskContext.getMemoryReservation(); } return new TaskStatus(taskStateMachine.getTaskId(), taskInstanceId, versionNumber, state, location, nodeId, failures, queuedPartitionedDrivers, runningPartitionedDrivers, memoryReservation); }
Source:
public void testMemoryLeak_with_RestConnections() throws IOException { Config config = new Config(); config.setClusterName(randomName()); config.setProperty(GroupProperty.IO_BALANCER_INTERVAL_SECONDS.getName(), "1"); HazelcastInstance instance = Hazelcast.newHazelcastInstance(config); HTTPCommunicator communicator = new HTTPCommunicator(instance); for (int i = 0; i < 100; i++) { communicator.getClusterInfo(); } final IOBalancer ioBalancer = getIoBalancer(instance); assertTrueEventually(() -> { int inPipelineSize = ioBalancer.getInLoadTracker().getPipelines().size(); int outPipelineSize = ioBalancer.getOutLoadTracker().getPipelines().size(); assertEquals(0, inPipelineSize); assertEquals(0, outPipelineSize); }); }

Target:
public void testMemoryLeak_with_RestConnections() throws IOException { Config config = new Config(); config.setClusterName(randomName()); config.getNetworkConfig().getRestApiConfig().setEnabled(true); config.setProperty(GroupProperty.IO_BALANCER_INTERVAL_SECONDS.getName(), "1"); HazelcastInstance instance = Hazelcast.newHazelcastInstance(config); HTTPCommunicator communicator = new HTTPCommunicator(instance); for (int i = 0; i < 100; i++) { communicator.getClusterInfo(); } final IOBalancer ioBalancer = getIoBalancer(instance); assertTrueEventually(() -> { int inPipelineSize = ioBalancer.getInLoadTracker().getPipelines().size(); int outPipelineSize = ioBalancer.getOutLoadTracker().getPipelines().size(); assertEquals(0, inPipelineSize); assertEquals(0, outPipelineSize); }); }