auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>void flushOnLaunch(final ErrorReportApiClient errorReportApiClient) { final List<File> crashReports = findLaunchCrashReports(); if (crashReports.isEmpty() && config.getLaunchCrashThresholdMs() == 0) { <START> flushAsync(errorReportApiClient); END> } else { flushOnLaunchCompleted = false; Async.run(new Runnable() { @Override public void run() { Logger.info("Attempting to send launch crash reports"); for (File crashReport : crashReports) { flushErrorReport(crashReport, errorReportApiClient); } Logger.info("Delivered all launch crash reports"); flushOnLaunchCompleted = true; } }); long waitMs = 0; while (!flushOnLaunchCompleted && waitMs < LAUNCH_CRASH_TIMEOUT_MS) { try { Thread.sleep(LAUNCH_CRASH_POLL_MS); waitMs += LAUNCH_CRASH_POLL_MS; } catch (InterruptedException e) { Logger.warn("Interrupted while waiting for launch crash report request"); } } Logger.info("Continuing with Bugsnag initialisation"); } }</code><technical_language>This sense me</technical_language>

Target:
void flushOnLaunch(final ErrorReportApiClient errorReportApiClient) { final List<File> crashReports = findLaunchCrashReports(); if (crashReports.isEmpty() || config.getLaunchCrashThresholdMs() == 0) { flushAsync(errorReportApiClient); } else { flushOnLaunchCompleted = false; Async.run(new Runnable() { @Override public void run() { Logger.info("Attempting to send launch crash reports"); for (File crashReport : crashReports) { flushErrorReport(crashReport, errorReportApiClient); } Logger.info("Delivered all launch crash reports"); flushOnLaunchCompleted = true; } }); long waitMs = 0; while (!flushOnLaunchCompleted && waitMs < LAUNCH_CRASH_TIMEOUT_MS) { try { Thread.sleep(LAUNCH_CRASH_POLL_MS); waitMs += LAUNCH_CRASH_POLL_MS; } catch (InterruptedException e) { Logger.warn("Interrupted while waiting for launch crash report request"); } } Logger.info("Continuing with Bugsnag initialisation"); } }
Source:
<code><START> private void updateLangButtonTextSize() { <END> if (app.getAppOrSystemLanguageCode().startsWith(AppLanguageLookUpTable.CHINESE_LANGUAGE_CODE_PREFIX)) { langButton.setTextSize(LANG_BUTTON_TEXT_SIZE_SMALLER); if (app.getAppOrSystemLanguageCode().equals(AppLanguageLookUpTable.CLASSICAL_CHINESE_LANGUAGE_CODE)) { langButton.setText(CLASSICAL_CHINESE_CODE_ABBREVIATED); } return; } langButton.setTextSize(LANG_BUTTON_TEXT_SIZE_LARGER); }</code><technical_language>This simplified, kind of special-casing for Chinese variants: - If language code is longer characters, smaller font size. - If language code is longer characters, truncate characters. This reduces complexity future-proofs this stuff a bit</technical_language>

Target:
private void updateLangButtonTextSize() { String langCode = app.getAppOrSystemLanguageCode(); if (langCode.length() > NON_CHINESE_LANGUAGE_CODE_LENGTH) { langButton.setTextSize(LANG_BUTTON_TEXT_SIZE_SMALLER); if (langCode.length() > CHINESE_VARIANT_BUTTON_TEXT_LENGTH) { langButton.setText(langCode.substring(0, CHINESE_VARIANT_BUTTON_TEXT_LENGTH)); } return; } langButton.setTextSize(LANG_BUTTON_TEXT_SIZE_LARGER); }
Source:
<code>private void init() { inflate(getContext(), R.layout.view_disk_usage, this); ButterKnife.bind(this); setOrientation(VERTICAL); <START> ViewCompat.setBackgroundTintList(otherDot, new ColorStateList(new int[][]{new int[]{}}, new int[]{ContextCompat.getColor(getContext(), ResourceUtil.getThemedAttributeId(getContext(), R.attr.window_inverse_color))})); ViewCompat.setBackgroundTintList(usedDot, new ColorStateList(new int[][]{new int[]{}}, new int[]{ContextCompat.getColor(getContext(), ResourceUtil.getThemedAttributeId(getContext(), R.attr.colorAccent))})); ViewCompat.setBackgroundTintList(freeDot, new ColorStateList(new int[][]{new int[]{}}, new int[]{ContextCompat.getColor(getContext(), ResourceUtil.getThemedAttributeId(getContext(), R.attr.window_background_color))})); <END> update(0); }</code><technical_language>Ditto. Also, device (4.4.4/API 19), dots expected colors; white..</technical_language>

Target:
private void init() { inflate(getContext(), R.layout.view_disk_usage, this); ButterKnife.bind(this); setOrientation(VERTICAL); usageAppText.setText(R.string.app_name); setDotTint(otherDot, R.attr.window_inverse_color); setDotTint(usedDot, R.attr.colorAccent); setDotTint(freeDot, R.attr.window_background_color); update(0); }
Source:
<code><START> public void walkToBank() { <END> System.out.println("walking"); final Locatable nearestBank = ctx.bank.nearest(); ctx.movement.step(nearestBank); }</code><technical_language>conditional waits</technical_language>

Target:
public void walkToBank() { System.out.println("walking"); final Locatable nearestBank = ctx.bank.nearest(); ctx.movement.step(nearestBank); Condition.wait(new Callable<Boolean>() { @Override public Boolean call() throws Exception { return !ctx.players.local().inMotion(); } }); }
Source:
<code>private boolean sendJsonString(WebSocket websocketOfRecipient, String jsonString) { if (!serverStarted) { return false; } if (websocketOfRecipient == null || jsonString == null) { return false; } if (websocketOfRecipient.isOpen()) { websocketOfRecipient.send(jsonString); return true; <START> } else { <END> return false; } }</code><technical_language>else needed, i.e., return false; if statement</technical_language>

