auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public PagedFlux<ConfigurationSetting> listSettings(SettingSelector selector) { try { return new PagedFlux<>(() -> withContext(context -> listFirstPageSettings(selector, context)), continuationToken -> withContext(context -> listNextPageSettings(context, continuationToken))); } catch (RuntimeException ex) { return new PagedFlux<>(() -> Mono.error(logger.logExceptionAsError(Exceptions.propagate(ex)))); } }

Target:
public PagedFlux<ConfigurationSetting> listSettings(SettingSelector selector) { try { return new PagedFlux<>(() -> withContext(context -> listFirstPageSettings(selector, context)), continuationToken -> withContext(context -> listNextPageSettings(context, continuationToken))); } catch (RuntimeException ex) { return new PagedFlux<>(() -> monoError(logger, ex)); } }
Source:
public InputStream openStream() throws IOException { payload = objectApi.get(path).getPayload(); try { return payload.openStream(); } catch (IOException e) { if (CloudFilesUtils.CLOUDFILESRETRY.apply(e)) { throw new IOException("Recoverable exception", e); } throw Throwables.propagate(e); } }

Target:
public InputStream openStream() throws IOException { payload = (payload == null) ? objectApi.get(path).getPayload() : payload; try { return payload.openStream(); } catch (IOException e) { if (CloudFilesUtils.CLOUDFILESRETRY.apply(e)) { throw new IOException("Recoverable exception", e); } throw Throwables.propagate(e); } }
Source:
public void testTypeConflictInPublicSchema() throws Exception { node.createCache(new CacheConfiguration<PersonKey, Person>() .setName(CACHE_PERSON) .setIndexedTypes(PersonKey.class, Person.class) .setSqlSchema(QueryUtils.DFLT_SCHEMA)); GridTestUtils.assertThrows(log, (Callable<Void>) () -> { node.createCache(new CacheConfiguration<PersonKey, Person>() .setName(CACHE_PERSON_2) .setIndexedTypes(PersonKey.class, Person.class) .setSqlSchema(QueryUtils.DFLT_SCHEMA)); return null; }, CacheException.class, "Table already exists: PERSON"); }

Target:
public void testTypeConflictInPublicSchema() throws Exception { node.createCache(new CacheConfiguration<PersonKey, Person>() .setName(CACHE_PERSON) .setIndexedTypes(PersonKey.class, Person.class) .setSqlSchema(QueryUtils.DFLT_SCHEMA)); Throwable th = GridTestUtils.assertThrows(log, (Callable<Void>) () -> { node.createCache(new CacheConfiguration<PersonKey, Person>() .setName(CACHE_PERSON_2) .setIndexedTypes(PersonKey.class, Person.class) .setSqlSchema(QueryUtils.DFLT_SCHEMA)); return null; }, CacheException.class, null); SchemaOperationException e = X.cause(th, SchemaOperationException.class); assertEquals(SchemaOperationException.CODE_TABLE_EXISTS, e.code()); }
Source:
private Plugin loadPlugin(File jarFile) throws IOException, ClassNotFoundException { Manifest jarManifest = new JarFile(jarFile).getManifest(); ClassLoader parentLoader = PluginLoader.class.getClassLoader(); ClassLoader jarClassLoader = new URLClassLoader(getPluginURLs(jarFile), parentLoader); Attributes attrs = jarManifest.getMainAttributes(); String pluginName = attrs.getValue("Gerrit-Plugin"); String moduleName = attrs.getValue("Gerrit-SshModule"); Class<?> moduleClass = Class.forName(moduleName, false, jarClassLoader); if (!AbstractModule.class.isAssignableFrom(moduleClass)) { throw new ClassNotFoundException("ModuleClass " + moduleClass.getName() + " is not a Guice AbstractModule"); } return new Plugin(pluginName, (Class<? extends AbstractModule>) moduleClass); }

Target:
private Plugin loadPlugin(File jarFile) throws IOException, ClassNotFoundException { Manifest jarManifest = new JarFile(jarFile).getManifest(); ClassLoader parentLoader = PluginLoader.class.getClassLoader(); ClassLoader jarClassLoader = new URLClassLoader(getPluginURLs(jarFile), parentLoader); String pluginName = getMandatoryAttribute(jarManifest, "Gerrit-Plugin"); String moduleName = getMandatoryAttribute(jarManifest, "Gerrit-SshModule"); Class<?> moduleClass = Class.forName(moduleName, false, jarClassLoader); if (!Module.class.isAssignableFrom(moduleClass)) { throw new ClassNotFoundException("Class " + moduleClass.getName() + " is not a Guice Module"); } return new Plugin(pluginName, (Class<? extends Module>) moduleClass); }
Source:
public void testMetricOutputWithTimestamp() throws IOException { final Long now = System.currentTimeMillis(); class CustomCollector extends Collector { public List<MetricFamilySamples> collect() { List<MetricFamilySamples> mfs = new ArrayList<MetricFamilySamples>(); ArrayList<String> labelNames = new ArrayList<String>(); ArrayList<String> labelValues = new ArrayList<String>(); ArrayList<MetricFamilySamples.Sample> samples = new ArrayList<Collector.MetricFamilySamples.Sample>(); MetricFamilySamples.Sample sample = new MetricFamilySamples.Sample("nolabels", labelNames, labelValues, 1.0, now); samples.add(sample); mfs.add(new MetricFamilySamples("nolabels", Collector.Type.UNTYPED, "help", samples)); return mfs; } } new CustomCollector().register(registry); TextFormat.write004(writer, registry.metricFamilySamples()); assertEquals("# HELP nolabels help\n" + "# TYPE nolabels untyped\n" + "nolabels 1.0 "+ now +"\n", writer.toString()); }

Target:
public void testMetricOutputWithTimestamp() throws IOException { class CustomCollector extends Collector { public List<MetricFamilySamples> collect() { List<MetricFamilySamples> mfs = new ArrayList<MetricFamilySamples>(); ArrayList<String> labelNames = new ArrayList<String>(); ArrayList<String> labelValues = new ArrayList<String>(); ArrayList<MetricFamilySamples.Sample> samples = new ArrayList<Collector.MetricFamilySamples.Sample>(); MetricFamilySamples.Sample sample = new MetricFamilySamples.Sample("nolabels", labelNames, labelValues, 1.0, 1518123456L); samples.add(sample); mfs.add(new MetricFamilySamples("nolabels", Collector.Type.UNTYPED, "help", samples)); return mfs; } } new CustomCollector().register(registry); TextFormat.write004(writer, registry.metricFamilySamples()); assertEquals("# HELP nolabels help\n" + "# TYPE nolabels untyped\n" + "nolabels 1.0 1518123456\n", writer.toString()); }
Source:
void setUp() { final boolean multitenant = true; builder = BoundedContext.newBuilder() .setMultitenant(multitenant); }

