auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public boolean verify(String hostname, SSLSession session) { X509Certificate[] peerCerts; try { peerCerts = (X509Certificate[]) session.getPeerCertificates(); } catch (SSLPeerUnverifiedException e) { return false; } if (peerCerts == null || peerCerts.length == 0) { return false; } X509Certificate serverCert = peerCerts[0]; try { <START> Collection subjectAltNames = serverCert.getSubjectAlternativeNames(); <END> Iterator sanIt = subjectAltNames.iterator(); while (sanIt.hasNext()) { List list = (List) sanIt.next(); String san = ((String) list.get(1)); Integer type = (Integer) list.get(0); if (type == ALT_DNS_NAME && san.equals(hostname)) { return true; } } } catch (CertificateParsingException e) { return false; } LdapName DN; try { DN = new LdapName(serverCert.getSubjectX500Principal().getName(X500Principal.RFC2253)); } catch (InvalidNameException e) { return false; } String CN = null; for (Rdn rdn : DN.getRdns()) { if ("CN".equals(rdn.getType())) { CN = (String) rdn.getValue(); break; } } if (CN == null) { return false; } else if (CN.startsWith("*")) { if (hostname.endsWith(CN.substring(1))) { return !(hostname.substring(0, hostname.length() - CN.length() + 1).contains(".")); } else { return false; } } else { return CN.equals(hostname); } }</code><technical_language>If is SAN list in cert this return null lead NPE. Need add a ... !=null check if null skip SAN validation</technical_language>

Target:
public boolean verify(String hostname, SSLSession session) { X509Certificate[] peerCerts; try { peerCerts = (X509Certificate[]) session.getPeerCertificates(); } catch (SSLPeerUnverifiedException e) { return false; } if (peerCerts == null || peerCerts.length == 0) { return false; } X509Certificate serverCert = peerCerts[0]; try { Collection<List<?>> subjectAltNames = serverCert.getSubjectAlternativeNames(); if (subjectAltNames != null) { for (List<?> sanit : subjectAltNames) { Integer type = (Integer) sanit.get(0); String san = (String) sanit.get(1); if (type != null && type == ALT_DNS_NAME && verifyHostName(hostname, san)) { return true; } } } } catch (CertificateParsingException e) { return false; } LdapName DN; try { DN = new LdapName(serverCert.getSubjectX500Principal().getName(X500Principal.RFC2253)); } catch (InvalidNameException e) { return false; } String CN = null; for (Rdn rdn : DN.getRdns()) { if ("CN".equals(rdn.getType())) { CN = (String) rdn.getValue(); break; } } return verifyHostName(hostname, CN); }
Source:
<code>public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication, @NonNull List<DomainRequirement> domainRequirements) { List<C> result = new ArrayList<C>(); Set<String> ids = new HashSet<String>(); if (ACL.SYSTEM.equals(authentication)) { while (itemGroup != null) { if (itemGroup instanceof AbstractFolder) { <START> if (!((AbstractFolder) itemGroup).getACL().hasPermission(authentication, USE_ITEM)) { <END> continue; } final AbstractFolder<?> folder = AbstractFolder.class.cast(itemGroup); FolderCredentialsProperty property = folder.getProperties().get(FolderCredentialsProperty.class); if (property != null) { for (C c : DomainCredentials.getCredentials( property.getDomainCredentialsMap(), type, domainRequirements, CredentialsMatchers.always())) { if (!(c instanceof IdCredentials) || ids.add(((IdCredentials) c).getId())) { result.add(c); } } } } if (itemGroup instanceof Item) { itemGroup = Item.class.cast(itemGroup).getParent(); } else { break; } } } return result; }</code><technical_language>Well, verified lines authentication is equal ACL.SYSTEM this redundant me</technical_language>

Target:
public <C extends Credentials> List<C> getCredentials(@NonNull Class<C> type, @Nullable ItemGroup itemGroup, @Nullable Authentication authentication, @NonNull List<DomainRequirement> domainRequirements) { List<C> result = new ArrayList<C>(); Set<String> ids = new HashSet<String>(); if (ACL.SYSTEM.equals(authentication)) { while (itemGroup != null) { if (itemGroup instanceof AbstractFolder) { final AbstractFolder<?> folder = AbstractFolder.class.cast(itemGroup); FolderCredentialsProperty property = folder.getProperties().get(FolderCredentialsProperty.class); if (property != null) { for (C c : DomainCredentials.getCredentials( property.getDomainCredentialsMap(), type, domainRequirements, CredentialsMatchers.always())) { if (!(c instanceof IdCredentials) || ids.add(((IdCredentials) c).getId())) { result.add(c); } } } } if (itemGroup instanceof Item) { itemGroup = Item.class.cast(itemGroup).getParent(); } else { break; } } } return result; }
Source:
<code><START> protected static void checkBindingsSubsetOfVarOrder(final BindingSet bindingSet, final VariableOrder varOrder) throws IllegalArgumentException { <END> checkNotNull(bindingSet); checkNotNull(varOrder); final Set<String> bindingNames = bindingSet.getBindingNames(); final List<String> varNames = varOrder.getVariableOrders(); checkArgument(varNames.containsAll(bindingNames), "The BindingSet contains a Binding whose name is not part of the VariableOrder."); }</code><technical_language>this projected, call of this class. remain private</technical_language>

Target:
private static void checkBindingsSubsetOfVarOrder(final BindingSet bindingSet, final VariableOrder varOrder) throws IllegalArgumentException { checkNotNull(bindingSet); checkNotNull(varOrder); final Set<String> bindingNames = bindingSet.getBindingNames(); final List<String> varNames = varOrder.getVariableOrders(); checkArgument(varNames.containsAll(bindingNames), "The BindingSet contains a Binding whose name is not part of the VariableOrder."); }
Source:
<code>public void sessionModeChanged(Mode mode) { if (mode.equals(Mode.attack)) { if (View.isInitialised() && View.getSingleton().isCanGetFocus() && extension.getScannerParam().isPromptInAttackMode()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { boolean anyInScope = false; for (Context ctx: Model.getSingleton().getSession().getContexts()) { if (ctx.isInScope() && (ctx.getIncludeInContextRegexs() != null && !ctx.getIncludeInContextRegexs().isEmpty())) { anyInScope = true; <START> return; <END> } } String promptMsg = anyInScope ? Constant.messages.getString("ascan.attack.prompt") : Constant.messages.getString("ascan.attack.prompt") + Constant.messages.getString("ascan.attack.prompt.no.scope", Constant.messages.getString("view.toolbar.mode.attack.select")); int res = View.getSingleton().showYesNoRememberDialog( View.getSingleton().getMainFrame(), promptMsg); if (View.getSingleton().isRememberLastDialogChosen()) { extension.getScannerParam().setPromptInAttackMode(false); extension.getScannerParam().setRescanInAttackMode(res == JOptionPane.YES_OPTION); } rescanOnChange = (res == JOptionPane.YES_OPTION); start(); }}); } else { this.rescanOnChange = extension.getScannerParam().isRescanInAttackMode(); this.start(); } } else { this.stop(); } }</code><technical_language>break</technical_language>

