auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private TreeLayer <START> getTreeLayer() <END> { NatTable natTable = (NatTable) getTableManager().getAdapter(NatTable.class); ILayer layer = natTable.getLayer(); if (layer instanceof PapyrusGridLayer) { PapyrusGridLayer gridLayer = (PapyrusGridLayer) layer; ILayer rowLayer = gridLayer.getRowHeaderLayer(); if (rowLayer instanceof RowHeaderHierarchicalLayerStack) { return ((RowHeaderHierarchicalLayerStack) rowLayer).getTreeLayer(); } } throw new UnknownError("TreeLayer has not been found"); }</code><technical_language>method signature Exception thrown</technical_language>

Target:
private TreeLayer getTreeLayer() throws Exception { NatTable natTable = (NatTable) getTableManager().getAdapter(NatTable.class); ILayer layer = natTable.getLayer(); if (layer instanceof PapyrusGridLayer) { PapyrusGridLayer gridLayer = (PapyrusGridLayer) layer; ILayer rowLayer = gridLayer.getRowHeaderLayer(); if (rowLayer instanceof RowHeaderHierarchicalLayerStack) { return ((RowHeaderHierarchicalLayerStack) rowLayer).getTreeLayer(); } } throw new UnknownError("TreeLayer has not been found"); }
Source:
<code>public ColumnGetter newColumnGetter(JdbcInputConnection con, PluginTask task, JdbcColumn column, JdbcColumnOption option) { ColumnGetter getter = super.newColumnGetter(con, task, column, option); switch (column.getTypeName()) { case "DATETIME": case "TIMESTAMP": int index = task.getQuerySchema().findColumn(column.getName()).get(); if (!task.getIncremental() || !task.getIncrementalColumnIndexes().contains(index)) { return getter; } MySQLInputConnection mysqlInputConnection = (MySQLInputConnection) con; if (mysqlInputConnection.getUseLegacyDatetimeCode()) { throw new ConfigException("Must use 'useLegacyDatetimeCode=false' if 'DATETIME' or 'TIMESTAMP' typed columns are used as incremental_columns:"); } TimeZone timeZone = mysqlInputConnection.getServerTimezoneTZ(); <START> final ZoneId sessionTimeZone = checkNotNull(timeZone.toZoneId()); <END> if (column.getTypeName().equals("DATETIME")) { return new MySQLDateTimeTimestampIncrementalHandler(sessionTimeZone, getter); } else { return new MySQLTimestampTimestampIncrementalHandler(sessionTimeZone, getter); } case "JSON": return new JsonColumnGetter(to, Types.JSON); default: return getter; } }</code><technical_language>i timeZone.toZoneId null case. need checkNotNull</technical_language>

Target:
public ColumnGetter newColumnGetter(JdbcInputConnection con, PluginTask task, JdbcColumn column, JdbcColumnOption option) { ColumnGetter getter = super.newColumnGetter(con, task, column, option); switch (column.getTypeName()) { case "DATETIME": case "TIMESTAMP": int index = task.getQuerySchema().findColumn(column.getName()).get(); if (!task.getIncremental() || !task.getIncrementalColumnIndexes().contains(index)) { return getter; } MySQLInputConnection mysqlInputConnection = (MySQLInputConnection) con; if (mysqlInputConnection.getUseLegacyDatetimeCode()) { throw new ConfigException("Must use 'useLegacyDatetimeCode=false' if 'DATETIME' or 'TIMESTAMP' typed columns are used as incremental_columns:"); } TimeZone timeZone = mysqlInputConnection.getServerTimezoneTZ(); final ZoneId sessionTimeZone = timeZone.toZoneId(); if (column.getTypeName().equals("DATETIME")) { return new MySQLDateTimeTimestampIncrementalHandler(sessionTimeZone, getter); } else { return new MySQLTimestampTimestampIncrementalHandler(sessionTimeZone, getter); } case "JSON": return new JsonColumnGetter(to, Types.JSON); default: return getter; } }
Source:
<code><START> protected static void batchRemoveDocuments(CoreSession adminSession, List<DocumentRef> ids) { <END> List<DocumentRef> deferredIds = new ArrayList<>(); for (DocumentRef id : ids) { if (!adminSession.exists(id)) { continue; } if (adminSession.canRemoveDocument(id)) { adminSession.removeDocument(id); } else { deferredIds.add(id); } } adminSession.removeDocuments(deferredIds.toArray(new DocumentRef[0])); }</code><technical_language>static</technical_language>

Target:
protected void batchRemoveDocuments(CoreSession adminSession, List<DocumentRef> ids) { List<DocumentRef> deferredIds = new ArrayList<>(); for (DocumentRef id : ids) { if (!adminSession.exists(id)) { continue; } if (adminSession.canRemoveDocument(id)) { adminSession.removeDocument(id); } else { deferredIds.add(id); } } adminSession.removeDocuments(deferredIds.toArray(new DocumentRef[0])); }
Source:
<code>private void deductCreditAmountsFromDebitTransactions(PdpFeedDetailEntry newDetailEntry, KualiDecimal originalCreditTotal) { <START> KualiDecimal totalDeductionsLeft = new KualiDecimal(originalCreditTotal.doubleValue()); <END> for (PdpFeedAccountingEntry accountingEntry : newDetailEntry.getAccounting()) { if (accountingEntry.getAmount().isPositive() && totalDeductionsLeft.isNegative()) { KualiDecimal newTransactionAmount = accountingEntry.getAmount().add(totalDeductionsLeft); if (newTransactionAmount.isNegative()) { totalDeductionsLeft = new KualiDecimal(newTransactionAmount.doubleValue()); newTransactionAmount = KualiDecimal.ZERO; } else { totalDeductionsLeft = KualiDecimal.ZERO; } LOG.info("deductCreditAmountsFromDebitTransactions, Editing transction " + accountingEntry.toString() + ". changing the amount to " + newTransactionAmount); accountingEntry.setAmount(newTransactionAmount); } } }</code><technical_language>KualiDecimal objects immutable, safe set this variable original total directly. Also, I suggest avoiding doubleValue() conversion, avoid risk of calculations messed up</technical_language>