Target:
private boolean sendJsonString(WebSocket websocketOfRecipient, String jsonString) { if (!serverStarted) { return false; } if (websocketOfRecipient == null || jsonString == null) { return false; } if (websocketOfRecipient.isOpen()) { websocketOfRecipient.send(jsonString); return true; } return false; }
Source:
<code>public void testMoveWithStorageDomainName() throws Exception { setUpEntityQueryExpectations(VdcQueryType.GetAllStorageDomains, VdcQueryParametersBase.class, new String[] {}, new Object[] {}, <START> Collections.singletonList(getStorageDomain(2))); <END> StorageDomain storageDomain = new StorageDomain(); storageDomain.setName(NAMES[2]); doTestMove(storageDomain); }</code><technical_language>please tests, for admin search (old code) for non-admin VdcQueryType.GetAllStorageDomains (new code), note setup filter=true header expectation for it</technical_language>

Target:
public void testMoveWithStorageDomainName() throws Exception { setUpGetEntityExpectations("Storage: name=" + NAMES[2], SearchType.StorageDomain, getStorageDomain(2)); StorageDomain storageDomain = new StorageDomain(); storageDomain.setName(NAMES[2]); doTestMove(storageDomain); }
Source:
<code>boolean isPushingSection( OSMWay way ) { <START> return way.hasTag("highway", pushingSections) || way.hasTag("railway", "platform") || way.hasTag("bicycle", "dismount"); <END> }</code><technical_language>this is a bit confusing method isPushingSection vs. pushingSection variable: variable renamed pushingSectionHighways</technical_language>

Target:
boolean isPushingSection( OSMWay way ) { return way.hasTag("highway", pushingSectionsHighways) || way.hasTag("railway", "platform") || way.hasTag("bicycle", "dismount"); }
Source:
<code>public void testRootLevelAttributeSimpleNameOperatorNoScope() { simpleAttributeOperatorHelper(OperatorContext.MEMORY_MB, StreamingApplication.DT_PREFIX, <START> true, (Integer)4096, true, false); <END> }</code><technical_language>redundant casting integer</technical_language>

Target:
public void testRootLevelAttributeSimpleNameOperatorNoScope() { simpleAttributeOperatorHelper(OperatorContext.MEMORY_MB, StreamingApplication.DT_PREFIX, true, 4096, true, false); }
Source:
<code>public boolean matchesSafely(InventoryFullViewModel actual) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); return Objects.equals(actual.getId(), expected.getId()) && Objects.equals(actual.getComponentCode(), expected.getComponentCode()) && Objects.equals(actual.getComponentType(), expected.getComponentType()) && Objects.equals(actual.getInventoryStatus(), expected.getInventoryStatus()) && (Objects.equals(actual.getCreatedOn(), expected.getCreatedOn()) || Objects.equals(sdf.format(actual.getCreatedOn()), sdf.format(expected.getCreatedOn()))) && Objects.equals(actual.getDonationIdentificationNumber(), expected.getDonationIdentificationNumber()) && Objects.equals(actual.getExpiryStatus(), expected.getExpiryStatus()) && (Objects.equals(actual.getExpiresOn(), expected.getExpiresOn()) || Objects.equals(sdf.format(actual.getExpiresOn()), sdf.format(expected.getExpiresOn())) && Objects.equals(actual.getLocation(), expected.getLocation()) && Objects.equals(actual.getBloodGroup(), expected.getBloodGroup()) && <START> Objects.equals(actual.getOrderform(), expected.getOrderform())); <END> }</code><technical_language>confused this line is called in tests. Need investigate ![screenshot 2017-03-09 09 09 47](<LINK_0></technical_language>

Target:
public boolean matchesSafely(InventoryFullViewModel actual) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); return Objects.equals(actual.getId(), expected.getId()) && Objects.equals(actual.getComponentCode(), expected.getComponentCode()) && Objects.equals(actual.getComponentType(), expected.getComponentType()) && Objects.equals(actual.getInventoryStatus(), expected.getInventoryStatus()) && (Objects.equals(actual.getCreatedOn(), expected.getCreatedOn()) || Objects.equals(sdf.format(actual.getCreatedOn()), sdf.format(expected.getCreatedOn()))) && Objects.equals(actual.getDonationIdentificationNumber(), expected.getDonationIdentificationNumber()) && Objects.equals(actual.getExpiryStatus(), expected.getExpiryStatus()) && (Objects.equals(actual.getExpiresOn(), expected.getExpiresOn()) || Objects.equals(sdf.format(actual.getExpiresOn()), sdf.format(expected.getExpiresOn()))) && Objects.equals(actual.getLocation(), expected.getLocation()) && Objects.equals(actual.getBloodGroup(), expected.getBloodGroup()) && Objects.equals(actual.getOrderForms(), expected.getOrderForms()) && Objects.equals(actual.getComponentStatus(), expected.getComponentStatus()); }
Source:
<code>public void testUpdate() { ToolBarManager manager = new ToolBarManager(); ObservableControlContribution item = new ObservableControlContribution("i want to be updated!"); manager.add(item); manager.createControl(createComposite()); assertFalse("Update was called already", item.updateCalled); assertTrue("computeWidth was not called", item.computeWidthCalled); item.computeWidthCalled = false; manager.update(false); assertFalse("Update was called but force was false!", item.updateCalled); <START> assertFalse("computeWidthwas <END> called but force was false!", item.computeWidthCalled); manager.update(true); assertTrue("Update was not called", item.updateCalled); assertTrue("computeWidth was not called", item.computeWidthCalled); }</code><technical_language>small typo</technical_language>

Target:
public void testUpdate() { ToolBarManager manager = new ToolBarManager(); ObservableControlContribution item = new ObservableControlContribution("i want to be updated!"); manager.add(item); manager.createControl(createComposite()); assertFalse("Update was called already", item.updateCalled); assertTrue("computeWidth was not called", item.computeWidthCalled); item.computeWidthCalled = false; manager.update(false); assertFalse("Item update should only be called when manager update is forced", item.updateCalled); assertFalse("computeWidth should only be called when manager update is forced", item.computeWidthCalled); manager.update(true); assertTrue("Update was not called", item.updateCalled); assertTrue("computeWidth was not called", item.computeWidthCalled); }
Source:
<code>public void addInput(Page page) { requireNonNull(page, "page is null"); checkState(!isFinished(), "Operator is already finished"); index.addPage(page); if (!localUserMemoryContext.trySetBytes((index.getEstimatedSize().toBytes()))) { index.compact(); } <START> localUserMemoryContext.setBytes(index.getEstimatedSize().toBytes()); <END> operatorContext.recordGeneratedOutput(page.getSizeInBytes(), page.getPositionCount()); }</code><technical_language>Do need call this if trySetBytes call worked? If not, move this of if</technical_language>