Target:
public void sessionModeChanged(Mode mode) { if (mode.equals(Mode.attack)) { if (View.isInitialised() && View.getSingleton().isCanGetFocus() && extension.getScannerParam().isPromptInAttackMode()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { boolean anyInScope = false; for (Context ctx: Model.getSingleton().getSession().getContexts()) { if (ctx.isInScope() && (ctx.getIncludeInContextRegexs() != null && !ctx.getIncludeInContextRegexs().isEmpty())) { anyInScope = true; break; } } String promptMsg = anyInScope ? Constant.messages.getString("ascan.attack.prompt") : Constant.messages.getString("ascan.attack.prompt") + Constant.messages.getString("ascan.attack.prompt.no.scope", Constant.messages.getString("view.toolbar.mode.attack.select")); int res = View.getSingleton().showYesNoRememberDialog( View.getSingleton().getMainFrame(), promptMsg); if (View.getSingleton().isRememberLastDialogChosen()) { extension.getScannerParam().setPromptInAttackMode(false); extension.getScannerParam().setRescanInAttackMode(res == JOptionPane.YES_OPTION); } rescanOnChange = (res == JOptionPane.YES_OPTION); start(); }}); } else { this.rescanOnChange = extension.getScannerParam().isRescanInAttackMode(); this.start(); } } else { this.stop(); } }
Source:
<code>private DirectoryGroup findDirectoryGroup(String directoryName, Group groupModel) { if (groupModel.isSetId()) { String groupId = groupModel.getId(); return getEntity( DirectoryGroup.class, VdcQueryType.GetDirectoryGroupById, new DirectoryIdQueryParameters(directoryName, ExternalId.fromHex(groupId)), groupId, true ); } if (groupModel.isSetName()) { String groupName = groupModel.getName(); if (groupName.startsWith(directoryName + "/")) { int lastSlash = groupName.lastIndexOf("/"); <START> if (lastSlash != -1) { <END> groupName = groupName.substring(lastSlash + 1); } } return getEntity( DirectoryGroup.class, SearchType.DirectoryGroup, getDirectoryGroupSearchPattern(groupName, directoryName) ); } return null; }</code><technical_language>Do need this check. groupName starts dn + "/" lastSlash -1. Please correct if I wrong</technical_language>

Target:
private DirectoryGroup findDirectoryGroup(String directoryName, Group groupModel) { if (groupModel.isSetId()) { String groupId = groupModel.getId(); return getEntity( DirectoryGroup.class, VdcQueryType.GetDirectoryGroupById, new DirectoryIdQueryParameters(directoryName, ExternalId.fromHex(groupId)), groupId, true ); } if (groupModel.isSetName()) { String groupName = groupModel.getName(); if (groupName.startsWith(directoryName + "/")) { int lastSlash = groupName.lastIndexOf("/"); groupName = groupName.substring(lastSlash + 1); } return getEntity( DirectoryGroup.class, SearchType.DirectoryGroup, getDirectoryGroupSearchPattern(groupName, directoryName) ); } return null; }
Source:
<code>public static File getRemovableStorageAppDir(@NonNull Context context) { <START> int currentapiVersion = android.os.Build.VERSION.SDK_INT; <END> if (currentapiVersion >= Build.VERSION_CODES.LOLLIPOP) { File[] fileList = context.getExternalFilesDirs(null); for (File extFile : fileList){ if (extFile != null && Environment.isExternalStorageRemovable(extFile)){ return extFile; } } } return null; }</code><technical_language>variable name currentapiVersion</technical_language>

Target:
public static File getRemovableStorageAppDir(@NonNull Context context) { final int currentApiVersion = android.os.Build.VERSION.SDK_INT; if (currentApiVersion >= Build.VERSION_CODES.LOLLIPOP) { final File[] fileList = context.getExternalFilesDirs(null); for (File extFile : fileList) { if (extFile != null && Environment.isExternalStorageRemovable(extFile)) { return extFile; } } } return null; }
Source:
<code>private Change createChange(CreateChangeOperation operation, boolean updateStatus, IRunnableContext context){ InvocationTargetException exception= null; try { <START> context.run(true, fIsChangeCreationCancelable, new WorkbenchRunnableAdapter( <END> operation, ResourcesPlugin.getWorkspace().getRoot())); } catch (InterruptedException e) { setConditionCheckingStatus(null); return null; } catch (InvocationTargetException e) { exception= e; } if (updateStatus) { RefactoringStatus status= null; if (exception != null) { status= new RefactoringStatus(); String msg= exception.getMessage(); if (msg != null) { status.addFatalError(Messages.format(RefactoringUIMessages.RefactoringWizard_see_log, msg)); } else { status.addFatalError(RefactoringUIMessages.RefactoringWizard_Internal_error); } RefactoringUIPlugin.log(exception); } else { status= operation.getConditionCheckingStatus(); } setConditionCheckingStatus(status, operation.getConditionCheckingStyle()); } else { if (exception != null) ExceptionHandler.handle(exception, getContainer().getShell(), RefactoringUIMessages.RefactoringWizard_refactoring, RefactoringUIMessages.RefactoringWizard_unexpected_exception); } Change change= operation.getChange(); return change; }</code><technical_language>Changing false true is more breaking. need avoid prove safe</technical_language>