Target:
private void deductCreditAmountsFromDebitTransactions(PdpFeedDetailEntry newDetailEntry, KualiDecimal originalCreditTotal) { KualiDecimal totalDeductionsLeft = originalCreditTotal; for (PdpFeedAccountingEntry accountingEntry : newDetailEntry.getAccounting()) { if (accountingEntry.getAmount().isPositive() && totalDeductionsLeft.isNegative()) { KualiDecimal newTransactionAmount = accountingEntry.getAmount().add(totalDeductionsLeft); if (newTransactionAmount.isNegative()) { totalDeductionsLeft = newTransactionAmount; newTransactionAmount = KualiDecimal.ZERO; } else { totalDeductionsLeft = KualiDecimal.ZERO; } LOG.info("deductCreditAmountsFromDebitTransactions, Editing transction " + accountingEntry.toString() + ". changing the amount to " + newTransactionAmount); accountingEntry.setAmount(newTransactionAmount); } } }
Source:
<code>public static void main(String[] args) throws IOException { JobParameters params = new JobParameters(); JCommander jcommander = new JCommander(params); jcommander.parse(args); try (JavaSparkContext sc = JavaSparkContextFactory.withConfAndKryo(new SparkConf())) { HdfsUtils.remove(sc.hadoopConfiguration(), params.outputPath); JavaPairRDD<CharSequence, ImportedPatent> importedPatentsById = avroLoader .loadJavaRDD(sc, params.inputImportedPatentPath, ImportedPatent.class) <START> .mapToPair(x -> new Tuple2<CharSequence, ImportedPatent>(x.getApplnNr(), x)); <END> JavaPairRDD<CharSequence, Boolean> matchedDedupedPatentsById = avroLoader .loadJavaRDD(sc, params.inputMatchedPatentPath, DocumentToPatent.class).map(x -> x.getApplnNr()) .distinct().mapToPair(x -> new Tuple2<CharSequence, Boolean>(x, true)); JavaRDD<ImportedPatent> filteredPatents = matchedDedupedPatentsById.join(importedPatentsById).values().map(x -> x._2); avroSaver.saveJavaRDD(filteredPatents, ImportedPatent.SCHEMA$, params.outputPath); } }</code><technical_language>drop types diamond operator here: new Tuple2<>(x.getApplnNr(), x)</technical_language>

