buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void addProject(java.lang.String projectName) { final com.blackducksoftware.integration.hub.buildtool.Gav[] gavs = projService.getMavenAndGradleDependencies(projectName); final java.util.Map<com.blackducksoftware.integration.hub.buildtool.Gav, com.blackducksoftware.integration.eclipseplugin.internal.Depe...
public void addProject(java.lang.String projectName) { final com.blackducksoftware.integration.hub.buildtool.Gav[] gavs = projService.getMavenAndGradleDependencies(projectName); final java.util.Map<com.blackducksoftware.integration.hub.buildtool.Gav, com.blackducksoftware.integration.eclipseplugin.internal.Depe...
int executeUpdate(java.lang.String query) { int result = 0; try { connection = getDBConnection(); createStatement(); result = statement.executeUpdate(query); } catch (java.lang.ClassNotFoundException e) { e.printStackTrace(); } catch (java.sql.SQLException e) { e....
int executeUpdate(java.lang.String query) { int result = 0; try { connection = getDBConnection(); createStatement(); result = statement.executeUpdate(query); } catch (java.lang.ClassNotFoundException e) { e.printStackTrace(); } catch (java.sql.SQLException e) { e....
public void ban(java.lang.String reason) { android.content.SharedPreferences sharedPreferences = getActivity().getSharedPreferences("squirrel", Activity.MODE_PRIVATE); android.content.SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putBoolean("isBanned", true); editor.putBoolean("isMe...
public void ban(java.lang.String reason) { android.content.SharedPreferences sharedPreferences = getActivity().getSharedPreferences("squirrel", Activity.MODE_PRIVATE); android.content.SharedPreferences.Editor editor = sharedPreferences.edit(); editor.putBoolean("isBanned", true); editor.putString("reaso...
public S reduce(A action, S state) { for (int i = 0; i < (matchers.length); i++) { if (match(((M) (matchers[i])), action)) { return ((S) (reducers[i].reduce(action, state))); } } return state; }
public S reduce(A action, S state) { for (int i = 0; i < (matchers.size()); i++) { if (match(matchers.get(i), action)) { return ((S) (reducers.get(i).reduce(action, state))); } } return state; }
public void testMetaHandlerUtf16le() throws java.lang.Exception { for (java.lang.String fn : new java.lang.String[]{ "/meta/meta.xml" , "/meta-utf16le.xml" , "/xml-entity-meta/meta.xml" }) { java.lang.System.out.println(fn); java.io.InputStream is = java.lang.ClassLoader.class.getResourceAsStream(fn...
public void testMetaHandlerUtf16le() throws java.lang.Exception { for (java.lang.String fn : new java.lang.String[]{ "/meta/meta.xml" , "/meta-utf16le.xml" , "/xml-entity-meta/meta.xml" }) { java.lang.System.out.println(fn); java.io.InputStream is = getClass().getResourceAsStream(fn); org.gb...
public javax.ws.rs.core.Response loginUser(@javax.ws.rs.PathParam(value = "parameter") int parameter, @javax.ws.rs.DefaultValue(value = "Login Succesful") @javax.ws.rs.QueryParam(value = "value") java.lang.String value, @javax.ws.rs.core.Context javax.servlet.http.HttpServletRequest request) { int userId = paramete...
public javax.ws.rs.core.Response loginUser(@javax.ws.rs.PathParam(value = "parameter") int parameter, @javax.ws.rs.DefaultValue(value = "Login Succesful") @javax.ws.rs.QueryParam(value = "value") java.lang.String value) { int userId = parameter; java.lang.String sessionId = getSessionId(userId, context); ja...
public static java.lang.String getRobotOutputFormat() { java.lang.String sRet = edu.clemson.lph.civet.prefs.CivetConfig.props.getProperty("robotOutputFormat"); if (sRet != null) { if ((!(sRet.equals("STD"))) && (!(sRet.equals("ADOBE")))) edu.clemson.lph.civet.prefs.CivetConfig.exitError(("Un...
public static java.lang.String getRobotOutputFormat() { java.lang.String sRet = edu.clemson.lph.civet.prefs.CivetConfig.props.getProperty("robotOutputFormat"); if (sRet != null) { if ((!(sRet.equals("STD"))) && (!(sRet.equals("ADOBE")))) edu.clemson.lph.civet.prefs.CivetConfig.exitError(("Un...
public java.util.List<org.exadel.training.model.Training> getContinuousTrainings(long id) { org.exadel.training.model.Training training = getTrainingById(id); java.lang.String title = training.getTitle(); java.lang.String name = title.substring(0, title.lastIndexOf("#")); return sessionFactory.getCurren...
public java.util.List<org.exadel.training.model.Training> getContinuousTrainings(long id) { org.exadel.training.model.Training training = getTrainingById(id); java.lang.String title = training.getTitle(); java.lang.String name = title.substring(0, title.lastIndexOf("#")); return sessionFactory.getCurren...
public void scheduleTarget(java.lang.Object target) { logger.debug("Scheduling target object of type {}", target.getClass().getName()); if (target != null) { java.lang.Class<?> clazz = target.getClass(); for (java.lang.reflect.Method method : clazz.getMethods()) { com.jensfendler.nin...
public void scheduleTarget(java.lang.Object target) { logger.debug("Scheduling target object of type {}", target.getClass().getName()); java.lang.Class<?> clazz = target.getClass(); for (java.lang.reflect.Method method : clazz.getMethods()) { com.jensfendler.ninjaquartz.annotations.QuartzSchedule qu...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (com.example.profilecloudexample.MainActivity.REQUEST_ENABLE_BT)) { if (resultCode == (android.app.Activity.RESULT_OK)) { com.emotiv.insight.IEdk.IEE_EngineConnect(this, ""); ...
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) { if (requestCode == (com.example.profilecloudexample.MainActivity.REQUEST_ENABLE_BT)) { if (resultCode == (android.app.Activity.RESULT_OK)) { com.emotiv.insight.IEdk.IEE_EngineConnect(this, ""); ...
public void show() { android.util.Log.i(TAG, "show"); if (hasShow()) { android.util.Log.i(TAG, "hasShow() == true"); return ; } mTargetView.getViewTreeObserver().addOnGlobalLayoutListener(this); this.setBackgroundColor(Color.TRANSPARENT); mDecorView.addView(this); }
public void show() { android.util.Log.i(TAG, "show"); if (hasShow()) { return ; } mTargetView.getViewTreeObserver().addOnGlobalLayoutListener(this); this.setBackgroundColor(Color.TRANSPARENT); mDecorView.addView(this); }
public java.lang.String[] formatRow(java.lang.String[] arrString) { java.util.ArrayList<java.lang.String> sl = new java.util.ArrayList<java.lang.String>(); if (arrString != null) { for (int i = 0; i < (arrString.length); i++) { if (isNumeric(s[i])) sl.add(s[i]); e...
public java.lang.String[] formatRow(java.lang.String[] arrString) { java.util.ArrayList<java.lang.String> sl = new java.util.ArrayList<java.lang.String>(); if (arrString != null) { for (int i = 0; i < (arrString.length); i++) { if (isNumeric(arrString[i])) sl.add(arrString[i]...
private void verifyParameters() throws ca.on.oicr.pde.utilities.SgePollException { java.lang.System.out.println("Verify params!"); for (java.lang.String option : new java.lang.String[]{ "unique-job-string" , "output-file" }) { if (!(options.has(option))) { stderr.append(get_syntax()); ...
private void verifyParameters() throws ca.on.oicr.pde.utilities.SgePollException { for (java.lang.String option : new java.lang.String[]{ "unique-job-string" , "output-file" }) { if (!(options.has(option))) { stderr.append(get_syntax()); stderr.append("Must include parameter: --").ap...
public org.gephi.graph.api.Edge getEdge(java.lang.Object id) { graphStore.autoReadLock(); try { org.gephi.graph.store.EdgeImpl edge = graphStore.getEdge(id); if (view.containsEdge(edge)) { return edge; } return null; } finally { graphStore.autoReadUnlock()...
public org.gephi.graph.api.Edge getEdge(java.lang.Object id) { graphStore.autoReadLock(); try { org.gephi.graph.store.EdgeImpl edge = graphStore.getEdge(id); if ((edge != null) && (view.containsEdge(edge))) { return edge; } return null; } finally { graphSt...
protected void assertUtilsClass(java.lang.Class<?> c) { java.lang.reflect.Constructor ctor = null; try { ctor = c.getDeclaredConstructor(); } catch (java.lang.NoSuchMethodException e) { fail(("No default constructor defined for class " + (c.getCanonicalName()))); } assertTrue(java.la...
protected void assertUtilsClass(java.lang.Class<?> c) { java.lang.reflect.Constructor ctor = null; try { ctor = c.getDeclaredConstructor(); } catch (java.lang.NoSuchMethodException e) { fail(("No default constructor defined for class " + (c.getCanonicalName()))); } assertTrue(java.la...
public boolean hasDerivedTradingUnitAssignmentsOnLUTU(final java.util.Properties ctx, final java.lang.Object model, final de.metas.handlingunits.model.I_M_HU topLevelHU, final de.metas.handlingunits.model.I_M_HU luHU, final de.metas.handlingunits.model.I_M_HU tuHU, final java.lang.String trxName) { final org.compie...
public boolean hasDerivedTradingUnitAssignmentsOnLUTU(final java.util.Properties ctx, final java.lang.Object model, final de.metas.handlingunits.model.I_M_HU topLevelHU, final de.metas.handlingunits.model.I_M_HU luHU, final de.metas.handlingunits.model.I_M_HU tuHU, final java.lang.String trxName) { return getDerive...
public void shouldReturnConnectionWithoutProxy() throws java.io.IOException { spyHttpTransport.noProxy(); spyHttpTransport.openConnection(com.codenvy.im.utils.TestHttpTransport.TEXT, com.codenvy.im.utils.TestHttpTransport.TEXT); org.mockito.Mockito.verify(spyHttpTransport).getConnectionWithoutProxy(com.code...
public void shouldReturnConnectionWithoutProxy() throws java.io.IOException { spyHttpTransport.openConnection(com.codenvy.im.utils.TestHttpTransport.TEXT, com.codenvy.im.utils.TestHttpTransport.TEXT, true); org.mockito.Mockito.verify(spyHttpTransport).getConnectionWithoutProxy(com.codenvy.im.utils.TestHttpTrans...
return ((java.lang.Math.abs((x - (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.RANGE)))) <= (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.GEN_0_EXCLUSION_RADIUS)) && ((java.lang.Math.abs(((y) - (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.RANGE)))) <= ...
return ((java.lang.Math.abs((x - (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.RANGE)))) <= (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.GEN_0_EXCLUSION_RADIUS)) && ((java.lang.Math.abs((z - (vazkii.botania.common.block.subtile.generating.SubTileDandelifeon.RANGE)))) <= (v...
public void setFilterType(java.lang.String value) { filterType = value; removeAll(); switch (filterType) { case "Color" : case "Gray" : addItem("Width", widthField); addItem("Height", heightField); break; case "Threshold" : addItem("Thr...
public void setFilterType(java.lang.String value) { filterType = value; removeAll(); switch (filterType) { case "Color" : case "Gray" : addItem("Width", widthField); addItem("Height", heightField); break; case "Threshold" : addItem("Wid...
public boolean accept(java.io.File dirFile) { if ((dirFile.isDirectory()) && (dirFile.exists())) { java.io.File resourceFile; resourceFile = eu.asterics.mw.services.ResourceRegistry.resolveRelativeFilePath(dirFile, resourcePathSlashified); return resourceFile.exists(); } return false...
public boolean accept(java.io.File dirFile) { if ((dirFile.isDirectory()) && (dirFile.exists())) { java.io.File resourceFile; resourceFile = eu.asterics.mw.services.ResourceRegistry.resolveRelativeFilePath(dirFile, resourcePathSlashified, false); return resourceFile.exists(); } retur...
public interfaces.State getBestNeighbor() { java.util.ArrayList<puzzle.PuzzleState> neighbors = getNeighbors(); puzzle.PuzzleState topval = neighbors.get(0); for (puzzle.PuzzleState state : neighbors) { if ((state.getValue()) < (topval.getValue())) { topval = state; } } j...
public interfaces.State getBestNeighbor() { java.util.ArrayList<puzzle.PuzzleState> neighbors = getNeighbors(); puzzle.PuzzleState topval = neighbors.get(0); for (puzzle.PuzzleState state : neighbors) { if ((state.getValue()) < (topval.getValue())) { topval = state; } } r...
public void open(int i, int j) { if (isInBounds(i, j)) { int rowIndex = i - 1; int colIndex = j - 1; if (!(isOpen(rowIndex, colIndex))) { int index = getIndex(rowIndex, colIndex); gridSites[index] = true; connectNeighbors(rowIndex, colIndex); (...
public void open(int i, int j) { if (isInBounds(i, j)) { if (!(isOpen(i, j))) { int index = getIndex(i, j); gridSites[index] = true; connectNeighbors(i, j); (count)++; } } }
public boolean onCreateOptionsMenu(com.goldmanalpha.dailydo.Menu menu) { menu.add(0, com.goldmanalpha.dailydo.MainActivity.MenuItems.AddItem, 0, "Add Item"); PublicPrivateMenuItem = menu.add(0, com.goldmanalpha.dailydo.MainActivity.MenuItems.PublicPrivateSwitch, 0, "Pub Only"); menu.add(0, com.goldmanalpha....
public boolean onCreateOptionsMenu(com.goldmanalpha.dailydo.Menu menu) { menu.add(0, com.goldmanalpha.dailydo.MainActivity.MenuItems.AddItem, 0, "Add Item"); PublicPrivateMenuItem = menu.add(0, com.goldmanalpha.dailydo.MainActivity.MenuItems.PublicPrivateSwitch, 0, "Pub Only"); menu.add(0, com.goldmanalpha....
public net.viktorc.detroid.framework.uci.SearchResults get(long timeout, java.util.concurrent.TimeUnit unit) { long timeoutMs = unit.toMillis(timeout); long start = java.lang.System.currentTimeMillis(); while ((!(isDone)) && (timeoutMs > 0)) { synchronized(this) { try { w...
public synchronized net.viktorc.detroid.framework.uci.SearchResults get(long timeout, java.util.concurrent.TimeUnit unit) { long timeoutMs = unit.toMillis(timeout); long start = java.lang.System.currentTimeMillis(); while ((!(isDone)) && (timeoutMs > 0)) { try { wait(timeoutMs); ...
public boolean equals(java.lang.Object obj) { if (!(obj instanceof de.bmoth.modelchecker.State)) { return false; } if ((this) == obj) { return false; } de.bmoth.modelchecker.State that = ((de.bmoth.modelchecker.State) (obj)); return this.values.equals(that.values); }
public boolean equals(java.lang.Object obj) { if (!(obj instanceof de.bmoth.modelchecker.State)) { return false; } if ((this) == obj) { return true; } de.bmoth.modelchecker.State that = ((de.bmoth.modelchecker.State) (obj)); return this.values.equals(that.values); }
public void showProgress(boolean progress) { if (progressAllowed) { if (progress) getActivity().findViewById(R.id.loadingPanel_list).setVisibility(View.VISIBLE); else getActivity().findViewById(R.id.loadingPanel_list).setVisibility(View.GONE); progressPending...
public void showProgress(boolean progress) { if (progressAllowed) { android.view.View view = getActivity().findViewById(R.id.loadingPanel_list); if (view != null) { if (progress) view.setVisibility(View.VISIBLE); else view.setVisibility(View.GO...
public void threadEnd(java.lang.String threadName) { synchronized(lock) { threadCounter.decrementAndGet(); THREAD_INSTANCE_CONTAINER.remove(threadName); if ((threadCounter.get()) == 0) { if (((!(downloadConf.isEnableLocalCheckFirstOnly)) && (downloadConf.isEnableLocalCheckFirst))...
public void threadEnd(java.lang.String threadName) { synchronized(lock) { threadCounter.decrementAndGet(); THREAD_INSTANCE_CONTAINER.remove(threadName); if ((threadCounter.get()) == 0) { if (((!(downloadConf.isEnableLocalCheckFirstOnly)) && (downloadConf.isEnableLocalCheckFirst))...
private void readData() { try { java.io.FileInputStream fis = openFileInput(com.example.gary.simon.Title.DATA_FILENAME); java.util.Scanner scanner = new java.util.Scanner(fis); if (scanner.hasNext()) { int i; top_Score = scanner.nextInt(); } scanner.cl...
private void readData() { try { java.io.FileInputStream fis = openFileInput(com.example.gary.simon.Title.DATA_FILENAME); java.util.Scanner scanner = new java.util.Scanner(fis); if (scanner.hasNext()) { top_Score = scanner.nextInt(); } scanner.close(); } catch ...
public void loadPlayer(com.github.unchama.player.GiganticPlayer gp, java.sql.ResultSet rs) throws java.sql.SQLException { com.github.unchama.player.toolpouch.ToolPouchManager m = gp.getManager(com.github.unchama.player.toolpouch.ToolPouchManager.class); org.bukkit.inventory.Inventory pouch; try { po...
public void loadPlayer(com.github.unchama.player.GiganticPlayer gp, java.sql.ResultSet rs) throws java.sql.SQLException { com.github.unchama.player.toolpouch.ToolPouchManager m = gp.getManager(com.github.unchama.player.toolpouch.ToolPouchManager.class); org.bukkit.inventory.Inventory pouch; try { po...
public void referenceTest() { org.junit.Assert.assertThat("Tested List is not empty", processorsList, org.hamcrest.core.Is.is(org.hamcrest.core.IsNull.notNullValue())); org.junit.Assert.assertThat("Reference should be injected.", manager, org.hamcrest.core.Is.is(org.hamcrest.core.IsNull.notNullValue())); ja...
public void referenceTest() { org.junit.Assert.assertThat("Tested List is not empty", processorsList, org.hamcrest.core.Is.is(org.hamcrest.core.IsNull.notNullValue())); org.junit.Assert.assertThat("Reference should be injected.", manager, org.hamcrest.core.Is.is(org.hamcrest.core.IsNull.notNullValue())); ja...
public void onReceive(android.content.Context context, android.content.Intent intent) { com.urbanairship.push.PushMessage message = intent.getParcelableExtra(StringConstants.EXTRA_PUSH); android.os.Bundle pushExtras = message.getPushBundle(); java.lang.String shouldStealFocusString = pushExtras.getString(St...
public void onReceive(android.content.Context context, android.content.Intent intent) { com.urbanairship.push.PushMessage message = intent.getParcelableExtra(StringConstants.EXTRA_PUSH); android.os.Bundle pushExtras = message.getPushBundle(); java.lang.String shouldStealFocusString = pushExtras.getString(St...
private void handleResponse(int statusCode, java.lang.String reply) throws java.io.IOException { com.splunk.cloudfwd.LifecycleEvent.Type type; switch (statusCode) { case 503 : warn(reply, statusCode); type = com.splunk.cloudfwd.LifecycleEvent.Type.PREFLIGHT_BUSY; case 504...
private void handleResponse(int statusCode, java.lang.String reply) throws java.io.IOException { com.splunk.cloudfwd.LifecycleEvent.Type type; switch (statusCode) { case 503 : warn(reply, statusCode); type = com.splunk.cloudfwd.LifecycleEvent.Type.PREFLIGHT_BUSY; brea...
public boolean hasInRange(int target) { if (((Entitymembership) & 2) == 2) { return ((EntityPositionX) + (EntityFirerange)) >= target; }else { return ((EntityPositionX) - (EntityFirerange)) <= target; } }
public boolean hasInRange(int target) { if ((((Entitymembership) - 1) & 2) != 2) { return ((EntityPositionX) + (EntityFirerange)) >= target; }else { return ((EntityPositionX) - (EntityFirerange)) <= target; } }
public javax.net.ssl.SSLEngine createHTTPSSLEngine() throws javax.net.ssl.SSLException { final io.netty.handler.ssl.SslContextBuilder sslContextBuilder = io.netty.handler.ssl.SslContextBuilder.forServer(httpKeystoreKey, httpKeystoreCert).ciphers(getEnabledSSLCiphers()).applicationProtocolConfig(ApplicationProtocolC...
public javax.net.ssl.SSLEngine createHTTPSSLEngine() throws javax.net.ssl.SSLException { final io.netty.handler.ssl.SslContextBuilder sslContextBuilder = io.netty.handler.ssl.SslContextBuilder.forServer(httpKeystoreKey, httpKeystoreCert).ciphers(getEnabledSSLCiphers(this.sslHTTPProvider)).applicationProtocolConfig(...
public java.util.List<br.com.caelum.agiletickets.models.Sessao> criaSessoes(org.joda.time.LocalDate inicio, org.joda.time.LocalDate fim, org.joda.time.LocalTime horario, br.com.caelum.agiletickets.models.Periodicidade periodicidade) { java.util.ArrayList<br.com.caelum.agiletickets.models.Sessao> lista = new java.ut...
public java.util.List<br.com.caelum.agiletickets.models.Sessao> criaSessoes(org.joda.time.LocalDate inicio, org.joda.time.LocalDate fim, org.joda.time.LocalTime horario, br.com.caelum.agiletickets.models.Periodicidade periodicidade) { java.util.ArrayList<br.com.caelum.agiletickets.models.Sessao> lista = new java.ut...
public void testPartition(ch02_LinkedLists.Node partitionedList, int x, int numLessThanX) { for (int i = 0; i < numLessThanX; i++) { org.junit.Assert.assertTrue(((partitionedList.data) < x)); partitionedList = partitionedList.next; } while (partitionedList != null) { org.junit.Assert...
public void testPartition(ch02_LinkedLists.Node partitionedList, int x, int numLessThanX) { for (int i = 0; i < numLessThanX; i++) { org.junit.Assert.assertTrue(((partitionedList.data) < x)); partitionedList = partitionedList.next; } while (partitionedList != null) { org.junit.Assert...
public void remove(uts.sep.tcba.sepprototype.Model.Availability currentAvailability, java.lang.String userID) { com.google.firebase.database.FirebaseDatabase database = com.google.firebase.database.FirebaseDatabase.getInstance(); com.google.firebase.database.DatabaseReference ref = database.getReference().child...
public void remove(uts.sep.tcba.sepprototype.Model.Availability currentAvailability, java.lang.String userID) { com.google.firebase.database.FirebaseDatabase database = com.google.firebase.database.FirebaseDatabase.getInstance(); com.google.firebase.database.DatabaseReference ref = database.getReference().child...
public static edu.petrov.gojavaonline.calculator.BigInteger factorial(edu.petrov.gojavaonline.calculator.BigInteger n) { edu.petrov.gojavaonline.calculator.BigInteger result = edu.petrov.gojavaonline.calculator.BigInteger.ONE; while (!(n.equals(edu.petrov.gojavaonline.calculator.BigInteger.ZERO))) { res...
public edu.petrov.gojavaonline.calculator.BigInteger factorial() { edu.petrov.gojavaonline.calculator.BigInteger result = edu.petrov.gojavaonline.calculator.BigInteger.ONE; edu.petrov.gojavaonline.calculator.BigInteger n = new edu.petrov.gojavaonline.calculator.BigInteger(this); while (!(n.equals(edu.petrov...
public void playAgain() { java.lang.System.out.print("Would you like to play another hand? (y/n): "); java.lang.String playAgain = Dealer.input.next(); if (playAgain.equalsIgnoreCase("y")) { reset(); java.lang.System.out.println(("You now have $" + (player.totalMoney))); play(); ...
public void playAgain() { java.lang.System.out.print("Would you like to play another hand? (y/n): "); java.lang.String playAgain = Dealer.input.next(); if (playAgain.equalsIgnoreCase("y")) { reset(); java.lang.System.out.println(("You now have $" + (player.totalMoney))); play(); ...
public void squareClicked(de.htwg.dog.view.gui.BoardPanel.Square clickedSquare) { if (((selectedSquare1) == null) && (clickedSquare != (selectedSquare2))) { selectedSquare1 = clickedSquare; }else if ((selectedSquare1) == clickedSquare) { selectedSquare1 = null; }else ...
private void squareClicked(de.htwg.dog.view.gui.BoardPanel.Square clickedSquare) { if (((selectedSquare1) == null) && (clickedSquare != (selectedSquare2))) { selectedSquare1 = clickedSquare; }else if ((selectedSquare1) == clickedSquare) { selectedSquare1 = null; }else ...
public void onClick(android.view.View v) { recordButton.setVisibility(View.VISIBLE); stopButton.setVisibility(View.GONE); mediaRecorder.stop(); mediaRecorder.release(); mediaRecorder = null; isRecording[0] = false; audioDialog.dismiss(); android.widget.Toast.makeText(getContext(), ((file...
public void onClick(android.view.View v) { recordButton.setVisibility(View.VISIBLE); stopButton.setVisibility(View.GONE); mediaRecorder.stop(); mediaRecorder.release(); mediaRecorder = null; isRecording[0] = false; android.widget.Toast.makeText(getContext(), ((filename[0]) + " is saved to ga...
public void toMessage(java.lang.StringBuilder sb) { sb.append("INIT"); sb.append("\n"); sb.append(player.team); sb.append("\n"); appendMap(sb); sb.append("TINI"); sb.append("\n"); sb.setLength(((sb.length()) - 1)); }
public void toMessage(java.lang.StringBuilder sb) { sb.append("INIT"); sb.append("\n"); sb.append(((char) (player.team))); sb.append("\n"); appendMap(sb); sb.append("TINI"); sb.append("\n"); sb.setLength(((sb.length()) - 1)); }
public company.basicService retrieveService() { java.lang.String procedure = null; java.lang.System.out.println("Enter the name of the procedure to search for"); procedure = input.nextLine(); company.basicService searchedService; company.basicService traverse = head; int result = removeService(p...
public company.basicService retrieveService() { java.lang.String procedure = null; java.lang.System.out.println("Enter the name of the procedure to search for"); procedure = input.nextLine(); company.basicService searchedService = null; company.basicService traverse = head; int result = retrieve...
public void onStartCapture(int x, int y, int width, int height) { ssi.x = x; ssi.y = y; ssi.captureWidth = width; ssi.captureHeight = height; ssi.scaleWidth = width; ssi.scaleHeight = height; sharer.updateScreenShareInfo(x, y, width, height); signalChannel.startSharing(width, height); ...
public void onStartCapture(int x, int y, int width, int height) { ssi.x = x; ssi.y = y; ssi.captureWidth = width; ssi.captureHeight = height; ssi.scaleWidth = width; ssi.scaleHeight = height; sharer.updateScreenShareInfo(x, y, width, height); sharer.addClientListener(listener); share...
public void taskCompleted(boolean success, java.lang.String message, org.json.JSONObject json) { removeLoadingSpinner(); int numPoints = responseParser.parsePerformSpin(json); if (success && (numPoints > 0)) { delegate.spinPassed(numPoints); }else { message = responseParser.parseErrorOrD...
public void taskCompleted(boolean success, java.lang.String message, org.json.JSONObject json) { removeLoadingSpinner(); if (success) { int numPoints = responseParser.parsePerformSpin(json); if (numPoints > 0) { delegate.spinPassed(numPoints); return ; } } ...
public void create(model.User user) throws java.io.IOException, java.lang.ClassNotFoundException, java.sql.SQLException { java.sql.Connection connection = operationManager.setConnection(); java.lang.String sql = ((((("INSERT INTO USERS (id, firstname, lastname, age) VALUES ( DEFAULT, '" + (user.getFirstname()))...
public void create(model.User user) throws java.io.IOException, java.lang.ClassNotFoundException, java.sql.SQLException { java.sql.Connection connection = operationManager.setConnection(); java.lang.String sql = ((((("INSERT INTO USERS (id, firstname, lastname, age) VALUES ( DEFAULT, '" + (user.getFirstname()))...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); setContentView(R.layout.activity_section1_select); view_levels = ((android.widget.TextView) (findViewById(R.id.levels))); view_coins ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_section1_select); view_levels = ((android.widget.TextView) (findViewById(R.id.levels))); view_coins = ((android.widget.TextView) (findViewById(R.id.coins))); view_coin...
org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource() { org.springframework.web.cors.CorsConfiguration configuration = new org.springframework.web.cors.CorsConfiguration(); configuration.setAllowedOrigins(java.util.Arrays.asList("*")); configuration.setAllowedMethods(java.util.Array...
org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource() { org.springframework.web.cors.CorsConfiguration configuration = new org.springframework.web.cors.CorsConfiguration(); configuration.setAllowedOrigins(java.util.Arrays.asList("*")); configuration.setAllowedMethods(java.util.Array...
private void showBox() { java.lang.String showOrHide = "Show"; java.lang.String objToShow = com.example.johan.ssbk.Cats.getObjImgName(); int locationToShow = com.example.johan.ssbk.Cats.getLocationToShow(activeObjects); android.widget.ImageButton viewToShow = setViewToSend(locationToShow, showOrHide); ...
private void showBox() { int locationToShow = com.example.johan.ssbk.Cats.getLocationToShow(activeObjects); java.lang.String showOrHide = "Show"; java.lang.String objToShow = com.example.johan.ssbk.Cats.getObjImgName(); android.widget.ImageButton viewToShow = setViewToSend(locationToShow, showOrHide); ...
public boolean lockDevices(final java.util.Map<org.opendaylight.distributed.tx.api.DTXLogicalTXProviderType, java.util.Set<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>>> deviceMap) { boolean allLocked = true; synchronized(this) { for (org.opendaylight.distributed.tx.api.DTXLogicalTXProv...
public boolean lockDevices(final java.util.Map<org.opendaylight.distributed.tx.api.DTXLogicalTXProviderType, java.util.Set<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>>> deviceMap) { boolean allLocked = true; synchronized(this) { for (org.opendaylight.distributed.tx.api.DTXLogicalTXProv...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { com.soctec.soctec.achievements.Achievement achi = unlocked.get(((int) (id))); android.content.Intent showerIntent = new android.content.Intent(main, com.soctec.soctec.core.AchievementShowerActivity.cla...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { com.soctec.soctec.achievements.Achievement achi = unlocked.get((((unlocked.size()) - 1) - ((int) (id)))); android.content.Intent showerIntent = new android.content.Intent(main, com.soctec.soctec.core.A...
public io.searchbox.client.JestClient getClient() { if ((client) == null) { synchronized(architecture.jest.ClientFactory.class) { if ((client) == null) { io.searchbox.client.JestClientFactory factory = new io.searchbox.client.JestClientFactory(); factory.setHttpCl...
public io.searchbox.client.JestClient getClient() { if ((client) == null) { synchronized(architecture.jest.ClientFactory.class) { if ((client) == null) { io.searchbox.client.JestClientFactory factory = new io.searchbox.client.JestClientFactory(); factory.setHttpCl...
public void add(final org.concord.energy3d.model.HousePart housePart, final boolean redraw) { org.concord.energy3d.scene.SceneManager.getTaskManager().update(new java.util.concurrent.Callable<java.lang.Object>() { @java.lang.Override public java.lang.Object call() { final org.concord.ene...
public void add(final org.concord.energy3d.model.HousePart housePart, final boolean redraw) { final org.concord.energy3d.model.HousePart container = housePart.getContainer(); if (container != null) container.getChildren().add(housePart); add(housePart); if (redraw) redrawAll(); ...
void setMirrorFileShareAttributes(com.emc.storageos.db.client.model.FileShare sourceFileShare, com.emc.storageos.db.client.model.FileShare targetFileShare) { if (sourceFileShare != null) { if ((sourceFileShare.getMirrorfsTargets()) == null) { sourceFileShare.setMirrorfsTargets(new com.emc.storag...
void setMirrorFileShareAttributes(com.emc.storageos.db.client.model.FileShare sourceFileShare, com.emc.storageos.db.client.model.FileShare targetFileShare) { if (sourceFileShare != null) { if ((sourceFileShare.getMirrorfsTargets()) == null) { sourceFileShare.setMirrorfsTargets(new com.emc.storag...
public void onPictureTaken(byte[] data, android.hardware.Camera camera) { picture = edu.uml.cs.isense.riverwalk.Pictures.getOutputMediaFile(edu.uml.cs.isense.riverwalk.Pictures.MEDIA_TYPE_IMAGE); if ((picture) == null) { android.util.Log.d("CameraMain", "picture is null"); return ; } and...
public void onPictureTaken(byte[] data, android.hardware.Camera camera) { picture = edu.uml.cs.isense.riverwalk.Pictures.getOutputMediaFile(edu.uml.cs.isense.riverwalk.Pictures.MEDIA_TYPE_IMAGE); if ((picture) == null) { android.util.Log.d("CameraMain", "picture is null"); return ; } try...
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException { switch (qName) { case "document" : documentList.add(new de.fh_bielefeld.newsboard.model.RawDocument(title, author, source, creationTime, crawlTime, crawler, rawText)...
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException { if ("document".equals(qName)) { documentList.add(new de.fh_bielefeld.newsboard.model.RawDocument(title, author, source, creationTime, crawlTime, crawler, rawText)); } }
public java.util.List<app.model.Evento> findEventsByPersonIdAndDate(java.lang.Long personId, java.lang.String data) { javax.persistence.Query query = entitymanager.createNamedQuery("Evento.findEventsByPersonIdAndDate", app.model.Evento.class).setParameter("personId", personId).setParameter("date", data); try { ...
public java.util.List<app.model.Evento> findEventsByPersonIdAndDate(java.lang.Long personId, java.util.Date data) { javax.persistence.Query query = entitymanager.createNamedQuery("Evento.findEventsByPersonIdAndDate", app.model.Evento.class).setParameter("personId", personId).setParameter("date", data); try { ...
protected static java.lang.String getSQLSelectString(org.mapsforge.poi.storage.PoiCategoryFilter filter, java.lang.String[] patterns) { if (filter != null) { return org.mapsforge.poi.storage.PoiCategoryRangeQueryGenerator.getSQLSelectString(filter, patterns); } java.lang.String query = DbConstants.F...
protected static java.lang.String getSQLSelectString(org.mapsforge.poi.storage.PoiCategoryFilter filter, java.lang.String[] patterns) { if (filter != null) { return org.mapsforge.poi.storage.PoiCategoryRangeQueryGenerator.getSQLSelectString(filter, patterns); } java.lang.String query = DbConstants.F...
public void run() { while (true) { byte[] tmp = new byte[1024]; try { tmp = readFromServer(); if (tmp != null) { Parser.parseData(new java.lang.String(tmp)); } tmp = null; } catch (java.io.IOException e1) { e1.printS...
public void run() { while (true) { byte[] tmp = new byte[1024]; try { tmp = readFromServer(); if (tmp != null) { Parser.parseData(tmp); } tmp = null; } catch (java.io.IOException e1) { e1.printStackTrace(); }...
private void collection2Json(java.lang.Object object) { this.stringBuilder.append("[\n"); this.jsonFormat.increaseIndent(); java.util.Iterator iterator = ((java.util.Collection) (object)).iterator(); java.lang.String indentOffset = this.getCurrentIndentOffset(); while (iterator.hasNext()) { ...
private void collection2Json(java.lang.Object object) { this.stringBuilder.append("[\n"); this.jsonFormat.increaseIndent(); java.util.Iterator iterator = ((java.util.Collection) (object)).iterator(); java.lang.String indentOffset = this.getCurrentIndentOffset(); while (iterator.hasNext()) { ...
public void relocateToPoint(javafx.geometry.Point2D p) { javafx.geometry.Point2D localCoords = getParent().sceneToLocal(p); relocate(((int) ((localCoords.getX()) - ((getBoundsInLocal().getWidth()) / 2))), ((int) ((localCoords.getY()) - ((getBoundsInLocal().getHeight()) / 2)))); }
public void relocateToPoint(javafx.geometry.Point2D p) { javafx.geometry.Point2D localCoords = getParent().sceneToLocal(p); relocate(((int) (localCoords.getX())), ((int) (localCoords.getY()))); }
public void gameOver() { spawner.setToKill(true); engine.setToKill(true); gameCanvas.removeKeyListener(controller); gameCanvas.stop(); bgmPlayer.stop(); try { java.lang.Thread.sleep(1); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } gameFrame.disp...
public void gameOver() { spawner.setToKill(true); engine.setToKill(true); gameCanvas.removeKeyListener(controller); gameCanvas.stop(); bgmPlayer.stop(); try { java.lang.Thread.sleep(1); } catch (java.lang.InterruptedException e) { e.printStackTrace(); } gameFrame.disp...
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.history); histView = ((android.widget.ListView) (findViewById(R.id.history_file_view))); histView.setOnItemClickListener(new android.widget.ListView.OnItemClickListener() { pu...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.history); histView = ((android.widget.ListView) (findViewById(R.id.history_file_view))); histView.setOnItemClickListener(new android.widget.ListView.OnItemClickListener() { ...
public void dealBattle(android.graphics.Bitmap image) { if (mIsIdle) { mIsIdle = false; android.os.Message msg = android.os.Message.obtain(); msg.what = os.ransj.thundership.actions.BattleActor.MSG_ID_IMAGE; msg.obj = image; mHandler.sendMessage(msg); }else { imag...
public void dealBattle(android.graphics.Bitmap image) { synchronized(this) { if (mIsIdle) { mIsIdle = false; android.os.Message msg = android.os.Message.obtain(); msg.what = os.ransj.thundership.actions.BattleActor.MSG_ID_IMAGE; msg.obj = image; mH...
public void applyNoise(ar.edu.itba.controllers.ApplyNoise noise) { this.imageAfter = ar.edu.itba.models.ImageMatrix.readImage(this.imageBefore.getImage(false)); this.imageAfter.applyNoise(noise.getNoiseType(), noise.getGenerator(), noise.getPercentage()); eventBus.post(new ar.edu.itba.controllers.ImageModif...
public void applyNoise(ar.edu.itba.controllers.ApplyNoise noise) { this.imageAfter = ar.edu.itba.models.ImageMatrix.readImage(this.imageBefore.getImage(false)); this.imageAfter.applyNoise(noise.getNoiseType(), noise.getGenerator(), noise.getPercentage()); eventBus.post(new ar.edu.itba.controllers.ImageModif...
public java.lang.String goToInstructionPage(org.springframework.ui.Model model) { com.aptikraft.spring.view.bean.UserBO userBO = com.aptikraft.common.utils.CurrentUser.getCurrentUserBO(); userBO.setActiveLogin(true); getUserService().updateUser(userBO); int userId = userBO.getId(); java.util.List<co...
public java.lang.String goToInstructionPage(org.springframework.ui.Model model) { com.aptikraft.spring.view.bean.UserBO userBO = com.aptikraft.common.utils.CurrentUser.getCurrentUserBO(); userBO.setActiveLogin(true); getUserService().updateUser(userBO); int userId = userBO.getId(); java.util.List<co...
public void ensureDataOnFileSystem(java.lang.String dataSourcePath, java.lang.String fsPrefix, com.teradata.tempto.fulfillment.table.hive.HiveDataSource dataSource) { if (isDataUpToDate(dataSourcePath, dataSource)) { return ; } java.lang.String path = dataSourcePath.replace(fsPrefix, ""); revisi...
public void ensureDataOnFileSystem(java.lang.String dataSourcePath, java.lang.String fsPrefix, com.teradata.tempto.fulfillment.table.hive.HiveDataSource dataSource) { java.lang.String path = dataSourcePath.replace(fsPrefix, ""); if (isDataUpToDate(path, dataSource)) { return ; } revisionStorage....
public java.util.Optional<com.qcadoo.model.api.Entity> getMainAddress(final com.qcadoo.model.api.Entity company) { java.lang.String addressType = getMainAddressType(); if (org.apache.commons.lang3.StringUtils.isNotEmpty(addressType)) { return java.util.Optional.ofNullable(findMainAddress(company, addres...
public java.util.Optional<com.qcadoo.model.api.Entity> getMainAddress(final com.qcadoo.model.api.Entity company) { if ((company.getId()) != null) { java.lang.String addressType = getMainAddressType(); if (org.apache.commons.lang3.StringUtils.isNotEmpty(addressType)) { return java.util.Op...
public void onClick(android.content.DialogInterface dialog, int which) { createNewSemester(); java.lang.String sDate = "Start Date: " + (data.ActiveSemester().getStartdate()); java.lang.String eDate = "End Date: " + (data.ActiveSemester().getEnddate()); java.lang.String nWeeks = "Number of Weeks: " + (d...
public void onClick(android.content.DialogInterface dialog, int which) { createNewSemester(); java.lang.String sDate = "Start Date: " + (data.ActiveSemester().getStartdate()); java.lang.String eDate = "End Date: " + (data.ActiveSemester().getEnddate()); java.lang.String nWeeks = "Number of Weeks: " + (d...
public static java.util.List<java.lang.Integer> getNDisjunctIntegers(java.util.Random random, int count, int max) { int randomNumber = random.nextInt(max); java.util.List<java.lang.Integer> temporaryList = new java.util.ArrayList<>(); temporaryList.add(randomNumber); for (int counter = 0; counter < coun...
public static java.util.List<java.lang.Integer> getNDisjunctIntegers(java.util.Random random, int count, int max) { int randomNumber = random.nextInt(max); java.util.List<java.lang.Integer> temporaryList = new java.util.ArrayList<>(); temporaryList.add(randomNumber); for (int counter = 0; counter < (cou...
void setFlag(java.util.List<java.lang.String> flag) { int numberi = java.lang.Integer.parseInt(flag.get(0)); int numberj = java.lang.Integer.parseInt(flag.get(1)); java.lang.String testField = field.getUserFieldSimple(numberi, numberj); if (testField.equals("x")) field.setFlag(numberi, numberj);...
void setFlag(java.util.List<java.lang.String> flag) { int numberi = java.lang.Integer.parseInt(flag.get(0)); int numberj = java.lang.Integer.parseInt(flag.get(1)); java.lang.String testField = field.getUserFieldSimple(numberi, numberj); if ("x".equals(testField)) field.setFlag(numberi, numberj);...
protected int checkLevelCompletion(final org.bukkit.entity.Player player, final java.lang.String level) { int challengesCompleted = 0; java.util.List<java.lang.String> levelChallengeList = challengeList.get(level); for (java.lang.String challenge : levelChallengeList) { if (players.checkChallenge(pl...
protected int checkLevelCompletion(final org.bukkit.entity.Player player, final java.lang.String level) { int challengesCompleted = 0; java.util.List<java.lang.String> levelChallengeList = challengeList.get(level); if (levelChallengeList != null) { for (java.lang.String challenge : levelChallengeLis...
protected void onPostExecute(android.graphics.drawable.Drawable result) { super.onPostExecute(result); if (result != null) { this.mImageView.setImageDrawable(result); (doneCounter)++; if ((doneCounter) == (i)) { done = true; } } if ((this.mOnAnimationFrameChan...
protected void onPostExecute(android.graphics.drawable.Drawable result) { super.onPostExecute(result); if (result != null) { this.mImageView.setImageDrawable(result); (doneCounter)++; java.lang.System.out.println(doneCounter); if ((doneCounter) == (i)) { done = true; ...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_photogallery); com.bumptech.glide.request.target.ViewTarget.setTagId(R.id.glide_request); mUrls = getIntent().getStringArrayExtra(jzyu.github.photogallery.PhotoGalleryActi...
protected void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_photogallery); com.bumptech.glide.request.target.ViewTarget.setTagId(R.id.glide_request); mUrls = getIntent().getStringArrayExtra(jzyu.github.photogallery.PhotoGalleryActi...
protected void onTimeout() { switch (state) { case NEW_HEIGHT : enterPropose(); break; case PROPOSE : enterValidate(); break; case VALIDATE : enterPreCommit(); break; case PRE_COMMIT : if ((precommitV...
protected void onTimeout() { switch (state) { case NEW_HEIGHT : enterPropose(); break; case PROPOSE : enterValidate(); break; case VALIDATE : enterPreCommit(); break; case PRE_COMMIT : if ((precommitV...
protected void dismissPopup(boolean itemSelected) { ((android.view.ViewGroup) (mContentView.getParent())).removeView(mContentView); ((android.view.ViewGroup) (modalWindow.getParent())).removeView(modalWindow); if ((!itemSelected) && ((this.mOnDismissCallback) != null)) { mOnDismissCallback.call(); ...
protected void dismissPopup(boolean itemSelected) { if (((mContentView) != null) && ((modalWindow) != null)) { ((android.view.ViewGroup) (mContentView.getParent())).removeView(mContentView); ((android.view.ViewGroup) (modalWindow.getParent())).removeView(modalWindow); if ((!itemSelected) && ...
private java.lang.String getDeleteById(java.lang.String firstTab, java.lang.Class queryClass, java.lang.String tablename) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); java.lang.String secondTab = (TAB_1) + firstTab; sb.append(firstTab).append("<delete id=\"deleteById\" parameterType=\"long\...
private java.lang.String getDeleteById(java.lang.String firstTab, java.lang.String tablename) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); java.lang.String secondTab = (TAB_1) + firstTab; sb.append(firstTab).append("<delete id=\"deleteById\" parameterType=\"long\">").append(BREAK_ROW); ...
public void TestCourseWithPosts() { logic.Course course = new logic.Course(55, "test course", "Description of test course.", 1); course.save(); long courseID = course.courseID; logic.Post p = new logic.Post("test post", "This is a test post for a test course", courseID); course.posts.add(p); cou...
public void TestCourseWithPosts() { logic.Course course = new logic.Course(55, "test course", "Description of test course."); course.save(); long courseID = course.courseID; logic.Post p = new logic.Post("test post", "This is a test post for a test course", courseID); course.posts.add(p); course...
public void run() { com.roboclub.robobuggy.ros.Message m; synchronized(local_inbox) { while (true) { while ((local_inbox.peek()) == null) { try { local_inbox.wait(); } catch (java.lang.InterruptedException ie) { java.lan...
public void run() { com.roboclub.robobuggy.ros.Message m; while (true) { synchronized(local_inbox) { while (true) { try { local_inbox.wait(); break; } catch (java.lang.InterruptedException ie) { java....
public void update() throws org.newdawn.slick.SlickException { tPlayer.update(); this.alienUpdate(); this.checkCollision(); if (tLevel.hasWon()) { Main.tBackgroundmusic.stop(); if (hasNextLevel()) { nextLevel(); }else { tWon = true; highScoreMa...
public void update() throws org.newdawn.slick.SlickException { tPlayer.update(); this.alienUpdate(); this.checkCollision(); if (tLevel.hasWon()) { if (hasNextLevel()) { nextLevel(); }else { tWon = true; highScoreManager.addScores(tScore); j...
public double getExchangeRate(java.time.LocalDate date, java.lang.String currency) { try { java.util.List<com.github.bumblebee.command.currency.dataprovider.nbrb.Currency> exchangeRates = parser.getDailyRates(date); for (com.github.bumblebee.command.currency.dataprovider.nbrb.Currency rate : exchang...
public java.lang.Double getExchangeRate(java.time.LocalDate date, java.lang.String currency) { try { java.util.List<com.github.bumblebee.command.currency.dataprovider.nbrb.Currency> exchangeRates = parser.getDailyRates(date); for (com.github.bumblebee.command.currency.dataprovider.nbrb.Currency rate...
public static com.linkedin.pinot.common.response.ProcessingException getException(com.linkedin.pinot.common.response.ProcessingException processingException, java.lang.Exception exception, int sizeOfStackTraceToTruncate) { com.linkedin.pinot.common.response.ProcessingException retProcessingException = com.linkedin....
public static com.linkedin.pinot.common.response.ProcessingException getException(com.linkedin.pinot.common.response.ProcessingException processingException, java.lang.Exception exception, int sizeOfStackTraceToTruncate) { com.linkedin.pinot.common.response.ProcessingException retProcessingException = processingExc...
public void moveDriveTrain_Speed(double frontLSpeed, double frontRSpeed, double rearLSpeed, double readRSpeed) { talons.get(0).set(frontLSpeed); talons.get(1).set(frontRSpeed); talons.get(2).set(rearLSpeed); talons.get(3).set(readRSpeed); }
public void moveDriveTrain_Speed(double frontLSpeed, double frontRSpeed, double rearLSpeed, double readRSpeed) { talons.get(0).set(frontLSpeed); talons.get(1).set((-frontRSpeed)); talons.get(2).set(rearLSpeed); talons.get(3).set((-readRSpeed)); }
public java.lang.String toString() { java.lang.String str = ""; if ((getPID()) > 0) { str += ("[" + (getPID())) + "] "; } str += name; if ((readAssignmentMode) != (Document.ReadAssignmentMode.readCount)) str += (" [" + (readAssignmentMode.toString())) + "]"; return str; }
public java.lang.String toString() { java.lang.String str = ""; if ((getPID()) > 0) { str += ("[" + (getPID())) + "] "; } str += name; if (((readAssignmentMode) != null) && ((readAssignmentMode) != (Document.ReadAssignmentMode.readCount))) str += (" [" + (readAssignmentMode.toString(...
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { isRoute = false; if (count == 0) { reloadData(); }else { data = location.getSearchData(s); adapter.clear(); adapter.addAll(data); adapter.notifyDataSetChanged(); } }
public void onTextChanged(java.lang.CharSequence s, int start, int before, int count) { isRoute = true; if (count == 0) { reloadData(); }else { data = location.getSearchData(s); adapter.clear(); adapter.addAll(data); adapter.notifyDataSetChanged(); } }
private void closeOps(java.nio.channels.SocketChannel channel, int opsToClose) throws java.nio.channels.ClosedChannelException { com.github.luohaha.context.ContextBean bean = this.context.getChanToContextBean().get(channel); int ops = bean.getOps(); ops ^= opsToClose; bean.setOps(ops); channel.regis...
private void closeOps(java.nio.channels.SocketChannel channel, int opsToClose) throws java.nio.channels.ClosedChannelException { com.github.luohaha.context.ContextBean bean = this.context.getChanToContextBean().get(channel); int ops = bean.getOps(); ops = (~opsToClose) & ops; bean.setOps(ops); chann...
public synchronized void loadData(int[][] original_data) { for (int i = 0; i < (original_data.length); i++) { java.util.ArrayList<java.lang.Integer> values = new java.util.ArrayList<java.lang.Integer>(); for (int j = 0; j < (original_data[i].length); j++) { values.add(original_data[i][j]...
public synchronized void loadData(int[][] original_data) { for (int i = 0; i < (original_data.length); i++) { java.util.List<java.lang.Integer> values = new java.util.ArrayList<java.lang.Integer>(); for (int j = 0; j < (original_data[i].length); j++) { values.add(original_data[i][j]); ...
void GenerateGroupSets() { java.util.ArrayList<optimalcombinations.Unit> poolCopy = pool_; for (optimalcombinations.Group g : allGroups) { poolCopy = pool_; for (optimalcombinations.Unit u : g.getMembers()) { poolCopy.remove(u); } optimalcombinations.DecreasingUnitPoo...
void GenerateGroupSets() { java.util.ArrayList<optimalcombinations.Unit> poolCopy = new java.util.ArrayList<optimalcombinations.Unit>(); for (optimalcombinations.Group g : allGroups) { for (optimalcombinations.Unit u : pool_) { poolCopy.add(u); } for (optimalcombinations.Unit...
public int compareTo(ldbc.snb.datagen.objects.Knows k) { int res = ((int) ((to_.accountId()) - (k.to().accountId()))); if (res != 0) return res; long res2 = (creationDate_) - (k.creationDate()); if (res2 > 0) return 1; if (res2 < 0) return -1; return 0; }
public int compareTo(ldbc.snb.datagen.objects.Knows k) { long res = (to_.accountId()) - (k.to().accountId()); if (res > 0) return 1; if (res < 0) return -1; return 0; }
protected void on_Resume() { com.gigigo.ggglogger.GGGLogImpl.log("on_Resume"); if (mIsDroidDevice) { this.mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); this.mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } try { if ((v...
protected void on_Resume() { if (mIsDroidDevice) { this.mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); this.mActivity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); } try { if ((vuforiaAppSession) != null) vuforiaAppSessi...
public long getDuration() throws android.os.RemoteException { if (mediaPlayer.isPlaying()) return mediaPlayer.getDuration(); if (((playlist) != null) && ((playlist.size()) > 0)) return playlist.indexOf(index); return -1; }
public long getDuration() throws android.os.RemoteException { if (mediaPlayer.isPlaying()) return mediaPlayer.getDuration(); if (((playlist) != null) && ((playlist.size()) > 0)) return playlist.get(index).getDuration(); return -1; }
private void checkSameMethod(com.redhat.ceylon.compiler.typechecker.tree.Tree.Declaration that, com.redhat.ceylon.compiler.typechecker.model.Method dec, com.redhat.ceylon.compiler.typechecker.model.Method abstraction) { if (!(dec.getType().isExactly(abstraction.getType()))) { that.addError(("native methods ...
private void checkSameMethod(com.redhat.ceylon.compiler.typechecker.tree.Tree.Declaration that, com.redhat.ceylon.compiler.typechecker.model.Method dec, com.redhat.ceylon.compiler.typechecker.model.Method abstraction) { if (!(dec.getType().isExactly(abstraction.getType()))) { that.addError(("native methods ...
private void clearUnusedNibble() { if (((nibbles_ptr.size()) % 2) == 1) { nibbles_ptr.set(((lengthOf().getInt()) / 2), ((byte) ((nibbles_ptr.get(((lengthOf().getInt()) / 2))) & 15))); } }
private void clearUnusedNibble() { if (((nibbles_ptr.size()) % 2) == 1) { nibbles_ptr.set(((nibbles_ptr.size()) / 2), ((byte) ((nibbles_ptr.get(((nibbles_ptr.size()) / 2))) & 15))); } }
public boolean isImpactedByMeddraVersioning(com.dbms.entity.cqt.CmqBase190 cmq) { if (cmq != null) { if (cmq.isImpactedByMeddraVersioning()) return true; com.dbms.entity.cqt.CmqBaseTarget cmqTarget = myCmqTargetService.findByCode(cmq.getCmqCode()); if (cmqTarget.isImpact...
public boolean isImpactedByMeddraVersioning(com.dbms.entity.cqt.CmqBase190 cmq) { if (cmq != null) { if (cmq.isImpactedByMeddraVersioning()) return true; com.dbms.entity.cqt.CmqBaseTarget cmqTarget = myCmqTargetService.findByCode(cmq.getCmqCode()); if ((cmqTarget != null...
public void finish() { internalFinish(); if (failed) { java.nio.file.Path path = report.pathToReport(); if (path != null) { try { java.nio.file.Files.deleteIfExists(path); } catch (java.io.IOException ex) { edu.usu.sdl.openstorefront.report...
public void finish() { internalFinish(); if (failed) { java.nio.file.Path path = report.pathToReport(); if (path != null) { try { java.nio.file.Files.deleteIfExists(path); } catch (java.io.IOException ex) { edu.usu.sdl.openstorefront.report...
public java.lang.String pkAsConcatString() { if (pkColumns.isEmpty()) { return (database) + (table); } java.lang.String keys = ""; for (java.lang.String pk : pkColumns) { java.lang.Object pkValue = null; pk = pk.toLowerCase(); if (data.containsKey(pk)) pkValue...
public java.lang.String pkAsConcatString() { if (pkColumns.isEmpty()) { return (database) + (table); } java.lang.String keys = ""; for (java.lang.String pk : pkColumns) { java.lang.Object pkValue = null; if (data.containsKey(pk)) pkValue = data.get(pk); ...
public void keyReleased(int key, char c) { switch (key) { default : break; case org.newdawn.slick.Input.KEY_ENTER : highScoreManager.addScores(tTextField.getText(), tMain.getGame().getScore()); tMain.enterState(6, new org.newdawn.slick.state.transition.FadeInTrans...
public void keyReleased(int key, char c) { switch (key) { default : break; case org.newdawn.slick.Input.KEY_ENTER : highScoreManager.addScores(tTextField.getText(), tMain.getGame().getScore()); tMain.enterState(6); } }
private boolean isValidMoveSquare(int row, int column) { if (((((row >= 0) && (row < 8)) && (column >= 0)) && (column < 8)) && ((currentBoard.getBoardArray()[row][column]) == ' ')) return true; return false; }
public boolean isValidMoveSquare(int row, int column) { if (((((row >= 0) && (row < 8)) && (column >= 0)) && (column < 8)) && ((currentBoard.getBoardArray()[row][column]) == ' ')) return true; return false; }
public void toJsonArrayFromStruct(java.sql.Array data, org.simplity.json.JSONWriter writer) throws java.sql.SQLException, org.simplity.json.JSONException { if (data == null) { writer.value(null); return ; } writer.array(); for (java.lang.Object struct : ((java.lang.Object[]) (data.getArr...
public void toJsonArrayFromStruct(java.lang.Object[] array, org.simplity.json.JSONWriter writer) throws java.sql.SQLException, org.simplity.json.JSONException { if (array == null) { writer.value(null); return ; } writer.array(); for (java.lang.Object struct : array) { this.toJson...
public java.lang.String getLastSaved() { java.io.FileInputStream fis = null; java.lang.String lastSongSaved = "null"; try { fis = openFileInput("lastSong"); java.io.ObjectInputStream ois = new java.io.ObjectInputStream(fis); lastSongSaved = java.lang.String.valueOf(ois.readInt()); ...
public java.lang.String getLastSaved() { java.io.FileInputStream fis = null; java.lang.String lastSongSaved = "0"; try { fis = openFileInput("lastSong"); java.io.ObjectInputStream ois = new java.io.ObjectInputStream(fis); lastSongSaved = java.lang.String.valueOf(ois.readInt()); ...