Target:
private Change createChange(CreateChangeOperation operation, boolean updateStatus, IRunnableContext context){ InvocationTargetException exception= null; try { context.run((context == PlatformUI.getWorkbench().getActiveWorkbenchWindow()), fIsChangeCreationCancelable, new WorkbenchRunnableAdapter( operation, ResourcesPlugin.getWorkspace().getRoot())); } catch (InterruptedException e) { setConditionCheckingStatus(null); return null; } catch (InvocationTargetException e) { exception= e; } if (updateStatus) { RefactoringStatus status= null; if (exception != null) { status= new RefactoringStatus(); String msg= exception.getMessage(); if (msg != null) { status.addFatalError(Messages.format(RefactoringUIMessages.RefactoringWizard_see_log, msg)); } else { status.addFatalError(RefactoringUIMessages.RefactoringWizard_Internal_error); } RefactoringUIPlugin.log(exception); } else { status= operation.getConditionCheckingStatus(); } setConditionCheckingStatus(status, operation.getConditionCheckingStyle()); } else { if (exception != null) ExceptionHandler.handle(exception, getContainer().getShell(), RefactoringUIMessages.RefactoringWizard_refactoring, RefactoringUIMessages.RefactoringWizard_unexpected_exception); } Change change= operation.getChange(); return change; }
Source:
<code>public void actionPerformed(ActionEvent e) { eventLogger.log(this); <START> if (this.presenter == null) { <END> this.presenter = this.presenterProvider.get(); } this.presenter.showDialog(); }</code><technical_language>need field "presenter" if Provider</technical_language>

Target:
public void actionPerformed(ActionEvent e) { eventLogger.log(this); this.presenterProvider.get().showDialog(); }
Source:
<code>private void createMultiTree(final String pageId) throws DotSecurityException, DotDataException { MultiTree multiTree = new MultiTree(pageId, containerId, contentletsIds.get(0)); <START> APILocator.getMultiTreeAPI().saveMultiTree(multiTree); <END> multiTree = new MultiTree(pageId, containerId, contentletsIds.get(1)); APILocator.getMultiTreeAPI().saveMultiTree(multiTree); multiTree = new MultiTree(pageId, containerId, contentletsIds.get(2)); APILocator.getMultiTreeAPI().saveMultiTree(multiTree); }</code><technical_language>Also, inserting a MultiTree, need set 4th arg is container instance page, e.g.: new MultiTree(pageId, containerId, contentletsIds.get(0),"uuid-1");</technical_language>

Target:
private void createMultiTree(final String pageId) throws DotSecurityException, DotDataException { MultiTree multiTree = new MultiTree(pageId, containerId, contentletsIds.get(0),UUID,0); APILocator.getMultiTreeAPI().saveMultiTree(multiTree); multiTree = new MultiTree(pageId, containerId, contentletsIds.get(1),UUID,0); APILocator.getMultiTreeAPI().saveMultiTree(multiTree); multiTree = new MultiTree(pageId, containerId, contentletsIds.get(2),UUID,0); APILocator.getMultiTreeAPI().saveMultiTree(multiTree); }
Source:
<code>private static void insertToJson(DocumentContext ctx, String path, Object value) { final String preantPath; final String key; Integer dotIndex = path.lastIndexOf("."); Integer leftBracketIndex = path.lastIndexOf("["); if (dotIndex.equals(-1) && leftBracketIndex.equals(-1)) { preantPath = path; key = path; } else if (!dotIndex.equals(-1) && leftBracketIndex.equals(-1)) { preantPath = path.substring(0, dotIndex); key = path.substring(dotIndex + 1); } else if (dotIndex.equals(-1) && !leftBracketIndex.equals(-1)) { preantPath = path.substring(0, leftBracketIndex); key = path.substring(leftBracketIndex + 1); } else { Integer position = dotIndex > leftBracketIndex ? dotIndex : leftBracketIndex; preantPath = path.substring(0, position); key = path.substring(position); } Object obj = ctx.read(preantPath); if (obj instanceof Map) { ctx.put(preantPath, key, value.toString()); } else if (obj instanceof Collection) { <START> ctx.add(preantPath, value); <END> } }</code><technical_language>block of if...else if...else if... is hard understand. I parse jsonpath specification self. avoid a implementation? please explain a bit works</technical_language>

Target:
private static void insertToJson(DocumentContext ctx, String path, Object value) { final String parentPath; final String key; Integer dotIndex = path.lastIndexOf("."); Integer leftBracketIndex = path.lastIndexOf("["); if (dotIndex.equals(-1) && leftBracketIndex.equals(-1)) { parentPath = path; key = path; } else if (!dotIndex.equals(-1) && leftBracketIndex.equals(-1)) { parentPath = path.substring(0, dotIndex); key = path.substring(dotIndex + 1); } else if (dotIndex.equals(-1) && !leftBracketIndex.equals(-1)) { parentPath = path.substring(0, leftBracketIndex); key = path.substring(leftBracketIndex + 1); } else { int position = dotIndex > leftBracketIndex ? dotIndex : leftBracketIndex; parentPath = path.substring(0, position); key = path.substring(position); } Object obj = ctx.read(parentPath); if (obj instanceof Map) { ctx.put(parentPath, key, value.toString()); } else if (obj instanceof Collection) { ctx.add(parentPath, value); } }
Source:
<code><START> public IdToken getIdToken() { <END> return this.idToken; }</code><technical_language>user call getAccessToken()</technical_language>

Target:
public IdToken getIdToken() { return (IdToken) getAccessToken(); }
Source:
<code>private Map<String, Object> getConsoleDeviceSpecParams(Guid vmId) { Map<String, Object> specParams = new HashMap<>(); VmBase vmBase = getVmBase(vmId); specParams.put("enableSocket", "true"); specParams.put( "consoleType", osRepository.getOsConsoleTargetType( <START> vmBase.getOsId(), <END> clusterUtils.getCompatibilityVersion(vmBase)).libvirtName); return specParams; }</code><technical_language>formatter format line, please apply</technical_language>