Target:
public static void main(String[] args) throws IOException { JobParameters params = new JobParameters(); JCommander jcommander = new JCommander(params); jcommander.parse(args); try (JavaSparkContext sc = JavaSparkContextFactory.withConfAndKryo(new SparkConf())) { HdfsUtils.remove(sc.hadoopConfiguration(), params.outputPath); JavaPairRDD<CharSequence, ImportedPatent> importedPatentsById = avroLoader .loadJavaRDD(sc, params.inputImportedPatentPath, ImportedPatent.class) .mapToPair(x -> new Tuple2<>(x.getApplnNr(), x)); JavaPairRDD<CharSequence, Boolean> matchedDedupedPatentsById = avroLoader .loadJavaRDD(sc, params.inputMatchedPatentPath, DocumentToPatent.class).map(DocumentToPatent::getApplnNr) .distinct().mapToPair(x -> new Tuple2<>(x, true)); JavaRDD<ImportedPatent> filteredPatents = matchedDedupedPatentsById.join(importedPatentsById).values().map(x -> x._2); avroSaver.saveJavaRDD(filteredPatents, ImportedPatent.SCHEMA$, params.outputPath); } }
Source:
<code>public List<Entity> getEntities(ClassLoader extensionClassloader, String extensionName, String jobName, InputStream configStream) throws IOException, FalconException { Thread.currentThread().setContextClassLoader(extensionClassloader); ServiceLoader<ExtensionBuilder> extensionBuilders = ServiceLoader.load(ExtensionBuilder.class); List<Class<? extends ExtensionBuilder>> result = new ArrayList<>(); for (ExtensionBuilder extensionBuilder : extensionBuilders) { result.add(extensionBuilder.getClass()); } if (result.isEmpty()) { throw new FalconException("Extension Implementation not found in the package of : " + extensionName); } else if (result.size() > 1) { throw new FalconException("Found more than one extension Implementation in the package of : " + extensionName); } <START> ExtensionBuilder extensionBuilder; <END> try { Class<ExtensionBuilder> clazz = (Class<ExtensionBuilder>) extensionClassloader .loadClass(result.get(0).getCanonicalName()); extensionBuilder = clazz.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { throw new FalconCLIException("Failed to instantiate extension implementation " + extensionName, e); } extensionBuilder.validateExtensionConfig(extensionName, configStream); List<Entity> entities = extensionBuilder.getEntities(jobName, configStream); return entities; }</code><technical_language>initialization. remove</technical_language>

Target:
public List<Entity> getEntities(ClassLoader extensionClassloader, String extensionName, String jobName, InputStream configStream) throws IOException, FalconException { Thread.currentThread().setContextClassLoader(extensionClassloader); ServiceLoader<ExtensionBuilder> extensionBuilders = ServiceLoader.load(ExtensionBuilder.class); List<Class<? extends ExtensionBuilder>> result = new ArrayList<>(); for (ExtensionBuilder extensionBuilder : extensionBuilders) { result.add(extensionBuilder.getClass()); } if (result.isEmpty()) { throw new FalconException("Extension Implementation not found in the package of : " + extensionName); } else if (result.size() > 1) { throw new FalconException("Found more than one extension Implementation in the package of : " + extensionName); } ExtensionBuilder extensionBuilder = null; try { Class<ExtensionBuilder> clazz = (Class<ExtensionBuilder>) extensionClassloader .loadClass(result.get(0).getCanonicalName()); extensionBuilder = clazz.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) { throw new FalconCLIException("Failed to instantiate extension implementation " + extensionName, e); } extensionBuilder.validateExtensionConfig(extensionName, configStream); List<Entity> entities = extensionBuilder.getEntities(jobName, configStream); return entities; }
Source:
<code><START> public FileSingleStreamSpiller( <END> PagesSerde serde, ListeningExecutorService executor, Path spillPath, SpillerStats spillerStats, SpillContext spillContext, LocalMemoryContext memoryContext) { this.serde = requireNonNull(serde, "serde is null"); this.executor = requireNonNull(executor, "executor is null"); this.spillerStats = requireNonNull(spillerStats, "spillerStats is null"); this.localSpillContext = spillContext.newLocalSpillContext(); this.memoryContext = requireNonNull(memoryContext, "memoryContext can not be null"); try { targetFileName = Files.createTempFile(spillPath, SPILL_FILE_PREFIX, SPILL_FILE_SUFFIX); } catch (IOException e) { throw new PrestoException(GENERIC_INTERNAL_ERROR, "Failed to create spill file", e); } }</code><technical_language>squash this commit added this file</technical_language>

Target:
public FileSingleStreamSpiller( PagesSerde serde, ListeningExecutorService executor, Path spillPath, SpillerStats spillerStats, SpillContext spillContext, LocalMemoryContext memoryContext) { this.serde = requireNonNull(serde, "serde is null"); this.executor = requireNonNull(executor, "executor is null"); this.spillerStats = requireNonNull(spillerStats, "spillerStats is null"); this.localSpillContext = spillContext.newLocalSpillContext(); this.memoryContext = requireNonNull(memoryContext, "memoryContext can not be null"); try { this.targetFile = closer.register(new FileHolder(Files.createTempFile(spillPath, SPILL_FILE_PREFIX, SPILL_FILE_SUFFIX))); } catch (IOException e) { throw new PrestoException(GENERIC_INTERNAL_ERROR, "Failed to create spill file", e); } }
Source:
<code>public String getRawMethod() { <START> throw new UnsupportedOperationException("todo"); <END> }</code><technical_language>Write todo "way" in places</technical_language>

Target:
public String getRawMethod() { return rawMethod; }
Source:
<code>public void testInvertSortKey() { assertEquals("ffffffffffffffff", ChangeUtil.invertSortKey( <START> "0000000000000000").toLowerCase()); <END> assertEquals("0000000000000001", ChangeUtil .invertSortKey("FFFFFFFFFFFFFFFE")); assertEquals("0001600000000000", ChangeUtil .invertSortKey("FFFE9FFFFFFFFFFF")); assertEquals("/", ChangeUtil.invertSortKey("z")); assertEquals("z", ChangeUtil.invertSortKey("/")); }</code><technical_language>is this toLowerCase</technical_language>

Target:
public void testInvertSortKey() { assertEquals("ffffffffffffffff", ChangeUtil .invertSortKey("0000000000000000")); assertEquals("0000000000000001", ChangeUtil .invertSortKey("fffffffffffffffe")); assertEquals("0001600000000000", ChangeUtil .invertSortKey("fffe9fffffffffff")); assertEquals("/", ChangeUtil.invertSortKey("z")); assertEquals("z", ChangeUtil.invertSortKey("/")); }
Source:
<code>public void export(final DRepresentation representation, final Session session, final IPath path, final ExportFormat format, final IProgressMonitor monitor) <START> throws SizeTooLargeException { <END> export(representation, session, path, format, monitor, true); }</code><technical_language>This is strange this method throws SizeTooLargeException new one. this exception is necessary</technical_language>

Target:
public void export(final DRepresentation representation, final Session session, final IPath path, final ExportFormat format, final IProgressMonitor monitor) { export(representation, session, path, format, monitor, true); }
Source:
<code>public void run() { <START> final List<Media> medias = MediaRepository.getAllMedia(); <END> if (medias != null && !medias.isEmpty()) { mMainExecutor.run(new Runnable() { @Override public void run() { mCallback.onSuccess(medias); } }); } else { mMainExecutor.run(new Runnable() { @Override public void run() { mCallback.onError(); } }); } }</code><technical_language>Repository a dependency inject in constructor</technical_language>

Target:
public void run() { final List<Media> medias = mMediaRepository.getAll(); if (medias != null && !medias.isEmpty()) { mMainExecutor.run(new Runnable() { @Override public void run() { mCallback.onSuccess(medias); } }); } else { mMainExecutor.run(new Runnable() { @Override public void run() { mCallback.onError(); } }); } }
Source:
<code>private static synchronized Schedulers getInstance() { if (INSTANCE == null) { INSTANCE = new Schedulers(); } return INSTANCE; <START> } <END></code><technical_language>Please atomics instead: java private static final AtomicReference<Schedulers> INSTANCE = new AtomicReference<Schedulers>(); private static Schedulers getInstance() { for (;;) { Schedulers current = INSTANCE.get(); if (current != null) { return current; } current = new Schedulers(); if (INSTANCE.compareAndSet(null, current)) { return current; } else { current.shutdown(); } } }</technical_language>

Target:
private static Schedulers getInstance() { for (;;) { Schedulers current = INSTANCE.get(); if (current != null) { return current; } current = new Schedulers(); if (INSTANCE.compareAndSet(null, current)) { return current; } else { shutdown(); } } }
Source:
<code>public long readLimit(String client) { QosClientLimitsConfig qosClientLimitsConfig = qosClientConfigLoader.getConfigForClient(client); <START> readLimitMultiplier = this.clientLimitMultiplier.getClientLimitMultiplier( <END> qosClientLimitsConfig.clientPriority()); return (long) (readLimitMultiplier * qosClientLimitsConfig.limits().readBytesPerSecond()); }</code><technical_language>This is awkward current CassandraMetricsClientLimitMultiplier implementation, high priority clients update limit 1.0. some sawtooth metrics if clients priority levels while throttling is ongoing</technical_language>

Target:
public long readLimit(String client) { QosClientLimitsConfig qosClientLimitsConfig = qosClientConfigLoader.getConfigForClient(client); readLimitMultiplier = this.clientLimitMultiplier.getClientLimitMultiplier( ); return (long) (readLimitMultiplier * qosClientLimitsConfig.limits().readBytesPerSecond()); }
Source:
<code>private Tag validateTagDescriptorType(Tag tag, SourceFile.FileType fileType, String primaryDescriptorPath) { LanguageHandlerInterface.VersionTypeValidation isValidDescriptor = LanguageHandlerFactory.getInterface(fileType) .validateToolSet(tag.getSourceFiles(), primaryDescriptorPath); Validation descriptorValidation = new Validation(fileType, isValidDescriptor); tag.addOrUpdateValidation(descriptorValidation); <START> SourceFile.FileType testParamType = Objects.equals(fileType, SourceFile.FileType.DOCKSTORE_WDL) ? SourceFile.FileType.WDL_TEST_JSON : SourceFile.FileType.CWL_TEST_JSON; <END> LanguageHandlerInterface.VersionTypeValidation isValidTestParameter = LanguageHandlerFactory.getInterface(fileType) .validateTestParameterSet(tag.getSourceFiles()); Validation testParameterValidation = new Validation(testParamType, isValidTestParameter); tag.addOrUpdateValidation(testParameterValidation); return tag; }</code><technical_language>die other languages</technical_language>

Target:
private Tag validateTagDescriptorType(Tag tag, SourceFile.FileType fileType, String primaryDescriptorPath) { LanguageHandlerInterface.VersionTypeValidation isValidDescriptor = LanguageHandlerFactory.getInterface(fileType) .validateToolSet(tag.getSourceFiles(), primaryDescriptorPath); Validation descriptorValidation = new Validation(fileType, isValidDescriptor); tag.addOrUpdateValidation(descriptorValidation); SourceFile.FileType testParamType = null; switch (fileType) { case DOCKSTORE_CWL: testParamType = SourceFile.FileType.CWL_TEST_JSON; break; case DOCKSTORE_WDL: testParamType = SourceFile.FileType.WDL_TEST_JSON; break; case NEXTFLOW_CONFIG: break; default: throw new CustomWebApplicationException(fileType + " is not a valid tool type.", HttpStatus.SC_BAD_REQUEST); } if (testParamType != null) { LanguageHandlerInterface.VersionTypeValidation isValidTestParameter = LanguageHandlerFactory.getInterface(fileType).validateTestParameterSet(tag.getSourceFiles()); Validation testParameterValidation = new Validation(testParamType, isValidTestParameter); tag.addOrUpdateValidation(testParameterValidation); } return tag; }
Source:
<code>public void maybeThrottle(double observed) throws InterruptedException { synchronized (lock) { observedSoFar += observed; long now = time.nanoseconds(); long elapsedNs = now - periodStartNs; if ((checkIntervalMs < 0 || elapsedNs > checkIntervalMs * Time.NsPerMs) && observedSoFar > 0) { double rateInSecs = elapsedNs > 0 ? (observedSoFar * Time.NsPerSec) / elapsedNs : Double.MAX_VALUE; <START> boolean needAdjustment = !(throttleDown ^ (rateInSecs > desiredRatePerSec)); <END> if (needAdjustment) { double desiredRateMs = desiredRatePerSec / Time.MsPerSec; double elapsedMs = elapsedNs / Time.NsPerMs; long sleepTime = Math.round(observedSoFar / desiredRateMs - elapsedMs); if (sleepTime > 0) { logger.trace("Natural rate is per second but desired rate is {}, sleeping for ms to compensate.", rateInSecs, desiredRatePerSec, sleepTime); synchronized (waitGuard) { if (enabled) { time.wait(waitGuard, sleepTime); } } } } periodStartNs = now; observedSoFar = 0; } } }</code><technical_language>while this, simplify this statement throttleDown == rateInSecs > desiredRatePerSec ? (IntelliJ suggests this)</technical_language>

Target:
public void maybeThrottle(double observed) throws InterruptedException { synchronized (lock) { observedSoFar += observed; long now = time.nanoseconds(); long elapsedNs = now - periodStartNs; if ((checkIntervalMs < 0 || elapsedNs > checkIntervalMs * Time.NsPerMs) && observedSoFar > 0) { double rateInSecs = elapsedNs > 0 ? (observedSoFar * Time.NsPerSec) / elapsedNs : Double.MAX_VALUE; if (throttleDown == rateInSecs > desiredRatePerSec) { double desiredRateMs = desiredRatePerSec / Time.MsPerSec; double elapsedMs = elapsedNs / Time.NsPerMs; long sleepTime = Math.round(observedSoFar / desiredRateMs - elapsedMs); if (sleepTime > 0) { logger.trace("Natural rate is per second but desired rate is {}, sleeping for ms to compensate.", rateInSecs, desiredRatePerSec, sleepTime); synchronized (waitGuard) { if (enabled) { time.wait(waitGuard, sleepTime); } } } } periodStartNs = now; observedSoFar = 0; } } }
Source:
<code>private Constructor<? extends Response<?>> locateResponseConstructor(Class<?> responseClass) { Constructor<?>[] constructors = responseClass.getDeclaredConstructors(); Arrays.sort(constructors, Comparator.comparing(Constructor::getParameterCount, (a, b) -> b - a)); for (Constructor<?> constructor : constructors) { final int paramCount = constructor.getParameterCount(); if (paramCount >= 3 && paramCount <= 5) { try { return (Constructor<? extends Response<?>>) constructor; } catch (Throwable t) { throw logger.logExceptionAsError(new RuntimeException("Failed to cast the constructor to Response." <START> + "Error Details: " + t.getMessage(), t)); <END> } } } return null; }</code><technical_language>Do need "Error Details:" + t.getMessage? In previous log messages this, passed exception</technical_language>

Target:
private Constructor<? extends Response<?>> locateResponseConstructor(Class<?> responseClass) { Constructor<?>[] constructors = responseClass.getDeclaredConstructors(); Arrays.sort(constructors, Comparator.comparing(Constructor::getParameterCount, (a, b) -> b - a)); for (Constructor<?> constructor : constructors) { final int paramCount = constructor.getParameterCount(); if (paramCount >= 3 && paramCount <= 5) { try { return (Constructor<? extends Response<?>>) constructor; } catch (Throwable t) { throw logger.logExceptionAsError(new RuntimeException(t)); } } } return null; }
Source:
<code>private void doOpen() throws IOException { try { if (invalid) throw new <START> PackInvalidException(getPackFile()); <END> synchronized (readLock) { fd = new RandomAccessFile(getPackFile(), "r"); length = fd.length(); onOpenPack(); } } catch (InterruptedIOException e) { openFail(false); throw e; } catch (FileNotFoundException fn) { openFail(!packFile.exists()); throw fn; } catch (EOFException | AccessDeniedException | NoSuchFileException | CorruptObjectException | NoPackSignatureException | PackMismatchException | UnpackException | UnsupportedPackIndexVersionException | UnsupportedPackVersionException pe) { openFail(true); throw pe; } catch (IOException | RuntimeException ge) { openFail(false); throw ge; } }</code><technical_language>getter access field</technical_language>

Target:
private void doOpen() throws IOException { try { if (invalid) throw new PackInvalidException(packFileName); synchronized (readLock) { fd = new RandomAccessFile(packFileName, "r"); length = fd.length(); onOpenPack(); } } catch (InterruptedIOException e) { openFail(false); throw e; } catch (FileNotFoundException fn) { openFail(!packFileName.exists()); throw fn; } catch (EOFException | AccessDeniedException | NoSuchFileException | CorruptObjectException | NoPackSignatureException | PackMismatchException | UnpackException | UnsupportedPackIndexVersionException | UnsupportedPackVersionException pe) { openFail(true); throw pe; } catch (IOException | RuntimeException ge) { openFail(false); throw ge; } }
Source:
<code>public static String getDescription(Group group) { <START> Extension extension = group.getExtensionsByUrl(ExtensionsUtil.DESCRIPTION_URL).get(0); <END> return extension.getValue().toString(); }</code><technical_language>0 is magical number</technical_language>

Target:
public static String getDescription(Group group) { Extension extension = group.getExtensionsByUrl(ExtensionsUtil.DESCRIPTION_URL).get(FIRST); return extension.getValue().toString(); }
Source:
<code>private Method retrieveMethod(String name) { Method method; try { method = os.getClass().getDeclaredMethod(name); method.setAccessible(true); } catch (NoSuchMethodException e) { <START> LOG.debug("No such method exists:", e); <END> method = null; } return method; }</code><technical_language>This expected, recover it. I this error level</technical_language>

Target:
private Method retrieveMethod(String name) { try { final Method method = os.getClass().getDeclaredMethod(name); method.setAccessible(true); return method; } catch (NoSuchMethodException e) { LOG.error("No such method exists:", e); return null; } }
Source:
<code>void remove() { for (String filename : localFilesDirectory.contents()) { <START> if (!v2DatabaseFiles.databaseContents().contains(filename)) { <END> localFilesDirectory.deleteFile(filename); } } }</code><technical_language>This method kind of represents point before. need care backing data-structure is a database. if(!downloadFiles.fileNames().contains(fileName)))</technical_language>

