auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
<code>public Map<StreamId, OrcDataSourceInput> getInputs(OrcDataSource orcDataSource, StripeId stripeId, Map<StreamId, DiskRange> diskRanges) throws IOException { ImmutableMap.Builder<StreamId, OrcDataSourceInput> inputsBuilder = ImmutableMap.builder(); ImmutableMap.Builder<StreamId, DiskRange> diskRangesBuilder = ImmutableMap.builder(); for (Entry<StreamId, DiskRange> entry : diskRanges.entrySet()) { if (isCachedStream(entry.getKey().getStreamKind())) { Slice streamSlice = stripeStreamCache.getIfPresent(new StripeStreamId(stripeId, entry.getKey())); if (streamSlice != null) { inputsBuilder.put(entry.getKey(), new OrcDataSourceInput(new BasicSliceInput(streamSlice), streamSlice.length())); } else { diskRangesBuilder.put(entry); } } else { diskRangesBuilder.put(entry); } } <START> Map<StreamId, OrcDataSourceInput> notCachedInputs = delegate.getInputs(orcDataSource, stripeId, diskRangesBuilder.build()); <END> for (Entry<StreamId, OrcDataSourceInput> entry : notCachedInputs.entrySet()) { if (isCachedStream(entry.getKey().getStreamKind())) { Slice streamSlice = entry.getValue().getInput().readSlice(toIntExact(entry.getValue().getInput().length())); stripeStreamCache.put(new StripeStreamId(stripeId, entry.getKey()), streamSlice); inputsBuilder.put(entry.getKey(), new OrcDataSourceInput(new BasicSliceInput(streamSlice), toIntExact(streamSlice.getRetainedSize()))); } else { inputsBuilder.put(entry.getKey(), entry.getValue()); } } return inputsBuilder.build(); }</code><technical_language>uncachedInputs</technical_language>

Target:
public Map<StreamId, OrcDataSourceInput> getInputs(OrcDataSource orcDataSource, StripeId stripeId, Map<StreamId, DiskRange> diskRanges) throws IOException { ImmutableMap.Builder<StreamId, OrcDataSourceInput> inputsBuilder = ImmutableMap.builder(); ImmutableMap.Builder<StreamId, DiskRange> uncachedDiskRangesBuilder = ImmutableMap.builder(); for (Entry<StreamId, DiskRange> entry : diskRanges.entrySet()) { if (isCachedStream(entry.getKey().getStreamKind())) { Slice streamSlice = stripeStreamCache.getIfPresent(new StripeStreamId(stripeId, entry.getKey())); if (streamSlice != null) { inputsBuilder.put(entry.getKey(), new OrcDataSourceInput(new BasicSliceInput(streamSlice), streamSlice.length())); } else { uncachedDiskRangesBuilder.put(entry); } } else { uncachedDiskRangesBuilder.put(entry); } } Map<StreamId, OrcDataSourceInput> uncachedInputs = delegate.getInputs(orcDataSource, stripeId, uncachedDiskRangesBuilder.build()); for (Entry<StreamId, OrcDataSourceInput> entry : uncachedInputs.entrySet()) { if (isCachedStream(entry.getKey().getStreamKind())) { Slice streamSlice = entry.getValue().getInput().readSlice(toIntExact(entry.getValue().getInput().length())); stripeStreamCache.put(new StripeStreamId(stripeId, entry.getKey()), streamSlice); inputsBuilder.put(entry.getKey(), new OrcDataSourceInput(new BasicSliceInput(streamSlice), toIntExact(streamSlice.getRetainedSize()))); } else { inputsBuilder.put(entry.getKey(), entry.getValue()); } } return inputsBuilder.build(); }
Source:
<code>private String getMemberRelPath(Repository repo, IResource member) { String repoWorkDir = repo.getWorkDir().toString(); if (!"/".equals(File.separator)) { repoWorkDir = repoWorkDir.replace(File.separatorChar, '/'); } String memberRelPath = member.getLocation().toString(); memberRelPath = memberRelPath.replace(repoWorkDir, ""); <START> if (memberRelPath.startsWith("/")) { END> memberRelPath = memberRelPath.substring(1); } return memberRelPath; }</code><technical_language>style nit: braces single line</technical_language>

Target:
private String getMemberRelPath(Repository repo, IResource member) { String repoWorkDir = repo.getWorkDir().toString(); if (!"/".equals(File.separator)) { repoWorkDir = repoWorkDir.replace(File.separatorChar, '/'); } String memberRelPath = member.getLocation().toString(); memberRelPath = memberRelPath.replace(repoWorkDir, ""); if (memberRelPath.startsWith("/")) memberRelPath = memberRelPath.substring(1); return memberRelPath; }
Source:
<code>public void decodeFromJsonTo(PreparedStatement toStatement, int toIndex, JsonNode fromValue) throws SQLException { try { final Instant epoch = PARSER.parse(fromValue.asText()); <START> Timestamp sqlTimestamp = new Timestamp(epoch.getEpochSecond() * 1000L); <END> sqlTimestamp.setNanos(epoch.getNano()); toStatement.setTimestamp(toIndex, sqlTimestamp); } catch (final DateTimeParseException e) { long now = System.currentTimeMillis(); String sample = format(now / 1000, (int)((now % 1000)*1000000)); throw new ConfigException("Invalid timestamp with time zone pattern: " + fromValue + "." + " The pattern must be 'yyyy-MM-ddTHH:mm:ss.SSSSSSZ'." + " e.g. \"" + sample + "\" or \"" + sample.replace("Z", "+0000") + "\""); } }</code><technical_language>this Timestamp.from(epoch)</technical_language>

Target:
public void decodeFromJsonTo(PreparedStatement toStatement, int toIndex, JsonNode fromValue) throws SQLException { try { final Instant epoch = PARSER.parse(fromValue.asText()); final Timestamp sqlTimestamp = Timestamp.from(epoch); sqlTimestamp.setNanos(epoch.getNano()); toStatement.setTimestamp(toIndex, sqlTimestamp); } catch (final DateTimeParseException e) { long now = System.currentTimeMillis(); String sample = format(now / 1000, (int)((now % 1000)*1000000)); throw new ConfigException("Invalid timestamp with time zone pattern: " + fromValue + "." + " The pattern must be 'yyyy-MM-ddTHH:mm:ss.SSSSSSZ'." + " e.g. \"" + sample + "\" or \"" + sample.replace("Z", "+0000") + "\""); } }
Source:
<code>private OCFile getCurrentFolder(){ OCFile file = mFile; if (file != null) { if (file.isFolder()) { return file; } else if (getStorageManager() != null) { String parentPath = file.getRemotePath().substring(0, <START> file.getRemotePath().lastIndexOf(file.getFileName())); <END> return getStorageManager().getFileByPath(parentPath); } } return null; }</code><technical_language>This a repetitive scenario, please add some utility function in OCFile for parent dir path? like: java String getParentRemotePath() { return new File(getRemotePath()).getParent(); }</technical_language>

