auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, List<String> events, String channelId, boolean configAlreadyApplied) { boolean thingNull = checkNull(thingUID, "Thing UID is null"); boolean astroHandlerNull = checkNull(astroHandler, "AstroThingHandler is null"); boolean eventAtNull = checkNull(eventAt, "Scheduled Instant is null"); boolean eventsNull = checkNull(events, "Events list is null"); boolean channelIdNull = checkNull(channelId, "Channel ID is null"); if (thingNull || astroHandlerNull || eventAtNull || eventsNull || channelIdNull || events.isEmpty()) { return; } Calendar instant = eventAt; if (!configAlreadyApplied) { AstroChannelConfig config = astroHandler.getThing().getChannel(channelId).getConfiguration() .as(AstroChannelConfig.class); instant = applyConfig(eventAt, config); <START> } <END> List<Job> jobs = events.stream().map(e -> new EventJob(thingUID, channelId, e)).collect(toList()); schedule(thingUID, astroHandler, new CompositeJob(thingUID, jobs), instant); }</code><technical_language>reason initialize instant if configAlreadyApplied == false? about: Java final Calendar instant; if (!configAlreadyApplied) { AstroChannelConfig config = astroHandler.getThing().getChannel(channelId).getConfiguration() .as(AstroChannelConfig.class); instant = applyConfig(eventAt, config); } else { instant = eventAt; }</technical_language>

Target:
public static void scheduleEvent(String thingUID, AstroThingHandler astroHandler, Calendar eventAt, List<String> events, String channelId, boolean configAlreadyApplied) { boolean thingNull = checkNull(thingUID, "Thing UID is null"); boolean astroHandlerNull = checkNull(astroHandler, "AstroThingHandler is null"); boolean eventAtNull = checkNull(eventAt, "Scheduled Instant is null"); boolean eventsNull = checkNull(events, "Events list is null"); boolean channelIdNull = checkNull(channelId, "Channel ID is null"); if (thingNull || astroHandlerNull || eventAtNull || eventsNull || channelIdNull || events.isEmpty()) { return; } final Calendar instant; if (!configAlreadyApplied) { AstroChannelConfig config = astroHandler.getThing().getChannel(channelId).getConfiguration() .as(AstroChannelConfig.class); instant = applyConfig(eventAt, config); } else { instant = eventAt; } List<Job> jobs = events.stream().map(e -> new EventJob(thingUID, channelId, e)).collect(toList()); schedule(thingUID, astroHandler, new CompositeJob(thingUID, jobs), instant); }
Source:
<code>private RegisteredProject doImportInternally( String wsPath, SourceStorage sourceStorage, BiConsumer<String, String> jsonRpcConsumer) throws ServerException, ForbiddenException, UnauthorizedException, ConflictException, NotFoundException { String type = sourceStorage.getType(); ProjectImporter importer = projectImporterRegistry.getOrNull(type); fsManager.createDir(wsPath); try { importer.doImport(sourceStorage, wsPath, jsonRpcConsumer(wsPath, jsonRpcConsumer)); } catch (IOException e) { throw new ServerException(e); } if (projectSynchronizer .getAll() .stream() .anyMatch(it -> Objects.equals(it.getPath(), wsPath))) { Set<ProjectConfig> newProjectConfigs = projectSynchronizer .getAll() .stream() .filter(it -> wsPath.startsWith(it.getPath())) .collect(toSet()); for (ProjectConfig newProjectConfig : newProjectConfigs) { projectConfigRegistry.put(newProjectConfig, true, false); } <START> return Optional.ofNullable(projectConfigRegistry.getOrNull(wsPath)) <END> .orElseThrow(() -> new ServerException("Unexpected error")); } String name = wsPath.substring(wsPath.lastIndexOf(separator)); NewProjectConfigImpl newProjectConfig = new NewProjectConfigImpl(wsPath, name, BaseProjectType.ID, sourceStorage); RegisteredProject registeredProject = projectConfigRegistry.put(newProjectConfig, true, false); projectSynchronizer.synchronize(); return registeredProject; }</code><technical_language>return projectConfigRegistry.get(wsPath) if mistaken,</technical_language>

Target:
private RegisteredProject doImportInternally( String wsPath, SourceStorage sourceStorage, BiConsumer<String, String> jsonRpcConsumer) throws ServerException, ForbiddenException, UnauthorizedException, ConflictException, NotFoundException { String type = sourceStorage.getType(); ProjectImporter importer = projectImporterRegistry.getOrNull(type); fsManager.createDir(wsPath); try { importer.doImport(sourceStorage, wsPath, jsonRpcConsumer(wsPath, jsonRpcConsumer)); } catch (IOException e) { throw new ServerException(e); } if (projectSynchronizer .getAll() .stream() .anyMatch(it -> Objects.equals(it.getPath(), wsPath))) { Set<ProjectConfig> newProjectConfigs = projectSynchronizer .getAll() .stream() .filter(it -> wsPath.startsWith(it.getPath())) .collect(toSet()); for (ProjectConfig newProjectConfig : newProjectConfigs) { projectConfigRegistry.put(newProjectConfig, true, false); } return projectConfigRegistry .get(wsPath) .orElseThrow(() -> new ServerException("Unexpected error")); } String name = wsPath.substring(wsPath.lastIndexOf(separator)); NewProjectConfigImpl newProjectConfig = new NewProjectConfigImpl(wsPath, name, BaseProjectType.ID, sourceStorage); RegisteredProject registeredProject = projectConfigRegistry.put(newProjectConfig, true, false); projectSynchronizer.synchronize(); return registeredProject; }
Source:
<code>public void dispose() { if (getTarget() != null) { getTarget().removeResourceSetListener(this); } <START> dTreeViewer = null; <END> }</code><technical_language>toExpand/toCollapse & reset null, leak model elements SWT/JFace widgets</technical_language>

