auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public void taskSubmitted(SubmitJobEvent event, IProgressMonitor monitor) throws CoreException { if (!getModel().getTaskData().isNew() && attachContext) { <START> monitor.subTask(org.eclipse.mylyn.internal.tasks.ui.wizards.Messages.TaskAttachmentWizard_Attaching_context); <END> TaskData taskData = getModel().getTaskData(); TaskAttribute taskAttribute = taskData.getRoot().createAttribute( taskData.getAttributeMapper().mapToRepositoryKey(taskData.getRoot(), TaskAttribute.NEW_ATTACHMENT)); AttachmentUtil.postContext(connector, getModel().getTaskRepository(), task, "", taskAttribute, monitor); } }</code><technical_language>I want add this line</technical_language>

Target:
public void taskSubmitted(SubmitJobEvent event, IProgressMonitor monitor) throws CoreException { if (!getModel().getTaskData().isNew() && attachContext) { TaskData taskData = getModel().getTaskData(); TaskAttribute taskAttribute = null; if (taskData != null) { taskAttribute = taskData.getRoot().createMappedAttribute(TaskAttribute.NEW_ATTACHMENT); } AttachmentUtil.postContext(connector, getModel().getTaskRepository(), task, "", taskAttribute, monitor); } }
Source:
<code>public static WebAppDescriptor.Builder getBuilder() { if <START> (!isCompatApiEnabled()) <END> { return getBuilderForVladimir(); } else { return getBuilderForLegacyApi(); } }</code><technical_language>revert, this useful tests running v2 gate :D</technical_language>

Target:
public static WebAppDescriptor.Builder getBuilder() { if (isCompatApiEnabled()) { return getBuilderForVladimir(); } else { return getBuilderForLegacyApi(); } }
Source:
<code>@Override public Set<BigInteger> getTokens() { Set<BigInteger> tokens = getAttribute(CassandraNode.TOKENS); if (tokens == null) { BigInteger token = getAttribute(CassandraNode.TOKEN); if (token != null) { tokens = ImmutableSet.of(token); } } if (tokens == null) { <START> tokens = getAttribute(CassandraNode.TOKENS); <END> } if (tokens == null) { BigInteger token = getAttribute(CassandraNode.TOKEN); if (token != null) { tokens = ImmutableSet.of(token); } } return tokens; }</code><technical_language>logic of this is unclear, redundant</technical_language>

Target:
@Override public Set<BigInteger> getTokens() { Set<BigInteger> tokens = getAttribute(CassandraNode.TOKENS); if (tokens == null) { BigInteger token = getAttribute(CassandraNode.TOKEN); if (token != null) { tokens = ImmutableSet.of(token); } } if (tokens == null) { tokens = getConfig(CassandraNode.TOKENS); } if (tokens == null) { BigInteger token = getConfig(CassandraNode.TOKEN); if (token != null) { tokens = ImmutableSet.of(token); } } return tokens; }
Source:
<code>public static String formatString(final IUser user, final String permBase, final String input) { if (input == null) { return null; } String message; if (user.isAuthorized(permBase + ".color")) { message = replaceColor(input, REPLACE_COLOR_PATTERN); } else { <START> message = stripColor(stripColor(input, REPLACE_COLOR_PATTERN), VANILLA_COLOR_PATTERN); <END> } if (user.isAuthorized(permBase + ".magic")) { message = replaceColor(message, REPLACE_MAGIC_PATTERN); } else { message = stripColor(stripColor(message, REPLACE_MAGIC_PATTERN), VANILLA_MAGIC_PATTERN); } if (user.isAuthorized(permBase + ".format")) { message = replaceColor(message, REPLACE_FORMAT_PATTERN); } else { message = stripColor(stripColor(message, REPLACE_FORMAT_PATTERN), VANILLA_FORMAT_PATTERN); } return message; }</code><technical_language>This do mail permissions</technical_language>

Target:
public static String formatString(final IUser user, final String permBase, final String input) { if (input == null) { return null; } String message; if (user.isAuthorized(permBase + ".color")) { message = replaceColor(input, REPLACE_COLOR_PATTERN); } else { message = stripColor(input, VANILLA_COLOR_PATTERN); } if (user.isAuthorized(permBase + ".magic")) { message = replaceColor(message, REPLACE_MAGIC_PATTERN); } else { message = stripColor(message, VANILLA_MAGIC_PATTERN); } if (user.isAuthorized(permBase + ".format")) { message = replaceColor(message, REPLACE_FORMAT_PATTERN); } else { message = stripColor(message, VANILLA_FORMAT_PATTERN); } return message; }
Source:
<code>public void testMaxRetries() { <START> EasyMock.expectLastCall().times(20); <END> EasyMock.replay(registry); props.setProperty(GET_SCHEMA_BY_ID_MAX_RETIRES, "10"); props.setProperty(GET_SCHEMA_BY_ID_MIN_INTERVAL_SECONDS, "0"); cachedRegistry = new CachedSchemaRegistry<Schema>(registry, props); for (int i = 0; i < 100; i++) { try { cachedRegistry.getSchemaByID("dummyTopic", "dummyID"); } catch (SchemaNotFoundException e) { } try { cachedRegistry.getSchemaByID("dummyTopic", "dummyID2"); } catch (SchemaNotFoundException e) { } } EasyMock.verify(registry); }</code><technical_language>nit: I find a bit strange expect() method in setupRetistryMock() .times(20) here. create unexpected behavior if adds another expect() call in setupRetistryMock() . I is expect() call close times() if means duplicate line of code</technical_language>

