auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>private void reloadRecentRepositories() { <START> new ProgressDialogTask<Void>(this) { <END> @Override protected Void run(Account account) throws IOException { List<User> orgs = accountDataManager.getOrgs(false); for (User org: orgs) { RecentRepositories cache = new RecentRepositories(SettingsActivity.this, org); cache.clearAll(); cache.saveAsync(); } return null; } @Override public void execute() { showIndeterminate(getString(R.string .updating_recent_repositories)); super.execute(); } @Override protected void onSuccess(Void result) throws Exception { super.onSuccess(result); ToastUtils.show(SettingsActivity.this, R.string. success_clearing_recent_repositories); } }.execute(); }</code><technical_language>This a ProgressDialogTask, this code drops disc cache, executes pretty fast is need in displaying progress</technical_language>

Target:
private void reloadRecentRepositories() { new AuthenticatedUserTask<Void>(this) { @Override protected Void run(Account account) throws IOException { List<User> orgs = accountDataManager.getOrgs(false); for (User org: orgs) { RecentRepositories cache = new RecentRepositories(SettingsActivity.this, org); cache.clearAll(); cache.saveAsync(); } return null; } @Override public void execute() { super.execute(); } @Override protected void onSuccess(Void result) throws Exception { super.onSuccess(result); ToastUtils.show(SettingsActivity.this, R.string. success_clearing_recent_repositories); } }.execute(); }
Source:
<code>public Map<Document, List<ValidationError>> validate(List<Document> documents) { Map<Document, List<ValidationError>> docErrorsMap = new HashMap<>(); <START> documents.forEach(e -> docErrorsMap.put(e, new ArrayList<>())); <END> runDocumentValidators(documents, docErrorsMap); runSectionValidators(documents, docErrorsMap); runSentenceValidators(documents, docErrorsMap); applyPreprocessorRules(documents, docErrorsMap); return docErrorsMap; }</code><technical_language>Thank for fix of UI @gerryhocks! this line is needed fix <LINK_0></technical_language>

Target:
public Map<Document, List<ValidationError>> validate(List<Document> documents) { Map<Document, List<ValidationError>> docErrorsMap = new HashMap<>(); documents.forEach(e -> docErrorsMap.put(e, new ArrayList<>())); initializeValidators(); runDocumentValidators(documents, docErrorsMap); runSectionValidators(documents, docErrorsMap); runSentenceValidators(documents, docErrorsMap); applyPreprocessorRules(documents, docErrorsMap); return docErrorsMap; }
Source:
<code>private boolean hostHasPpcArchitecture() { Cluster cluster = getModel().getSelectedCluster(); if (cluster == null) { return false; } ArchitectureType archType = cluster.getArchitecture(); return <START> (archType == ArchitectureType.ppc64) || <END> (archType == ArchitectureType.ppc64le) || (archType == ArchitectureType.ppcle); }</code><technical_language>equals instead of '==' (And do for 2 other conditions): ArchitectureType.ppc64.equals(archType);</technical_language>

Target:
private boolean hostHasPpcArchitecture() { Cluster cluster = getModel().getSelectedCluster(); if (cluster == null) { return false; } ArchitectureType archType = cluster.getArchitecture(); return ArchitectureType.ppc64.equals(archType) || ArchitectureType.ppc64le.equals(archType) || ArchitectureType.ppcle.equals(archType); }
Source:
<code>private void activate() { for (ExtensionEntry entry : loadedEntries.values()) { if (entry.enabled) { activatedEntries.put(entry.getName(), entry); <START> createExtension(entry, loadModule(entry.getConfig().getProperty(MODULE))); <END> List<ExtensionEntry> entries = providesEntries.get(entry.getProvides()); if (entries == null) { entries = new ArrayList<>(); providesEntries.put(entry.getProvides(), entries); } entries.add(entry); } } }</code><technical_language>I do createExtension modify entry... I be: entry.setExtension(createExtension(entry)) is reason load module function... also, I unsure function of createExtension is worth a separate function important. activateEntries.put()... initialization is success action, this enable skip extensions fail initialization. catch exceptions loop, allow proper initialization faulty extensions</technical_language>

Target:
private void activate() { for (ExtensionEntry entry : loadedEntries.values()) { try { if (entry.enabled) { entry.setExtension(createExtension(entry, loadModule(entry.getConfig().getProperty(MODULE)))); activatedEntries.put(entry.getName(), entry); MultiValueMapUtils.addToMap(entry.getProvides(), entry, providesEntries); } } catch (ConfigurationException ex) { log.error(String.format("Error in activating extension %1$s. Exception message is " + entry.getName()), ex.getMessage()); if (log.isDebugEnabled()) { log.error("", ex); } } } }
Source:
<code>private void sendEvent(Address subscriber, EventEnvelope eventEnvelope, int orderKey) { String serviceName = eventEnvelope.getServiceName(); EventServiceSegment segment = getSegment(serviceName, true); boolean sync = segment.incrementPublish() % eventSyncFrequency == 0; if (sync) { SendEventOperation op = new SendEventOperation(eventEnvelope, orderKey); Future f = nodeEngine.getOperationService() .createInvocationBuilder(serviceName, op, subscriber) .setTryCount(SEND_RETRY_COUNT).invoke(); try { f.get(sendEventSyncTimeoutMillis, MILLISECONDS); } catch (Exception e) { syncDeliveryFailureCount.inc(); if (logger.isFinestEnabled()) { logger.finest("Sync event delivery failed. Event: " + eventEnvelope, e); } } } else { Packet packet = new Packet(serializationService.toBytes(eventEnvelope), orderKey) .setPacketType(Packet.Type.EVENT) <START> .raiseFlags(Packet.FLAG_4_0); <END> EndpointManager em = nodeEngine.getNode().getNetworkingService().getEndpointManager(MEMBER); if (!em.transmit(packet, subscriber)) { if (nodeEngine.isRunning()) { logFailure("Failed to send event packet to: %s, connection might not be alive.", subscriber); } } } }</code><technical_language>minor: move raising FLAG_4_0 Packet constructor done in other PR</technical_language>