Target:
public void dispose() { if (getTarget() != null) { getTarget().removeResourceSetListener(this); } dTreeViewer = null; toExpand = null; toCollapse = null; toRefreshInViewer = null; toUpdateInViewer = null; }
Source:
<code>public Element build(final CallbackProperties properties) throws SAMLAssertionBuilderException { LOG.debug("SamlCallbackHandler.createHOKSAMLAssertion20()"); Element signedAssertion = null; try { Assertion assertion; assertion = OpenSAML2ComponentBuilder.getInstance().createAssertion(); final String aID = createAssertionId(); LOG.debug("Assertion ID: {}", aID); assertion.setID(aID); final DateTime issueInstant = new DateTime(); assertion.setIssueInstant(issueInstant); assertion.setIssuer(createIssuer(properties)); final X509Certificate certificate = certificateManager.getDefaultCertificate(); final PublicKey publicKey = certificateManager.getDefaultPublicKey(); final Subject subject = createSubject(properties, certificate, publicKey); assertion.setSubject(subject); <START> final Subject evidenceSubject = createEvidenceSubject(properties, certificate, publicKey); <END> assertion.getStatements().addAll(createAttributeStatements(properties, evidenceSubject)); final PrivateKey privateKey = certificateManager.getDefaultPrivateKey(); signedAssertion = sign(assertion, certificate, privateKey, publicKey); } catch (final SAMLComponentBuilderException ex) { LOG.error("Unable to create HOK Assertion: {}", ex.getLocalizedMessage()); throw new SAMLAssertionBuilderException(ex.getLocalizedMessage(), ex); } catch (final CertificateManagerException ex) { LOG.error("Unable to create HOK Assertion: {}", ex.getLocalizedMessage()); throw new SAMLAssertionBuilderException(ex.getLocalizedMessage(), ex); } LOG.debug("SamlCallbackHandler.createHOKSAMLAssertion20() -- End"); return signedAssertion; }</code><technical_language>check code format</technical_language>

Target:
public Element build(final CallbackProperties properties) throws SAMLAssertionBuilderException { LOG.debug("SamlCallbackHandler.createHOKSAMLAssertion20()"); Element signedAssertion = null; try { Assertion assertion; assertion = OpenSAML2ComponentBuilder.getInstance().createAssertion(); final String aID = createAssertionId(); LOG.debug("Assertion ID: {}", aID); assertion.setID(aID); final DateTime issueInstant = new DateTime(); assertion.setIssueInstant(issueInstant); assertion.setIssuer(createIssuer(properties)); final X509Certificate certificate = certificateManager.getDefaultCertificate(); final PublicKey publicKey = certificateManager.getDefaultPublicKey(); final Subject subject = createSubject(properties, certificate, publicKey); assertion.setSubject(subject); final Subject evidenceSubject = createEvidenceSubject(properties, certificate, publicKey); assertion.getStatements().addAll(createAttributeStatements(properties, evidenceSubject)); final PrivateKey privateKey = certificateManager.getDefaultPrivateKey(); signedAssertion = sign(assertion, certificate, privateKey, publicKey); } catch (final SAMLComponentBuilderException | CertificateManagerException ex) { LOG.error("Unable to create HOK Assertion: {}", ex.getLocalizedMessage()); throw new SAMLAssertionBuilderException(ex.getLocalizedMessage(), ex); } LOG.debug("SamlCallbackHandler.createHOKSAMLAssertion20() -- End"); return signedAssertion; }
Source:
<code>private static boolean isInputFormatSupported(Properties schema) { String inputFormat = getInputFormatName(schema); <START> if (!SUPPORTED_INPUT_FORMATS.contains(inputFormat)) { <END> return false; } return true; }</code><technical_language>return SUPPORTED_INPUT_FORMATS.contains(inputFormat);</technical_language>

Target:
private static boolean isInputFormatSupported(Properties schema) { String inputFormat = getInputFormatName(schema); return SUPPORTED_INPUT_FORMATS.contains(inputFormat); }
Source:
<code>private String buildEditAttachmentPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state) { logger.debug("buildEditAttachmentPanelContext()"); ParameterParser params = data.getParameters(); state.removeAttribute("sakaiproject.filepicker.addAttachments"); try { CitationCollection collection = getCitationCollection(state, true); Citation citation = extractCitationFromRunData(data); if(citation!=null) { state.setAttribute(CitationHelper.CITATION_EDIT_ITEM, citation); state.setAttribute(CitationHelper.CITATION_EDIT_ID,citation.getId()); state.setAttribute(STATE_CITATION_COLLECTION, collection); buildEditPanelContext(portlet, context, data, state); } }catch(Exception e){ <START> <END> } return TEMPLATE_EDIT; }</code><technical_language>Need some error handling here, if expected user trigger display user, if unexpected log display user</technical_language>

Target:
private String buildEditAttachmentPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state) { logger.debug("buildEditAttachmentPanelContext()"); if( state.getAttribute(FilePickerHelper.FILE_PICKER_CANCEL) != null) { if(Boolean.valueOf(state.getAttribute(FilePickerHelper.FILE_PICKER_CANCEL).toString())) { buildNewResourcePanelContext(portlet, context, data, state); return TEMPLATE_NEW_RESOURCE; } } CitationCollection collection = getCitationCollection(state, true); Citation citation = extractCitationFromRunData(data); if(citation!=null) { state.setAttribute(CitationHelper.CITATION_EDIT_ITEM, citation); state.setAttribute(CitationHelper.CITATION_EDIT_ID,citation.getId()); state.setAttribute(STATE_CITATION_COLLECTION, collection); buildEditPanelContext(portlet, context, data, state); } return TEMPLATE_EDIT; }
Source:
<code>public synchronized void updateRSGroupConfig(String groupName, Map<String, String> configuration) throws IOException { <START> RSGroupInfo rsGroupInfo = getRSGroupInfo(groupName); <END> rsGroupInfo.setConfiguration(configuration); flushConfig(); }</code><technical_language>Add log here? Update xxx xxx</technical_language>

Target:
public synchronized void updateRSGroupConfig(String groupName, Map<String, String> configuration) throws IOException { RSGroupInfo rsGroupInfo = getRSGroupInfo(groupName); rsGroupInfo.getConfiguration().forEach((k, v) -> rsGroupInfo.removeConfiguration(k)); configuration.forEach((k, v) -> rsGroupInfo.setConfiguration(k, v)); flushConfig(); }
Source:
<code>public DeleteRepresentationAction(Collection<DRepresentation> representations) { super("Delete", AbstractUIPlugin.imageDescriptorFromPlugin(SiriusEditPlugin.ID, "/icons/full/others/delete.gif")); this.selectedRepresentations = Collections2.filter(representations, new Predicate<DRepresentation>() { @Override public boolean apply(DRepresentation input) { EObject container = input.eContainer(); if (container instanceof DRepresentationContainer) { IPermissionAuthority permissionAuthority = PermissionAuthorityRegistry.getDefault().getPermissionAuthority(container); if (permissionAuthority != null && <START> !permissionAuthority.canDeleteInstance(container)) { <END> return false; } } return true; } }); if (this.selectedRepresentations.isEmpty()) { this.setEnabled(false); } }</code><technical_language>this canDeleteInstance(input) && canEditInstance(containter)? need delete container</technical_language>