Target:
public void addInput(Page page) { requireNonNull(page, "page is null"); checkState(!isFinished(), "Operator is already finished"); index.addPage(page); if (!localUserMemoryContext.trySetBytes((index.getEstimatedSize().toBytes()))) { index.compact(); localUserMemoryContext.setBytes(index.getEstimatedSize().toBytes()); } operatorContext.recordGeneratedOutput(page.getSizeInBytes(), page.getPositionCount()); }
Source:
<code>private static Intent getLaunchCameraIntent(Context context, String applicationId, LaunchCameraCallback callback) throws IOException { File externalStoragePublicDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM); String mediaCapturePath = externalStoragePublicDirectory + File.separator + "Camera" + File.separator + "wp-" + System .currentTimeMillis() + ".jpg"; File directory = new File(mediaCapturePath).getParentFile(); <START> if (directory == null | (!directory.exists() && !directory.mkdirs())) { <END> try { throw new IOException("Path to file could not be created: " + mediaCapturePath); } catch (IOException e) { AppLog.e(T.MEDIA, e); throw e; } } Uri fileUri; try { fileUri = FileProvider.getUriForFile(context, applicationId + ".provider", new File(mediaCapturePath)); } catch (IllegalArgumentException e) { AppLog.e(T.MEDIA, "Cannot access the file planned to store the new media", e); throw new IOException("Cannot access the file planned to store the new media"); } Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, fileUri); if (callback != null) { callback.onMediaCapturePathReady(mediaCapturePath); } return intent; }</code><technical_language>This ||</technical_language>

Target:
private static Intent getLaunchCameraIntent(Context context, String applicationId, LaunchCameraCallback callback) throws IOException { File externalStoragePublicDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM); String mediaCapturePath = externalStoragePublicDirectory + File.separator + "Camera" + File.separator + "wp-" + System .currentTimeMillis() + ".jpg"; File directory = new File(mediaCapturePath).getParentFile(); if (directory == null || (!directory.exists() && !directory.mkdirs())) { try { throw new IOException("Path to file could not be created: " + mediaCapturePath); } catch (IOException e) { AppLog.e(T.MEDIA, e); throw e; } } Uri fileUri; try { fileUri = FileProvider.getUriForFile(context, applicationId + ".provider", new File(mediaCapturePath)); } catch (IllegalArgumentException e) { AppLog.e(T.MEDIA, "Cannot access the file planned to store the new media", e); throw new IOException("Cannot access the file planned to store the new media"); } Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, fileUri); if (callback != null) { callback.onMediaCapturePathReady(mediaCapturePath); } return intent; }
Source:
<code>private OutputFormatFactory<BaseRow> createOutputFormatFactory() { FileSystemFormatFactory formatFactory = createFormatFactory(formatProperties); FileSystemFormatFactory.WriterContext context = new FileSystemFormatFactory.WriterContext() { @Override public TableSchema getSchema() { return schema; } @Override public Map<String, String> getFormatProperties() { return formatProperties; } @Override public List<String> getPartitionKeys() { return partitionKeys; } }; Optional<Encoder<BaseRow>> encoder = formatFactory.createEncoder(context); Optional<BulkWriter.Factory<BaseRow>> bulk = formatFactory.createBulkWriterFactory(context); if (!encoder.isPresent() && !bulk.isPresent()) { throw new TableException( formatFactory + " format should implement at least one Encoder or BulkWriter"); } return encoder .<OutputFormatFactory<BaseRow>>map(en -> path -> createEncoderOutputFormat(en, path)) .orElseGet(() -> { <START> BulkWriter.Factory<BaseRow> bulkWriter = bulk.get(); <END> return path -> createBulkWriterOutputFormat(bulkWriter, path); }); }</code><technical_language>name bulkWriterFactory</technical_language>

Target:
private OutputFormatFactory<BaseRow> createOutputFormatFactory() { FileSystemFormatFactory formatFactory = createFormatFactory(formatProperties); FileSystemFormatFactory.WriterContext context = new FileSystemFormatFactory.WriterContext() { @Override public TableSchema getSchema() { return schema; } @Override public Map<String, String> getFormatProperties() { return formatProperties; } @Override public List<String> getPartitionKeys() { return partitionKeys; } }; Optional<Encoder<BaseRow>> encoder = formatFactory.createEncoder(context); Optional<BulkWriter.Factory<BaseRow>> bulk = formatFactory.createBulkWriterFactory(context); if (!encoder.isPresent() && !bulk.isPresent()) { throw new TableException( formatFactory + " format should implement at least one Encoder or BulkWriter"); } return encoder .<OutputFormatFactory<BaseRow>>map(en -> path -> createEncoderOutputFormat(en, path)) .orElseGet(() -> { BulkWriter.Factory<BaseRow> bulkWriterFactory = bulk.get(); return path -> createBulkWriterOutputFormat(bulkWriterFactory, path); }); }
Source:
<code>public void openCore() throws StandardException{ try { <START> submittedTime = new SimpleDateFormat(timeStampFormat).format(new Date()); <END> uuid = EngineDriver.driver().getOperationManager().registerOperation(this, Thread.currentThread()); DataSetProcessor dsp = EngineDriver.driver().processorFactory().chooseProcessor(activation, this); activation.getLanguageConnectionContext().getStatementContext().registerExpirable(this, Thread.currentThread()); engineName = (dsp.getType() == DataSetProcessor.Type.SPARK) ? "SPARK" : "CONTROL"; if (dsp.getType() == DataSetProcessor.Type.SPARK && !isOlapServer() && !SpliceClient.isClient) { remoteQueryClient = EngineDriver.driver().processorFactory().getRemoteQueryClient(this); remoteQueryClient.submit(); execRowIterator = remoteQueryClient.getIterator(); } else { openCore(dsp); } } catch (Exception e) { EngineDriver.driver().getOperationManager().unregisterOperation(uuid); checkInterruptedException(e); throw e; } }</code><technical_language>expensive</technical_language>