Target:
private void sendEvent(Address subscriber, EventEnvelope eventEnvelope, int orderKey) { String serviceName = eventEnvelope.getServiceName(); EventServiceSegment segment = getSegment(serviceName, true); boolean sync = segment.incrementPublish() % eventSyncFrequency == 0; if (sync) { SendEventOperation op = new SendEventOperation(eventEnvelope, orderKey); Future f = nodeEngine.getOperationService() .createInvocationBuilder(serviceName, op, subscriber) .setTryCount(SEND_RETRY_COUNT).invoke(); try { f.get(sendEventSyncTimeoutMillis, MILLISECONDS); } catch (Exception e) { syncDeliveryFailureCount.inc(); if (logger.isFinestEnabled()) { logger.finest("Sync event delivery failed. Event: " + eventEnvelope, e); } } } else { Packet packet = new Packet(serializationService.toBytes(eventEnvelope), orderKey) .setPacketType(Packet.Type.EVENT); EndpointManager em = nodeEngine.getNode().getNetworkingService().getEndpointManager(MEMBER); if (!em.transmit(packet, subscriber)) { if (nodeEngine.isRunning()) { logFailure("Failed to send event packet to: %s, connection might not be alive.", subscriber); } } } }
Source:
<code>private String createPatch(RevCommit commit) { Repository repository = input.getRepository(); CreatePatchOperation operation = new CreatePatchOperation( repository, commit); <START> operation.useGitFormat(true); <END> try { operation.execute(null); } catch (CoreException e) { Activator.logError(NLS.bind( UIText.CommitGraphTable_UnableToCreatePatch, commit .getId().name()), e); } String patchContent = operation.getPatchContent(); return patchContent; }</code><technical_language>default 0 for number of context lines. I prefer default in patch wizard. default number of context lines configurable a new preference</technical_language>

Target:
private String createPatch(RevCommit commit) { Repository repository = input.getRepository(); CreatePatchOperation operation = new CreatePatchOperation( repository, commit); operation.useGitFormat(true); operation.setContextLines(CreatePatchOperation.DEFAULT_CONTEXT_LINES); try { operation.execute(null); } catch (CoreException e) { Activator.logError(NLS.bind( UIText.CommitGraphTable_UnableToCreatePatch, commit .getId().name()), e); } String patchContent = operation.getPatchContent(); return patchContent; }
Source:
<code>public void reloadConfig() { <START> new GetRequest(mContext, mUrl, GetRequest.URI_CONFIG, mApiKey, null, result -> onReloadConfigComplete(result)); <END> }</code><technical_language>lamba rewritten this::onReloadConfigComplete</technical_language>

Target:
public void reloadConfig() { new GetRequest(mContext, mUrl, GetRequest.URI_CONFIG, mApiKey, null, this::onReloadConfigComplete); }
Source:
<code>private void createSnapshotsForDisks() { for (DiskImage image : getDisksList()) { VdcReturnValueBase vdcReturnValue = Backend.getInstance().runInternalAction( VdcActionType.CreateSnapshot, buildCreateSnapshotParameters(image), <START> cloneContextAndDetachFromParent()); <END> if (vdcReturnValue.getSucceeded()) { getTaskIdList().addAll(vdcReturnValue.getInternalVdsmTaskIdList()); } else { throw new VdcBLLException(vdcReturnValue.getFault().getError(), "Failed to create snapshot!"); } } }</code><technical_language>cloneContextAndDetachFromParent()? means tasks tab child commands create snapshot for vm</technical_language>

Target:
private void createSnapshotsForDisks() { for (DiskImage image : getDisksList()) { VdcReturnValueBase vdcReturnValue = Backend.getInstance().runInternalAction( VdcActionType.CreateSnapshot, buildCreateSnapshotParameters(image), ExecutionHandler.createDefaultContextForTasks(getContext())); if (vdcReturnValue.getSucceeded()) { getTaskIdList().addAll(vdcReturnValue.getInternalVdsmTaskIdList()); } else { throw new VdcBLLException(vdcReturnValue.getFault().getError(), "Failed to create snapshot!"); } } }
Source:
<code>public boolean matches(long ssrc) { <START> if (primarySSRC != ssrc && rtxSSRC != ssrc) <END> { return false; } return true; }</code><technical_language>return (primarySSRC == ssrc || rtxSSRC == ssrc)</technical_language>

Target:
public boolean matches(long ssrc) { return primarySSRC == ssrc || rtxSSRC == ssrc; }
Source:
<code>protected ILaunchConfiguration findLaunchConfiguration(IBinary bin, String mode) { ILaunchConfiguration configuration = null; ILaunchConfigurationType configType = getLaunchConfigType(); List<ILaunchConfiguration> candidateConfigs = Collections.emptyList(); try { ILaunchConfiguration[] configs = DebugPlugin.getDefault() .getLaunchManager().getLaunchConfigurations(configType); candidateConfigs = new ArrayList<>(configs.length); for (ILaunchConfiguration config : configs) { IPath programPath = CDebugUtils.getProgramPath(config); String projectName = CDebugUtils.getProjectName(config); IPath binPath = bin.getResource().getProjectRelativePath(); if (programPath != null && programPath.equals(binPath)) { if (projectName != null && projectName.equals(bin.getCProject() .getProject().getName())) { candidateConfigs.add(config); } } } } catch (CoreException e) { <START> e.printStackTrace(); <END> } int candidateCount = candidateConfigs.size(); if (candidateCount < 1) { configuration = createConfiguration(bin, mode, true); } else if (candidateCount == 1) { configuration = candidateConfigs.get(0); } else { configuration = chooseConfiguration(candidateConfigs, mode); } return configuration; }</code><technical_language>log Activator</technical_language>