Target:
public DeleteRepresentationAction(Collection<DRepresentation> representations) { super("Delete", AbstractUIPlugin.imageDescriptorFromPlugin(SiriusEditPlugin.ID, "/icons/full/others/delete.gif")); this.selectedRepresentations = Collections2.filter(representations, new Predicate<DRepresentation>() { @Override public boolean apply(DRepresentation input) { EObject container = input.eContainer(); if (container instanceof DRepresentationContainer) { IPermissionAuthority permissionAuthority = PermissionAuthorityRegistry.getDefault().getPermissionAuthority(container); if (permissionAuthority != null && !permissionAuthority.canDeleteInstance(input)) { return false; } } return true; } }); if (this.selectedRepresentations.isEmpty()) { this.setEnabled(false); } }
Source:
<code>@Override public OutputStream decorateLogger(AbstractBuild build, OutputStream logger) throws IOException, InterruptedException, RunnerAbortedException { Map<String,String> overrides = new HashMap<String, String>(); for (MultiBinding<?> binding : bindings) { <START> MultiBinding.MultiEnvironment environment = binding.bind(build, null, null, null); <END> for (String envKey : environment.getValues().keySet()) { if (!environment.getValues().get(envKey).isEmpty()) { overrides.put(envKey, environment.getValues().get(envKey)); } } } if (!overrides.isEmpty()) { return new BindingStep.Filter(overrides.values(), build.getCharset().name()).decorateLogger(build, logger); } else { return logger; } }</code><technical_language>bug: do call bind please</technical_language>

Target:
@Override public OutputStream decorateLogger(AbstractBuild build, OutputStream logger) throws IOException, InterruptedException, RunnerAbortedException { Map<String,String> overrides = new HashMap<String, String>(); for (MultiBinding<?> binding : bindings) { MultiBinding.MultiEnvironment environment = binding.bind(build, null, null, null); build.addAction(new SharedMultiEnvAction(environment)); for (String envKey : environment.getValues().keySet()) { if (!environment.getValues().get(envKey).isEmpty()) { overrides.put(envKey, environment.getValues().get(envKey)); } } } if (!overrides.isEmpty()) { return new BindingStep.Filter(overrides.values(), build.getCharset().name()).decorateLogger(build, logger); } else { return logger; } }
Source:
<code>private String initDomain(MBeanServer mBeanServer) { GlobalJmxStatisticsConfiguration globalJmxConfig = globalConfig.globalJmxStatistics(); <START> if (globalJmxConfig.allowDuplicateDomains()) { <END> return JmxUtil.buildJmxDomain(globalJmxConfig.domain(), mBeanServer, groupName); } else { return globalJmxConfig.domain(); } }</code><technical_language>I wanted optimize @danberindei : ). I puzzled tentatively removed some point discover some twisted purpose:). benefit making failure predictable (ie exact place fails failure message) if domain occupied allowDuplicateDomains== false. get a random InstanceAlreadyExistsException elsewhere, showing JmxUtil hiding errors. a mess, this eager generation of domain (even for allowDuplicateDomains== false case) early mess detector. I another PR fixing this ISPN-10887 I remove this change clobber history</technical_language>

Target:
private String initDomain(MBeanServer mBeanServer) { GlobalJmxStatisticsConfiguration globalJmxConfig = globalConfig.globalJmxStatistics(); String jmxDomain = JmxUtil.buildJmxDomain(globalJmxConfig.domain(), mBeanServer, groupName); if (!globalJmxConfig.allowDuplicateDomains() && !jmxDomain.equals(globalJmxConfig.domain())) { throw CONTAINER.jmxMBeanAlreadyRegistered(groupName, globalJmxConfig.domain()); } return jmxDomain; }
Source:
<code>public void testUnmarshallTopLevelEmptyEventProperties() throws Exception { Diagram<Graph, Metadata> diagram = unmarshall(marshaller, BPMN_CONDITIONAL_EVENT_FILE_PATH); assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM); StartConditionalEvent emptyTop = getStartNodeById(diagram, EMPTY_TOP_LEVEL_EVENT_ID, StartConditionalEvent.class); assertGeneralSet(emptyTop.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertConditionalEventExecutionSet(emptyTop.getExecutionSet(), CONDITION_EXPRESSION_SCRIPT_DEFAULT_VALUE, CONDITION_EXPRESSION_LANGUAGE, CONDITION_ERPRESSION_TYPE, INTERRUPTING, <START> ""); <END> }</code><technical_language>suggestion EMPTY_VALUE);</technical_language>

Target:
public void testUnmarshallTopLevelEmptyEventProperties() throws Exception { Diagram<Graph, Metadata> diagram = unmarshall(marshaller, BPMN_CONDITIONAL_EVENT_FILE_PATH); assertDiagram(diagram, AMOUNT_OF_NODES_IN_DIAGRAM); StartConditionalEvent emptyTop = getStartNodeById(diagram, EMPTY_TOP_LEVEL_EVENT_ID, StartConditionalEvent.class); assertGeneralSet(emptyTop.getGeneral(), EMPTY_VALUE, EMPTY_VALUE); assertConditionalEventExecutionSet(emptyTop.getExecutionSet(), CONDITION_EXPRESSION_SCRIPT_DEFAULT_VALUE, CONDITION_EXPRESSION_LANGUAGE, CONDITION_ERPRESSION_TYPE, INTERRUPTING, EMPTY_VALUE); }
Source:
<code>protected void executeCommand() { if (getDiskImages().isEmpty()) { setSucceeded(true); return; } <START> SealDisksVDSCommandParameters parameters = new SealDisksVDSCommandParameters(); parameters.setVmId(getParameters().getVmTemplateId()); parameters.setJobId(getParameters().getHostJobId()); parameters.setStoragePoolId(getDiskImages().get(0).getStoragePoolId()); getDiskImages().forEach(parameters::addImage); <END> VDSReturnValue vdsReturnValue = VdsCommandsHelper.runVdsCommandWithFailover( VDSCommandType.SealDisks, parameters, getDiskImages().get(0).getStoragePoolId(), this); if (!vdsReturnValue.getSucceeded()) { setCommandStatus(CommandStatus.FAILED); } setSucceeded(vdsReturnValue.getSucceeded()); }</code><technical_language>please extract a separate method</technical_language>