Target:
void remove() { List<DownloadsFilePersisted> filesInV2Database = downloadsPersistence.loadAllFiles(); List<String> databaseFileNames = new ArrayList<>(); for (DownloadsFilePersisted filePersisted : filesInV2Database) { databaseFileNames.add(filePersisted.fileName().name()); } for (String localFile : localFilesDirectory.contents()) { if (!databaseFileNames.contains(localFile)) { localFilesDirectory.deleteFile(localFile); } } }
Source:
<code>public ChannelFuture register(Channel channel) { <START> EventExecutor eventExecutor = eventExecutorChooser.apply(channel, iterator()); <END> return eventExecutor != null ? ((EventLoop) eventExecutor).register(channel) : super.register(channel); }</code><technical_language>If EventLoop eventLoop = eventLoopChoose.apply(...) need cast [line 76](<LINK_0></technical_language>

Target:
public ChannelFuture register(Channel channel) { EventLoop eventExecutor = eventLoopChooser.apply(channel, iterator()); return eventExecutor != null ? eventExecutor.register(channel) : super.register(channel); }
Source:
<code>public Map<String, String> getJobMessageProperties() { if (jobProperties == null) { jobProperties = super.getJobMessageProperties(); jobProperties.put(VdcObjectType.StoragePool.name().toLowerCase(), <START> (getStoragePoolName() == null) ? "" : getStoragePoolName()); <END> jobProperties.put(VdcObjectType.VDS.name().toLowerCase(), (getVdsName() == null) ? "" : getVdsName()); } return jobProperties; }</code><technical_language>put name if null</technical_language>

Target:
public Map<String, String> getJobMessageProperties() { if (jobProperties == null) { jobProperties = super.getJobMessageProperties(); jobProperties.put(VdcObjectType.StoragePool.name().toLowerCase(), getStoragePoolName()); jobProperties.put(VdcObjectType.VDS.name().toLowerCase(), getVdsName()); } return jobProperties; }
Source:
<code>TakeoverInAppNotification(JSONObject description) throws BadDecideObjectException { super(description); try { JSONArray buttonsArray = description.getJSONArray("buttons"); ArrayList<InAppButton> tempButtons = new ArrayList<>(); for (int i = 0; i < buttonsArray.length(); i++) { JSONObject buttonJson = (JSONObject) buttonsArray.get(i); tempButtons.add(new InAppButton(buttonJson)); } <START> mButtons = tempButtons; <END> mCloseButtonColor = description.getInt("close_color"); mTitle = JSONUtils.optionalStringKey(description, "title"); mTitleColor = description.optInt("title_color"); mShouldFadeImage = getExtras().getBoolean("image_fade"); } catch (final JSONException e) { throw new BadDecideObjectException("Notification JSON was unexpected or bad", e); } }</code><technical_language>do tempButtons here? I this ArrayList<InAppButton> mButtons = new ArrayList<>(); for (int i = 0; i < buttonsArray.length(); i++) { JSONObject buttonJson = (JSONObject) buttonsArray.get(i); mButtons.add(new InAppButton(buttonJson)); }</technical_language>

Target:
TakeoverInAppNotification(JSONObject description) throws BadDecideObjectException { super(description); try { JSONArray buttonsArray = description.getJSONArray("buttons"); mButtons = new ArrayList<>(); for (int i = 0; i < buttonsArray.length(); i++) { JSONObject buttonJson = (JSONObject) buttonsArray.get(i); mButtons.add(new InAppButton(buttonJson)); } mCloseButtonColor = description.getInt("close_color"); mTitle = JSONUtils.optionalStringKey(description, "title"); mTitleColor = description.optInt("title_color"); mShouldFadeImage = getExtras().getBoolean("image_fade"); } catch (final JSONException e) { throw new BadDecideObjectException("Notification JSON was unexpected or bad", e); } }
Source:
<code>public void validate() { if (connectionFactory != null) { connectionFactory.validate(); } <START> if (attributes.attribute(MANAGE_CONNECTION_FACTORY).get() && (connectionFactory == null || connectionFactory.needsManaging())) { <END> table.validate(); } super.validate(); }</code><technical_language>do this need for needsManaging interface. sufficient: java if (!attributes.attribute(MANAGE_CONNECTION_FACTORY).get()) table.validate() If add builder.manageConnectionFactory(false); ManagedConnectionFactoryConfigurationBuilder constructor</technical_language>

Target:
public void validate() { table.validate(); super.validate(); }
Source:
<code>public Promise<Factory> getFactoryJson(String workspaceId, String path) { <START> path = path == null ? "" : path; <END> return asyncRequestFactory.createGetRequest(API_FACTORY_BASE_URL + "workspace/" + workspaceId + path) .header(HTTPHeader.ACCEPT, MimeType.APPLICATION_JSON) .loader(loader, "Getting info about factory...") .send(unmarshallerFactory.newUnmarshaller(Factory.class)); }</code><technical_language>do this? java String url = API_FACTORY_BASE_URL + "workspace/" + workspaceId; if (path != null) { url += path; }</technical_language>

Target:
public Promise<Factory> getFactoryJson(String workspaceId, String path) { String url = API_FACTORY_BASE_URL + "workspace/" + workspaceId; if (path != null) { url += path; } return asyncRequestFactory.createGetRequest(url) .header(HTTPHeader.ACCEPT, MimeType.APPLICATION_JSON) .loader(loader, "Getting info about factory...") .send(unmarshallerFactory.newUnmarshaller(Factory.class)); }
Source:
<code>public void executeCommand(final CommandSender sender, List<String> arguments) { final String playerName = arguments.get(0); final String playerPass = arguments.get(1); final String playerNameLowerCase = playerName.toLowerCase(); ValidationResult passwordValidation = validationService.validatePassword(playerPass, playerName); if (passwordValidation.hasError()) { commonService.send(sender, passwordValidation.getMessageKey(), passwordValidation.getArgs()); return; } bukkitService.runTaskOptionallyAsync(() -> { if (dataSource.isAuthAvailable(playerNameLowerCase)) { commonService.send(sender, MessageKey.NAME_ALREADY_REGISTERED); return; } HashedPassword hashedPassword = passwordSecurity.computeHash(playerPass, playerNameLowerCase); PlayerAuth auth = PlayerAuth.builder() .name(playerNameLowerCase) .realName(playerName) .password(hashedPassword) .build(); if (!dataSource.saveAuth(auth)) { commonService.send(sender, MessageKey.ERROR); return; } dataSource.setUnlogged(playerNameLowerCase); <START> dataSource.revokeSession(playerNameLowerCase); <END> commonService.send(sender, MessageKey.REGISTER_SUCCESS); ConsoleLogger.info(sender.getName() + " registered " + playerName); final Player player = bukkitService.getPlayerExact(playerName); if (player != null) { bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(() -> player.kickPlayer(commonService.retrieveSingleMessage(MessageKey.KICK_FOR_ADMIN_REGISTER))); } }); }</code><technical_language>calls necessary a player saved? expect defaults</technical_language>

Target:
public void executeCommand(final CommandSender sender, List<String> arguments) { final String playerName = arguments.get(0); final String playerPass = arguments.get(1); final String playerNameLowerCase = playerName.toLowerCase(); ValidationResult passwordValidation = validationService.validatePassword(playerPass, playerName); if (passwordValidation.hasError()) { commonService.send(sender, passwordValidation.getMessageKey(), passwordValidation.getArgs()); return; } bukkitService.runTaskOptionallyAsync(() -> { if (dataSource.isAuthAvailable(playerNameLowerCase)) { commonService.send(sender, MessageKey.NAME_ALREADY_REGISTERED); return; } HashedPassword hashedPassword = passwordSecurity.computeHash(playerPass, playerNameLowerCase); PlayerAuth auth = PlayerAuth.builder() .name(playerNameLowerCase) .realName(playerName) .password(hashedPassword) .build(); if (!dataSource.saveAuth(auth)) { commonService.send(sender, MessageKey.ERROR); return; } commonService.send(sender, MessageKey.REGISTER_SUCCESS); ConsoleLogger.info(sender.getName() + " registered " + playerName); final Player player = bukkitService.getPlayerExact(playerName); if (player != null) { bukkitService.scheduleSyncTaskFromOptionallyAsyncTask(() -> player.kickPlayer(commonService.retrieveSingleMessage(MessageKey.KICK_FOR_ADMIN_REGISTER))); } }); }
Source:
<code><START> public synchronized double getUpdateFailureRatio() { <END> long updateCounter = this.updateCounter; long updateAttemptCounter = this.updateAttemptCounter; MVMap.RootReference rootReference = meta.getRoot(); updateCounter += rootReference.updateCounter; updateAttemptCounter += rootReference.updateAttemptCounter; for (MVMap<?, ?> map : maps.values()) { MVMap.RootReference root = map.getRoot(); updateCounter += root.updateCounter; updateAttemptCounter += root.updateAttemptCounter; } return updateAttemptCounter == 0 ? 0 : 1 - ((double)updateCounter / updateAttemptCounter); }</code><technical_language>this need synchronized</technical_language>

Target:
public double getUpdateFailureRatio() { long updateCounter = this.updateCounter; long updateAttemptCounter = this.updateAttemptCounter; MVMap.RootReference rootReference = meta.getRoot(); updateCounter += rootReference.updateCounter; updateAttemptCounter += rootReference.updateAttemptCounter; for (MVMap<?, ?> map : maps.values()) { MVMap.RootReference root = map.getRoot(); updateCounter += root.updateCounter; updateAttemptCounter += root.updateAttemptCounter; } return updateAttemptCounter == 0 ? 0 : 1 - ((double)updateCounter / updateAttemptCounter); }
Source:
<code>public String getShortBranch(Repository repository) throws IOException { Ref head = repository.getRef(Constants.HEAD); if (head == null || head.getObjectId() == null) return CoreText.RepositoryUtil_noHead; if (head.isSymbolic()) return repository.getBranch(); <START> String fullBranch = repository.getFullBranch(); <END> String refString = mapCommitToRef(repository, fullBranch, false); if (refString != null) return Repository.shortenRefName(refString) + ' ' + fullBranch.substring(0, 7); else return fullBranch.substring(0, 7); }</code><technical_language>replace with: String fullBranch = head.getObjectId().name(); rename fullBranch objectId, clear this is ID, a branch name</technical_language>

Target:
public String getShortBranch(Repository repository) throws IOException { Ref head = repository.getRef(Constants.HEAD); if (head == null || head.getObjectId() == null) return CoreText.RepositoryUtil_noHead; if (head.isSymbolic()) return repository.getBranch(); String id = head.getObjectId().name(); String ref = mapCommitToRef(repository, id, false); if (ref != null) return Repository.shortenRefName(ref) + ' ' + id.substring(0, 7); else return id.substring(0, 7); }
Source:
<code>public void extractResponseDetails(FeedbackQuestionType questionType, FeedbackQuestionDetails questionDetails, String[] answer) { String rawResponses = answer[0]; FeedbackRubricQuestionDetails fqd = (FeedbackRubricQuestionDetails) questionDetails; initializeEmptyAnswerList(fqd.numOfRubricSubQuestions); String[] subQuestionResponses = rawResponses.split(Pattern.quote(",")); for (int i=0 ; i<subQuestionResponses.length ; i++) { String[] subQuestionIndexAndChoice = subQuestionResponses[i].split(Pattern.quote("-")); <START> if (subQuestionIndexAndChoice.length == 2) { <END> try { int subQuestionIndex = Integer.parseInt(subQuestionIndexAndChoice[0]); int subQuestionChoice = Integer.parseInt(subQuestionIndexAndChoice[1]); if (subQuestionIndex >=0 && subQuestionIndex <fqd.numOfRubricSubQuestions && subQuestionChoice >=0 && subQuestionChoice <fqd.numOfRubricChoices) { setAnswer(subQuestionIndex, subQuestionChoice); } } catch (NumberFormatException e) { } } else { } } }</code><technical_language>this? if (subQuestionIndexAndChoice.length != 2) { continue; }</technical_language>

Target:
public void extractResponseDetails(FeedbackQuestionType questionType, FeedbackQuestionDetails questionDetails, String[] answer) { String rawResponses = answer[0]; FeedbackRubricQuestionDetails fqd = (FeedbackRubricQuestionDetails) questionDetails; initializeEmptyAnswerList(fqd.numOfRubricSubQuestions); String[] subQuestionResponses = rawResponses.split(Pattern.quote(",")); for (int i=0 ; i<subQuestionResponses.length ; i++) { String[] subQuestionIndexAndChoice = subQuestionResponses[i].split(Pattern.quote("-")); if (subQuestionIndexAndChoice.length != 2) { continue; } try { int subQuestionIndex = Integer.parseInt(subQuestionIndexAndChoice[0]); int subQuestionChoice = Integer.parseInt(subQuestionIndexAndChoice[1]); if (subQuestionIndex >=0 && subQuestionIndex <fqd.numOfRubricSubQuestions && subQuestionChoice >=0 && subQuestionChoice <fqd.numOfRubricChoices) { setAnswer(subQuestionIndex, subQuestionChoice); } } catch (NumberFormatException e) { } } }
Source:
<code>public void dispose() { <START> if (fRegisterInProvider) { unregisterActions(); } <END> fSelectionProvider = null; fFindDeclarationsAction = null; fFindDeclarationsInProjectAction = null; fFindDeclarationsInHierarchyAction = null; fFindDeclarationsInWorkingSetAction = null; updateGlobalActionHandlers(); super.dispose(); }</code><technical_language>if fSelectionProvider is null? NPE thrown</technical_language>

Target:
public void dispose() { unregisterActions(); fSelectionProvider = null; fFindDeclarationsAction = null; fFindDeclarationsInProjectAction = null; fFindDeclarationsInHierarchyAction = null; fFindDeclarationsInWorkingSetAction = null; updateGlobalActionHandlers(); super.dispose(); }
Source:
<code>public Optional<Long> getColumn1(String component1) { SchemaApiTestTable.SchemaApiTestRow row = SchemaApiTestTable.SchemaApiTestRow.of(component1); byte[] bytes = row.persistToBytes(); ColumnSelection colSelection = <START> ColumnSelection.create(Collections.singletonList(PtBytes.toCachedBytes("c"))); <END> RowResult<byte[]> rowResult = t.getRows(tableRef, ImmutableSet.of(bytes), colSelection).get(bytes); if (rowResult == null) { return Optional.empty(); } else { return Optional.of(SchemaApiTestTable.SchemaApiTestRowResult.of(rowResult).getColumn1()); } }</code><technical_language>nit: i a mixture of Collections.singletonList ImmutableList.of in this class</technical_language>

Target:
public Optional<Long> getColumn1(String component1) { SchemaApiTestTable.SchemaApiTestRow row = SchemaApiTestTable.SchemaApiTestRow.of(component1); byte[] bytes = row.persistToBytes(); ColumnSelection colSelection = ColumnSelection.create(ImmutableList.of(PtBytes.toCachedBytes("c"))); RowResult<byte[]> rowResult = t.getRows(tableRef, ImmutableSet.of(bytes), colSelection).get(bytes); if (rowResult == null) { return Optional.empty(); } else { return Optional.of(SchemaApiTestTable.SchemaApiTestRowResult.of(rowResult).getColumn1()); } }
Source:
<code>protected void createFieldEditors() { final Composite pane = getFieldEditorParent(); <START> Label explanation = new Label(pane, SWT.LEFT | SWT.WRAP); <END> explanation.setText(UIText.HistoryColumnsPreferencePage_explanation); GridData layout = new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1); layout.widthHint = 200; explanation.setLayoutData(layout); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_ID, UIText.CommitGraphTable_CommitId, pane)); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_AUTHOR, UIText.HistoryPage_authorColumn, pane)); addField( new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_AUTHOR_DATE, UIText.HistoryPage_authorDateColumn, pane)); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_COMMITTER, UIText.CommitGraphTable_Committer, pane)); addField(new BooleanFieldEditor( UIPreferences.HISTORY_COLUMN_COMMITTER_DATE, UIText.CommitGraphTable_committerDateColumn, pane)); }</code><technical_language>please remove label call setDescription() in constructor instead</technical_language>

