buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public javafx.collections.ObservableList<javafx.beans.property.Property<? extends java.lang.Object>> getFields() { javafx.collections.ObservableList<javafx.beans.property.Property<? extends java.lang.Object>> fields = super.getFields(); fields.add(this.layoutXProperty()); fields.add(this.layoutYProperty());...
public javafx.collections.ObservableList<javafx.beans.property.Property<? extends java.lang.Object>> getFields() { javafx.collections.ObservableList<javafx.beans.property.Property<? extends java.lang.Object>> fields = super.getFields(); fields.add(this.layoutXProperty()); fields.add(this.layoutYProperty());...
public void addOneRowOfResult(java.lang.Object rowResult) { if ((matchResult) == null) { matchResult = new java.util.ArrayList<java.lang.Object[]>(); } if (rowResult instanceof java.lang.String[]) { matchResult.add(((java.lang.String[]) (rowResult))); } }
public void addOneRowOfResult(java.lang.Object rowResult) { if ((matchResult) == null) { matchResult = new java.util.ArrayList<>(); } if (rowResult instanceof java.lang.Object[]) { matchResult.add(((java.lang.Object[]) (rowResult))); } }
private com.nilhcem.droidcontn.data.app.model.Session findSelectedSession(int slotId, java.util.List<com.nilhcem.droidcontn.data.app.model.Session> slotSessions) { com.nilhcem.droidcontn.data.app.model.Session selectedSession = null; int selectedSessionId = dao.get(slotId); if (selectedSessionId != 0) { ...
private com.nilhcem.droidcontn.data.app.model.Session findSelectedSession(int slotId, java.util.List<com.nilhcem.droidcontn.data.app.model.Session> slotSessions) { com.nilhcem.droidcontn.data.app.model.Session selectedSession = null; int selectedSessionId = dao.get(slotId); if (selectedSessionId != (-1)) { ...
public void onClick(android.view.View v) { removeCover(); new android.os.Handler().postDelayed(new java.lang.Runnable() { public void run() { searchView.setVisibility(View.INVISIBLE); imageViewUnderLine.setVisibility(View.INVISIBLE); RemoveUnderLine(); sea...
public void onClick(android.view.View v) { removeCover(true); new android.os.Handler().postDelayed(new java.lang.Runnable() { public void run() { searchView.setVisibility(View.INVISIBLE); imageViewUnderLine.setVisibility(View.INVISIBLE); RemoveUnderLine(); ...
public void start(javafx.stage.Stage primaryStage) { nl.amsta09.driver.MainApp.slideShowController = new nl.amsta09.app.SlideShowController(primaryStage); nl.amsta09.driver.MainApp.slideShowController.initialize(); nl.amsta09.driver.MainApp.server = new nl.amsta09.web.JettyServer(); nl.amsta09.driver.Ma...
public void start(javafx.stage.Stage primaryStage) { nl.amsta09.driver.MainApp.server = new nl.amsta09.web.JettyServer(); nl.amsta09.driver.MainApp.server.setHandler(); try { nl.amsta09.driver.MainApp.server.start(); } catch (java.lang.Exception e) { nl.amsta09.driver.MainApp.die("Opstar...
public void run() { while (true) { try { controller.waitForConnection(); controller.setUpStreams(); controller.whileConnected(); controller.closeStreams(); } catch (java.io.EOFException eofException) { java.lang.System.out.println("\n Serve...
public void run() { while (true) { try { controller.setUpStreams(); controller.whileConnected(); controller.closeStreams(); } catch (java.io.EOFException eofException) { java.lang.System.out.println("\n Server connection ended!"); } catch (java...
public java.util.ArrayList<android.database.Cursor> getRandomVocabWords(int setid) { int cnt = this.getVocabGroupCount(setid); if (cnt <= 0) return new java.util.ArrayList<android.database.Cursor>(); java.util.Random random = new java.util.Random(); return this.getVocabWords(setid, random.n...
public java.util.ArrayList<android.database.Cursor> getRandomVocabWords(int setid) { int cnt = this.getVocabGroupCount(setid); if (cnt <= 0) { return new java.util.ArrayList<android.database.Cursor>(); } java.util.Random random = new java.util.Random(); return this.getVocabWords(setid, ((ran...
private void update() { if (isInitialized) { if (isFilling) { startForwardProgressAnimator(); if (animateColors) { startForwardColorAnimator(); } }else { stopForwardProgressAnimator(); if (!(isHoldAtLastPosition)) { ...
private void update() { if (isInitialized) { if (isFilling) { startForwardProgressAnimator(); if (animateColors) { startForwardColorAnimator(); } }else { stopForwardProgressAnimator(); if ((isReverseAnimationEnabled) && (!(i...
public static int[] plusOne(int[] digits) { int n = digits.length; for (int i = n - 1; i >= 0; i--) { if ((digits[i]) < 9) { (digits[i])++; return digits; } digits[(n - 1)] = 0; } int[] newNumber = new int[n + 1]; newNumber[0] = 1; return newNumber...
public static int[] plusOne(int[] digits) { int n = digits.length; for (int i = n - 1; i >= 0; i--) { if ((digits[i]) < 9) { (digits[i])++; return digits; } digits[i] = 0; } int[] newNumber = new int[n + 1]; newNumber[0] = 1; return newNumber; }
public void checkIndexBounds(int i, int j) { i = i - 1; j = j - 1; if ((((i < 0) || (j < 0)) || (i > (size))) || (j > (size))) { throw new java.lang.IndexOutOfBoundsException("Illegal parameter value."); } }
public void checkIndexBounds(int i, int j) { if ((((i < 0) || (j < 0)) || (i > (size))) || (j > (size))) { throw new java.lang.IndexOutOfBoundsException("Illegal parameter value."); } }
private boolean isChildVisible(@javax.annotation.Nonnull android.view.View child) { int height = getHeight(); int containerTop = getScrollY(); int containerBottom = containerTop + height; int viewTop = child.getTop(); int viewBottom = child.getBottom(); return (viewTop >= containerTop) && (viewB...
private boolean isChildVisible(@javax.annotation.Nonnull android.view.View child) { int height = getHeight(); int containerTop = getScrollY(); int containerBottom = containerTop + height; int viewTop = child.getTop(); int viewBottom = child.getBottom(); return ((viewTop >= containerTop) && (view...
public java.util.UUID createRelation(nl.knaw.huygens.timbuctoo.database.dto.dataset.Collection collection, nl.knaw.huygens.timbuctoo.database.dto.CreateRelation createRelation, java.lang.String userId) throws java.io.IOException, nl.knaw.huygens.timbuctoo.security.AuthorizationException, nl.knaw.huygens.timbuctoo.secur...
public java.util.UUID createRelation(nl.knaw.huygens.timbuctoo.database.dto.dataset.Collection collection, nl.knaw.huygens.timbuctoo.database.dto.CreateRelation createRelation, java.lang.String userId) throws java.io.IOException, nl.knaw.huygens.timbuctoo.security.AuthorizationException, nl.knaw.huygens.timbuctoo.secur...
private java.lang.String loop() { java.lang.String exitCode = ""; while (exitCode == "") { try { java.lang.Thread.sleep(20); if ((getPlayer().getHealth()) <= 0) { exitCode = "die"; } org.compileImage(); } catch (java.lang.Interrupte...
private java.lang.String loop() { java.lang.String exitCode = ""; while (exitCode == "") { try { java.lang.Thread.sleep(20); if ((getPlayer().getHealth()) <= 0) { exitCode = "die"; } } catch (java.lang.InterruptedException ignored) { } ...
private void closeFileAndDatagramSocket() { if (mediaDebug) { try { rtpSessionOutput.close(); rtpSessionInput.close(); } catch (java.io.IOException e) { logger.error("cannot close file", e); } } java.security.AccessController.doPrivileged(new java....
private void closeFileAndDatagramSocket() { if (mediaDebug) { try { rtpSessionOutput.close(); } catch (java.io.IOException e) { logger.error("cannot close file", e); } try { rtpSessionInput.close(); } catch (java.io.IOException e) { ...
public void test_158_ACLReadDeeperFieldOtherFail(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { org.junit.Assert.assertEquals("fieldValue", edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.f...
public void test_158_ACLReadDeeperFieldOtherFail(edu.umass.cs.gnsclient.client.util.GuidEntry westyEntry, edu.umass.cs.gnsclient.client.util.GuidEntry samEntry) { try { try { org.junit.Assert.assertEquals("fieldValue", edu.umass.cs.gnsclient.client.integrationtests.ServerIntegrationTest.client.f...
public boolean testTeammate(ctf.agent.wjc140030Agent.Pos p, boolean relative) { try { ctf.agent.wjc140030Agent.Pos absPos = (relative) ? toAbsPos(p) : p; return 1.0 == (agentMap.get(absPos.x).get(absPos.y)); } catch (java.lang.IndexOutOfBoundsException e) { return true; } }
public boolean testTeammate(ctf.agent.wjc140030Agent.Pos p, boolean relative) { ctf.agent.wjc140030Agent.Pos absPos = (relative) ? toAbsPos(p) : p; try { return (-1.0) == (agentMap.get(absPos.x).get(absPos.y)); } catch (java.lang.IndexOutOfBoundsException e) { return false; } }
public boolean onTouchEvent(android.view.MotionEvent event) { java.lang.System.out.println("-------onTouchEvent"); if (!(mGestureDetector.onTouchEvent(event))) { if (((event.getAction()) == (android.view.MotionEvent.ACTION_UP)) && (isScrolling)) { onScrollXEnd(); isScrolling = fa...
public boolean onTouchEvent(android.view.MotionEvent event) { if (!(mGestureDetector.onTouchEvent(event))) { if (((event.getAction()) == (android.view.MotionEvent.ACTION_UP)) && (isScrolling)) { onScrollXEnd(); isScrolling = false; } if ((event.getAction()) == (androi...
public void writeGeneralFile(java.io.File file, java.lang.String data) throws java.io.IOException { java.nio.file.Path filename = java.nio.file.Paths.get(file.getPath()); if (!(java.nio.file.Files.exists(filename))) { java.nio.file.Files.createFile(filename); } java.nio.file.Files.write(filename...
public void writeGeneralFile(java.io.File file, java.lang.String data) throws java.io.IOException { java.nio.file.Path filename = java.nio.file.Paths.get(file.getPath()); if (!(java.nio.file.Files.exists(filename))) { java.nio.file.Files.createFile(filename); }else { java.nio.file.Files.dele...
public java.util.ArrayList<com.example.softspec.ebook.model.Book> searchByName(android.support.v7.widget.SearchView text) { searchBookList.clear(); for (com.example.softspec.ebook.model.Book b : plan.getList()) { if (b.getName().contains(text.getQuery().toString())) { searchBookList.add(b); ...
public java.util.ArrayList<com.example.softspec.ebook.model.Book> searchByName(android.support.v7.widget.SearchView text) { searchBookList.clear(); for (com.example.softspec.ebook.model.Book b : plan.getList()) { if (b.getName().toLowerCase().contains(text.getQuery().toString().toLowerCase())) { ...
private void build(minusk.minuslib.gl.Shader... shaders) { for (minusk.minuslib.gl.Shader s : shaders) glAttachShader(id, s.id); glLinkProgram(id); if ((glGetProgrami(id, minusk.minuslib.gl.GL_LINK_STATUS)) != (org.lwjgl.opengl.GL11.GL_FALSE)) throw new java.lang.RuntimeException(glGetP...
private void build(minusk.minuslib.gl.Shader... shaders) { for (minusk.minuslib.gl.Shader s : shaders) glAttachShader(id, s.id); glLinkProgram(id); if ((glGetProgrami(id, minusk.minuslib.gl.GL_LINK_STATUS)) == (org.lwjgl.opengl.GL11.GL_FALSE)) throw new java.lang.RuntimeException(glGetP...
private void sendMessage(java.lang.String text) { MsgUser u = ((MsgUser) (buddiesList.getSelectedItem())); u.receiveMessage(((("[" + (myUser.toString())) + "] ") + text)); textArea.append(MsgWindow.PROMPT); }
private void sendMessage(java.lang.String text) { MsgUser u = ((MsgUser) (buddiesList.getSelectedItem())); textArea.append(MsgWindow.PROMPT); u.receiveMessage(((("[" + (myUser.toString())) + "] ") + text)); }
public void run() { synchronized(event) { if (null != (progresses)) { for (int i = 0; (i < (progresses.length)) && (i < (progressBars.length)); i++) { fr.petrus.lib.core.Progress progress = event.getProgress(i); if (null != progress) { progress...
public void run() { synchronized(this) { if (null != (progresses)) { for (int i = 0; (i < (progresses.length)) && (i < (progressBars.length)); i++) { fr.petrus.lib.core.Progress progress = event.getProgress(i); if (null != progress) { progresse...
private boolean alreadySpelt(BackEnd.Word word) { for (int i = 0; i < (currentU.getCorrectlySpelt().size()); i++) { if (word.getSpelling().equalsIgnoreCase(currentU.getCorrectlySpelt().get(i).getSpelling())) return true; } return false; }
private boolean alreadySpelt(BackEnd.Word word) { for (int i = 0; i < (currentU.getCorrectlySpelt().size()); i++) { if ((currentU.getCorrectlySpelt().get(i)) != null) if (word.getSpelling().equalsIgnoreCase(currentU.getCorrectlySpelt().get(i).getSpelling())) return true; ...
private void updatePlayer(java.lang.String state) { android.media.MediaMetadataRetriever mmr = new android.media.MediaMetadataRetriever(); mmr.setDataSource(path); data = mmr.getEmbeddedPicture(); android.content.Intent intent = new android.content.Intent(com.sarabjeet.musical.utils.Constants.PLAYER.PLA...
private void updatePlayer() { android.media.MediaMetadataRetriever mmr = new android.media.MediaMetadataRetriever(); mmr.setDataSource(path); data = mmr.getEmbeddedPicture(); android.content.Intent intent = new android.content.Intent(com.sarabjeet.musical.utils.Constants.PLAYER.PLAY); intent.putExtr...
public void openSocket(java.lang.String serverHost, java.lang.String serverPort) throws java.io.IOException { if ((client) == null) { synchronized(this) { if ((client) == null) { client = java.nio.channels.SocketChannel.open(); client.configureBlocking(false); ...
public void openSocket(java.lang.String serverHost, java.lang.String serverPort) throws java.io.IOException { while ((client) == null) { synchronized(this) { while ((client) == null) { client = java.nio.channels.SocketChannel.open(); client.configureBlocking(false...
public static int botToBuild(team006.RobotController rc, team006.MapInfo mapInfo) { rc.setIndicatorString(2, ("selfScoutsCreated: " + (mapInfo.selfScoutsCreated))); if ((team006.Decision.rand.nextInt(20)) == 9) { return 0; }else if ((mapInfo.timeTillSpawn) < 50) { return 2; ...
public static int botToBuild(team006.RobotController rc, team006.MapInfo mapInfo) { rc.setIndicatorString(2, ("selfScoutsCreated: " + (mapInfo.selfScoutsCreated))); if ((team006.Decision.rand.nextInt(20)) == 9) { return 0; }else if ((mapInfo.timeTillSpawn) < 50) { return 2; ...
private int runResetPermissions() { try { mPm.resetRuntimePermissions(); return 0; } catch (android.os.RemoteException e) { java.lang.System.err.println(e.toString()); java.lang.System.err.println(com.android.commands.pm.Pm.PM_NOT_RUNNING_ERR); return 1; } catch (java...
private int runResetPermissions() { try { mPm.resetRuntimePermissions(); return 0; } catch (android.os.RemoteException e) { java.lang.System.err.println(e.toString()); java.lang.System.err.println(com.android.commands.pm.Pm.PM_NOT_RUNNING_ERR); return 1; } catch (java...
private <T> T getService(java.lang.Class<T> service) { org.osgi.framework.BundleContext context = org.osgi.framework.FrameworkUtil.getBundle(getClass()).getBundleContext(); org.osgi.framework.ServiceReference<T> ref = context.getServiceReference(service); return ref != null ? context.getService(ref) : null;...
private <T> T getService(java.lang.Class<T> service) { org.osgi.framework.BundleContext context = org.osgi.framework.FrameworkUtil.getBundle(getClass()).getBundleContext(); if (context != null) { org.osgi.framework.ServiceReference<T> ref = context.getServiceReference(service); return ref != nul...
public static java.util.List<java.util.Map<java.lang.String, spoon.reflect.declaration.CtVariable>> findAllVarMappingCombination(java.util.Map<fr.inria.astor.core.manipulation.sourcecode.VarWrapper, java.util.List<spoon.reflect.declaration.CtVariable>> mappedVars) { java.util.List<java.util.Map<java.lang.String, sp...
public static java.util.List<java.util.Map<java.lang.String, spoon.reflect.declaration.CtVariable>> findAllVarMappingCombination(java.util.Map<fr.inria.astor.core.manipulation.sourcecode.VarWrapper, java.util.List<spoon.reflect.declaration.CtVariable>> mappedVars) { java.util.List<java.util.Map<java.lang.String, sp...
protected void initialize() { setTimeout(); add(new org.apache.wicket.markup.html.basic.Label("pageTitle", new org.apache.wicket.model.ResourceModel("title"))); add(new org.dcache.webadmin.view.panels.header.HeaderPanel("headerPanel")); add(new org.dcache.webadmin.view.panels.userpanel.UserPanel("userPa...
protected void initialize() { setTimeout(); add(new org.apache.wicket.markup.html.basic.Label("pageTitle", new org.apache.wicket.model.ResourceModel("title"))); add(new org.dcache.webadmin.view.panels.header.HeaderPanel("headerPanel")); add(new org.dcache.webadmin.view.panels.userpanel.UserPanel("userPa...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lvItems = ((android.widget.ListView) (findViewById(R.id.lvItems))); items = new java.util.ArrayList<java.lang.String>(); itemsAdapter = new android.widget.Array...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); lvItems = ((android.widget.ListView) (findViewById(R.id.lvItems))); items = new java.util.ArrayList<java.lang.String>(); itemsAdapter = new android.widget.Array...
public com.wacli.mobilelocationtracker.imeitracker.model.ImeiLocation getImeiLocation(@com.wacli.mobilelocationtracker.imeitracker.api.PathVariable(value = "imei") java.lang.String imei) { java.util.List<com.wacli.mobilelocationtracker.imeitracker.model.ImeiLocation> res = repo.getLocationsOrderedByTime(imei, new o...
public com.wacli.mobilelocationtracker.imeitracker.model.ImeiLocation getImeiLocation(@com.wacli.mobilelocationtracker.imeitracker.api.PathVariable(value = "imei") java.lang.String imei) { java.util.List<com.wacli.mobilelocationtracker.imeitracker.model.ImeiLocation> res = repo.getLocationsOrderedByTime(imei, new o...
protected org.springframework.cloud.stream.binder.Binding<org.apache.kafka.streams.kstream.KStream<java.lang.Object, java.lang.Object>> doBindConsumer(java.lang.String name, java.lang.String group, org.apache.kafka.streams.kstream.KStream<java.lang.Object, java.lang.Object> inputTarget, org.springframework.cloud.stream...
protected org.springframework.cloud.stream.binder.Binding<org.apache.kafka.streams.kstream.KStream<java.lang.Object, java.lang.Object>> doBindConsumer(java.lang.String name, java.lang.String group, org.apache.kafka.streams.kstream.KStream<java.lang.Object, java.lang.Object> inputTarget, org.springframework.cloud.stream...
public void start() { this.flowListener = new org.opendaylight.openflowplugin.applications.frm.impl.FlowForwarder(this, dataService); this.groupListener = new org.opendaylight.openflowplugin.applications.frm.impl.GroupForwarder(this, dataService); this.meterListener = new org.opendaylight.openflowplugin.app...
public void start() { this.deviceMastershipManager = new org.opendaylight.openflowplugin.applications.frm.impl.DeviceMastershipManager(clusterSingletonServiceProvider); this.flowListener = new org.opendaylight.openflowplugin.applications.frm.impl.FlowForwarder(this, dataService); this.groupListener = new or...
public java.awt.Image getImageByPosition(int x, int y) { if ((this.map.getElements((-1), (-1))) != null) return this.map.getElements(x, y).getSprite().getImage(); return null; }
public java.awt.Image getImageByPosition(int x, int y) { if ((this.map.getElements(x, y)) != null) return this.map.getElements(x, y).getSprite().getImage(); return null; }
protected void activate(org.osgi.service.component.ComponentContext context) { try { org.osgi.framework.BundleContext bundleContext = context.getBundleContext(); bundleContext.registerService(this.getClass().getName(), new org.wso2.carbon.mediation.ntask.internal.NtaskService(), null); bundl...
protected void activate(org.osgi.service.component.ComponentContext context) { try { org.osgi.framework.BundleContext bundleContext = context.getBundleContext(); org.wso2.carbon.mediation.ntask.internal.NtaskService.logger.debug("ntask-integration bundle is activated."); } catch (java.lang.Throw...
private void addSingleMappings(int cidBegin, org.verapdf.cos.COSArray arr) { for (int i = 0; i < (arr.size()); i++) { if (arr.at(i).getType().isNumber()) { org.verapdf.pd.font.CIDWArray.LOGGER.debug("W array in CIDFont has invalid entry."); continue; } this.singleMapp...
private void addSingleMappings(int cidBegin, org.verapdf.cos.COSArray arr) { for (int i = 0; i < (arr.size()); i++) { if (!(arr.at(i).getType().isNumber())) { org.verapdf.pd.font.CIDWArray.LOGGER.debug("W array in CIDFont has invalid entry."); continue; } this.singleM...
public void setPlayPauseButtonState(int state) { switch (state) { case com.ae3317.xisthename.movetivity.YouTube.YouTubePlayerFragment.PlayerControlsPopupWindow.PlayPauseButtonState.PLAY : playPauseButton.setImageResource(R.drawable.play_24dp); break; case com.ae3317.xisthenam...
public void setPlayPauseButtonState(int state) { switch (state) { case com.ae3317.xisthename.movetivity.YouTube.YouTubePlayerFragment.PlayerControlsPopupWindow.PlayPauseButtonState.PLAY : playPauseButton.setImageResource(R.drawable.play_24dp); break; case com.ae3317.xisthenam...
public void setPhysicalToolMarkerAttribute(java.lang.String physical_tool_id, int marker_id, java.lang.String attribute_id, java.lang.String value) { android.content.SharedPreferences preferences = AppGlobal.shared_preferences; preferences.edit().putString(((((physical_tool_id + "_") + marker_id) + "_") + attri...
public void setPhysicalToolMarkerAttribute(java.lang.String physical_tool_id, int marker_id, java.lang.String attribute_id, java.lang.String value) { android.content.SharedPreferences preferences = AppGlobal.shared_preferences; preferences.edit().putString(((((physical_tool_id + "_") + marker_id) + "_") + attri...
public java.util.List<net.osmand.plus.TargetPointsHelper.TargetPoint> getIntermediatePointsNavigation() { java.util.List<net.osmand.plus.TargetPointsHelper.TargetPoint> intermediatePoints = new java.util.ArrayList<>(); if (settings.USE_INTERMEDIATE_POINTS_NAVIGATION.get()) { for (net.osmand.plus.TargetP...
public java.util.List<net.osmand.plus.TargetPointsHelper.TargetPoint> getIntermediatePointsNavigation() { java.util.List<net.osmand.plus.TargetPointsHelper.TargetPoint> intermediatePoints = new java.util.ArrayList<>(); if (settings.USE_INTERMEDIATE_POINTS_NAVIGATION.get()) { for (net.osmand.plus.TargetP...
private void closeConnection(java.net.HttpURLConnection connection) throws java.io.IOException { connection.getOutputStream().close(); connection.disconnect(); if ((connection.getResponseCode()) != 200) { org.elasticsearch.metrics.ElasticsearchReporter.LOGGER.error("Reporting returned code {} {}: {}...
private void closeConnection(java.net.HttpURLConnection connection) throws java.io.IOException { connection.getOutputStream().close(); if ((connection.getResponseCode()) != 200) { org.elasticsearch.metrics.ElasticsearchReporter.LOGGER.error("Reporting returned code {} {}: {}", connection.getResponseCode...
private void resultWindow(android.view.View view) { final android.widget.PopupWindow popWindow = new android.widget.PopupWindow(view, 400, ViewGroup.LayoutParams.WRAP_CONTENT); popWindow.setOutsideTouchable(true); popWindow.setTouchable(true); popWindow.setTouchInterceptor(new android.view.View.OnTouchL...
private android.widget.PopupWindow resultWindow(android.view.View view) { final android.widget.PopupWindow popWindow = new android.widget.PopupWindow(view, 400, ViewGroup.LayoutParams.WRAP_CONTENT); popWindow.setOutsideTouchable(true); popWindow.setTouchable(true); popWindow.setTouchInterceptor(new andr...
@android.support.annotation.VisibleForTesting boolean getNeedsTokenRefresh(net.openid.appauth.Clock clock) { if ((getRefreshToken()) == null) { return false; } if (mNeedsTokenRefreshOverride) { return true; } if ((getAccessTokenExpirationTime()) == null) { return (getAccessTo...
@android.support.annotation.VisibleForTesting boolean getNeedsTokenRefresh(net.openid.appauth.Clock clock) { if (mNeedsTokenRefreshOverride) { return true; } if ((getAccessTokenExpirationTime()) == null) { return (getAccessToken()) == null; } return (getAccessTokenExpirationTime()) <...
private void verifyMembershipEvent(final org.springframework.messaging.Message<?> msg, final int membershipEvent) { org.junit.Assert.assertNotNull(msg); org.junit.Assert.assertNotNull(msg.getPayload()); org.junit.Assert.assertTrue(((msg.getPayload()) instanceof com.hazelcast.core.MembershipEvent)); org....
private void verifyMembershipEvent(final org.springframework.messaging.Message<?> msg, final int membershipEvent) { org.junit.Assert.assertNotNull(msg); org.junit.Assert.assertNotNull(msg.getPayload()); org.junit.Assert.assertTrue(((msg.getPayload()) instanceof com.hazelcast.core.MembershipEvent)); org....
public void testDQ() throws java.io.IOException { java.lang.String csv = "A,B\r\n1,\"2 is \"\"two\"\" \"\r\n\"3 is \"\"three\"\"\",4\r\n"; java.io.StringReader sr = new java.io.StringReader(csv); it.polito.softeng.csvparser.CsvParser p = new it.polito.softeng.csvparser.CsvParser(); p.addProcessor(CsvPa...
public void testDQ() throws java.io.IOException { java.lang.String csv = "A,B\r\n1,\"2 is \"\"two\"\" \"\r\n\"3 is \"\"three\"\"\",4\r\n"; java.io.StringReader sr = new java.io.StringReader(csv); it.polito.softeng.csvparser.CsvParser p = new it.polito.softeng.csvparser.CsvParser(); p.addProcessor(CsvPa...
private static <T, S> S seed(java.util.Iterator<? extends T> iterator, com.googlecode.totallylazy.Callable2<? super S, ? super T, ? extends S> callable) { if (callable instanceof com.googlecode.totallylazy.Identity) return com.googlecode.totallylazy.Unchecked.<com.googlecode.totallylazy.Identity<S>>cast(cal...
private static <T, S> S seed(java.util.Iterator<? extends T> iterator, java.lang.Object callable) { if (callable instanceof com.googlecode.totallylazy.Identity) return com.googlecode.totallylazy.Unchecked.<com.googlecode.totallylazy.Identity<S>>cast(callable).identity(); return com.googlecode.total...
public void testConvertZoneId() { java.time.ZoneId sourceZoneId = java.time.ZoneId.of("Europe/Berlin"); java.time.ZoneId destinationZoneId = null; when(zoneIdCreatorMock.create(sourceZoneId)).thenReturn(sourceZoneId); java.lang.Object actualZoneId = objectUnderTest.convert(destinationZoneId, sourceZoneI...
public void testConvertZoneId() { java.time.ZoneId sourceZoneId = java.time.ZoneId.of("Europe/Berlin"); java.time.ZoneId destinationZoneId = null; when(zoneIdCreatorMock.create(sourceZoneId)).thenReturn(sourceZoneId); java.lang.Object actualZoneId = objectUnderTest.convert(destinationZoneId, sourceZoneI...
public void removeChild(mazeGenerator.RecursiveBacktrackerGenerator.Node currChild) { java.util.Iterator<mazeGenerator.RecursiveBacktrackerGenerator.Node> childlist = children.iterator(); while (childlist.hasNext()) { if ((childlist.next()) == currChild) { childlist.remove(); bre...
public void removeChild(mazeGenerator.RecursiveBacktrackerGenerator.Node currChild) { java.util.Iterator<mazeGenerator.RecursiveBacktrackerGenerator.Node> childlist = children.iterator(); while (childlist.hasNext()) { if ((childlist.next()) == currChild) { childlist.remove(); bre...
public static java.lang.String getURLParameter(java.lang.String url, java.lang.String attribute) { try { java.util.regex.Pattern p = java.util.regex.Pattern.compile((attribute + "=([^&]+)")); java.util.regex.Matcher m = p.matcher(url); while (m.find()) { return m.group(1); ...
private java.lang.String getURLParameter(java.lang.String url, java.lang.String attribute) { try { java.util.regex.Pattern p = java.util.regex.Pattern.compile((attribute + "=([^&]+)")); java.util.regex.Matcher m = p.matcher(url); while (m.find()) { return m.group(1); } ...
public void testDSVOutput() throws java.lang.Throwable { java.lang.String SCRIPT_TEXT = getFormatTestQuery(); java.util.List<java.lang.String> argList = getBaseArgs(org.apache.hive.beeline.TestBeeLineWithArgs.miniHS2.getBaseJdbcURL()); argList.add("--outputformat=dsv"); argList.add("--delimiterForDSV=;"...
public void testDSVOutput() throws java.lang.Throwable { java.lang.String SCRIPT_TEXT = getFormatTestQuery(); java.util.List<java.lang.String> argList = getBaseArgs(org.apache.hive.beeline.TestBeeLineWithArgs.miniHS2.getBaseJdbcURL()); argList.add("--outputformat=dsv"); argList.add("--delimiterForDSV=;"...
private void logError(java.lang.Exception e, int line) { FMLLog.log.error(((("[Quark Custom Emotes] Error loading line " + line) + " of emote ") + (file))); if (!(e instanceof java.lang.IllegalArgumentException)) { FMLLog.log.error("[Quark Custom Emotes] This is an Internal Error, and not one in the emo...
private void logError(java.lang.Exception e, int line) { FMLLog.log.error(((("[Quark Custom Emotes] Error loading line " + (line + 1)) + " of emote ") + (file))); if (!(e instanceof java.lang.IllegalArgumentException)) { FMLLog.log.error("[Quark Custom Emotes] This is an Internal Error, and not one in t...
private void lockDocumentButtonHandler(boolean left) { setGenericObjects(left); int ind = tabPanel.getTabBar().getSelectedTab(); edu.caltech.cs141b.hw2.gwt.collab.shared.AbstractDocument doc = docList.get(ind); if (doc instanceof edu.caltech.cs141b.hw2.gwt.collab.shared.UnlockedDocument) edu.cal...
private void lockDocumentButtonHandler(boolean left) { setGenericObjects(left); int ind = tabPanel.getTabBar().getSelectedTab(); edu.caltech.cs141b.hw2.gwt.collab.shared.AbstractDocument doc = docList.get(ind); if (doc instanceof edu.caltech.cs141b.hw2.gwt.collab.shared.UnlockedDocument) edu.cal...
public void process(processings.typecheck.TPointer p) { if (!(processings.typecheck.utils.CompatibilityChecker.isRef(p.tbase()))) { p.tbase().accept(this); }else { processRef(processings.typecheck.utils.CompatibilityChecker.asRef(p.tbase())); } }
public void process(processings.typecheck.TPointer p) { if (processings.typecheck.utils.CompatibilityChecker.isRef(p.tbase())) { processRef(processings.typecheck.utils.CompatibilityChecker.asRef(p.tbase())); }else { p.tbase().accept(this); } }
private org.json.JSONArray jsonFileReader(java.io.File file) { org.json.JSONArray temp = new org.json.JSONArray(); try { java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader(file)); java.lang.String line; java.lang.String lines = ""; while ((line = br.rea...
private org.json.JSONArray jsonFileReader(java.io.File file) { org.json.JSONArray temp = new org.json.JSONArray(); try { java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader(file)); java.lang.String line; java.lang.String lines = ""; while ((line = br.rea...
public java.lang.reflect.Method getRemoverButtonMethod() { initializeTransientMembersFromPrototype(); if ((removerButtonMethod) == null) { if (propertyName.startsWith(ReflectionUtil.REMOVER_PREFIX)) { removerButtonMethod = getButtonMethod(); }else { removerButtonMethod = ...
public java.lang.reflect.Method getRemoverButtonMethod() { initializeTransientMembersFromPrototype(); if ((removerButtonMethod) == null) { if (propertyName.startsWith(ReflectionUtil.REMOVER_PREFIX)) { removerButtonMethod = getButtonMethod(); }else { removerButtonMethod = ...
public java.lang.String toString() { return (((((((((("WayPoint{" + "orderNumber=") + (orderNumber)) + ", position=") + (position)) + ", height=") + (height)) + ", action=") + (action)) + ", route=") + (route)) + '}'; }
public java.lang.String toString() { return (((((((("WayPoint{" + "orderNumber=") + (orderNumber)) + ", position=") + (position)) + ", height=") + (height)) + ", action=") + (action)) + '}'; }
private void fillRightTree(java.util.List<org.jetbrains.idea.maven.model.MavenArtifactNode> mavenArtifactNodes, java.lang.String maxVersion) { rightTreeRoot.removeAllChildren(); for (org.jetbrains.idea.maven.model.MavenArtifactNode mavenArtifactNode : mavenArtifactNodes) { krasa.mavenrun.analyzer.MyTree...
private void fillRightTree(java.util.List<org.jetbrains.idea.maven.model.MavenArtifactNode> mavenArtifactNodes) { rightTreeRoot.removeAllChildren(); for (org.jetbrains.idea.maven.model.MavenArtifactNode mavenArtifactNode : mavenArtifactNodes) { krasa.mavenrun.analyzer.MyTreeUserObject userObject = krasa...
public java.lang.String getChartDataFields(javax.servlet.http.HttpServletRequest request, @org.springframework.web.bind.annotation.RequestParam(value = "type") java.lang.String type) { java.lang.String jsonString; try { java.lang.String userEmail = request.getRemoteUser(); java.lang.String userI...
public java.util.List<java.util.Map<java.lang.String, java.lang.String>> getChartDataFields(javax.servlet.http.HttpServletRequest request, @org.springframework.web.bind.annotation.RequestParam(value = "type") java.lang.String type) throws java.lang.Exception { java.lang.String userEmail = request.getRemoteUser(); ...
private com.example.whatsmymood.Mood updateMood() { mood.setMoodType(this.moodType); mood.setMoodMsg(this.moodMsg); mood.setLocation(this.location); mood.setSocialSit(this.socialSit); if ((this.date) == null) { mood.setDate(new java.util.Date()); }else { mood.setDate(this.date); ...
private com.example.whatsmymood.Mood updateMood() { mood.setMoodType(this.moodType); mood.setMoodMsg(this.moodMsg); mood.setLocation(this.location); mood.setSocialSit(this.socialSit); if ((this.date) == null) { mood.setDate(new java.util.Date()); }else { mood.setDate(this.date); ...
public void run() { try { com.osreboot.glsledit.NodeArbitraryFloat node = new com.osreboot.glsledit.NodeArbitraryFloat(com.osreboot.glsledit.Node.getUserFloat(), Main.camera.getX(), Main.camera.getY()); node.setOnDialogueClick(new com.osreboot.ridhvl.action.HvlAction1<com.osreboot.glsledit.Node>() {...
public void run() { try { com.osreboot.glsledit.NodeArbitraryFloat node = new com.osreboot.glsledit.NodeArbitraryFloat(Main.camera.getX(), Main.camera.getY(), com.osreboot.glsledit.Node.getUserFloat()); node.setOnDialogueClick(new com.osreboot.ridhvl.action.HvlAction1<com.osreboot.glsledit.Node>() {...
public io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation<K, T, L, D, R> inNamespace(java.lang.String namespace) { try { return getClass().getConstructor(clientType, java.lang.String.class, java.lang.String.class, java.lang.Boolean.class).newInstance(client, namespace, name, cascading); } catc...
public io.fabric8.kubernetes.client.dsl.ClientNonNamespaceOperation<K, T, L, D, R> inNamespace(java.lang.String namespace) { try { return getClass().getConstructor(clientType, java.lang.String.class, java.lang.String.class, java.lang.Boolean.class, type).newInstance(client, namespace, name, cascading, item)...
private static java.lang.String randomText() { java.lang.StringBuilder text = new java.lang.StringBuilder(); for (int i = 0; i < (Model.Tools.RandomFileGenerator.TEXT_SIZE); i++) { char A = 'A'; int rand = ((int) ((java.lang.Math.random()) * 26)); char newCharacter = ((char) (A + rand));...
private static java.lang.String randomText() { java.lang.StringBuilder text = new java.lang.StringBuilder(); for (int i = 0; i < (Model.Tools.RandomFileGenerator.TEXT_SIZE); i++) { char A = 'A'; int rand = ((int) ((java.lang.Math.random()) * 26)); char newCharacter = ((char) (A + rand));...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); adapter = new com.fallingstar.yorimi.ListViewAdapter(); listview = ((android.widget.ListView) (findViewById(R.id.listview))); listview.setAdapter(adapter); ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); listview = ((android.widget.ListView) (findViewById(R.id.listview))); listview.setAdapter(adapter); bNavView = ((android.support.design.widget.BottomNavigationV...
public org.terasology.rendering.nui.layers.mainMenu.videoSettings.EnvironmentalEffects get() { if ((config.isAnimateGrass()) && (!(config.isAnimateWater()))) { return EnvironmentalEffects.LOW; }else if ((config.isAnimateWater()) && (config.isAnimateWater())) { return EnvironmentalEff...
public org.terasology.rendering.nui.layers.mainMenu.videoSettings.EnvironmentalEffects get() { if ((config.isAnimateGrass()) && (!(config.isAnimateWater()))) { return EnvironmentalEffects.LOW; }else if ((config.isAnimateGrass()) && (config.isAnimateWater())) { return EnvironmentalEff...
private void add() { if (!(this.contentAssistant.isPresent())) this.contentAssistant.get().addCompletionListener(this); if (!(this.quickAssistant.isPresent())) this.quickAssistant.get().addCompletionListener(this); }
private void add() { if (this.contentAssistant.isPresent()) this.contentAssistant.get().addCompletionListener(this); if (this.quickAssistant.isPresent()) this.quickAssistant.get().addCompletionListener(this); }
public boolean updateChildSex(long userId, long childId, java.lang.String sex) { if ((((userId <= 0) || (childId <= 0)) || (org.apache.commons.lang3.StringUtils.isBlank(sex))) || (!(cn.momia.service.user.facade.impl.UserServiceFacadeImpl.SEX.contains(sex)))) return false; return participantService....
public boolean updateChildSex(long userId, long childId, java.lang.String sex) { if (((userId <= 0) || (childId <= 0)) || (!(cn.momia.service.user.facade.impl.UserServiceFacadeImpl.SEX.contains(sex)))) return false; return participantService.updateSex(userId, childId, sex); }
private com.woyao.admin.dto.product.ShopDTO getCurrentShop() { long profileId = com.woyao.security.SelfSecurityUtils.getCurrentProfile().getId(); java.util.Map<java.lang.String, java.lang.Object> paramMap = new java.util.HashMap<>(); paramMap.put("profileId", profileId); com.woyao.domain.Shop currentSho...
private com.woyao.admin.dto.product.ShopDTO getCurrentShop() { long profileId = com.woyao.security.SelfSecurityUtils.getCurrentProfile().getId(); java.util.Map<java.lang.String, java.lang.Object> paramMap = new java.util.HashMap<>(); paramMap.put("profileId", profileId); com.woyao.domain.Shop currentSho...
public void register(org.openforis.collect.android.viewmodel.UiNode node) { super.register(node); if ((node instanceof org.openforis.collect.android.viewmodel.UiAttribute) && (node.getDefinition().isKeyOf(this))) { keyAttributes.add(((org.openforis.collect.android.viewmodel.UiAttribute) (node))); ...
public void register(org.openforis.collect.android.viewmodel.UiNode node) { super.register(node); if (((node instanceof org.openforis.collect.android.viewmodel.UiAttribute) && (node.getDefinition().isKeyOf(this))) && (!(keyAttributeIds.contains(node.getId())))) { keyAttributes.add(((org.openforis.collec...
public void apply() { java.lang.System.out.println(("Side: " + (net.minecraftforge.fml.common.FMLCommonHandler.instance().getEffectiveSide()))); if ((net.minecraftforge.fml.common.FMLCommonHandler.instance().getSide()) == (net.minecraftforge.fml.relauncher.Side.SERVER)) PacketHandler.INSTANCE.sendToAll(...
public void apply() { if ((net.minecraftforge.fml.common.FMLCommonHandler.instance().getSide()) == (net.minecraftforge.fml.relauncher.Side.SERVER)) PacketHandler.INSTANCE.sendToAll(new minetweaker.mods.jei.MessageJEIHide(true, stack)); else JEIAddonPlugin.itemRegistry.removeIngredientsAtRuntime(...
public static java.io.File createEventFile(javax.swing.JFrame parent, java.io.File[] inputFileArray, java.lang.Integer minNumberSamples) { java.io.File file = org.fhaes.tools.FHOperations.getOutputFile(parent, new org.fhaes.filefilter.TXTFileFilter(), true); if (file != null) { new org.fhaes.tools.FHOpe...
public static java.io.File createEventFile(javax.swing.JFrame parent, java.io.File[] inputFileArray, java.lang.Integer minNumberSamples) { java.io.File file = org.fhaes.tools.FHOperations.getOutputFile(parent, new org.fhaes.filefilter.TXTFileFilter(), true); if (file != null) { new org.fhaes.tools.FHOpe...
public void notifyRepaired(double time) { historyUpdate(time); if (!(hasFinishedDuringRepair())) { this.timeBroken = time - (timeBreakdown); executeJob(time); }else if (isExecuting()) { state = EquipletState.BUSY; }else { state = EquipletState.IDLE; ...
public void notifyRepaired(double time) { historyUpdate(time); if (!(hasFinishedDuringRepair())) { } if (isExecuting()) { this.timeBroken = time - (timeBreakdown); state = EquipletState.BUSY; }else { state = EquipletState.IDLE; } }
public org.springframework.http.ResponseEntity register(@sample.RequestBody sample.AuthorizationCredentials credentials, javax.servlet.http.HttpSession httpSession) { logger.debug("/signup called with login: {}", credentials.getLogin()); final sample.ErrorResponse sessionError = sample.auth.utils.RequestValidat...
public org.springframework.http.ResponseEntity register(@sample.RequestBody sample.AuthorizationCredentials credentials, javax.servlet.http.HttpSession httpSession) { logger.debug("/signup called with login: {}", credentials.getLogin()); final sample.ErrorResponse sessionError = sample.auth.utils.RequestValidat...
public void watchFile(java.lang.String path, java.lang.Boolean watchParentFolderForNewFiles, java.lang.String virtualRoot) throws java.lang.Exception { java.lang.System.out.println(("watchFile: " + path)); studyproject.API.Core.File.InfoList.FileInfoListEntry newFile = addFileToLists(path, virtualRoot); jav...
public void watchFile(java.lang.String path, java.lang.Boolean watchParentFolderForNewFiles, java.lang.String virtualRoot) throws java.lang.Exception { studyproject.API.Core.File.InfoList.FileInfoListEntry newFile = addFileToLists(path, virtualRoot); java.lang.String parentDirectory = (newFile.parentDirectory) ...
public boolean addVertex(double x, double y) { for (int index = 0; index < (_noOfVertices); index++) { if ((_vertices[index]) == null) { _vertices[index] = new Point(x, y); _noOfVertices += 1; return true; } } return false; }
public boolean addVertex(double x, double y) { for (int index = 0; index <= (_noOfVertices); index++) { if ((_vertices[index]) == null) { _vertices[index] = new Point(x, y); _noOfVertices += 1; return true; } } return false; }
public void oscEvent(muselightswitch.OscMessage msg) { if (msg.checkAddress("/muse/elements/jaw_clench")) { if (msg.get(0).booleanValue()) { if (this.done) { this.lightSwitch.toggleState(); this.done = false; } }else { this.done = t...
public void oscEvent(muselightswitch.OscMessage msg) { if (msg.checkAddress("/muse/elements/jaw_clench")) { if ((msg.get(0).intValue()) == 1) { if (this.done) { this.lightSwitch.toggleState(); this.done = false; } }else { this.done ...
public java.util.List<com.vigglet.oei.servicerow.Servicerow> orderByListorder(int service) { java.util.List<com.vigglet.oei.servicerow.Servicerow> result = ((java.util.List<com.vigglet.oei.servicerow.Servicerow>) (findByService(service))); result.sort(null); result.sort((com.vigglet.oei.servicerow.Servicero...
public java.util.List<com.vigglet.oei.servicerow.Servicerow> orderByListorder(int service) { java.util.List<com.vigglet.oei.servicerow.Servicerow> result = ((java.util.List<com.vigglet.oei.servicerow.Servicerow>) (findByService(service))); result.sort((com.vigglet.oei.servicerow.Servicerow o1,com.vigglet.oei.se...
void onScanStart() { android.util.Log.v("DIALOG", "Start scanning"); mScanBtn.setText("Cancel scan"); mServersSpinner.setVisibility(View.GONE); mServersSpinner.setEnabled(false); mScanProgressBar.setProgress(0); mScanProgressBar.setVisibility(View.VISIBLE); mScanProgressBar.setEnabled(true);...
void onScanStart() { android.util.Log.v("DIALOG", "Start scanning"); mScanBtn.setText("Cancel scan"); mServersSpinner.setVisibility(View.GONE); mScanProgressBar.setProgress(0); mScanProgressBar.setVisibility(View.VISIBLE); mServerAddressEditText.setEnabled(false); mScanTask = new uk.org.ngo....
private java.util.Collection<de.hm.edu.carads.models.Car> enrichCars() { java.util.Collection<de.hm.edu.carads.models.Car> enrichedCars = new java.util.ArrayList<de.hm.edu.carads.models.Car>(); if ((cars) == null) return enrichedCars; java.util.Iterator<de.hm.edu.carads.models.Car> it = cars.it...
private java.util.Collection<de.hm.edu.carads.models.Car> enrichCars() { java.util.Collection<de.hm.edu.carads.models.Car> enrichedCars = new java.util.ArrayList<de.hm.edu.carads.models.Car>(); if ((cars) == null) this.cars = new java.util.ArrayList<de.hm.edu.carads.models.Car>(); java.util.Ite...
public void performLoopFrame() { float currTime = ((float) (com.shc.silenceengine.utils.TimeUtils.currentTime())); float elapsedTime = currTime - (prevTime); prevTime = currTime; SilenceEngine.eventManager.raiseUpdateEvent(elapsedTime); com.shc.silenceengine.graphics.opengl.GLContext.clear(((GL_COLO...
public void performLoopFrame() { if ((prevTime) == 0) prevTime = ((int) (com.shc.silenceengine.utils.TimeUtils.currentTime())); float currTime = ((float) (com.shc.silenceengine.utils.TimeUtils.currentTime())); float elapsedTime = currTime - (prevTime); prevTime = currTime; SilenceEngine...
public void printDescription() { java.lang.System.out.println((((((((((("Type is: " + (getShapeType())) + "\nBase A: ") + (baseA)) + "\nBase B: ") + (baseB)) + "\nHeight: ") + (height)) + "\nArea: ") + (getArea())) + "\n")); }
public void printDescription() { java.lang.System.out.println((((((((("Type is: " + (getShapeType())) + "\nBase A: ") + (baseA)) + "\nBase B: ") + (baseB)) + "\nHeight: ") + (height)) + "\n")); }
public net.model.User takeInfo(net.model.UserLoginDTO userLoginDTO) { net.model.User user = new net.model.User(); user.setUserLogin(user.getUserLogin()); user.setUserPassword(user.getUserPassword()); user.setUserEmail(user.getUserEmail()); user.setUserStatus("cheked"); return user; }
public net.model.User takeInfo(net.model.UserLoginDTO userLoginDTO) { net.model.User user = new net.model.User(); user.setUserLogin(userLoginDTO.getUserLogin()); user.setUserPassword(userLoginDTO.getUserPassword()); user.setUserEmail(userLoginDTO.getUserEmail()); user.setUserStatus("cheked"); re...
public void varDecl() throws java.lang.Exception { typeDecl(); ident(); while (accept(Token.commaToken)) { next(); ident(); } if (accept(Token.semiToken)) { next(); }else { throw new java.lang.Exception("Missing semicolon for var declaration"); } }
public void varDecl() throws java.lang.Exception { typeDecl(); ident(); while (accept(Token.commaToken)) { next(); ident(); } if (accept(Token.semiToken)) { next(); }else { error("Missing semicolon for var declaration"); } }
public address.sync.model.CloudAddressBook readCloudAddressBookFromFile(java.lang.String addressBookName) throws address.exceptions.DataConversionException, java.io.FileNotFoundException { java.io.File cloudFile = getCloudDataFilePath(addressBookName); java.lang.System.out.println(("Reading from cloudFile: " + ...
public address.sync.model.CloudAddressBook readCloudAddressBookFromFile(java.lang.String addressBookName) throws address.exceptions.DataConversionException, java.io.FileNotFoundException { java.io.File cloudFile = getCloudDataFilePath(addressBookName); java.lang.System.out.println(("Reading from cloudFile: " + ...
private void initServer() { android.bluetooth.BluetoothGattService service = new android.bluetooth.BluetoothGattService(interdroid.swan.crossdevice.ble.BLEManager.SWAN_SERVICE_UUID, android.bluetooth.BluetoothGattService.SERVICE_TYPE_PRIMARY); android.bluetooth.BluetoothGattCharacteristic charRegister = new and...
private void initServer() { android.bluetooth.BluetoothGattService service = new android.bluetooth.BluetoothGattService(interdroid.swan.crossdevice.ble.BLEManager.SWAN_SERVICE_UUID, android.bluetooth.BluetoothGattService.SERVICE_TYPE_PRIMARY); android.bluetooth.BluetoothGattCharacteristic charUnregister = new a...
private void setHovered(java.lang.String elementId) { if (((hovered) != null) && ((hovered) != (selected))) { hovered.removeAttribute(SVGConstants.SVG_FILTER_ATTRIBUTE); } org.reactome.web.diagram.util.svg.thumbnail.OMElement newHovered = svg.getElementById(elementId); if ((newHovered != null) &...
private void setHovered(java.lang.String elementId) { if (((hovered) != null) && ((hovered) != (selected))) { hovered.removeAttribute(SVGConstants.SVG_FILTER_ATTRIBUTE); } if (elementId != null) { org.reactome.web.diagram.util.svg.thumbnail.OMElement newHovered = svg.getElementById(elementId...
public void recipeAddRequested(org.cook_e.data.Recipe recipe) { if (BuildConfig.DEBUG) { boolean found = false; for (org.cook_e.data.Recipe existingRecipe : mRecipes) { if (existingRecipe.equals(recipe)) { found = true; } } if (!found) { ...
public void recipeAddRequested(org.cook_e.data.Recipe recipe) { if (BuildConfig.DEBUG) { boolean found = false; for (org.cook_e.data.Recipe existingRecipe : mRecipes) { if (existingRecipe.equals(recipe)) { found = true; } } if (!found) { ...
public static void main(java.lang.String[] args) { try { com.lftechnology.java.training.sanish.sumnumber.Main.LOGGER.info(("Sum sum multiples of 3 or 5 below 1000 : " + ((com.lftechnology.java.training.sanish.sumnumber.SumMultiples.getMultiples(3, 999)) + (com.lftechnology.java.training.sanish.sumnumber.Sum...
public static void main(java.lang.String[] args) { try { com.lftechnology.java.training.sanish.sumnumber.Main.LOGGER.info(("Sum sum multiples of 3 or 5 below 1000 : " + ((com.lftechnology.java.training.sanish.sumnumber.SumMultiples.getMultiples(3, 999)) + (com.lftechnology.java.training.sanish.sumnumber.Sum...
public void onBindViewHolder(android.support.v7.widget.RecyclerView.ViewHolder holder, int position) { com.jaychang.android.widgets.demo.CellType1.ViewHolder holder1 = ((com.jaychang.android.widgets.demo.CellType1.ViewHolder) (holder)); holder1.swipeToRevealLayout.close(); holder1.surfaceView.setText(data);...
public void onBindViewHolder(android.support.v7.widget.RecyclerView.ViewHolder holder, int position) { com.jaychang.android.widgets.demo.CellType1.ViewHolder holder1 = ((com.jaychang.android.widgets.demo.CellType1.ViewHolder) (holder)); holder1.surfaceView.setText(data); holder1.deleteBtn.setText(("delete "...
private static boolean isClosestToIntruder(dataContainer.Coordinate agent, java.util.Collection<dataContainer.Coordinate> otherAgents, dataContainer.Coordinate intruder) { for (dataContainer.Coordinate otherAgent : otherAgents) { if ((otherAgent.distance(intruder)) > (agent.distance(intruder))) ...
private static boolean isClosestToIntruder(dataContainer.Coordinate agent, java.util.Collection<dataContainer.Coordinate> otherAgents, dataContainer.Coordinate intruder) { for (dataContainer.Coordinate otherAgent : otherAgents) { if ((otherAgent.distance(intruder)) < (agent.distance(intruder))) ...
public java.util.List<java.lang.Character> setupQuick() { java.util.List<java.lang.Character> characters = new java.util.ArrayList<java.lang.Character>(); characters.add(tank_revolution.model.CharacterFactory.newPlayer(Id.PLAYER1)); characters.add(tank_revolution.model.CharacterFactory.newNPC(Id.PLAYER2, 2)...
public java.util.List<java.lang.Character> setupQuick() { java.util.List<java.lang.Character> characters = new java.util.ArrayList<java.lang.Character>(); characters.add(tank_revolution.model.CharacterFactory.newPlayer(Id.PLAYER1)); characters.add(tank_revolution.model.CharacterFactory.newPlayer(Id.PLAYER2)...
public void setBlock(java.lang.String s) { switch (s) { case "I" : setIBlock(); case "J" : setJBlock(); case "L" : setLBlock(); case "O" : setOBlock(); case "S" : setSBlock(); case "T" : setTBlock...
public void setBlock(java.lang.String s) { switch (s) { case "I" : setIBlock(); break; case "J" : setJBlock(); break; case "L" : setLBlock(); break; case "O" : setOBlock(); break; ...
private org.talend.components.api.component.Connector getConnector() { if ((myConnector) == null) { java.util.Set<? extends org.talend.components.api.component.Connector> connectors = getParentNode().getComponentProperties().getAvailableConnectors(null, output); if (connectors != null) { ...
private org.talend.components.api.component.Connector getConnector() { if ((myConnector) == null) { java.util.Set<? extends org.talend.components.api.component.Connector> connectors = getComponentProperties().getAvailableConnectors(null, output); if (connectors != null) { for (org.talend...
public void propertyChange(java.beans.PropertyChangeEvent event) { org.eclipse.core.runtime.IStatus status = nameGroup.getStatus(); setPageComplete(status.isOK()); setErrorMessage((status.isOK() ? null : status.getMessage())); locationGroup.setProjectName(nameGroup.getProjectName()); }
public void propertyChange(java.beans.PropertyChangeEvent event) { org.eclipse.core.runtime.IStatus status = nameGroup.getStatus(); if (status.isOK()) { setPageComplete(true); setErrorMessage(null); locationGroup.setProjectName(nameGroup.getProjectName()); }else { setPageComp...
public com.tinkerpop.blueprints.impls.orient.OrientVertex getVertex(final com.tinkerpop.blueprints.Direction direction) { final com.tinkerpop.blueprints.impls.orient.OrientBaseGraph graph = getGraph(); if (graph != null) graph.setCurrentGraphInThreadLocal(); if (direction.equals(Direction.OUT))...
public com.tinkerpop.blueprints.impls.orient.OrientVertex getVertex(final com.tinkerpop.blueprints.Direction direction) { final com.tinkerpop.blueprints.impls.orient.OrientBaseGraph graph = setCurrentGraphInThreadLocal(); if (direction.equals(Direction.OUT)) return new com.tinkerpop.blueprints.impls.ori...
private void resetOrder(java.util.List<lento.me.dragsetting.Item> items) { android.util.Log.d(lento.me.dragsetting.ItemAdapter.TAG, "-------begin to resetOrder---------"); for (int i = 0; i < (items.size()); i++) { final lento.me.dragsetting.Item item = items.get(i); android.util.Log.d(lento.me....
private void resetOrder(java.util.List<lento.me.dragsetting.Item> items) { android.util.Log.d(lento.me.dragsetting.ItemAdapter.TAG, "-------begin to resetOrder---------"); for (int i = 0; i < (items.size()); i++) { final lento.me.dragsetting.Item item = items.get(i); item.order = i; andr...
public net.minecraft.util.IIcon getIcon(net.minecraft.item.ItemStack stack, int pass) { if (((amerifrance.guideapi.api.GuideRegistry.getSize()) > (stack.getItemDamage())) && ((amerifrance.guideapi.api.GuideRegistry.getBook(stack.getItemDamage()).itemTexture) != null)) { return customIcons[stack.getItemDamag...
public net.minecraft.util.IIcon getIcon(net.minecraft.item.ItemStack stack, int pass) { if (((amerifrance.guideapi.api.GuideRegistry.getSize()) > (stack.getItemDamage())) && ((amerifrance.guideapi.api.GuideRegistry.getBook(stack.getItemDamage()).itemTexture) != null)) { return customIcons.get(stack.getItemD...
private static com.marklogic.semantics.rdf4j.Resource[] mergeResource(com.marklogic.semantics.rdf4j.Resource o, com.marklogic.semantics.rdf4j.Resource... arr) { if (o != null) { com.marklogic.semantics.rdf4j.Resource[] newArray = new com.marklogic.semantics.rdf4j.Resource[(arr.length) + 1]; newArray...
private static com.marklogic.semantics.rdf4j.Resource[] mergeResource(com.marklogic.semantics.rdf4j.Resource o, com.marklogic.semantics.rdf4j.Resource... arr) { if ((arr != null) && ((arr.length) > 0)) { return arr; }else if (o == null) { return null; }else { com....
public net.smartcosmos.dto.metadata.PageInformation convert(org.springframework.data.domain.PageImpl<?> page) { return net.smartcosmos.dto.metadata.PageInformation.builder().number(((page.getTotalElements()) > 0 ? (page.getNumber()) + 1 : 0)).totalElements(page.getTotalElements()).size(page.getNumberOfElements()).t...
public net.smartcosmos.dto.metadata.PageInformation convert(org.springframework.data.domain.PageImpl<?> page) { return net.smartcosmos.dto.metadata.PageInformation.builder().number(((page.getTotalElements()) > 0 ? (page.getNumber()) + 1 : 0)).totalElements(page.getTotalElements()).size(page.getNumberOfElements()).t...
public static void main(java.lang.String[] args) { Main.Sort sorter = new Main.Sort(); sorter.longestConsec(new java.lang.String[]{ "zone" , "abigail" , "theta" , "form" , "libe" , "zas" , "theta" , "abigail" }, 2); sorter.longestConsec(new java.lang.String[]{ "it" , "wkppv" , "ixoyx" , "3452" , "zzzzzzzzzz...
public static void main(java.lang.String[] args) { Main.Sort sorter = new Main.Sort(); java.lang.System.out.println(sorter.longestConsec(new java.lang.String[]{ "zone" , "abigail" , "theta" , "form" , "libe" , "zas" , "theta" , "abigail" }, 2)); java.lang.System.out.println(sorter.longestConsec(new java.lan...
public springfox.documentation.spring.web.plugins.Docket apiDocumentationV2() { return new springfox.documentation.spring.web.plugins.Docket(springfox.documentation.spi.DocumentationType.SWAGGER_2).groupName("default-group").apiInfo(apiInfo()).select().paths(defaultGroup()).build().pathMapping(apiPath).securitySche...
public springfox.documentation.spring.web.plugins.Docket apiDocumentationV2() { return new springfox.documentation.spring.web.plugins.Docket(springfox.documentation.spi.DocumentationType.SWAGGER_2).groupName("default-group").apiInfo(apiInfo()).select().paths(defaultGroup()).build().securitySchemes(java.util.Arrays....