Target:
protected void executeCommand() { if (getDiskImages().isEmpty()) { setSucceeded(true); return; } VDSReturnValue vdsReturnValue = VdsCommandsHelper.runVdsCommandWithFailover( VDSCommandType.SealDisks, buildSealDisksVDSCommandParameters(), getDiskImages().get(0).getStoragePoolId(), this); if (!vdsReturnValue.getSucceeded()) { setCommandStatus(CommandStatus.FAILED); } setSucceeded(vdsReturnValue.getSucceeded()); }
Source:
<code>public CreateRequestBuilder metadata(Map<String, Object> metadata) { <START> this.metadata = Collections.unmodifiableMap(metadata); <END> return this; }</code><technical_language>@Nami this is mutable na, us. guarantee original input map change</technical_language>

Target:
public CreateRequestBuilder metadata(Map<String, Object> metadata) { this.metadata = metadata; return this; }
Source:
<code>public StepContext getNextQueuedContext(boolean inversePrecedence) { if (queuedContexts.size() > 0) { if (!inversePrecedence) { return queuedContexts.remove(0); } else { int newest = 0; int index = 0; int newestIndex = 0; for (StepContext c : queuedContexts) { try { Run<?, ?> run = c.get(Run.class); <START> if (run.getNumber() > newest) { <END> newest = run.getNumber(); newestIndex = index; } } catch (Exception e) { } index++; } return queuedContexts.remove(newestIndex); } } return null; }</code><technical_language>if run is a Job represented newest? build number comparison meaningless</technical_language>

Target:
StepContext getNextQueuedContext(boolean inversePrecedence) { if (queuedContexts.size() > 0) { if (!inversePrecedence) { return queuedContexts.remove(0); } else { long newest = 0; int index = 0; int newestIndex = 0; for(Iterator<StepContext> iterator = queuedContexts.iterator(); iterator.hasNext();) { StepContext c = iterator.next(); try { Run<?, ?> run = c.get(Run.class); if (run.getStartTimeInMillis() > newest) { newest = run.getStartTimeInMillis(); newestIndex = index; } } catch (Exception e) { iterator.remove(); LOGGER.log(Level.FINE, "Skipping queued context as it does not hold a Run object", e); } index++; } return queuedContexts.remove(newestIndex); } } return null; }
Source:
<code>public void createControl(Composite parent) { super.createControl(parent); TreeViewer tv = getTreeViewer(); tv.setAutoExpandLevel(2); tv.setContentProvider(new ContentProvider()); tv.setLabelProvider(new LabelProvider()); tv.setInput(mRootWrapper); tv.setComparer(new IElementComparer() { public int hashCode(Object element) { if (element instanceof CanvasViewInfo) { UiViewElementNode key = ((CanvasViewInfo) element).getUiViewKey(); if (key != null) { return key.hashCode(); } } if (element != null) { return element.hashCode(); } return 0; } public boolean equals(Object a, Object b) { if (a instanceof CanvasViewInfo && b instanceof CanvasViewInfo) { UiViewElementNode keyA = ((CanvasViewInfo) a).getUiViewKey(); UiViewElementNode keyB = ((CanvasViewInfo) b).getUiViewKey(); if (keyA != null) { return keyA.equals(keyB); } } if (a != null) { return a.equals(b); } return false; } }); mDragSource = LayoutCanvas.createDragSource(getControl(), new DelegateDragListener()); mDropTarget = LayoutCanvas.createDropTarget(getControl(), new DelegateDropListener()); setupContextMenu(); getSite().getPage().addSelectionListener(this); getControl().addDisposeListener(new DisposeListener() { <START> @Override <END> public void widgetDisposed(DisposeEvent e) { dispose(); } }); }</code><technical_language>support JDK 1.5 @Override interface methods DisposeListener#widgetDisposed a JDK 6 feature</technical_language>

Target:
public void createControl(Composite parent) { super.createControl(parent); TreeViewer tv = getTreeViewer(); tv.setAutoExpandLevel(2); tv.setContentProvider(new ContentProvider()); tv.setLabelProvider(new LabelProvider()); tv.setInput(mRootWrapper); tv.setComparer(new IElementComparer() { public int hashCode(Object element) { if (element instanceof CanvasViewInfo) { UiViewElementNode key = ((CanvasViewInfo) element).getUiViewKey(); if (key != null) { return key.hashCode(); } } if (element != null) { return element.hashCode(); } return 0; } public boolean equals(Object a, Object b) { if (a instanceof CanvasViewInfo && b instanceof CanvasViewInfo) { UiViewElementNode keyA = ((CanvasViewInfo) a).getUiViewKey(); UiViewElementNode keyB = ((CanvasViewInfo) b).getUiViewKey(); if (keyA != null) { return keyA.equals(keyB); } } if (a != null) { return a.equals(b); } return false; } }); mDragSource = LayoutCanvas.createDragSource(getControl(), new DelegateDragListener()); mDropTarget = LayoutCanvas.createDropTarget(getControl(), new DelegateDropListener()); setupContextMenu(); getSite().getPage().addSelectionListener(this); getControl().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { dispose(); } }); }
Source:
<code>private static String getPropertyName(FeatureState featureState) { String propertyName = featureState.getParameter(PARAM_NAME); if (Strings.isNotBlank(propertyName)) { return propertyName; } <START> Feature feature = featureState.getFeature(); <END> return feature.getClass().getName() + "." + feature.name(); }</code><technical_language>Please move "else", is return point</technical_language>