Target:
public void openCore() throws StandardException{ try { DataSetProcessor dsp = EngineDriver.driver().processorFactory().chooseProcessor(activation, this); uuid = EngineDriver.driver().getOperationManager().registerOperation(this, Thread.currentThread(), new Date(), dsp.getType()); activation.getLanguageConnectionContext().getStatementContext().registerExpirable(this, Thread.currentThread()); if (dsp.getType() == DataSetProcessor.Type.SPARK && !isOlapServer() && !SpliceClient.isClient) { remoteQueryClient = EngineDriver.driver().processorFactory().getRemoteQueryClient(this); remoteQueryClient.submit(); execRowIterator = remoteQueryClient.getIterator(); } else { openCore(dsp); } } catch (Exception e) { EngineDriver.driver().getOperationManager().unregisterOperation(uuid); checkInterruptedException(e); throw e; } }
Source:
<code>public void removeEndpoint(Object webSocketEndpoint) throws WebSocketEndpointAnnotationException { EndpointDispatcher dispatcher = new EndpointDispatcher(); webSocketEndpointMap.remove(dispatcher.getUri(webSocketEndpoint)); updatePatternPathRouter(); <START> LOGGER.info("Removed endpoint : " + dispatcher.getUri(webSocketEndpoint)); <END> }</code><technical_language>a space word colon</technical_language>

Target:
public void removeEndpoint(Object webSocketEndpoint) throws WebSocketEndpointAnnotationException { EndpointDispatcher dispatcher = new EndpointDispatcher(); webSocketEndpointMap.remove(dispatcher.getUri(webSocketEndpoint)); updatePatternPathRouter(); log.info("Removed endpoint : " + dispatcher.getUri(webSocketEndpoint)); }
Source:
<code>private void addDeactivationAnchor() { Span closeIconSpan = new Span(); <START> closeIconSpan.addStyleName("pficon"); END> closeIconSpan.addStyleName("pficon-close"); deactivationAnchor.add(closeIconSpan); add(deactivationAnchor); }</code><technical_language>PatternflyConstants defines this</technical_language>

Target:
private void addDeactivationAnchor() { Span closeIconSpan = new Span(); closeIconSpan.addStyleName(PatternflyConstants.PFICON); closeIconSpan.addStyleName(PatternflyConstants.PFICON_CLOSE); deactivationAnchor.add(closeIconSpan); add(deactivationAnchor); }
Source:
<code>public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) { if (adaptableObject instanceof ISelection) { if (adapterType == IIterable.class) { @SuppressWarnings("unchecked") <START> T iterable = (T) iterable((ISelection) adaptableObject); <END> return iterable; } else if (adapterType == ICountable.class) { @SuppressWarnings("unchecked") T countable = (T) countable((ISelection) adaptableObject); return countable; } } return null; }</code><technical_language>I this incorrect is incorrect. IIterable is instance of ISelection</technical_language>

Target:
public <T> T getAdapter(Object adaptableObject, Class<T> adapterType) { if (adaptableObject instanceof ISelection) { if (adapterType == IIterable.class) { return adapterType.cast(iterable((ISelection) adaptableObject)); } else if (adapterType == ICountable.class) { return adapterType.cast(countable((ISelection) adaptableObject)); } } return null; }
Source:
<code>public List<String> formatRow(Object object) { ArgumentFormatter formatter; List<Object> allFieldValues = ReflectionUtil.getAllFieldValues(object, fields, ""); List<String> res = Lists.newArrayList(); for (int i = 0; i < allFieldValues.size(); i++) { Object v = allFieldValues.get(i); <START> Field field = fields.get(i); <END> Format format = formatsByFieldName.get(field.getName()); if (v != null) { nonNullColumns[i] = true; } if (format == null) { formatter = DefaultFormatter.INSTANCE; res.add(formatter.format(v)); } else { Class<? extends ArgumentFormatter<?>> clazz = format.value(); formatter = ReflectionUtil.newInstance(clazz); res.add(formatter.format(v, format.args())); } } return res; }</code><technical_language>fun fact: easily support #252. is :-). Idea: if field annotation possibility of overriding this new annotation</technical_language>

Target:
public List<String> formatRow( Object object ) { List<Object> allFieldValues = ReflectionUtil.getAllFieldValues( object, fields, "" ); List<String> res = Lists.newArrayList(); for( int i = 0; i < allFieldValues.size(); i++ ) { Object v = allFieldValues.get( i ); Field field = fields.get( i ); if( v != null ) { nonNullColumns[i] = true; } @SuppressWarnings( "rawtypes" ) ObjectFormatter formatter = formattersByFieldName.get( field.getName() ); if( formatter != null ) { res.add( formatter.format( v ) ); } else { formatter = DefaultFormatter.INSTANCE; res.add( formatter.format( v ) ); } } return res; }
Source:
<code>static List<MessageInfo> deserializeMessageInfoList(DataInputStream stream, ClusterMap map, short versionToDeserializeIn) throws IOException { int messageInfoListCount = stream.readInt(); ArrayList<MessageInfo> messageListInfo = new ArrayList<MessageInfo>(messageInfoListCount); for (int i = 0; i < messageInfoListCount; i++) { BlobId id = new BlobId(stream, map); long size = stream.readLong(); long ttl = stream.readLong(); boolean isDeleted = stream.readByte() == DELETED; Long crc = null; switch (versionToDeserializeIn) { case VERSION_1: <START> messageListInfo.add(new MessageInfo(id, size, isDeleted, ttl, crc)); <END> break; case VERSION_2: crc = stream.readByte() == CRC_PRESENT ? stream.readLong() : null; messageListInfo.add(new MessageInfo(id, size, isDeleted, ttl, crc)); break; case VERSION_3: crc = stream.readByte() == CRC_PRESENT ? stream.readLong() : null; short accountId = stream.readShort(); short containerId = stream.readShort(); long operationTime = stream.readLong(); messageListInfo.add(new MessageInfo(id, size, isDeleted, ttl, crc, accountId, containerId, operationTime)); break; default: throw new IllegalArgumentException( "Unknown version to deserialize MessageInfoList " + versionToDeserializeIn); } } return messageListInfo; }</code><technical_language>this variable called messageInfoList</technical_language>