Target:
protected void createFieldEditors() { final Composite pane = getFieldEditorParent(); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_ID, UIText.CommitGraphTable_CommitId, pane)); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_AUTHOR, UIText.HistoryPage_authorColumn, pane)); addField( new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_AUTHOR_DATE, UIText.HistoryPage_authorDateColumn, pane)); addField(new BooleanFieldEditor(UIPreferences.HISTORY_COLUMN_COMMITTER, UIText.CommitGraphTable_Committer, pane)); addField(new BooleanFieldEditor( UIPreferences.HISTORY_COLUMN_COMMITTER_DATE, UIText.CommitGraphTable_committerDateColumn, pane)); }
Source:
<code>private Map<Client, PaxosLong> handleCacheMiss(Set<Client> requestedClients) { cacheKey = null; Set<Client> allClients = ImmutableSet.<Client>builder() .addAll(requestedClients) .addAll(cachedEntries.keySet()) .build(); cachedEntries.clear(); try { return unsafeGetLatest(allClients); } catch (InvalidAcceptorCacheKeyException e) { <START> log.warn(""); <END> throw new RuntimeException(e); } }</code><technical_language>nit: Throwing exception a criminal offence - need read cache Miranda rights I this is a bug if get here</technical_language>

Target:
private Map<Client, PaxosLong> handleCacheMiss(Set<Client> requestedClients) { cacheKey = null; Set<Client> allClients = ImmutableSet.<Client>builder() .addAll(requestedClients) .addAll(cachedEntries.keySet()) .build(); cachedEntries.clear(); try { return unsafeGetLatest(allClients); } catch (InvalidAcceptorCacheKeyException e) { log.warn("Empty cache key is still invalid indicates product bug, failing request."); throw new RuntimeException(e); } }
Source:
<code>public void nonCanonicalPath() { SurefireLauncher unpacked = unpack( "/surefire-1602" ); unpacked .executeInstall(); unpacked .addGoal( "--file" ) .addGoal( "./integration-tests/pom.xml" ) .executeTest(); <START> } <END></code><technical_language>@eolivelli This test helps Surefire569RunTestFromDependencyJarsIT: OutputValidator module = launcher.getSubProjectValidator( "integration-tests" ); module.assertTestSuiteResults( 1, 0, 0, 0 );</technical_language>