Target:
public void testMaxRetries() { EasyMock.expect(registry.getSchemaByID(EasyMock.anyString(), EasyMock.anyString())).andThrow( new SchemaNotFoundException()); EasyMock.expectLastCall().times(20); EasyMock.replay(registry); props.setProperty(GET_SCHEMA_BY_ID_MAX_RETIRES, "10"); props.setProperty(GET_SCHEMA_BY_ID_MIN_INTERVAL_SECONDS, "0"); cachedRegistry = new CachedSchemaRegistry<Schema>(registry, props); for (int i = 0; i < 100; i++) { try { cachedRegistry.getSchemaByID("dummyTopic", "dummyID"); } catch (SchemaNotFoundException e) { } try { cachedRegistry.getSchemaByID("dummyTopic", "dummyID2"); } catch (SchemaNotFoundException e) { } } EasyMock.verify(registry); }
Source:
<code>public void tearDown() { _warrantMgr.dispose(); _warrantMgr = null; _OBlockMgr.dispose(); _OBlockMgr = null; _sensorMgr.dispose(); _sensorMgr = null; if (InstanceManager.containsDefault(ShutDownManager.class)) { ShutDownManager sm = InstanceManager.getDefault(jmri.ShutDownManager.class); <START> List<Runnable> rlist = sm.getRunnables(); while (!rlist.isEmpty()) { if (rlist.get(0) instanceof jmri.jmrit.logix.WarrantShutdownTask) { sm.deregister((ShutDownTask)rlist.get(0)); rlist = sm.getRunnables(); } } <END> } JUnitUtil.tearDown(); }</code><technical_language>If rlist.get(0) is a WarrantShutdownTask, this infinite loop. I suggest else statement throws exception breaks out of loop</technical_language>

Target:
public void tearDown() { _warrantMgr.dispose(); _warrantMgr = null; _OBlockMgr.dispose(); _OBlockMgr = null; _sensorMgr.dispose(); _sensorMgr = null; if (InstanceManager.containsDefault(ShutDownManager.class)) { List<ShutDownTask> list = new ArrayList<>(); ShutDownManager sm = InstanceManager.getDefault(jmri.ShutDownManager.class); for (Runnable r : sm.getRunnables()) { if (r instanceof jmri.jmrit.logix.WarrantShutdownTask) { list.add((ShutDownTask)r); } } for ( ShutDownTask t : list) { sm.deregister(t); } } JUnitUtil.clearShutDownManager(); JUnitUtil.tearDown(); }
Source:
<code>public void post(final Object entity, final InputStream stdin, final ResultCallback<Frame> resultCallback) { HttpRequestProvider requestProvider = httpPostRequestProvider(entity); FramedResponseStreamHandler streamHandler = new FramedResponseStreamHandler(resultCallback); final Channel channel = getChannel(); channel.closeFuture().addListener(new GenericFutureListener<Future<? super Void>>() { @Override public void operationComplete(Future<? super Void> future) throws Exception { resultCallback.onComplete(); } }); HttpResponseHandler responseHandler = new HttpResponseHandler(requestProvider, resultCallback); HttpConnectionHijackHandler hijackHandler = new HttpConnectionHijackHandler(responseHandler); HttpClientCodec httpClientCodec = channel.pipeline().get(HttpClientCodec.class); channel.pipeline().addLast( new HttpClientUpgradeHandler(httpClientCodec, hijackHandler, Integer.MAX_VALUE)); channel.pipeline().addLast(streamHandler); sendRequest(requestProvider, channel); hijackHandler.awaitUpgrade(); if (stdin != null) { new Thread(new Runnable() { private int read(InputStream is, byte[] buf) { try { return is.read(buf); } catch (IOException e) { throw new RuntimeException(e); } } @Override public void run() { byte[] buffer = new byte[1024]; int read; while ((read = read(stdin, buffer)) != -1) { channel.writeAndFlush(Unpooled.copiedBuffer(buffer, 0, read)); } <START> if (channel instanceof DuplexChannel) { <END> ((DuplexChannel) channel).shutdownOutput(); } } }).start(); } }</code><technical_language>throw a RuntimeException a DuplexChannel here</technical_language>

Target:
public void post(final Object entity, final InputStream stdin, final ResultCallback<Frame> resultCallback) { HttpRequestProvider requestProvider = httpPostRequestProvider(entity); FramedResponseStreamHandler streamHandler = new FramedResponseStreamHandler(resultCallback); final DuplexChannel channel = getChannel(); channel.closeFuture().addListener(new GenericFutureListener<Future<? super Void>>() { @Override public void operationComplete(Future<? super Void> future) throws Exception { resultCallback.onComplete(); } }); HttpResponseHandler responseHandler = new HttpResponseHandler(requestProvider, resultCallback); HttpConnectionHijackHandler hijackHandler = new HttpConnectionHijackHandler(responseHandler); HttpClientCodec httpClientCodec = channel.pipeline().get(HttpClientCodec.class); channel.pipeline().addLast( new HttpClientUpgradeHandler(httpClientCodec, hijackHandler, Integer.MAX_VALUE)); channel.pipeline().addLast(streamHandler); sendRequest(requestProvider, channel); hijackHandler.awaitUpgrade(); if (stdin != null) { new Thread(new Runnable() { private int read(InputStream is, byte[] buf) { try { return is.read(buf); } catch (IOException e) { throw new RuntimeException(e); } } @Override public void run() { byte[] buffer = new byte[1024]; int read; while ((read = read(stdin, buffer)) != -1) { channel.writeAndFlush(Unpooled.copiedBuffer(buffer, 0, read)); } channel.shutdownOutput(); } }).start(); } }
Source:
<code>public ParameterizedExecutableType methodFromUse(MethodInvocationTree tree) { ParameterizedExecutableType mType = super.methodFromUse(tree); AnnotatedExecutableType method = mType.executableType; systemGetPropertyHandler.handle(tree, method); collectionToArrayHeuristics.handle(tree, method); System.out.printf("tree: %s%n", tree); if (TreeUtils.isMethodInvocation(tree, classGetCanonicalName, processingEnv)) { System.out.printf("is invocation%n"); ExpressionTree receiver = ((MemberSelectTree) tree.getMethodSelect()).getExpression(); System.out.printf("receiver: %s%n", receiver); <START> if ((receiver instanceof MemberSelectTree) <END> && ((MemberSelectTree) receiver).getIdentifier().contentEquals("class")) { AnnotatedTypeMirror type = method.getReturnType(); type.replaceAnnotation(NONNULL); } } return mType; }</code><technical_language>org.checkerframework.javacutil.TreeUtils#isClassLiteral here</technical_language>