Target:
static List<MessageInfo> deserializeMessageInfoList(DataInputStream stream, ClusterMap map, short versionToDeserializeIn) throws IOException { int messageInfoListCount = stream.readInt(); ArrayList<MessageInfo> messageInfoList = new ArrayList<MessageInfo>(messageInfoListCount); for (int i = 0; i < messageInfoListCount; i++) { BlobId id = new BlobId(stream, map); long size = stream.readLong(); long ttl = stream.readLong(); boolean isDeleted = stream.readByte() == DELETED; Long crc = null; switch (versionToDeserializeIn) { case VERSION_1: messageInfoList.add(new MessageInfo(id, size, isDeleted, ttl, crc)); break; case VERSION_2: crc = stream.readByte() == CRC_PRESENT ? stream.readLong() : null; messageInfoList.add(new MessageInfo(id, size, isDeleted, ttl, crc)); break; case VERSION_3: crc = stream.readByte() == CRC_PRESENT ? stream.readLong() : null; short accountId = stream.readShort(); short containerId = stream.readShort(); long operationTime = stream.readLong(); messageInfoList.add(new MessageInfo(id, size, isDeleted, ttl, crc, accountId, containerId, operationTime)); break; default: throw new IllegalArgumentException( "Unknown version to deserialize MessageInfoList " + versionToDeserializeIn); } } return messageInfoList; }
Source:
<code>protected Deserializer<T> locate() { if (isAvailable("io.jsonwebtoken.io.JacksonDeserializer")) { return Classes.newInstance("io.jsonwebtoken.io.JacksonDeserializer"); } else if (isAvailable("io.jsonwebtoken.io.OrgJsonDeserializer")) { return Classes.newInstance("io.jsonwebtoken.io.OrgJsonDeserializer"); <START> } else if (isAvailable("com.google.gson.GsonBuilder")) { <END> return Classes.newInstance("io.jsonwebtoken.io.GsonDeSerializer"); } else { throw new IllegalStateException("Unable to discover any JSON Deserializer implementations on the classpath."); } }</code><technical_language>This checking for "io.jsonwebtoken.io.GsonDeserializer" "com.google.gson.GsonBuilder"</technical_language>

Target:
protected Deserializer<T> locate() { if (isAvailable("io.jsonwebtoken.io.JacksonDeserializer")) { return Classes.newInstance("io.jsonwebtoken.io.JacksonDeserializer"); } else if (isAvailable("io.jsonwebtoken.io.OrgJsonDeserializer")) { return Classes.newInstance("io.jsonwebtoken.io.OrgJsonDeserializer"); } else if (isAvailable("io.jsonwebtoken.gson.io.GsonDeserializer")) { return Classes.newInstance("io.jsonwebtoken.gson.io.GsonDeserializer"); } else { throw new IllegalStateException("Unable to discover any JSON Deserializer implementations on the classpath."); } }
Source:
<code>public Observable<PutResult> createObservable() { <START> try { <END> throwExceptionIfRxJavaIsNotAvailable("createObservable()"); return Observable .create(OnSubscribeExecuteAsBlocking.newInstance(this)) .subscribeOn(Schedulers.io()); } catch (Throwable throwable) { throw new StorIOException(throwable); } }</code><technical_language>need in try/catch here</technical_language>

Target:
public Observable<PutResult> createObservable() { throwExceptionIfRxJavaIsNotAvailable("createObservable()"); return Observable .create(OnSubscribeExecuteAsBlocking.newInstance(this)) .subscribeOn(Schedulers.io()); }
Source:
<code>public void publishWorkflowAndTestDiscourseTopicCreation() { final ApiClient curatorApiClient = getWebClient(CURATOR_USERNAME); EntriesApi curatorEntriesApi = new EntriesApi(curatorApiClient); final ApiClient userApiClient = getWebClient(USER_2_USERNAME); WorkflowsApi userWorkflowsApi = new WorkflowsApi(userApiClient); String workflowName = Long.toString(Instant.now().toEpochMilli()); userWorkflowsApi.manualRegister("github", "DockstoreTestUser2/gdc-dnaseq-cwl", "/workflows/dnaseq/transform.cwl", workflowName, "cwl", "/workflows/dnaseq/transform.cwl.json"); final Workflow workflowByPathGithub = userWorkflowsApi.getWorkflowByPath(DOCKSTORE_TEST_USER2_GDC_DNASEQ_CWL_WORKFLOW + "/" + workflowName, null); final Workflow workflow = userWorkflowsApi.refresh(workflowByPathGithub.getId()); userWorkflowsApi.publish(workflow.getId(), new PublishRequest(){ public Boolean isPublish() { return true;} }); try { <START> curatorEntriesApi.setDiscourseTopic(workflow.getId()); <END> fail("Should still not be able to set discourse topic."); } catch (ApiException ex) { } }</code><technical_language>clear me, is time setDiscourseTopic set throw exceptions for testing? If so, prefer simplify throw exceptions test for logging error message Slack</technical_language>

Target:
public void publishWorkflowAndTestDiscourseTopicCreation() { final ApiClient curatorApiClient = getWebClient(CURATOR_USERNAME); EntriesApi curatorEntriesApi = new EntriesApi(curatorApiClient); final ApiClient userApiClient = getWebClient(USER_2_USERNAME); WorkflowsApi userWorkflowsApi = new WorkflowsApi(userApiClient); String workflowName = Long.toString(Instant.now().toEpochMilli()); userWorkflowsApi.manualRegister("github", "DockstoreTestUser2/gdc-dnaseq-cwl", "/workflows/dnaseq/transform.cwl", workflowName, "cwl", "/workflows/dnaseq/transform.cwl.json"); final Workflow workflowByPathGithub = userWorkflowsApi.getWorkflowByPath(DOCKSTORE_TEST_USER2_GDC_DNASEQ_CWL_WORKFLOW + "/" + workflowName, null); final Workflow workflow = userWorkflowsApi.refresh(workflowByPathGithub.getId()); userWorkflowsApi.publish(workflow.getId(), new PublishRequest(){ public Boolean isPublish() { return true;} }); try { curatorEntriesApi.setDiscourseTopic(workflow.getId()); fail("Should still not be able to set discourse topic."); } catch (ApiException ex) { } Workflow unpublishedWf = userWorkflowsApi.publish(workflow.getId(), new PublishRequest(){ public Boolean isPublish() { return false;} }); Workflow publishedWf = userWorkflowsApi.publish(unpublishedWf.getId(), new PublishRequest(){ public Boolean isPublish() { return true;} }); assertEquals("Topic id should remain the same.", unpublishedWf.getTopicId(), publishedWf.getTopicId()); }
Source:
<code>public CompletableFuture<Void> waitUntilAvailable(UUID requestId) { <START> return submit(new LockRequest(requestId, true)); <END> }</code><technical_language>this method need synchronized</technical_language>