Target:
public void nonCanonicalPath() throws Exception { SurefireLauncher launcher = unpack( "/surefire-1602" ); launcher .executeInstall(); launcher .addGoal( "--file" ) .addGoal( "./integration-tests/pom.xml" ) .executeTest(); launcher .getSubProjectValidator( "integration-tests" ) .assertTestSuiteResults( 1, 0, 0, 0 ); }
Source:
<code>protected void log(final LogLevel level, final QueryNode node, final String log) { if (level == LogLevel.ERROR || level == LogLevel.WARN) { if (cacheable.get()) { cacheable.set(false); } } if (level.ordinal() > query.getLogLevel().ordinal()) { return; } <START> final StringBuilder buf = new StringBuilder(15 + 6 + 32 + log.length()) <END> .append(TS_FORMATTER.format(Instant.now())) .append(" ") .append(level) .append(" CTX:") .append(System.identityHashCode(this)) .append(" Q:"); if (node == null) { if (query == null) { buf.append("na"); } else { buf.append(query.buildHashCode().asLong()); } } else { if (node.pipelineContext() == null || node.pipelineContext().query() == null) { buf.append("na"); } else { buf.append(node.pipelineContext().query().buildHashCode().asLong()); } } buf.append(" [") .append(node == null ? "None" : node.config().getId()) .append("] - ") .append(log); synchronized (this) { if (logs == null) { logs = Lists.newArrayList(); } logs.add(buf.toString()); } }</code><technical_language>numbers in a vacuum magical. I meaningful, but, someday, named constants instead intelligibility</technical_language>