Target:
public ParameterizedExecutableType methodFromUse(MethodInvocationTree tree) { ParameterizedExecutableType mType = super.methodFromUse(tree); AnnotatedExecutableType method = mType.executableType; systemGetPropertyHandler.handle(tree, method); collectionToArrayHeuristics.handle(tree, method); if (TreeUtils.isMethodInvocation(tree, classGetCanonicalName, processingEnv)) { ExpressionTree receiver = ((MemberSelectTree) tree.getMethodSelect()).getExpression(); if (TreeUtils.isClassLiteral(receiver)) { AnnotatedTypeMirror type = method.getReturnType(); type.replaceAnnotation(NONNULL); } } return mType; }
Source:
<code>public ResolveScenarioWizardDialog(JFrame parent, boolean modal, ResolveScenarioTracker t) { super(parent, modal); this.frame = parent; this.tracker = t; loots = tracker.getPotentialLoot(); salvageables = new ArrayList<>(); if(tracker.getMission() instanceof Contract) { salvageEmployer = ((Contract)tracker.getMission()).getSalvagedByEmployer(); salvageUnit = ((Contract)tracker.getMission()).getSalvagedByUnit(); maxSalvagePct = ((Contract)tracker.getMission()).getSalvagePct(); currentSalvagePct = 0; if (salvageUnit.plus(salvageEmployer).isPositive()) { <START> currentSalvagePct = salvageUnit.getAmount() <END> .multiply(new BigDecimal(100)) .divide(salvageUnit.plus(salvageEmployer).getAmount(), RoundingMode.HALF_EVEN) .intValue(); } } currentPanel = UNITSPANEL; initComponents(); setLocationRelativeTo(parent); }</code><technical_language>this updated newer overloads Money</technical_language>

Target:
public ResolveScenarioWizardDialog(JFrame parent, boolean modal, ResolveScenarioTracker t) { super(parent, modal); this.frame = parent; this.tracker = t; loots = tracker.getPotentialLoot(); salvageables = new ArrayList<>(); if(tracker.getMission() instanceof Contract) { salvageEmployer = ((Contract)tracker.getMission()).getSalvagedByEmployer(); salvageUnit = ((Contract)tracker.getMission()).getSalvagedByUnit(); maxSalvagePct = ((Contract)tracker.getMission()).getSalvagePct(); currentSalvagePct = 0; if (salvageUnit.plus(salvageEmployer).isPositive()) { currentSalvagePct = salvageUnit .multipliedBy(100) .dividedBy(salvageUnit.plus(salvageEmployer)) .getAmount().intValue(); } } currentPanel = UNITSPANEL; initComponents(); setLocationRelativeTo(parent); }
Source:
<code>public void setErrorMessageProvider(Function<Throwable, String> errorMessageProvider) { <START> this.errorMessageProvider = errorMessageProvider; <END> }</code><technical_language>Done IllegalArgumentException in case of null</technical_language>

Target:
public void setErrorMessageProvider(Function<Throwable, String> errorMessageProvider) { if (errorMessageProvider == null) { throw new IllegalArgumentException(Messages.LogThroughActiveDialectEditorLogListener_wrongErrorMessageProvider); } else { this.errorMessageProvider = errorMessageProvider; } }
Source:
<code><START> public ArrayInterface insertString(int index, String value) { <END> return insertObject(index, value); }</code><technical_language>I return Array here</technical_language>

Target:
public Array insertString(int index, String value) { return insertObject(index, value); }
Source:
<code>public ClearAlarmRegisterResponse getClearAlarmRegisterResponse( @OrganisationIdentification final String organisationIdentification, @RequestPayload final ClearAlarmRegisterAsyncRequest request) throws OsgpException { LOGGER.info("Incoming clear alarm register request for meter: {}", request.getDeviceIdentification()); ClearAlarmRegisterResponse response = null; try { response = new ClearAlarmRegisterResponse(); final MeterResponseData meterResponseData = this.meterResponseDataService .dequeue(request.getCorrelationUid()); <START> this.throwExceptionIfResultNotOk(meterResponseData, "Clear alarm register"); <END> response.setResult(OsgpResultType.fromValue(meterResponseData.getResultType().getValue())); if (meterResponseData.getMessageData() instanceof String) { response.setDescription((String) meterResponseData.getMessageData()); } } catch (final FunctionalException e) { throw e; } catch (final Exception e) { LOGGER.error("Exception: while sending clear alarm register request of device: for organisation {}.", e.getMessage(), request.getDeviceIdentification(), organisationIdentification); this.handleException(e); } return response; }</code><technical_language>retrieving clear alarm register</technical_language>

Target:
public ClearAlarmRegisterResponse getClearAlarmRegisterResponse( @OrganisationIdentification final String organisationIdentification, @RequestPayload final ClearAlarmRegisterAsyncRequest request) throws OsgpException { LOGGER.info("Incoming clear alarm register request for meter: {}", request.getDeviceIdentification()); ClearAlarmRegisterResponse response = null; try { response = new ClearAlarmRegisterResponse(); final MeterResponseData meterResponseData = this.meterResponseDataService .dequeue(request.getCorrelationUid()); this.throwExceptionIfResultNotOk(meterResponseData, "Retrieving clear alarm register"); response.setResult(OsgpResultType.fromValue(meterResponseData.getResultType().getValue())); if (meterResponseData.getMessageData() instanceof String) { response.setDescription((String) meterResponseData.getMessageData()); } } catch (final FunctionalException e) { throw e; } catch (final Exception e) { LOGGER.error("Exception: while sending clear alarm register request of device: for organisation {}.", e.getMessage(), request.getDeviceIdentification(), organisationIdentification); this.handleException(e); } return response; }
Source:
<code>public void notifySuperUsers(String messageCode, Exception cause, Object... messageArguments) { String message = Context.getMessageSourceService().getMessage(messageCode, messageArguments, Context.getLocale()); if (cause != null) { StringBuilder stackTrace = new StringBuilder(); for (StackTraceElement traceElement : cause.getStackTrace()) { stackTrace.append(traceElement); stackTrace.append("\n"); if (stackTrace.length() >= Alert.TEXT_MAX_LENGTH) { break; } } message = message + ":" + stackTrace; message = message.substring(0, Math.min(message.length(), Alert.TEXT_MAX_LENGTH)); } Alert alert = new Alert(message, Context.getUserService().getUsersByRole(new Role(RoleConstants.SUPERUSER))); alert.setSatisfiedByAny(true); if (alert.getCreator() == null) { <START> TimerSchedulerTask task = new TimerSchedulerTask(new AbstractTask(){ <END> @Override public void execute() { log.info("Creating alert as Daemon User."); User user = Daemon.getDaemonThreadUser(); alert.setCreator(user); Context.getAlertService().saveAlert(alert); stopExecuting(); shutdown(); } }); task.run(); } else { Context.getAlertService().saveAlert(alert); } }</code><technical_language>switching a daemon user require a TimerSchedulerTask</technical_language>