Target:
private OCFile getCurrentFolder(){ OCFile file = mFile; if (file != null) { if (file.isFolder()) { return file; } else if (getStorageManager() != null) { return getStorageManager().getFileByPath(file.getParentRemotePath()); } } return null; }
Source:
<code>public View getTopContainer(final View view) { View topView = null; <START> EObject container; <END> if (view != null) { container = view.eContainer(); if (isStereotypeCompartment(container) || isStereotypeBrace(container) || isStereotypeLabel(container)) { container = container.eContainer(); } if (container instanceof View) { topView = (View) container; } } return topView; }</code><technical_language>local variable is declared in bad scope</technical_language>

Target:
public View getTopContainer(final View view) { View topView = null; if (view != null) { EObject container = view.eContainer(); if (isStereotypeCompartment(container) || isStereotypeBrace(container) || isStereotypeLabel(container)) { container = container.eContainer(); } if (container instanceof View) { topView = (View) container; } } return topView; }
Source:
<code>public DeferredItem(Rectangle bounds, RGBAColor backgroundColor, RGBAColor foregroundColor, int alpha, int lineWidth) { fBounds = bounds; fLineWidth = lineWidth; <START> if (backgroundColor == null) { <END> fBgColor = OPAQUE; } else if (backgroundColor.getAlpha() != alpha) { fBgColor = new RGBAColor(backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), alpha); } else { fBgColor = backgroundColor; } fFgColor = foregroundColor; }</code><technical_language>I backgroundColor null. caller set OPAQUE if null style manager. null checks removed in this class sub-classes</technical_language>

Target:
public DeferredItem(Rectangle bounds, RGBAColor backgroundColor, RGBAColor foregroundColor, int alpha, int lineWidth) { fBounds = bounds; fLineWidth = lineWidth; if (backgroundColor.getAlpha() != alpha) { fBgColor = new RGBAColor(backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), alpha); } else { fBgColor = backgroundColor; } fFgColor = foregroundColor; }
Source:
<code>public void refreshActionsWidget(final List<ActionCol52> actionColumns) { getActionsConfigWidget().clear(); if (actionColumns == null || actionColumns.isEmpty()) { getAccordion().getItem(GuidedDecisionTableAccordionItem.Type.ACTION).setOpen(false); getActionsConfigWidget().add(blankSlate()); return; } getActionsConfigWidget().add(getActionsPanel()); final Map<String, List<BaseColumn>> columnGroups = actionColumns.stream().collect( Collectors.groupingBy( <START> column -> DecisionTableColumnViewUtils.getColumnManagementGroupTitle(column), <END> Collectors.toList() ) ); getActionsPanel().renderColumns(columnGroups); }</code><technical_language>(Personally) I method reference too</technical_language>

Target:
public void refreshActionsWidget(final List<ActionCol52> actionColumns) { getActionsConfigWidget().clear(); if (actionColumns == null || actionColumns.isEmpty()) { getAccordion().getItem(GuidedDecisionTableAccordionItem.Type.ACTION).setOpen(false); getActionsConfigWidget().add(blankSlate()); return; } getActionsConfigWidget().add(getActionsPanel()); final Map<String, List<BaseColumn>> columnGroups = actionColumns.stream().collect( Collectors.groupingBy( DecisionTableColumnViewUtils::getColumnManagementGroupTitle, Collectors.toList() ) ); getActionsPanel().renderColumns(columnGroups); }
Source:
<code>public CustomizeExternalFileTypesDialog() { this.setTitle(Localization.lang("Manage external file types")); ViewLoader.view(this) .load() .setAsDialogPane(this); this.setResultConverter(button -> { if (button == ButtonType.OK) { viewModel.storeSettings(); <START> fileTypesTable.refresh(); <END> } return null; }); }</code><technical_language>If work, delete this indeed</technical_language>

Target:
public CustomizeExternalFileTypesDialog() { this.setTitle(Localization.lang("Manage external file types")); ViewLoader.view(this) .load() .setAsDialogPane(this); this.setResultConverter(button -> { if (button == ButtonType.OK) { viewModel.storeSettings(); } return null; }); }
Source:
<code>public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { mProgressBar = view.findViewById(R.id.top_progress_bar); <START> mListener = (TroubleSigningInListener) getActivity(); <END> String email = getArguments().getString(ExtraConstants.EMAIL); setBodyText(view, email); setOnClickListeners(view, email); setPrivacyFooter(view); }</code><technical_language>do this in onAttach do instanceof check assert Activity implements interface, throwing IllegalStateException otherwise</technical_language>

Target:
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); mTopLevelView = view.findViewById(R.id.top_level_view); mTopLevelView.setVisibility(View.GONE); String email = getArguments().getString(ExtraConstants.EMAIL); setBodyText(view, email); setOnClickListeners(view, email); setPrivacyFooter(view); }
Source:
<code>public Binder<Bind, Object> build(Bind annotation) { <START> return this; <END> }</code><technical_language>do other binder factories doing, turn bind method a lambda return build method</technical_language>

Target:
public Binder<Bind, Object> build(Bind annotation) { return (q, param, index, b, arg) -> { String nameFromAnnotation = b == null ? "" : b.value(); final String name = ParameterUtil.getParameterName(b, nameFromAnnotation, param); Type type = param.getParameterizedType(); if (q instanceof PreparedBatchPart) { Class<?> erasedType = GenericTypes.getErasedType(type); if (Iterable.class.isAssignableFrom(erasedType)) { type = GenericTypes.findGenericParameter(type, Iterable.class).get(); } else if (Iterator.class.isAssignableFrom(erasedType)) { type = GenericTypes.findGenericParameter(type, Iterator.class).get(); } } q.bindByType(index, arg, type); q.bindByType(name, arg, type); }; }
Source:
<code>public void testTestSuiteSetting() throws JSONException { List<String> errors = new ArrayList<>(); for (String testGroup : allTests.keySet()) { if (!groups.contains(testGroup)) { <START> CLog.i("Skip <END> checking tests with group: %s", testGroup); continue; } for (TestInfo testInfo : allTests.get(testGroup)) { if (!validateSuiteSetting(testInfo.getName(), testInfo.getKeywords())) { errors.add( String.format( "Missing test_suite setting for test: %s, test group: %s, " + "TEST_MAPPING file path: %s", testInfo.getName(), testGroup, testInfo.getSources())); } } } if (!errors.isEmpty()) { fail(String.format("Fail test_suite setting check:\n%s", Joiner.on("\n").join(errors))); } }</code><technical_language>d</technical_language>

