auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public static CompareHandlerService createFor(ICompareContainer container, Shell shell) { IServiceLocator serviceLocator = container.getServiceLocator(); if (serviceLocator != null) { IHandlerService service = (IHandlerService)serviceLocator.getService(IHandlerService.class); if (service != null) return new CompareHandlerService(container, null); } <START> if (!PlatformUI.isWorkbenchRunning() && shell != null) { <END> Expression e = new ActiveShellExpression(shell); return new CompareHandlerService(container, e); } if (container.getWorkbenchPart() == null && shell != null) { IHandlerService service = (IHandlerService)PlatformUI.getWorkbench().getService(IHandlerService.class); if (service != null) { Expression e = new ActiveShellExpression(shell); return new CompareHandlerService(container, e); } } return new CompareHandlerService(null, null); }</code><technical_language>PlatformUI is in pure e4</technical_language>

Target:
public static CompareHandlerService createFor(ICompareContainer container, Shell shell) { IServiceLocator serviceLocator = container.getServiceLocator(); if (serviceLocator != null) { IHandlerService service = serviceLocator.getService(IHandlerService.class); if (service != null) return new CompareHandlerService(container, null); } if (!PlatformUI.isWorkbenchRunning() && shell != null) { Expression e = new ActiveShellExpression(shell); return new CompareHandlerService(container, e); } if (container.getWorkbenchPart() == null && shell != null) { IHandlerService service = PlatformUI.getWorkbench().getService(IHandlerService.class); if (service != null) { Expression e = new ActiveShellExpression(shell); return new CompareHandlerService(container, e); } } return new CompareHandlerService(null, null); }
Source:
<code>private void assertJsonErrorResponse(int expectedStatusCode, String expectedMessage, String response) throws IOException { try { <START> ObjectMapper mapper = new ObjectMapper(); <END> Map<?, ?> parseResponse = mapper.readValue(response, Map.class); String message = (String) parseResponse.get("message"); int statusCode = (Integer) parseResponse.get("statusCode"); assertEquals("statusCode", expectedStatusCode, statusCode); assertEquals("message", expectedMessage, message); } catch (JsonMappingException | JsonParseException e) { fail("Response did not parse as JSON. Response: " + response); } }</code><technical_language>Mappers expensive create I believe, thread safe constructed. this a static</technical_language>

Target:
private void assertJsonErrorResponse(int expectedStatusCode, String expectedMessage, String response) throws IOException { try { Map<?, ?> parseResponse = MAPPER.readValue(response, Map.class); String message = (String) parseResponse.get("message"); int statusCode = (Integer) parseResponse.get("statusCode"); assertEquals("statusCode", expectedStatusCode, statusCode); assertEquals("message", expectedMessage, message); } catch (JsonMappingException | JsonParseException e) { fail("Response did not parse as JSON. Response: " + response); } }
Source:
<code>public ArrayList<ItemGroup> findByCrfVersionId(Integer crfVersionId) { <START> org.hibernate.Query q = getCurrentSession().createSQLQuery(findAllByCrfVersionIdQuery).addEntity(ItemGroup.class); <END> q.setInteger("crfversionid", crfVersionId.intValue()); return (ArrayList<ItemGroup>) q.list(); }</code><technical_language>of Query org.hibernate.Query</technical_language>

Target:
public ArrayList<ItemGroup> findByCrfVersionId(Integer crfVersionId) { Query q = getCurrentSession().createSQLQuery(findAllByCrfVersionIdQuery).addEntity(ItemGroup.class); q.setInteger("crfversionid", crfVersionId.intValue()); return (ArrayList<ItemGroup>) q.list(); }
Source:
<code>public void testReceiveAtomFeedWithEntryHavingBeenUpdatedAfterPublishAndRepeatWithPersistentMetadataStore() throws Exception { <START> URL url = new URL("file:src/test/java/org/springframework/integration/feed/atom.xml"); <END> FeedEntryMessageSource feedEntrySource = new FeedEntryMessageSource(url, "foo", this.feedFetcher); feedEntrySource.setBeanName("feedReader"); PropertiesPersistingMetadataStore metadataStore = new PropertiesPersistingMetadataStore(); metadataStore.afterPropertiesSet(); feedEntrySource.setMetadataStore(metadataStore); feedEntrySource.setBeanFactory(mock(BeanFactory.class)); feedEntrySource.afterPropertiesSet(); SyndEntry entry1 = feedEntrySource.receive().getPayload(); assertNull(feedEntrySource.receive()); assertEquals("Atom draft-07 snapshot", entry1.getTitle().trim()); assertEquals(1071318569000L, entry1.getPublishedDate().getTime()); assertEquals(1122812969000L, entry1.getUpdatedDate().getTime()); metadataStore.destroy(); metadataStore.afterPropertiesSet(); feedEntrySource = new FeedEntryMessageSource(url, "foo", this.feedFetcher); feedEntrySource.setBeanName("feedReader"); metadataStore = new PropertiesPersistingMetadataStore(); metadataStore.afterPropertiesSet(); feedEntrySource.setMetadataStore(metadataStore); feedEntrySource.setBeanFactory(mock(BeanFactory.class)); feedEntrySource.afterPropertiesSet(); assertNull(feedEntrySource.receive()); }</code><technical_language>H-m. dangerous. change CLASSPATH: java URL url = new ClassPathResource("org/springframework/integration/feed/atom.xml").getURL(); if mind, please, fix other tests for issue</technical_language>

Target:
public void testReceiveAtomFeedWithEntryHavingBeenUpdatedAfterPublishAndRepeatWithPersistentMetadataStore() throws Exception { URL url = new ClassPathResource("org/springframework/integration/feed/atom.xml").getURL(); FeedEntryMessageSource feedEntrySource = new FeedEntryMessageSource(url, "foo", this.feedFetcher); feedEntrySource.setBeanName("feedReader"); PropertiesPersistingMetadataStore metadataStore = new PropertiesPersistingMetadataStore(); metadataStore.afterPropertiesSet(); feedEntrySource.setMetadataStore(metadataStore); feedEntrySource.setBeanFactory(mock(BeanFactory.class)); feedEntrySource.afterPropertiesSet(); SyndEntry entry1 = feedEntrySource.receive().getPayload(); assertNull(feedEntrySource.receive()); assertEquals("Atom draft-07 snapshot", entry1.getTitle().trim()); assertEquals(1071318569000L, entry1.getPublishedDate().getTime()); assertEquals(1122812969000L, entry1.getUpdatedDate().getTime()); metadataStore.destroy(); metadataStore.afterPropertiesSet(); feedEntrySource = new FeedEntryMessageSource(url, "foo", this.feedFetcher); feedEntrySource.setBeanName("feedReader"); metadataStore = new PropertiesPersistingMetadataStore(); metadataStore.afterPropertiesSet(); feedEntrySource.setMetadataStore(metadataStore); feedEntrySource.setBeanFactory(mock(BeanFactory.class)); feedEntrySource.afterPropertiesSet(); assertNull(feedEntrySource.receive()); }
Source:
<code>public IImsRegistration getRegistration() { return <START> getTelephonyManager(mContext).getImsRegistration(mSlotId, <END> ImsFeature.MMTEL); }</code><technical_language>null check needed? (if ims service dies)</technical_language>