Target:
public synchronized CompletableFuture<Void> waitUntilAvailable(UUID requestId) { return submit(new LockRequest(requestId, true)); }
Source:
<code>public void initParam(Object obj) { OptionsParam optionsParam = (OptionsParam) obj; StatsParam statsParam = optionsParam.getParamSet(StatsParam.class); getInMemoryStatsEnabledField().setSelected(statsParam.isInMemoryEnabled()); getStatsdStatsEnabledField().setSelected(statsParam.isStatsdEnabled()); <START> getStatsdHostField().setText(statsParam.getStatsdHost()); <END> getStatsdPortField().setValue(statsParam.getStatsdPort()); getStatsdPrefixField().setText(statsParam.getStatsdPrefix()); setStatsdFieldStates(); }</code><technical_language>discard undoable edits setting text (discardAllEdits())</technical_language>

Target:
public void initParam(Object obj) { OptionsParam optionsParam = (OptionsParam) obj; StatsParam statsParam = optionsParam.getParamSet(StatsParam.class); getInMemoryStatsEnabledField().setSelected(statsParam.isInMemoryEnabled()); getStatsdStatsEnabledField().setSelected(statsParam.isStatsdEnabled()); getStatsdHostField().setText(statsParam.getStatsdHost()); getStatsdHostField().discardAllEdits(); getStatsdPortField().setValue(statsParam.getStatsdPort()); getStatsdPrefixField().setText(statsParam.getStatsdPrefix()); getStatsdPrefixField().discardAllEdits(); setStatsdFieldStates(); }
Source:
<code>protected void onSetUpBeforeClosingWelcomePage() throws Exception { copyFileToTestProject(Activator.PLUGIN_ID, DATA_UNIT_DIR, MODEL_FILE, SESSION_FILE, VSM_FILE, <START> IMAGE_FILE); <END> sessionAirdResource = new UIResource(designerProject, SESSION_FILE); localSession = designerPerspective.openSessionFromFile(sessionAirdResource, true); }</code><technical_language>is useful</technical_language>

Target:
protected void onSetUpBeforeClosingWelcomePage() throws Exception { copyFileToTestProject(Activator.PLUGIN_ID, DATA_UNIT_DIR, MODEL_FILE, SESSION_FILE); sessionAirdResource = new UIResource(designerProject, SESSION_FILE); localSession = designerPerspective.openSessionFromFile(sessionAirdResource, true); }
Source:
<code>public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection, long timestamp) { return maybeLog(() -> delegate.getRowsColumnRange(tableRef, rows, batchColumnRangeSelection, timestamp), (logger, stopwatch) -> { logger.log("Call to KVS.getRowsColumnRange on table for rows with range took ms.", tableRef, Iterables.size(rows), batchColumnRangeSelection, stopwatch.elapsed(TimeUnit.MILLISECONDS)); <START> logTimeAndTable(logger, "getRowsColumnRange", tableRef, stopwatch); <END> }); }</code><technical_language>a dangling log statement here</technical_language>

Target:
public Map<byte[], RowColumnRangeIterator> getRowsColumnRange(TableReference tableRef, Iterable<byte[]> rows, BatchColumnRangeSelection batchColumnRangeSelection, long timestamp) { return maybeLog(() -> delegate.getRowsColumnRange(tableRef, rows, batchColumnRangeSelection, timestamp), (logger, stopwatch) -> { logger.log("Call to KVS.getRowsColumnRange on table for rows with range took ms.", tableRef, Iterables.size(rows), batchColumnRangeSelection, stopwatch.elapsed(TimeUnit.MILLISECONDS)); }); }
Source:
<code>public String getRequestId() { <START> return requestId; <END> }</code><technical_language>This null. be. if break people</technical_language>

Target:
public String getRequestId() { String reqId = null; if (!maskRequestId) { if (requestId == null || requestId.length() <= 0) { requestId = UUID.randomUUID().toString(); isRequestIdSet = true; } reqId = requestId; } return reqId; }
Source:
<code>public static void input(BooleanDistinctState state, @SqlType(StandardTypes.BOOLEAN) boolean value, @SqlType(StandardTypes.DOUBLE) double maxStandardError) { switch (state.getInt()) { case 0: state.setInt(value == true ? 1 : 2); break; case 1: state.setInt(value == true ? 1 : 3); break; case 2: state.setInt(value == true ? 3 : 2); break; <START> } <END> }</code><technical_language>state.setInt( state.getInt() | (value ? 1 : 2) )</technical_language>

Target:
public static void input(BooleanDistinctState state, @SqlType(StandardTypes.BOOLEAN) boolean value, @SqlType(StandardTypes.DOUBLE) double maxStandardError) { state.setByte((byte) (state.getByte() | (value ? 1 : 2))); }
Source:
<code>public IncomingCallFilterGraph(Call call, CallFilterResultCallback listener) { mFiltersQueue = new LinkedBlockingDeque<>(); mListener = listener; mCall = call; mFiltersList = new ArrayList<>(); mFutures = new HashMap<>(); mPool = <START> Executors.newFixedThreadPool(NTHREADS); <END> }</code><technical_language>*might* need change this a single HandlerThread some point line -- if a simple thread pool work, a lot of code in Telecom expects a thread initialized Looper. If ends working integrate rest of Telecom, fine is</technical_language>

Target:
public IncomingCallFilterGraph(Call call, CallFilterResultCallback listener) { mFiltersQueue = new LinkedBlockingDeque<>(); mListener = listener; mCall = call; mFiltersList = new ArrayList<>(); mFutures = new HashMap<>(); mHandler = new Handler(Looper.getMainLooper()); mExecutor = mHandler::post; }
Source:
<code>public DuplicateStopError(DuplicateStops duplicateStop) { <START> super("stop", duplicateStop.stop1.sourceFileLine, "stop_lat,stop_lon", duplicateStop.getStop1Id()); <END> this.message = duplicateStop.toString(); this.duplicateStop = duplicateStop; }</code><technical_language>I want pick stop for source line affected entity based a higher sourceFileLine. stop in file is duplicate</technical_language>