Target:
private Map<String, Object> getConsoleDeviceSpecParams(Guid vmId) { Map<String, Object> specParams = new HashMap<>(); VmBase vmBase = getVmBase(vmId); ConsoleTargetType targetType = osRepository.getOsConsoleTargetType( vmBase.getOsId(), CompatibilityVersionUtils.getEffective(vmBase, clusterDao.get(vmBase.getClusterId()))); specParams.put("enableSocket", "true"); specParams.put("consoleType", targetType == null ? "serial" : targetType.libvirtName); return specParams; }
Source:
<code>public TranscriptionResponse createTranscription(String callID, String legId, String recordingId, String language) throws UnauthorizedException, GeneralException { if (callID == null) { throw new IllegalArgumentException("Voice call ID must be specified."); } if (legId == null) { throw new IllegalArgumentException("Leg ID must be specified."); } if (recordingId == null) { throw new IllegalArgumentException("Recording ID must be specified."); } if (language == null) { throw new IllegalArgumentException("Language must be specified."); } <START> String[] supportedLanguages = {"de-DE", "en-AU", "en-UK", "en-US", "es-ES", "es-LA", "fr-FR", "it-IT", "nl-NL", "pt-BR"}; <END> if (!Arrays.asList(supportedLanguages).contains(language)) { throw new IllegalArgumentException("Your language is not allowed."); } String url = String.format( "%s%s/%s%s/%s%s/%s%s", VOICE_CALLS_BASE_URL, VOICECALLSPATH, callID, LEGSPATH, legId, RECORDINGPATH, recordingId, TRANSCRIPTIONPATH); return messageBirdService.sendPayLoad(url, language, TranscriptionResponse.class); }</code><technical_language>This promoted static enum</technical_language>

Target:
public TranscriptionResponse createTranscription(String callID, String legId, String recordingId, String language) throws UnauthorizedException, GeneralException { if (callID == null) { throw new IllegalArgumentException("Voice call ID must be specified."); } if (legId == null) { throw new IllegalArgumentException("Leg ID must be specified."); } if (recordingId == null) { throw new IllegalArgumentException("Recording ID must be specified."); } if (language == null) { throw new IllegalArgumentException("Language must be specified."); } if (!Arrays.asList(supportedLanguages).contains(language)) { throw new IllegalArgumentException("Your language is not allowed."); } String url = String.format( "%s%s/%s%s/%s%s/%s%s", VOICE_CALLS_BASE_URL, VOICECALLSPATH, callID, LEGSPATH, legId, RECORDINGPATH, recordingId, TRANSCRIPTIONPATH); return messageBirdService.sendPayLoad(url, language, TranscriptionResponse.class); }
Source:
<code>protected void executeCommand() { AuditLog auditLog = getAuditLogDao().get(getParameters().getAuditLogId()); getAuditLogDao().remove(getParameters().getAuditLogId()); setAuditLogDetails(auditLog); <START> evict(AuditLogDirector.composeSystemObjectId(this, <END> auditLog.getLogType())); setSucceeded(true); }</code><technical_language>raise this point again: changed nature of composeObjectId static, need access AuditLogDirector statically. This is unwelcome spared injecting AuditLogDirector in order methods</technical_language>

Target:
protected void executeCommand() { AuditLog auditLog = getAuditLogDao().get(getParameters().getAuditLogId()); getAuditLogDao().remove(getParameters().getAuditLogId()); setAuditLogDetails(auditLog); evict(auditLogDirector.composeSystemObjectId(this, auditLog.getLogType())); setSucceeded(true); }
Source:
<code>private Optional<Map<String, VariableDefinition>> getVariableDefinitionMap(String processDefinitionId) { ProcessExtensionModel processExtensionModel = processDefinitionId != null ? processExtensionService.getExtensionsForId(processDefinitionId) : null; return Optional.ofNullable(processExtensionModel) <START> .map(p -> p.getExtensionsByProcessDefinitionId(processDefinitionId)) <END> .map(Extension::getProperties); }</code><technical_language>I thought processDefinitionId in extensions json I thought process definition key in extensions json yesterday in this class key(and id in past) i missing</technical_language>

Target:
private Optional<Map<String, VariableDefinition>> getVariableDefinitionMap(String processDefinitionId) { Extension processExtensionModel = processDefinitionId != null ? processExtensionService.getExtensionsForId(processDefinitionId) : null; return Optional.ofNullable(processExtensionModel) .map(Extension::getProperties); }
Source:
<code>public <START> static void <END> setReactorsMap(String vmId, ReactorClient client){ reactorsMap.put(vmId, client); }</code><technical_language>Map static. single instance of JsonRpcServer pass call instance methods</technical_language>

Target:
public void setReactorsMap(String vmId, ReactorClient client){ reactorsMap.put(vmId, client); }
Source:
<code>public void fireNormalTrigger(Window window, boolean fireOnlyUpdatedPanes) { if (fireOnlyUpdatedPanes && updatedKeyStorage != null) { for (KeyT key : updatedKeyStorage.get(window)) { OutputValT outputVal = accumulation.getOutput(dataStorage.get(window, key)); if (retractionStorage != null) { OutputValT oldValue = retractionStorage.get(window, key); if (oldValue != null && oldValue.equals(outputVal)) { continue; } } output.emit(new Tuple.WindowedTuple<>(window, new KeyValPair<>(key, outputVal))); if (retractionStorage != null) { retractionStorage.put(window, key, outputVal); } } updatedKeyStorage.removeAll(window); <START> return; <END> } for (Map.Entry<KeyT, AccumT> entry : dataStorage.entries(window)) { OutputValT outputVal = accumulation.getOutput(entry.getValue()); output.emit(new Tuple.WindowedTuple<>(window, new KeyValPair<>(entry.getKey(), outputVal))); if (retractionStorage != null) { retractionStorage.put(window, entry.getKey(), outputVal); } } }</code><technical_language>instead of return, else</technical_language>

Target:
public void fireNormalTrigger(Window window, boolean fireOnlyUpdatedPanes) { if (useUpdatedKeyStorage()) { for (KeyT key : updatedKeyStorage.get(window)) { OutputValT outputVal = accumulation.getOutput(dataStorage.get(window, key)); if (retractionStorage != null) { OutputValT oldValue = retractionStorage.get(window, key); if (oldValue != null && oldValue.equals(outputVal)) { continue; } } output.emit(new Tuple.WindowedTuple<>(window, new KeyValPair<>(key, outputVal))); if (retractionStorage != null) { retractionStorage.put(window, key, outputVal); } } updatedKeyStorage.removeAll(window); } else { for (Map.Entry<KeyT, AccumT> entry : dataStorage.entries(window)) { OutputValT outputVal = accumulation.getOutput(entry.getValue()); output.emit(new Tuple.WindowedTuple<>(window, new KeyValPair<>(entry.getKey(), outputVal))); if (retractionStorage != null) { retractionStorage.put(window, entry.getKey(), outputVal); } } } }
Source:
<code>private void addVirtualNetworkResource() { String virtualNetworkName = group + "virtualnetwork"; String vnAddresSpacePrefix = "10.0.0.0/16"; String subnetName = group + "subnet"; <START> String subnetAddressPrefix = "10.0.0.0/24"; <END> variables.put("virtualNetworkName", virtualNetworkName); variables.put("virtualNetworkReference", "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]"); variables.put("subnetName", subnetName); variables.put("subnetReference", "[concat(variables('virtualNetworkReference'),'/subnets/',variables('subnetName'))]"); VirtualNetworkProperties properties = VirtualNetworkProperties.builder() .addressSpace( AddressSpace.create(Arrays.asList(vnAddresSpacePrefix)) ) .subnets( Arrays.asList( Subnet.create("[variables('subnetName')]", null, null, SubnetProperties.builder() .addressPrefix(subnetAddressPrefix).build() )) ) .build(); ResourceDefinition virtualNetwork = ResourceDefinition.builder() .name("[variables('virtualNetworkName')]") .type("Microsoft.Network/virtualNetworks") .location(location) .apiVersion("2015-06-15") .properties(properties) .build(); resources.add(virtualNetwork); }</code><technical_language>Is this range meant hardcoded</technical_language>