Target:
void setUp() { builder = BoundedContext.newBuilder() .setMultitenant(true); }
Source:
private void autoComplete(int slashPosition, String input) { System.out.println(input); autoCompletePopup.getItems().clear(); XPathSuggestions xPathSuggestions = new XPathSuggestions(parent.getLanguageVersion().getLanguage()); List<String> suggestions = xPathSuggestions.getXPathSuggestions(input.trim()); List<MenuItem> resultToDisplay = suggestions.stream().map(m -> new MenuItem(m)).limit(5).collect(Collectors .toList()); autoCompletePopup.getItems().addAll(resultToDisplay); if (xpathExpressionArea.getText().length() > 0) { xpathExpressionArea.addEventHandler(KeyEvent.KEY_PRESSED, t -> { if (t.isControlDown() && (t.getCode() == KeyCode.SPACE)) { autoCompletePopup.show(xpathExpressionArea, 500, 500); autoCompletePopup.setOnAction(e -> { xpathExpressionArea.getText().replace(input, ""); xpathExpressionArea.replaceText(slashPosition + 1, xpathExpressionArea.getText().length() - 1, ((MenuItem) e.getTarget()).getText()); autoCompletePopup.hide(); }); } }); xpathExpressionArea.addEventHandler(KeyEvent.KEY_PRESSED, t -> { if (t.getCode() == KeyCode.ESCAPE) { autoCompletePopup.hide(); } }); } }

Target:
private void autoComplete(int slashPosition, String input) { XPathSuggestions xPathSuggestions = new XPathSuggestions(parent.getLanguageVersion().getLanguage()); List<String> suggestions = xPathSuggestions.getXPathSuggestions(input.trim()); List<CustomMenuItem> resultToDisplay = new ArrayList<>(); if (!suggestions.isEmpty()) { for (int i = 0; i < suggestions.size() && i < 5; i++) { final String searchResult = suggestions.get(i); Label entryLabel = new Label(); entryLabel.setGraphic(Style.highlight(suggestions.get(i), input)); entryLabel.setPrefHeight(5); CustomMenuItem item = new CustomMenuItem(entryLabel, true); resultToDisplay.add(item); item.setOnAction(e -> { xpathExpressionArea.replaceText(slashPosition, slashPosition + input.length(), searchResult); autoCompletePopup.hide(); }); } } autoCompletePopup.getItems().setAll(resultToDisplay); if (autoCompletePopup.isAutoFix()) { xpathExpressionArea.getCharacterBoundsOnScreen(slashPosition, slashPosition + input.length()) .ifPresent(bounds -> autoCompletePopup.show(xpathExpressionArea, bounds.getMinX(), bounds.getMaxY())); } }
Source:
private void createTimeEventContextMenu() { fEventMenuManager.setRemoveAllWhenShown(true); TimeGraphControl timeGraphControl = fTimeGraphViewer.getTimeGraphControl(); final Menu timeEventMenu = fEventMenuManager.createContextMenu(timeGraphControl); timeGraphControl.addTimeEventMenuListener(new MenuDetectListener() { @Override public void menuDetected(MenuDetectEvent event) { Menu menu = timeEventMenu; if (isOnNamespace(event, timeGraphControl) || !(event.data instanceof FlamegraphEvent)) { timeGraphControl.setMenu(null); event.doit = false; return; } timeGraphControl.setMenu(menu); } }); timeGraphControl.addTimeGraphEntryMenuListener(new MenuDetectListener() { @Override public void menuDetected(MenuDetectEvent event) { if (isOnNamespace(event, timeGraphControl)) { timeGraphControl.setMenu(null); event.doit = false; } } }); fEventMenuManager.addMenuListener(new IMenuListener() { @Override public void menuAboutToShow(IMenuManager manager) { fillTimeEventContextMenu(fEventMenuManager); fEventMenuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS)); } }); getSite().registerContextMenu(fEventMenuManager, fTimeGraphViewer.getSelectionProvider()); }

Target:
private void createTimeEventContextMenu() { fEventMenuManager.setRemoveAllWhenShown(true); TimeGraphControl timeGraphControl = fTimeGraphViewer.getTimeGraphControl(); final Menu timeEventMenu = fEventMenuManager.createContextMenu(timeGraphControl); timeGraphControl.addTimeGraphEntryMenuListener(new MenuDetectListener() { @Override public void menuDetected(MenuDetectEvent event) { timeGraphControl.setMenu(null); event.doit = false; } }); timeGraphControl.addTimeEventMenuListener(new MenuDetectListener() { @Override public void menuDetected(MenuDetectEvent event) { Menu menu = timeEventMenu; if (event.data instanceof FlamegraphEvent) { timeGraphControl.setMenu(menu); return; } timeGraphControl.setMenu(null); event.doit = false; } }); fEventMenuManager.addMenuListener(new IMenuListener() { @Override public void menuAboutToShow(IMenuManager manager) { fillTimeEventContextMenu(fEventMenuManager); fEventMenuManager.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS)); } }); getSite().registerContextMenu(fEventMenuManager, fTimeGraphViewer.getSelectionProvider()); }
Source:
public void testPostWithUnsupportedRetryAndFailureWhileHeadersAreSent() throws IOException { AtomicInteger count = new AtomicInteger(1); m_client.setRequestInterceptor( (request, conn, context, superCall) -> { System.out.println("POST write request; try " + count); if (count.getAndIncrement() < 2) { throw new SocketException("TEST:cannot write"); } return superCall.call(); }); HttpRequestFactory reqFactory = m_client.getHttpRequestFactory(); HttpRequest req = reqFactory.buildPostRequest(new GenericUrl(m_server.getContextUrl() + "retry"), new HttpContent() { @Override public void writeTo(OutputStream out) throws IOException { out.write("bar".getBytes()); } @Override public boolean retrySupported() { return false; } @Override public String getType() { return "text/plain;charset=UTF-8"; } @Override public long getLength() throws IOException { return 3; } }); req.setThrowExceptionOnExecuteError(false); req.execute(); }