Target:
protected ILaunchConfiguration findLaunchConfiguration(IBinary bin, String mode) { ILaunchConfiguration configuration = null; ILaunchConfigurationType configType = getLaunchConfigType(); List<ILaunchConfiguration> candidateConfigs = Collections.emptyList(); try { ILaunchConfiguration[] configs = DebugPlugin.getDefault() .getLaunchManager().getLaunchConfigurations(configType); candidateConfigs = new ArrayList<>(configs.length); for (ILaunchConfiguration config : configs) { IPath programPath = CDebugUtils.getProgramPath(config); String projectName = CDebugUtils.getProjectName(config); IPath binPath = bin.getResource().getProjectRelativePath(); if (programPath != null && programPath.equals(binPath)) { if (projectName != null && projectName.equals(bin.getCProject() .getProject().getName())) { candidateConfigs.add(config); } } } } catch (CoreException e) { DockerLaunchUIPlugin.log(e); } int candidateCount = candidateConfigs.size(); if (candidateCount < 1) { configuration = createConfiguration(bin, mode, true); } else if (candidateCount == 1) { configuration = candidateConfigs.get(0); } else { configuration = chooseConfiguration(candidateConfigs, mode); } return configuration; }
Source:
<code>List<MediaWikiDumpFile> findDumpsLocally(DumpContentType dumpContentType) { String directoryPrefix = dumpContentType.toString().toLowerCase() + "-"; List<String> dumpFileDirectories; try { dumpFileDirectories = this.dumpfileDirectoryManager .getSubdirectories(directoryPrefix + "*"); } catch (IOException e) { logger.error("Unable to access dump directory: " + e.toString()); return Collections.<MediaWikiDumpFile> emptyList(); } List<MediaWikiDumpFile> result = new ArrayList<MediaWikiDumpFile>(); for (String directory : dumpFileDirectories) { String dateStamp = directory.substring(directoryPrefix.length()); <START> if (dateStamp.matches("\\d\\d\\d\\d\\d\\d\\d\\d")) { <END> WmfLocalDumpFile dumpFile = new WmfLocalDumpFile(dateStamp, this.projectName, dumpfileDirectoryManager, dumpContentType); if (dumpFile.isAvailable()) { result.add(dumpFile); } else { logger.error("Incomplete local dump file data. Maybe delete " + dumpFile.getDumpfileDirectory() + " to attempt fresh download."); } } } Collections.sort(result, Collections .reverseOrder(new MediaWikiDumpFile.DateComparator())); return result; }</code><technical_language>I suggest defining this string a constant is later</technical_language>

Target:
List<MediaWikiDumpFile> findDumpsLocally(DumpContentType dumpContentType) { String directoryPattern = WmfDumpFile.getDumpFileDirectoryName( dumpContentType, "*"); List<String> dumpFileDirectories; try { dumpFileDirectories = this.dumpfileDirectoryManager .getSubdirectories(directoryPattern); } catch (IOException e) { logger.error("Unable to access dump directory: " + e.toString()); return Collections.<MediaWikiDumpFile> emptyList(); } List<MediaWikiDumpFile> result = new ArrayList<MediaWikiDumpFile>(); for (String directory : dumpFileDirectories) { String dateStamp = WmfDumpFile .getDateStampFromDumpFileDirectoryName(dumpContentType, directory); if (dateStamp.matches(WmfDumpFileManager.DATE_STAMP_PATTERN)) { WmfLocalDumpFile dumpFile = new WmfLocalDumpFile(dateStamp, this.projectName, dumpfileDirectoryManager, dumpContentType); if (dumpFile.isAvailable()) { result.add(dumpFile); } else { logger.error("Incomplete local dump file data. Maybe delete " + dumpFile.getDumpfileDirectory() + " to attempt fresh download."); } } } Collections.sort(result, Collections .reverseOrder(new MediaWikiDumpFile.DateComparator())); return result; }
Source:
<code>private void setModuleDefinitions(CuratorFramework client, StreamDefinition definition) { String streamName = definition.getName(); String path = Paths.build(Paths.STREAMS, streamName); try { byte[] bytes = client.getData().forPath(path); <START> if (bytes != null) { <END> Map<String, String> map = ZooKeeperUtils.bytesToMap(bytes); if (map.get(MODULE_DEFINITIONS_KEY) == null) { List<ModuleDescriptor> moduleDescriptors = this.parser.parse(streamName, definition.getDefinition(), definitionKind); List<ModuleDefinition> moduleDefinitions = createModuleDefinitions(moduleDescriptors); if (!moduleDefinitions.isEmpty()) { map.put(DEFINITION_KEY, definition.getDefinition()); try { map.put(MODULE_DEFINITIONS_KEY, objectWriter.writeValueAsString(moduleDefinitions)); byte[] binary = ZooKeeperUtils.mapToBytes(map); BackgroundPathAndBytesable<?> op = client.checkExists().forPath(path) == null ? client.create() : client.setData(); op.forPath(path, binary); } catch (JsonProcessingException jpe) { logger.error("Exception writing module definitions " + moduleDefinitions + " for the stream " + streamName + " : " + jpe); } } } } } catch (Exception e) { logger.error("Exception when updating module definitions for the stream " + streamName + " : " + e); } }</code><technical_language>If stream node exists is empty, desirable populate new format? If so, suggestion: byte[] bytes = client.getData().forPath(path); Map<String, String> map = bytes == null ? new HashMap<String, String>() : ZooKeeperUtils.bytesToMap(bytes);</technical_language>

Target:
private void setModuleDefinitions(CuratorFramework client, StreamDefinition definition) { String streamName = definition.getName(); String path = Paths.build(Paths.STREAMS, streamName); try { byte[] bytes = client.getData().forPath(path); if (bytes != null) { Map<String, String> map = ZooKeeperUtils.bytesToMap(bytes); if (map.get(MODULE_DEFINITIONS_KEY) == null) { List<ModuleDescriptor> moduleDescriptors = this.parser.parse(streamName, definition.getDefinition(), definitionKind); List<ModuleDefinition> moduleDefinitions = createModuleDefinitions(moduleDescriptors); if (!moduleDefinitions.isEmpty()) { map.put(DEFINITION_KEY, definition.getDefinition()); try { map.put(MODULE_DEFINITIONS_KEY, objectWriter.writeValueAsString(moduleDefinitions)); byte[] binary = ZooKeeperUtils.mapToBytes(map); BackgroundPathAndBytesable<?> op = client.checkExists().forPath(path) == null ? client.create() : client.setData(); op.forPath(path, binary); } catch (JsonProcessingException jpe) { logger.error("Exception writing module definitions " + moduleDefinitions + " for the stream " + streamName, jpe); } } } } } catch (Exception e) { logger.error("Exception when updating module definitions for the stream " + streamName, e); } }
Source:
<code>private void populateSerializedRowSizes(int fixedWidthRowSize, List<Integer> variableWidthChannels) { if (variableWidthChannels.isEmpty()) { return; } <START> serializedRowSizes = ensureCapacity(serializedRowSizes, positionCount, SMALL, false, true); <END> for (int i : variableWidthChannels) { blockEncodingBuffers[i].accumulateSerializedRowSizes(serializedRowSizes); } for (int i = 0; i < positionCount; i++) { serializedRowSizes[i] += fixedWidthRowSize; } }</code><technical_language>Instead of passing initialize=true, i run fill method here. more readable</technical_language>