Target:
private void addVirtualNetworkResource() { String virtualNetworkName = group + "virtualnetwork"; String subnetName = group + "subnet"; variables.put("virtualNetworkName", virtualNetworkName); variables.put("virtualNetworkReference", "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]"); variables.put("subnetName", subnetName); variables.put("subnetReference", "[concat(variables('virtualNetworkReference'),'/subnets/',variables('subnetName'))]"); VirtualNetworkProperties properties = VirtualNetworkProperties.builder() .addressSpace( AddressSpace.create(Arrays.asList(DEFAULT_vnAddresSpacePrefix)) ) .subnets( Arrays.asList( Subnet.create("[variables('subnetName')]", null, null, SubnetProperties.builder() .addressPrefix(DEFAULT_subnetAddressPrefix).build() )) ) .build(); ResourceDefinition virtualNetwork = ResourceDefinition.builder() .name("[variables('virtualNetworkName')]") .type("Microsoft.Network/virtualNetworks") .location(location) .apiVersion(STORAGE_API_VERSION) .properties(properties) .build(); resources.add(virtualNetwork); }
Source:
<code>private boolean perform() { getParameters().setStartTime(new Date()); try { if (unplugPassthroughNics() && connectLunDisks(getDestinationVdsId()) && migrateVm()) { ExecutionHandler.setAsyncJob(getExecutionContext(), true); return true; } } catch <START> (EngineException e) <END> { cleanupPassthroughVnics(getDestinationVdsId()); } runningFailed(); return false; }</code><technical_language>no! exception. transactions here, *need* do db cleanup in case of failure if fail miss VF, Throwable instead of Exception, Errors happen in app well. in case, normally, transaction reverted, one, respond state..</technical_language>

Target:
private boolean perform() { try { getParameters().setStartTime(new Date()); allVmPassthroughNics = getAllVmPassthroughNics(); log.debug("Performing migration with following passthrough nics: {}", allVmPassthroughNics); if (unplugPassthroughNics(allVmPassthroughNics) && connectLunDisks(getDestinationVdsId()) && migrateVm()) { ExecutionHandler.setAsyncJob(getExecutionContext(), true); return true; } runningFailed(); return false; } catch (Exception e) { cleanupPassthroughVnics(getDestinationVdsId()); runningFailed(); throw e; } }
Source:
<code>public void test_service_info(){ Map<String,String> tags = new HashMap<>(); tags.put("key1", "value1"); tags.put("key2", "value2"); ServiceInfo info = new ServiceInfo("service1", tags); String metadata = info.toMetadata(); <START> System.out.println(metadata); <END> ServiceInfo info2 = ServiceInfo.from(metadata); assertTrue(info2.getServiceName().equals("service1")); assertTrue( info2.getTags().get("key1").equals("value1")); assertTrue( info2.getTags().get("key2").equals("value2")); }</code><technical_language>more clear if put instead of system.out some assertEquals check equal expected string</technical_language>

Target:
public void test_service_info() { Map<String, String> tags = new HashMap<>(); tags.put("key1", "value1"); tags.put("key2", "value2"); ServiceInfo info = new ServiceInfo("service1", tags); String metadata = info.toMetadata(); assertEquals(metadata, "service1:tags:key1=value1|tag|key2=value2|tag|"); ServiceInfo info2 = ServiceInfo.from(metadata); assertTrue(info2.getServiceName().equals("service1")); assertTrue(info2.getTags().get("key1").equals("value1")); assertTrue(info2.getTags().get("key2").equals("value2")); }
Source:
<code>protected boolean hasRemainingRenewals(final String tokenId, long renewInterval) { <START> return ((System.currentTimeMillis() + 30000 + renewInterval) < getMaxLifetime(tokenId)); <END> }</code><technical_language>is this 30 seconds buffer added</technical_language>

Target:
protected boolean hasRemainingRenewals(final String tokenId, long renewInterval) { return ((System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(30) + renewInterval) < getMaxLifetime(tokenId)); }
Source:
<code>public String getStatusReport(String pluginId) { if (!ElasticAgentExtensionConverterV2.VERSION.equals(pluginManager.resolveExtensionVersion(pluginId, SUPPORTED_VERSIONS))) { <START> throw new UnsupportedOperationException(format("Plugin `%s` implements Elastic Agent V1, `StatusReport` endpoint is not supported in this version.", pluginId)); <END> } return pluginRequestHelper.submitRequest(pluginId, REQUEST_STATUS_REPORT, new DefaultPluginInteractionCallback<String>() { @Override public String onSuccess(String responseBody, String resolvedExtensionVersion) { final ElasticAgentExtensionConverterV2 converter = (ElasticAgentExtensionConverterV2) getElasticAgentMessageConverter(resolvedExtensionVersion); return converter.getStatusReportView(responseBody); } }); }</code><technical_language>This based plugins capabilities instead of version 2.0</technical_language>