Target:
public void notifySuperUsers(String messageCode, Exception cause, Object... messageArguments) { String message = Context.getMessageSourceService().getMessage(messageCode, messageArguments, Context.getLocale()); if (cause != null) { StringBuilder stackTrace = new StringBuilder(); for (StackTraceElement traceElement : cause.getStackTrace()) { stackTrace.append(traceElement); stackTrace.append("\n"); if (stackTrace.length() >= Alert.TEXT_MAX_LENGTH) { break; } } message = message + ":" + stackTrace; message = message.substring(0, Math.min(message.length(), Alert.TEXT_MAX_LENGTH)); } Alert alert = new Alert(message, Context.getUserService().getUsersByRole(new Role(RoleConstants.SUPERUSER))); alert.setSatisfiedByAny(true); if (alert.getCreator() == null) { User daemonUser = Context.getUserService().getUserByUuid(Daemon.getDaemonUserUuid()); alert.setCreator(daemonUser); } Context.getAlertService().saveAlert(alert); }
Source:
<code>private List<CatalogItemDtoAbstract<?,?>> collectCatalogItems(String yaml) { Map<?,?> itemDef = Yamls.getAs(Yamls.parseAll(yaml), Map.class); Map<?,?> catalogMetadata = getFirstAsMap(itemDef, "brooklyn.catalog").orNull(); if (catalogMetadata==null) log.warn("No `brooklyn.catalog` supplied in catalog request; using legacy mode for "+itemDef); catalogMetadata = MutableMap.copyOf(catalogMetadata); List<CatalogItemDtoAbstract<?, ?>> result = MutableList.of(); collectCatalogItems(Yamls.getTextOfYamlAtPath(yaml, "brooklyn.catalog").getMatchedYamlTextOrWarn(), catalogMetadata, result, null); itemDef.remove("brooklyn.catalog"); catalogMetadata.remove("item"); catalogMetadata.remove("items"); if (!itemDef.isEmpty()) { log.debug("Reading brooklyn.catalog peer keys as item ('top-level syntax')"); <START> Map<String,?> rootItem = MutableMap.of("item", (Object) itemDef); <END> String rootItemYaml = yaml; YamlExtract yamlExtract = Yamls.getTextOfYamlAtPath(rootItemYaml, "brooklyn.catalog"); String match = yamlExtract.withOriginalIndentation(true).withKeyIncluded(true).getMatchedYamlTextOrWarn(); if (match!=null) { if (rootItemYaml.startsWith(match)) rootItemYaml = Strings.removeFromStart(rootItemYaml, match); else rootItemYaml = Strings.replaceAllNonRegex(rootItemYaml, "\n"+match, ""); } collectCatalogItems("item:\n"+makeAsIndentedObject(rootItemYaml), rootItem, result, catalogMetadata); } return result; }</code><technical_language>Surprised cast this Object. merge as-is</technical_language>