Target:
public void testTestSuiteSetting() throws JSONException { List<String> errors = new ArrayList<>(); for (String testGroup : allTests.keySet()) { if (!TEST_GROUPS_TO_VALIDATE.contains(testGroup)) { CLog.d("Skip checking tests with group: %s", testGroup); continue; } for (TestInfo testInfo : allTests.get(testGroup)) { if (!validateSuiteSetting(testInfo.getName(), testInfo.getKeywords())) { errors.add( String.format( "Missing test_suite setting for test: %s, test group: %s, " + "TEST_MAPPING file path: %s", testInfo.getName(), testGroup, testInfo.getSources())); } } } if (!errors.isEmpty()) { fail(String.format("Fail test_suite setting check:\n%s", Joiner.on("\n").join(errors))); } }
Source:
<code>public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration) { <START> if (globalConfiguration.globalJmxStatistics().enabled()) { <END> BasicComponentRegistry bcr = gcr.getComponent(BasicComponentRegistry.class); Interpreter interpreter = new Interpreter(); bcr.registerComponent(Interpreter.class, interpreter, true); try { CacheManagerJmxRegistration jmxRegistration = bcr.getComponent(CacheManagerJmxRegistration.class).running(); jmxRegistration.registerMBean(interpreter); } catch (Exception e) { log.jmxRegistrationFailed(); } } }</code><technical_language>Hmm enabled</technical_language>

Target:
public void cacheManagerStarting(GlobalComponentRegistry gcr, GlobalConfiguration globalConfiguration) { if (globalConfiguration.statistics()) { BasicComponentRegistry bcr = gcr.getComponent(BasicComponentRegistry.class); Interpreter interpreter = new Interpreter(); bcr.registerComponent(Interpreter.class, interpreter, true); try { CacheManagerJmxRegistration jmxRegistration = bcr.getComponent(CacheManagerJmxRegistration.class).running(); jmxRegistration.registerMBean(interpreter); } catch (Exception e) { log.jmxRegistrationFailed(); } } }
Source:
<code>public void run() { if (shouldSkipCheck()) { skippedHealthChecks++; LOG.info("Detected long delay in scheduling HB processing thread. " + "Skipping heartbeat checks for one iteration."); } else { checkNodesHealth(); } scheduleNextHealthCheck(); <START> return; <END> }</code><technical_language>need this return statement</technical_language>

Target:
public void run() { if (shouldSkipCheck()) { skippedHealthChecks++; LOG.info("Detected long delay in scheduling HB processing thread. " + "Skipping heartbeat checks for one iteration."); } else { checkNodesHealth(); } scheduleNextHealthCheck(); }
Source:
<code>public String readASCIIString() throws IOException { final int size = readInt32(); if (size > 0) { <START> if (size < getCurrentRemaining()) <END> { String value = Utf8Utils.decodeASCII(_currentSegment.getArray(), _localOffset, size, _textBuffer); _localOffset += size; return value; } else { ByteStringLongDecoderState state = new ByteStringLongDecoderState(_byteArrays, _currentIndex, _localOffset); String value = Utf8Utils.decodeLongASCII(state, size, _textBuffer); _currentIndex = state.getCurrentIndex(); _currentSegment = _byteArrays.get(_currentIndex); _localOffset = state.getPosition(); return value; } } else if (size == 0) { return ""; } else { throw new IOException("Read negative size: " + size + ". Invalid string"); } }</code><technical_language>In path, size <= getCurrentRemaining(), need include = here</technical_language>

Target:
public String readASCIIString() throws IOException { final int size = readInt32(); if (size > 0) { if (size <= getCurrentRemaining()) { String value = Utf8Utils.decodeASCII(_currentSegment.getArray(), _currentArrayOffset, size, _textBuffer); _currentArrayOffset += size; return value; } else { ByteStringLongDecoderState state = new ByteStringLongDecoderState(_byteArrays, _currentIndex, _currentArrayOffset); String value = Utf8Utils.decodeLongASCII(state, size, _textBuffer); _currentIndex = state.getCurrentIndex(); _currentSegment = _byteArrays.get(_currentIndex); _currentArrayOffset = state.getPosition(); return value; } } else if (size == 0) { return ""; } else { throw new IOException("Read negative size: " + size + ". Invalid string"); } }
Source:
<code>public long getNewDiskSizeInGB() { CinderDisk cinderDisk = (CinderDisk) getNewDisk(); <START> return cinderDisk.getSize() / (1024 * 1024 * 1024); <END> }</code><technical_language>Please BYTES_IN_GB</technical_language>

Target:
public long getNewDiskSizeInGB() { CinderDisk cinderDisk = (CinderDisk) getNewDisk(); return cinderDisk.getSize() / BYTES_IN_GB; }
Source:
<code>public List<VDS> filter(SchedulingContext context, List<VDS> hosts, List<VM> vmGroup, PerHostMessages messages) { List<VM> vmsToCheck = vmGroup.stream() .filter(vm -> vm.getStatus() != VMStatus.Paused) .collect(Collectors.toList()); if (vmsToCheck.isEmpty()) { return hosts; } boolean canDelay = false; List<VDS> resultList = new ArrayList<>(); List<VDS> overcommitFailed = new ArrayList<>(); for (VDS vds : hosts) { List<VM> vmsNotRunningOnHost = vmsToCheck.stream() .filter(vm -> !vds.getId().equals(vm.getRunOnVds())) .collect(Collectors.toList()); if (vmsNotRunningOnHost.isEmpty()) { resultList.add(vds); continue; } if (vds.getPendingVmemSize() > 0) { canDelay = true; } int pendingRealMemory = PendingMemory.collectForHost(getPendingResourceManager(), vds.getId()); if (!slaValidator.hasPhysMemoryToRunVmGroup(vds, vmsNotRunningOnHost, pendingRealMemory)) { logInsufficientPhysicalMemory(vds, messages); continue; } if (!slaValidator.hasOvercommitMemoryToRunVM(vds, vmsNotRunningOnHost)) { overcommitFailed.add(vds); continue; } resultList.add(vds); } if (context.isCanDelay() && !context.isShouldDelay() && canDelay && resultList.isEmpty()) { context.setShouldDelay(true); return Collections.emptyList(); } <START> overcommitFailed.forEach(vds -> logInsufficientOvercommitMemory(vds, messages)); <END> return resultList; }</code><technical_language>In opinion overcommitFailed array removed this lambda. Instead in line 87 (overcommitFailed.add(vds);), call logInsufficientOvercommitMemory(vds, messages). This more aligned logInsufficientPhysicalMemory</technical_language>