Target:
public void testPostWithUnsupportedRetryAndFailureWhileHeadersAreSent() throws IOException { AtomicInteger count = new AtomicInteger(1); m_client.setRequestInterceptor( (request, conn, context, superCall) -> { if (count.getAndIncrement() < 2) { conn.close(); } return superCall.call(); }); HttpRequestFactory reqFactory = m_client.getHttpRequestFactory(); HttpRequest req = reqFactory.buildPostRequest(new GenericUrl(m_server.getContextUrl() + "retry"), new HttpContent() { @Override public void writeTo(OutputStream out) throws IOException { out.write("bar".getBytes()); } @Override public boolean retrySupported() { return false; } @Override public String getType() { return "text/plain;charset=UTF-8"; } @Override public long getLength() throws IOException { return 3; } }); req.getHeaders().set(CORRELATION_ID, "02"); HttpResponse resp = req.execute(); byte[] bytes = IOUtility.readBytes(resp.getContent(), ObjectUtility.nvl(resp.getHeaders().getContentLength(), -1L).intValue()); String text = new String(bytes, StandardCharsets.UTF_8).trim(); assertEquals(text, "Post bar"); assertEquals(StandardCharsets.UTF_8, resp.getContentCharset()); assertEquals(new String(bytes), 10, bytes.length); assertEquals(Arrays.asList("02"), Servlet.doPostLog); assertNull(Servlet.doPostError); }
Source:
String determineBranch() throws IOException { String branch = null; String url = getInfoPart("URL:"); int idx; final String branchesStr = "branches/"; if ((idx = url.indexOf(branchesStr)) > 0) { branch = url.substring(idx + branchesStr.length()); } return branch; }

Target:
String determineBranch() throws IOException { String branch = null; String url = getInfoPart(URLprefix); int idx; final String branchesStr = "branches/"; if ((idx = url.indexOf(branchesStr)) > 0) { branch = url.substring(idx + branchesStr.length()); } return branch; }
Source:
protected void acquire(TransactionLocks locks) throws IOException { if (inodeIdentifiers != null && !inodeIdentifiers.isEmpty()) { List<INode> inodes; if(lockType == TransactionLockTypes.INodeLockType.READ_COMMITTED){ inodes = batchRead(); } else{ inodes = orderedReadWithLock(); } for (INode inode : inodes) { if (inode != null) { List<INode> pathInodes = readUpInodes(inode); addPathINodesAndUpdateResolvingCache(INodeUtil.constructPath(pathInodes), pathInodes); } } addIndividualINodes(inodes); } else { throw new StorageException( "INodeIdentifier object is not properly initialized "); } }

Target:
protected void acquire(TransactionLocks locks) throws IOException { if (inodeIdentifiers != null && !inodeIdentifiers.isEmpty()) { List<INode> inodes = batchRead(); for (INode inode : inodes) { if (inode != null) { List<INode> pathInodes = readUpInodes(inode); addPathINodesAndUpdateResolvingCache(INodeUtil.constructPath(pathInodes), pathInodes); } } addIndividualINodes(inodes); } else { throw new StorageException( "INodeIdentifier object is not properly initialized "); } }
Source:
public void testFormatRequest() throws Exception { Position position = new Position("123456789012345", new Location("gps"), 0); position.setTime(new Date(0)); String url = ProtocolFormatter.formatRequest("http://localhost:5055/path", position); assertEquals("http://localhost:5055/path?id=123456789012345&timestamp=0&lat=0.0&lon=0.0&speed=0.0&bearing=0.0&altitude=0.0&batt=0.0", url); }

Target:
public void testFormatRequest() throws Exception { Position position = new Position("123456789012345", new Location("gps"), 0); position.setTime(new Date(0)); String url = ProtocolFormatter.formatRequest("http://localhost:5055", position); assertEquals("http://localhost:5055?id=123456789012345&timestamp=0&lat=0.0&lon=0.0&speed=0.0&bearing=0.0&altitude=0.0&batt=0.0", url); }
Source:
public void init(ExternalComponentEditor presenter) { componentEditorPropertiesColumn.innerHTML = ""; componentEditorPreviewColumn.innerHTML = ""; domUtil.appendWidgetToElement(componentEditorPropertiesColumn, presenter.getPropertiesEditor().asWidget()); domUtil.appendWidgetToElement(componentEditorPreviewColumn, presenter.getExternalComponentPresenter().getView().asWidget()); }

Target:
public void init(ExternalComponentEditor presenter) { domUtil.appendWidgetToElement(componentEditorPropertiesColumn, presenter.getPropertiesEditor().asWidget()); domUtil.appendWidgetToElement(componentEditorPreviewColumn, presenter.getExternalComponentPresenter().getView().asWidget()); }
Source:
public void getPoints( final BackendlessGeoQuery geoQuery, final AsyncCallback<BackendlessCollection<GeoPoint>> responder ) { try { checkGeoQuery( geoQuery ); CollectionAdaptingPolicy<GeoPoint> adaptingPolicy = new CollectionAdaptingPolicy<GeoPoint>(); if( geoQuery.getDpp() != null && geoQuery.getDpp() > 0 ) { Backendless.Cache.put( Messaging.DEVICE_ID + "." + BackendlessGeoQuery.class.getSimpleName(), geoQuery ); } Invoker.invokeAsync( GEO_MANAGER_SERVER_ALIAS, "getPoints", new Object[] { Backendless.getApplicationId(), Backendless.getVersion(), geoQuery }, new AsyncCallback<BackendlessCollection<GeoPoint>>() { @Override public void handleResponse( BackendlessCollection<GeoPoint> response ) { response.setQuery( geoQuery ); response.setType( GeoPoint.class ); if( responder != null ) responder.handleResponse( response ); } @Override public void handleFault( BackendlessFault fault ) { responder.handleFault( fault ); } }, new AdaptingResponder<GeoPoint>( GeoPoint.class, adaptingPolicy ) ); } catch( Throwable e ) { if( responder != null ) responder.handleFault( new BackendlessFault( e ) ); } }

