buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void onWin() { int currPlayerId = currPlayer.getCurrPlayerID(); int potVal = currPlayer.getPot(); int amtBetInGame = currPlayer.getCurrBetInGame(); if ((amtBetInGame * 2) >= potVal) currPlayer.winMoney(potVal); else currPlayer.winMoney((amtBetInGame * 2)); message.set...
public void onWin() { int currPlayerId = currPlayer.getCurrPlayerID(); int potVal = currPlayer.getPot(); int amtBetInGame = currPlayer.getCurrBetInGame(); if ((amtBetInGame * 2) >= potVal) currPlayer.winMoney(potVal); else currPlayer.winMoney((amtBetInGame * 2)); message.set...
private edu.up.cs301.blokus.Blok copySelectedBoardBlok(edu.up.cs301.blokus.Blok origSelectedBoardBlok) { int row; int col; int color; row = origSelectedBoardBlok.getRow(); col = origSelectedBoardBlok.getColumn(); color = origSelectedBoardBlok.getColor(); edu.up.cs301.blokus.Blok newBlok = ne...
private edu.up.cs301.blokus.Blok copySelectedBoardBlok(edu.up.cs301.blokus.Blok origSelectedBoardBlok) { if (origSelectedBoardBlok == null) { return null; } int row; int col; int color; row = origSelectedBoardBlok.getRow(); col = origSelectedBoardBlok.getColumn(); color = origSel...
public void testAddBlankPageIfOdd() throws java.io.IOException { try (org.sejda.impl.sambox.component.PDDocumentHandler handler = new org.sejda.impl.sambox.component.PDDocumentHandler()) { org.junit.Assert.assertNull(handler.addBlankPageIfOdd(new org.sejda.sambox.pdmodel.common.PDRectangle(10, 10))); ...
public void testAddBlankPageIfOdd() throws java.io.IOException { try (org.sejda.impl.sambox.component.PDDocumentHandler handler = new org.sejda.impl.sambox.component.PDDocumentHandler()) { assertNull(handler.addBlankPageIfOdd(new org.sejda.sambox.pdmodel.common.PDRectangle(10, 10))); handler.addBlan...
java.util.Collection<java.lang.String> ids = com.google.common.collect.Lists.newArrayList(); java.util.regex.Matcher m = io.jenkins.blueocean.blueocean_github_pipeline.GithubIssue.PATTERN.matcher(input); while (m.find()) { if ((m.groupCount()) >= 1) { java.lang.String issue = m.group(1);...
java.util.Collection<java.lang.String> ids = new java.util.ArrayList<>(); java.util.regex.Matcher m = io.jenkins.blueocean.blueocean_github_pipeline.GithubIssue.PATTERN.matcher(input); while (m.find()) { if ((m.groupCount()) >= 1) { java.lang.String issue = m.group(1); ids.ad...
public static int bytesToInt(java.nio.ByteOrder order, byte... bytes) { if ((bytes.length) != 4) { throw new java.lang.IllegalArgumentException("Bytes count must be 4"); } java.nio.ByteBuffer buffer = java.nio.ByteBuffer.wrap(bytes, 0, 4); buffer.order(order); return buffer.getShort(); }
public static int bytesToInt(java.nio.ByteOrder order, byte... bytes) { if ((bytes.length) != 4) { throw new java.lang.IllegalArgumentException("Bytes count must be 4"); } java.nio.ByteBuffer buffer = java.nio.ByteBuffer.wrap(bytes, 0, 4); buffer.order(order); return buffer.getInt(); }
private void pollGraphFromStack(boolean updateDb) { final java.util.Deque<com.tinkerpop.blueprints.impls.orient.OrientBaseGraph> stack = com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.initializationStack.get(); stack.poll(); final com.tinkerpop.blueprints.impls.orient.OrientBaseGraph prevGraph = stac...
private void pollGraphFromStack(boolean updateDb) { final java.util.Deque<com.tinkerpop.blueprints.impls.orient.OrientBaseGraph> stack = com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.initializationStack.get(); stack.remove(this); final com.tinkerpop.blueprints.impls.orient.OrientBaseGraph prevGraph ...
public static void main(java.lang.String[] args) { int secretNumber = ((int) (1 + ((java.lang.Math.random()) * 10))); int attemps = 3; java.lang.System.out.println("Hi! I chose a number from 0 to 10 for you! Try to guess"); java.lang.System.out.println("You have"); java.util.Scanner sc = new java.ut...
public static void main(java.lang.String[] args) { int secretNumber = ((int) (1 + ((java.lang.Math.random()) * 10))); int attemps = 3; java.lang.System.out.println("Hi! I chose a number from 0 to 10 for you! Try to guess"); java.lang.System.out.println("You have"); java.util.Scanner sc = new java.ut...
public void run() { if ((md) == null) return ; android.graphics.Bitmap bitmap = loadArtwork(artworkUrl, artworkLocal); md.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, bitmap); nb.setLargeIcon(bitmap); session.setMetadata(md.build()); notification.show(nb, isPlaying); artworkT...
public void run() { if ((md) == null) return ; android.graphics.Bitmap bitmap = loadArtwork(artworkUrl, artworkLocal); if ((bitmap != null) && ((md) != null)) { md.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, bitmap); nb.setLargeIcon(bitmap); } session.setMetadata(md....
public boolean isWallValid(holdup.Player player, int xPos, int yPos, holdup.Orientation orientation) { if (!(isExistingWallPlaced(xPos, yPos, orientation))) { if (playerHasZeroWalls(player)) { return false; }else { if ((placedWallList.size()) > 1) { return !(i...
public boolean isWallValid(holdup.Player player, int xPos, int yPos, holdup.Orientation orientation) { if (!(isExistingWallPlaced(xPos, yPos, orientation))) { if (playerHasZeroWalls(player)) { return false; }else { return !(isWallBlockingPlayerPath(player, xPos, yPos, orienta...
public void remove(double v) { if ((root) != null) { if ((root.getValue()) == v) { BTree.Node tempRoot = new BTree.Node(0); tempRoot.setLeft(root); root.removeNode(v, tempRoot); root = tempRoot.getLeft(); }else { root.removeNode(v, null); ...
public void remove(double v) { if ((root) != null) { if ((root.getValue()) == v) { root.removeNode(v, null); root = null; }else { root.removeNode(v, null); } } if (((size) - 1) < 0) { size = 0; }else { size -= 1; } }
public boolean deleteFromUndecVertices(core.MyVertex v) { if (!(this.UndecLabels.contains(v))) { throw new java.lang.IllegalArgumentException("This vertex is not in the undec hashset"); }else { NotLabelledVertices.add(v); v.setLabel("NONE"); UndecLabels.remove(v); } retur...
public boolean deleteFromUndecVertices(core.MyVertex v) { if (!(this.UndecLabels.contains(v))) { throw new java.lang.IllegalArgumentException("This vertex is not in the undec hashset"); }else { NotLabelledVertices.add(v); v.setLabel("NONE"); UndecLabels.remove(v); NotLabe...
public void testPerformPlacePitfall() { nl.tudelft.contextproject.util.webinterface.ActionUtil.perform(Action.PLACEPITFALL, 0, 0); org.mockito.Mockito.verify(nl.tudelft.contextproject.Main.getInstance(), org.mockito.Mockito.times(1)).getCurrentGame(); org.mockito.Mockito.verify(mockedGame, org.mockito.Mocki...
public void testPerformPlacePitfall() { nl.tudelft.contextproject.util.webinterface.ActionUtil.perform(Action.PLACEPITFALL, 0, 0); verify(nl.tudelft.contextproject.Main.getInstance(), times(1)).getCurrentGame(); verify(mockedGame, times(1)).addEntity(any(nl.tudelft.contextproject.model.entities.Pitfall.clas...
public java.lang.Object getValueOfProperty(java.lang.String propertyName, java.lang.Object object) { java.lang.String name = (this.caseSensitive) ? propertyName : propertyName.toLowerCase(); java.lang.reflect.Field field = this.fields.get(propertyName); try { return field.get(object); } catch (j...
public java.lang.Object getValueOfProperty(java.lang.String propertyName, java.lang.Object object) { java.lang.String name = (this.caseSensitive) ? propertyName : propertyName.toLowerCase(); java.lang.reflect.Field field = this.fields.get(name); try { return field.get(object); } catch (java.lang...
private void LeaveGameMouseClicked(java.awt.event.MouseEvent evt) { comm.msgSender(("E" + ((char) ((Pexeso_client.CurrentGame.getID()) + '0')))); Pexeso_client.CurrentGame = null; comm.setExit(true); comm.game_thread.interrupt(); LobbyStatus.setText("You left your current game"); LobbyStatus.set...
private void LeaveGameMouseClicked(java.awt.event.MouseEvent evt) { comm.msgSender(("E" + ((char) ((Pexeso_client.CurrentGame.getID()) + '0')))); Pexeso_client.CurrentGame = null; comm.setExit(true); LobbyStatus.setText("You left your current game"); LobbyStatus.setVisible(true); panel2.setVisib...
private void selectedButtonStyleLower(javafx.scene.control.Button button) { carInsuranceButton.setId("sideToolbarButton"); boatInsuranceButton.setId("sideToolbarButton"); homeInsuranceButton.setId("sideToolbarButton"); holidayHomeInsuranceButton.setId("sideToolbarButton"); travelInsuranceButton.setI...
public void selectedButtonStyleLower(javafx.scene.control.Button button) { carInsuranceButton.setId("sideToolbarButton"); boatInsuranceButton.setId("sideToolbarButton"); homeInsuranceButton.setId("sideToolbarButton"); holidayHomeInsuranceButton.setId("sideToolbarButton"); travelInsuranceButton.setId...
public int fitnessValue() { State s = new State(); while (!(s.hasLost())) { s.makeMove(this.pickMove(s, s.legalMoves())); } java.lang.System.out.println(s.getRowsCleared()); return s.getRowsCleared(); }
public int fitnessValue() { State s = new State(); while (!(s.hasLost())) { s.makeMove(this.pickMove(s, s.legalMoves())); } return s.getRowsCleared(); }
public int modifyField(java.lang.String field, java.lang.String value, java.lang.Long id) { if ((field != null) && (value != null)) { try { it.ispw.efco.nottitranquille.controller.ManageLocation.modifyField(field, value, id); } catch (java.lang.Exception e) { e.printStackTrac...
public int modifyField(java.lang.String field, java.lang.String[] value, java.lang.Long id) { if ((field != null) && (value != null)) { try { it.ispw.efco.nottitranquille.controller.ManageLocation.modifyField(field, value, id); } catch (java.lang.Exception e) { e.printStackTr...
protected java.lang.Object visitContainer(net.objectof.actof.porter.visitor.IPorterContext context, net.objectof.model.Id<?> parentId) { net.objectof.model.Resource<net.objectof.aggr.Aggregate<java.lang.Object, java.lang.Object>> toParent = getToParent(parentId); net.objectof.actof.porter.visitor.IPorterContext...
protected java.lang.Object visitContainer(net.objectof.actof.porter.visitor.IPorterContext context, net.objectof.model.Id<?> parentId) { net.objectof.model.Resource<net.objectof.aggr.Aggregate<java.lang.Object, java.lang.Object>> toParent = getToParent(parentId); net.objectof.actof.porter.visitor.IPorterContext...
private org.openbaton.nfvo.core.api.VNFCInstance getVNFCI(org.openbaton.nfvo.core.api.VirtualDeploymentUnit virtualDeploymentUnit, java.lang.String idVNFCI) throws org.openbaton.nfvo.core.api.NotFoundException { for (org.openbaton.nfvo.core.api.VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) ...
private org.openbaton.nfvo.core.api.VNFCInstance getVNFCI(org.openbaton.nfvo.core.api.VirtualDeploymentUnit virtualDeploymentUnit, java.lang.String idVNFCI) throws org.openbaton.nfvo.core.api.NotFoundException { for (org.openbaton.nfvo.core.api.VNFCInstance vnfcInstance : virtualDeploymentUnit.getVnfc_instance()) ...
public ru.semiot.platform.apigateway.utils.Credentials addUser(int id, java.lang.String login, java.lang.String password, java.lang.String role) { try { ru.semiot.platform.apigateway.utils.Credentials c = new ru.semiot.platform.apigateway.utils.Credentials((++id), login, password, role); em.merge(c)...
public ru.semiot.platform.apigateway.utils.Credentials addUser(int id, java.lang.String login, java.lang.String password, java.lang.String role) { try { ru.semiot.platform.apigateway.utils.Credentials c = new ru.semiot.platform.apigateway.utils.Credentials(id, login, password, role); em.merge(c); ...
private cluedo.Hud.STATUS rollAndMove(cluedo.Player player, cluedo.Hud.STATUS status, java.util.Scanner sc) { java.lang.System.out.println("/n"); status = cluedo.Hud.STATUS.MOVE_PIECE; displayBoard(player, status); movesRemaining = rollDice(); java.lang.System.out.println(("\nYou rolled a " + (moves...
private cluedo.Hud.STATUS rollAndMove(cluedo.Player player, cluedo.Hud.STATUS status, java.util.Scanner sc) { java.lang.System.out.println("/n"); status = cluedo.Hud.STATUS.MOVE_PIECE; displayBoard(player, status); movesRemaining = rollDice(); java.lang.System.out.println(("\nYou rolled a " + (moves...
public static int getColumnsNumberFromDimension(java.lang.String dimension) { if (org.apache.commons.lang.StringUtils.isEmpty(dimension)) { return 0; } java.lang.String[] parts = org.apache.commons.lang.StringUtils.split(dimension, ':'); if ((parts.length) < 2) { return 0; } java...
public static int getColumnsNumberFromDimension(java.lang.String dimension) { if (org.apache.commons.lang.StringUtils.isEmpty(dimension)) { return 0; } java.lang.String[] parts = org.apache.commons.lang.StringUtils.split(dimension, ':'); if ((parts.length) < 2) { return 0; } java...
public void testSaveEncounter() { edu.psu.sweng500.emrms.model.HPatient hPatient = new edu.psu.sweng500.emrms.model.HPatient(); edu.psu.sweng500.emrms.model.HEncounter hEncounter = new edu.psu.sweng500.emrms.model.HEncounter(); hEncounter.sethEncounterID(1001); hEncounter.setUserID("admin"); hEncoun...
public void testSaveEncounter() { edu.psu.sweng500.emrms.model.HPatient hPatient = new edu.psu.sweng500.emrms.model.HPatient(); edu.psu.sweng500.emrms.model.HEncounter hEncounter = new edu.psu.sweng500.emrms.model.HEncounter(); hEncounter.setUserID("admin"); hEncounter.setCreationDateTime("2017-09-23 21...
public void onBindViewHolder(final com.cv4j.app.adapter.GridViewFilterAdapter.ViewHolder holder, int position) { java.lang.String filterName = mList.get(position); if (position == 0) { holder.image.setImageBitmap(mBitmap); }else { if (com.safframwork.tony.common.utils.Preconditions.isNotBlan...
public void onBindViewHolder(final com.cv4j.app.adapter.GridViewFilterAdapter.ViewHolder holder, int position) { java.lang.String filterName = mList.get(position); if (position == 0) { holder.image.setImageBitmap(mBitmap); }else { if (com.safframwork.tony.common.utils.Preconditions.isNotBlan...
private static com.whippy.tas.premier.beans.Stats setTacklingStat(java.util.List<com.whippy.tas.premier.beans.Position> positions, java.util.Random rand, com.whippy.tas.premier.beans.Stats stats) { if (positions.contains(Position.DEFENSE)) { stats.setTackling(com.whippy.tas.premier.util.Utils.getGaussian(80...
private static com.whippy.tas.premier.beans.Stats setTacklingStat(java.util.List<com.whippy.tas.premier.beans.Position> positions, java.util.Random rand, com.whippy.tas.premier.beans.Stats stats) { if (positions.contains(Position.DEFENSE)) { stats.setTackling(com.whippy.tas.premier.util.Utils.getGaussian(80...
public void purchaseMultiple(int index, int quantity, ver0.PlayerActor character) { ver0.Item[] itemSet = ver0.Item.getAllItems(); if (character.canBuyItems(index, quantity)) { if (character.buyItems(index, quantity)) { java.lang.System.out.println(((("Purchase successful! You have bought" +...
public void purchaseMultiple(int index, int quantity, ver0.PlayerActor character) { ver0.Item[] itemSet = ver0.Item.getAllItems(); if (character.canBuyItems(index, quantity)) { if (character.buyItems(index, quantity)) { java.lang.System.out.println(((("Purchase successful! You have bought" +...
public int evaluate() { if (((first) != null) && ((last) != null)) { return (first.evaluate()) + (last.evaluate()); }else { throw new java.lang.IllegalStateException("NO!"); } }
public int evaluate() { if (((first) != null) && ((last) != null)) { return (first.evaluate()) - (last.evaluate()); }else { throw new java.lang.IllegalStateException("NO!"); } }
private void homeScreen(javafx.event.ActionEvent event) { javafx.scene.control.Alert confirm = new javafx.scene.control.Alert(javafx.scene.control.Alert.AlertType.CONFIRMATION, "Are you sure you want to disconnect ? You won't be able to rejoin the game.", javafx.scene.control.ButtonType.YES, javafx.scene.control.Bu...
private void homeScreen(javafx.event.ActionEvent event) { javafx.scene.control.Alert confirm = new javafx.scene.control.Alert(javafx.scene.control.Alert.AlertType.CONFIRMATION, "Are you sure you want to disconnect ? You won't be able to rejoin the game.", javafx.scene.control.ButtonType.YES, javafx.scene.control.Bu...
public void addStringSimpleException() throws java.lang.Exception { try { firstOperand = new cpe200.Operand("-1"); secondOperand = new cpe200.Operand("1"); binaryCalculator.setFirstOperand(firstOperand); binaryCalculator.setSecondOperand(secondOperand); } catch (java.lang.Excepti...
public void addStringSimpleException() throws java.lang.Exception { try { firstOperand = new cpe200.Operand("-1"); secondOperand = new cpe200.Operand("1"); binaryCalculator.setFirstOperand(firstOperand); binaryCalculator.setSecondOperand(secondOperand); } catch (java.lang.Excepti...
public static void showDialog(android.content.Context context, int message, int positiveMsg, int negativeMsg, android.content.DialogInterface.OnClickListener okListener) { com.shuruta.sergey.ftpclient.ui.DialogFactory.showDialog(context, message, positiveMsg, negativeMsg, okListener, new android.content.DialogInter...
public static void showDialog(android.content.Context context, int title, int message, int positiveMsg, int negativeMsg, android.content.DialogInterface.OnClickListener okListener) { com.shuruta.sergey.ftpclient.ui.DialogFactory.showDialog(context, context.getString(title), context.getString(message), positiveMsg, ...
public void writeEndArray() { try { elementStack.remove(((elementStack.size()) - 1)); jsonGenerator.writeEndArray(); } catch (java.io.IOException e) { try { jsonGenerator.writeEndObject(); jsonGenerator.writeEndArray(); } catch (java.io.IOException e1) { ...
public void writeEndArray() { try { elementStack.remove(((elementStack.size()) - 1)); jsonGenerator.writeEndArray(); } catch (java.io.IOException e) { try { jsonGenerator.writeEndObject(); jsonGenerator.writeEndArray(); } catch (java.io.IOException e1) { ...
public static tw.kewang.cwb.pretty.FutureWeatherByTown getFutureWeatherByTown(tw.kewang.cwb.Geocode geocode, float afterHours) { java.util.Date date = new java.util.Date(((java.lang.System.currentTimeMillis()) + ((long) ((tw.kewang.cwb.utils.Constants.ONE_HOUR) * afterHours)))); tw.kewang.cwb.Cwb.LOG.debug("get...
public static tw.kewang.cwb.pretty.FutureWeatherByTown getFutureWeatherByTown(tw.kewang.cwb.Geocode geocode, float afterHours) { java.util.Date date = new java.util.Date(((java.lang.System.currentTimeMillis()) + ((long) ((tw.kewang.cwb.utils.Constants.ONE_HOUR) * afterHours)))); tw.kewang.cwb.Cwb.LOG.debug("get...
public static javax.swing.JPanel createLabeledTextBox(java.lang.String label) { javax.swing.JPanel labeledTextBox = new javax.swing.JPanel(); javax.swing.JLabel l = new javax.swing.JLabel(label); labeledTextBox.add(l); javax.swing.JTextField text = new javax.swing.JTextField(); labeledTextBox.add(te...
public static javax.swing.JPanel createLabeledTextBox(java.lang.String label, int length) { javax.swing.JPanel labeledTextBox = new javax.swing.JPanel(); javax.swing.JLabel l = new javax.swing.JLabel(label); labeledTextBox.add(l); javax.swing.JTextField text = new javax.swing.JTextField(length); lab...
public java.lang.Boolean apply(final com.intellij.openapi.roots.SourceFolder it) { boolean _and = false; boolean _isTestSource = it.isTestSource(); if (!_isTestSource) { _and = false; }else { com.intellij.openapi.vfs.VirtualFile _file = it.getFile(); boolean _exists = _file.exist...
public java.lang.Boolean apply(final com.intellij.openapi.roots.SourceFolder it) { boolean _and = false; boolean _isTestSource = it.isTestSource(); if (!_isTestSource) { _and = false; }else { com.intellij.openapi.vfs.VirtualFile _file = it.getFile(); boolean _exists = false; ...
public void run() { com.yc.english.base.helper.TipsHelper.tips(mContext, "修改成功"); com.yc.english.main.model.domain.UserInfo userInfo = com.yc.english.main.hepler.UserInfoHelper.getUserInfo(); userInfo.setAvatar(resultInfo.data.getInfo().getAvatar()); com.yc.english.main.hepler.UserInfoHelper.saveUserInf...
public void run() { com.yc.english.base.helper.TipsHelper.tips(mContext, "修改成功"); com.yc.english.main.model.domain.UserInfo userInfo = com.yc.english.main.hepler.UserInfoHelper.getUserInfo(); userInfo.setAvatar(resultInfo.data.getAvatar()); com.yc.english.main.hepler.UserInfoHelper.saveUserInfo(userInfo...
public boolean add(final T t) { if ((size) == 0) { first = new LinkedList.Item<>(t, null, null); }else if ((size) == 1) { last = new LinkedList.Item<>(t, first, null); first.next = last; }else { LinkedList.Item<T> lastInList = last; last.ne...
public boolean add(final T t) { if ((size) == 0) { first = new LinkedList.Item<>(t, null, null); }else if ((size) == 1) { first.next = new LinkedList.Item<>(t, first, null); last = first.next; }else { last.next = new LinkedList.Item<>(t, last, null); ...
protected final java.net.Socket getRootSocket(java.lang.Object target) { org.apache.thrift.transport.TNonblockingTransport inTrans = ((com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTransportFieldGetter) (target))._$PINPOINT$_getTNonblockingTransport(); if (inTrans != null) { if (inTrans ...
protected final java.net.Socket getRootSocket(java.lang.Object target) { if (target instanceof com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTransportFieldGetter) { org.apache.thrift.transport.TNonblockingTransport inTrans = ((com.navercorp.pinpoint.plugin.thrift.field.getter.TNonblockingTra...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { java.util.ArrayList<java.lang.String> oldReviews = new java.util.ArrayList<>(); for (com.google.firebase.database.DataSnapshot child : dataSnapshot.getChildren()) { java.lang.String oldSearchTerm = child.getValue().toStri...
public void onDataChange(com.google.firebase.database.DataSnapshot dataSnapshot) { java.util.ArrayList<java.lang.String> oldReviews = new java.util.ArrayList<>(); for (com.google.firebase.database.DataSnapshot child : dataSnapshot.getChildren()) { java.lang.String oldSearchTerm = child.getValue().toStri...
private boolean maskHasPortGroup(com.emc.storageos.db.client.model.ExportMask mask, java.net.URI portGroup) { boolean result = false; if (((portGroup == null) && (com.emc.storageos.db.client.util.NullColumnValueGetter.isNullURI(mask.getPortGroup()))) || ((portGroup != null) && (portGroup.equals(mask.getPortGrou...
private boolean maskHasPortGroup(com.emc.storageos.db.client.model.ExportMask mask, java.net.URI portGroup) { boolean result = false; if ((portGroup == null) || ((portGroup != null) && (portGroup.equals(mask.getPortGroup())))) { result = true; } return result; }
public boolean equals(final java.lang.Object o) { if (o == (this)) return true; if (!(super.equals(o))) return false; final com.helger.photon.core.ajax.response.AjaxHtmlResponse rhs = ((com.helger.photon.core.ajax.response.AjaxHtmlResponse) (o)); return (com.helger.commons.equa...
public boolean equals(final java.lang.Object o) { if (o == (this)) return true; if (!(super.equals(o))) return false; final com.helger.photon.core.ajax.response.AjaxHtmlResponse rhs = ((com.helger.photon.core.ajax.response.AjaxHtmlResponse) (o)); return (com.helger.commons.equa...
private void parseArrayMetadata(com.fasterxml.jackson.core.JsonParser jp) throws java.io.IOException { com.fasterxml.jackson.core.JsonToken value = jp.nextToken(); while (value != (com.fasterxml.jackson.core.JsonToken.END_ARRAY)) { if (value == (com.fasterxml.jackson.core.JsonToken.START_OBJECT)) { ...
private void parseArrayMetadata(com.fasterxml.jackson.core.JsonParser jp) throws java.io.IOException { com.fasterxml.jackson.core.JsonToken value = jp.nextToken(); while (value != (com.fasterxml.jackson.core.JsonToken.END_ARRAY)) { if (value == (com.fasterxml.jackson.core.JsonToken.START_OBJECT)) { ...
public int getPoints() { int points = 1; for (java.util.Iterator<entities.Square> i = getSquaresInvolved().iterator(); i.hasNext();) { entities.Block b = i.next().getBlock(); if (b != null) points *= i.next().getBlock().getMultiplier(); } return points; }
public int getPoints() { int points = 1; for (java.util.Iterator<entities.Square> i = getSquaresInvolved().iterator(); i.hasNext();) { entities.Block b = i.next().getBlock(); if (b != null) points *= b.getMultiplier(); } return points; }
private java.lang.String buildContainerId() { java.lang.String id = null; java.lang.String selectElementId = selectElement.getId(); if ((selectElementId != null) && ((selectElementId.length()) > 0)) { id = com.arcbees.chosen.client.ChosenImpl.containerIdRegExp.replace(selectElementId, "_"); }els...
private java.lang.String buildContainerId() { java.lang.String id; java.lang.String selectElementId = selectElement.getId(); if ((selectElementId != null) && ((selectElementId.length()) > 0)) { id = com.arcbees.chosen.client.ChosenImpl.containerIdRegExp.replace(selectElementId, "_"); }else { ...
public org.lirazs.gbackbone.client.core.data.Options defaults(org.lirazs.gbackbone.client.core.data.Options... args) { for (org.lirazs.gbackbone.client.core.data.Options source : args) { for (java.lang.String key : source.keySet()) { if (!(containsKey(key))) { put(key, source.get...
public org.lirazs.gbackbone.client.core.data.Options defaults(org.lirazs.gbackbone.client.core.data.Options... args) { for (org.lirazs.gbackbone.client.core.data.Options source : args) { if (source != null) { for (java.lang.String key : source.keySet()) { if (!(containsKey(key)))...
public void onDismiss(com.example.reativos.oscar.AddParam myDialogFragment) { java.lang.String command_type = dataStore.getString("type"); int command_param = dataStore.getInt("param"); if (command_type != null) { com.example.reativos.oscar.Command newCommand = new com.example.reativos.oscar.Command...
public void onDismiss(com.example.reativos.oscar.AddParam myDialogFragment) { java.lang.String command_type = dataStore.getString("type"); int command_param = dataStore.getInt("param"); if ((command_type != null) && (!(command_type.isEmpty()))) { com.example.reativos.oscar.Command newCommand = new c...
public void startRecord(android.view.View v) { if (!(mBound)) return ; android.os.Bundle b = new android.os.Bundle(); java.lang.String filePath = (((m_chosenDir) + (java.io.File.separator)) + (hookString)) + ".3gp"; b.putString("str1", filePath); android.os.Message msg = android.os.Mess...
public void startRecord(android.view.View v) { if (!(mBound)) return ; android.os.Bundle b = new android.os.Bundle(); java.lang.String filePath = ((m_chosenDir) + (java.io.File.separator)) + (hookString); b.putString("str1", filePath); android.os.Message msg = android.os.Message.obtain(...
private void addSharedLink(models.SharedLink link, boolean newActivity) { if (!(this.sharedLinks.contains(link))) { link.member = this; link.ordernum = this.sharedLinks.size(); this.sharedLinks.add(link); link.save(); if (newActivity) { new models.SharedLinkActivi...
private void addSharedLink(models.SharedLink link, boolean newActivity) { if (!(this.sharedLinks.contains(link))) { link.member = this; link.ordernum = this.sharedLinks.size(); this.sharedLinks.add(link); if (newActivity && ((this.id) != null)) { link.save(); ...
public java.lang.Boolean getunicodePUA() { for (int i = 0; i < (toUnicode.length()); ++i) { char unicode = this.toUnicode.charAt(0); if ((unicode >= (org.verapdf.gf.model.impl.operator.textshow.GFGlyph.UNICODE_PRIVATE_USE_AREA_BEGINNING)) && (unicode <= (org.verapdf.gf.model.impl.operator.textshow.G...
public java.lang.Boolean getunicodePUA() { for (int i = 0; i < (toUnicode.length()); ++i) { char unicode = this.toUnicode.charAt(i); if ((unicode >= (org.verapdf.gf.model.impl.operator.textshow.GFGlyph.UNICODE_PRIVATE_USE_AREA_BEGINNING)) && (unicode <= (org.verapdf.gf.model.impl.operator.textshow.G...
private void handlePortState() { switch (portState) { case CLOSED : if (open()) { portState = org.openhab.binding.dsmr.internal.DSMRPort.PortState.AUTO_DETECT; autoDetectTS = java.lang.System.currentTimeMillis(); } break; case AUTO_...
private void handlePortState() { switch (portState) { case CLOSED : if (open()) { portState = org.openhab.binding.dsmr.internal.DSMRPort.PortState.AUTO_DETECT; autoDetectTS = java.lang.System.currentTimeMillis(); } break; case AUTO_...
public static javax.el.ValueExpression createValueExpression(final java.lang.String expression) { final javax.faces.context.FacesContext facesContext = org.jbromo.webapp.jsf.cdi.CDIFacesUtil.getFacesContext(); final javax.faces.application.Application app = facesContext.getApplication(); final javax.el.Expr...
public static javax.el.ValueExpression createValueExpression(final java.lang.String expression) { final javax.faces.context.FacesContext facesContext = org.jbromo.webapp.jsf.cdi.CDIFacesUtil.getFacesContext(); final javax.faces.application.Application app = facesContext.getApplication(); final javax.el.Expr...
public void onItemSelected(android.widget.AdapterView<?> Spinner_D2_Adapter_View, android.view.View v, int position, long row) { Spinner_D2_Choice = Spinner_D2_Adapter_View.getItemAtPosition(position).toString(); setPaths(Spinner_A1_Choice, Spinner_A2_Choice, Spinner_D1_Choice, Spinner_D2_Choice); findViewB...
public void onItemSelected(android.widget.AdapterView<?> Spinner_D2_Adapter_View, android.view.View v, int position, long row) { Spinner_D2_Choice = Spinner_D2_Adapter_View.getItemAtPosition(position).toString(); if (((((Spinner_A1_Choice) != null) && ((Spinner_A2_Choice) != null)) && ((Spinner_D1_Choice) != nu...
public void onClick(android.view.View v) { java.lang.String username = ((android.widget.EditText) (findViewById(R.id.username))).getText().toString(); android.content.Intent mIntent; switch (v.getId()) { case R.id.loginButton : com.myos.myos.HEAD mIntent = new android.content.Intent(this...
public void onClick(android.view.View v) { java.lang.String username = ((android.widget.EditText) (findViewById(R.id.username))).getText().toString(); android.content.Intent mIntent; switch (v.getId()) { case R.id.loginButton : mIntent = new android.content.Intent(this, com.myos.myos.Sal...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL((((((("CREATE TABLE " + (com.example.android.farliggodtapp.database.DatabaseHelper.tableName)) + " (") + (com.example.android.farliggodtapp.database.DatabaseHelper.tableColValue)) + " VARCHAR(255), ") + (com.example.android.farliggodtapp.d...
public void onCreate(android.database.sqlite.SQLiteDatabase db) { db.execSQL((((((("CREATE TABLE " + (com.example.android.farliggodtapp.database.DatabaseHelper.tableName)) + " (") + (com.example.android.farliggodtapp.database.DatabaseHelper.tableColValue)) + " VARCHAR(255), ") + (com.example.android.farliggodtapp.d...
private void startAlarmManager() { android.util.Log.i(com.example.sifat.gobar.LOG_TAG_TAXIPOSITIONSERVICE, "startAlarmManager"); android.content.Context context = getBaseContext(); alarmManager = ((android.app.AlarmManager) (context.getSystemService(Context.ALARM_SERVICE))); taxiDetailIntent = new andro...
private void startAlarmManager() { android.util.Log.i(com.example.sifat.gobar.LOG_TAG_TAXIPOSITIONSERVICE, "startAlarmManager"); android.content.Context context = getBaseContext(); alarmManager = ((android.app.AlarmManager) (context.getSystemService(Context.ALARM_SERVICE))); taxiDetailIntent = new andro...
public static java.lang.reflect.Field getFiledNameByMethod(java.lang.Class clazz, java.lang.reflect.Method method) { java.lang.reflect.Field[] fields = clazz.getDeclaredFields(); java.lang.reflect.Field field = null; for (java.lang.reflect.Field f : fields) if ((f.getAnnotation(indi.yume.tools.autos...
public static java.lang.reflect.Field getFiledNameByMethod(java.lang.Class clazz, java.lang.reflect.Method method) { java.lang.reflect.Field[] fields = indi.yume.tools.autosharedpref.util.ReflectUtil.getDeclaredFields(clazz); java.lang.reflect.Field field = null; for (java.lang.reflect.Field f : fields) ...
public void reduce(org.apache.hadoop.io.Text key, java.lang.Iterable<org.apache.hadoop.io.BooleanWritable> values, com.capstone.maven.mostontimeairlines.Context context) { summaryMap.putIfAbsent(key.toString(), new com.capstone.maven.mostontimeairlines.OntimeSummaryWritable()); com.capstone.maven.mostontimeairl...
public void reduce(org.apache.hadoop.io.Text key, java.lang.Iterable<org.apache.hadoop.io.BooleanWritable> values, com.capstone.maven.mostontimeairlines.Context context) { summaryMap.putIfAbsent(key.toString(), new com.capstone.maven.mostontimeairlines.OntimeSummaryWritable()); com.capstone.maven.mostontimeairl...
public static void saveLastResultToFile() { java.lang.System.out.println("Enter a filename or '#cancel' to cancel."); java.lang.String file = com.jboby93.markovbot.App.readLine("save as: "); if (file.equals("#cancel")) { java.lang.System.out.println("Operation cancelled."); }else { try {...
public static void saveLastResultToFile() { java.lang.System.out.println("Enter a filename or '#cancel' to cancel."); java.lang.String file = readLine("save as: "); if (file.equals("#cancel")) { java.lang.System.out.println("Operation cancelled."); }else { try { com.jboby93.m...
public static void main(java.lang.String[] arguments) throws java.io.IOException { Avans.Util.LinkedList<Avans.Tokenizer.Token> tokenList = new Avans.Util.LinkedList<Avans.Tokenizer.Token>(); Avans.Util.LinkedList<Avans.Compiler.Node.RunNode> runList = new Avans.Util.LinkedList<Avans.Compiler.Node.RunNode>(); ...
public static void main(java.lang.String[] arguments) throws java.lang.Exception { Avans.Util.LinkedList<Avans.Tokenizer.Token> tokenList = new Avans.Util.LinkedList<Avans.Tokenizer.Token>(); Avans.Util.LinkedList<Avans.Compiler.Node.RunNode> runList = new Avans.Util.LinkedList<Avans.Compiler.Node.RunNode>(); ...
private void startMain() { if ((((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.JELLY_BEAN)) && ((android.support.v4.app.ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)) != (android.content.pm.PackageManager.PERMISSION_GRANTED))) && ((android.support.v4.app.ActivityCompat.checkSelfPermission(t...
private void startMain() { if (((Build.VERSION.SDK_INT) >= (Build.VERSION_CODES.JELLY_BEAN)) && (((android.support.v4.app.ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)) != (android.content.pm.PackageManager.PERMISSION_GRANTED)) || ((android.support.v4.app.ActivityCompat.checkSelfPermission(th...
public int myAtoi(java.lang.String str) { if (null == str) { str = ""; } long ret = atoi(str); if (ret > (java.lang.Integer.MAX_VALUE)) { ret = java.lang.Integer.MAX_VALUE; }else if (ret < (java.lang.Integer.MIN_VALUE)) { ret = java.lang.Integer.MIN_VALUE; ...
public int myAtoi(java.lang.String str) { if (null == str) { str = ""; } long ret = atoi(str.trim()); if (ret > (java.lang.Integer.MAX_VALUE)) { ret = java.lang.Integer.MAX_VALUE; }else if (ret < (java.lang.Integer.MIN_VALUE)) { ret = java.lang.Integer.MIN_VALUE; ...
private void closeOnError() { try { socket.close(); } catch (final java.io.IOException e) { e.printStackTrace(); mainController.showMessageOnMainView(((("Errore nella chiusura della socket" + (socket)) + (e.getMessage())) + (e.toString()))); } sockets.remove(socket); }
private void closeOnError() { try { socket.close(); } catch (final java.io.IOException e) { e.printStackTrace(); mainController.showMessageOnMainView(((("Errore nella chiusura della socket" + (socket)) + (e.getMessage())) + (e.toString()))); } finally { sockets.remove(socket)...
protected void goToMain() { com.kerchin.yellownote.data.bean.PrimaryData.getInstance(getHelper(), new com.kerchin.yellownote.data.bean.PrimaryData.DoAfterWithEx() { @java.lang.Override public void justNowWithEx(java.lang.Exception e) { dismissDialog(); } }); zj.remote.bas...
protected void goToMain() { zj.remote.baselibrary.util.PreferenceUtils.putString(Config.KEY_USER, mLoginUserEdt.getText().toString(), this); zj.remote.baselibrary.util.PreferenceUtils.putBoolean(Config.KEY_ISLOGIN, true, this); zj.remote.baselibrary.util.PreferenceUtils.putString(Config.KEY_PASS, mLoginPass...
public void exitApplication(android.content.Context context) { try { finishAllActivity(); android.app.ActivityManager manager = ((android.app.ActivityManager) (context.getSystemService(Context.ACTIVITY_SERVICE))); manager.killBackgroundProcesses(context.getPackageName()); java.lang.S...
public void exitApplication() { try { finishAllActivity(); android.app.ActivityManager manager = ((android.app.ActivityManager) (context.getSystemService(Context.ACTIVITY_SERVICE))); manager.killBackgroundProcesses(context.getPackageName()); java.lang.System.exit(0); } catch (jav...
public static synchronized void search(java.lang.String username, java.lang.String tu) { if (!(pset.three.Server.user_orders.containsKey(username))) { pset.three.Server.respond(tu, java.lang.String.format("No order found for %s", username)); return ; } java.lang.String response = ""; for...
public static synchronized void search(java.lang.String username, java.lang.String tu) { if (!(pset.three.Server.user_orders.containsKey(username))) { pset.three.Server.respond(tu, java.lang.String.format("No order found for %s", username)); return ; } java.lang.String response = ""; for...
void connect() throws java.lang.InterruptedException { final io.netty.channel.ChannelFuture future; synchronized(lock) { connectFuture = bootstrap.connect(host, port); future = connectFuture; } future.sync(); synchronized(lock) { while (((root) == null) && ((future.channel()....
void connect() throws java.lang.InterruptedException { final io.netty.channel.ChannelFuture future; synchronized(lock) { connectFuture = bootstrap.connect(host, port); future = connectFuture; } future.sync(); synchronized(lock) { while (((root) == null) && (future.channel().i...
public com.google.android.gms.maps.model.MarkerOptions map(com.task.vasskob.googlemaps.screens.map.model.Marker data) { com.google.android.gms.maps.model.LatLng markerLatLng = new com.google.android.gms.maps.model.LatLng(data.getLatitude(), data.getLongitude()); android.util.Log.d(com.task.vasskob.googlemaps.sc...
public com.google.android.gms.maps.model.MarkerOptions map(com.task.vasskob.googlemaps.screens.map.model.Marker data) { com.google.android.gms.maps.model.LatLng markerLatLng = new com.google.android.gms.maps.model.LatLng(data.getLatitude(), data.getLongitude()); com.google.android.gms.maps.model.BitmapDescripto...
public void enqueue(Item item) { if ((size) == (arr.length)) { resize((2 * (size))); } arr[((last)++)] = item; (size)++; if ((last) == (arr.length)) last = 0; }
public void enqueue(Item item) { if ((size) == (arr.length)) { resize((2 * (arr.length))); } arr[((last)++)] = item; (size)++; if ((last) == (arr.length)) last = 0; }
public int makeTurn() { int winAns = 9; if (((BotParser.mRound) == 1) || ((BotParser.mRound) == 2)) return 3; else if ((BotParser.mRound) > 5) winAns = BotParser.mField.checkWin(BotParser.mBotId); if (winAns != 9) return winAns; winAns = BotPars...
public int makeTurn() { int winAns = 9; if (((BotParser.mRound) == 1) || ((BotParser.mRound) == 2)) { return 3; } if ((BotParser.mRound) >= 3) { winAns = BotParser.mField.checkWin(BotParser.mBotId); if (winAns != 9) return winAns; winAns = BotParser.m...
public void save(de.jordsand.birdcensus.core.BirdCount instance) { de.jordsand.birdcensus.database.repositories.SQLiteBirdCountRepository.BirdCountToSQLiteConverter converter = new de.jordsand.birdcensus.database.repositories.SQLiteBirdCountRepository.BirdCountToSQLiteConverter(); db.insert(BirdCountContract.Bi...
public java.lang.Long save(de.jordsand.birdcensus.core.BirdCount instance) { de.jordsand.birdcensus.database.repositories.SQLiteBirdCountRepository.BirdCountToSQLiteConverter converter = new de.jordsand.birdcensus.database.repositories.SQLiteBirdCountRepository.BirdCountToSQLiteConverter(); long id = db.insert(...
public void draw() { background(240); println(dropdownMObjectAlphaFloat); dropdownMObjectAlphaFloat = DropdownDrawFloat(dropdownMObjectAlphaFloat, ((width) - (offsetInt)), offsetInt, buttonOpenCloseMuseumObject, "Exhibition"); dropdownPlayerAlphaFloat = DropdownDrawFloat(dropdownPlayerAlphaFloat, offset...
public void draw() { background(240); dropdownMObjectAlphaFloat = DropdownDrawFloat(dropdownMObjectAlphaFloat, ((width) - (offsetInt)), offsetInt, buttonOpenCloseMuseumObject, "Exhibition"); dropdownPlayerAlphaFloat = DropdownDrawFloat(dropdownPlayerAlphaFloat, offsetInt, offsetInt, buttonOpenClosePlayerObj...
public datastructures.AttributeJoint getAttributesDFJoint() { datastructures.AttributeJoint attrJoint = new datastructures.AttributeJoint(); for (dependency.ADependency df : this.df) { attrJoint.addAttributes(df.getAntecedent()); attrJoint.addAttributes(df.getConsequent()); } return attr...
public datastructures.AttributeJoint getAttributesDFJoint() { datastructures.AttributeJoint attrJoint = new datastructures.AttributeJoint(); for (dependency.ADependency obj : this.df) { attrJoint.addAttributes(obj.getAntecedent()); attrJoint.addAttributes(obj.getConsequent()); } return a...
public void init5() { for (int x = ((Global.WIDTH) / 2) - 1; x < (((Global.WIDTH) / 2) + 2); x++) { body.add(new java.awt.Point(x, (-3))); body.add(new java.awt.Point((((Global.WIDTH) / 2) - 1), (-2))); } }
public void init5() { for (int x = ((Global.WIDTH) / 2) - 1; x < (((Global.WIDTH) / 2) + 2); x++) { body.add(new java.awt.Point(x, (-3))); } body.add(new java.awt.Point((((Global.WIDTH) / 2) - 1), (-2))); }
public akayerov.getsnils.IpraFile getNextDir() { while ((idx) < (fList.length)) { java.lang.String sogrn = null; if (!(fList[idx].isFile())) sogrn = fList[idx].getName(); java.lang.String namefile = sogrn; return new akayerov.getsnils.IpraFile(fList[((idx)++)].ge...
public akayerov.getsnils.IpraFile getNextDir() { while ((idx) < (fList.length)) { java.lang.String sogrn = null; if (!(fList[idx].isFile())) { sogrn = fList[idx].getName(); java.lang.String namefile = sogrn; return new akayerov.getsnils.IpraFile(fList[((idx)++)].g...
public static boolean isEclipseDebug() { boolean debuggerEnabled = false; org.osgi.framework.BundleContext bundleContext = org.osgi.framework.FrameworkUtil.getBundle(org.talend.commons.runtime.debug.TalendDebugHandler.class).getBundleContext(); org.osgi.framework.ServiceReference<org.eclipse.osgi.service.de...
public static boolean isEclipseDebug() { boolean debuggerEnabled = false; org.osgi.framework.BundleContext bundleContext = org.osgi.framework.FrameworkUtil.getBundle(org.talend.commons.runtime.debug.TalendDebugHandler.class).getBundleContext(); if (bundleContext == null) { return false; } or...
public java.lang.String getMdScript() { if ("".equals(this.mdScript)) { return null; } java.lang.String function = ((("function " + (this.name)) + "(") + (this.params)) + ") {\n"; function = function + (this.mdScript); function = function + "\n}"; return function; }
public java.lang.String getMdScript() { if ("".equals(this.mdScript)) { return null; } java.lang.String function = ((("function " + (this.getName())) + "(") + (this.params)) + ") {\n"; function = function + (this.mdScript); function = function + "\n}"; return function; }
public void testListNames_emptymetaStoreFactory() throws org.pentaho.metastore.api.exceptions.MetaStoreException { org.pentaho.metastore.api.IMetaStore metaStore = org.mockito.Mockito.mock(org.pentaho.metastore.api.IMetaStore.class); java.util.List<java.lang.String> expectedNames = new java.util.ArrayList<>(); ...
public void testListNames_emptymetaStoreFactory() throws org.pentaho.metastore.api.exceptions.MetaStoreException { org.pentaho.metastore.api.IMetaStore metaStore = mock(org.pentaho.metastore.api.IMetaStore.class); java.util.List<java.lang.String> expectedNames = new java.util.ArrayList<>(); verify(metaStore...
public final org.jivesoftware.smack.util.XmlStringBuilder toXML() { org.jivesoftware.smack.util.XmlStringBuilder xml = new org.jivesoftware.smack.util.XmlStringBuilder(this); addExtraAttributes(xml); if ((candidates.isEmpty()) && (infos.isEmpty())) { xml.closeEmptyElement(); }else { xml....
public final org.jivesoftware.smack.util.XmlStringBuilder toXML() { org.jivesoftware.smack.util.XmlStringBuilder xml = new org.jivesoftware.smack.util.XmlStringBuilder(this); addExtraAttributes(xml); if ((candidates.isEmpty()) && ((info) == null)) { xml.closeEmptyElement(); }else { xml.r...
public org.exoplatform.task.dao.TaskQuery clone() { org.exoplatform.task.dao.condition.Condition condition = getCondition(); return new org.exoplatform.task.dao.TaskQuery((condition != null ? ((org.exoplatform.task.dao.condition.AggregateCondition) (condition)) : null), getOrderBy(), ((projectIds) != null ? new...
public org.exoplatform.task.dao.TaskQuery clone() { org.exoplatform.task.dao.condition.Condition condition = getCondition(); return new org.exoplatform.task.dao.TaskQuery((condition != null ? ((org.exoplatform.task.dao.condition.AggregateCondition) (condition.clone())) : null), getOrderBy(), ((projectIds) != nu...
public static boolean add(tds.Task task) { boolean isAdded = true; for (java.util.TreeSet<tds.Task> tree : tds.TaskTree.taskTrees) { if (!(tree.add(task))) { isAdded = false; } } tds.TaskTree.increaseTaskListSize(); tds.TaskTree.pushAddToStorage(task); return isAdded;...
public static boolean add(tds.Task task) { boolean isAdded = true; for (java.util.TreeSet<tds.Task> tree : tds.TaskTree.taskTrees) { if (!(tree.add(task))) { isAdded = false; } } if (isAdded) { tds.TaskTree.increaseTaskListSize(); tds.TaskTree.pushAddToStorage...
private void OnChatSendTextMessageResult(int eGroupType, long nGroupID, long nFromUserID, long nToUserID, java.lang.String sSeqID, int nResult) { if ((callbacks.size()) > 0) { for (java.lang.ref.WeakReference<com.V2.jni.callback.ChatRequestCallback> wf : callbacks) { if ((wf.get()) == null) { ...
private void OnChatSendTextMessageResult(int eGroupType, long nGroupID, long nFromUserID, long nToUserID, java.lang.String sSeqID, int nResult) { synchronized(callbacks) { if ((callbacks.size()) > 0) { for (java.lang.ref.WeakReference<com.V2.jni.callback.ChatRequestCallback> wf : callbacks) { ...
public rx.Observable<java.util.List<java.lang.String>> get(java.lang.String query) { if (android.text.TextUtils.isEmpty(query)) { return rx.Observable.just(new java.util.ArrayList<>()); } return rx.Observable.just(rejasupotaro.mds.data.models.Pokemons.allPokemonNames()); }
public rx.Observable<java.util.List<java.lang.String>> get(java.lang.String query) { if (android.text.TextUtils.isEmpty(query)) { return rx.Observable.just(new java.util.ArrayList<>()); } return rx.Observable.just(rejasupotaro.mds.data.models.Pokemons.allPokemonNames(query)); }
public void handleMessage(android.os.Message msg) { new com.kame.tafhd.Publisher().publish("I am in hanlderMessage()"); switch (msg.what) { case com.kame.tafhd.MainActivity.TEST_MSG : new com.kame.tafhd.Publisher().publish(((java.lang.String) (msg.obj))); break; case com....
public void handleMessage(android.os.Message msg) { switch (msg.what) { case com.kame.tafhd.MainActivity.TEST_MSG : new com.kame.tafhd.Publisher().publish(((java.lang.String) (msg.obj))); break; case com.kame.tafhd.MainActivity.UNRELEVANT_MSG : new com.kame.tafhd....
public java.lang.String findParameterInExtension(org.eclipse.core.runtime.IConfigurationElement configurationElement, java.lang.String parameter) { for (org.eclipse.core.runtime.IConfigurationElement configurationElementChild : configurationElement.getChildren(parameter)) { if ((configurationElementChild.ge...
public java.lang.String findParameterInExtension(org.eclipse.core.runtime.IConfigurationElement configurationElement, java.lang.String parameter) { if (configurationElement != null) { for (org.eclipse.core.runtime.IConfigurationElement configurationElementChild : configurationElement.getChildren(parameter))...
public void storeScores(java.util.List scores) { android.content.SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(context); android.content.SharedPreferences.Editor editor = prefs.edit(); com.google.gson.Gson gson = new com.google.gson.Gson(); java.lang.String s...
public android.content.SharedPreferences storeScores(java.util.List scores) { android.content.SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences(context); android.content.SharedPreferences.Editor editor = prefs.edit(); com.google.gson.Gson gson = new com.google.gson.G...
public java.util.List<com.gradians.prepwell.db.Skill> getSkills() { java.util.ArrayList<java.lang.String> stringIds = new java.util.ArrayList<java.lang.String>(); for (int j : mSkillIds) stringIds.add(java.lang.Integer.toString(j)); return new co.uk.rushorm.core.RushSearch().whereIN("dbId", str...
public java.util.List<com.gradians.prepwell.db.Skill> getSkills() { if (mSkillIds.isEmpty()) return null; java.util.ArrayList<java.lang.String> stringIds = new java.util.ArrayList<java.lang.String>(); for (int j : mSkillIds) stringIds.add(java.lang.Integer.toString(j)); return ...
public void init() { allKeszKisz = keszKiszFacade.findAll(); allKeszitmeny = keszitmenyFacade.findAll(); allKiszereles = kiszerelesFacade.findAll(); keszitmenyID = allKeszitmeny.get(0).getId(); kiszerelesID = allKiszereles.get(0).getId(); }
public void init() { allKeszKisz = keszKiszFacade.findAll(); allKeszitmeny = keszitmenyFacade.findAll(); allKiszereles = kiszerelesFacade.findAll(); if (!(allKeszitmeny.isEmpty())) { keszitmenyID = allKeszitmeny.get(0).getId(); } if (!(allKiszereles.isEmpty())) { kiszerelesID = a...
public boolean verify(org.spongepowered.api.entity.living.Living living) { java.util.Optional<net.minecraft.item.ItemStack> optHeld = ((org.spongepowered.api.entity.ArmorEquipable) (living)).getItemInHand(); if ((optHeld.isPresent()) && ((optHeld.get().getItem()) == (com.skelril.skree.content.registry.item.Cust...
public boolean verify(org.spongepowered.api.entity.living.Living living) { if (!(living instanceof org.spongepowered.api.entity.ArmorEquipable)) { return false; } java.util.Optional<net.minecraft.item.ItemStack> optHeld = ((org.spongepowered.api.entity.ArmorEquipable) (living)).getItemInHand(); ...
public java.lang.String toGhName() { java.lang.String groupDelimiter = (isExclusive) ? model.TurboLabel.EXCLUSIVE_DELIM : model.TurboLabel.NONEXCLUSIVE_DELIM; java.lang.String groupPrefix = ((getGroup()) == null) ? "" : (getGroup()) + groupDelimiter; java.lang.String groupAppended = groupPrefix + (getName()...
public java.lang.String toGhName() { java.lang.String groupDelimiter = (isExclusive) ? model.TurboLabel.EXCLUSIVE_DELIM : model.TurboLabel.NONEXCLUSIVE_DELIM; java.lang.String groupPrefix = (((getGroup()) == null) || (getGroup().isEmpty())) ? "" : (getGroup()) + groupDelimiter; java.lang.String groupAppende...
public void test4() throws com.silicolife.textmining.core.interfaces.core.dataaccess.exception.ANoteException, com.silicolife.textmining.processes.ir.patentpipeline.core.searchmodule.WrongIRPatentIDRecoverConfigurationException { java.lang.String identifier = "fucoxanthin"; main.com.silicolife.textmining.patent...
public void test4() throws com.silicolife.textmining.core.interfaces.core.dataaccess.exception.ANoteException, com.silicolife.textmining.processes.ir.patentpipeline.core.searchmodule.WrongIRPatentIDRecoverConfigurationException { java.lang.String identifier = "fucoxanthin"; main.com.silicolife.textmining.patent...
private static int buildMaxIndexPages(int allPageNo, java.lang.Integer maxIndexPages) { if ((com.feilong.core.util.Validator.isNullOrEmpty(maxIndexPages)) || (0 <= maxIndexPages)) { if (allPageNo > 1000) { return 6; }else if (allPageNo > 100) { return 8; ...
private static int buildMaxIndexPages(int allPageNo, java.lang.Integer maxIndexPages) { if ((com.feilong.core.util.Validator.isNullOrEmpty(maxIndexPages)) || (maxIndexPages <= 0)) { if (allPageNo > 1000) { return 6; }else if (allPageNo > 100) { return 8; ...
public final void getGrants(@org.springframework.web.bind.annotation.RequestBody final java.lang.String json, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException { gov.ehawaii.hacc.web.controllers.MainController.LOGGER.info(("JSON: " + json)); java.util.Map<java.lang.String, java.l...
public final void getGrants(@org.springframework.web.bind.annotation.RequestBody final java.lang.String json, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException { java.util.Map<java.lang.String, java.lang.Object> parameters = new com.fasterxml.jackson.databind.ObjectMapper().readValue...
private java.util.List getCentroids() { java.util.List centroids = new java.util.ArrayList(NUM_CLUSTERS); for (Cluster cluster : clusters) { Point aux = cluster.getCentroid(); Point point = new Point(aux.getX(), aux.getY()); centroids.add(point); } return centroids; }
private java.util.List getCentroids() { java.util.List centroids = new java.util.ArrayList(NUM_CLUSTERS); for (java.lang.Object cluster : clusters) { Point aux = ((Cluster) (cluster)).getCentroid(); Point point = new Point(aux.getX(), aux.getY()); centroids.add(point); } return c...
private java.lang.String saveUser(org.springframework.ui.Model model, @javax.validation.Valid com.oreva.simpleweb.mvc.web.stubs.UserStub userStub, org.springframework.validation.Errors errors) { java.lang.String currentPage = "users/edit"; java.lang.String nextPage = "redirect:/messages/result"; if (errors....
private java.lang.String saveUser(org.springframework.ui.Model model, @org.springframework.web.bind.annotation.ModelAttribute(value = "userStub") @javax.validation.Valid com.oreva.simpleweb.mvc.web.stubs.UserStub userStub, org.springframework.validation.Errors errors) { java.lang.String currentPage = "users/edit"; ...
public void messageArrived(java.lang.String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) { if (((mTopicCallbacks) == null) || (mTopicCallbacks.isEmpty())) return ; final java.util.List<io.relayr.websocket.WebSocketCallback> callbacks = mTopicCallbacks.get(topic); for (io.relayr.we...
public void messageArrived(java.lang.String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) { if (((mTopicCallbacks) == null) || (mTopicCallbacks.isEmpty())) return ; for (io.relayr.websocket.WebSocketCallback socketCallback : mTopicCallbacks.get(topic)) socketCallback.successCal...
public static void fatal(java.lang.String location, java.lang.String error, java.lang.Throwable cause) { java.lang.System.err.println(((location + ": ") + error)); cause.printStackTrace(); if ((sutilities.Debugger.logger_) != null) sutilities.Debugger.logger_.log("SEVERE", location, error, cause, tr...
public static void fatal(java.lang.String location, java.lang.String error, java.lang.Throwable cause) { java.lang.System.err.println(((location + ": ") + error)); if (cause != null) cause.printStackTrace(); if ((sutilities.Debugger.logger_) != null) sutilities.Debugger.logger_.log("SEV...
private void resolvePropertyAccessor(@org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.BodiesResolveContext c, @org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.ObservableBindingTrace fieldAccessTrackingTrace, @org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.PropertyDescriptor...
private void resolvePropertyAccessor(@org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.BodiesResolveContext c, @org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.ObservableBindingTrace fieldAccessTrackingTrace, @org.jetbrains.annotations.NotNull org.jetbrains.kotlin.resolve.PropertyDescriptor...
private void connectRight(int i, int j) { if (j < ((n) - 1)) { int right = getPosition(i, (j + 1)); if (isOpen(right)) { grid.union(right, getPosition(i, j)); } } }
private void connectRight(int i, int j) { if (j < (n)) { int right = getPosition(i, (j + 1)); if (isOpen(right)) { grid.union(right, getPosition(i, j)); } } }
public void run() { if (false == (bHandshakeResponse)) { if ((com.freerdp.freerdpcore.presentation.FiwoServerSetting.mHandler) != null) { android.os.Message msg1 = new android.os.Message(); msg1.what = com.freerdp.freerdpcore.utils.appdefine.MSG_CONNECT_RESPONSE; com.free...
public void run() { if (bHandshakeResponse) { if ((com.freerdp.freerdpcore.presentation.FiwoServerSetting.mHandler) != null) { android.os.Message msg1 = new android.os.Message(); msg1.what = com.freerdp.freerdpcore.utils.appdefine.MSG_CONNECT_RESPONSE; com.freerdp.freerdp...
public float get(com.s13g.winston.lib.temperature.Temperature.Unit unit) { if ((mUnit) == unit) { return mValue; } if ((unit == (com.s13g.winston.lib.temperature.Temperature.Unit.CELSIUS)) && ((mUnit) == (com.s13g.winston.lib.temperature.Temperature.Unit.FAHRENHEIT))) { return ((mValue) * 1....
public float get(com.s13g.winston.lib.temperature.Temperature.Unit unit) { if ((mUnit) == unit) { return mValue; } if ((unit == (com.s13g.winston.lib.temperature.Temperature.Unit.CELSIUS)) && ((mUnit) == (com.s13g.winston.lib.temperature.Temperature.Unit.FAHRENHEIT))) { return ((mValue) - 32...
void enterInputValue(final org.openqa.selenium.WebElement inputElement, final java.lang.String value) throws java.lang.Exception { waitForElementVisible(inputElement); final java.lang.String inputID = inputElement.getAttribute("id"); summonTooltip(inputID); showInputField(inputID); for (int i = 0; i...
void enterInputValue(final org.openqa.selenium.WebElement inputElement, final java.lang.String value) throws java.lang.Exception { waitForElementVisible(inputElement); final java.lang.String inputID = inputElement.getAttribute("id"); summonTooltip(inputID); showInputField(inputID); for (int i = 0; i...