Target:
public @Nullable IImsRegistration getRegistration() { TelephonyManager tm = getTelephonyManager(mContext); return tm != null ? tm.getImsRegistration(mSlotId, ImsFeature.MMTEL) : null; }
Source:
<code>private void initializeCategories(int variableIndex, SPSSVariable variable, ValueType valueType, Variable.Builder builder) throws SpssInvalidCharacterException { if(variable.categoryMap != null) { for(String category : variable.categoryMap.keySet()) { Value categoryName = new SpssCategoryNameValueFactory(category, variableIndex, variable, valueType).create(); SPSSVariableCategory spssCategory = variable.categoryMap.get(category); validate(spssCategory.label); builder.addCategory(Category.Builder.newCategory(categoryName.getValue().toString()).addAttribute( <START> Attribute.Builder.newAttribute("label").withValue(spssCategory.label).withLocale(new Locale(locale)) <END> .build()).missing(isCategoryValueMissingCode(variable, spssCategory)).build()); } } }</code><technical_language>Locale null</technical_language>

Target:
private void initializeCategories(int variableIndex, SPSSVariable variable, ValueType valueType, Variable.Builder builder) throws SpssInvalidCharacterException { if(variable.categoryMap != null) { for(String category : variable.categoryMap.keySet()) { Value categoryName = new SpssCategoryNameValueFactory(category, variableIndex, variable, valueType).create(); SPSSVariableCategory spssCategory = variable.categoryMap.get(category); validate(spssCategory.label); builder.addCategory(Category.Builder.newCategory(categoryName.getValue().toString()) .addAttribute(addLabelAttribute(spssCategory.label)) .missing(isCategoryValueMissingCode(variable, spssCategory)).build()); } } }
Source:
<code>private ResponseEntity postEventInternal(final String eventTypeName, final String eventsAsString, final NativeWebRequest nativeWebRequest, final EventTypeMetrics eventTypeMetrics, final Client client) throws AccessDeniedException, ServiceTemporarilyUnavailableException, InternalNakadiException, EventTypeTimeoutException, NoSuchEventTypeException { final long startingNanos = System.nanoTime(); try { final EventPublishResult result = publisher.publish(eventsAsString, eventTypeName); final int eventCount = result.getResponses().size(); final int totalSizeBytes = eventsAsString.getBytes(Charsets.UTF_8).length; reportMetrics(eventTypeMetrics, result, totalSizeBytes, eventCount); reportSLOs(startingNanos, totalSizeBytes, eventCount, result, eventTypeName, client); return response(result); <START> } catch (final JSONException e) { <END> LOG.debug("Problem parsing event", e); throw e; } catch (final NoSuchEventTypeException e) { LOG.debug("Event type not found.", e.getMessage()); throw e; } catch (final EventTypeTimeoutException e) { LOG.debug("Failed to publish batch", e); throw e; } finally { eventTypeMetrics.updateTiming(startingNanos, System.nanoTime()); } }</code><technical_language>I catch blocks for logging purposes, do logging in top level controller, do remove them</technical_language>

Target:
private ResponseEntity postEventInternal(final String eventTypeName, final String eventsAsString, final NativeWebRequest nativeWebRequest, final EventTypeMetrics eventTypeMetrics, final Client client) throws AccessDeniedException, ServiceTemporarilyUnavailableException, InternalNakadiException, EventTypeTimeoutException, NoSuchEventTypeException { final long startingNanos = System.nanoTime(); try { final EventPublishResult result = publisher.publish(eventsAsString, eventTypeName); final int eventCount = result.getResponses().size(); final int totalSizeBytes = eventsAsString.getBytes(Charsets.UTF_8).length; reportMetrics(eventTypeMetrics, result, totalSizeBytes, eventCount); reportSLOs(startingNanos, totalSizeBytes, eventCount, result, eventTypeName, client); return response(result); } finally { eventTypeMetrics.updateTiming(startingNanos, System.nanoTime()); } }
Source:
<code>public Drawable getDrawable(Context context) { final PackageManager packageManager = context.getPackageManager(); Resources resources; try { <START> if (shortcutPojo.icon != null) { <END> return new BitmapDrawable(shortcutPojo.icon); } resources = packageManager.getResourcesForApplication(shortcutPojo.packageName); final int id = resources.getIdentifier(shortcutPojo.resourceName, null, null); return resources.getDrawable(id); } catch (NameNotFoundException e) { } return null; }</code><technical_language>try this try catch, instance packagemanager</technical_language>

Target:
public Drawable getDrawable(Context context) { final PackageManager packageManager = context.getPackageManager(); Resources resources; if (shortcutPojo.icon != null) { return new BitmapDrawable(shortcutPojo.icon); } try { resources = packageManager.getResourcesForApplication(shortcutPojo.packageName); final int id = resources.getIdentifier(shortcutPojo.resourceName, null, null); return resources.getDrawable(id); } catch (NameNotFoundException e) { } return null; }
Source:
<code>public Map<String, String> getCustomValues() { if(getParameters().getVolumeOption() != null) { addCustomValue(GlusterConstants.OPTION_KEY, getParameters().getVolumeOption().getKey()); <START> addCustomValue(GlusterConstants.OPTION_VALUE, getParameters().getVolumeOption().getValue()); <END> } return super.getCustomValues(); }</code><technical_language>null ResetGlusterVolumeOptions is called REST api. get expected audit log in this case. Please checkout this flow</technical_language>