Target:
private static String getPropertyName(FeatureState featureState) { String propertyName = featureState.getParameter(PARAM_NAME); if (Strings.isNotBlank(propertyName)) { return propertyName; } return "togglz." + featureState.getFeature().name(); }
Source:
<code>public void loginAsGuest( final AsyncCallback<BackendlessUser> responder, final boolean stayLoggedIn ) { <START> if( !currentUser.getProperties().isEmpty() ) <END> logout( new AsyncCallback<Void>() { @Override public void handleResponse( Void response ) { loginAsGuest( responder, stayLoggedIn ); } @Override public void handleFault( BackendlessFault fault ) { if( responder != null ) responder.handleFault( fault ); } } ); else try { synchronized( currentUserLock ) { Invoker.invokeAsync( USER_MANAGER_SERVER_ALIAS, "loginAsGuest", new Object[] { }, getUserLoginAsyncHandler( responder, stayLoggedIn ) , new AdaptingResponder( BackendlessUser.class, new BackendlessUserAdaptingPolicy() ) ); } } catch( Throwable e ) { if( responder != null ) responder.handleFault( new BackendlessFault( e ) ); } }</code><technical_language>if currentUser is null</technical_language>

Target:
public void loginAsGuest( final AsyncCallback<BackendlessUser> responder, final boolean stayLoggedIn ) { if( currentUser != null && !currentUser.getProperties().isEmpty() ) logout( new AsyncCallback<Void>() { @Override public void handleResponse( Void response ) { loginAsGuest( responder, stayLoggedIn ); } @Override public void handleFault( BackendlessFault fault ) { if( responder != null ) responder.handleFault( fault ); } } ); else try { synchronized( currentUserLock ) { Invoker.invokeAsync( USER_MANAGER_SERVER_ALIAS, "loginAsGuest", new Object[] { }, getUserLoginAsyncHandler( responder, stayLoggedIn ) , new AdaptingResponder( BackendlessUser.class, new BackendlessUserAdaptingPolicy() ) ); } } catch( Throwable e ) { if( responder != null ) responder.handleFault( new BackendlessFault( e ) ); } }
Source:
<code>private String[] getNodeList() throws Exception { <START> if(hcc != null) { <END> Map<String, NodeControllerInfo> nodeControllerInfos = hcc.getNodeControllerInfos(); String[] nodeList = new String[nodeControllerInfos.size()]; int index = 0; for (String node : nodeControllerInfos.keySet()) { nodeList[index++] = node; } return nodeList; } return new String[0]; }</code><technical_language>Please format code standard. load eclipse format file IDE</technical_language>

Target:
private String[] getNodeList() throws Exception { if (hcc != null) { Map<String, NodeControllerInfo> nodeControllerInfos = hcc.getNodeControllerInfos(); String[] nodeList = new String[nodeControllerInfos.size()]; int index = 0; for (String node : nodeControllerInfos.keySet()) { nodeList[index++] = node; } return nodeList; } return null; }
Source:
<code>public void init(final IWorkbench workbench, final IStructuredSelection selection) { if (selection.getFirstElement() instanceof Table) { this.exportedTable = (Table) selection.getFirstElement(); } else if (selection instanceof TableStructuredSelection) { final TableStructuredSelection tss = (TableStructuredSelection) selection; final INattableModelManager tableModelManager = (INattableModelManager) tss.getAdapter(INattableModelManager.class); if (null != tableModelManager) { this.exportedTable = tableModelManager.getTable(); } } <START> Assert.isNotNull(this.exportedTable, "We can't found the table to export"); END> IStatus status = TableChecker.checkTable(this.exportedTable); if (false == status.isOK()) { addPage(new WarningOnCurrentTableWizardPage(status)); } this.outputPage = new DefineOutputPluginWizardPage(); this.tableDataPage = new DefineTableConfigurationDataWizardPage(); this.outputPage.setExportedTable(this.exportedTable); this.tableDataPage.setExportedTable(this.exportedTable); addPage(outputPage); addPage(tableDataPage); }</code><technical_language>add message</technical_language>

Target:
public void init(final IWorkbench workbench, final IStructuredSelection selection) { if (selection.getFirstElement() instanceof Table) { this.exportedTable = (Table) selection.getFirstElement(); } else if (selection instanceof TableStructuredSelection) { final TableStructuredSelection tss = (TableStructuredSelection) selection; final INattableModelManager tableModelManager = (INattableModelManager) tss.getAdapter(INattableModelManager.class); if (null != tableModelManager) { this.exportedTable = tableModelManager.getTable(); } } Assert.isNotNull(this.exportedTable, Messages.ExportAsTableConfigurationWizard_WeCantFoundTheTableToExport); IStatus status = TableChecker.checkTable(this.exportedTable); if (false == status.isOK()) { addPage(new WarningOnCurrentTableWizardPage(status)); } this.outputPage = new DefineOutputPluginWizardPage(); this.tableDataPage = new DefineTableConfigurationDataWizardPage(); this.outputPage.setExportedTable(this.exportedTable); this.tableDataPage.setExportedTable(this.exportedTable); addPage(outputPage); addPage(tableDataPage); }
Source:
<code>public Block getBlockFor(BlockUri blockUri) { if (block == null) { if (getURI().equals(blockUri.getFamilyUri())) { try { Side side = Side.valueOf(blockUri.getIdentifier().toString().toUpperCase(Locale.ENGLISH)); return blocks.get(side); } catch (IllegalArgumentException e) { <START> return null; <END> } } } return block; }</code><technical_language>need log a minimum</technical_language>

Target:
public Block getBlockFor(BlockUri blockUri) { if (block == null && getURI().equals(blockUri.getFamilyUri())) { try { Side side = Side.valueOf(blockUri.getIdentifier().toString().toUpperCase(Locale.ENGLISH)); return blocks.get(side); } catch (IllegalArgumentException e) { logger.error("can't find block with URI: {}", blockUri, e); return null; } } return block; }
Source:
<code>public <API> API getClient(Class<API> apiClass, Endpoint ep, Credentials c) { <START> if (apiClass.equals(EmptyClientAPI.class)) { <END> return (API) new EmptyClientAPI() { }; } return null; }</code><technical_language>Redirect methods specific</technical_language>