Target:
public List<VDS> filter(SchedulingContext context, List<VDS> hosts, List<VM> vmGroup, PerHostMessages messages) { List<VM> vmsToCheck = vmGroup.stream() .filter(vm -> vm.getStatus() != VMStatus.Paused) .collect(Collectors.toList()); if (vmsToCheck.isEmpty()) { return hosts; } boolean canDelay = false; List<VDS> resultList = new ArrayList<>(); for (VDS vds : hosts) { List<VM> vmsNotRunningOnHost = vmsToCheck.stream() .filter(vm -> !vds.getId().equals(vm.getRunOnVds())) .collect(Collectors.toList()); if (vmsNotRunningOnHost.isEmpty()) { resultList.add(vds); continue; } if (vds.getPendingVmemSize() > 0) { canDelay = true; } int pendingRealMemory = PendingMemory.collectForHost(getPendingResourceManager(), vds.getId()); if (!slaValidator.hasPhysMemoryToRunVmGroup(vds, vmsNotRunningOnHost, pendingRealMemory)) { logInsufficientPhysicalMemory(vds, messages); continue; } if (!slaValidator.hasOvercommitMemoryToRunVM(vds, vmsNotRunningOnHost)) { logInsufficientOvercommitMemory(vds, messages); continue; } resultList.add(vds); } if (context.isCanDelay() && !context.isShouldDelay() && canDelay && resultList.isEmpty()) { context.setShouldDelay(true); return Collections.emptyList(); } return resultList; }
Source:
<code>public void readerClosed(BlockReader reader, BlockStoreLocation location) { Preconditions.checkState(locationValid(location)); mScheduler.schedule(() -> { mStreamsPerLocation.compute(location, (k, v) -> { <START> Set<Object> streamList = v; <END> Preconditions.checkState(streamList != null && !streamList.isEmpty(), "Unexpected load tracker state"); streamList.remove(reader); return streamList; }); }, mLoadDetectionCoolDownMs, TimeUnit.MILLISECONDS); }</code><technical_language>name streamList directly</technical_language>

Target:
public void readerClosed(BlockReader reader, BlockStoreLocation location) { streamClosed(reader, location); }
Source:
<code>public double getWorldY() { <START> return _x; <END> }</code><technical_language>I this is supposed _y? line 114 _z</technical_language>

Target:
public double getWorldY() { return _y; }
Source:
<code><START> PersonIdent getServerIdent() { <END> return serverIdent; }</code><technical_language>I this is right. CopyConfigModule is created for server. @GerritPersonIdent is supposed dynamic create timestamp time is asked for Provider. pinning time a plugin time of server startup. This needs a dynamic provision ensure current time is ident is created</technical_language>

Target:
PersonIdent getServerIdent() { return serverIdentProvider.get(); }
Source:
<code>public void testUserExceptionDoesNothing() throws Exception { SFSB1Interface sfsb1 = getBean(); Assert.assertFalse(isPreDestroy.is()); try { <START> sfsb1.userException(); <END> } catch (TestException e) { Assert.assertTrue(e.getMessage().contains(SFSB1.MESSAGE)); } Assert.assertFalse(isPreDestroy.is()); try { sfsb1.userException(); } catch (TestException e) { Assert.assertTrue(e.getMessage().contains(SFSB1.MESSAGE)); } sfsb1.remove(); Assert.assertTrue("As remove was called preDestroy callback is expected", isPreDestroy.is()); }</code><technical_language>I need a fail this</technical_language>