Target:
public Map<String, String> getCustomValues() { if(getParameters().getVolumeOption() != null) { addCustomValue(GlusterConstants.OPTION_KEY, getParameters().getVolumeOption().getKey()); if(getParameters().getVolumeOption().getValue() != null) { addCustomValue(GlusterConstants.OPTION_VALUE, getParameters().getVolumeOption().getValue()); } else { addCustomValue(GlusterConstants.OPTION_VALUE, ""); } } return super.getCustomValues(); }
Source:
<code>protected byte[] fetchBinaryContent(String url, IProgressMonitor monitor) throws GerritException { final TypeToken<Byte[]> byteArrayType = new TypeToken<Byte[]>() { }; <START> byte[] bin = restClient.executeGetRestRequestBinary("/cat/" + url, byteArrayType.getType(), monitor); END> if (isZippedContent(bin)) { return unzip(bin); } else { return bin; } }</code><technical_language>infer this Type parameter somehow, introducing a new method</technical_language>

Target:
protected byte[] fetchBinaryContent(String url, IProgressMonitor monitor) throws GerritException { final TypeToken<Byte[]> byteArrayType = new TypeToken<Byte[]>() { }; byte[] bin = restClient.executeGetRestRequest("/cat/" + url, byteArrayType.getType(), monitor); if (isZippedContent(bin)) { return unzip(bin); } else { return bin; } }
Source:
<code>public DnsZoneImpl withETagCheck() { <START> this.eTagState.withImplicitETagCheckOnCreate(); this.eTagState.withImplicitETagCheckOnUpdate(); <END> return this; }</code><technical_language>set both? affect line 413 call create update</technical_language>

Target:
public DnsZoneImpl withETagCheck() { this.eTagState.withImplicitETagCheckOnCreateOrUpdate(this.isInCreateMode()); return this; }
Source:
<code>public boolean isValid() { <START> try { <END> return accessMethod.getConnection().isValid(1); } catch (SQLException e) { LOGGER.warn("Error checking connection validity", e); return false; } }</code><technical_language>check if this is called anywhere</technical_language>

Target:
public boolean isValid() { try { return accessMethod.getConnection().isValid(1); } catch (SQLException e) { LOGGER.debug("Error checking connection validity", e); return false; } }
Source:
<code>public static Set<String> normalizedLinuxClassifiers() { <START> return Collections.unmodifiableSet(LINUX_OS_CLASSIFIERS); <END> }</code><technical_language>create this in static method return instance time</technical_language>

Target:
public static Set<String> normalizedLinuxClassifiers() { return LINUX_OS_CLASSIFIERS; }
Source:
<code>public void assertConstructor() { TestSimpleJob testSimpleJob = new TestSimpleJob(); taskExecutor = new TaskExecutor(testSimpleJob); Field fieldElasticJob = TaskExecutor.class.getDeclaredField("elasticJob"); fieldElasticJob.setAccessible(true); Field fieldElasticJobType = TaskExecutor.class.getDeclaredField("elasticJobType"); fieldElasticJobType.setAccessible(true); assertTrue(fieldElasticJob.get(taskExecutor) == testSimpleJob); assertNull(fieldElasticJobType.get(taskExecutor)); taskExecutor = new TaskExecutor("simpleJob"); <START> assertEquals("simpleJob", fieldElasticJobType.get(taskExecutor)); <END> assertNull(fieldElasticJob.get(taskExecutor)); }</code><technical_language>Please assertThat instead of assertEquals</technical_language>

Target:
public void assertConstructor() { TestSimpleJob testSimpleJob = new TestSimpleJob(); taskExecutor = new TaskExecutor(testSimpleJob); Field fieldElasticJob = TaskExecutor.class.getDeclaredField("elasticJob"); fieldElasticJob.setAccessible(true); Field fieldElasticJobType = TaskExecutor.class.getDeclaredField("elasticJobType"); fieldElasticJobType.setAccessible(true); assertTrue(fieldElasticJob.get(taskExecutor) == testSimpleJob); assertNull(fieldElasticJobType.get(taskExecutor)); taskExecutor = new TaskExecutor("simpleJob"); assertThat(fieldElasticJobType.get(taskExecutor), is("simpleJob")); assertNull(fieldElasticJob.get(taskExecutor)); }
Source:
<code>public CSVToJSONDataConverter(Configuration config) { <START> this.logger = Logging.getLogger(getClass()); <END> fieldNames = config.readList(FIELDS_KEY, String.class); delimiter = config.readString(DELIMITER_KEY, ","); jsonProducer = ProcessingUtilsFactory.getPrinter(config); }</code><technical_language>unnecessary</technical_language>

Target:
public CSVToJSONDataConverter(Configuration config) { fieldNames = config.readList(FIELDS_KEY, String.class); delimiter = config.readString(DELIMITER_KEY, ","); jsonProducer = ProcessingUtilsFactory.getPrinter(config); }
Source:
<code><START> public GetDeviceListQueryParameters(Guid vdsId, StorageType storageType, boolean checkStatus, List<String> lunIds) { this(vdsId, storageType, checkStatus, lunIds, false); } <END></code><technical_language>no! need stop polluting code overloaded ctors. a handful of callers - explicitly add new false argument of them</technical_language>

Target:
public GetDeviceListQueryParameters(Guid vdsId, StorageType storageType, boolean checkStatus, List<String> lunIds) { super(vdsId); setStorageType(storageType); setCheckStatus(checkStatus); setLunIds(lunIds); }
Source:
<code>public void update(int targetIdx) { if (this.targetIdx == targetIdx) { return; } if (logger.isDebugEnabled()) { <START> long ssrc = weakSource.get().getRTPEncodings()[0].getPrimarySSRC(); <END> logger.debug("target_update ssrc=" + ssrc + ",target=" + targetIdx); } this.targetIdx = targetIdx; if (targetIdx < 0) { transformState = dropState; } else { MediaStreamTrackDesc sourceTrack = weakSource.get(); if (sourceTrack == null) { return; } ((RTPTranslatorImpl) sourceTrack.getMediaStreamTrackReceiver() .getStream().getRTPTranslator()) .getRtcpFeedbackMessageSender().sendFIR((int) targetSSRC); } }</code><technical_language>I a potential NPE</technical_language>