Target:
private List<CatalogItemDtoAbstract<?,?>> collectCatalogItems(String yaml) { Map<?,?> itemDef = Yamls.getAs(Yamls.parseAll(yaml), Map.class); Map<?,?> catalogMetadata = getFirstAsMap(itemDef, "brooklyn.catalog").orNull(); if (catalogMetadata==null) log.warn("No `brooklyn.catalog` supplied in catalog request; using legacy mode for "+itemDef); catalogMetadata = MutableMap.copyOf(catalogMetadata); List<CatalogItemDtoAbstract<?, ?>> result = MutableList.of(); collectCatalogItems(Yamls.getTextOfYamlAtPath(yaml, "brooklyn.catalog").getMatchedYamlTextOrWarn(), catalogMetadata, result, null); itemDef.remove("brooklyn.catalog"); catalogMetadata.remove("item"); catalogMetadata.remove("items"); if (!itemDef.isEmpty()) { log.debug("Reading brooklyn.catalog peer keys as item ('top-level syntax')"); Map<String,?> rootItem = MutableMap.of("item", itemDef); String rootItemYaml = yaml; YamlExtract yamlExtract = Yamls.getTextOfYamlAtPath(rootItemYaml, "brooklyn.catalog"); String match = yamlExtract.withOriginalIndentation(true).withKeyIncluded(true).getMatchedYamlTextOrWarn(); if (match!=null) { if (rootItemYaml.startsWith(match)) rootItemYaml = Strings.removeFromStart(rootItemYaml, match); else rootItemYaml = Strings.replaceAllNonRegex(rootItemYaml, "\n"+match, ""); } collectCatalogItems("item:\n"+makeAsIndentedObject(rootItemYaml), rootItem, result, catalogMetadata); } return result; }
Source:
<code>public PlanWithProperties visitOutput(OutputNode node, Context context) { PlanWithProperties child = planChild(node, context.withPreferredProperties(PreferredProperties.undistributed())); <START> if ((child.getNode() instanceof ExchangeNode) && ((ExchangeNode) child.getNode()).getType() == ExchangeNode.Type.GATHER) { <END> return rebaseAndDeriveProperties(node, child); } if (!child.getProperties().isSingleNode()) { child = withDerivedProperties( gatheringExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } else if (!child.getProperties().isCoordinatorOnly()) { child = withDerivedProperties( gatheringOrderSensitiveExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } return rebaseAndDeriveProperties(node, child); }</code><technical_language>"don't add another exchange"</technical_language>

Target:
public PlanWithProperties visitOutput(OutputNode node, Context context) { PlanWithProperties child = planChild(node, context.withPreferredProperties(PreferredProperties.undistributed())); if ((child.getNode() instanceof ExchangeNode) && ((ExchangeNode) child.getNode()).getType() == ExchangeNode.Type.GATHER) { return rebaseAndDeriveProperties(node, child); } if (!child.getProperties().isSingleNode()) { child = withDerivedProperties( gatheringExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } else if (!child.getProperties().isCoordinatorOnly() && isExchangeAddedBelowOutput(session)) { child = withDerivedProperties( gatheringOrderSensitiveExchange(idAllocator.getNextId(), REMOTE, child.getNode()), child.getProperties()); } return rebaseAndDeriveProperties(node, child); }
Source:
<code>public void scale(String streamName, String appName, int count, Map<String, String> properties) { <START> this.skipperClient.scale(streamName, appName, count, properties); <END> }</code><technical_language>ScaleRequest here</technical_language>

Target:
public void scale(String streamName, String appName, int count, Map<String, String> properties) { this.skipperClient.scale(streamName, ScaleRequest.of(appName, count, properties)); }
Source:
<code>private List<HudsonMatrixMatrixProject> getJobsFromFolder(final String folderUrl, final List<String> ids, final IOperationMonitor monitor) throws HudsonException { return new HudsonOperation<List<HudsonMatrixMatrixProject>>(client) { @Override protected List<HudsonMatrixMatrixProject> execute() throws IOException, HudsonException, JAXBException { String url = HudsonUrl.create(folderUrl) .depth(2) .include(" job/build") .toUrl(); HttpRequestBase request = createGetRequest(url); CommonHttpResponse response = execute(request, monitor); return processAndRelease(response, monitor); } @Override protected List<HudsonMatrixMatrixProject> doProcess(CommonHttpResponse response, IOperationMonitor monitor) throws IOException, HudsonException, JAXBException { InputStream in = response.getResponseEntityAsStream(); HudsonModelHudson hudson = unmarshal(parse(in, response.getRequestPath()), HudsonModelHudson.class); List<HudsonMatrixMatrixProject> buildPlans = new ArrayList<>(); List<Object> jobsNodes = hudson.getJob(); Set<String> urls = new HashSet<>(); for (Object jobNode : jobsNodes) { Node node = (Node) jobNode; <START> HudsonMatrixMatrixProject job = unmarshal(node, HudsonMatrixMatrixProject.class); <END> if (job.getColor() != null) { String jobUrl = hudsonUrlUtil.assembleJobUrl(job.getName(), folderUrl); if (!urls.contains(jobUrl)) { job.setUrl(jobUrl); buildPlans.add(job); urls.add(jobUrl); } } else if (ids == null) { buildPlans.addAll(getJobsFromFolder(job.getUrl(), ids, monitor)); } } return buildPlans; } }.run(); }</code><technical_language>relying instanceof I this a HudsonMatrixMatrixProject Is a differentiate two</technical_language>

Target:
private List<HudsonModelJob> getJobsFromFolder(final String folderUrl, final List<String> ids, final IOperationMonitor monitor) throws HudsonException { return new HudsonOperation<List<HudsonModelJob>>(client) { @Override protected List<HudsonModelJob> execute() throws IOException, HudsonException, JAXBException { String url = HudsonUrl.create(folderUrl) .depth(2) .include(" job/build") .toUrl(); HttpRequestBase request = createGetRequest(url); CommonHttpResponse response = execute(request, monitor); return processAndRelease(response, monitor); } @Override protected List<HudsonModelJob> doProcess(CommonHttpResponse response, IOperationMonitor monitor) throws IOException, HudsonException, JAXBException { InputStream in = response.getResponseEntityAsStream(); HudsonModelHudson hudson = unmarshal(parse(in, response.getRequestPath()), HudsonModelHudson.class); List<HudsonModelJob> buildPlans = new ArrayList<>(); List<Object> jobsNodes = hudson.getJob(); Set<String> urls = new HashSet<>(); for (Object jobNode : jobsNodes) { Node node = (Node) jobNode; HudsonModelJob job = unmarshal(node, HudsonMatrixMatrixProject.class); if (job.getColor() != null) { String jobUrl = hudsonUrlUtil.assembleJobUrl(job.getName(), folderUrl); if (!urls.contains(jobUrl)) { job.setUrl(jobUrl); buildPlans.add(job); urls.add(jobUrl); } } else if (ids == null) { buildPlans.addAll(getJobsFromFolder(job.getUrl(), ids, monitor)); } } return buildPlans; } }.run(); }
Source:
<code>public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final Color other = (Color) obj; <START> return Objects.equals(this.red, other.red) <END> && Objects.equals(this.green, other.green) && Objects.equals(this.blue, other.blue); }</code><technical_language>Consider == maybe</technical_language>

Target:
public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } final Color other = (Color) obj; return this.red == other.red && this.green == other.green && this.blue == other.blue; }
Source:
<code>public void execute(EntityPlayer player) { if(player != null && player.world != null && !player.world.isRemote) { if(ServerEditHandler.getData(player) != null) return; if(this.type == MODUS && player.openContainer instanceof ContainerCaptchaDeck) CaptchaDeckHandler.useItem((EntityPlayerMP) player); else if(this.type == CAPTCHALOUGE && !player.getItemStackFromSlot(EntityEquipmentSlot.MAINHAND).isEmpty()) CaptchaDeckHandler.captchalougeItem((EntityPlayerMP) player); else if(this.type == CAPTCHALOUGE_INV) <START> CaptchaDeckHandler.captchalougeInventoryItem((EntityPlayerMP) player); <END> else if(this.type == GET) CaptchaDeckHandler.getItem((EntityPlayerMP) player, itemIndex, getCard); else if(this.type == VALUE && CaptchaDeckHandler.getModus(player) != null) CaptchaDeckHandler.getModus(player).setValue(valueType, value); } else { if(this.type == DATA) { CaptchaDeckHandler.clientSideModus = CaptchaDeckHandler.readFromNBT(nbt, true); if(CaptchaDeckHandler.clientSideModus != null) CaptchaDeckHandler.clientSideModus.getGuiHandler().updateContent(); else Debug.debug("Lost modus"); } } }</code><technical_language>server side track of item is mouseovered, need send information this packet</technical_language>

Target:
public void execute(EntityPlayer player) { if(player != null && player.world != null && !player.world.isRemote) { if(ServerEditHandler.getData(player) != null) return; if(this.type == MODUS && player.openContainer instanceof ContainerCaptchaDeck) CaptchaDeckHandler.useItem((EntityPlayerMP) player); else if(this.type == CAPTCHALOUGE && !player.getItemStackFromSlot(EntityEquipmentSlot.MAINHAND).isEmpty()) CaptchaDeckHandler.captchalougeItem((EntityPlayerMP) player); else if(this.type == CAPTCHALOUGE_INV) { CaptchaDeckHandler.captchalougeInventoryItem((EntityPlayerMP) player, slotIndex); } else if(this.type == GET) CaptchaDeckHandler.getItem((EntityPlayerMP) player, itemIndex, getCard); else if(this.type == VALUE && CaptchaDeckHandler.getModus(player) != null) CaptchaDeckHandler.getModus(player).setValue(valueType, value); } else { if(this.type == DATA) { CaptchaDeckHandler.clientSideModus = CaptchaDeckHandler.readFromNBT(nbt, true); if(CaptchaDeckHandler.clientSideModus != null) CaptchaDeckHandler.clientSideModus.getGuiHandler().updateContent(); else Debug.debug("Lost modus"); } } }
Source:
<code><START> public void getKiePMMLModel() throws Exception { <END> }</code><technical_language>I suggest this test failed some unimplemented exception. ignore it. provide false assumption is implemented working</technical_language>