Target:
public void getPoints( final BackendlessGeoQuery geoQuery, final AsyncCallback<BackendlessCollection<GeoPoint>> responder ) { try { checkGeoQuery( geoQuery ); CollectionAdaptingPolicy<GeoPoint> adaptingPolicy = new CollectionAdaptingPolicy<GeoPoint>(); Invoker.invokeAsync( GEO_MANAGER_SERVER_ALIAS, "getPoints", new Object[] { Backendless.getApplicationId(), Backendless.getVersion(), geoQuery }, new AsyncCallback<BackendlessCollection<GeoPoint>>() { @Override public void handleResponse( BackendlessCollection<GeoPoint> response ) { response.setQuery( geoQuery ); response.setType( GeoPoint.class ); if( geoQuery.getDpp() != null && geoQuery.getDpp() > 0 ) { setReferenceToCluster( response ); } if( responder != null ) responder.handleResponse( response ); } @Override public void handleFault( BackendlessFault fault ) { responder.handleFault( fault ); } }, new AdaptingResponder<GeoPoint>( GeoPoint.class, adaptingPolicy ) ); } catch( Throwable e ) { if( responder != null ) responder.handleFault( new BackendlessFault( e ) ); } }
Source:
public InDimFilter optimizeLookup() { if (extractionFn instanceof LookupExtractionFn && ((LookupExtractionFn) extractionFn).isOptimize()) { LookupExtractionFn exFn = (LookupExtractionFn) extractionFn; LookupExtractor lookup = exFn.getLookup(); final List<String> keys = new ArrayList<>(); for (String value : values) { final String convertedValue = Strings.emptyToNull(value); if (!exFn.isRetainMissingValue() && Objects.equals(convertedValue, exFn.getReplaceMissingValueWith())) { return this; } keys.addAll(lookup.unapply(convertedValue)); if (exFn.isRetainMissingValue() && lookup.apply(convertedValue) == null) { keys.add(convertedValue); } } if (keys.isEmpty()) { return this; } else { return new InDimFilter(dimension, keys, null); } } return this; }

Target:
private InDimFilter optimizeLookup() { if (extractionFn instanceof LookupExtractionFn && ((LookupExtractionFn) extractionFn).isOptimize()) { LookupExtractionFn exFn = (LookupExtractionFn) extractionFn; LookupExtractor lookup = exFn.getLookup(); final List<String> keys = new ArrayList<>(); for (String value : values) { final String convertedValue = Strings.emptyToNull(value); if (!exFn.isRetainMissingValue() && Objects.equals(convertedValue, exFn.getReplaceMissingValueWith())) { return this; } keys.addAll(lookup.unapply(convertedValue)); if (exFn.isRetainMissingValue() && lookup.apply(convertedValue) == null) { keys.add(convertedValue); } } if (keys.isEmpty()) { return this; } else { return new InDimFilter(dimension, keys, null); } } return this; }
Source:
private void fetchPopupPresenterTemplate(PresenterOptions presenterOptions) throws Exception { PopupPresenterOptions presenterWidgetOptions = new PopupPresenterOptions(); presenterWidgetOptions.setSingleton(presenterConfigModel.isUseSingleton()); presenterWidgetOptions.setCustom(presenterConfigModel.isUseOverrideDefaultPopup()); try { createdPopupPresenterTemplates = CreatePopupPresenter.run(presenterOptions, presenterWidgetOptions, true); } catch (Exception e) { throw e; } }

Target:
private void fetchPopupPresenterTemplate(PresenterOptions presenterOptions) throws Exception { PopupPresenterOptions presenterWidgetOptions = new PopupPresenterOptions(); presenterWidgetOptions.setSingleton(presenterConfigModel.isUseSingleton2()); presenterWidgetOptions.setCustom(presenterConfigModel.isUseOverrideDefaultPopup()); createdPopupPresenterTemplates = CreatePopupPresenter.run(presenterOptions, presenterWidgetOptions, true); }
Source:
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (StringUtils.isEmpty(request.getParameter(SSOUtils.POST_ACTION_URL))) { throw new RuntimeException("No post action url found in request."); } boolean acceptBasicAuth = (boolean) request.getSession().getServletContext().getAttribute(SSOUtils.ACCEPT_BASIC_AUTH_HEADERS); request.getSession(true).setAttribute(SSOUtils.PARAMS_MAP, new HashMap<>(request.getParameterMap())); if (acceptBasicAuth) { response.sendRedirect(request.getContextPath() + SSOUtils.LOGIN_EXTERNAL_URI); } else { response.sendRedirect(request.getContextPath() + SSOUtils.LOGIN_PHASE2_URI); } }

Target:
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { if (StringUtils.isEmpty(request.getParameter(SSOUtils.POST_ACTION_URL))) { throw new RuntimeException("No post action url found in request."); } boolean enableExternalAuth = (boolean) request.getSession().getServletContext().getAttribute(SSOUtils.ENABLE_EXTERNAL_AUTH); boolean acceptBasicAuth = (boolean) request.getSession().getServletContext().getAttribute(SSOUtils.ACCEPT_BASIC_AUTH_HEADERS); request.getSession(true).setAttribute(SSOUtils.PARAMS_MAP, new HashMap<>(request.getParameterMap())); if (enableExternalAuth) { response.sendRedirect(request.getContextPath() + SSOUtils.LOGIN_EXTERNAL_URI); } else if (acceptBasicAuth) { response.sendRedirect(request.getContextPath() + SSOUtils.LOGIN_BASIC_URI); } else { response.sendRedirect(request.getContextPath() + SSOUtils.LOGIN_PHASE2_URI); } }
Source:
public boolean onTouch(View view, MotionEvent motionEvent) { if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { startTime = motionEvent.getEventTime(); contextMenuShown = false; return true; } if(isDragging) { return true; } long holdTime = motionEvent.getEventTime() - startTime; if (holdTime < LONG_PRESS_DELAY && motionEvent.getAction() == MotionEvent.ACTION_UP) { this.onClick(view); return true; } if(!contextMenuShown && holdTime > LONG_PRESS_DELAY) { contextMenuShown = true; this.onLongClick(view); return true; } int intCurrentY = Math.round(motionEvent.getY()); int intCurrentX = Math.round(motionEvent.getX()); int intStartY = motionEvent.getHistorySize() > 0 ? Math.round(motionEvent.getHistoricalY(0)) : intCurrentY; int intStartX = motionEvent.getHistorySize() > 0 ? Math.round(motionEvent.getHistoricalX(0)) : intCurrentX; boolean hasMoved = (Math.abs(intCurrentX - intStartX) > MOVE_SENSITIVITY) || (Math.abs(intCurrentY - intStartY) > MOVE_SENSITIVITY); int favSize = KissApplication.getApplication(mainActivity).getDataHandler().getFavorites(3).size(); if (hasMoved && favSize > 1) { mainActivity.dismissPopup(); mainActivity.closeContextMenu(); View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view); view.startDrag(null, shadowBuilder, view, 0); view.setVisibility(View.INVISIBLE); return true; } return false; }