Target:
public void update(int targetIdx) { if (this.targetIdx == targetIdx) { return; } if (logger.isInfoEnabled()) { MediaStreamTrackDesc sourceTrack = weakSource.get(); if (sourceTrack != null) { RTPEncodingDesc[] sourceEncodings = sourceTrack.getRTPEncodings(); if (!ArrayUtils.isNullOrEmpty(sourceEncodings)) { long ssrc = sourceEncodings[0].getPrimarySSRC(); logger.info("target_update ssrc=" + ssrc + ",new_target=" + targetIdx + ",old_target=" + this.targetIdx); } } } this.targetIdx = targetIdx; if (targetIdx < 0) { transformState = dropState; } else { MediaStreamTrackDesc sourceTrack = weakSource.get(); if (sourceTrack == null) { return; } ((RTPTranslatorImpl) sourceTrack.getMediaStreamTrackReceiver() .getStream().getRTPTranslator()) .getRtcpFeedbackMessageSender().sendFIR((int) targetSSRC); } }
Source:
<code>public void should_not_include_ECOM_BILLTO_POSTAL_STREET_LINE1_if_address_line1_not_provided() { authCardDetails.setAddress(address); List<NameValuePair> result = epdqPayloadDefinitionFor3ds2NewOrder.extract(epdqTemplateData); <START> assertThat(result, not(hasItem(new BasicNameValuePair(EpdqPayloadDefinitionForNew3ds2Order.ECOM_BILLTO_POSTAL_STREET_LINE1, "The Money Pool")))); <END> }</code><technical_language>I want assert value</technical_language>

Target:
public void should_not_include_ECOM_BILLTO_POSTAL_STREET_LINE1_if_address_line1_not_provided() { authCardDetails.setAddress(address); List<NameValuePair> result = epdqPayloadDefinitionFor3ds2NewOrder.extract(epdqTemplateData); assertThat(result, not(containsNameValuePairWithName(EpdqPayloadDefinitionForNew3ds2Order.ECOM_BILLTO_POSTAL_STREET_LINE1))); }
Source:
<code><START> public synchronized void resume() { <END> m_isPaused = false; }</code><technical_language>This need synchronized, right</technical_language>

Target:
public void resume() { m_isPaused = false; }
Source:
<code>public static boolean removeRejoinNodeIndicator(ZooKeeper zk, String node) { try { <START> ZKUtil.deleteRecursively(zk, node); <END> } catch (KeeperException e) { if (e.code() != KeeperException.Code.NONODE) { return false; } } catch (InterruptedException e) { return false; } return true; }</code><technical_language>this straight delete</technical_language>

Target:
public static boolean removeRejoinNodeIndicator(ZooKeeper zk, String node) { try { zk.delete(node, -1); } catch (KeeperException e) { if (e.code() != KeeperException.Code.NONODE) { return false; } } catch (InterruptedException e) { return false; } return true; }
Source:
<code>public void createContract(DataWord value, DataWord memStart, DataWord memSize) { returnDataBuffer = null; byte[] senderAddress = this.getOwnerAddress().getLast20Bytes(); BigInteger endowment = value.value(); if (!verifyCall(senderAddress, endowment)) <START> return;; <END> byte[] nonce = getStorage().getNonce(senderAddress).toByteArray(); byte[] contractAddress = HashUtil.calcNewAddr(senderAddress, nonce); byte[] programCode = memoryChunk(memStart.intValue(), memSize.intValue()); createContractImpl(value, programCode, contractAddress); }</code><technical_language>Double ;</technical_language>

Target:
public void createContract(DataWord value, DataWord memStart, DataWord memSize) { returnDataBuffer = null; byte[] senderAddress = this.getOwnerAddress().getLast20Bytes(); BigInteger endowment = value.value(); if (!verifyCall(senderAddress, endowment)) return; byte[] nonce = getStorage().getNonce(senderAddress).toByteArray(); byte[] contractAddress = HashUtil.calcNewAddr(senderAddress, nonce); byte[] programCode = memoryChunk(memStart.intValue(), memSize.intValue()); createContractImpl(value, programCode, contractAddress); }
Source:
<code>private void updateExpirationTime(long update) { do { long current = this.expirationTime; if (current >= update) { break; } if (EXPIRATIONTIME_UPDATER.compareAndSet(this, current, update)) { break; } <START> } while (true); <END> }</code><technical_language>condition, I in favour of a while(true) loop benefit of indicating special</technical_language>

Target:
private void updateExpirationTime(long update) { while (true) { long current = this.expirationTime; if (current >= update) { break; } if (EXPIRATIONTIME_UPDATER.compareAndSet(this, current, update)) { break; } }; }
Source:
<code>protected void executeCommand() { ManagedBlockStorage managedBlockStorage = cinderStorageDao.get(getParameters().getStorageDomainId()); Guid volumeId = Guid.newGuid(); List<String> extraParams = new ArrayList<>(); extraParams.add(volumeId.toString()); Number sizeInGiB = SizeConverter.convert(getParameters().getDiskInfo().getSize(), SizeConverter.SizeUnit.BYTES, SizeConverter.SizeUnit.GiB); extraParams.add(Long.toString(sizeInGiB.longValue())); CinderlibReturnValue returnValue; try { CinderlibCommandParameters params = new CinderlibCommandParameters(JsonHelper.mapToJson( <START> createDriverOptions(managedBlockStorage.getDriverOptions(), managedBlockStorage.getDriverSensitiveOptions()), <END> false), extraParams); returnValue = cinderlibExecutor.runCommand(CinderlibCommand.CREATE_VOLUME, params); } catch (Exception e) { log.error("Failed executing volume creation", e); return; } if (!returnValue.getSucceed()) { return; } saveDisk(volumeId); getReturnValue().setActionReturnValue(volumeId); setSucceeded(true); }</code><technical_language>Another idea: add a method getAllDriversOptions() ManagedBlockStorage move implementation there: getAllDriversOptions(){ Map<String, Object> allDriverOptions = new HashMap<>(driverOptions); if (driverSensitiveOptions != null) { driverOptions.putAll(driverSensitiveOptions); } return allDriverOptions; }</technical_language>