Target:
public void getKiePMMLModel() throws Exception { throw new UnsupportedOperationException(); }
Source:
<code>private void destroyTooltips() { <START> $("[title]").as(Tooltip).destroy(); <END> }</code><technical_language>limit scope of selector, $("[title]", asWidget())</technical_language>

Target:
private void destroyTooltips() { $("[title]", asWidget()).as(Tooltip).destroy(); }
Source:
<code>private void test(int qos) throws MqttException { String subscriberId = UUID.randomUUID().toString(); String senderId = UUID.randomUUID().toString(); String topic = UUID.randomUUID().toString(); subscriber = createMqttClient(subscriberId); subscriber.subscribe(topic, qos); sender = createMqttClient(senderId); sender.publish(topic, UUID.randomUUID().toString().getBytes(), qos, false); sender.publish(topic, UUID.randomUUID().toString().getBytes(), qos, false); Awaitility.await().atMost(5_000, TimeUnit.MILLISECONDS).until(() -> messageIds.size() == 2); subscriber.messageArrivedComplete(messageIds.getLast(), qos); subscriber.disconnect(); subscriber.close(); messageArrived = false; Awaitility.await().atMost(60_000, TimeUnit.MILLISECONDS).until(() -> { try { subscriber = createMqttClient(subscriberId); return true; } catch (MqttException e) { return false; } <START> }); <END> Awaitility.await().atMost(5_000, TimeUnit.MILLISECONDS).until(() -> messageArrived == true); }</code><technical_language>reuse Wait.waitFor(Condition) method do thing: java Wait.waitFor(new Wait.Condition() { @Override public boolean isSatisfied() throws Exception { try { subscriber = createMqttClient(subscriberId); return true; } catch (MqttException e) { return false; } } }, 60000);</technical_language>

Target:
private void test(int qos) throws Exception { String subscriberId = UUID.randomUUID().toString(); String senderId = UUID.randomUUID().toString(); String topic = UUID.randomUUID().toString(); subscriber = createMqttClient(subscriberId); subscriber.subscribe(topic, qos); sender = createMqttClient(senderId); sender.publish(topic, UUID.randomUUID().toString().getBytes(), qos, false); sender.publish(topic, UUID.randomUUID().toString().getBytes(), qos, false); boolean satisfied = Wait.waitFor(() -> messageIds.size() == 2, 5_000); if (!satisfied) { Assert.fail(); } subscriber.messageArrivedComplete(messageIds.getLast(), qos); subscriber.disconnect(); subscriber.close(); messageArrived = false; satisfied = Wait.waitFor(() -> { try { subscriber = createMqttClient(subscriberId); return true; } catch (MqttException e) { return false; } }, 60_000); if (!satisfied) { Assert.fail(); } satisfied = Wait.waitFor(() -> messageArrived == true, 5_000); if (!satisfied) { Assert.fail(); } }
Source:
<code>protected static Integer convertVolumePercent(final Double maxDecibels, final Integer volumePercent) { if (volumePercent > 100 || volumePercent < 0) { throw new IllegalArgumentException(String.format("volumePercent must be in the range [0, 100], not %s", volumePercent)); } <START> final double decibelOffsetFromMaximum = 33.22 * Math.log10(volumePercent / 100.0); <END> final double decibels = maxDecibels + decibelOffsetFromMaximum; return (int) Math.round((decibels / maxDecibels) * 100); }</code><technical_language>volumePercent 0</technical_language>

Target:
protected static Integer convertVolumePercent(final Double maxDecibels, final Integer volumePercent) { if (volumePercent > 100 || volumePercent <= 0) { throw new IllegalArgumentException(String.format("volumePercent must be in the range (0, 100], not %s", volumePercent)); } final double decibelOffsetFromMaximum = 33.22 * Math.log10(volumePercent / 100.0); final double decibels = maxDecibels + decibelOffsetFromMaximum; return (int) Math.round((decibels / maxDecibels) * 100); }
Source:
<code>public void dispose() { Iterator<AbstractAttributeEditor> editorIterator = editors.iterator(); <START> while (editorIterator.hasNext()) { <END> AbstractAttributeEditor editor = editorIterator.next(); editor.dispose(); } }</code><technical_language>enhanced for loop, iterator necessary</technical_language>

Target:
public void dispose() { for (AbstractAttributeEditor editor : editors) { editor.dispose(); } editors.clear(); }
Source:
<code>public void close() { if (shuttingDown.getAndSet(true)) { return; } logger.info("closing started"); if (requesterPool != null) { try { requesterPool.shutdown(); requesterPool.awaitTermination(1, TimeUnit.MINUTES); } catch (Exception e) { logger.error("Error while shutting down requesterPool in coordinator {}", e); } this.requesterPool = null; } if (connectionPool != null) { try { connectionPool.shutdown(); } catch (Exception e) { logger.error("Error while shutting down connectionPool in coordinator {}", e); } connectionPool = null; } try { notificationSystem.close(); } catch (IOException e) { logger.error("Error while closing notification system.", e); } <START> logger.info("clsoing completed"); <END> }</code><technical_language>typo</technical_language>

Target:
public void close() { if (shuttingDown.getAndSet(true)) { return; } logger.info("closing started"); if (requesterPool != null) { try { requesterPool.shutdown(); requesterPool.awaitTermination(1, TimeUnit.MINUTES); } catch (Exception e) { logger.error("Error while shutting down requesterPool in coordinator {}", e); } this.requesterPool = null; } if (connectionPool != null) { try { connectionPool.shutdown(); } catch (Exception e) { logger.error("Error while shutting down connectionPool in coordinator {}", e); } connectionPool = null; } try { notificationSystem.close(); } catch (IOException e) { logger.error("Error while closing notification system.", e); } logger.info("closing completed"); }
Source:
<code>public GeodeRedisServer() { <START> this(null, 0, null); <END> }</code><technical_language>this RANDOM_PORT_INDICATOR instead of 0</technical_language>