Target:
public DuplicateStopError(DuplicateStops duplicateStop) { super("stop", duplicateStop.getDuplicatedStop().sourceFileLine, "stop_lat,stop_lon", duplicateStop.getDuplicatedStop().stop_id); this.message = duplicateStop.toString(); this.duplicateStop = duplicateStop; }
Source:
<code>public CurveCurrencyParameterSensitivity multipliedBy(Currency currency, double amount) { double[] updated = new double[sensitivity.length]; <START> for (int i = 0; i < sensitivity.length; i++) { <END> updated[i] = sensitivity[i] * amount; } return CurveCurrencyParameterSensitivity.of(metadata, currency, updated); }</code><technical_language>not: double[] updated = DoubleStream.of(sensitivity).map(d -> d * amount).toArray();</technical_language>

Target:
public CurveCurrencyParameterSensitivity multipliedBy(Currency currency, double amount) { return CurveCurrencyParameterSensitivity.of(metadata, currency, DoubleArrayMath.applyMultiplication(sensitivity, amount)); }
Source:
<code>public void createStores() { stream1Store = new ManagedTimeStateImpl(); stream2Store = new ManagedTimeStateImpl(); stream1Store.setNumBuckets(noOfBuckets); stream2Store.setNumBuckets(noOfBuckets); if (bucketSpanTime != null) { stream1Store.getTimeBucketAssigner().setBucketSpan(Duration.millis(bucketSpanTime)); stream2Store.getTimeBucketAssigner().setBucketSpan(Duration.millis(bucketSpanTime)); } <START> if (stream1Store.getTimeBucketAssigner() instanceof MovingBoundaryTimeBucketAssigner) { <END> ((MovingBoundaryTimeBucketAssigner)stream1Store.getTimeBucketAssigner()).setExpireBefore(Duration.millis(getExpiryTime())); } if (stream2Store.getTimeBucketAssigner() instanceof MovingBoundaryTimeBucketAssigner) { ((MovingBoundaryTimeBucketAssigner)stream1Store.getTimeBucketAssigner()).setExpireBefore(Duration.millis(getExpiryTime())); } stream1Data = new ManagedTimeStateMultiValue(stream1Store, !isLeftKeyPrimary()); stream2Data = new ManagedTimeStateMultiValue(stream2Store, !isRightKeyPrimary()); }</code><technical_language>sense time bucket assigners for stores? stores need backed a single state backend ensure consistency, is guaranteed</technical_language>

Target:
public void createStores() { stream1Store = new ManagedTimeStateImpl(); stream2Store = new ManagedTimeStateImpl(); stream1Store.setNumBuckets(noOfBuckets); stream2Store.setNumBuckets(noOfBuckets); assert stream1Store.getTimeBucketAssigner() == stream2Store.getTimeBucketAssigner(); if (bucketSpanTime != null) { stream1Store.getTimeBucketAssigner().setBucketSpan(Duration.millis(bucketSpanTime)); } if (stream1Store.getTimeBucketAssigner() instanceof MovingBoundaryTimeBucketAssigner) { ((MovingBoundaryTimeBucketAssigner)stream1Store.getTimeBucketAssigner()).setExpireBefore(Duration.millis(getExpiryTime())); } stream1Data = new ManagedTimeStateMultiValue(stream1Store, !isLeftKeyPrimary()); stream2Data = new ManagedTimeStateMultiValue(stream2Store, !isRightKeyPrimary()); }
Source:
<code>public String getText() { <START> return "Add doctrine repository"; <END> }</code><technical_language>called "Doctrine" ;)</technical_language>

Target:
public String getText() { return "Add Doctrine Repository"; }
Source:
<code>private MethodBehavior createStringUtilMethodBehavior(Symbol.MethodSymbol symbol) { MethodBehavior behavior; switch (symbol.name()) { case "isEmpty" : case "isBlank" : case "isNotEmpty" : <START> case "isNotBlank" : <END> behavior = new MethodBehavior(symbol); MethodYield nullYield = new MethodYield(symbol.parameterTypes().size(), false); nullYield.exception = false; nullYield.parametersConstraints[0] = ObjectConstraint.nullConstraint(); nullYield.resultConstraint = symbol.name().contains("Not") ? BooleanConstraint.FALSE : BooleanConstraint.TRUE; behavior.addYield(nullYield); MethodYield notNullYield = new MethodYield(symbol.parameterTypes().size(), false); notNullYield.exception = false; notNullYield.parametersConstraints[0] = ObjectConstraint.notNull(); behavior.addYield(notNullYield); behavior.completed(); break; default: behavior = null; } return behavior; }</code><technical_language>![MAJOR](<LINK_0> 'Severity: MAJOR') Reduce this switch case number of lines 12 5, for example extracting code methods. [![rule](<LINK_1>](<LINK_2></technical_language>

Target:
private MethodBehavior createStringUtilMethodBehavior(Symbol.MethodSymbol symbol) { MethodBehavior behavior; switch (symbol.name()) { case "isNotEmpty" : case "isNotBlank" : behavior = createIsEmptyOrBlankMethodBehavior(symbol, BooleanConstraint.FALSE); break; case "isEmpty" : case "isBlank" : behavior = createIsEmptyOrBlankMethodBehavior(symbol, BooleanConstraint.TRUE); break; default: behavior = null; } return behavior; }
Source:
<code>protected void actionPerformed( final GuiButton btn ) { super.actionPerformed( btn ); try { if( this.tabCraftButton == btn || this.tabProcessButton == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.CraftMode", this.tabProcessButton == btn ? "1" : "0" ) ); } if( this.encodeBtn == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Encode", "1" ) ); } if( this.clearBtn == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Clear", "1" ) ); } if( this.substitutionsEnabledBtn == btn || this.substitutionsDisabledBtn == btn ) { <START> NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Substitute", this.substitutionsEnabledBtn == btn ? "0" : "1" ) ); <END> } } catch( final IOException e ) { e.printStackTrace(); } }</code><technical_language>const 0 1 out clarify meaning</technical_language>