Target:
private void populateSerializedRowSizes(int fixedWidthRowSize, List<Integer> variableWidthChannels) { if (variableWidthChannels.isEmpty()) { return; } serializedRowSizes = ensureCapacity(serializedRowSizes, positionCount, SMALL, INITIALIZE); for (int i : variableWidthChannels) { blockEncodingBuffers[i].accumulateSerializedRowSizes(serializedRowSizes); } for (int i = 0; i < positionCount; i++) { serializedRowSizes[i] += fixedWidthRowSize; } }
Source:
<code><START> private void handleCredentials(HttpServletRequest request, String user, String password) { <END> UserProfile userProfile = translateUser(user); if (userProfile == null || userProfile.profile == null) { log.error(String.format("Error in obtaining profile %1$s", userProfile.profile)); } else { ExtMap outputMap = userProfile.profile.getAuthn().invoke(new ExtMap().mput( Base.InvokeKeys.COMMAND, Authn.InvokeCommands.AUTHENTICATE_CREDENTIALS ).mput( Authn.InvokeKeys.USER, userProfile.userName ).mput( Authn.InvokeKeys.CREDENTIALS, password ) ); if (outputMap.<Integer> get(Base.InvokeKeys.RESULT) == Base.InvokeResult.SUCCESS && outputMap.<Integer> get(Authn.InvokeKeys.RESULT) == Authn.AuthResult.SUCCESS) { request.setAttribute(FiltersHelper.Constants.REQUEST_AUTH_RECORD_KEY, outputMap.<ExtMap> get(Authn.InvokeKeys.AUTH_RECORD)); request.setAttribute(FiltersHelper.Constants.REQUEST_PROFILE_KEY, userProfile.profile.getName()); } else { log.error( String.format( "Failure in authentication to profile %1$s. Invocation Result code is %2$s. Authn result code is %3$s", userProfile.profile, outputMap.<Integer> get(Base.InvokeKeys.RESULT), outputMap.<Integer> get(Authn.InvokeKeys.RESULT) ) ); } } }</code><technical_language>This method is impossible understand review, full of casts untyped method calls</technical_language>

Target:
private void handleCredentials(HttpServletRequest request, String user, String password) { UserProfile userProfile = translateUser(user); if (userProfile == null || userProfile.profile == null) { log.error("Error in obtaining profile {}", userProfile.profile); } else { ExtMap outputMap = userProfile.profile.getAuthn().invoke(new ExtMap().mput( Base.InvokeKeys.COMMAND, Authn.InvokeCommands.AUTHENTICATE_CREDENTIALS ).mput( Authn.InvokeKeys.USER, userProfile.userName ).mput( Authn.InvokeKeys.CREDENTIALS, password ) ); if (outputMap.<Integer> get(Base.InvokeKeys.RESULT) == Base.InvokeResult.SUCCESS && outputMap.<Integer> get(Authn.InvokeKeys.RESULT) == Authn.AuthResult.SUCCESS) { request.setAttribute(FiltersHelper.Constants.REQUEST_AUTH_RECORD_KEY, outputMap.<ExtMap> get(Authn.InvokeKeys.AUTH_RECORD)); request.setAttribute(FiltersHelper.Constants.REQUEST_PROFILE_KEY, userProfile.profile.getName()); } else { log.error("Failure in authentication to profile {}. Invocation Result code is {}. Authn result code is {}", userProfile.profile, outputMap.<Integer> get(Base.InvokeKeys.RESULT), outputMap.<Integer> get(Authn.InvokeKeys.RESULT) ); } } }
Source:
<code>protected File getTemporaryFile(IngestJobContext context, AbstractFile file) throws DroneIngestException { String tempFileName = file.getName() + file.getId() + file.getNameExtension(); Path tempFilePath = Paths.get(getExtractorTempPath().toString(), tempFileName); try { ContentUtils.writeToFile(file, tempFilePath.toFile(), context::dataSourceIngestIsCancelled); } catch (IOException ex) { <START> throw new DroneIngestException(String.format("Unable to create temp file %s for abstract file %s", tempFilePath.toString(), file.getName()), ex); END> } return tempFilePath.toFile(); }</code><technical_language>log object id well</technical_language>

Target:
protected File getTemporaryFile(IngestJobContext context, AbstractFile file) throws DroneIngestException { String tempFileName = file.getName() + file.getId() + file.getNameExtension(); Path tempFilePath = Paths.get(getExtractorTempPath().toString(), tempFileName); try { ContentUtils.writeToFile(file, tempFilePath.toFile(), context::dataSourceIngestIsCancelled); } catch (IOException ex) { throw new DroneIngestException(String.format("Unable to create temp file %s for abstract file %s objectID: %d", tempFilePath.toString(), file.getName(), file.getId()), ex); } return tempFilePath.toFile(); }
Source:
<code>public LauncherDiscoveryResult discover(LauncherDiscoveryRequest request, String phase) { Map<TestEngine, TestDescriptor> testEngineDescriptors = new LinkedHashMap<>(); for (TestEngine testEngine : this.testEngines) { boolean engineIsExcluded = request.getEngineFilters().stream() .map(engineFilter -> engineFilter.apply(testEngine)) .anyMatch(FilterResult::excluded); if (engineIsExcluded) { logger.debug(() -> String.format( "Test discovery for engine '%s' was skipped due to an EngineFilter in phase '%s'.", testEngine.getId(), phase)); continue; } logger.debug(() -> String.format("Discovering tests during Launcher %s phase in engine '%s'.", phase, testEngine.getId())); TestDescriptor rootDescriptor = discoverEngineRoot(testEngine, request); testEngineDescriptors.put(testEngine, rootDescriptor); } <START> final List<PostDiscoveryFilter> filters = new LinkedList<>(postDiscoveryFilters); <END> filters.addAll(request.getPostDiscoveryFilters()); applyPostDiscoveryFilters(testEngineDescriptors, filters); prune(testEngineDescriptors); return new LauncherDiscoveryResult(testEngineDescriptors, request.getConfigurationParameters()); }</code><technical_language>nit: final for local variables. suggestion List<PostDiscoveryFilter> filters = new LinkedList<>(postDiscoveryFilters);</technical_language>