Target:
public GeodeRedisServer() { this(null, RANDOM_PORT_INDICATOR, null); }
Source:
<code>public DruidQueryGeneratorContext withOutputColumns(List<VariableReferenceExpression> outputColumns) { <START> LinkedHashMap<VariableReferenceExpression, Selection> newSelections = new LinkedHashMap<>(); <END> outputColumns.forEach(o -> newSelections.put(o, requireNonNull(selections.get(o), "Cannot find the selection " + o + " in the original context " + this))); return new DruidQueryGeneratorContext(newSelections, from, filter); }</code><technical_language>replace map</technical_language>

Target:
public DruidQueryGeneratorContext withOutputColumns(List<VariableReferenceExpression> outputColumns) { Map<VariableReferenceExpression, Selection> newSelections = new LinkedHashMap<>(); outputColumns.forEach(o -> newSelections.put(o, requireNonNull(selections.get(o), "Cannot find the selection " + o + " in the original context " + this))); return new DruidQueryGeneratorContext(newSelections, from, filter); }
Source:
<code>private static Consumer<SetMultimap<LeadershipEvent, Client>> deregisterMetricsForPartitionedLeader( TimelockPaxosMetrics metrics) { return eventsToDeregister -> { Map<LeadershipEvent, Set<String>> eventsToClients = Multimaps.asMap(KeyedStream.stream(eventsToDeregister) .map(Client::value) .collectToSetMultimap()); eventsToClients.keySet().forEach(event -> metrics.asMetricsManager().deregisterTaggedMetrics( withTagIsCurrentSuspectedLeader(event.isCurrentSuspectedLeader()) <START> .and(withClientTag(eventsToClients.get(event))))); <END> }; }</code><technical_language>entrySet? superhot codepath strongly concerned</technical_language>

Target:
private static Consumer<SetMultimap<LeadershipEvent, Client>> deregisterMetricsForPartitionedLeader( TimelockPaxosMetrics metrics) { return eventsToDeregister -> { Map<LeadershipEvent, Set<String>> eventsToClients = Multimaps.asMap(KeyedStream.stream(eventsToDeregister) .map(Client::value) .collectToSetMultimap()); eventsToClients.forEach((event, clients) -> metrics.asMetricsManager().deregisterTaggedMetrics( withTagIsCurrentSuspectedLeader(event.isCurrentSuspectedLeader()) .and(withClientTag(clients)))); }; }
Source:
<code>public void testMultipleResponsesWithException() throws UnsupportedEncodingException { RetryingReadRowsOperation underTest = createOperation(mockFlatRowObserver); start(underTest); ByteString key1 = ByteString.copyFrom("SomeKey1", "UTF-8"); ByteString key2 = ByteString.copyFrom("SomeKey2", "UTF-8"); underTest.onMessage(buildResponse(key1)); underTest.onClose(Status.ABORTED, new Metadata()); Assert.assertFalse(underTest.getRowMerger().isComplete()); underTest.onMessage(buildResponse(key2)); verify(mockFlatRowObserver, times(2)).onNext(any(FlatRow.class)); checkRetryRequest(underTest, key2, 8); <START> verify(mockClientCall, atLeast(2)).request(eq(1)); <END> finishOK(underTest, 1); }</code><technical_language>this change</technical_language>

Target:
public void testMultipleResponsesWithException() throws UnsupportedEncodingException { RetryingReadRowsOperation underTest = createOperation(mockFlatRowObserver); start(underTest); ByteString key1 = ByteString.copyFrom("SomeKey1", "UTF-8"); ByteString key2 = ByteString.copyFrom("SomeKey2", "UTF-8"); underTest.onMessage(buildResponse(key1)); underTest.onClose(Status.ABORTED, new Metadata()); Assert.assertFalse(underTest.getRowMerger().isComplete()); underTest.onMessage(buildResponse(key2)); verify(mockFlatRowObserver, times(2)).onNext(any(FlatRow.class)); checkRetryRequest(underTest, key2, 8); verify(mockClientCall, times(4)).request(eq(1)); finishOK(underTest, 1); }
Source:
<code>static ArrayList getNameSpaceArray(MetricKey metricKey) { MetricName metricName = metricKey.metricName(); try { return new ObjectMapper().readValue(metricName.getNamespace(), ArrayList.class); } catch (JsonProcessingException e) { <START> e.printStackTrace(); <END> throw new RuntimeException(String.format("Parse namespace[%s] error. ", metricName.getNamespace())); } }</code><technical_language>remove this line set in RuntimeException</technical_language>

Target:
static ArrayList getNameSpaceArray(MetricKey metricKey) { MetricName metricName = metricKey.metricName(); try { return new ObjectMapper().readValue(metricName.getNamespace(), ArrayList.class); } catch (JsonProcessingException e) { throw new RuntimeException( String.format("Parse namespace[%s] error. ", metricName.getNamespace()), e); } }
Source:
<code>public Latch getLatch(int size, String latchId) { return null; <START> } <END></code><technical_language>This sense. clear, I throw "UnsupportedOperationException"</technical_language>

Target:
public Latch getLatch(int size, String latchId) throws UnsupportedOperationException { return null; }
Source:
<code>public RecoveryStrategy onException(final JobExecutor jobExecutor, final Exception exception, final String curQueue) { if (exception instanceof JedisConnectionException || exception instanceof JedisNoScriptException <START> || (exception instanceof JedisDataException && exception.getMessage().equals("LOADING Redis is loading the dataset in memory"))) { <END> return RECONNECT; } else if (exception instanceof JsonProcessingException || (exception instanceof InterruptedException && !jobExecutor.isShutdown())) { return PROCEED; } else { return TERMINATE; } }</code><technical_language>break this long line</technical_language>