Target:
public boolean onTouch(View view, MotionEvent motionEvent) { if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { startTime = motionEvent.getEventTime(); contextMenuShown = false; return true; } if(isDragging) { return true; } long holdTime = motionEvent.getEventTime() - startTime; if (holdTime < LONG_PRESS_DELAY && motionEvent.getAction() == MotionEvent.ACTION_UP) { this.onClick(view); return true; } if(!contextMenuShown && holdTime > LONG_PRESS_DELAY) { contextMenuShown = true; this.onLongClick(view); return true; } int intCurrentY = Math.round(motionEvent.getY()); int intCurrentX = Math.round(motionEvent.getX()); int intStartY = motionEvent.getHistorySize() > 0 ? Math.round(motionEvent.getHistoricalY(0)) : intCurrentY; int intStartX = motionEvent.getHistorySize() > 0 ? Math.round(motionEvent.getHistoricalX(0)) : intCurrentX; boolean hasMoved = (Math.abs(intCurrentX - intStartX) > MOVE_SENSITIVITY) || (Math.abs(intCurrentY - intStartY) > MOVE_SENSITIVITY); if (hasMoved && mDragEnabled) { mainActivity.dismissPopup(); mainActivity.closeContextMenu(); View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(view); view.startDrag(null, shadowBuilder, view, 0); view.setVisibility(View.INVISIBLE); return true; } return false; }
Source:
public void testRowDataWriteReadWithCompatibleSchema() throws Exception { testRowDataWriteReadWithSchema(ADDRESS_SCHEMA_COMPATIBLE); assertThat(client.getAllVersions("address-value").size(), is(1)); }

Target:
public void testRowDataWriteReadWithCompatibleSchema() throws Exception { testRowDataWriteReadWithSchema(ADDRESS_SCHEMA_COMPATIBLE); assertThat(client.getAllVersions(SUBJECT).size(), is(1)); }
Source:
public String getName() { return "External Components"; }

Target:
public String getName() { return i18n.externalComponents(); }
Source:
public void updateFirmwareShouldNotCallExecutorWhenFirmwareFileNotInCache() throws ProtocolAdapterException { final String firmwareIdentification = "fw"; when(this.firmwareFileCachingRepository.retrieve(firmwareIdentification)).thenReturn(null); try { this.firmwareService.updateFirmware(this.dlmsConnectionHolderMock, this.dlmsDeviceMock, firmwareIdentification); } catch (final ProtocolAdapterException e) { e.printStackTrace(); ; } verify(this.updateFirmwareCommandExecutor, times(0)).execute(this.dlmsConnectionHolderMock, this.dlmsDeviceMock, firmwareIdentification); }

Target:
public void updateFirmwareShouldNotCallExecutorWhenFirmwareFileNotInCache() throws ProtocolAdapterException { final String firmwareIdentification = "fw"; when(this.firmwareFileCachingRepository.retrieve(firmwareIdentification)).thenReturn(null); try { this.firmwareService.updateFirmware(this.dlmsConnectionHolderMock, this.dlmsDeviceMock, firmwareIdentification); } catch (final ProtocolAdapterException e) { e.printStackTrace(); } verify(this.updateFirmwareCommandExecutor, never()).execute(this.dlmsConnectionHolderMock, this.dlmsDeviceMock, firmwareIdentification); }
Source:
public int kafkaPartition(RowMap r, int numPartitions) { if ( this.provider instanceof HashStringColumn ) return Math.abs(hashFunc.hashCode(((HashStringColumn) provider).getHashString(r, this.partitionColumns)) % numPartitions); else return Math.abs(hashFunc.hashCode(provider.getHashString(r)) % numPartitions); }

Target:
public int kafkaPartition(RowMap r, int numPartitions) { return Math.abs(hashFunc.hashCode(provider.getHashString(r, this.partitionColumns, this.partitionKeyFallback)) % numPartitions); }
Source:
public Flux<NumericResponse<BitCountCommand, Long>> bitCount(Publisher<BitCountCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Range<Long> range = command.getRange(); return (!Range.unbounded().equals(range) ? cmd.bitcount(command.getKey(), range.getLowerBound().getValue().orElse(Long.MIN_VALUE), range.getUpperBound().getValue().orElse(Long.MAX_VALUE)) : cmd.bitcount(command.getKey())).map(responseValue -> new NumericResponse<>(command, responseValue)); })); }

Target:
public Flux<NumericResponse<BitCountCommand, Long>> bitCount(Publisher<BitCountCommand> commands) { return connection.execute(cmd -> Flux.from(commands).concatMap(command -> { Assert.notNull(command.getKey(), "Key must not be null!"); Range<Long> range = command.getRange(); return (!Range.unbounded().equals(range) ? cmd.bitcount(command.getKey(), range.getLowerBound().getValue().orElse(0L), range.getUpperBound().getValue().orElse(Long.MAX_VALUE)) : cmd.bitcount(command.getKey())).map(responseValue -> new NumericResponse<>(command, responseValue)); })); }
Source:
public List<String> getSessionIdsForUserName(String userName,String tenantDomain,String userStoreDomain) { List<String> sessionIdList = null; if (!enablePersist) { return sessionIdList; } Connection connection = null; PreparedStatement preparedStatement = null; ResultSet resultSet = null; try { sessionIdList = new ArrayList<String>();; connection = jdbcPersistenceManager.getDBConnection(); connection.setAutoCommit(false); preparedStatement = connection.prepareStatement(SQL_SELECT_SESSION_IDS_MAPPED_TO_USER_NAME); preparedStatement.setString(1, userName); preparedStatement.setString(2, userStoreDomain); preparedStatement.setString(3, tenantDomain); resultSet = preparedStatement.executeQuery(); while (resultSet.next()) { sessionIdList.add(resultSet.getString(1)); } if (preparedStatement != null) { preparedStatement.close(); } } catch (IdentityException e) { log.error("Error while getting session data", e); } catch (SQLException e) { log.error("Error while getting session data", e); } finally { try { if (preparedStatement != null) { preparedStatement.close(); } if (connection != null) { connection.close(); } } catch (SQLException e) { log.error("Error while closing the stream", e); } } return sessionIdList; }