Target:
public <API> API getClient(Class<API> apiClass, Endpoint ep, Credentials c) { return getClient(apiClass, ep, c, null, null); }
Source:
<code>public void endSpan(Context context, Signal<Void> signal) { <START> String errorCondition = ""; <END> if (!context.getData(OPENTELEMETRY_SPAN_KEY).isPresent()) { return; } if (signal == null) { end("success", null, context); } Throwable throwable = null; if (signal != null && signal.hasError()) { throwable = signal.getThrowable(); if (throwable instanceof AmqpException) { AmqpException exception = (AmqpException) throwable; errorCondition = exception.getErrorCondition().getErrorCondition(); } } end(errorCondition, throwable, context); }</code><technical_language>move this declaration line 60. This variable need allocated checks completed</technical_language>

Target:
public void endSpan(Context context, Signal<Void> signal) { Objects.requireNonNull(context, "'context' cannot be null"); Objects.requireNonNull(signal, "'signal' cannot be null"); if (!context.getData(OPENTELEMETRY_SPAN_KEY).isPresent()) { return; } switch (signal.getType()) { case ON_COMPLETE: end("success", null, context); break; case ON_ERROR: String errorCondition = ""; Throwable throwable = null; if (signal.hasError()) { throwable = signal.getThrowable(); if (throwable instanceof AmqpException) { AmqpException exception = (AmqpException) throwable; errorCondition = exception.getErrorCondition().getErrorCondition(); } } end(errorCondition, throwable, context); break; default: break; } }
Source:
<code>public void process(CoreEvent sourceEvent, MessageSourceResponseParametersProcessor respParamProcessor, CompletableCallback<Either<SourcePolicyFailureResult, SourcePolicySuccessResult>> callback) { readWriteLock.withReadLock(() -> { if (!disposed.get()) { <START> SourcePolicyContext ctx = SourcePolicyContext.from(sourceEvent); <END> if (ctx != null) { ctx.configure(respParamProcessor, callback); } policySink.get().next(sourceEvent); } else { MessagingException me = new MessagingException(createStaticMessage("Source policy already disposed"), sourceEvent); me.setProcessedEvent(CoreEvent.builder(sourceEvent) .error(ErrorBuilder.builder(me).errorType(errorTypeRepository.getAnyErrorType()).build()).build()); Supplier<Map<String, Object>> errorParameters = sourcePolicyParametersTransformer.isPresent() ? (() -> sourcePolicyParametersTransformer.get().fromMessageToErrorResponseParameters(sourceEvent.getMessage())) : (() -> respParamProcessor.getFailedExecutionResponseParametersFunction().apply(sourceEvent)); SourcePolicyFailureResult result = new SourcePolicyFailureResult(me, errorParameters); callback.complete(left(result)); } }); }</code><technical_language>static import</technical_language>

Target:
public void process(CoreEvent sourceEvent, MessageSourceResponseParametersProcessor respParamProcessor, CompletableCallback<Either<SourcePolicyFailureResult, SourcePolicySuccessResult>> callback) { readWriteLock.withReadLock(() -> { if (!disposed.get()) { SourcePolicyContext ctx = from(sourceEvent); if (ctx != null) { ctx.configure(respParamProcessor, callback); } policySink.get().next(sourceEvent); } else { MessagingException me = new MessagingException(createStaticMessage("Source policy already disposed"), sourceEvent); me.setProcessedEvent(CoreEvent.builder(sourceEvent) .error(ErrorBuilder.builder(me).errorType(errorTypeRepository.getAnyErrorType()).build()).build()); Supplier<Map<String, Object>> errorParameters = sourcePolicyParametersTransformer.isPresent() ? (() -> sourcePolicyParametersTransformer.get().fromMessageToErrorResponseParameters(sourceEvent.getMessage())) : (() -> respParamProcessor.getFailedExecutionResponseParametersFunction().apply(sourceEvent)); SourcePolicyFailureResult result = new SourcePolicyFailureResult(me, errorParameters); callback.complete(left(result)); } }); }
Source:
<code>public void getAge_shouldGetAgeAfterDeath() { Calendar birthdate = Calendar.getInstance(); birthdate.set(1990, Calendar.JUNE, 2); Calendar deathDate = Calendar.getInstance(); deathDate.set(2000, Calendar.JUNE, 3); Person person = new Person(); person.setBirthdate(birthdate.getTime()); <START> person.setDeathDate(deathDate.getTime()); <END> assertEquals(10, person.getAge(), 0); }</code><technical_language>explain reason removing setDate(true)</technical_language>

Target:
public void getAge_shouldGetAgeAfterDeath() { Calendar birthdate = Calendar.getInstance(); birthdate.set(1990, Calendar.JUNE, 2); Calendar deathDate = Calendar.getInstance(); deathDate.set(2000, Calendar.JUNE, 3); Person person = new Person(); person.setBirthdate(birthdate.getTime()); person.setDead(true); person.setDeathDate(deathDate.getTime()); assertEquals(10, person.getAge(), 0); }
Source:
<code><START> private Map<String, String> defaultAttributeAnd(String key, String value) { <END> HashMap<String, String> map = new HashMap<>(ATTRIBUTES_MAP); map.put(key, value); return map; }</code><technical_language>is important defaultAttributeAnd -> defaultAttributesAnd</technical_language>

Target:
private Map<String, String> defaultAttributeAnd(String key, String value) { HashMap<String, String> attributes = new HashMap<>(ATTRIBUTES_MAP); attributes.put(key, value); return attributes; }
Source:
<code>public void init(){ autoEdit = false; mIsBold = false; mIsItalic = false; mIsUnderline = false; <START> this.addTextChangedListener( <END> new TextWatcher() { private int start; private int count; @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { this.start = start; this.count = count; } @Override public void afterTextChanged(Editable s) { if (!autoEdit && count>0) { if (mIsUnderline) { s.setSpan(new UnderlineSpan(), start, start + count, 0); } if (mIsBold) { s.setSpan(new StyleSpan(Typeface.BOLD), start, start + count, 0); } if (mIsItalic) { s.setSpan(new StyleSpan(Typeface.ITALIC), start, start + count, 0); } } } } ); }</code><technical_language>need "this."</technical_language>