Target:
public RecoveryStrategy onException(final JobExecutor jobExecutor, final Exception exception, final String curQueue) { final boolean isLoadingDataset = exception instanceof JedisDataException && exception.getMessage().equals("LOADING Redis is loading the dataset in memory"); if (exception instanceof JedisConnectionException || exception instanceof JedisNoScriptException || isLoadingDataset) { return RECONNECT; } else if (exception instanceof JsonProcessingException || (exception instanceof InterruptedException && !jobExecutor.isShutdown())) { return PROCEED; } else { return TERMINATE; } }
Source:
<code>private String redirectToList() { String referrer = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap().get("referer"); String callerViewId = referrer.substring(referrer.lastIndexOf("/") + 1); if (!callerViewId.isEmpty() && callerViewId.contains("editDocket.jsf")) { <START> return "/pages/projects.jsf?id=3&" + redirectParameter; <END> } else { return "/pages/DocketList?" + redirectParameter; } }</code><technical_language>adding a constant id URI</technical_language>

Target:
private String redirectToList() { String referrer = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap().get("referer"); String callerViewId = referrer.substring(referrer.lastIndexOf("/") + 1); if (!callerViewId.isEmpty() && callerViewId.contains("editDocket.jsf")) { return "/pages/projects.jsf?id=" + projectForm.getActiveTabIndex() + "&" + REDIRECT_PARAMETER; } else { return "/pages/DocketList?" + REDIRECT_PARAMETER; } }
Source:
<code>public void purge(Diagnosis diagnosis, RequestContext requestContext) throws ResponseException { <START> Context.getDiagnosisService().purgeService(diagnosis); <END> }</code><technical_language>replace this actual method name in DiagnosisService</technical_language>

Target:
public void purge(Diagnosis diagnosis, RequestContext requestContext) throws ResponseException { Context.getDiagnosisService().purgeDiagnosis(diagnosis); }
Source:
<code>protected List<Workflow> githubWebhookDelete(String repository, String gitReference, String username, String installationId) { Optional<String> gitReferenceName = GitHelper.parseGitHubReference(gitReference); if (gitReferenceName.isEmpty()) { String msg = "Reference " + gitReference + " is not of the valid form"; LOG.error(msg); LambdaEvent lambdaEvent = createBasicEvent(repository, gitReference, username, installationId, LambdaEvent.LambdaEventType.DELETE); lambdaEvent.setMessage(msg); lambdaEvent.setSuccess(false); lambdaEventDAO.create(lambdaEvent); <START> sessionFactory.getCurrentSession().getTransaction().commit(); <END> throw new CustomWebApplicationException(msg, LAMBDA_FAILURE); } List<Workflow> workflows = workflowDAO.findAllByPath("github.com/" + repository, false).stream().filter(workflow -> Objects.equals(workflow.getMode(), DOCKSTORE_YML)).collect( Collectors.toList()); workflows.forEach(workflow -> workflow.getWorkflowVersions().removeIf(workflowVersion -> Objects.equals(workflowVersion.getName(), gitReferenceName.get()) && !workflowVersion.isFrozen())); LambdaEvent lambdaEvent = createBasicEvent(repository, gitReference, username, installationId, LambdaEvent.LambdaEventType.DELETE); lambdaEventDAO.create(lambdaEvent); return workflows; }</code><technical_language>A wary of this in production code, is this necessary this pattern before</technical_language>

Target:
protected List<Workflow> githubWebhookDelete(String repository, String gitReference, String username, String installationId) { Optional<String> gitReferenceName = GitHelper.parseGitHubReference(gitReference); if (gitReferenceName.isEmpty()) { String msg = "Reference " + gitReference + " is not of the valid form"; LOG.error(msg); sessionFactory.getCurrentSession().clear(); LambdaEvent lambdaEvent = createBasicEvent(repository, gitReference, username, installationId, LambdaEvent.LambdaEventType.DELETE); lambdaEvent.setMessage(msg); lambdaEvent.setSuccess(false); lambdaEventDAO.create(lambdaEvent); sessionFactory.getCurrentSession().getTransaction().commit(); throw new CustomWebApplicationException(msg, LAMBDA_FAILURE); } List<Workflow> workflows = workflowDAO.findAllByPath("github.com/" + repository, false).stream().filter(workflow -> Objects.equals(workflow.getMode(), DOCKSTORE_YML)).collect( Collectors.toList()); workflows.forEach(workflow -> workflow.getWorkflowVersions().removeIf(workflowVersion -> Objects.equals(workflowVersion.getName(), gitReferenceName.get()) && !workflowVersion.isFrozen())); LambdaEvent lambdaEvent = createBasicEvent(repository, gitReference, username, installationId, LambdaEvent.LambdaEventType.DELETE); lambdaEventDAO.create(lambdaEvent); return workflows; }
Source:
<code>public final void characters(final char[] ch, final int start, final int length) throws SAXException { final String text = StringUtils.trim(new String(ch, start, length)); <START> if (isMessage == true) { <END> content = StringUtils.join(content, text); return; } content = text; }</code><technical_language>compare true, this is useless</technical_language>

Target:
public final void characters(final char[] ch, final int start, final int length) throws SAXException { final String text = StringUtils.trim(new String(ch, start, length)); content = isMessage ? StringUtils.join(content, text) : text; }
Source:
<code><START> public void reportError(String containerId, int[] operators, String msg, LogFileInformation logFileInfo) <END> throws IOException { EventGroupId groupId = getGroupIdForNewDeployRequest(containerId); if (operators == null || operators.length == 0) { dagManager.recordEventAsync(new ContainerErrorEvent(containerId, msg, logFileInfo, groupId)); } else { for (int operator : operators) { OperatorInfo operatorInfo = dagManager.getOperatorInfo(operator); if (operatorInfo != null) { dagManager.recordEventAsync( new OperatorErrorEvent(operatorInfo.name, operator, containerId, msg, logFileInfo, groupId)); } } } log(containerId, msg); }</code><technical_language>unnecessary change</technical_language>

Target:
public void reportError(String containerId, int[] operators, String msg, LogFileInformation logFileInfo) throws IOException { EventGroupId groupId = getGroupIdForNewGroupingRequest(containerId); if (operators == null || operators.length == 0) { dagManager.recordEventAsync(new ContainerErrorEvent(containerId, msg, logFileInfo, groupId)); } else { for (int operator : operators) { OperatorInfo operatorInfo = dagManager.getOperatorInfo(operator); if (operatorInfo != null) { dagManager.recordEventAsync( new OperatorErrorEvent(operatorInfo.name, operator, containerId, msg, logFileInfo, groupId)); } } } log(containerId, msg); }