Target:
public List<String> getSessionIdsForUserName(String userName, String tenantDomain, String userStoreDomain) { List<String> sessionIdsList = null; if (!enablePersist) { return sessionIdsList; } Connection connection = null; PreparedStatement preparedStatement = null; ResultSet resultSet = null; try { sessionIdsList = new ArrayList<String>(); connection = jdbcPersistenceManager.getDBConnection(); connection.setAutoCommit(false); preparedStatement = connection.prepareStatement(SQL_SELECT_SESSION_IDS_MAPPED_TO_USER_NAME); preparedStatement.setString(1, userName); preparedStatement.setString(2, userStoreDomain); preparedStatement.setString(3, tenantDomain); resultSet = preparedStatement.executeQuery(); while (resultSet.next()) { sessionIdsList.add(resultSet.getString(1)); } } catch (IdentityException e) { log.error("Error while getting session data", e); } catch (SQLException e) { log.error("Error while getting session data", e); } finally { try { if (preparedStatement != null) { preparedStatement.close(); } if (connection != null) { connection.close(); } } catch (SQLException e) { log.error("Error while closing the stream", e); } } return sessionIdsList; }
Source:
public void testPreSplitCompositeFixedKey() throws Exception { Connection conn = DriverManager.getConnection(getUrl()); try { conn.createStatement().execute("create table test2(key_1 char(3) not null, key_2 char(4) not null, v varchar(8) CONSTRAINT pk PRIMARY KEY (key_1,key_2)) split on('000','100','200')"); conn.setAutoCommit(true); conn.createStatement().execute("upsert into test2 values('000','aaaa','value_1')"); conn.createStatement().execute("upsert into test2 values('000','aabb','value_2')"); conn.createStatement().execute("upsert into test2 values('100','aacc','value_3')"); conn.createStatement().execute("upsert into test2 values('100','aadd','value_4')"); conn.createStatement().execute("upsert into test2 values('200','aaee','value_5')"); conn.createStatement().execute("upsert into test2 values('201','aaff','value_6')"); ResultSet rs = conn.createStatement().executeQuery("select * from test2 where key_1>='000' and key_1<'200' and key_2>='aabb' and key_2<'aadd'"); assertTrue(rs.next()); assertEquals("000", rs.getString(1)); assertEquals("aabb", rs.getString(2)); assertEquals("value_2", rs.getString(3)); assertTrue(rs.next()); assertEquals("100", rs.getString(1)); assertEquals("aacc", rs.getString(2)); assertEquals("value_3", rs.getString(3)); assertFalse(rs.next()); } finally { conn.close(); } }

Target:
public void testPreSplitCompositeFixedKey() throws Exception { String tableName = generateRandomString(); Connection conn = DriverManager.getConnection(getUrl()); try { conn.createStatement().execute("create table " + tableName + "(key_1 char(3) not null, key_2 char(4) not null, v varchar(8) CONSTRAINT pk PRIMARY KEY (key_1,key_2)) split on('000','100','200')"); conn.setAutoCommit(true); conn.createStatement().execute("upsert into " + tableName + " values('000','aaaa','value_1')"); conn.createStatement().execute("upsert into " + tableName + " values('000','aabb','value_2')"); conn.createStatement().execute("upsert into " + tableName + " values('100','aacc','value_3')"); conn.createStatement().execute("upsert into " + tableName + " values('100','aadd','value_4')"); conn.createStatement().execute("upsert into " + tableName + " values('200','aaee','value_5')"); conn.createStatement().execute("upsert into " + tableName + " values('201','aaff','value_6')"); ResultSet rs = conn.createStatement().executeQuery("select * from " + tableName + " where key_1>='000' and key_1<'200' and key_2>='aabb' and key_2<'aadd'"); assertTrue(rs.next()); assertEquals("000", rs.getString(1)); assertEquals("aabb", rs.getString(2)); assertEquals("value_2", rs.getString(3)); assertTrue(rs.next()); assertEquals("100", rs.getString(1)); assertEquals("aacc", rs.getString(2)); assertEquals("value_3", rs.getString(3)); assertFalse(rs.next()); } finally { conn.close(); } }
Source:
public static LanguageServerWrapper getLSWrapperForConnection(@NonNull IProject project, @NonNull LanguageServerDefinition serverDefinition, @Nullable IPath initialPath) throws IOException { LanguageServerWrapper wrapper = null; synchronized(startedServers) { for (LanguageServerWrapper startedWrapper : getStartedLSWrappers(project)) { if (startedWrapper.serverDefinition.equals(serverDefinition)) { wrapper = startedWrapper; break; } } if (wrapper == null) { wrapper = project != null ? new LanguageServerWrapper(project, serverDefinition) : new LanguageServerWrapper(serverDefinition, initialPath); wrapper.start(); } startedServers.add(wrapper); } return wrapper; }

Target:
private static LanguageServerWrapper getLSWrapperForConnection(@NonNull IProject project, @NonNull LanguageServerDefinition serverDefinition, @Nullable IPath initialPath) throws IOException { LanguageServerWrapper wrapper = null; synchronized(startedServers) { for (LanguageServerWrapper startedWrapper : getStartedLSWrappers(project)) { if (startedWrapper.serverDefinition.equals(serverDefinition)) { wrapper = startedWrapper; break; } } if (wrapper == null) { wrapper = project != null ? new LanguageServerWrapper(project, serverDefinition) : new LanguageServerWrapper(serverDefinition, initialPath); wrapper.start(); } startedServers.add(wrapper); } return wrapper; }
Source:
public CosmosContinuablePagedIterable(ContinuablePagedFlux<String, T, FeedResponse<T>> pagedFlux) { super(pagedFlux); }

Target:
CosmosContinuablePagedIterable(ContinuablePagedFlux<String, T, FeedResponse<T>> pagedFlux) { super(pagedFlux); }
Source:
public Object read() { try { if (!forward()) { return null; } String tag = getLocalName(); Method m = readers.get(tag); if (m == null) { throw new RuntimeException( String.format("Can't find a reader for tag '%s'", tag) ); } return m.invoke(null, this); } catch (IllegalAccessException | InvocationTargetException e) { throw new RuntimeException("Failed to invoke read method."); } finally { close(); } }