Target:
public String getStatusReport(String pluginId) { return pluginRequestHelper.submitRequest(pluginId, REQUEST_STATUS_REPORT, new DefaultPluginInteractionCallback<String>() { @Override public String onSuccess(String responseBody, String resolvedExtensionVersion) { final ElasticAgentExtensionConverterV2 converter = (ElasticAgentExtensionConverterV2) getElasticAgentMessageConverter(resolvedExtensionVersion); return converter.getStatusReportView(responseBody); } }); }
Source:
<code>private void checkMissingQueuesFatalFromProperty() { if (!isMissingQueuesFatalSet()) { try { ApplicationContext applicationContext = getApplicationContext(); if (applicationContext != null) { Properties properties = applicationContext.getBean("spring.amqp.global.properties", Properties.class); String missingQueuesFatal = properties.getProperty("mlc.missing.queues.fatal"); if (StringUtils.hasText(missingQueuesFatal)) { setMissingQueuesFatal(Boolean.parseBoolean(missingQueuesFatal)); } } } catch (BeansException be) { <START> if (logger.isDebugEnabled()) { <END> logger.debug("No global properties bean"); } } } }</code><technical_language>isEnabled() needed for simple strings</technical_language>

Target:
private void checkMissingQueuesFatalFromProperty() { if (!isMissingQueuesFatalSet()) { try { ApplicationContext applicationContext = getApplicationContext(); if (applicationContext != null) { Properties properties = applicationContext.getBean("spring.amqp.global.properties", Properties.class); String missingQueuesFatal = properties.getProperty("mlc.missing.queues.fatal"); if (!StringUtils.hasText(missingQueuesFatal)) { missingQueuesFatal = properties.getProperty("smlc.missing.queues.fatal"); } if (StringUtils.hasText(missingQueuesFatal)) { setMissingQueuesFatal(Boolean.parseBoolean(missingQueuesFatal)); } } } catch (BeansException be) { logger.debug("No global properties bean"); } } }
Source:
<code>public String getAccessTokenEndpoint() { <START> return "<LINK_1>?grant_type=authorization_code"; <END> }</code><technical_language>?grant_type=authorization_code redundant standard OAuth2 param, added <LINK_0></technical_language>

Target:
public String getAccessTokenEndpoint() { return "<LINK_1>"; }
Source:
<code>public final void writeTextSegment(final TextSegment textSegment, final FileType fileType) throws IOException, NitfFormatException { writeFixedLengthString(TextConstants.TE, TextConstants.TE.length()); if (fileType == FileType.NITF_TWO_ZERO) { writeFixedLengthString(textSegment.getIdentifier(), TextConstants.TEXTID20_LENGTH); } else { writeFixedLengthString(textSegment.getIdentifier(), TextConstants.TEXTID_LENGTH); writeFixedLengthNumber(textSegment.getAttachmentLevel(), TextConstants.TXTALVL_LENGTH); } writeDateTime(textSegment.getTextDateTime()); writeFixedLengthString(textSegment.getTextTitle(), TextConstants.TXTITL_LENGTH); writeSecurityMetadata(textSegment.getSecurityMetadata()); writeENCRYP(); writeFixedLengthString(textSegment.getTextFormat().getTextEquivalent(), TextConstants.TXTFMT_LENGTH); byte[] textExtendedSubheaderData = mTreParser.getTREs(textSegment, TreSource.TextExtendedSubheaderData); int textExtendedSubheaderDataLength = textExtendedSubheaderData.length; if ((textExtendedSubheaderDataLength > 0) || (textSegment.getExtendedHeaderDataOverflow() != 0)) { textExtendedSubheaderDataLength += TextConstants.TXSOFL_LENGTH; } writeFixedLengthNumber(textExtendedSubheaderDataLength, TextConstants.TXSHDL_LENGTH); if (textExtendedSubheaderDataLength > 0) { writeFixedLengthNumber(textSegment.getExtendedHeaderDataOverflow(), TextConstants.TXSOFL_LENGTH); writeBytes(textExtendedSubheaderData, textExtendedSubheaderDataLength - TextConstants.TXSOFL_LENGTH); } mOutput.writeBytes(textSegment.getData()); <START> } <END></code><technical_language>I static imports</technical_language>

Target:
public final void writeTextSegment(final TextSegment textSegment, final FileType fileType) throws IOException, NitfFormatException { writeFixedLengthString(TE, TE.length()); if (fileType == FileType.NITF_TWO_ZERO) { writeFixedLengthString(textSegment.getIdentifier(), TEXTID20_LENGTH); } else { writeFixedLengthString(textSegment.getIdentifier(), TEXTID_LENGTH); writeFixedLengthNumber(textSegment.getAttachmentLevel(), TXTALVL_LENGTH); } writeDateTime(textSegment.getTextDateTime()); writeFixedLengthString(textSegment.getTextTitle(), TXTITL_LENGTH); writeSecurityMetadata(textSegment.getSecurityMetadata()); writeENCRYP(); writeFixedLengthString(textSegment.getTextFormat().getTextEquivalent(), TXTFMT_LENGTH); byte[] textExtendedSubheaderData = mTreParser.getTREs(textSegment, TreSource.TextExtendedSubheaderData); int textExtendedSubheaderDataLength = textExtendedSubheaderData.length; if ((textExtendedSubheaderDataLength > 0) || (textSegment.getExtendedHeaderDataOverflow() != 0)) { textExtendedSubheaderDataLength += TXSOFL_LENGTH; } writeFixedLengthNumber(textExtendedSubheaderDataLength, TXSHDL_LENGTH); if (textExtendedSubheaderDataLength > 0) { writeFixedLengthNumber(textSegment.getExtendedHeaderDataOverflow(), TXSOFL_LENGTH); writeBytes(textExtendedSubheaderData, textExtendedSubheaderDataLength - TXSOFL_LENGTH); } mOutput.writeBytes(textSegment.getData()); }
Source:
<code>public void onReceive(Context context, Intent intent) { <START> String language = intent.getStringExtra(LANG); <END> String country = intent.getStringExtra(COUNTRY); Locale locale = new Locale(language, country); LocaleSettingHandler localeSettingHandler = new LocaleSettingHandler(context); localeSettingHandler.setLocale(locale); }</code><technical_language>Please add error handling. crash service if input is incorrect</technical_language>