Target:
public LauncherDiscoveryResult discover(LauncherDiscoveryRequest request, String phase) { Map<TestEngine, TestDescriptor> testEngineDescriptors = new LinkedHashMap<>(); for (TestEngine testEngine : this.testEngines) { boolean engineIsExcluded = request.getEngineFilters().stream() .map(engineFilter -> engineFilter.apply(testEngine)) .anyMatch(FilterResult::excluded); if (engineIsExcluded) { logger.debug(() -> String.format( "Test discovery for engine '%s' was skipped due to an EngineFilter in phase '%s'.", testEngine.getId(), phase)); continue; } logger.debug(() -> String.format("Discovering tests during Launcher %s phase in engine '%s'.", phase, testEngine.getId())); TestDescriptor rootDescriptor = discoverEngineRoot(testEngine, request); testEngineDescriptors.put(testEngine, rootDescriptor); } List<PostDiscoveryFilter> filters = new LinkedList<>(postDiscoveryFilters); filters.addAll(request.getPostDiscoveryFilters()); applyPostDiscoveryFilters(testEngineDescriptors, filters); prune(testEngineDescriptors); return new LauncherDiscoveryResult(testEngineDescriptors, request.getConfigurationParameters()); }
Source:
<code>public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final MesosClientErrorContext that = (MesosClientErrorContext) o; if (statusCode != that.statusCode) { return false; } if (message != null ? !message.equals(that.message) : that.message != null) { return false; } <START> return !(headers != null ? !headers.equals(that.headers) : that.headers != null); <END> }</code><technical_language>field tests done java.util.Objects.equals(): java return Objects.equals(this.message, that.message) && Objects.equals(this.headers, that.headers);</technical_language>

Target:
public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final MesosClientErrorContext that = (MesosClientErrorContext) o; return statusCode == that.statusCode && Objects.equals(message, that.message) && Objects.equals(headers, that.headers); }
Source:
<code>private void updatePlaybackPositions() throws ExoPlaybackException { if (playingPeriodHolder == null) { return; } long periodPositionUs = playingPeriodHolder.mediaPeriod.readDiscontinuity(); if (periodPositionUs != C.TIME_UNSET) { resetRendererPosition(periodPositionUs); } else { <START> rendererPositionUs = rendererMediaClock.getPositionUs(); <END> standaloneMediaClock.setPositionUs(rendererPositionUs); periodPositionUs = rendererPositionUs - playingPeriodHolder.rendererPositionOffsetUs; } playbackInfo.positionUs = periodPositionUs; elapsedRealtimeUs = SystemClock.elapsedRealtime() * 1000; long bufferedPositionUs = enabledRenderers.length == 0 ? C.TIME_END_OF_SOURCE : playingPeriodHolder.mediaPeriod.getBufferedPositionUs(); playbackInfo.bufferedPositionUs = bufferedPositionUs == C.TIME_END_OF_SOURCE ? timeline.getPeriod(playingPeriodHolder.index, period).getDurationUs() : bufferedPositionUs; }</code><technical_language>movies video crash; **_It is access rendererMediaClock a video-only movie, rendererMediaClock NULL for cases;_** Please fix it, thanks</technical_language>

Target:
private void updatePlaybackPositions() throws ExoPlaybackException { if (playingPeriodHolder == null) { return; } long periodPositionUs = playingPeriodHolder.mediaPeriod.readDiscontinuity(); if (periodPositionUs != C.TIME_UNSET) { resetRendererPosition(periodPositionUs); } else { if (rendererMediaClockSource != null && !rendererMediaClockSource.isEnded()) { rendererPositionUs = rendererMediaClock.getPositionUs(); standaloneMediaClock.setPositionUs(rendererPositionUs); } else { rendererPositionUs = standaloneMediaClock.getPositionUs(); } periodPositionUs = rendererPositionUs - playingPeriodHolder.rendererPositionOffsetUs; } playbackInfo.positionUs = periodPositionUs; elapsedRealtimeUs = SystemClock.elapsedRealtime() * 1000; long bufferedPositionUs = enabledRenderers.length == 0 ? C.TIME_END_OF_SOURCE : playingPeriodHolder.mediaPeriod.getBufferedPositionUs(); playbackInfo.bufferedPositionUs = bufferedPositionUs == C.TIME_END_OF_SOURCE ? timeline.getPeriod(playingPeriodHolder.index, period).getDurationUs() : bufferedPositionUs; }
Source:
<code>public void shouldOptionReturnNotNull() { <START> assertThat(option(1)).isNotNull(); <END> }</code><technical_language>provide a test for option(null) also, behave differently some (I guess represent a intuitively)</technical_language>

Target:
public void shouldOptionReturnNotNull() { assertThat(Option(1)).isNotNull(); }
Source:
<code>static void mongoInsertDefaultGroupId(final DB dbs, final String assignmentId, final List<String>... ids) { final DBRef myDbRef = new DBRef(dbs, getCollectionFromType(School.ItemType.ASSIGNMENT), new ObjectId(assignmentId)); final DBObject corsor = myDbRef.fetch(); <START> final DBCollection assignments = dbs.getCollection(getCollectionFromType(School.ItemType.ASSIGNMENT)); <END> final BasicDBObject updateQuery = new BasicDBObject(); LOG.info("Updated Query: ", updateQuery); assignments.update(corsor, updateQuery); }</code><technical_language>is this object called collections in other methods?</technical_language>

Target:
static void mongoInsertDefaultGroupId(final DB dbs, final String assignmentId, final List<String>... ids) { final DBRef myDbRef = new DBRef(dbs, getCollectionFromType(School.ItemType.ASSIGNMENT), new ObjectId(assignmentId)); final DBObject corsor = myDbRef.fetch(); final DBCollection assignmentCollection = dbs.getCollection(getCollectionFromType(School.ItemType.ASSIGNMENT)); final BasicDBObject updateQuery = new BasicDBObject(); LOG.info("Updated Query: ", updateQuery); assignmentCollection.update(corsor, updateQuery); }
Source:
<code>private Map<String, String> getFormattingProperties(String rawFormat, List<String> positionalParameters) { Map<String, String> properties = new HashMap<String, String>(); String[] valpairs = rawFormat.split(","); for (String pair : valpairs) { Matcher matcher = keyvalpattern.matcher(pair.trim()); String key, value; if (matcher.find()) { key = matcher.group(1); value = matcher.group(2); properties.put(key, value); } else { <START> if(positionalParameters.isEmpty()) { <END> } else { properties.put(positionalParameters.remove(0),pair.trim()); } } } return properties; }</code><technical_language>this file formatted correctly. Eclipse Java editor (it format save)</technical_language>