Target:
public void init(){ mAutoEdit = false; mIsBold = false; mIsItalic = false; mIsUnderline = false; addTextChangedListener( new TextWatcher() { private int mStart; private int mCount; @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { mStart = start; mCount = count; } @Override public void afterTextChanged(Editable s) { if (!mAutoEdit && mCount>0) { if (mIsUnderline) { s.setSpan(new UnderlineSpan(), mStart, mStart + mCount, 0); } if (mIsBold) { s.setSpan(new StyleSpan(Typeface.BOLD), mStart, mStart + mCount, 0); } if (mIsItalic) { s.setSpan(new StyleSpan(Typeface.ITALIC), mStart, mStart + mCount, 0); } } } } ); }
Source:
<code>protected EntityBinding getEntityBinding(Class<?> entityClass) { return entityBindings.computeIfAbsent(entityClass, cls -> { <START> if (isMappedInterface(cls)) { <END> return EMPTY_BINDING; } return entityBindings.getOrDefault(lookupEntityClass(cls), EMPTY_BINDING); }); }</code><technical_language>This a merge error. I trust AggregationDataStore branch here</technical_language>

Target:
protected EntityBinding getEntityBinding(Class<?> entityClass) { if (isMappedInterface(entityClass)) { return EMPTY_BINDING; } return entityBindings.getOrDefault(lookupEntityClass(entityClass), EMPTY_BINDING); }
Source:
<code>public void setExecutorDao(ExecutorDao executorDao) { this.executorInfo = executorDao; <START> findColumnMaxLengths(); <END> }</code><technical_language>findColumnMaxLengths is called in places</technical_language>

Target:
public void setExecutorDao(ExecutorDao executorDao) { this.executorInfo = executorDao; }
Source:
<code>public ConfigDiff guess(ConfigSource config) { config.set("columns", new ObjectMapper().createArrayNode()); ConfigSource guessConfig = createGuessConfig(); GuessExecutor guessExecutor = Exec.getInjector().getInstance(GuessExecutor.class); PluginTask task = config.loadConfig(PluginTask.class); JiraClient jiraClient = getJiraClient(); List<Issue> issues = jiraClient.searchIssues(task, 0, GUESS_RECORDS_COUNT); <START> issues.stream().forEach(issue -> issue.toRecord()); <END> Set<String> uniqAtrribtes = getUniqueAttributes(issues); JsonArray samples = createSamples(issues, uniqAtrribtes); Buffer sample = Buffer.copyOf(samples.toString().getBytes()); JsonNode columns = guessExecutor.guessParserConfig(sample, Exec.newConfigSource(), guessConfig).getObjectNode().get("parser").get("columns"); ConfigDiff configDiff = Exec.newConfigDiff(); configDiff.set("columns", columns); return configDiff; }</code><technical_language>Code style: List forEach, lambda replace method reference: Issue::toRecord</technical_language>

Target:
public ConfigDiff guess(ConfigSource config) { config.set("columns", new ObjectMapper().createArrayNode()); PluginTask task = config.loadConfig(PluginTask.class); JiraUtil.validateTaskConfig(task); JiraClient jiraClient = getJiraClient(); jiraClient.checkUserCredentials(task); List<Issue> issues = jiraClient.searchIssues(task, 0, GUESS_RECORDS_COUNT); if (issues.isEmpty()) { throw new ConfigException("Could not guess schema due to empty data set"); } Buffer sample = Buffer.copyOf(createSamples(issues, getUniqueAttributes(issues)).toString().getBytes()); JsonNode columns = Exec.getInjector().getInstance(GuessExecutor.class) .guessParserConfig(sample, Exec.newConfigSource(), createGuessConfig()) .getObjectNode().get("columns"); return Exec.newConfigDiff().set("columns", columns); }
Source:
<code>@Override public boolean remove(Object o) { if (o == null) <START> throw new UnsupportedOperationException("Null values are not supported!"); <END> return remove((int)o); }</code><technical_language>Removing null collection, return "false"</technical_language>

Target:
@Override public boolean remove(Object o) { if (o == null) return false; return remove((int)o); }
Source:
<code>private boolean updateCommandWaitingForEvent(CommandEntity cmdEntity) { if (cmdEntity.isWaitingForEvent()) { CallbackTiming callbackTiming = <START> commandsRepository.getCallbackTiming(cmdEntity.getRootCommandId()); <END> if (callbackTiming != null && callbackTiming.getWaitOnEventEndTime() > System.currentTimeMillis()) { commandsRepository.removeEventSubscription(cmdEntity.getId()); cmdEntity.setWaitingForEvent(false); return false; } return true; } return false; }</code><technical_language>do root command id</technical_language>

Target:
private boolean updateCommandWaitingForEvent(CommandEntity cmdEntity) { if (cmdEntity.isWaitingForEvent()) { CallbackTiming callbackTiming = commandsRepository.getCallbackTiming(cmdEntity.getId()); if (callbackTiming != null && callbackTiming.getWaitOnEventEndTime() > System.currentTimeMillis()) { log.info("The command '{}' reached its timeout of waiting for event", cmdEntity.getId()); commandsRepository.removeEventSubscription(cmdEntity.getId()); cmdEntity.setWaitingForEvent(false); return false; } return true; } return false; }
Source:
<code>public IdElementTemplate() { this((clazz, tag, service) -> new TemplateData("", Jsoup.parse("<dom-module id='" + tag <START> + "'><label id='labelId' someattrtibute property-binding='[[foo]]' " <END> + "attribute-binding$='bar' another-binding='{{foo}}'" + "another-attribute='baz'></dom-module>"))); }</code><technical_language>suggestion + "'><label id='labelId' someattribute property-binding='[[foo]]' "</technical_language>

Target:
public IdElementTemplate() { this((clazz, tag, service) -> new TemplateData("", Jsoup.parse("<dom-module id='" + tag + "'><label id='labelId' someattribute property-binding='[[foo]]' " + "attribute-binding$='bar' another-binding='{{foo}}'" + "another-attribute='baz'></dom-module>"))); }
Source:
<code>public void setUp() { <START> try { <END> super.setUp(); } catch (Exception e) { e.printStackTrace(); } action1 = mock(ViewAction.class); action2 = mock(ViewAction.class); action3 = mock(ViewAction.class); action4 = mock(ViewAction.class); action5 = mock(ViewAction.class); action6 = mock(ViewAction.class); action7 = mock(ViewAction.class); action8 = mock(ViewAction.class); }</code><technical_language>catching exception in super eating up. setup throw Exception. test fail if setup fails</technical_language>