Target:
public void onReceive(Context context, Intent intent) { if(!hasExtraLocale(intent)) { Log.e(TAG, "Don't forget to set lang and country like: am broadcast -a io.appium.settings.locale --es lang ja --es country JP"); Log.e(TAG, "Set en-US by default."); intent.putExtra(LANG, "en"); intent.putExtra(COUNTRY, "US"); } String language = intent.getStringExtra(LANG); String country = intent.getStringExtra(COUNTRY); Locale locale = new Locale(language, country); LocaleSettingHandler localeSettingHandler = new LocaleSettingHandler(context); localeSettingHandler.setLocale(locale); }
Source:
<code>private RepositoriesPanel createRepositoriesPanel() { ObservableList<RepositoryLocation<? extends Repository>> repositoryLocations = FXCollections .observableArrayList(settingsManager.loadRepositoryLocations()); final RepositoriesPanel repositoriesPanel = new RepositoriesPanel(repositoryLocationLoader, repositoryLocations); repositoriesPanel.setOnRepositoryRefresh(repositoryManager::triggerRepositoryChange); repositoriesPanel.getRepositoryLocations() <START> .addListener((ListChangeListener.Change<? extends RepositoryLocation<? extends Repository>> change) -> { <END> while (change.next()) { final int from = change.getFrom(); if (change.wasRemoved()) { change.getRemoved().forEach(repositoryManager::removeRepositories); } if (change.wasAdded()) { IntStream.range(0, change.getAddedSize()).forEach(index -> repositoryManager .addRepositories(from + index, change.getAddedSubList().get(index))); } settingsManager.saveRepositories(repositoryLocations); } }); return repositoriesPanel; }</code><technical_language>a good idea RepositoryManager classes</technical_language>

Target:
private RepositoriesPanel createRepositoriesPanel() { ObservableList<RepositoryLocation<? extends Repository>> repositoryLocations = FXCollections .observableArrayList(settingsManager.loadRepositoryLocations()); final RepositoriesPanel repositoriesPanel = new RepositoriesPanel(repositoryLocations); repositoriesPanel.setOnRepositoryRefresh(repositoryManager::triggerRepositoryChange); repositoriesPanel.setRepositoryLocationLoader(repositoryLocationLoader); repositoriesPanel.getRepositoryLocations() .addListener((ListChangeListener.Change<? extends RepositoryLocation<? extends Repository>> change) -> { repositoryManager.updateRepositories(repositoryLocations); settingsManager.saveRepositories(repositoryLocations); }); return repositoriesPanel; }
Source:
<code>private void setupReplyTo(InvocableHandlerMethod handler) { String replyTo = null; Method method = handler.getMethod(); if (method != null) { SendTo ann = AnnotationUtils.getAnnotation(method, SendTo.class); replyTo = extractSendTo(method.toString(), ann); } if (replyTo == null) { <START> SendTo ann = AnnotationUtils.getAnnotation(this.bean.getClass(), SendTo.class); <END> replyTo = extractSendTo(this.getBean().getClass().getSimpleName(), ann); } if (replyTo != null) { this.handlerSendTo.put(handler, replyTo); } }</code><technical_language>Oh! I a bad memory... <LINK_0> mind</technical_language>

Target:
private void setupReplyTo(InvocableHandlerMethod handler) { String replyTo = null; Method method = handler.getMethod(); if (method != null) { SendTo ann = AnnotationUtils.getAnnotation(method, SendTo.class); replyTo = extractSendTo(method.toString(), ann); } if (replyTo == null) { SendTo ann = AnnotationUtils.getAnnotation(this.bean.getClass(), SendTo.class); replyTo = extractSendTo(this.getBean().getClass().getSimpleName(), ann); } if (replyTo != null) { this.handlerSendTo.put(handler, PARSER.parseExpression(replyTo, PARSER_CONTEXT)); } }
Source:
<code>@Before public void prepareAgentForPlatform() throws Exception { <START> System.out.println("prepare platform: " + platform); <END> switch (platform) { case NATIVE: s = j.createOnlineSlave(); break; case SLIM: case ALPINE: case CENTOS: case UBUNTU: s = prepareAgentDocker(); j.jenkins.addNode(s); j.waitOnline(s); break; case SIMPLE: case TINI: s = prepareAgentCommandLauncher(); j.jenkins.addNode(s); j.waitOnline(s); break; default: Assert.fail("Unknown enum value: " + platform); break; } ws = s.getWorkspaceRoot().child("ws"); launcher = s.createLauncher(listener); }</code><technical_language>this earlier, deleted</technical_language>