Target:
private Map<String, String> getFormattingProperties(String rawFormat, List<String> positionalParameters) { Map<String, String> properties = new HashMap<String, String>(); String[] valpairs = rawFormat.split(","); for (String pair : valpairs) { Matcher matcher = keyValuePattern.matcher(pair.trim()); String key, value; if (matcher.find()) { key = matcher.group(1); value = matcher.group(2); properties.put(key, value); } else { if (positionalParameters.isEmpty()) { } else { properties.put(positionalParameters.remove(0), pair.trim()); } } } return properties; }
Source:
<code>private void activeEditorChanged(IWorkbenchPart editor) { ITranslationUnit tu = null; <START> if (editor instanceof CEditor) <END> tu = ((CEditor) editor).getTranslationUnit(); if (tu == null && editor != null) { ITranslationUnitProvider provider = (ITranslationUnitProvider) editor.getAdapter(ITranslationUnitProvider.class); if (provider != null) tu = provider.getTranslationUnit(); } synchronized (this) { fActiveEditor= editor; fTimeStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; fCache.setActiveElement(tu); } }</code><technical_language>This 'if' statement is redundant now</technical_language>

Target:
private void activeEditorChanged(IWorkbenchPart editor) { ITranslationUnit tu = null; if (editor instanceof CEditor) tu = ((CEditor) editor).getTranslationUnit(); if (tu == null && editor != null) { ITranslationUnitHolder provider = (ITranslationUnitHolder) editor.getAdapter(ITranslationUnitHolder.class); if (provider != null) tu = provider.getTranslationUnit(); } synchronized (this) { fActiveEditor= editor; fTimeStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; fCache.setActiveElement(tu); } }
Source:
<code>public static void main(String[] args) { try { Options options = getOptions(); CommandLineParser parser = new DefaultParser(); final CommandLine cmdLine = parser.parse(options, args); validateCommandLine(cmdLine); if (cmdLine.hasOption("l")) { Properties properties = new Properties(); properties.load(new FileInputStream(cmdLine.getOptionValue("l"))); <START> LogManager.resetConfiguration(); <END> PropertyConfigurator.configure(properties); } switch (cmdLine.getArgs().length) { case 1: final String filename = cmdLine.getArgs()[0]; final File file = new File(filename); if (filename.endsWith(".asn")) { testReadingAsnFile(file); } else { testReadingBerFile(file); } break; case 2: throw new ParseException("Top level type name not supplied"); case 3: { final String asnFilename = cmdLine.getArgs()[0].endsWith(".asn") ? cmdLine.getArgs()[0] : cmdLine.getArgs()[1]; final String berFilename = cmdLine.getArgs()[0].endsWith(".asn") ? cmdLine.getArgs()[1] : cmdLine.getArgs()[0]; final String topLevelType = cmdLine.getArgs()[2]; final File asnFile = new File(asnFilename); final File berFile = new File(berFilename); final CharSource schemaSource = Files.asCharSource(asnFile, Charsets.UTF_8); final AsnSchema asnSchema = AsnSchemaReader.read(schemaSource); handleDataFile(berFile, asnSchema, topLevelType); } break; default: throw new ParseException("No ASN Schema (.asn) or ASN Data (.ber) file supplied"); } } catch (final IOException ex) { logger.error("Could not parse file", ex); System.exit(1); } catch (final ParseException e) { printUsage(e.getMessage()); System.exit(1); } }</code><technical_language>I love this. slf4j a logging facade, meaning able plug in logging implementations build step needing change code. log4j I undermining this - I mistaken</technical_language>

Target:
public static void main(String[] args) { try { Options options = getOptions(); CommandLineParser parser = new DefaultParser(); final CommandLine cmdLine = parser.parse(options, args); validateCommandLine(cmdLine); switch (cmdLine.getArgs().length) { case 1: final String filename = cmdLine.getArgs()[0]; final File file = new File(filename); if (filename.endsWith(".asn")) { testReadingAsnFile(file); } else { testReadingBerFile(file); } break; case 2: throw new ParseException("Top level type name not supplied"); case 3: { final String asnFilename = cmdLine.getArgs()[0].endsWith(".asn") ? cmdLine.getArgs()[0] : cmdLine.getArgs()[1]; final String berFilename = cmdLine.getArgs()[0].endsWith(".asn") ? cmdLine.getArgs()[1] : cmdLine.getArgs()[0]; final String topLevelType = cmdLine.getArgs()[2]; final File asnFile = new File(asnFilename); final File berFile = new File(berFilename); final CharSource schemaSource = Files.asCharSource(asnFile, Charsets.UTF_8); final AsnSchema asnSchema = AsnSchemaReader.read(schemaSource); handleDataFile(berFile, asnSchema, topLevelType); } break; default: throw new ParseException("No ASN Schema (.asn) or ASN Data (.ber) file supplied"); } } catch (final IOException ex) { logger.error("Could not parse file", ex); System.exit(1); } catch (final ParseException e) { printUsage(e.getMessage()); System.exit(1); } }
Source:
<code>public Optional<Instant> getLastRun(final UUID reportId, final Organization organization) throws NoSuchElementException { return Ebean.find(ReportExecution.class) .orderBy() .desc("completed_at") .where() .eq("report.uuid", reportId) .eq("report.organization.uuid", organization.getId()) <START> .eq("state", ReportExecution.State.SUCCESS) <END> .findOneOrEmpty() .map(ReportExecution::getCompletedAt); }</code><technical_language>This implies continuously retry a failed report succeeds? want</technical_language>

