buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void loginGoogle(android.view.View view) { showActivityIndicator(); if (!(com.isawabird.Utils.isNetworkAvailable(getApplicationContext()))) { android.widget.Toast.makeText(getApplicationContext(), "Network not available", Toast.LENGTH_SHORT).show(); hideActivityIndicator(); return...
public void loginGoogle(android.view.View view) { showActivityIndicator(); if (!(com.isawabird.Utils.isNetworkAvailable(getApplicationContext()))) { android.widget.Toast.makeText(getApplicationContext(), "Network not available", Toast.LENGTH_SHORT).show(); hideActivityIndicator(); } }
public io.grpc.NameResolver newNameResolver(java.net.URI targetUri, io.grpc.Attributes params) { final io.grpc.NameResolver resolver = delegate.newNameResolver(targetUri, params); return new io.grpc.NameResolver() { @java.lang.Override public java.lang.String getServiceAuthority() { ...
public io.grpc.NameResolver newNameResolver(java.net.URI targetUri, io.grpc.Attributes params) { final io.grpc.NameResolver resolver = delegate.newNameResolver(targetUri, params); if (resolver == null) { return null; } return new io.grpc.NameResolver() { @java.lang.Override publi...
private int getUsersRights() { com.google.firebase.auth.FirebaseUser user = com.google.firebase.auth.FirebaseAuth.getInstance().getCurrentUser(); if (user == null) { return 0; } java.lang.String email = user.getEmail(); com.sunshinator.sharedchecklist.objects.UserRights rights = mCheckList.g...
private int getUsersRights() { com.google.firebase.auth.FirebaseUser user = com.google.firebase.auth.FirebaseAuth.getInstance().getCurrentUser(); if ((user == null) || ((mCheckList) == null)) { return 0; } java.lang.String email = user.getEmail(); com.sunshinator.sharedchecklist.objects.User...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((passcodeEntered.length()) == 4) resetEntered(); passcodeEntered += e.getActionCommand(); setEntered(passcodeEntered); if ((temporal) != null) { temporal.repaint(); } java.lang.System.out.println(passcodeEntered...
public void actionPerformed(java.awt.event.ActionEvent e) { if ((passcodeEntered.length()) == 4) resetEntered(); passcodeEntered += e.getActionCommand(); setEntered(passcodeEntered); if ((temporal) != null) { temporal.repaint(); } }
public com.iouseph.model.User userParse(org.json.JSONObject json) { com.iouseph.model.User user = null; if (json != null) { user = new com.iouseph.model.User(); user.setId(json.getString("id")); user.setPassword(json.getString("password")); user.setUsername(json.getString("userna...
public com.iouseph.model.User userParse(org.json.JSONObject json) { com.iouseph.model.User user = null; if (json != null) { user = new com.iouseph.model.User(); user.setId(json.getString("id")); user.setPassword(json.getString("password")); user.setUsername(json.getString("userna...
private void endTable() throws java.io.IOException { be.quodlibet.boxable.Table.LOGGER.info("Ending Table"); if (drawLines) { drawLine("Row Bottom Border ", this.margin, this.yStart, (((this.margin) + (width)) + (be.quodlibet.boxable.Table.xSpacing)), this.yStart); } this.tableContentStream.clos...
private void endTable() throws java.io.IOException { if (drawLines) { drawLine("Row Bottom Border ", this.margin, this.yStart, (((this.margin) + (width)) + (be.quodlibet.boxable.Table.xSpacing)), this.yStart); } this.tableContentStream.close(); }
public ontario.accounts.Account removeAccount(java.lang.String numAccTemp) { if (numAccTemp == null) { return null; }else { boolean temp; ontario.accounts.Account temp2; for (int i = 0; i < (acc.size()); i++) { temp = acc.get(i).getAccountNumber().equals(numAccTemp); ...
public ontario.accounts.Account removeAccount(java.lang.String numAccTemp) { if (numAccTemp == null) { return null; }else { boolean temp; ontario.accounts.Account temp2; for (int i = 0; i < (acc.size()); i++) { temp = acc.get(i).getAccountNumber().equals(numAccTemp); ...
public void createIngredient(java.lang.String name) throws java.sql.SQLException { connection = myDatabase.getDatabaseConn(); java.sql.PreparedStatement statement = connection.prepareStatement("INSERT INTO ingredient (name) VALUES(?)"); statement.setString(1, name); statement.executeUpdate(); connec...
public void createIngredient(java.lang.String name) throws java.sql.SQLException { connection = myDatabase.getDatabaseConn(); java.sql.PreparedStatement statement = connection.prepareStatement("INSERT INTO ingredient (name) VALUES(?)"); statement.setString(1, name); this.name = name; statement.execu...
public void getNoMachines() throws java.rmi.RemoteException { com.elastisys.scale.cloudpool.vsphere.client.impl.ManagedEntity[] vms = null; doReturn(vms).when(com.elastisys.scale.cloudpool.vsphere.client.impl.TestStandardVsphereClient.mockInventoryNavigator).searchManagedEntities(anyString()); com.elastisys...
public void getNoMachines() throws java.rmi.RemoteException { com.elastisys.scale.cloudpool.vsphere.client.impl.ManagedEntity[] vms = null; doReturn(vms).when(com.elastisys.scale.cloudpool.vsphere.client.impl.TestStandardVsphereClient.mockInventoryNavigator).searchManagedEntities(anyString()); com.elastisys...
private org.medipi.medication.Schedule getExistingSchedule(java.time.LocalDate date, org.medipi.medication.Medication medication, java.lang.String patientUuid) { java.util.List<org.medipi.medication.Schedule> existing_schedules = scheduleDAOimpl.findByMedicationAndPatient(medication, patientUuid); for (org.medi...
private org.medipi.medication.Schedule getExistingSchedule(java.time.LocalDate date, org.medipi.medication.Medication medication, java.lang.String patientUuid) { java.util.List<org.medipi.medication.Schedule> existing_schedules = scheduleDAOimpl.findByMedicationAndPatient(medication, patientUuid); for (org.medi...
public void run() { org.json.JSONObject data = ((org.json.JSONObject) (args[0])); java.lang.String message; try { message = data.getString("message"); } catch (org.json.JSONException e) { return ; } repository.addMessage(new com.homeservice.mickeycj.chatwithbot.model.Message(com....
public void run() { org.json.JSONObject data = ((org.json.JSONObject) (args[0])); java.lang.String message; try { message = data.getString("message"); } catch (org.json.JSONException e) { return ; } repository.addMessage(new com.homeservice.mickeycj.chatwithbot.model.Message(com....
public void close() throws java.sql.SQLException { if ((connection) != null) { if (com.intrack.transaction.jdbc.JdbcTransaction.log.isDebugEnabled()) { com.intrack.transaction.jdbc.JdbcTransaction.log.debug((("Closing JDBC Connection [" + (connection)) + "]")); } connectionPool.r...
public void close() throws java.sql.SQLException { if ((connection) != null) { if (com.intrack.transaction.jdbc.JdbcTransaction.log.isDebugEnabled()) { com.intrack.transaction.jdbc.JdbcTransaction.log.debug((("Closing JDBC Connection [" + (connection)) + "]")); } if ((connectionP...
private void removeFromGrid() { markForRegen(); for (net.minecraftforge.common.util.ForgeDirection d : net.minecraftforge.common.util.ForgeDirection.VALID_DIRECTIONS) _network.removeNode(new cofh.lib.util.position.BlockPosition(xCoord, yCoord, zCoord, d).step(d)); _network.removeConduit(this); ...
private void removeFromGrid() { markForRegen(); for (net.minecraftforge.common.util.ForgeDirection d : net.minecraftforge.common.util.ForgeDirection.VALID_DIRECTIONS) _network.removeNode(new cofh.lib.util.position.BlockPosition(xCoord, yCoord, zCoord, d).step(d), true); _network.removeConduit(t...
public java.lang.String filterExercise(org.springframework.ui.Model model, java.lang.String title, java.lang.String label) { if ((title.equals("0")) || (title.equals("1"))) { model.addAttribute("exercises", em.filterExercise(label, label, title, label)); }else { model.addAttribute("exercises", e...
public java.lang.String filterExercise(org.springframework.ui.Model model, java.lang.String title, java.lang.String label) { if ((title.equals("0")) || (title.equals("1"))) { model.addAttribute("exercises", em.filterExercise(label, label, title, label, true)); }else { model.addAttribute("exercis...
public void elevate(com.sshtools.forker.client.ForkerBuilder builder, java.lang.Process process, com.sshtools.forker.common.Command command) { builder.command().add(0, "sudo"); if (org.apache.commons.lang.SystemUtils.IS_OS_MAC_OSX) builder.command().add(1, "-A"); builder.environment().put("SUDO...
public void elevate(com.sshtools.forker.client.ForkerBuilder builder, java.lang.Process process, com.sshtools.forker.common.Command command) { builder.command().add(0, "sudo"); builder.command().add(1, "-A"); builder.environment().put("SUDO_ASKPASS", tempScript.getAbsolutePath()); }
if (!(com.intellij.lang.parser.GeneratedParserUtilBase.recursion_guard_(b, l, "cypher"))) return false; int c = com.intellij.lang.parser.GeneratedParserUtilBase.current_position_(b); while (true) { if (!(com.neueda.jetbrains.plugin.graphdb.language.cypher.parser.CypherParser.StatementIt...
if (!(recursion_guard_(b, l, "cypher"))) return false; int c = current_position_(b); while (true) { if (!(com.neueda.jetbrains.plugin.graphdb.language.cypher.parser.CypherParser.StatementItem(b, (l + 1)))) break; if (!(empty_element_parsed_guard_(b, "cypher"...
public void add(com.ivstuart.tmud.person.carried.Money money) { java.util.ListIterator<com.ivstuart.tmud.person.carried.SomeMoney> moneyItr = list.listIterator(); while (moneyItr.hasNext()) { com.ivstuart.tmud.person.carried.Money aMoney = ((com.ivstuart.tmud.person.carried.Money) (moneyItr.next())); ...
public boolean add(com.ivstuart.tmud.person.carried.Money money) { java.util.ListIterator<com.ivstuart.tmud.person.carried.SomeMoney> moneyItr = list.listIterator(); while (moneyItr.hasNext()) { com.ivstuart.tmud.person.carried.Money aMoney = ((com.ivstuart.tmud.person.carried.Money) (moneyItr.next()));...
public void render(java.awt.Graphics g) { g.drawImage(com.townrpg.core.tile.Tiles.getSprites().crop(0, 0, 0, 0), ((int) (x)), ((int) (y)), null); }
public void render(java.awt.Graphics g) { g.drawImage(com.townrpg.core.tile.Tiles.getSprites().crop(1, 1, 1, 1), ((int) (x)), ((int) (y)), null); }
public static java.util.Set<java.lang.String> getArtifactNamesFromProject(final java.util.List<com.amazonaws.codepipeline.jenkinsplugin.OutputArtifact> outputArtifacts) { java.util.Set<java.lang.String> artifactNames = new java.util.HashSet<>(); for (final com.amazonaws.codepipeline.jenkinsplugin.OutputArtifact...
public static java.util.Set<java.lang.String> getArtifactNamesFromProject(final java.util.List<com.amazonaws.codepipeline.jenkinsplugin.OutputArtifact> outputArtifacts) { java.util.Set<java.lang.String> artifactNames = new java.util.HashSet<>(); for (final com.amazonaws.codepipeline.jenkinsplugin.OutputArtifact...
public void put(java.lang.String column, java.lang.Object value) { if (value == null) { currentState.put(column, new org.hibernate.ogm.datastore.spi.TupleOperation(column, null, PUT_NULL)); } currentState.put(column, new org.hibernate.ogm.datastore.spi.TupleOperation(column, value, PUT)); }
public void put(java.lang.String column, java.lang.Object value) { if (value == null) { currentState.put(column, new org.hibernate.ogm.datastore.spi.TupleOperation(column, null, PUT_NULL)); }else { currentState.put(column, new org.hibernate.ogm.datastore.spi.TupleOperation(column, value, PUT)); ...
private de.be4.classicalb.core.parser.rules.PSubstitution createConditionalFailAssignment(de.be4.classicalb.core.parser.rules.TIdentifierLiteral ruleLiteral) { final java.lang.String ctName = (ruleLiteral.getText()) + (de.be4.classicalb.core.parser.rules.RulesTransformation.RULE_COUNTER_EXAMPLE_VARIABLE_SUFFIX); ...
private de.be4.classicalb.core.parser.rules.PSubstitution createConditionalFailAssignment(de.be4.classicalb.core.parser.rules.TIdentifierLiteral ruleLiteral) { final java.lang.String ctName = (ruleLiteral.getText()) + (de.be4.classicalb.core.parser.rules.RulesTransformation.RULE_COUNTER_EXAMPLE_VARIABLE_SUFFIX); ...
public static float variance(final float[] array, final int offset, final int length) { final float mean = com.tagtraum.jipes.math.Floats.arithmeticMean(array, offset, length); double sum = 0; for (int i = offset; i < (offset + length); i++) { final float diff = (array[i]) - mean; sum += (di...
public static float variance(final float[] array, final int offset, final int length) { final float mean = com.tagtraum.jipes.math.Floats.arithmeticMean(array, offset, length); double sum = 0; for (int i = offset; i < (offset + length); i++) { final float diff = (array[i]) - mean; sum += (di...
public void drawImage2(final java.lang.String url, final java.lang.Double offsetX, final java.lang.Double offsetY, final java.lang.Double imageWidth, final java.lang.Double imageHeight) { runCommand(new com.google.gwt.user.client.Command() { @java.lang.Override public void execute() { ct...
public void drawImage2(final java.lang.String url, final java.lang.Double offsetX, final java.lang.Double offsetY, final java.lang.Double imageWidth, final java.lang.Double imageHeight) { ctx.drawImage(com.google.gwt.dom.client.ImageElement.as(new com.google.gwt.user.client.ui.Image(url).getElement()), offsetX, off...
public com.sedmelluq.discord.lavaplayer.track.AudioTrack getNext() { if ((_playingSong) == null) { _playingSong = _activePlaylist.get(0); return _playingSong; } replacePlayingSong(); _playingSong = _activePlaylist.get(((_activePlaylist.indexOf(_playingSong)) + 1)); return _playingSon...
public com.sedmelluq.discord.lavaplayer.track.AudioTrack getNext() { if ((_playingSong) == null) { replacePlayingSong(); _playingSong = _activePlaylist.get(0); return _playingSong; } replacePlayingSong(); _playingSong = _activePlaylist.get(((_activePlaylist.indexOf(_playingSong))...
private java.util.Set<java.lang.String> getSystemPropertiesFromTask(io.cloudslang.lang.compiler.modeller.model.Task task) { java.util.Set<java.lang.String> result = new java.util.HashSet<>(); java.util.List<io.cloudslang.lang.compiler.modeller.transformers.Transformer> relevantTransformers = new java.util.Array...
private java.util.Set<java.lang.String> getSystemPropertiesFromTask(io.cloudslang.lang.compiler.modeller.model.Task task) { java.util.Set<java.lang.String> result = new java.util.HashSet<>(); java.util.List<io.cloudslang.lang.compiler.modeller.transformers.Transformer> relevantTransformers = new java.util.Array...
public void iHaveAVisualVerificationActivity() { android.support.test.espresso.Espresso.onView(android.support.test.espresso.matcher.ViewMatchers.withId(R.id.password)).perform(android.support.test.espresso.action.ViewActions.closeSoftKeyboard()); android.content.Intent intent = new android.content.Intent(getAc...
public void iHaveAVisualVerificationActivity() { android.content.Intent intent = new android.content.Intent(getActivity(), com.nervousfish.nervousfish.activities.VisualVerificationActivity.class); intent.putExtra(ConstantKeywords.SERVICE_LOCATOR, getCurrentActivity().getIntent().getSerializableExtra(ConstantKey...
public void logOut(java.lang.String username, java.lang.String pwd) { final com.carlocation.comm.messaging.AuthMessage authMsg = new com.carlocation.comm.messaging.AuthMessage(username, pwd); authMsg.mAuthType = AuthMessage.AuthMsgType.AUTH_LOGOUT_MSG; mNativeService.sendMessage(authMsg, new com.carlocation...
public void logOut(java.lang.String username, java.lang.String pwd) { final com.carlocation.comm.messaging.AuthMessage authMsg = new com.carlocation.comm.messaging.AuthMessage(username, pwd, AuthMessage.AuthMsgType.AUTH_LOGOUT_MSG); mNativeService.sendMessage(authMsg, new com.carlocation.comm.ResponseListener()...
private java.util.ArrayList<java.lang.Double> userInputToValues(java.util.ArrayList<android.widget.TextView> input) { java.util.ArrayList<java.lang.Double> values = new java.util.ArrayList<java.lang.Double>(); for (android.widget.TextView t : input) { values.add(java.lang.Double.parseDouble(t.getText()....
private java.util.ArrayList<java.lang.Double> userInputToValues(java.util.ArrayList<android.widget.TextView> input) { java.util.ArrayList<java.lang.Double> values = new java.util.ArrayList<java.lang.Double>(); for (android.widget.TextView t : input) { if ((t.getText()) != null) { values.add(...
protected java.lang.Void doInBackground(java.lang.Integer... params) { int time = params[0]; while (time > 0) { try { java.lang.Thread.sleep(1000); } catch (java.lang.InterruptedException e) { } time--; android.util.Log.d("asdf", (" " + time)); } publ...
protected java.lang.Void doInBackground(java.lang.Integer... params) { int time = (params[0]) + 1; while (time > 0) { try { java.lang.Thread.sleep(1000); } catch (java.lang.InterruptedException e) { } time--; } publishProgress(); return null; }
private void showSavedProfilePicture() { byte[] array = dbHandler.retrieveByteArrayFromDb(); android.graphics.Bitmap bitmap = convertByteArrayToBitmap(array); if (bitmap == null) { profilePic.setImageResource(defaultPic); }else { profilePic.setImageBitmap(bitmap); bitmap.recycle(...
private void showSavedProfilePicture() { byte[] array = dbHandler.retrieveByteArrayFromDb(); if (array == null) { profilePic.setImageResource(defaultPic); }else { android.graphics.Bitmap bitmap = convertByteArrayToBitmap(array); if (bitmap == null) { profilePic.setImageRe...
public void update(int x, int y, double r, java.util.ArrayList<zombienado_v1.server.serverUnits.ServerZombie> zombies, java.util.ArrayList<java.awt.Point> walls) { if ((health) <= 0) { isDead = true; } int xOld = this.x; int yOld = this.y; this.x += x; this.y += y; this.r += r; c...
public void update(int x, int y, double r, java.util.ArrayList<zombienado_v1.server.serverUnits.ServerZombie> zombies, java.util.ArrayList<java.awt.Point> walls) { if ((health) <= 0) { isDead = true; } int xOld = this.x; int yOld = this.y; this.x += x; this.y += y; this.r = r; ch...
public boolean outsideBoard(int boardRows) { for (tetris.Point loc : tetris.Grids.allPointsOf(this)) { if (((piece.cellAt(loc)) != (EMPTY)) && ((asAbs(loc).row) >= boardRows)) { return true; } } }
public boolean outsideBoard(int boardRows) { for (tetris.Point loc : tetris.Grids.allPointsOf(this)) { if (((piece.cellAt(loc)) != (EMPTY)) && ((asAbs(loc).row) >= boardRows)) { return true; } } return false; }
public void onCreate(android.os.Bundle savedInstanceState) { super.onCreate(savedInstanceState); io.fabric.sdk.android.Fabric.with(this, new com.crashlytics.android.Crashlytics()); handler = new android.os.Handler(); runnable = new java.lang.Runnable() { public void run() { android.c...
public void onCreate(android.os.Bundle savedInstanceState) { io.fabric.sdk.android.Fabric.with(this, new com.crashlytics.android.Crashlytics()); super.onCreate(savedInstanceState); handler = new android.os.Handler(); runnable = new java.lang.Runnable() { public void run() { android.c...
protected void addNearbyDevice(android.bluetooth.BluetoothDevice device) { if (!(hasPeer(device.getName()))) { nearbyDevices.add(device); registerRemoteDevice(device); android.util.Log.d(interdroid.swan.crossdevice.swanplus.bluetooth.BTManager.TAG, ("added new device " + (device.getName())))...
protected void addNearbyDevice(android.bluetooth.BluetoothDevice device) { if (!(hasPeer(device.getName()))) { android.util.Log.d(interdroid.swan.crossdevice.swanplus.bluetooth.BTManager.TAG, ("added new device " + (device.getName()))); nearbyDevices.add(device); registerRemoteDevice(device)...
public void stateChanged(javax.swing.event.ChangeEvent e) { int alphaValue = sliderAlpha.getValue(); java.lang.String hexColor = textFieldHexColor.getText(); if ((hexColor.length()) > 6) { hexColor = (convertAlphaValue2HexStr(alphaValue)) + (hexColor.substring(((hexColor.length()) - 6))); }else ...
public void stateChanged(javax.swing.event.ChangeEvent e) { int alphaValue = sliderAlpha.getValue(); java.lang.String hexColor = textFieldHexColor.getText(); if ((hexColor.length()) > 6) { hexColor = (convertAlphaValue2HexStr(alphaValue)) + (hexColor.substring(((hexColor.length()) - 6))); }else ...
public void addNode(controllers.Node node) { int floor = node.getFloor(); allNodes.get((floor - 1)).put(node.getKey(), node); if (!(allNodes.get((floor - 1)).containsKey(node.getKey()))) { java.lang.System.out.println("COLLECTIONOFNODES: addNode(): added node but then couldn't find in hashmap"); ...
public void addNode(controllers.Node node) { int floor = node.getFloor(); allNodes.get((floor - 1)).put(node.getKey(), node); if (!(allNodes.get((floor - 1)).containsKey(node.getKey()))) { java.lang.System.out.println("COLLECTIONOFNODES: addNode(): added node but then couldn't find in hashmap"); ...
protected void showInformationControl(org.eclipse.swt.graphics.Rectangle subjectArea) { super.showInformationControl(subjectArea); org.eclipse.jface.internal.text.InternalAccessor accessor = getInternalAccessor(); org.eclipse.jface.text.IInformationControl iControl = accessor.getCurrentInformationControl();...
protected void showInformationControl(org.eclipse.swt.graphics.Rectangle subjectArea) { super.showInformationControl(subjectArea); org.eclipse.jface.internal.text.InternalAccessor accessor = getInternalAccessor(); org.eclipse.jface.text.IInformationControl iControl = accessor.getCurrentInformationControl();...
private java.util.List<java.lang.Integer> getFPtypeCorrespondence(cz.fidentis.comparison.procrustes.ProcrustesAnalysis pa) { java.util.List<java.lang.Integer> correspondence = new java.util.ArrayList<>(); for (java.lang.Integer ft : config.keySet()) { if (!(config.get(ft).isActive())) contin...
private java.util.List<java.lang.Integer> getFPtypeCorrespondence(cz.fidentis.comparison.procrustes.ProcrustesAnalysis pa) { java.util.List<java.lang.Integer> correspondence = new java.util.ArrayList<>(); for (java.lang.Integer ft : config.keySet()) { if ((!(config.get(ft).isActive())) || (!(pa.isPointA...
public static java.lang.String escape(java.lang.String html, boolean encode) { if (!encode) { html = html.replaceAll("&(?!#?\\w+;)", "&amp;"); }else { html = html.replace("&", "&amp"); } return html.replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&#39;"); ...
public static java.lang.String escape(java.lang.String html, boolean encode) { if (!encode) { html = html.replaceAll("&(?!#?\\w+;)", "&amp;"); }else { html = html.replace("&", "&amp;"); } return html.replace("<", "&lt;").replace(">", "&gt;").replace("\"", "&quot;").replace("'", "&#39;");...
private void _undoRemoveInconsistentValues(java.util.Map<solver.csp.Variable, java.util.List<java.lang.Integer>> map) { for (java.util.Map.Entry<solver.csp.Variable, java.util.List<java.lang.Integer>> neighbor : map.entrySet()) { for (java.lang.Integer value : neighbor.getValue()) { neighbor.get...
private void _undoRemoveInconsistentValues(java.util.Map<solver.csp.Variable, java.util.List<java.lang.Integer>> map) { if (map == null) return ; for (java.util.Map.Entry<solver.csp.Variable, java.util.List<java.lang.Integer>> neighbor : map.entrySet()) { for (java.lang.Integer value : neig...
public static void main(java.lang.String[] args) { java.lang.String s; if ((args.length) > 0) { s = args[0]; }else { s = "etc/server.properties"; } org.alicebot.server.net.AliceServer aliceserver = new org.alicebot.server.net.AliceServer(s); java.lang.Runtime.getRuntime().addShut...
public static void main(java.lang.String[] args) { java.lang.String s; if ((args.length) > 0) { s = args[0]; }else { s = "etc/server.properties"; } org.alicebot.server.net.AliceServer aliceserver = new org.alicebot.server.net.AliceServer(s); java.lang.Runtime.getRuntime().addShut...
public void disconnect(boolean expected) { sendToClient(pixyel_backend.xml.XML.createNewXML("disconnected").toString()); lookingForInput = false; listener.shutdown(); clientAliveTimer.cancel(); pixyel_backend.connection.socket.SocketServer.disconnect(this, socket.hashCode()); try { socke...
public void disconnect(boolean expected) { lookingForInput = false; listener.shutdown(); clientAliveTimer.cancel(); pixyel_backend.connection.socket.SocketServer.disconnect(this, socket.hashCode()); try { socket.shutdownInput(); socket.shutdownOutput(); socket.close(); } ...
public void testGenerateName_withThreeToTwentyLength() { for (int i = 3; i < 20; i++) { final java.lang.String result = grammarNameGenerator.generateName(0); org.junit.Assert.assertTrue(((result.length()) >= 1)); } }
public void testGenerateName_withThreeToTwentyLength() { for (int i = 3; i < 20; i++) { final java.lang.String result = grammarNameGenerator.generateName(i); org.junit.Assert.assertTrue(((result.length()) <= i)); org.junit.Assert.assertTrue(((result.length()) > 0)); } }
public void removeStatistic(com.frdfsnlght.inquisitor.Statistic statistic) { synchronized(statistics) { if (!(statistics.containsKey(statistic.getName()))) { return ; } statistic.setGroup(null); statistics.remove(statistic.getName()); } for (com.frdfsnlght.inquisi...
public void removeStatistic(com.frdfsnlght.inquisitor.Statistic statistic) { synchronized(statistics) { if (!(statistics.containsKey(statistic.getName()))) { return ; } statistics.remove(statistic.getName()); } for (com.frdfsnlght.inquisitor.Statistics s : stats.values())...
public void mouseClicked(java.awt.event.MouseEvent e) { hu.gehorvath.lampsv.core.Preset selectedPres = jlUsedPresets.getSelectedValue(); int currentIndex = usedListModel.indexOf(selectedPres); if (currentIndex < (usedListModel.size())) { usedListModel.removeElement(selectedPres); usedListMod...
public void mouseClicked(java.awt.event.MouseEvent e) { hu.gehorvath.lampsv.core.Preset selectedPres = jlUsedPresets.getSelectedValue(); int currentIndex = usedListModel.indexOf(selectedPres); if (currentIndex < ((usedListModel.size()) - 1)) { usedListModel.removeElement(selectedPres); usedL...
public void onClick(android.view.View view) { if ((!(description.equals(""))) && ((selection) == 1)) { uploadImage(); }else android.widget.Toast.makeText(getApplicationContext(), "Please fill the form", Toast.LENGTH_SHORT).show(); }
public void onClick(android.view.View view) { if (((selection) == 1) || (!(description.equals("")))) { uploadImage(); }else android.widget.Toast.makeText(getApplicationContext(), "Please fill the form", Toast.LENGTH_SHORT).show(); }
int data1 = getData(this.data1, game); int data2 = getData(this.data2, game); switch (this.operator) { case LESS_THAN : return data1 < data2; case GREATER_THAN : return data1 > data2; case LESS_THAN_OR_EQUAL_TO : return data1 <= data2; case...
int data1 = getData(this.data1, game, id); int data2 = getData(this.data2, game, id); switch (this.operator) { case LESS_THAN : return data1 < data2; case GREATER_THAN : return data1 > data2; case LESS_THAN_OR_EQUAL_TO : return data1 <= data2; ...
public void execute() throws java.lang.Exception { java.lang.System.out.print(""); java.lang.System.out.flush(); java.lang.System.out.print(prompt); try (java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(java.lang.System.in))) { while (!(isReady(reader.rea...
public void execute() throws java.lang.Exception { java.lang.System.out.print(""); java.lang.System.out.flush(); java.lang.System.out.print(prompt); java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.InputStreamReader(java.lang.System.in)); while (!(isReady(reader.readLine()))) ...
public java.lang.String mapPath(java.lang.String path) { if ((mapList) == null) { return path; } for (int i = 0; i < (mapList.length); i++) { if ((mapList[i][0].equals(path)) || (new java.lang.String(((mapList[i][0]) + "/")).equals(path))) { return mapList[i][1]; } } ...
public java.lang.String mapPath(java.lang.String path) { if ((mapList) == null) { return path; } for (int i = 0; i < (mapList.length); i++) { if ((mapList[i][0].equals(path)) || (((mapList[i][0]) + "/").equals(path))) { return mapList[i][1]; } } return path; }
public void testAsUTCTimeInTimeZone() { slash.common.type.CompactCalendar calendar = slash.common.type.CompactCalendar.fromMillis(1000000); slash.common.type.CompactCalendar inTimeZone = calendar.asUTCTimeInTimeZone(java.util.TimeZone.getTimeZone("GMT+2")); assertEquals(calendar.getCalendar().getTimeInMilli...
public void testAsUTCTimeInTimeZone() { slash.common.type.CompactCalendar calendar = slash.common.type.CompactCalendar.fromMillis(1000000); slash.common.type.CompactCalendar inTimeZone = calendar.asUTCTimeInTimeZone(java.util.TimeZone.getTimeZone("GMT+2")); assertEquals(calendar.getCalendar().getTimeInMilli...
public Item[] toArray() { @java.lang.SuppressWarnings(value = "unchecked") Item[] items = ((Item[]) (new java.lang.Object[size])); Deque<Item>.Node n = first; for (int i = 0; i < (items.length); i++) { items[i] = n.item; n = n.next; } return items; }
private Item[] toArray() { @java.lang.SuppressWarnings(value = "unchecked") Item[] items = ((Item[]) (new java.lang.Object[size])); Deque<Item>.Node n = first; for (int i = 0; i < (items.length); i++) { items[i] = n.item; n = n.next; } return items; }
public void writeData(java.lang.String data) { android.content.SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); java.lang.String contents = sharedPref.getString(day, ""); android.content.SharedPreferences.Editor editor = sharedPref.edit(); editor.putString(day, ((conten...
public void writeData(java.lang.String data) { android.content.SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); java.lang.String contents = sharedPref.getString(day, ""); if (!(contents.equals(""))) { contents += "\n"; } android.content.SharedPreferences.Edi...
public java.util.List<com.pilotproject.entity.User> findUsers(java.lang.String username, java.lang.String email, java.util.Date fromDate, java.util.Date toDate) { if (com.pilotproject.utils.PilotUtils.isEmpty(fromDate)) { fromDate = new java.util.Date(); } if (com.pilotproject.utils.PilotUtils.isEmp...
public java.util.List<com.pilotproject.entity.User> findUsers(java.lang.String username, java.lang.String email, java.util.Date fromDate, java.util.Date toDate) { if (com.pilotproject.utils.PilotUtils.isEmpty(fromDate)) { fromDate = null; } if (com.pilotproject.utils.PilotUtils.isEmpty(toDate)) { ...
public void setTable(javafx.scene.control.TableView<com.eiko.back.table.CellValue> content) { this.table = content; this.setContent(content); int l = ((table.getItems().size()) + 1) * 40; this.setMinHeight(l); this.setMaxHeight(l); this.setPrefHeight(l); }
public void setTable(javafx.scene.control.TableView<com.eiko.back.table.CellValue> content) { this.table = content; this.setContent(content); if ((table) == null) return ; int l = ((table.getItems().size()) + 1) * 40; this.setMinHeight(l); this.setMaxHeight(l); this.setPrefHeigh...
public org.springframework.cache.guava.GuavaCacheManager getCacheManager() { org.springframework.cache.guava.GuavaCacheManager gcm = new org.springframework.cache.guava.GuavaCacheManager(); gcm.setAllowNullValues(false); com.google.common.cache.CacheBuilder<java.lang.Object, java.lang.Object> builder = com....
public org.springframework.cache.guava.GuavaCacheManager getCacheManager() { final org.springframework.cache.guava.GuavaCacheManager gcm = new org.springframework.cache.guava.GuavaCacheManager(); final com.google.common.cache.CacheBuilder<java.lang.Object, java.lang.Object> builder = com.google.common.cache.Cac...
public void onRequestPermissionsResult(int requestCode, @android.support.annotation.NonNull java.lang.String[] permissions, @android.support.annotation.NonNull int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); if (requestCode == (me.esca.fragments.CookFragment.REQUE...
public void onRequestPermissionsResult(int requestCode, @android.support.annotation.NonNull java.lang.String[] permissions, @android.support.annotation.NonNull int[] grantResults) { switch (requestCode) { case me.esca.fragments.CookFragment.REQUEST_EXTERNAL_STORAGE : { if (((gran...
public void reset() { android.util.Log.d(app.park.com.vr.VrVideoActivity.TAG, "[TEST] ========== RESET =============="); mVrVideoView.seekTo(0); app.park.com.vr.VrVideoActivity.currTime = 0; android.util.Log.d(app.park.com.vr.VrVideoActivity.TAG, ("[TEST] current position = " + (mVrVideoView.getCurrentP...
public void reset() { app.park.com.vr.VrVideoActivity.isGameOver = false; android.util.Log.d(app.park.com.vr.VrVideoActivity.TAG, "[TEST] ========== RESET =============="); mVrVideoView.seekTo(0); app.park.com.vr.VrVideoActivity.currTime = 0; android.util.Log.d(app.park.com.vr.VrVideoActivity.TAG, (...
public void run() { while (proc.isAlive()) { } java.lang.System.out.println("end"); java.util.List<main.Tuple<?, ?>> recorded = sessionController.end(); startFrame.setState(java.awt.Frame.NORMAL); isRecording = false; gui.StartScreen.RCDRFileSelect fileSelect = new gui.StartScreen.RCDRFileS...
public void run() { while (proc.isAlive()) { } java.lang.System.out.println("end"); java.util.List<main.Tuple<?, ?>> recorded = sessionController.end(); startFrame.setState(java.awt.Frame.NORMAL); isRecording = false; gui.StartScreen.RCDRFileSelect fileSelect = new gui.StartScreen.RCDRFileS...
public void addSettingsStateListener(@org.jetbrains.annotations.NotNull com.intellij.platform.WebProjectGenerator.SettingsStateListener stateListener) { final javax.swing.text.JTextComponent editorComponent = ((javax.swing.text.JTextComponent) (sdkPathComboWithBrowse.getComboBox().getEditor().getEditorComponent()))...
public void addSettingsStateListener(@org.jetbrains.annotations.NotNull com.intellij.platform.WebProjectGenerator.SettingsStateListener stateListener) { final javax.swing.text.JTextComponent editorComponent = ((javax.swing.text.JTextComponent) (sdkPathComboWithBrowse.getComboBox().getEditor().getEditorComponent()))...
private void locate() { mLocationOption = new com.amap.api.location.AMapLocationClientOption(); mLocationOption.setLocationMode(AMapLocationMode.Hight_Accuracy); mLocationOption.setNeedAddress(true); mLocationOption.setOnceLocation(false); mLocationOption.setWifiActiveScan(true); mLocationOption...
private void locate() { mLocationOption = new com.amap.api.location.AMapLocationClientOption(); mLocationOption.setLocationMode(AMapLocationMode.Hight_Accuracy); mLocationOption.setNeedAddress(true); mLocationOption.setOnceLocation(true); mLocationOption.setWifiActiveScan(true); mLocationOption....
public void attemptToMatchSubmissionWithStudent(edu.pdx.cs410J.grader.poa.POASubmissionSelected selected) { for (int i = 0; i < (students.size()); i++) { edu.pdx.cs410J.grader.Student student = students.get(i); if (submitterMatchesStudent(selected.getSubmission(), student)) { this.view.s...
public void attemptToMatchSubmissionWithStudent(edu.pdx.cs410J.grader.poa.POASubmissionSelected selected) { for (int i = 0; i < (students.size()); i++) { edu.pdx.cs410J.grader.Student student = students.get(i); if (submitterMatchesStudent(selected.getSubmission(), student)) { this.view.s...
public void removeRange(int fromPosition, int itemCount) { indi.yume.tools.adapter_renderer.recycler.RendererAdapter.notifyItemRangeRemoved(fromPosition, itemCount); for (int i = 0; i < itemCount; i++) if (fromPosition < (contentList.size())) contentList.remove(fromPosition); ...
public void removeRange(int fromPosition, int itemCount) { for (int i = 0; i < itemCount; i++) if (fromPosition < (contentList.size())) contentList.remove(fromPosition); indi.yume.tools.adapter_renderer.recycler.RendererAdapter.notifyItemRangeRemoved(fromPosition, itemCount); ...
private void invokeFCMService() { android.util.Log.d(com.lognsys.kalrav.LoginActivity.TAG, "Rest invokeFCMService "); android.util.Log.d(com.lognsys.kalrav.LoginActivity.TAG, ("Rest invokeFCMService KalravApplication.getInstance().getPrefs().getDevice_token() " + (com.lognsys.kalrav.util.KalravApplication.getIn...
private void invokeFCMService() { android.util.Log.d(com.lognsys.kalrav.LoginActivity.TAG, "Rest invokeFCMService "); if ((com.lognsys.kalrav.util.KalravApplication.getInstance().getPrefs().getDevice_token()) == null) { android.content.Intent i = new android.content.Intent(this, com.lognsys.kalrav.FCM.F...
public void addPiece(org.casestudy.target.chess.pieces.Piece piece) { java.util.List<org.casestudy.target.chess.pieces.Piece> typePieces = this.pieces.get(piece.getPieceType()); if (typePieces == null) { typePieces = new java.util.ArrayList<org.casestudy.target.chess.pieces.Piece>(); } typePiece...
public void addPiece(org.casestudy.target.chess.pieces.Piece piece) { java.util.List<org.casestudy.target.chess.pieces.Piece> typePieces = this.pieces.get(piece.getPieceType()); if (typePieces == null) { typePieces = new java.util.ArrayList<org.casestudy.target.chess.pieces.Piece>(); this.pieces...
public org.giiwa.core.bean.Helper.V copy(java.util.Map<java.lang.String, java.lang.Object> jo, java.lang.String... names) { if ((jo == null) || (names == null)) return this; for (java.lang.String s : names) { if (jo.containsKey(s)) { java.lang.Object o = jo.get(s); i...
public org.giiwa.core.bean.Helper.V copy(java.util.Map<java.lang.String, java.lang.Object> jo, java.lang.String... names) { if ((jo == null) || (names == null)) return this; for (java.lang.String s : names) { if (jo.containsKey(s)) { java.lang.Object o = jo.get(s); i...
public void onBackStackChanged() { if (!(approvalWarned)) { android.widget.RelativeLayout container = ((android.widget.RelativeLayout) (findViewById(R.id.approvalLay))); android.widget.RelativeLayout.LayoutParams parameters = new android.widget.RelativeLayout.LayoutParams(RelativeLayout.LayoutParams...
public void onBackStackChanged() { if (!(approvalWarned)) { android.widget.RelativeLayout container = ((android.widget.RelativeLayout) (findViewById(R.id.approvalLay))); android.widget.RelativeLayout.LayoutParams parameters = new android.widget.RelativeLayout.LayoutParams(RelativeLayout.LayoutParams...
private void takeFromInternalBuffer(long startTS, backtype.storm.tuple.Tuple input) { operator.merger.MergerEntry nextReady = sharedChannels.getNextReadyObj(("" + (thisTask)), channelID); while (nextReady != null) { process(startTS, new backtype.storm.tuple.TupleImpl(context, ((java.util.List<java.lang....
private void takeFromInternalBuffer(backtype.storm.tuple.Tuple input) { operator.merger.MergerEntry nextReady = sharedChannels.getNextReadyObj(("" + (thisTask)), channelID); while (nextReady != null) { process(new backtype.storm.tuple.TupleImpl(context, ((java.util.List<java.lang.Object>) (nextReady.get...
public void onChildChanged(com.google.firebase.database.DataSnapshot dataSnapshot, java.lang.String s) { java.lang.System.out.println(("key of order firebase ----> " + key)); java.lang.String key1 = dataSnapshot.getRef().getKey(); java.lang.String valid = dataSnapshot.getRef().child("validation").toString()...
public void onChildChanged(com.google.firebase.database.DataSnapshot dataSnapshot, java.lang.String s) { java.lang.System.out.println(("key of order firebase ----> " + key)); java.lang.String key1 = dataSnapshot.getRef().getKey(); java.lang.System.out.println(("key of order changed in database " + key1)); ...
public void run() { try { while (true) { ms.sem.acquire(1); ms.mutex.acquire(); java.lang.String a = ms.list.removeFirst().toString(); gf.GenFile(a); java.lang.System.out.println("Consumer read"); ms.mutex.release(); } } ca...
public void run() { try { while (true) { ms.sem.acquire(1); ms.mutex.acquire(); java.lang.System.out.println("Consumer read"); ms.mutex.release(); } } catch (java.lang.Exception x) { x.printStackTrace(); } }
public void run() { try (java.io.OutputStream obuf = java.nio.channels.Channels.newOutputStream(pipe.sink())) { t.transform(source, new javax.xml.transform.stream.StreamResult(java.lang.System.out)); obuf.flush(); } catch (java.lang.Exception ex) { ex.printStackTrace(); } }
public void run() { try (java.io.OutputStream obuf = java.nio.channels.Channels.newOutputStream(pipe.sink())) { t.transform(source, new javax.xml.transform.stream.StreamResult(obuf)); obuf.flush(); } catch (java.lang.Exception ex) { ex.printStackTrace(); } }
public java.util.List<java.lang.String> getText() { java.util.List<java.lang.String> list; if (pl.betoncraft.betonquest.config.Config.getString("config.journal.reversed_order").equalsIgnoreCase("true")) { list = com.google.common.collect.Lists.reverse(texts); }else { list = texts; } ...
public java.util.List<java.lang.String> getText() { java.util.List<java.lang.String> list; if (pl.betoncraft.betonquest.config.Config.getString("config.journal.reversed_order").equalsIgnoreCase("true")) { list = com.google.common.collect.Lists.reverse(texts); }else { list = new java.util.Arr...
@java.lang.Override void initNeo(org.gbif.checklistbank.nub.source.NeoUsageWriter writer) throws java.lang.Exception { try (java.sql.Connection c = clb.connect()) { final org.postgresql.copy.CopyManager cm = new org.postgresql.copy.CopyManager(((org.postgresql.core.BaseConnection) (c))); cm.copyOut(...
@java.lang.Override void initNeo(org.gbif.checklistbank.nub.source.NeoUsageWriter writer) throws java.lang.Exception { try (org.postgresql.core.BaseConnection c = clb.connect()) { final org.postgresql.copy.CopyManager cm = new org.postgresql.copy.CopyManager(c); cm.copyOut((((("COPY (" + (("SELECT u...
private void addChip(java.lang.String communication) { if ((mNachoTextView) != null) { mNachoTextView.append(communication); int start = mNachoTextView.getText().toString().indexOf(communication); int last = mNachoTextView.getText().length(); mNachoTextView.chipify(start, last); ...
private void addChip(java.lang.String communication) { if ((mNachoTextView) != null) { mNachoTextView.append(communication); int start = (mNachoTextView.getText().length()) - (communication.length()); int last = mNachoTextView.getText().length(); mNachoTextView.chipify(start, last); ...
public void setUserName(java.lang.String userName) { if (userName == null) throw new java.lang.IllegalArgumentException("UserName must not be null."); if ((userName.length()) > 50) throw new java.lang.IllegalArgumentException("UserName is too long."); if ((userName.length()) < 3) ...
public void setUserName(java.lang.String userName) { if (userName == null) throw new java.lang.IllegalArgumentException("UserName must not be null."); if ((userName.length()) > 50) throw new java.lang.IllegalArgumentException("UserName is too long."); if ((userName.length()) < 3) ...
public boolean equals(final java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; org.sqlproc.sample.simple.model.BillingDetails other = ((org.sqlproc.sample.simple.model.BillingDe...
public boolean equals(final java.lang.Object obj) { if ((this) == obj) return true; if (obj == null) return false; if ((getClass()) != (obj.getClass())) return false; org.sqlproc.sample.simple.model.BillingDetails other = ((org.sqlproc.sample.simple.model.BillingDe...
public void setSelectedIndex(final int index) { programmaticTextChange = true; if (index > (-1)) { getUiReference().select(index); }else { getUiReference().deselect(getUiReference().getSelectionIndex()); } programmaticTextChange = false; if (!(getUiReference().isFocusControl())) ...
public void setSelectedIndex(final int index) { programmaticTextChange = true; if (index > (-1)) { getUiReference().select(index); }else { getUiReference().deselect(getUiReference().getSelectionIndex()); } programmaticTextChange = false; if (!(getUiReference().isFocusControl())) ...
public void generateDispText(java.lang.CharSequence c) { if (((currValue) == null) || ((currValue) == "0")) { currValue = ((java.lang.CharSequence) (c)); }else if (c == "C") { currValue = "0"; }else { currValue = (currValue.toString()) + c; } }
public void generateDispText(java.lang.CharSequence c) { if ((((currValue) == null) || ((currValue) == "0")) && (c != "C")) { currValue = ((java.lang.CharSequence) (c)); }else if (c == "C") { currValue = "0"; }else { currValue = (currValue.toString()) + c; ...
public void run() { int counter = 0; while (counter < (this.num)) { java.lang.System.out.println(((("Get: " + (java.lang.Thread.currentThread().getName())) + " From ") + (bucket)), getToken()); counter++; } }
public void run() { int counter = 0; while (counter < (this.num)) { java.lang.System.out.println(((("Get: " + (java.lang.Thread.currentThread().getName())) + " From ") + (bucket.getToken()))); counter++; } }
public modelo.Jogada movimentaMonstro(modelo.Monstro aMonstro, modelo.Posicao posicao) { modelo.Posicao antiga = this.getPosicao(aMonstro.getPosicao().getLinha(), aMonstro.getPosicao().getColuna()); antiga.setOcupante(null); aMonstro.getPosicao().setOcupante(null); posicao.setOcupante(aMonstro); aMo...
public modelo.Jogada movimentaMonstro(modelo.Monstro aMonstro, modelo.Posicao posicao) { modelo.Posicao antiga = this.getPosicao(aMonstro.getPosicao().getLinha(), aMonstro.getPosicao().getColuna()); antiga.setOcupante(null); posicao.setOcupante(aMonstro); aMonstro.setPosicao(posicao); return new mod...
public void start() { new java.lang.Thread(() -> { while (true) { final java.net.Socket socket; try { socket = accept(); } catch (java.io.IOException ex) { ex.printStackTrace(); return ; } new java.la...
public void start() { new java.lang.Thread(() -> { while (true) { final java.net.Socket socket; try { socket = accept(); new java.lang.Thread(() -> workWithSocket(socket)).start(); } catch (java.io.IOException ex) { ex.print...
private void makePay(int vendorID, java.lang.String vendorSecretKey, java.lang.String accountID, java.lang.String amount) { uz.agr.agrsdk.AGRBilling agr = new uz.agr.agrsdk.AGRBilling(); if (amount.equals("")) { agr.preparePayment(this, vendorID, vendorSecretKey, accountID); }else { agr.prep...
private void makePay(int vendorID, java.lang.String vendorSecretKey, java.lang.String accountID, java.lang.String amount) { uz.agr.agrsdk.AGRBilling agr = new uz.agr.agrsdk.AGRBilling(); if (amount.equals("")) { agr.preparePayment(this, vendorID, vendorSecretKey, accountID); }else { agr.prep...
public void delLabel(int label) { for (java.util.Map<java.util.List<org.projectfloodlight.openflow.protocol.instruction.OFInstruction>, java.lang.Integer> m : switchLabelMap.values()) { for (java.util.List<org.projectfloodlight.openflow.protocol.instruction.OFInstruction> list : m.keySet()) { ja...
public void delLabel(int label) { for (java.util.Map<java.util.List<org.projectfloodlight.openflow.protocol.instruction.OFInstruction>, java.lang.Integer> m : switchLabelMap.values()) { synchronized(m) { for (java.util.List<org.projectfloodlight.openflow.protocol.instruction.OFInstruction> list ...
public void return_coins_inserted() { org.junit.Assert.assertEquals("INSERT COINS", vendingMachine.check_display()); vendingMachine.insert_coin("Dime"); org.junit.Assert.assertEquals("$0.10", vendingMachine.check_display()); vendingMachine.return_coins(); org.junit.Assert.assertEquals("$0.00", vendi...
public void return_coins_inserted() { org.junit.Assert.assertEquals("INSERT COINS", vendingMachine.check_display()); vendingMachine.insert_coin("Dime"); org.junit.Assert.assertEquals("$0.10", vendingMachine.check_display()); vendingMachine.return_coins(); org.junit.Assert.assertEquals("INSERT COINS"...
public java.lang.String getFreemakerTemplate(java.util.HashMap<java.lang.String, java.lang.Object> model) { java.lang.StringBuffer buf = new java.lang.StringBuffer(); try { buf.append(org.springframework.ui.freemarker.FreeMarkerTemplateUtils.processTemplateIntoString(freemarkerConfiguration.getTemplate(...
public java.lang.String getFreemakerTemplate(java.util.HashMap<java.lang.String, java.lang.Object> model) { java.lang.StringBuffer buf = new java.lang.StringBuffer(); try { buf.append(org.springframework.ui.freemarker.FreeMarkerTemplateUtils.processTemplateIntoString(freemarkerConfiguration.getTemplate(...
protected void move(int x) { moving = true; moveLocation = x; if (x < (this.getx())) { facingRight = false; left = true; right = false; }else if (x > (this.getx())) { facingRight = true; left = false; right = true; } }
protected void move(int x) { moving = true; moveLocation = x; if ((moveLocation) < (this.getx())) { facingRight = false; left = true; right = false; }else if ((moveLocation) > (this.getx())) { facingRight = true; left = false; right = t...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent resultIntent) { super.onActivityResult(requestCode, resultCode, resultIntent); switch (requestCode) { case diy.uigeneric.sample.SampleListActivity.REQUEST_ADD : case diy.uigeneric.sample.SampleListActivity.REQUE...
public void onActivityResult(int requestCode, int resultCode, android.content.Intent resultIntent) { super.onActivityResult(requestCode, resultCode, resultIntent); switch (requestCode) { case diy.uigeneric.sample.SampleListActivity.REQUEST_ADD : if (resultCode == (android.app.Activity.RESULT...
public boolean equals(java.lang.Object o) { if (o instanceof FoodItem) { FoodItem i = ((FoodItem) (o)); return (this.itemName.equals(i.itemName)) && (this.tagCode.equals(i.tagCode)); }else if (o instanceof java.lang.String) { return this.tagCode.equals(((java.lang.String) (o)...
public boolean equals(java.lang.Object o) { if (o instanceof FoodItem) { FoodItem i = ((FoodItem) (o)); return (this.itemName.equals(i.itemName)) && (this.tagCode.equals(i.tagCode)); }else if (o instanceof char[]) { return this.tagCode.equals(((char[]) (o))); } ...
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.util.Log.i("debug", "I'm here"); android.content.Intent intent = new android.content.Intent(this, com.example.leo.projet.Activities.MovieActivity.class); intent.putExtra("movie", ((java.io....
public void onItemClick(android.widget.AdapterView<?> parent, android.view.View view, int position, long id) { android.content.Intent intent = new android.content.Intent(this, com.example.leo.projet.Activities.MovieActivity.class); intent.putExtra("movie", ((java.io.Serializable) (aa.getItem(position)))); s...
public void ignoreBlank() { if (!(Settings.ignoreBlanks)) return ; javafx.scene.control.Label current = ((javafx.scene.control.Label) (application.VirtualCursor.getCurrentElement(application.VirtualCursor.gridPane))); while ((current != null) && ((current.getText().charAt(0)) == ' ')) { ...
public void ignoreBlank() { if (!(Settings.ignoreBlanks)) return ; while (((application.VirtualCursor.getCurrentElement(application.VirtualCursor.gridPane)) != null) && ((((javafx.scene.control.Label) (application.VirtualCursor.getCurrentElement(application.VirtualCursor.gridPane))).getText().charA...
public static int[] barcodeToIntArray(java.lang.String barcode) { java.lang.String[] barcodeArray = barcode.trim().split("(?!^)"); int[] barcodeToInt = new int[barcodeArray.length]; for (int i = 0; i < (barcodeArray.length); i++) { barcodeToInt[i] = java.lang.Integer.parseInt(barcodeArray[i]); }...
public static int[] barcodeToIntArray(java.lang.String barcode) { if (barcode == null) { return new int[0]; } java.lang.String[] barcodeArray = barcode.trim().split("(?!^)"); int[] barcodeToInt = new int[barcodeArray.length]; for (int i = 0; i < (barcodeArray.length); i++) { barcodeT...
private void initPuzzleOrGetFromExtras() { android.os.Bundle bundle = getIntent().getExtras(); if ((bundle.get("Puzzle")) != null) { puzzle = new com.sudoku.puzzlesolver.Puzzle(((java.lang.Integer[][]) (bundle.get("Puzzle")))); }else { puzzle = new com.sudoku.puzzlesolver.Puzzle(); } }
private void initPuzzleOrGetFromExtras() { android.os.Bundle bundle = getIntent().getExtras(); if ((bundle != null) && ((bundle.get("Puzzle")) != null)) { puzzle = new com.sudoku.puzzlesolver.Puzzle(((java.lang.Integer[][]) (bundle.get("Puzzle")))); }else { puzzle = new com.sudoku.puzzlesolv...
public void getFileSystem() { java.nio.file.FileSystem fileSystem = s3fsProvider.newFileSystem(S3EndpointConstant.S3_GLOBAL_URI_TEST, com.google.common.collect.ImmutableMap.<java.lang.String, java.lang.Object>of()); org.junit.Assert.assertNotNull(fileSystem); fileSystem = s3fsProvider.getFileSystem(S3Endpoi...
public void getFileSystem() { java.nio.file.FileSystem fileSystem = s3fsProvider.newFileSystem(S3EndpointConstant.S3_GLOBAL_URI_TEST, com.google.common.collect.ImmutableMap.<java.lang.String, java.lang.Object>of()); org.junit.Assert.assertNotNull(fileSystem); fileSystem = s3fsProvider.getFileSystem(S3Endpoi...
public engine.network.packet.Packet getContentPacket() { engine.network.packet.Packet out = engine.network.packet.Packet.getNewContentPacket(Packet.MAX_PACKET_SIZE); out.iterator.putNextShortUnsigned(buff.getID()); out.iterator.putNextInt(getDurationLeft()); int mapSize = gndData.getMapSize(); engin...
public engine.network.packet.Packet getContentPacket() { engine.network.packet.Packet out = engine.network.packet.Packet.getNewContentPacket(Packet.MAX_PACKET_SIZE); out.iterator.putNextShortUnsigned(buff.getID()); out.iterator.putNextInt(getDurationLeft()); int mapSize = gndData.getMapSize(); if (m...
public void done(ca.winnipegtrails.winnipegtrails.UserEggLinks object, com.parse.ParseException e) { if (e != null) { if (WinnipegTrailsApplication.APPDEBUG) { android.util.Log.d(WinnipegTrailsApplication.APPTAG, "An error occurred while querying for user eggs", e); } } android.c...
public void done(ca.winnipegtrails.winnipegtrails.UserEggLinks object, com.parse.ParseException e) { if (e != null) { if (WinnipegTrailsApplication.APPDEBUG) { android.util.Log.d(WinnipegTrailsApplication.APPTAG, "An error occurred while querying for user eggs", e); } return ; ...
private void addItemsToQueue() { for (int i = 0; i < (_numIterations); i++) { java.lang.String message = (("Producer # " + (_id)) + " message # ") + i; _queue.AddToQueue(message); nachos.threads.KThread.yield(); } _listener.ProducerComplete(); }
private void addItemsToQueue() { for (int i = 0; i < (_numIterations); i++) { java.lang.String message = (("Producer # " + (_id)) + " message # ") + i; if ((i + 1) == (_numIterations)) { _queue.AddToQueue(message, _listener); }else { _queue.AddToQueue(message); ...
public boolean isCollidingRect(pro.Sprite s) { if (isCollideable()) { if (((((getRight()) > (s.getLeft())) && ((getLeft()) < (s.getRight()))) && ((getBottom()) > (s.getTop()))) && ((getTop()) < (s.getBottom()))) { return true; } } return false; }
public boolean isCollidingRect(pro.Sprite s) { if (isCollideable()) { if (((((getRight()) > (s.getLeft())) && ((getLeft()) < (s.getRight()))) && ((getBottom()) > (s.getTop()))) && ((getTop()) < (s.getBottom()))) { java.lang.System.out.println(true); return true; } } r...
public static lv.ailab.lvtb.universalizer.conllu.UDv2Relations advSitToUD(org.w3c.dom.Node aNode) throws javax.xml.xpath.XPathExpressionException { java.lang.String tag = lv.ailab.lvtb.universalizer.transformator.syntax.Utils.getTag(aNode); if (tag.matches("n.*|xn.*|p.*|.*\\[(pre|post|rel).*|mc.*|y.*")) ...
public lv.ailab.lvtb.universalizer.conllu.UDv2Relations advSitToUD(org.w3c.dom.Node aNode) throws javax.xml.xpath.XPathExpressionException { java.lang.String tag = lv.ailab.lvtb.universalizer.transformator.syntax.Utils.getTag(aNode); if (tag.matches("n.*|xn.*|p.*|.*\\[(pre|post|rel).*|mc.*|y.*")) return...
public void initMap() { org.springframework.util.Assert.notEmpty(channels); for (java.lang.String value : channels) { java.lang.String[] v = value.split("-"); channelMap.put(v[0], java.lang.Integer.valueOf(v[0])); } subChannelMap.put(com.city.beijing.config.properties.processConfig.Eleme...
public void initMap() { org.springframework.util.Assert.notEmpty(channels); for (java.lang.String value : channels) { java.lang.String[] v = value.split("-"); channelMap.put(v[0], java.lang.Integer.valueOf(v[1])); } subChannelMap.put(com.city.beijing.config.properties.processConfig.Eleme...
public java.lang.String sendMessage(@org.springframework.web.bind.annotation.RequestParam(value = "to") java.lang.String to, @org.springframework.web.bind.annotation.RequestParam(value = "from") java.lang.String from, @org.springframework.web.bind.annotation.RequestParam(value = "message") java.lang.String msg) { c...
public java.lang.String sendMessage(@org.springframework.web.bind.annotation.RequestParam(value = "to") java.lang.String to, @org.springframework.web.bind.annotation.RequestParam(value = "from") java.lang.String from, @org.springframework.web.bind.annotation.RequestParam(value = "message") java.lang.String msg) { c...
public final void testPreLoadClasses_classNotFound() throws java.lang.Exception { mFrameworkClassLoader.preLoadClasses("not.a.package.", null, null); java.util.HashMap<java.lang.String, java.lang.Class<?>> map = getPrivateClassCache(); assertEquals(0, map.size()); java.util.HashMap<java.lang.String, byt...
public void testPreLoadClasses_classNotFound() throws java.lang.Exception { mFrameworkClassLoader.preLoadClasses("not.a.package.", null, null); java.util.HashMap<java.lang.String, java.lang.Class<?>> map = getPrivateClassCache(); assertEquals(0, map.size()); java.util.HashMap<java.lang.String, byte[]> d...