Target:
@Before public void prepareAgentForPlatform() throws Exception { switch (platform) { case NATIVE: s = j.createOnlineSlave(); break; case UBUNTU_NO_BINARY: BourneShellScript.FORCE_SHELL_WRAPPER = true; case SLIM: case ALPINE: case CENTOS: case UBUNTU: case SIMPLE: s = prepareAgentDocker(); j.jenkins.addNode(s); j.waitOnline(s); break; default: Assert.fail("Unknown enum value: " + platform); break; } ws = s.getWorkspaceRoot().child("ws"); launcher = s.createLauncher(listener); }
Source:
<code>public void notifyNewMessage(final HttpMessage msg) { HistoryReference hRef = msg.getHistoryRef(); if (hRef == null) { try { hRef = new HistoryReference( Model.getSingleton().getSession(), HistoryReference.TYPE_SCANNER_TEMPORARY, msg); msg.setHistoryRef(null); hRefs.add(Integer.valueOf(hRef.getHistoryId())); } catch (HttpMalformedHeaderException | DatabaseException e) { log.error(e.getMessage(), e); } } else { hRefs.add(Integer.valueOf(hRef.getHistoryId())); } this.rcTotals.incResponseCodeCount(msg.getResponseHeader().getStatusCode()); if (hRef != null) { if (this.rcTotals.getTotal() <= this.maxResultsToList) { <START> addHistoryReference(hRef); <END> } else { HistoryReference remRef = getMessagesTableModel().getEntry(0).getHistoryReference(); removeHistoryReferenceInEdt(remRef); addHistoryReference(hRef); } } }</code><technical_language>This statement moved then/else blocks (it's done always). need invert expression (and delete in block)</technical_language>

Target:
public void notifyNewMessage(final HttpMessage msg) { HistoryReference hRef = msg.getHistoryRef(); if (hRef == null) { try { hRef = new HistoryReference( Model.getSingleton().getSession(), HistoryReference.TYPE_SCANNER_TEMPORARY, msg); msg.setHistoryRef(null); hRefs.add(Integer.valueOf(hRef.getHistoryId())); } catch (HttpMalformedHeaderException | DatabaseException e) { log.error(e.getMessage(), e); } } else { hRefs.add(Integer.valueOf(hRef.getHistoryId())); } this.rcTotals.incResponseCodeCount(msg.getResponseHeader().getStatusCode()); if (hRef != null && View.isInitialised()) { if (this.rcTotals.getTotal() > this.maxResultsToList) { removeFirstHistoryReferenceInEdt(); } addHistoryReferenceInEdt(hRef); } }
Source:
<code>public void clickOnDetails() { <START> CommonActions.clickOnaHiddenElement(datails); <END> }</code><technical_language>is details</technical_language>

Target:
public void clickOnDetails() { CommonActions.clickOnaHiddenElement(detailsLinkButton); }
Source:
<code>protected synchronized void onDetectedFailure(SensorEvent<Object> event) { final Entity failedEntity = event.getSource(); final Object reason = event.getValue(); if (isSuspended()) { LOG.warn("ServiceReplacer suspended, so not acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+")"); return; } if (isRepeatedlyFailingTooMuch()) { LOG.error("ServiceReplacer not acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+"), because too many recent replacement failures"); return; } LOG.warn("ServiceReplacer acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+")"); ((EntityInternal)entity).getManagementSupport().getExecutionContext().submit(MutableMap.of(), new Runnable() { @Override public void run() { try { Entities.invokeEffectorWithArgs(entity, entity, MemberReplaceable.REPLACE_MEMBER, failedEntity.getId()).get(); consecutiveReplacementFailureTimes.clear(); } catch (Exception e) { if (e.toString().contains("failed to stop and remove old member") && e.toString().contains(failedEntity.getId())) { LOG.info("ServiceReplacer: ignoring error reported from stopping failed node "+failedEntity); <START> return; <END> } onReplacementFailed("Replace failure (error "+e+") at "+entity+": "+reason); } } }); }</code><technical_language>Oooh, "exception message affects control flow" limited test code! This smells</technical_language>

Target:
protected synchronized void onDetectedFailure(SensorEvent<Object> event) { final Entity failedEntity = event.getSource(); final Object reason = event.getValue(); if (isSuspended()) { LOG.warn("ServiceReplacer suspended, so not acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+")"); return; } if (isRepeatedlyFailingTooMuch()) { LOG.error("ServiceReplacer not acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+"), because too many recent replacement failures"); return; } LOG.warn("ServiceReplacer acting on failure detected at "+failedEntity+" ("+reason+", child of "+entity+")"); ((EntityInternal)entity).getManagementSupport().getExecutionContext().submit(MutableMap.of(), new Runnable() { @Override public void run() { try { Entities.invokeEffectorWithArgs(entity, entity, MemberReplaceable.REPLACE_MEMBER, failedEntity.getId()).get(); consecutiveReplacementFailureTimes.clear(); } catch (Exception e) { if (Exceptions.getFirstThrowableOfType(e, StopFailedRuntimeException.class) != null) { LOG.info("ServiceReplacer: ignoring error reported from stopping failed node "+failedEntity); return; } onReplacementFailed("Replace failure (error "+e+") at "+entity+": "+reason); } } }); }
Source:
<code>private boolean peekId(int index) { TokenType type = peekType(index); return EnumSet.of( TokenType.IDENTIFIER, TokenType.TYPE, TokenType.DECLARE, TokenType.MODULE, TokenType.NAMESPACE) .contains(type) <START> || (peekReservedWordAsId()); <END> }</code><technical_language>Drop this change, I think. peeked type. throw peek again</technical_language>

Target:
private boolean peekId(int index) { TokenType type = peekType(index); return TokenType.IDENTIFIER == type || (config.parseTypeSyntax && Keywords.isTypeScriptSpecificKeyword(type)) || peekReservedWordAsId(); }
Source:
<code>private void callBackupRestore(GatewayConfig primaryGateway, Set<String> target, Set<Node> allNodes, SaltConfig saltConfig, ExitCriteriaModel exitModel, String state) throws CloudbreakOrchestratorFailedException { try (SaltConnector sc = createSaltConnector(primaryGateway)) { for (Entry<String, SaltPillarProperties> propertiesEntry : saltConfig.getServicePillarConfig().entrySet()) { OrchestratorBootstrap pillarSave = new PillarSave(sc, Sets.newHashSet(primaryGateway.getPrivateAddress()), propertiesEntry.getValue()); Callable<Boolean> saltPillarRunner = saltRunner.runner(pillarSave, exitCriteria, exitModel, maxRetry, true); saltPillarRunner.call(); } StateRunner stateRunner = new StateRunner(target, allNodes, state); OrchestratorBootstrap saltJobIdTracker = new SaltJobIdTracker(sc, stateRunner); Callable<Boolean> saltJobRunBootstrapRunner = saltRunner.runner(saltJobIdTracker, exitCriteria, exitModel, maxRetry, true); saltJobRunBootstrapRunner.call(); } catch (Exception e) { <START> LOGGER.info("Error occurred during database backup/restore", e); <END> throw new CloudbreakOrchestratorFailedException(e); } }</code><technical_language>this error level, it</technical_language>

Target:
private void callBackupRestore(GatewayConfig primaryGateway, Set<String> target, Set<Node> allNodes, SaltConfig saltConfig, ExitCriteriaModel exitModel, String state) throws CloudbreakOrchestratorFailedException { try (SaltConnector sc = createSaltConnector(primaryGateway)) { for (Entry<String, SaltPillarProperties> propertiesEntry : saltConfig.getServicePillarConfig().entrySet()) { OrchestratorBootstrap pillarSave = new PillarSave(sc, Sets.newHashSet(primaryGateway.getPrivateAddress()), propertiesEntry.getValue()); Callable<Boolean> saltPillarRunner = saltRunner.runner(pillarSave, exitCriteria, exitModel, maxRetry, true); saltPillarRunner.call(); } StateRunner stateRunner = new StateRunner(target, allNodes, state); OrchestratorBootstrap saltJobIdTracker = new SaltJobIdTracker(sc, stateRunner); Callable<Boolean> saltJobRunBootstrapRunner = saltRunner.runner(saltJobIdTracker, exitCriteria, exitModel, maxRetry, true); saltJobRunBootstrapRunner.call(); } catch (Exception e) { LOGGER.error("Error occurred during database backup/restore", e); throw new CloudbreakOrchestratorFailedException(e); } }
Source:
<code>public void setTTL(Long ttl) { <START> this.m_ttl = m_ttl; <END> }</code><technical_language>this m_</technical_language>

Target:
public void setTTL(Long ttl) { m_ttl = ttl; }