Target:
public void testUserExceptionDoesNothing() throws Exception { SFSB1Interface sfsb1 = getBean(); Assert.assertFalse(isPreDestroy.is()); try { sfsb1.userException(); Assert.fail("It was expected a user exception being thrown"); } catch (TestException e) { Assert.assertTrue(e.getMessage().contains(SFSB1.MESSAGE)); } Assert.assertFalse(isPreDestroy.is()); try { sfsb1.userException(); Assert.fail("It was expected a user exception being thrown"); } catch (TestException e) { Assert.assertTrue(e.getMessage().contains(SFSB1.MESSAGE)); } sfsb1.remove(); Assert.assertTrue("As remove was called preDestroy callback is expected", isPreDestroy.is()); }
Source:
<code>private void createBackground() { Sprite backgroundImage = new Sprite( 0 , 0 , resourceManager.getLoadedTextureRegion( <START> getStringResource(R.string.MENU_BACKGROUND_TEXTURE)) <END> , mEngine.getVertexBufferObjectManager()); this.attachChild(backgroundImage); Color backgroundColor = new Color(0.09804f, 0.6274f, 0.8784f); this.setBackground(new Background(backgroundColor)); }</code><technical_language>ITextureRegion backgroundTexture = resourceManager.getLoadedTextureRegion( getStringResource(R.string.MENU_BACKGROUND_TEXTURE) Sprite backgroundImage = new Sprite( 0 , 0 , backgroundTexture)</technical_language>

Target:
private void createBackground() { ITextureRegion backgroundTexture = resourceManager.getLoadedTextureRegion( getStringResource(R.string.MENU_BACKGROUND_TEXTURE)); Sprite backgroundImage = new Sprite( 0 , 0 , backgroundTexture , mEngine.getVertexBufferObjectManager()); this.attachChild(backgroundImage); Color backgroundColor = new Color(0.09804f, 0.6274f, 0.8784f); this.setBackground(new Background(backgroundColor)); }
Source:
<code><START> @Override public void onRefresh() { <END> setUpTriggersForced(); }</code><technical_language>Revert this wrong reformating</technical_language>

Target:
public void onRefresh() { setUpTriggersForced(); }
Source:
<code>private InterpreterSetting inlineCreateNewSetting(String name, String group, List<Dependency> dependencies, InterpreterOption option, Map<String, InterpreterProperty> properties) throws IOException { if (name == null) { throw new IOException("Interpreter name shouldn't be empty."); } <START> Pattern pattern = Pattern.compile("^[-_a-zA-Z0-9]+$"); <END> Matcher matcher = pattern.matcher(name); if(!matcher.find()){ throw new IOException("Interpreter name shouldn't be empty, and can consist only of: -_a-zA-Z0-9"); } for (InterpreterSetting interpreterSetting : interpreterSettings.values()) { if (interpreterSetting.getName().equals(name)) { throw new IOException("Interpreter " + name + " already existed"); } } InterpreterSetting setting = new InterpreterSetting(interpreterSettingTemplates.get(group)); setting.setName(name); setting.setGroup(group); setting.appendDependencies(dependencies); setting.setInterpreterOption(option); setting.setProperties(properties); initInterpreterSetting(setting); interpreterSettings.put(setting.getId(), setting); saveToFile(); return setting; }</code><technical_language>I move pattern static constant avoid compilation call...</technical_language>

Target:
private InterpreterSetting inlineCreateNewSetting(String name, String group, List<Dependency> dependencies, InterpreterOption option, Map<String, InterpreterProperty> properties) throws IOException { if (name == null) { throw new IOException("Interpreter name shouldn't be empty."); } Matcher matcher = VALID_INTERPRETER_NAME.matcher(name); if(!matcher.find()){ throw new IOException("Interpreter name shouldn't be empty, and can consist only of: -_a-zA-Z0-9"); } for (InterpreterSetting interpreterSetting : interpreterSettings.values()) { if (interpreterSetting.getName().equals(name)) { throw new IOException("Interpreter " + name + " already existed"); } } InterpreterSetting setting = new InterpreterSetting(interpreterSettingTemplates.get(group)); setting.setName(name); setting.setGroup(group); setting.appendDependencies(dependencies); setting.setInterpreterOption(option); setting.setProperties(properties); initInterpreterSetting(setting); interpreterSettings.put(setting.getId(), setting); saveToFile(); return setting; }
Source:
<code>public Mono<Void> abandon(MessageLockToken lockToken, Map<String, Object> propertiesToModify, ServiceBusTransactionContext transactionContext) { <START> throw new UnsupportedOperationException("Not implemented"); <END> }</code><technical_language>Do a bug for this</technical_language>

Target:
public Mono<Void> abandon(MessageLockToken lockToken, Map<String, Object> propertiesToModify, ServiceBusTransactionContext transactionContext) { return abandon(lockToken, propertiesToModify, receiverOptions.getSessionId(), transactionContext); }
Source:
<code>public COMEarlyBindingObject(CLSID clsid, boolean useActiveInstance, int dwClsContext) { <START> Native.setProtected(true); <END> HRESULT hr = Ole32.INSTANCE.CoInitialize(null); if (COMUtils.FAILED(hr)) { this.Release(); Ole32.INSTANCE.CoUninitialize(); throw new COMException("CoInitialize() failed!"); } if (COMUtils.FAILED(hr)) { Ole32.INSTANCE.CoUninitialize(); throw new COMException("CLSIDFromProgID() failed!"); } if (useActiveInstance) { hr = OleAuto.INSTANCE.GetActiveObject(clsid, null, this.pUnknown); if (COMUtils.SUCCEEDED(hr)) { hr = this.QueryInterface(IDispatch.IID_IDispatch, this.pDispatch); } else { hr = Ole32.INSTANCE.CoCreateInstance(clsid, null, dwClsContext, IDispatch.IID_IDispatch, this.pDispatch); } } else { hr = Ole32.INSTANCE.CoCreateInstance(clsid, null, dwClsContext, IDispatch.IID_IDispatch, this.pDispatch); } if (COMUtils.FAILED(hr)) { throw new COMException("COM object with CLSID " + clsid.toGuidString() + " not registered properly!"); } this.setPointer(this.pDispatch.getValue()); }</code><technical_language>Do a specific reason for turning this here? I I set default windows, generally more robust platform</technical_language>

Target:
public COMEarlyBindingObject(CLSID clsid, boolean useActiveInstance, int dwClsContext) { HRESULT hr = Ole32.INSTANCE.CoInitialize(null); if (COMUtils.FAILED(hr)) { this.Release(); Ole32.INSTANCE.CoUninitialize(); throw new COMException("CoInitialize() failed!"); } if (COMUtils.FAILED(hr)) { Ole32.INSTANCE.CoUninitialize(); throw new COMException("CLSIDFromProgID() failed!"); } if (useActiveInstance) { hr = OleAuto.INSTANCE.GetActiveObject(clsid, null, this.pUnknown); if (COMUtils.SUCCEEDED(hr)) { hr = this.QueryInterface(IDispatch.IID_IDISPATCH, this.pDispatch); } else { hr = Ole32.INSTANCE.CoCreateInstance(clsid, null, dwClsContext, IDispatch.IID_IDISPATCH, this.pDispatch); } } else { hr = Ole32.INSTANCE.CoCreateInstance(clsid, null, dwClsContext, IDispatch.IID_IDISPATCH, this.pDispatch); } if (COMUtils.FAILED(hr)) { throw new COMException("COM object with CLSID " + clsid.toGuidString() + " not registered properly!"); } this.setPointer(this.pDispatch.getValue()); }
Source:
<code>private Object buildArray(Array array) throws SQLException { if (UNSUPPORTED_TYPES.contains(array.getBaseType())) { return buildFromResultSet(array); } try { Object[] objectArray = (Object[]) array.getArray(); Object componentTypeArray = java.lang.reflect.Array.newInstance(componentType, objectArray.length); <START> for (int i = 0; i < objectArray.length; i++) { <END> java.lang.reflect.Array.set(componentTypeArray, i,objectArray[i]); } return componentTypeArray; } catch (SQLFeatureNotSupportedException e) { UNSUPPORTED_TYPES.add(array.getBaseType()); return buildFromResultSet(array); } }</code><technical_language>skip this loop if component type of object array is correct</technical_language>

Target:
private Object buildArray(Array array) throws SQLException { if (UNSUPPORTED_TYPES.contains(array.getBaseType())) { return buildFromResultSet(array); } try { Object[] objectArray = (Object[]) array.getArray(); if (componentType == Object.class) { return objectArray; } else { Object componentTypeArray = java.lang.reflect.Array.newInstance(componentType, objectArray.length); for (int i = 0; i < objectArray.length; i++) { java.lang.reflect.Array.set(componentTypeArray, i, objectArray[i]); } return componentTypeArray; } } catch (SQLFeatureNotSupportedException e) { UNSUPPORTED_TYPES.add(array.getBaseType()); return buildFromResultSet(array); } }
Source:
<code>@VisibleForTesting boolean fileNameMatches(String name) { if (patternsAreEquals()) { return false; } boolean result = isMatchingPattern(name, regExPattern).orElse(false) || !isMatchingPattern(name, notRegExPattern).orElse(true); <START> LOGGER.debug("attachment {}", name, (result) ? "matches" : "does not match"); <END> return result; }</code><technical_language>() arround result useless IMO</technical_language>

Target:
@VisibleForTesting boolean fileNameMatches(String name) { if (patternsAreEquals()) { return false; } boolean result = isMatchingPattern(name, regExPattern).orElse(false) || !isMatchingPattern(name, notRegExPattern).orElse(true); LOGGER.debug("attachment {}", name, result ? "matches" : "does not match"); return result; }
Source:
<code>public void PropertyType() { <START> assertEquals(java.util.Date.class, QProperties3Test_Order.order.orderDate.getType()); <END> }</code><technical_language>Is com.querydsl.apt.domain.AbstractTest good enough for you? change it, is a small test, is there</technical_language>

Target:
public void PropertyType() throws IllegalAccessException, NoSuchFieldException { start(QProperties3Test_Order.class, QProperties3Test_Order.order); match(DateTimePath.class, "orderDate"); matchType(java.util.Date.class, "orderDate"); }
Source:
<code>public String replaceToStringCallOnCurrentObjectInStringConcat() { String s1 = " " + StringSample.this + StringSample.this + this; <START> String s2 = StringSample.this + " " + this; <END> return s1 + s2; }</code><technical_language>I disagree changes in this section. Please revert them. highlight fact this code is missing check extendedOperands(InfixExpression).isEmpty()</technical_language>

Target:
public String replaceToStringCallOnCurrentObjectInStringConcat() { String s1 = String.valueOf(StringSample.this) + StringSample.this + this; String s2 = String.valueOf(StringSample.this) + this; return s1 + s2; }
Source:
<code>public static NodeSequence append( final NodeSequence first, final NodeSequence second ) { if (first == null) { return second != null ? second : emptySequence(0); } if (second == null) return first; int firstWidth = first.width(); final int secondWidth = second.width(); <START> final int sequenceWidth = Math.min(firstWidth, secondWidth); <END> if (first.isEmpty()) return second; if (second.isEmpty()) return first; long firstCount = first.getRowCount(); long secondCount = second.getRowCount(); final long count = firstCount < 0 ? -1 : (secondCount < 0 ? -1 : firstCount + secondCount); return new NodeSequence() { private NodeSequence current = first; @Override public int width() { return sequenceWidth; } @Override public long getRowCount() { return count; } @Override public boolean isEmpty() { return false; } @Override public Batch nextBatch() { Batch batch = current.nextBatch(); while (batch == null && current == first) { current = second; batch = current.nextBatch(); } return batch; } @Override public void close() { try { first.close(); } finally { second.close(); } } @Override public String toString() { return "(append width=" + width() + " " + first + "," + second + " )"; } }; }</code><technical_language>Okay, in a UNION output columns same. I in this case, UNION returning width 1, node sequence of width 2 needs "reshaped" return correct column. (We select column returned, unioned.) if UNION code handles (perhaps calling a "reshape" method in NodeSequence), logic check widths same</technical_language>

Target:
public static NodeSequence append( final NodeSequence first, final NodeSequence second ) { if (first == null) { return second != null ? second : emptySequence(0); } if (second == null) return first; int firstWidth = first.width(); final int secondWidth = second.width(); if (firstWidth > 0 && secondWidth > 0 && firstWidth != secondWidth) { throw new IllegalArgumentException("The sequences must have the same width: " + first + " and " + second); } if (first.isEmpty()) return second; if (second.isEmpty()) return first; long firstCount = first.getRowCount(); long secondCount = second.getRowCount(); final long count = firstCount < 0 ? -1 : (secondCount < 0 ? -1 : firstCount + secondCount); return new NodeSequence() { private NodeSequence current = first; @Override public int width() { return secondWidth; } @Override public long getRowCount() { return count; } @Override public boolean isEmpty() { return false; } @Override public Batch nextBatch() { Batch batch = current.nextBatch(); while (batch == null && current == first) { current = second; batch = current.nextBatch(); } return batch; } @Override public void close() { try { first.close(); } finally { second.close(); } } @Override public String toString() { return "(append width=" + width() + " " + first + "," + second + " )"; } }; }
Source:
<code>protected String getSanitizedFilenameWithoutPath(String filename) { int sep = Math.max(filename.lastIndexOf('\\'), filename.lastIndexOf('/')); if (sep != -1) { filename = filename.substring(sep + 1); } <START> return JSESSION_ID_REGEX.matcher(filename).replaceAll(StringUtils.EMPTY); <END> }</code><technical_language>StringUtils.EMPTY is overkill, ""</technical_language>

Target:
protected String getSanitizedFilenameWithoutPath(String filename) { int sep = Math.max(filename.lastIndexOf('\\'), filename.lastIndexOf('/')); if (sep != -1) { filename = filename.substring(sep + 1); } return FILENAME_SANITIZATION_REGEX.matcher(filename).replaceAll(""); }
Source:
<code>public KHyperLogLogState createGroupedState() { <START> throw new IllegalArgumentException("GROUP BY of KHyperLogLog is not supported."); <END> }</code><technical_language>throw a PrestoException(NOT_SUPPORTED, IllegalArgumentException surface internal error in Presto</technical_language>

Target:
public KHyperLogLogState createGroupedState() { return new GroupedKHyperLogLogState(); }
Source:
<code>protected boolean canDoAction() { slaveVolume = getSlaveVolume(); if (slaveVolume != null) { setGlusterVolumeId(slaveVolume.getId()); setVdsGroupId(slaveVolume.getClusterId()); } if (slaveVolume == null) { <START> return false; <END> } if (slaveVolume.getStatus() != GlusterStatus.UP) { return false; } return super.canDoAction(); }</code><technical_language>failCanDoAction call</technical_language>

Target:
protected boolean canDoAction() { slaveVolume = getSlaveVolume(); if (slaveVolume != null) { setGlusterVolumeId(slaveVolume.getId()); setVdsGroupId(slaveVolume.getClusterId()); } else { return failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_INVALID); } if (slaveVolume.getStatus() != GlusterStatus.UP) { return failCanDoAction(VdcBllMessages.ACTION_TYPE_FAILED_GLUSTER_VOLUME_SHOULD_BE_STARTED); } return super.canDoAction(); }
Source:
<code>private static LineReader buildLineReader() { try { Terminal terminal = TerminalBuilder.terminal(); LineReaderBuilder builder = LineReaderBuilder.builder().terminal(terminal); builder.terminal(terminal); builder.variable(LineReader.BLINK_MATCHING_PAREN, false); String userHome = System.getProperty("user.home"); if (userHome != null) { builder.variable(LineReader.HISTORY_FILE, userHome + "/.starlark_java_history"); } return builder.build(); } catch (IOException e) { <START> throw new RuntimeException(e); <END> } }</code><technical_language>Throwing RuntimeException is correct. this "can't happen", in case throw IllegalStateException, happen, in case throw a checked exception handle in caller. I assume in this instance, familiar jline API failure modes</technical_language>

Target:
private static LineReader buildLineReader() { try { Terminal terminal = TerminalBuilder.terminal(); LineReaderBuilder builder = LineReaderBuilder.builder().terminal(terminal); builder.terminal(terminal); builder.variable(LineReader.BLINK_MATCHING_PAREN, false); String userHome = System.getProperty("user.home"); if (userHome != null) { builder.variable(LineReader.HISTORY_FILE, userHome + "/.starlark_java_history"); } return builder.build(); } catch (IOException e) { System.err.println("Failed to initialize terminal: " + e.getMessage()); return null; } }
Source:
<code>public PersistentHostSetupNetworksParameters create(Guid hostId, List<Network> networks) { <START> PersistentHostSetupNetworksParameters parameters = new PersistentHostSetupNetworksParameters(hostId); parameters.setRollbackOnFailure(true); parameters.setShouldBeLogged(false); <END> parameters.setNetworkNames(getNetworkNames(networks)); parameters.setNetworkAttachments(getNetworkAttachmentsToSync(hostId, networks)); return parameters; }</code><technical_language>asserted in test</technical_language>

Target:
public PersistentHostSetupNetworksParameters create(Guid hostId, List<Network> networks) { Map<Network, NetworkAttachment> networksToSync = getNetworksToSync(hostId, networks); PersistentHostSetupNetworksParameters parameters = new PersistentHostSetupNetworksParameters(hostId); parameters.setRollbackOnFailure(true); parameters.setShouldBeLogged(false); parameters.setNetworkNames(getNetworkNames(networksToSync.keySet())); parameters.setNetworkAttachments(new ArrayList<>(networksToSync.values())); return parameters; }
Source:
<code>private ForwardingObservable<String> readCompressed(String address) { if (address.contains("BLOCKSERVER:IOCS")) { <START> LoggerUtils.logIfExtraDebug(IsisLog.getLogger(getClass()), "(Ticket 2161) Reading from " + address); <END> } return switchingObsFactory.getSwitchableObservable(new CompressedCharWaveformChannel(), InstrumentUtils.addPrefix(address)); }</code><technical_language>Create static logger log</technical_language>

Target:
private ForwardingObservable<String> readCompressed(String address) { if (address.contains("BLOCKSERVER:IOCS")) { LoggerUtils.logIfExtraDebug(LOG, "(Ticket 2161) Reading from " + address); } return switchingObsFactory.getSwitchableObservable(new CompressedCharWaveformChannel(), InstrumentUtils.addPrefix(address)); }
Source:
<code>public String getConnectString() { <START> return "127.0.0.1:" + Integer.toString(port); <END> }</code><technical_language>Remove hard coded address</technical_language>

Target:
public String getConnectString() { return NetUtils.normalizeInetSocketAddress(cnxnFactory.getLocalAddress()); }
Source:
<code>public void applyInventory(InventoryEvent event) { String par = event.getMessage(); Player p = event.getPlayer(); Inventory i = p.getInventory(); if (par.equalsIgnoreCase(name)) { clearInv(p); ItemStack HEALTH_POTION = new ItemStack(Material.POTION, 1, (short) 16373); ItemStack STEAK = new ItemStack(Material.COOKED_BEEF, 3); ItemStack BOW = new ItemStack(Material.BOW, 1); ItemStack XP = new ItemStack(Material.EXP_BOTTLE, 5); ItemStack ARROWS = new ItemStack(Material.ARROW, 16); ItemStack IRON_HELMET = new ItemStack(Material.IRON_HELMET, 1); ItemStack IRON_CHESTPLATE = new ItemStack(Material.IRON_CHESTPLATE, 1); ItemStack IRON_PANTS = new ItemStack(Material.IRON_LEGGINGS, 1); ItemStack IRON_BOOTS = new ItemStack(Material.IRON_BOOTS, 1); ItemStack IRON_SWORD = new ItemStack(Material.IRON_SWORD, 1); p.getInventory().setBoots(IRON_BOOTS); p.getInventory().setLeggings(IRON_PANTS); p.getInventory().setChestplate(IRON_CHESTPLATE); p.getInventory().setHelmet(IRON_HELMET); i.setItem(0, IRON_SWORD); i.setItem(1, BOW); i.setItem(2, STEAK); i.setItem(3, HEALTH_POTION); <START> i.setItem(4, EXP; <END> i.setItem(8, ARROWS); } }</code><technical_language>variable XP for ItemStack, add ItemStack EXP inventory, poopoo</technical_language>

Target:
public void applyInventory(InventoryEvent event) { String par = event.getMessage(); Player p = event.getPlayer(); Inventory i = p.getInventory(); if (par.equalsIgnoreCase(name)) { clearInv(p); ItemStack HEALTH_POTION = new ItemStack(Material.POTION, 1, (short) 16373); ItemStack STEAK = new ItemStack(Material.COOKED_BEEF, 3); ItemStack BOW = new ItemStack(Material.BOW, 1); ItemStack EXP = new ItemStack(Material.EXP_BOTTLE, 5); ItemStack ARROWS = new ItemStack(Material.ARROW, 16); ItemStack IRON_HELMET = new ItemStack(Material.IRON_HELMET, 1); ItemStack IRON_CHESTPLATE = new ItemStack(Material.IRON_CHESTPLATE, 1); ItemStack IRON_PANTS = new ItemStack(Material.IRON_LEGGINGS, 1); ItemStack IRON_BOOTS = new ItemStack(Material.IRON_BOOTS, 1); ItemStack IRON_SWORD = new ItemStack(Material.IRON_SWORD, 1); p.getInventory().setBoots(IRON_BOOTS); p.getInventory().setLeggings(IRON_PANTS); p.getInventory().setChestplate(IRON_CHESTPLATE); p.getInventory().setHelmet(IRON_HELMET); i.setItem(0, IRON_SWORD); i.setItem(1, BOW); i.setItem(2, STEAK); i.setItem(3, HEALTH_POTION); i.setItem(4, EXP); i.setItem(8, ARROWS); } }
Source:
<code>@Override public Void visitCall(RexCall call) { <START> if (!RexUtil.isDeterministic(call)) { <END> ++unsupportedCount; return null; } switch (call.getKind()) { case CAST: ++unsupportedCount; return null; default: return super.visitCall(call); } }</code><technical_language>RexUtil.isDeterministic walks full expression tree result in O(N^2) behaviors. call.getOperator().isDeterministic() here</technical_language>

Target:
@Override public Void visitCall(RexCall call) { if (!RexInterpreter.SUPPORTED_SQL_KIND.contains(call.getKind())) { ++unsupportedCount; return null; } return super.visitCall(call); }
Source:
<code>private void checkFileDescriptorPassing(ITestService service) throws TestFailException { mLog.log("Checking that service can receive and return file descriptors..."); try { FileOutputStream fileOutputStream = openFileOutput("test-dummy", Context.MODE_PRIVATE); FileDescriptor descriptor = fileOutputStream.getFD(); FileDescriptor journeyed = service.RepeatFileDescriptor(descriptor); fileOutputStream.close(); FileOutputStream journeyedStream = new FileOutputStream(journeyed); String testData = "FrazzleSnazzleFlimFlamFlibbityGumboChops"; byte[] output = testData.getBytes(); journeyedStream.write(output); journeyedStream.close(); FileInputStream fileInputStream = openFileInput("test-dummy"); byte[] input = new byte[output.length]; if (fileInputStream.read(input) != input.length) { mLog.logAndThrow("Read short count from file"); } if <START> (!testData.equals(new String(input))) { <END> mLog.logAndThrow("Read incorrect data"); } } catch (RemoteException ex) { mLog.log(ex.toString()); mLog.logAndThrow("Service failed to repeat a file descriptor."); } catch (IOException ex) { mLog.log(ex.toString()); mLog.logAndThrow("Exception while operating on temporary file"); } mLog.log("...service can receive and return file descriptors."); }</code><technical_language>Haha, do this I a big stink char[] in C++? welcome do Arrays.equals() byte[]s. :)</technical_language>

Target:
private void checkFileDescriptorPassing(ITestService service) throws TestFailException { mLog.log("Checking that service can receive and return file descriptors..."); try { FileOutputStream fileOutputStream = openFileOutput("test-dummy", Context.MODE_PRIVATE); FileDescriptor descriptor = fileOutputStream.getFD(); FileDescriptor journeyed = service.RepeatFileDescriptor(descriptor); fileOutputStream.close(); FileOutputStream journeyedStream = new FileOutputStream(journeyed); String testData = "FrazzleSnazzleFlimFlamFlibbityGumboChops"; byte[] output = testData.getBytes(); journeyedStream.write(output); journeyedStream.close(); FileInputStream fileInputStream = openFileInput("test-dummy"); byte[] input = new byte[output.length]; if (fileInputStream.read(input) != input.length) { mLog.logAndThrow("Read short count from file"); } if (!Arrays.equals(input, output)) { mLog.logAndThrow("Read incorrect data"); } } catch (RemoteException ex) { mLog.log(ex.toString()); mLog.logAndThrow("Service failed to repeat a file descriptor."); } catch (IOException ex) { mLog.log(ex.toString()); mLog.logAndThrow("Exception while operating on temporary file"); } mLog.log("...service can receive and return file descriptors."); }
Source:
<code>public FileStat(ByteBuffer buffer) { super(buffer); if (OSUtils.isMacOS()) { System.exit(-1); } else if (OSUtils.isWindows()) { System.exit(-1); } else { } st_dev = new Unsigned64(); pad1 = null; st_ino = new Unsigned64(); st_nlink = new Unsigned64(); st_mode = new Unsigned32(); st_uid = new Unsigned32(); st_gid = new Unsigned32(); st_rdev = new Unsigned64(); st_size = new SignedLong(); st_blksize = new SignedLong(); st_blocks = new SignedLong(); <START> st_atim = new SignedLong(); <END> st_mtim = new SignedLong(); st_ctim = new SignedLong(); }</code><technical_language>this fully implemented for timespec? alluxio.fuse.AlluxioFuseFileSystemTest compile due this issue</technical_language>

Target:
public FileStat(ByteBuffer buffer) { super(buffer); if (OSUtils.isMacOS()) { System.exit(-1); } else if (OSUtils.isWindows()) { System.exit(-1); } else { } st_dev = new Unsigned64(); pad1 = null; st_ino = new Unsigned64(); st_nlink = new Unsigned64(); st_mode = new Unsigned32(); st_uid = new Unsigned32(); st_gid = new Unsigned32(); st_rdev = new Unsigned64(); st_size = new SignedLong(); st_blksize = new SignedLong(); st_blocks = new SignedLong(); st_atim = new Timespec(); st_mtim = new Timespec(); st_ctim = new Timespec(); }
Source:
<code>public void testExclusive() { ExclusiveGateway gateway = new ExclusiveGateway(); gateway.getGeneral().getName().setValue(NAME); gateway.getGeneral().getDocumentation().setValue(DOCUMENTATION); gateway.getExecutionSet().getDefaultRoute().setValue(DEFAULT_ROUTE); <START> Node<View<BaseGateway>, ?> node = mockNode(UUID, gateway); <END> when(propertyWriterFactory.of(any(org.eclipse.bpmn2.ExclusiveGateway.class))).thenReturn(gatewayPropertyWriter); assertEquals(gatewayPropertyWriter, converter.toFlowElement(node)); verifyCommonValues(gatewayPropertyWriter, node); verify(gatewayPropertyWriter).setDefaultRoute(DEFAULT_ROUTE); verify(gatewayPropertyWriter).setGatewayDirection(node); }</code><technical_language>need mock</technical_language>

Target:
public void testExclusive() { ExclusiveGateway gateway = new ExclusiveGateway(); gateway.getGeneral().getName().setValue(NAME); gateway.getGeneral().getDocumentation().setValue(DOCUMENTATION); gateway.getExecutionSet().getDefaultRoute().setValue(DEFAULT_ROUTE); Node<View<BaseGateway>, ?> node = newNode(UUID, gateway); when(propertyWriterFactory.of(any(org.eclipse.bpmn2.ExclusiveGateway.class))).thenReturn(gatewayPropertyWriter); assertEquals(gatewayPropertyWriter, converter.toFlowElement(node)); verifyCommonValues(gatewayPropertyWriter, node); verify(gatewayPropertyWriter).setDefaultRoute(DEFAULT_ROUTE); verify(gatewayPropertyWriter).setGatewayDirection(node); }