Target:
protected void log(final LogLevel level, final QueryNode node, final String log) { if (level == LogLevel.ERROR || level == LogLevel.WARN) { if (cacheable.get()) { cacheable.set(false); } } if (level.ordinal() > query.getLogLevel().ordinal()) { return; } final StringBuilder buf = new StringBuilder(15 + 6 + 14 + 29 + 32 + log.length()) .append(TS_FORMATTER.format(Instant.now())) .append(" ") .append(level) .append(" CTX:") .append(System.identityHashCode(this)) .append(" Q:"); if (node == null) { if (query == null) { buf.append("na"); } else { buf.append(query.buildHashCode().asLong()); } } else { if (node.pipelineContext() == null || node.pipelineContext().query() == null) { buf.append("na"); } else { buf.append(node.pipelineContext().query().buildHashCode().asLong()); } } buf.append(" [") .append(node == null ? "None" : node.config().getId()) .append("] - ") .append(log); synchronized (this) { if (logs == null) { logs = Lists.newArrayList(); } logs.add(buf.toString()); } }
Source:
<code>protected void log(Site site, int rate, Object... params) { if (!app.isEventLoggingEnabled()) { return; } if (rate != 0) { <START> boolean chosen = app.getABTestingID() % rate == 0; <END> if (chosen) { JSONObject eventData = new JSONObject(); String logString = this.getClass().getSimpleName() + ": Sending event"; try { for (int i = 0; i < params.length; i += 2) { eventData.put(params[i].toString(), params[i + 1]); logString += ", event_" + params[i] + " = " + params[i + 1]; } Log.d(ANALYTICS_TAG, logString); } catch (JSONException e) { throw new RuntimeException(e); } new EventLoggingEvent( schemaName, revision, Utils.getDBNameForSite(site), app.getUserAgent(), preprocessData(eventData) ).log(); } } }</code><technical_language>So, app.getABTestingID() for feature flagging EL sampling rate. cleaner another method call out EL sampling purpose</technical_language>

Target:
protected void log(Site site, int rate, Object... params) { if (!app.isEventLoggingEnabled()) { return; } if (rate != 0) { boolean chosen = app.getFeatureFlagID() % rate == 0; if (chosen) { JSONObject eventData = new JSONObject(); String logString = this.getClass().getSimpleName() + ": Sending event"; try { for (int i = 0; i < params.length; i += 2) { eventData.put(params[i].toString(), params[i + 1]); logString += ", event_" + params[i] + " = " + params[i + 1]; } Log.d(ANALYTICS_TAG, logString); } catch (JSONException e) { throw new RuntimeException(e); } new EventLoggingEvent( schemaName, revision, Utils.getDBNameForSite(site), app.getUserAgent(), preprocessData(eventData) ).log(); } } }