Target:
public Optional<Instant> getLastRun(final UUID reportId, final Organization organization) throws NoSuchElementException { assertIsOpen(); return Ebean.find(ReportExecution.class) .orderBy() .desc("completed_at") .where() .eq("report.uuid", reportId) .eq("report.organization.uuid", organization.getId()) .in("state", ReportExecution.State.SUCCESS, ReportExecution.State.FAILURE) .findOneOrEmpty() .map(ReportExecution::getCompletedAt); }
Source:
<code>public void test_fetch_upload_id_finds_improperly_formatted_file() throws IOException { val dir = <START> new File(getClass().getClassLoader().getResource("fixtures/upload/placeholder-upload-file.txt").getFile()); <END> Optional<String> result = UploadStateStore.fetchUploadId(dir, "invalid-upload-id"); assertFalse(result.isPresent()); }</code><technical_language>Factor out</technical_language>

Target:
public void test_fetch_upload_id_finds_improperly_formatted_file() throws IOException { val dir = getTestResourceRoot(); Optional<String> result = UploadStateStore.fetchUploadId(dir, "invalid-upload-id"); assertThat(result.isPresent()).isFalse(); }
Source:
<code>public void selectionChanged(SelectionChangedEvent event) { ISelection selection = event.getSelection(); if (selection instanceof IStructuredSelection) { if (((getActivePartSource() instanceof SelectionProviderDelegator) && !((SelectionProviderDelegator) getActivePartSource()).containsSelectionProvider(event.getSource())) || (!(getActivePartSource() instanceof SelectionProviderDelegator) && event.getSource() != getActivePartSource())) { return; } if (event.getSource().equals(navigator.getCommonViewer())) { IWorkbenchPage page = EclipseUIUtil.getActivePage(); IEditorPart activeEditor = page.getActiveEditor(); if (activeEditor instanceof DialectEditor) { DialectEditor dialectEditor = (DialectEditor) activeEditor; page.bringToTop(dialectEditor); selectRepresentationElements(selection, dialectEditor); } else if (activeEditor != null && SESSION_EDITOR_CLASS_NAME.equals(activeEditor.getClass().getName()) && activeEditor instanceof ISelectionListener) { page.bringToTop(activeEditor); ISelectionListener selectionEditor = (ISelectionListener) activeEditor; selectionEditor.selectionChanged(partService.getActivePart(), selection); } } else { Set<Object> targets = getTargetsFromSelection((IStructuredSelection) selection); <START> if (targets.isEmpty()) { List<?> list = ((IStructuredSelection) selection).toList(); targets = Sets.newHashSet(list); } <END> if (!targets.isEmpty()) { navigator.selectReveal(new StructuredSelection(targets.toArray())); } } } }</code><technical_language>this change here? works representations</technical_language>

Target:
public void selectionChanged(SelectionChangedEvent event) { ISelection selection = event.getSelection(); if (selection instanceof IStructuredSelection) { if (((getActivePartSource() instanceof SelectionProviderDelegator) && !((SelectionProviderDelegator) getActivePartSource()).containsSelectionProvider(event.getSource())) || (!(getActivePartSource() instanceof SelectionProviderDelegator) && event.getSource() != getActivePartSource())) { return; } if (event.getSource().equals(navigator.getCommonViewer())) { IWorkbenchPage page = EclipseUIUtil.getActivePage(); IEditorPart activeEditor = page.getActiveEditor(); if (activeEditor instanceof DialectEditor) { DialectEditor dialectEditor = (DialectEditor) activeEditor; page.bringToTop(dialectEditor); selectRepresentationElements(selection, dialectEditor); } else if (activeEditor != null && SiriusEditPlugin.SESSION_EDITOR_CLASS_NAME.equals(activeEditor.getClass().getName()) && activeEditor instanceof ISelectionListener) { page.bringToTop(activeEditor); ISelectionListener selectionEditor = (ISelectionListener) activeEditor; selectionEditor.selectionChanged(partService.getActivePart(), selection); } } else { Set<Object> targets = getTargetsFromSelection((IStructuredSelection) selection); if (!targets.isEmpty()) { navigator.selectReveal(new StructuredSelection(targets.toArray())); } } } }
Source:
<code><START> boolean closeOnProtocolViolation() { <END> return closeOnProtocolViolation; }</code><technical_language>methods public this</technical_language>

Target:
public boolean closeOnProtocolViolation() { return closeOnProtocolViolation; }
Source:
<code>protected static Set<TopicPartition> determinePartitionsToPause(Set<TopicPartition> currentAssignment, Map<String, Set<String>> configuredForPause, Set<TopicPartition> autoPause) { Set<TopicPartition> partitionsToPause = new HashSet<>(); for (TopicPartition assigned : currentAssignment) { if (isPartitionConfiguredForPause(assigned, configuredForPause)) { partitionsToPause.add(assigned); } <START> if (autoPause.contains(assigned)) { <END> if (!partitionsToPause.add(assigned)) { autoPause.remove(assigned); } } } return partitionsToPause; }</code><technical_language>nit: change this to: autoPause.contains(assigned) && !partitionsToPause.add(assigned) { autoPause.remove(assigned); }</technical_language>

Target:
protected static Set<TopicPartition> determinePartitionsToPause(Set<TopicPartition> currentAssignment, Map<String, Set<String>> configuredForPause, Set<TopicPartition> autoPause) { Set<TopicPartition> partitionsToPause = new HashSet<>(); for (TopicPartition assigned : currentAssignment) { if (isPartitionConfiguredForPause(assigned, configuredForPause)) { partitionsToPause.add(assigned); } if (autoPause.contains(assigned) && !partitionsToPause.add(assigned)) { autoPause.remove(assigned); } } return partitionsToPause; }
Source:
<code>protected Guid getImageGroupId() { return <START> getRepresentativeImage().map(img <END> -> img.getId()).orElse(Guid.Empty); }</code><technical_language>a function reference - DiskImage::getId</technical_language>