Target:
public Object read() { String tag = getLocalName(); Method method = readers.get(tag); try { if (!forward()) { return null; } if (method == null) { throw new RuntimeException( String.format("Can't find a reader for tag '%s'", tag) ); } return method.invoke(null, this); } catch (IllegalAccessException | InvocationTargetException exception) { throw new RuntimeException( String.format("Failed to invoke method '%1$s' to read element for tag '%2$s'", method, tag), exception ); } finally { close(); } }
Source:
private void initialize() { log.info("Start initializing {}", getClass().getSimpleName()); Integer backupCheckPeriodInHours = Config.<Integer>getValue(ConfigValues.BackupCheckPeriodInHours); if (backupCheckPeriodInHours > 0) { schedulerUtil.scheduleAFixedDelayJob(this, "backupCheck", new Class[] {}, new Object[] {}, backupCheckPeriodInHours, backupCheckPeriodInHours, TimeUnit.HOURS); log.info("Finished initializing {}", getClass().getSimpleName()); } lock = new ReentrantLock(); }

Target:
private void initialize() { log.info("Start initializing {}", getClass().getSimpleName()); Integer backupCheckPeriodInHours = Config.<Integer>getValue(ConfigValues.BackupCheckPeriodInHours); if (backupCheckPeriodInHours > 0) { schedulerUtil.scheduleAFixedDelayJob(this, "backupCheck", new Class[] {}, new Object[] {}, backupCheckPeriodInHours, backupCheckPeriodInHours, TimeUnit.HOURS); log.info("Finished initializing {}", getClass().getSimpleName()); } }
Source:
public static Map<String, List<Long>> getTermPositions(IndexReader reader, String docid) throws IOException, NotStoredException { int ldocid = convertDocidToLuceneDocid(reader, docid); if (ldocid == -1) { return null; } Terms terms = reader.getTermVector(ldocid, IndexArgs.CONTENTS); if (terms == null) { throw new NotStoredException("Document vector not stored!"); } TermsEnum termIter = terms.iterator(); if (termIter == null) { throw new NotStoredException("Document vector not stored!"); } Map<String, List<Long>> termPosition = new HashMap<>(); PostingsEnum positionIter = null; while ((termIter.next()) != null) { List<Long> positions = new ArrayList<>(); Long termFreq = termIter.totalTermFreq(); positionIter = termIter.postings(positionIter, PostingsEnum.POSITIONS); positionIter.nextDoc(); for ( int i = 0; i < termFreq; i++ ) { positions.add(Long.valueOf(positionIter.nextPosition())); } termPosition.put(termIter.term().utf8ToString(), positions); } return termPosition; }

Target:
public static Map<String, List<Integer>> getTermPositions(IndexReader reader, String docid) throws IOException, NotStoredException { int ldocid = convertDocidToLuceneDocid(reader, docid); if (ldocid == -1) { return null; } Terms terms = reader.getTermVector(ldocid, IndexArgs.CONTENTS); if (terms == null) { throw new NotStoredException("Document vector not stored!"); } TermsEnum termIter = terms.iterator(); if (termIter == null) { throw new NotStoredException("Document vector not stored!"); } Map<String, List<Integer>> termPosition = new HashMap<>(); PostingsEnum positionIter = null; while ((termIter.next()) != null) { List<Integer> positions = new ArrayList<>(); long termFreq = termIter.totalTermFreq(); positionIter = termIter.postings(positionIter, PostingsEnum.POSITIONS); positionIter.nextDoc(); for ( int i = 0; i < termFreq; i++ ) { positions.add(positionIter.nextPosition()); } termPosition.put(termIter.term().utf8ToString(), positions); } return termPosition; }
Source:
protected boolean isOperationAllowed(boolean isWrite, long flagBitSet) { if (availabilityMode == AvailabilityMode.AVAILABLE) return true; switch (partitionHandling) { case ALLOW_READ_WRITES: return true; case ALLOW_READS: if (EnumUtil.enumSetOf(flagBitSet, Flag.class).contains(Flag.FORCE_WRITE_LOCK)) throw log.degradedModeForceWriteLockUnavailable(); return !isWrite; default: return false; } }

Target:
protected boolean isOperationAllowed(boolean isWrite, long flagBitSet) { if (availabilityMode == AvailabilityMode.AVAILABLE) return true; switch (partitionHandling) { case ALLOW_READ_WRITES: return true; case ALLOW_READS: if (EnumUtil.containsAny(flagBitSet, FlagBitSets.FORCE_WRITE_LOCK)) throw log.degradedModeLockUnavailable(); return !isWrite; default: return false; } }
Source:
public double getTurnSpeed() { try { return motionController.getSafely(); } catch (final InvalidSensorException e) { move.cancel(); cancel(); if (fallbackCommand != null) { fallbackCommand.initialize(); } return 0; } }

Target:
public double getTurnSpeed() { try { return motionController.getSafely(); } catch (final InvalidSensorException e) { move.cancel(); cancel(); if (fallbackCommand != null) { fallbackCommand.schedule(); } return 0; } }
Source:
private static SampleTissueProcessingDto asTissueProcessingSampleDto(SampleTissueProcessing from) { SampleTissueProcessingDto dto = null; if (from.getClass() == SampleCVSlideImpl.class) { dto = asCVSlideSampleDto((SampleCVSlide) from); } else if (from.getClass() == SampleLCMTubeImpl.class) { dto = asLCMTubeSampleDto((SampleLCMTube) from); } else { dto = new SampleTissueProcessingDto(); } return dto; }

Target:
private static SampleTissueProcessingDto asTissueProcessingSampleDto(SampleTissueProcessing from) { SampleTissueProcessingDto dto = null; if (from instanceof SampleCVSlideImpl) { dto = asCVSlideSampleDto((SampleCVSlide) from); } else if (from.getClass() == SampleLCMTubeImpl.class) { dto = asLCMTubeSampleDto((SampleLCMTube) from); } else { dto = new SampleTissueProcessingDto(); } return dto; }
Source:
private CommittableTypeInformation<CommT> extractCommittableTypeInformation(Sink<InputT, CommT, WriterStateT, GlobalCommT> sink) { if (sink.getCommittableSerializer().isPresent()) { final Type committableType = TypeExtractor.getParameterType( Sink.class, sink.getClass(), 1); return new CommittableTypeInformation<>( typeToClass(committableType), () -> sink.getCommittableSerializer().get()); } else { return null; } }