Target:
public void setUp() { super.setUp(); view1Action1 = createMockAction(1, TriggerType.CLICK); listView2Action1 = createMockAction(2, TriggerType.CLICK_LIST_ITEM); view1Action2 = createMockAction(1, TriggerType.LONG_CLICK); listView2Action2 = createMockAction(2, TriggerType.LONG_CLICK_LIST_ITEM); view3Action1 = createMockAction(3, TriggerType.TOUCH); view3Action2 = createMockAction(3, TriggerType.TOUCH_DOWN); view3Action3 = createMockAction(3, TriggerType.TOUCH_UP); view1Action3 = createMockAction(1, TriggerType.CLICK); }
Source:
<code>private Optional<String> getAttributeValue(String name, List<Attachment> attachmentList) { <START> return attachmentList.stream().filter(att -> name.equalsIgnoreCase(att.getDataHandler().getDataSource().getName())).findAny().map(m -> { <END> String ie = null; try { ie = m.getDataHandler().getDataSource().getInputStream().toString(); } catch (IOException e) { log.error("The attribute " + name + " does not exist"); } return Optional.of(ie); }).orElse(Optional.empty()); }</code><technical_language>This pretty unreadable. Try avoid lambda's short simple</technical_language>

Target:
public Optional<String> getAttributeValue(String name, List<Attachment> attachmentList) { return this.getFile(name, attachmentList).map(inputStream -> { String inputString = null; try { inputString = IOUtils.toString(inputStream); }catch(Exception e) { log.error("there was an error getting adapter name: " + e.getMessage()); } return Optional.ofNullable(inputString); }).orElse(Optional.empty()); }
Source:
<code><START> public void onRefreshAttributesPanelEvent( final @Observes RefreshAttributesPanelEvent event ) { <END> final GuidedDecisionTableView.Presenter dtPresenter = event.getPresenter(); if ( dtPresenter == null ) { return; } if ( !isDecisionTableAvailable( dtPresenter ) ) { return; } if ( event.getColumns() == null ) { return; } view.refreshAttributeWidget( event.getColumns() ); }</code><technical_language>Code for this method out a separate method - a Consumer parameter for view method call - reused in next methods</technical_language>

Target:
public void onRefreshAttributesPanelEvent( final @Observes RefreshAttributesPanelEvent event ) { refreshPanel( event.getPresenter(), event.getColumns(), view::refreshAttributeWidget ); }
Source:
<code>public ChunkedReplicatedContent( byte contentType, ByteBufAwareMarshal byteBufAwareMarshal, int chunkSize ) { this.byteBufAwareMarshal = byteBufAwareMarshal; this.chunkSize = chunkSize; <START> if ( chunkSize < 7 ) <END> { throw new IllegalArgumentException( "Chunk size must be at least 4 bytes" ); } this.contentType = contentType; }</code><technical_language>7 4</technical_language>

Target:
public ChunkedReplicatedContent( byte contentType, ByteBufAwareMarshal byteBufAwareMarshal, int chunkSize ) { this.byteBufAwareMarshal = byteBufAwareMarshal; this.chunkSize = chunkSize; if ( chunkSize < MINIMUM_CHUNK_SIZE ) { throw new IllegalArgumentException( "Chunk size must be at least " + MINIMUM_CHUNK_SIZE + " bytes" ); } this.contentType = contentType; }
Source:
<code>public Map<Long, String> getBootHistory() throws DeviceNotAvailableException { String output = executeShellCommand("getprop persist.sys.boot.reason.history"); Map<Long, String> bootHistory = new <START> HashMap<Long, <END> String>(); if (Strings.isNullOrEmpty(output)) { return bootHistory; } for (String line : output.split("\\n")) { String infoStr[] = line.split(","); String startStr = infoStr[infoStr.length - 1]; try { long startTime = Long.parseLong(startStr.trim()); bootHistory.put(startTime, infoStr[0].trim()); } catch (NumberFormatException e) { CLog.e("Fail to parse boot time from line %s", line); } } return bootHistory; }</code><technical_language>linkedHashMap conserve order</technical_language>

Target:
public Map<Long, String> getBootHistory() throws DeviceNotAvailableException { String output = getProperty(DeviceProperties.BOOT_REASON_HISTORY); Map<Long, String> bootHistory = new LinkedHashMap<Long, String>(); if (Strings.isNullOrEmpty(output)) { return bootHistory; } for (String line : output.split("\\n")) { String infoStr[] = line.split(","); String startStr = infoStr[infoStr.length - 1]; try { long startTime = Long.parseLong(startStr.trim()); bootHistory.put(startTime, infoStr[0].trim()); } catch (NumberFormatException e) { CLog.e("Fail to parse boot time from line %s", line); } } return bootHistory; }
Source:
<code>public void testMoveAction() throws Exception { List<PID> subjects = pidList(NUM_TEST_PIDS); <START> Document msgDoc = buildMessage(CDRActions.MOVE.toString(), CDRActions.MOVE.getName(), targetPid, subjects); <END> when(msg.getBody()).thenReturn(msgDoc); when(msg.getHeader(eq("name"))).thenReturn("user_id"); processor.process(exchange); verify(messageSender).sendIndexingOperation(stringCaptor.capture(), pidsCaptor.capture(), actionTypeCaptor.capture()); Collection<PID> pids = pidsCaptor.getValue(); assertEquals(1, pids.size()); assertEquals(targetPid, pids.iterator().next()); String userid = stringCaptor.getValue(); assertEquals("user_id", userid); IndexingActionType actionType = actionTypeCaptor.getValue(); assertEquals(IndexingActionType.MOVE, actionType); }</code><technical_language>curious reason for this change? I imagine switching some point in future remembering changed before</technical_language>

Target:
public void testMoveAction() throws Exception { List<PID> subjects = pidList(NUM_TEST_PIDS); Document msgDoc = buildMessage(CDRActions.MOVE.toString(), CDRActions.MOVE.getName(), targetPid, subjects); when(msg.getBody()).thenReturn(msgDoc); processor.process(exchange); verify(messageSender).sendIndexingOperation(stringCaptor.capture(), pidCaptor.capture(), pidsCaptor.capture(), actionTypeCaptor.capture()); verifyTargetPid(pidCaptor.getValue()); verifyUserid(stringCaptor.getValue()); verifyChildPids(subjects); verifyActionType(IndexingActionType.MOVE, actionTypeCaptor.getValue()); }