Target:
protected Guid getImageGroupId() { return getRepresentativeImage().map(DiskImage::getId).orElse(Guid.Empty); }
Source:
<code>public void downloadExcludedDependencyToLocalRepository(Artifact artifact) throws MojoExecutionException { CollectRequest collectRequest = new CollectRequest(); <START> collectRequest.setRoot(new org.eclipse.aether.graph.Dependency(RepositoryUtils.toArtifact(artifact), null)); <END> for (RemoteRepository repository : toAetherRepos(remoteRepositories)) { collectRequest.addRepository(repository); } DependencyFilter dependencyFilter = DependencyFilterUtils.classpathFilter(JavaScopes.RUNTIME); DependencyRequest dependencyRequest = new DependencyRequest(collectRequest, dependencyFilter); try { DependencyResult dependencyResult = repositorySystem.resolveDependencies(repositorySystemSession, dependencyRequest); List<ArtifactResult> results = dependencyResult.getArtifactResults(); if (results != null && results.size() != 0) { org.eclipse.aether.artifact.Artifact resolved = results.get(0).getArtifact(); artifact.setFile(resolved.getFile()); } } catch (DependencyResolutionException e) { throw new MojoExecutionException("Error while resolving dependency", e); } }</code><technical_language>Is a reason canonical name of org.eclipse.aether.graph.Dependency here? I in imports</technical_language>

Target:
public void downloadExcludedDependencyToLocalRepository(Artifact artifact) throws MojoExecutionException { CollectRequest collectRequest = new CollectRequest(); collectRequest.setRoot(new Dependency(RepositoryUtils.toArtifact(artifact), null)); for (RemoteRepository repository : toAetherRepos(remoteRepositories)) { collectRequest.addRepository(repository); } DependencyFilter dependencyFilter = DependencyFilterUtils .classpathFilter(JavaScopes.RUNTIME, JavaScopes.COMPILE, JavaScopes.PROVIDED, JavaScopes.SYSTEM, JavaScopes.TEST); DependencyRequest dependencyRequest = new DependencyRequest(collectRequest, dependencyFilter); try { DependencyResult dependencyResult = repositorySystem.resolveDependencies(repositorySystemSession, dependencyRequest); List<ArtifactResult> results = dependencyResult.getArtifactResults(); if (results != null && results.size() != 0) { org.eclipse.aether.artifact.Artifact resolved = results.get(0).getArtifact(); artifact.setFile(resolved.getFile()); } } catch (DependencyResolutionException e) { throw new MojoExecutionException("Error while resolving dependency " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion(), e); } }
Source:
<code>public static void assertAndLogWithException(Logger log, boolean cheapTest, String format, Throwable t, Object... args) { if (!cheapTest) { Object[] newArgs = new Object[args.length + 1]; <START> newArgs[0] = t; <END> System.arraycopy(args,0, newArgs, 1, args.length); log.error("Assertion " + format + " with exception ", newArgs); assert false : format; } }</code><technical_language>verified this works expected? I throwable needs parameter</technical_language>

Target:
public static void assertAndLogWithException(Logger log, boolean cheapTest, String format, Throwable t, Object... args) { if (!cheapTest) { Object[] newArgs = Arrays.copyOf(args, args.length + 2); newArgs[args.length] = SafeArg.of("format", format); newArgs[args.length + 1] = t; log.error("Assertion with exception!", newArgs); assert false : format; } }
Source:
<code>public RunLengthBitPackingHybridValuesWriter(int bitWidth, int initialCapacity, int pageSize, ByteBufferAllocator allocator) { <START> this.allocator = allocator; <END> this.encoder = new RunLengthBitPackingHybridEncoder(bitWidth, initialCapacity, pageSize, this.allocator); }</code><technical_language>unused</technical_language>

Target:
public RunLengthBitPackingHybridValuesWriter(int bitWidth, int initialCapacity, int pageSize, ByteBufferAllocator allocator) { this.encoder = new RunLengthBitPackingHybridEncoder(bitWidth, initialCapacity, pageSize, allocator); }
Source:
<code>public static byte[] writeUnsignedITF8(final int value) { <START> final ByteBuffer buffer = ByteBuffer.allocate(10); <END> writeUnsignedITF8(value, buffer); buffer.flip(); final byte[] array = new byte[buffer.limit()]; buffer.get(array); buffer.clear(); return array; }</code><technical_language>I this code moved elsewhere, is 10 meaningful ? harmless, random over-allocation half. Is this more max # of bytes in ITF8 encoding for int, is 5?. this new MAX_BYTES constant</technical_language>

Target:
public static byte[] writeUnsignedITF8(final int value) { final ByteBuffer buffer = ByteBuffer.allocate(MAX_BYTES); writeUnsignedITF8(value, buffer); buffer.flip(); final byte[] array = new byte[buffer.limit()]; buffer.get(array); buffer.clear(); return array; }
Source:
<code>public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); setContentView(R.layout.main); mActivityWeakRef = new WeakReference<>(this); mInitialStartup = Application.getPrefs().getBoolean(INITIAL_STARTUP, true); <START> Application.get().setUpSocial(); <END> setupNavigationDrawer(); setupSlidingPanel(); setupMapState(savedInstanceState); setupLayersSpeedDial(); setupMyLocationButton(); setupZoomButtons(); setupGooglePlayServices(); UIUtils.setupActionBar(this); if (!mInitialStartup || PermissionUtils.hasGrantedPermissions(this, LOCATION_PERMISSIONS)) { checkRegionStatus(); } Bundle b = getIntent().getExtras(); if (b != null) { if (b.getBoolean(ShowcaseViewUtils.TUTORIAL_WELCOME)) { ShowcaseViewUtils.showTutorial(ShowcaseViewUtils.TUTORIAL_WELCOME, this, null); } } }</code><technical_language>This is late. setUpSocial called setContentView (line 355) calls NavigationDrawerFragment's onCreate() forces select saved item (in this case ES fragment)</technical_language>

Target:
public void onCreate(Bundle savedInstanceState) { requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); super.onCreate(savedInstanceState); Application.get().setUpSocial(); setContentView(R.layout.main); mActivityWeakRef = new WeakReference<>(this); mInitialStartup = Application.getPrefs().getBoolean(INITIAL_STARTUP, true); setupNavigationDrawer(); setupSlidingPanel(); setupMapState(savedInstanceState); setupLayersSpeedDial(); setupMyLocationButton(); setupZoomButtons(); setupGooglePlayServices(); UIUtils.setupActionBar(this); if (!mInitialStartup || PermissionUtils.hasGrantedPermissions(this, LOCATION_PERMISSIONS)) { checkRegionStatus(); } Bundle b = getIntent().getExtras(); if (b != null) { if (b.getBoolean(ShowcaseViewUtils.TUTORIAL_WELCOME)) { ShowcaseViewUtils.showTutorial(ShowcaseViewUtils.TUTORIAL_WELCOME, this, null); } } }