Target:
protected void executeCommand() { ManagedBlockStorage managedBlockStorage = cinderStorageDao.get(getParameters().getStorageDomainId()); Guid volumeId = Guid.newGuid(); List<String> extraParams = new ArrayList<>(); extraParams.add(volumeId.toString()); Number sizeInGiB = SizeConverter.convert(getParameters().getDiskInfo().getSize(), SizeConverter.SizeUnit.BYTES, SizeConverter.SizeUnit.GiB); extraParams.add(Long.toString(sizeInGiB.longValue())); CinderlibReturnValue returnValue; try { CinderlibCommandParameters params = new CinderlibCommandParameters(JsonHelper.mapToJson( managedBlockStorage.getAllDriverOptions(), false), extraParams); returnValue = cinderlibExecutor.runCommand(CinderlibCommand.CREATE_VOLUME, params); } catch (Exception e) { log.error("Failed executing volume creation", e); return; } if (!returnValue.getSucceed()) { return; } saveDisk(volumeId); getReturnValue().setActionReturnValue(volumeId); setSucceeded(true); }
Source:
<code>public static BlobData deserializeBlobRecord(CrcInputStream crcStream) throws IOException, MessageFormatException { DataInputStream dataStream = new DataInputStream(crcStream); long dataSize = dataStream.readLong(); if (dataSize > Integer.MAX_VALUE) { throw new IOException("We only support data of max size == MAX_INT. Error while reading blob from store"); } <START> ByteBufferInputStream output = getByteBufferInputStreamForBlobRecord(crcStream, (int) dataSize); <END> long crc = crcStream.getValue(); long streamCrc = dataStream.readLong(); if (crc != streamCrc) { logger.error("corrupt data while parsing blob content expectedcrc actualcrc {}", crc, streamCrc); throw new MessageFormatException("corrupt data while parsing blob content", MessageFormatErrorCodes.Data_Corrupt); } return new BlobData(BlobType.DataBlob, dataSize, output); }</code><technical_language>cast dataSize int? long</technical_language>

Target:
public static BlobData deserializeBlobRecord(CrcInputStream crcStream) throws IOException, MessageFormatException { DataInputStream dataStream = new DataInputStream(crcStream); long dataSize = dataStream.readLong(); if (dataSize > Integer.MAX_VALUE) { throw new IOException("We only support data of max size == MAX_INT. Error while reading blob from store"); } ByteBufferInputStream output = getByteBufferInputStreamForBlobRecord(crcStream, dataSize); long crc = crcStream.getValue(); long streamCrc = dataStream.readLong(); if (crc != streamCrc) { logger.error("corrupt data while parsing blob content expectedcrc actualcrc {}", crc, streamCrc); throw new MessageFormatException("corrupt data while parsing blob content", MessageFormatErrorCodes.Data_Corrupt); } return new BlobData(BlobType.DataBlob, dataSize, output); }
Source:
<code>protected void onAnimationEnd() { final double newZoom = mMapView.mTargetZoomLevel.get(); final Projection newProjection = mMapView.getProjection().getOffspring( newZoom, mMapView.getProjection().getScreenRect()); <START> final IGeoPoint newCenter = newProjection.fromPixels( <END> Math.round(mMapView.mMultiTouchScalePoint.x), Math.round(mMapView.mMultiTouchScalePoint.y)); mMapView.mIsAnimating.set(false); setCenter(newCenter); setZoom(newZoom); mMapView.mMultiTouchScale = 1f; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { mCurrentAnimator = null; } if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) { mMapView.clearAnimation(); mZoomInAnimationOld.reset(); mZoomOutAnimationOld.reset(); } }</code><technical_language>possibly related open issue. wrong this, leaving a note this in future</technical_language>

Target:
protected void onAnimationEnd() { final GeoPoint currentCenter = mMapView.getProjection().getCurrentCenter(); final double newZoom = mMapView.mTargetZoomLevel.get(); mMapView.mIsAnimating.set(false); setZoom(newZoom); mMapView.setCenter(currentCenter); mMapView.mMultiTouchScale = 1f; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { mCurrentAnimator = null; } if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.GINGERBREAD_MR1) { mMapView.clearAnimation(); mZoomInAnimationOld.reset(); mZoomOutAnimationOld.reset(); } }
Source:
<code>public void writeSiteinfo(Siteinfo info) throws IOException { XmlWriter writer = this.writer; writer.openElement("siteinfo"); writer.textElement("sitename", info.Sitename); <START> writer.textElement("dbname", info.Dbname); <END> writer.textElement("base", info.Base); writer.textElement("generator", info.Generator); writer.textElement("case", info.Case); writer.openElement("namespaces"); for (Iterator<Map.Entry<Integer, Namespace>> i = info.Namespaces.orderedEntries(); i.hasNext();) { Map.Entry<Integer, Namespace> e = i.next(); ArrayList<String[]> textAttribs = new ArrayList<String[]>(); textAttribs.add(new String[] {"key", e.getKey().toString()}); if (e.getValue().Case != null) { textAttribs.add(new String[] {"case", e.getValue().Case}); } writer.textElement("namespace", e.getValue().Prefix, textAttribs.toArray(new String[][] {}) ); } writer.closeElement(); writer.closeElement(); }</code><technical_language>If dbname is available, this try write anyway</technical_language>