Target:
protected void actionPerformed( final GuiButton btn ) { super.actionPerformed( btn ); try { if( this.tabCraftButton == btn || this.tabProcessButton == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.CraftMode", this.tabProcessButton == btn ? CRAFTMODE_CRFTING : CRAFTMODE_PROCESSING ) ); } if( this.encodeBtn == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Encode", "1" ) ); } if( this.clearBtn == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Clear", "1" ) ); } if( this.substitutionsEnabledBtn == btn || this.substitutionsDisabledBtn == btn ) { NetworkHandler.instance.sendToServer( new PacketValueConfig( "PatternTerminal.Substitute", this.substitutionsEnabledBtn == btn ? SUBSITUTION_DISABLE : SUBSITUTION_ENABLE ) ); } } catch( final IOException e ) { e.printStackTrace(); } }
Source:
<code>private void setRuleActive(String ruleKey, boolean active) { <START> if (!rules.containsKey(ruleKey)) { <END> rules.put(ruleKey, new Rule(false)); } rules.get(ruleKey).isActive = active; }</code><technical_language>computeIfAbsent</technical_language>

Target:
private void setRuleActive(String ruleKey, boolean active) { rules.computeIfAbsent(ruleKey, s -> new Rule(true)); rules.get(ruleKey).isActive = active; }
Source:
<code>public Configuration build() { List<ServiceCreationConfiguration<?>> serviceCreationConfigurations = addDiscoveredServiceConfiguration(); <START> return new DefaultConfiguration(caches, classLoader, serviceCreationConfigurations.toArray(new ServiceCreationConfiguration<?>[serviceCreationConfigurations.size()])); <END> }</code><technical_language>Weird return a list array right</technical_language>

Target:
public Configuration build() { return new DefaultConfiguration(caches, classLoader, addedAndDiscoveredServiceConfigurations()); }
Source:
<code>public Builder timeout(Duration timeout) { <START> Objects.requireNonNull(timeout, "duration cannot be null"); <END> this.timeout = timeout; return this; }</code><technical_language>(?): suggestion Objects.requireNonNull(timeout, "Timeout null");</technical_language>

Target:
public Builder timeout(Duration timeout) { this.timeout = Objects.requireNonNull(timeout, "Timeout cannot be null"); return this; }
Source:
<code>private View.OnClickListener createOnClickListener(final String dialogTitle, final String hint, final WPTextView textView, final boolean isMultiline) { <START> mTextView = textView; <END> return new View.OnClickListener() { @Override public void onClick(View v) { ProfileInputDialogFragment inputDialog = ProfileInputDialogFragment.newInstance(dialogTitle, textView.getText().toString(), hint, isMultiline); inputDialog.show(getFragmentManager(), DIALOG_TAG); } }; }</code><technical_language>This assignment misplaced a bug: TextView eventually get updated (by callback) mAboutMe assigned mTextView. meaning this assignment OnClickListener. In case, I personally prefer a global state variable for this. Instead, I suggest passing some form of a unique key ProfileInputDialogFragment.newInstance passed in onSuccessfulInput caller (MyProfileActivity in this case) identify TextView update. Hope sense</technical_language>

Target:
private View.OnClickListener createOnClickListener(final String dialogTitle, final String hint, final WPTextView textView, final boolean isMultiline) { return new View.OnClickListener() { @Override public void onClick(View v) { ProfileInputDialogFragment inputDialog = ProfileInputDialogFragment.newInstance(dialogTitle, textView.getText().toString(), hint, isMultiline, textView.getId()); inputDialog.show(getFragmentManager(), DIALOG_TAG); } }; }
Source:
<code>public static IBatchProject getBatchProject(IProject project, boolean resolve) { BatchProject result = null; KbProject kb = (KbProject)KbProjectFactory.getKbProject(project, resolve); if(kb != null) { result = (BatchProject)kb.getExtensionModel(MODEL_ID); <START> if(result == null) { <END> result = new BatchProject(); result.setProject(project); kb.setExtensionModel(MODEL_ID, result); } } if(result != null && resolve) { result.resolve(); } return result; }</code><technical_language>synchronize this block avoid situation BatchProject's created returned</technical_language>

Target:
public static IBatchProject getBatchProject(IProject project, boolean resolve) { BatchProject result = null; KbProject kb = (KbProject)KbProjectFactory.getKbProject(project, resolve); if(kb != null) { synchronized (kb) { result = (BatchProject)kb.getExtensionModel(MODEL_ID); if(result == null) { result = new BatchProject(); result.setProject(project); kb.setExtensionModel(MODEL_ID, result); } } } if(result != null && resolve) { result.resolve(); } return result; }
Source:
<code>public CrewMember apply(org.atlasapi.media.entity.CrewMember input) { if (input instanceof org.atlasapi.media.entity.Actor) { return translateLegacyActor((org.atlasapi.media.entity.Actor) input); <START> } else if(Objects.nonNull(input)) { <END> return translateLegacyCrewMember(input); } else { return null; } }</code><technical_language>above, do a null comparison</technical_language>

Target:
public CrewMember apply(org.atlasapi.media.entity.CrewMember input) { if (null == input.getId()) { return null; } if (input instanceof org.atlasapi.media.entity.Actor) { return translateLegacyActor((org.atlasapi.media.entity.Actor) input); } else if(null != input) { return translateLegacyCrewMember(input); } else { return null; } }
Source:
<code><START> public void setClearZookeeper(boolean clearZookeeper) { <END> this.clearZookeeper = clearZookeeper; }</code><technical_language>return this</technical_language>

Target:
public InitOpts setClearZookeeper(boolean clearZookeeper) { this.clearZookeeper = clearZookeeper; return this; }
Source:
<code>public static void main(String[] args) { DemoUtil.setUp(); try { testResendingFailedNotifications(); } catch (MambuApiException e) { System.out.println("Exception caught in Demo Test Lines of Credit Service"); System.out.println("Error code=" + e.getErrorCode()); <START> System.out.println(" Cause=" + e.getCause() + ". Message=" + e.getMessage()); <END> } }</code><technical_language>I guess extra space removed, "Cause"</technical_language>

Target:
public static void main(String[] args) { DemoUtil.setUp(); try { testResendingFailedNotifications(); } catch (MambuApiException e) { System.out.println("Exception caught in Demo Test Notifications Service"); System.out.println("Error code=" + e.getErrorCode()); System.out.println("Cause=" + e.getCause() + ". Message=" + e.getMessage()); } }