Target:
private CommittableTypeInformation<CommT> extractCommittableTypeInformation(Sink<InputT, CommT, WriterStateT, GlobalCommT> sink) { if (sink.getCommittableSerializer().isPresent()) { final Type committableType = TypeExtractor.getParameterType( Sink.class, sink.getClass(), 1); LOG.debug("Extract committable from sink [{}].", committableType.toString(), sink.getClass().getCanonicalName()); return new CommittableTypeInformation<>( typeToClass(committableType), () -> sink.getCommittableSerializer().get()); } else { return null; } }
Source:
public ResponseEntity deleteGroup(@PathVariable(value = "groupName") String groupName) { groupService.deleteGroup(groupName); return ResponseEntity.accepted().build(); }

Target:
public ResponseEntity deleteGroup(@PathVariable(value = "groupName") String groupName) { groupService.deleteGroup(groupName); return ResponseEntity.noContent().build(); }
Source:
private void downloadToFileCleanup(AsynchronousFileChannel channel, String filePath, SignalType signalType) { try { channel.close(); if (!signalType.equals(SignalType.ON_COMPLETE)) { Files.delete(Paths.get(filePath)); } } catch (IOException e) { throw logger.logExceptionAsError(new UncheckedIOException(e)); } }

Target:
private void downloadToFileCleanup(AsynchronousFileChannel channel, String filePath, SignalType signalType) { try { channel.close(); if (!signalType.equals(SignalType.ON_COMPLETE)) { Files.delete(Paths.get(filePath)); logger.verbose("Downloading to file failed. Cleaning up resources."); } } catch (IOException e) { throw logger.logExceptionAsError(new UncheckedIOException(e)); } }
Source:
public @ResponseBody Map<String, Object> updatePassword(String oldPassword, String newPassword) { LOG.debug("Requested to update a password."); try { boolean success = this.service.updatePassword(oldPassword, newPassword); if(success) { return ResultSet.success("Password has successfully been updated."); } return ResultSet .error("Password could NOT been updated. Please check if the old password was passed correctly."); } catch (Exception e) { final String message = e.getMessage(); LOG.error("Could not update a password: " + message); return ResultSet.error(message); } }

Target:
public @ResponseBody Map<String, Object> updatePassword(String oldPassword, String newPassword) { LOG.debug("Requested to update a password."); try { boolean success = this.service.updatePassword(oldPassword, newPassword); if(success) { return ResultSet.success("Password has successfully been updated."); } return ResultSet .error("Password could NOT be updated. Please check if the old password was passed correctly."); } catch (Exception e) { final String message = e.getMessage(); LOG.error("Could not update a password: " + message); return ResultSet.error(message); } }
Source:
public static XBeePacket parsePacket(String packet) throws XBeeException, PacketParsingException { return parsePacket(HexUtils.hexStringToByteArray(packet.trim().replace(" ", ""))); }

Target:
public static XBeePacket parsePacket(String packet) throws PacketParsingException { if (packet == null) throw new NullPointerException("Packet cannot be null."); return parsePacket(HexUtils.hexStringToByteArray(packet.trim().replace(" ", ""))); }
Source:
public KeycloakUserRemover( @Nullable @Named("che.keycloak.cascade_user_removal_enabled") boolean userRemovalEnabled, @Nullable @Named("che.keycloak.admin_username") String keycloakUser, @Nullable @Named("che.keycloak.admin_password") String keycloakPassword, KeycloakSettings keycloakSettings, HttpJsonRequestFactory requestFactory) { this.keycloakUser = keycloakUser; this.keycloakPassword = keycloakPassword; this.requestFactory = requestFactory; if (userRemovalEnabled) { String serverUrl = keycloakSettings.get().get(AUTH_SERVER_URL_SETTING); if (serverUrl == null) { throw new RuntimeException(AUTH_SERVER_URL_SETTING + " is not configured"); } String realm = keycloakSettings.get().get(REALM_SETTING); if (realm == null) { throw new RuntimeException(REALM_SETTING + " is not configured"); } if (Strings.isNullOrEmpty(keycloakUser) || Strings.isNullOrEmpty(keycloakPassword)) { throw new RuntimeException("Keycloak administrator username or password not set."); } this.keycloakTokenEndpoint = serverUrl + "/realms/master/protocol/openid-connect/token"; this.keycloakRemoveUserUrl = serverUrl + "/admin/realms/" + realm + "/users/"; } }

Target:
public KeycloakUserRemover( @Nullable @Named("che.keycloak.cascade_user_removal_enabled") boolean userRemovalEnabled, @Nullable @Named("che.keycloak.admin_username") String keycloakUser, @Nullable @Named("che.keycloak.admin_password") String keycloakPassword, KeycloakSettings keycloakSettings, HttpJsonRequestFactory requestFactory) { this.keycloakUser = keycloakUser; this.keycloakPassword = keycloakPassword; this.requestFactory = requestFactory; if (userRemovalEnabled) { String serverUrl = keycloakSettings.get().get(AUTH_SERVER_URL_SETTING); if (serverUrl == null) { throw new ConfigurationException(AUTH_SERVER_URL_SETTING + " is not configured"); } String realm = keycloakSettings.get().get(REALM_SETTING); if (realm == null) { throw new ConfigurationException(REALM_SETTING + " is not configured"); } if (Strings.isNullOrEmpty(keycloakUser) || Strings.isNullOrEmpty(keycloakPassword)) { throw new ConfigurationException("Keycloak administrator username or password not set."); } this.keycloakTokenEndpoint = serverUrl + "/realms/master/protocol/openid-connect/token"; this.keycloakRemoveUserUrl = serverUrl + "/admin/realms/" + realm + "/users/"; } }
Source:
protected Set<Value.Immutable<?>> api$getVanillaValues() { final Set<Value.Immutable<?>> vanillaValues = super.api$getVanillaValues(); if (this.shadow$getBeamTarget() != null) { this.beamTarget().map(Value::asImmutable).ifPresent(vanillaValues::add); } vanillaValues.add(this.showBottom().asImmutable()); return vanillaValues; }

Target:
protected Set<Value.Immutable<?>> api$getVanillaValues() { final Set<Value.Immutable<?>> values = super.api$getVanillaValues(); this.explosionRadius().map(Value::asImmutable).ifPresent(values::add); values.add(this.showBottom().asImmutable()); this.beamTarget().map(Value::asImmutable).ifPresent(values::add); return values; }