Target:
public void writeSiteinfo(Siteinfo info) throws IOException { XmlWriter writer = this.writer; writer.openElement("siteinfo"); writer.textElement("sitename", info.Sitename); if (info.Dbname != null) { writer.textElement("dbname", info.Dbname); } writer.textElement("base", info.Base); writer.textElement("generator", info.Generator); writer.textElement("case", info.Case); writer.openElement("namespaces"); for (Iterator<Map.Entry<Integer, Namespace>> i = info.Namespaces.orderedEntries(); i.hasNext();) { Map.Entry<Integer, Namespace> e = i.next(); ArrayList<String[]> textAttribs = new ArrayList<String[]>(); textAttribs.add(new String[] {"key", e.getKey().toString()}); if (e.getValue().Case != null) { textAttribs.add(new String[] {"case", e.getValue().Case}); } writer.textElement("namespace", e.getValue().Prefix, textAttribs.toArray(new String[][] {}) ); } writer.closeElement(); writer.closeElement(); }
Source:
<code>public void testClearRecordList() { long record = 1; long record2 = 2; long record3 = 3; List<Long> recordsList = new ArrayList<Long>(); recordsList.add(record); recordsList.add(record2); client.add("a", 1, record); client.add("a", 2, record); client.add("a", 3, record); client.add("b", 1, record); client.add("b", 2, record); client.add("b", 3, record); client.add("c", 1, record2); client.add("c", 2, record2); client.add("c", 3, record2); client.add("d", 1, record3); client.add("d", 2, record3); client.add("d", 3, record3); client.clear(recordsList); <START> Assert.assertEquals(client.browse(record), client.browse(record2)); <END> Assert.assertFalse(client.browse(record3).isEmpty()); }</code><technical_language>While this is technically valid, prefer verify this Assert.assertTrue(client.browse(record).isEmpty()); Assert.assertTrue(client.browse(record2).isEmpty(); consistent next statement is easier for reading test understand</technical_language>

Target:
public void testClearRecordList() { long record = 1; long record2 = 2; long record3 = 3; List<Long> recordsList = new ArrayList<Long>(); recordsList.add(record); recordsList.add(record2); client.add("a", 1, record); client.add("a", 2, record); client.add("a", 3, record); client.add("b", 1, record); client.add("b", 2, record); client.add("b", 3, record); client.add("c", 1, record2); client.add("c", 2, record2); client.add("c", 3, record2); client.add("d", 1, record3); client.add("d", 2, record3); client.add("d", 3, record3); client.clear(recordsList); Assert.assertEquals(client.browse(record).isEmpty(), client.browse(record2).isEmpty()); Assert.assertFalse(client.browse(record3).isEmpty()); }
Source:
<code>public List<Notification> getNotifications(boolean archived) { CustomApiResult notificationNode = null; try { if (archived) { notificationNode = api.action("query") .param("notprop", "list") .param("format", "xml") .param("meta", "notifications") .param("notformat", "model") .param("notwikis", "wikidatawiki|commonswiki|enwiki") <START> .param("notfilter", "read") <END> .get() .getNode("/api/query/notifications/list"); }else { notificationNode = api.action("query") .param("notprop", "list") .param("format", "xml") .param("meta", "notifications") .param("notformat", "model") .param("notwikis", "wikidatawiki|commonswiki|enwiki") .param("notfilter", "!read") .get() .getNode("/api/query/notifications/list"); } } catch (IOException e) { Timber.e(e, "Failed to obtain searchCategories"); } if (notificationNode == null || notificationNode.getDocument() == null || notificationNode.getDocument().getChildNodes() == null || notificationNode.getDocument().getChildNodes().getLength() == 0) { return new ArrayList<>(); } NodeList childNodes = notificationNode.getDocument().getChildNodes(); return NotificationUtils.getNotificationsFromList(context, childNodes); }</code><technical_language>this filter needs changed. need block if</technical_language>

Target:
public List<Notification> getNotifications(boolean archived) { CustomApiResult notificationNode = null; String notfilter; try { if (archived) { notfilter = "read"; }else { notfilter = "!read"; } notificationNode = api.action("query") .param("notprop", "list") .param("format", "xml") .param("meta", "notifications") .param("notformat", "model") .param("notwikis", "wikidatawiki|commonswiki|enwiki") .param("notfilter", notfilter) .get() .getNode("/api/query/notifications/list"); } catch (IOException e) { Timber.e(e, "Failed to obtain searchCategories"); } if (notificationNode == null || notificationNode.getDocument() == null || notificationNode.getDocument().getChildNodes() == null || notificationNode.getDocument().getChildNodes().getLength() == 0) { return new ArrayList<>(); } NodeList childNodes = notificationNode.getDocument().getChildNodes(); return NotificationUtils.getNotificationsFromList(context, childNodes); }
Source:
<code>public Mono<StoreResponse> invokeStoreAsync(final Uri addressUri, final RxDocumentServiceRequest request) { logger.debug("RntbdTransportClient.invokeStoreAsync({}, {})", addressUri, request); checkNotNull(addressUri, "expected non-null address"); checkNotNull(request, "expected non-null request"); this.throwIfClosed(); URI address = addressUri.getURI(); final RntbdRequestArgs requestArgs = new RntbdRequestArgs(request, address); requestArgs.traceOperation(logger, null, "invokeStoreAsync"); final RntbdEndpoint endpoint = this.endpointProvider.get(address); final RntbdRequestRecord record = endpoint.request(requestArgs); logger.debug("RntbdTransportClient.invokeStoreAsync({}, {}): {}", address, request, record); return Mono.fromFuture(record.whenComplete((response, throwable) -> { record.stage(RntbdRequestRecord.Stage.COMPLETED); if (throwable == null) { response.setRequestTimeline(record.takeTimelineSnapshot()); } else { checkArgument(throwable instanceof CosmosClientException, "expected %s, not %s: %s", CosmosClientException.class, throwable.getClass(), throwable); CosmosClientException error = (CosmosClientException) throwable; <START> error.setRequestTimeline(record.takeTimelineSnapshot()); <END> } })); }</code><technical_language>record cancellation triggered reactor-stream now</technical_language>

Target:
public Mono<StoreResponse> invokeStoreAsync(final Uri addressUri, final RxDocumentServiceRequest request) { logger.debug("RntbdTransportClient.invokeStoreAsync({}, {})", addressUri, request); checkNotNull(addressUri, "expected non-null address"); checkNotNull(request, "expected non-null request"); this.throwIfClosed(); URI address = addressUri.getURI(); final RntbdRequestArgs requestArgs = new RntbdRequestArgs(request, address); requestArgs.traceOperation(logger, null, "invokeStoreAsync"); final RntbdEndpoint endpoint = this.endpointProvider.get(address); final RntbdRequestRecord record = endpoint.request(requestArgs); logger.debug("RntbdTransportClient.invokeStoreAsync({}, {}): {}", address, request, record); return Mono.fromFuture(record.whenComplete((response, throwable) -> { record.stage(RntbdRequestRecord.Stage.COMPLETED); if (throwable == null) { response.setRequestTimeline(record.takeTimelineSnapshot()); } else if (throwable instanceof CosmosClientException) { CosmosClientException error = (CosmosClientException) throwable; BridgeInternal.setRequestTimeline(error, record.takeTimelineSnapshot()); } })).doOnCancel(() -> { record.cancel(true); }); }
Source:
<code>private MongoDbOutboundGatewaySpec queryExpressionOutboundGateway(boolean expectSingleResult, int maxResults) { return MongoDb.outboundGateway(mongoDbFactory()) .queryExpression("payload.query") .collectionNameExpression(new LiteralExpression(TEST_COLLECTION)) .expectSingleResult(expectSingleResult) .entityClass(PersonDomain.class) <START> .maxResults(maxResults); <END> }</code><technical_language>introduce BasicQuery support for query-expression (as separate .query(Query) option for DSL), need this maxResults() more</technical_language>

Target:
private MongoDbOutboundGatewaySpec queryExpressionOutboundGateway(boolean expectSingleResult, int maxResults) { return MongoDb.outboundGateway(mongoDbFactory(), mongoConverter()) .queryExpression("new BasicQuery('{''address.state'' : ''PA''}').limit(" + maxResults + ")") .collectionName(COLLECTION_NAME) .expectSingleResult(expectSingleResult) .entityClass(Person.class); }
Source:
<code>public String toString() { if (NativeLong.SIZE > 4) { return String.format("NativeLong@0x%x=0x%x (%d)", Pointer.nativeValue(getPointer()), getValue().longValue(), getValue().longValue()); } else { return String.format("NativeLong@0x%x=0x%x (%d)", Pointer.nativeValue(getPointer()), getValue().intValue(), getValue().intValue()); <START> } <END> }</code><technical_language>ByteByReference.java</technical_language>

Target:
public String toString() { if (NativeLong.SIZE > 4) { return String.format("NativeLong@0x1$%x=0x%2$x (%2$d)", Pointer.nativeValue(getPointer()), getValue().longValue()); } else { return String.format("NativeLong@0x1$%x=0x%2$x (%2$d)", Pointer.nativeValue(getPointer()), getValue().intValue()); } }
Source:
<code>public String getCategoryId() { <START> return "nested-projects"; <END> }</code><technical_language>bug: surely meant delegate.getCategoryId()</technical_language>

Target:
public String getCategoryId() { return delegate.getCategoryId(); }
Source:
<code>private DropoutLayer(@Parameter(LayerIndex.class) final int index, @Parameter(LayerInputShape.class) final String inputShape, @Parameter(DropoutRatio.class) final float dropoutRatio, final MatrixFactory matrixFactory) { super(index, inputShape); this.dropoutRatio = dropoutRatio; this.matrixFactory = matrixFactory; <START> if (getInputShape().length == 2) { <END> this.inputHeight = getInputShape()[0]; this.inputWidth = getInputShape()[1]; } else { this.inputHeight = getInputShape()[1]; this.inputWidth = getInputShape()[2]; } }</code><technical_language>preceding layer of dropout layer is fully connected layer, output shape of length 1. Please refer FullyConnectedLayerParameterInitializer</technical_language>

Target:
private DropoutLayer(@Parameter(LayerIndex.class) final int index, @Parameter(LayerInputShape.class) final String inputShape, @Parameter(DropoutRatio.class) final float dropoutRatio, final MatrixFactory matrixFactory) { super(index, inputShape); this.dropoutRatio = dropoutRatio; this.matrixFactory = matrixFactory; }
Source:
<code>public void bindFeedback(Feedback feedback) { String comment = Utils.checkStringEmpty(feedback.getComment()); User user = feedback.getUser(); <START> if(user != null){ <END> String avatarUrl = user.getAvatarUrl(); if(user.getFirstName() != null) setStringFieldWithPrefix(userName, user.getFirstName(), null); if(avatarUrl != null) { StrategyRegistry.getInstance() .getHttpStrategy() .getPicassoWithCache() .load(avatarUrl) .transform(new CircleTransform()) .into(avatar); } } feedbackRating.setRating(feedback.getRating()); setStringFieldWithPrefix(feedbackComment, comment, null); }</code><technical_language>Space ()</technical_language>

Target:
public void bindFeedback(Feedback feedback) { String comment = feedback.getComment(); User user = feedback.getUser(); if (user != null) { String avatarUrl = user.getAvatarUrl(); if (user.getFirstName() != null) setStringFieldWithPrefix(userName, user.getFirstName(), null); if (avatarUrl != null) { StrategyRegistry.getInstance() .getHttpStrategy() .getPicassoWithCache() .load(avatarUrl) .transform(new CircleTransform()) .into(avatar); } } float rating = Float.parseFloat(feedback.getRating()); feedbackRating.setRating(rating); setStringFieldWithPrefix(feedbackComment, comment, null); }
Source:
<code>private Table(Database database, UdbTable udbTable, @Nullable Table previousTable) { mDatabase = database; mVersion = previousTable == null ? FIRST_VERSION : previousTable.mVersion + 1; mPreviousVersion = previousTable == null ? UNDEFINED_VERSION : previousTable.mVersion; mVersionCreationTime = CommonUtils.getCurrentMs(); mName = udbTable.getName(); mSchema = udbTable.getSchema(); mOwner = udbTable.getOwner(); mStatistics = udbTable.getStatistics(); mParameters = new HashMap<>(udbTable.getParameters()); List<Partition> partitions = new ArrayList<>(udbTable.getPartitions().size()); if (previousTable != null) { Map<String, Partition> existingPartitions = previousTable.mPartitionScheme.getPartitions().stream() .collect(Collectors.toMap(Partition::getSpec, Function.identity())); for (UdbPartition udbPartition : udbTable.getPartitions()) { Partition newPartition = existingPartitions.get(udbPartition.getSpec()); if (newPartition == null) { newPartition = new Partition(udbPartition); <START> } else if (!newPartition.getLayout().equals(udbPartition.getLayout())) { <END> newPartition = newPartition.createNext(udbPartition); } partitions.add(newPartition); } } else { partitions = udbTable.getPartitions().stream().map(Partition::new).collect(Collectors.toList()); } mPartitionScheme = PartitionScheme.create(partitions, udbTable.getLayout(), udbTable.getPartitionCols()); }</code><technical_language>this condition succeed is a transformation, getLayout return transformed layout. is intended</technical_language>

Target:
private Table(Database database, UdbTable udbTable, @Nullable Table previousTable) { mDatabase = database; mVersion = previousTable == null ? FIRST_VERSION : previousTable.mVersion + 1; mPreviousVersion = previousTable == null ? UNDEFINED_VERSION : previousTable.mVersion; mVersionCreationTime = CommonUtils.getCurrentMs(); mName = udbTable.getName(); mSchema = udbTable.getSchema(); mOwner = udbTable.getOwner(); mStatistics = udbTable.getStatistics(); mParameters = new HashMap<>(udbTable.getParameters()); List<Partition> partitions = new ArrayList<>(udbTable.getPartitions().size()); if (previousTable != null) { Map<String, Partition> existingPartitions = previousTable.mPartitionScheme.getPartitions().stream() .collect(Collectors.toMap(Partition::getSpec, Function.identity())); for (UdbPartition udbPartition : udbTable.getPartitions()) { Partition newPartition = existingPartitions.get(udbPartition.getSpec()); if (newPartition == null) { newPartition = new Partition(udbPartition); } else if (!newPartition.getBaseLayout().equals(udbPartition.getLayout())) { newPartition = newPartition.createNext(udbPartition); } partitions.add(newPartition); } } else { partitions = udbTable.getPartitions().stream().map(Partition::new).collect(Collectors.toList()); } mPartitionScheme = PartitionScheme.create(partitions, udbTable.getLayout(), udbTable.getPartitionCols()); }
Source:
<code>void queueClientWithViaQueueName() { <START> final ServiceBusSenderAsyncClient client = new ServiceBusClientBuilder() <END> .connectionString(NAMESPACE_CONNECTION_STRING) .sender() .queueName(QUEUE_NAME) .viaQueueName(VIA_QUEUE_NAME) .buildAsyncClient(); assertNotNull(client); }</code><technical_language>This split. // Arrange is builder is created. // Act is do var client = builder.buildAsyncClient()</technical_language>

Target:
void queueClientWithViaQueueName() { final ServiceBusSenderClientBuilder builder = new ServiceBusClientBuilder() .connectionString(NAMESPACE_CONNECTION_STRING) .sender() .queueName(QUEUE_NAME) .viaQueueName(VIA_QUEUE_NAME); final ServiceBusSenderAsyncClient client = builder.buildAsyncClient(); assertNotNull(client); }
Source:
<code>public static Object percent1( ValueMetaInterface metaA, Object dataA, ValueMetaInterface metaB, Object dataB ) throws KettleValueException { if ( dataA == null || dataB == null ) { return null; } switch ( metaA.getType() ) { case ValueMetaInterface.TYPE_NUMBER: return divideDoubles( multiplyDoubles( 100.0D, metaA.getNumber( dataA ) ), metaB.getNumber( dataB ) ); case ValueMetaInterface.TYPE_INTEGER: return divideLongs( multiplyLongs( 100L, metaA.getInteger( dataA ) ), metaB.getInteger( dataB ) ); case ValueMetaInterface.TYPE_BIGNUMBER: return divideBigDecimals( multiplyBigDecimals( metaA.getBigNumber( dataA ), new BigDecimal( 100 ), null ), metaB <START> .getBigNumber( dataB ) ); <END> default: throw new KettleValueException( "The 'A/B in %' function only works on numeric data" ); } }</code><technical_language>Need put this - change API</technical_language>

Target:
public static Object percent1( ValueMetaInterface metaA, Object dataA, ValueMetaInterface metaB, Object dataB ) throws KettleValueException { if ( dataA == null || dataB == null ) { return null; } switch ( metaA.getType() ) { case ValueMetaInterface.TYPE_NUMBER: return divideDoubles( multiplyDoubles( 100.0D, metaA.getNumber( dataA ) ), metaB.getNumber( dataB ) ); case ValueMetaInterface.TYPE_INTEGER: return divideLongs( multiplyLongs( 100L, metaA.getInteger( dataA ) ), metaB.getInteger( dataB ) ); case ValueMetaInterface.TYPE_BIGNUMBER: return divideBigDecimals( multiplyBigDecimals( metaA.getBigNumber( dataA ), new BigDecimal( 100 ), null ), metaB .getBigNumber( dataB ), (MathContext) null ); default: throw new KettleValueException( "The 'A/B in %' function only works on numeric data" ); } }
Source:
<code>public void TestBasicLayout_US(String page) { <START> AdsBaseObject mainPage = new AdsBaseObject(driver, page); <END> mainPage.openPage(); mainPage.verifyTopLeaderBoardPresent(); mainPage.verifyMadrecPresent();; }</code><technical_language>repeat 4 lines mainPage -> page ;; -> ;</technical_language>

Target:
public void TestBasicLayout_US(String page) { AdsBaseObject wikiPage = new AdsBaseObject(driver, page); wikiPage.verifyTopLeaderBoardAndMedrec(); }
Source:
<code><START> public <T> T newPlatformProxy(String name, Class<T> type) { <END> lock.lock(); try { connect(); return ManagementFactory.newPlatformMXBeanProxy(mbeanServerConn, name, type); } catch (Exception e) { throw new RuntimeException(e); } finally { lock.unlock(); } }</code><technical_language>method private called in this class</technical_language>

Target:
private <T> T newPlatformProxy(String name, Class<T> type) { lock.lock(); try { connect(); return ManagementFactory.newPlatformMXBeanProxy(mbeanServerConn, name, type); } catch (Exception e) { throw new JmxRuntimeException("Failed to create proxy for " + name, e); } finally { lock.unlock(); } }
Source:
<code>public synchronized RemoteInterpreterProcess getOrCreateInterpreterProcess(String userName, Properties properties) throws IOException { if (remoteIntpProcessIsShutdown()) { LOGGER.info("Check whether the InterpreterProcess has been shutdown."); <START> close(); <END> } if (remoteInterpreterProcess == null) { LOGGER.info("Create InterpreterProcess for InterpreterGroup: " + getId()); remoteInterpreterProcess = interpreterSetting.createInterpreterProcess(id, userName, properties); ManagedInterpreterGroup managedIntpGroup = interpreterSetting.getInterpreterGroup(getId()); if (null != managedIntpGroup) { managedIntpGroup.setInterpreterProcess(remoteInterpreterProcess); } remoteInterpreterProcess.start(userName); interpreterSetting.getLifecycleManager().onInterpreterProcessStarted(this); getInterpreterSetting().getRecoveryStorage() .onInterpreterClientStart(remoteInterpreterProcess); } return remoteInterpreterProcess; }</code><technical_language>q close iff process is running</technical_language>

Target:
public synchronized RemoteInterpreterProcess getOrCreateInterpreterProcess(String userName, Properties properties) throws IOException { if (remoteInterpreterProcess == null) { LOGGER.info("Create InterpreterProcess for InterpreterGroup: " + getId()); remoteInterpreterProcess = interpreterSetting.createInterpreterProcess(id, userName, properties); ManagedInterpreterGroup managedIntpGroup = interpreterSetting.getInterpreterGroup(id); if (null != managedIntpGroup) { managedIntpGroup.setInterpreterProcess(remoteInterpreterProcess); } remoteInterpreterProcess.start(userName); interpreterSetting.getLifecycleManager().onInterpreterProcessStarted(this); getInterpreterSetting().getRecoveryStorage() .onInterpreterClientStart(remoteInterpreterProcess); } return remoteInterpreterProcess; }