text
stringlengths
14
410k
label
int32
0
9
@Override public AbstractPlay getBest() { return mkRandom(); }
0
public void dumpSource(jode.decompiler.TabbedPrintWriter writer) throws java.io.IOException { if (destination == null) writer.println("GOTO null-ptr!!!!!"); else writer.println("GOTO " + destination.getLabel()); }
1
@Override public String next() { StringBuilder text = new StringBuilder(""); File file = iterator.next(); try (FileInputStream in = new FileInputStream(file)) { int c; while ((c = in.read()) != -1) { text.append((char) c); } } catch (IOException e) { e.printStackTrace(); } ...
2
public void setDepartureDate(LocalDate value) { this._departureDate = value; }
0
public void loadMap() { System.out.println("Loading mygraph.bin"); try { FileInputStream file = new FileInputStream("mygraph.bin"); ObjectInputStream in = new ObjectInputStream(file); ArrayList<Node> cities= new ArrayList<Node>(); Node city = (Node) in.readObject(); boolean load = true; while (l...
6
private void saveResults(){ // Save the result if (irLists == null) generateSearchResults(); Writer writer = null; try{ writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(resultFile), "utf-8")); for (IRList irList : irLists){ ...
8
public void run() { try { while(true) { if(!sc.getUserMap().keySet().isEmpty()) { byteArray = new byte[1024]; byteArray = Protocol.GET_PING.getBytes("UTF-8"); sendPacket = new DatagramPacket(byteArray, byteArray.length, InetAddress.getByName("234.5.6.7"), 9998); sc.getMulticastSoc...
5
public boolean classify(double[] data) { double sum = 0; //create a new data vector to encompass all data points plus classifier double[] vector = new double[data.length+1]; double norm = 1; for (int i = 0; i < data.length; i++) { vector[i] = data[i]; norm += data[i]*data[i]; } //test for positiv...
5
private static Item cmp(char c) { pos++; char c2 = text.charAt(pos); if(c2 == '=') { pos++; Item i = null; if(c == '=') { i = new Item(id, Constants.EQL, null); } else if(c == '>') { i = new Item(id, Constants.GEQ, null); } else if(c == '<') { i = new Item(id, Constants.LEQ, nu...
7
public boolean firstName(String firstName) { if (firstName == null || firstName.isEmpty()) { return false; } if ((int) firstName.charAt(0) < 65 || (int) firstName.charAt(0) > 90) { return false; } for (int i = 1; i < firstName.length(); i++) { ...
7
public static void main(String[] args) { Scanner in = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out); int n = in.nextInt(); int a=0,b=0,c=0; for (int i = 0 ; i < n ; i++){ String t = in.next(); in.next(); switch(t){ ...
7
@Override public void remove(int i) { for(int j = i; j<this.size-1;j++){ this.keys[j] = this.keys[j+1]; this.values[j] = this.values[j+1]; } this.size--; }
1
@Override public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException { //Estamos entrando com um novo nome? if(scores.newEntry && newName != null){ scores.fontScore.drawString(150, 100, "Please, Enter Your Name:"); scores.fontScore.draw...
2
public DynamicArray<Edge> getEdges() { return edges; }
0
@Override public boolean setGloves(Wearable gloves) throws NoSuchItemException, WrongItemTypeException { if (gloves != null) { if (gloves instanceof Gloves) { if (gloves.getLevelRequirement() > level || gloves.getStrengthRequirement() > stats[0] || gloves.getDexterityRequirement() > stats[1] || gloves.g...
8
void checkClass(DiagnosticPosition pos, Symbol c, List<JCTree> supertypes) { if ((c.flags_field & ACYCLIC) != 0) return; if (seenClasses.contains(c)) { errorFound = true; noteCyclic(pos, (ClassSymbol)c); } else if (!c.type.isErroneous()...
9
@RequestMapping(value = "del", method = RequestMethod.POST) @ResponseBody public Map del(@RequestParam int[] id) { Map<String, Object> map = new HashMap<>(); List<String> l1 = new ArrayList<>(); List<String> l2 = new ArrayList<>(); List<String> l3 = new ArrayList<>(); f...
5
String unescapeEntities(boolean inAttribute) { StringBuilder builder = new StringBuilder(); while (!reader.isEmpty()) { builder.append(reader.consumeTo('&')); if (reader.matches('&')) { reader.consume(); char[] c = consumeCharacterReference(null, i...
4
private Reuna maaritaTormaysReuna(Rectangle tormaajanSuorakulmio, Rectangle tormattavanSuorakulmio) { int toleranssi = 3; int tormaajanKeskiPisteX = tormaajanSuorakulmio.x + tormaajanSuorakulmio.width / 2; int tormaajanKeskiPisteY = tormaajanSuorakulmio.y + tormaajanSuorakulmio.height /...
6
@Override public void mouseDragged(MouseEvent event) { if (draw && generalTab.isDrawOn() && generalTab.getSelectedMode().equals(CellType.BARRIER)) { int x = (event.getX() / Variables.POINT_SIZE); int y = (event.getY() / Variables.POINT_SIZE); if (x >= Variables.START_DISPLAY && x <= Variables.END_DISPL...
7
private boolean jj_scan_token(int kind) { if (jj_scanpos == jj_lastpos) { jj_la--; if (jj_scanpos.next == null) { jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); } else { jj_lastpos = jj_scanpos = jj_scanpos.next; } } else { jj_scanpos = jj_...
9
@SuppressWarnings("unused") public synchronized Resource getResource(Object key){ if(shutdown) throw new IllegalStateException(); Resource res = new ResourceImpl(key); if(res == null){//The key is not available. res.release(); } else{//The key is available. Reference<?> ref = new PhantomReference<O...
3
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Vector3 other = (Vector3) obj; if (Double.doubleToLongBits(this.x) != Double.doubleToLongBits(other.x)) {...
5
private void txtEdgeCostKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_txtEdgeCostKeyPressed if (evt.getKeyCode() == 10) { if (!txtVertexName.getText().isEmpty() && txtVertexName.getText().length() != 0) { drawing.addVertex(txtVertexName.getText()); txtVer...
4
private MeiyoScanner() { // do nothing }
0
protected void setTeamLeader(String team) { Object selectededO = null; String selectedValue = null; if (team.equals("A")) { selectededO = teamACDJlst.getSelectedValue(); if (selectededO != null) { selectedValue = selectededO.toString(); int input = JOptionPane.showOptionDialog(createDebateJfme, "You...
6
@RequestMapping(value = {"/CuentaBancaria/{idCuentaBancaria}"}, method = RequestMethod.PUT) public void update(HttpServletRequest httpRequest, HttpServletResponse httpServletResponse, @PathVariable("idCuentaBancaria") int idCuentaBancaria, @RequestBody String json) { try { ObjectMapper objectMap...
2
public static void main(String[] args) { // Lotto 649 requires that six unique numbers be chosen. int[] selectedNumbers = new int[6]; // Assign a unique random number from 1 to 49 (inclusive) to each slot // in the selectedNumbers array. for (int slot = 0; slot < selectedNumbers.length; slot++) { int num; ...
5
public void saveMap(){ browser.setSelectedFile(new File(mapName)); browser.setDialogTitle("Save Map File"); browser.setCurrentDirectory(new File(directory)); browser.setFileFilter(fileFormats); int actionDialog = browser.showSaveDialog(null); switch (actionDialog) { ...
8
final int[] method3042(int i, int i_2_) { anInt9454++; int[] is = ((Class348_Sub40) this).aClass191_7032.method1433(0, i); if (i_2_ != 255) anInt9451 = -74; if (((Class191) ((Class348_Sub40) this).aClass191_7032).aBoolean2570) { int i_3_ = Class239_Sub18.anIntArray6035[i]; int i_4_ = -2048 + i_3_ >> ...
7
public static String hashPassword(String passwordClear) { return BCrypt.hashpw(passwordClear, BCrypt.gensalt()); }
0
public void setRoot(String root) { if (!root.startsWith("http://")) { root = "http://" + root; } this.root = root; }
1
@Override public boolean equals(Object o){ if(!(o instanceof FileModel)){ return false; } FileModel fm = (FileModel)o; return fm.getFilename().equals(this.getFilename()); }
1
public boolean equalsExpr(final Expr other) { return (other instanceof UCExpr) && super.equalsExpr(other) && (((UCExpr) other).kind == kind); }
2
public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line = ""; StringBuilder out = new StringBuilder(); Edmons_karp f; int nNet = 1; while ((line = in.readLine()) != null) { int nNodes = Integer.parseInt(line.trim())...
4
@Override public String toString() { switch (this) { case Waiting: return ChatColor.DARK_GREEN + "Waiting"; case PreGame: return ChatColor.GOLD + "PreGame"; case Ingame: return ChatColor.DARK_RED + "Ingame"; case Lobby: return C...
4
public String getMessage() { if (!specialConstructor) { return super.getMessage(); } String expected = ""; int maxSize = 0; for (int i = 0; i < expectedTokenSequences.length; i++) { if (maxSize < expectedTokenSequences[i].length) { maxSize = expectedTokenSequences[i].length; ...
9
static String getName(int alarm){ switch(alarm){ case NoAlarm: return "None"; case ServerExceptionAlarm: return "Server Exception"; case NoServerResponseAlarm: return "No Server Response"; case HeadersChanged...
8
public static void extract(File file, String outDir) { String result=""; String outFileName = null; POITextExtractor extractor = null; boolean filefound=false; try { FileInputStream fis = new FileInputStream(file.getAbsolutePath()); if (file.getName().toLowerCase().endsWith(".docx")) { ...
4
@Override public void actionPerformed(ActionEvent e) { frame.getContentPane().removeAll(); if (visibleScreen.getSetup().getRound().getPlayerToFollow().getAvatar().toString().equals("Calamity Janet")) { visibleScreen.getSetup().getRound().getDiscardpile().place(visibleScreen.getSetup()....
5
@Test public void betaAgingShouldBeCorrect() { assertEquals("Check that the year is 4000BC from start", -4000, game.getAge()); //runs 20 rounds... for(int i = 0; i < 40; i++) { game.endOfTurn(); } assertEquals("Check that the year is 4000BC from start", -2000, game.getAge()); //runs 20 rounds... ...
9
private static void drawCircle(Image image, int x0, int y0, int radius) { int error = 1 - radius; int errorY = 1; int errorX = -2 * radius; int x = radius, y = 0; paintRed(image, x0, y0 + radius); paintRed(image, x0, y0 - radius); paintRed(image, x0 + radius, y0); paintRed(image, x0 - radius,...
2
protected boolean disconnectOutput(NeuralConnection o, int n) { int loc = -1; boolean removed = false; do { loc = -1; for (int noa = 0; noa < m_numOutputs; noa++) { if (o == m_outputList[noa] && (n == -1 || n == m_outputNums[noa])) { loc =noa; break; } } if (loc >...
8
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } DefaultFeatureHolder other = (DefaultFeatureHolder) obj;...
6
public static void UpdateExportFile(String profile, String genername, String exportfile) { File file = new File(profile); if (file.exists()) { try { // Create a factory DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); // Use the factory to create a builder ...
7
public LinkedList<FaultsStore> getFaults(){ LinkedList<FaultsStore> psl = new LinkedList<FaultsStore>(); Connection Conn; FaultsStore ps = null; ResultSet rs = null; try { Conn = _ds.getConnection(); } catch (Exception et) { System.out.println("No Connection in Faults Model"); return null; } ...
7
public org.omg.CORBA.Any callOperation (String operation, RTT.corba.CAnyArgumentsHolder args) throws RTT.corba.CNoSuchNameException, RTT.corba.CWrongNumbArgException, RTT.corba.CWrongTypeArgException, RTT.corba.CCallInterrupted { org.omg.CORBA.portable.InputStream $in = null; try { ...
6
public E get(int index) { if ((index == (size() - 1)) && (!isProperList())) { return getDottedElement(); } else { return super.get(index); } }
2
public void UnionMap(HashMap<String, HashMap<String, Integer>> mastermap,List<String>tmpAuthors,HashMap<String, Integer>tmpInauthorMap) { for(String key:tmpAuthors) { if(mastermap.containsKey(key)) { HashMap<String, Integer>tmpHashMap=mastermap.get(key); for(String obj:tmpInauthorMap.keySet()) { ...
4
public static void main(String[] args) { System.out.println("\t\t\t\tM É T O D O D E R U N G E - K U T T A" + "\n\t\tP A R A R E S O L V E R E C U A C I O N E S D I F E R E N C I A L E S"); System.out.print("Número de iteraciones: "); int iteraciones = new Scanner(Syst...
9
public void recursiveTraverse(int[][] mask, int[][] c, int Astart, ArrayList[] AinT, ArrayList[] BinT){ if(!AinT[0].contains(Astart)) // shouldn't need this conditional... AinT[0].add(new Integer(Astart)); for(int j = 0; j < mask[0].length; j++){ if(c[Astart][j] == 0 && mask[Asta...
8
public SimpleVector getUpVector() { return cam.getUpVector(); }
0
public void putAll( Map<? extends Short, ? extends V> map ) { Iterator<? extends Entry<? extends Short,? extends V>> it = map.entrySet().iterator(); for ( int i = map.size(); i-- > 0; ) { Entry<? extends Short,? extends V> e = it.next(); this.put( e.getKey(), e.getValue() ); ...
8
public void teach() throws NNException { int discrepancies = 0; double objectiveValue = objectiveFunction(); while (true) { System.out.println("Objective value = " + objectiveValue); // Perform gradient descent optimization: for (Pattern<?,?> pattern : patterns) { performGradientDescent(pattern); ...
9
public String getTranslationOnly( int langID ) { if ( ( langID >= 0 ) && ( langID < numberOfTranslations ) ) { TValueEntry dummy = values[langID] ; if ( dummy != null ) { return dummy.value ; } } else if ( TLanguageList.DEFAULT_LANG == langID ) { // no transla...
5
@Override public void run() { if (running) return; running = true; if (instance != null) try { instance.generate1(); } catch (Exception e) { e.printStackTrace(); } running = false; }
3
public void setServer(String server) { serverVersion = server; }
0
public static boolean postResult2Qc(String testsetName, String testName, String testInstanceName, QcTestStatus testStatus, List<String> logFileNames) ...
8
public void setParent(Tile parent) { this.parent = parent; }
0
@Override public String toString() { if (filterConfig == null) { return ("FiltradoSesion()"); } StringBuffer sb = new StringBuffer("FiltradoSesion("); sb.append(filterConfig); sb.append(")"); return (sb.toString()); }
1
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
@Override public String getColumnName(int column) { switch (column) { case 0: return "№"; case 1: return "Рег номер"; case 2: return "От"; case 3: return "Н...
7
public EventBranchListResponse( final Boolean success, final String errorMessage, final List<EventBranch> eventBranchList ) { super(success, errorMessage); this.eventBranchList = eventBranchList; }
0
private static List<Node> neighbors(int i, int j, char[][] a, int M, int N) { List<Node> list = new ArrayList<>(); if (i - 1 >= 0 && a[i-1][j] == '.') list.add(new Node(i-1, j, 0)); if (i + 1 < M && a[i+1][j] == '.') list.add(new Node(i+1, j, 0)); if (j - 1 >= 0 && a[i][j-1] == ...
8
@Override protected void protectedCollideWith(Player player) { if(isActive()) { this.setActive(false); this.exploded = true; player.decrementTurnsWithThree(); } }
1
public void start() { if(AnimationPlayer != null && AnimationPlayer.isAllive()) { AnimationPlayer.stopAnimation(); } AnimationPlayer = new AsyncAnimationPlayer(this); }
2
@Override public void push(int value) { for (int i = amount; i > 0; i--) { stack[i] = stack[i - 1]; } stack[0] = value; amount++; }
1
public void insert(T val) { Node newNode = new Node<>(val, null, null); if(root == null) { root = newNode; return; } Node runnerNode = root; while(true) { int rc = runnerNode.data().compareTo(val); if(rc < 0) { if(runnerNode.right() != null) { runnerNode = runnerNode.right(); } e...
6
@Override public boolean invoke(MOB mob, List<String> commands, Physical givenTarget, boolean auto, int asLevel) { MOB target=mob; if((auto)&&(givenTarget!=null)&&(givenTarget instanceof MOB)) target=(MOB)givenTarget; if(target.fetchEffect(this.ID())!=null) { target.tell(L("You are already phosphoresce...
8
private static int findByte(int numTry) { int max = possibleKeys.get(0).getKey(), min = possibleKeys.get(0) .getKey(), index = 0; for (int i = 0; i < possibleKeys.size(); i++) { if (possibleKeys.get(i).getKey() > max) { max = possibleKeys.get(i).getKey(); } if (possibleKeys.get(i).getKey() < min) ...
9
private void removeAllChildren(SVGTextElement text) { while (text.getLastChild() != null) { text.removeChild(text.getLastChild()); } }
1
public doActions(String action) { this.action = action; }
0
public Map<Noppa, Integer> laskeNopittain(Set<Noppa> nopat){ Map<Noppa, Integer> lasketutnopat = new HashMap<Noppa, Integer>(); for (int i = 1; i<7 ; i++) { lasketutnopat.put(new Noppa(i), 0); } for (Noppa nopsu : nopat) { for (Noppa nopsuverr...
4
public void setAddress(String address) { if (StringUtils.isBlank(address)) { throw new IllegalArgumentException("Address shouldn't be blank, NULL or empty."); } this.address = address; }
1
private DockContainer getFocusedDockContainerInternal() { for (DockLayoutNode child : mChildren) { if (child instanceof DockContainer) { DockContainer dc = (DockContainer) child; if (dc.isActive()) { return dc; } } else if (child instanceof DockLayout) { DockContainer dc = ((DockLayout) chi...
5
private static Repository parseInitialDataRepository(Document doc){ Vector<AcquirableKitchenTool> RestKitchenTools= new Vector<AcquirableKitchenTool>(); NodeList kitchenToolsList = doc.getElementsByTagName("KitchenTool"); for (int j = 0; j < kitchenToolsList.getLength(); j++) { Node kitchenToolsNode = kitchenT...
4
protected static Ptg calcMedian( Ptg[] operands ) { if( operands.length < 1 ) { return new PtgErr( PtgErr.ERROR_VALUE ); } Ptg[] alloperands = PtgCalculator.getAllComponents( operands ); CompatibleVector t = new CompatibleVector(); double retval = 0; for( Ptg p : alloperands ) { try { Doub...
5
public synchronized void actualiza(long tiempoTranscurrido){ //Si la animación tiene más de un cuadro, se actualiza if (cuadros.size() > 1){ //Se suma el tiempo transcurrido al tiempo total tiempoDeAnimacion += tiempoTranscurrido; ...
3
private static String[] dynProg(final String[] punctuation, final String[] words, final int NGramLength) { double[][][] matrix = new double[words.length][punctuation.length][2]; /* Init */ String[][] temp = fakeHyperFSA(words, 0, NGramLength); for(int i = 0; i < matrix[...
4
@Override public Query buildQuery() { Query query = getBaseQuery(); for (int i = 0; i < attributes.size(); i++) { if (dataTypeIs(i, "string")) query.substituteValue(i+1, attributes.get(i).value); else if (dataTypeIs(i, "float")) { query.substituteValue(i + 1, Float.parseFloat(attri...
5
@Override public String makeMobName(char gender, int age) { switch(age) { case Race.AGE_INFANT: case Race.AGE_TODDLER: case Race.AGE_CHILD: return name().toLowerCase()+" calf"; case Race.AGE_YOUNGADULT: switch(gender) { case 'M': case 'm': return "young " + name().toLowerCase(...
8
@Override public void updatePlayerState(Player player, ByteVector update, boolean forced, boolean chat) { synchronized(player) { int mask = 0x0; if (player.getUpdateFlags().contains("chat") && !chat) { mask |= 0x80; } if (player.getUpdateFlags().contains("appearance") || forced) { mask |= 0x10; ...
9
public boolean insertSong(Song song) { if(song.getArtistName() == null) { song.setArtistName("No Artist Name"); } if(hasArtist(song.getArtistName())) { // System.out.println("Collection owned by: " + owner + ", contains artist: " + song.getArtistName() + ", inserting song named: " + song.getTitle() + "...")...
2
protected void FillBuff() throws java.io.IOException { if (maxNextCharInd == available) { if (available == bufsize) { if (tokenBegin > 2048) { bufpos = maxNextCharInd = 0; available = tokenBegin; } else if (tokenBegin < 0) bufpos = maxN...
9
public void setBackRightThrottle(int backRightThrottle) { this.backRightThrottle = backRightThrottle; if ( ccDialog != null ) { ccDialog.getThrottle4().setText( Integer.toString(backRightThrottle) ); } }
1
@Override Integer redactEntity(Criteria criteria, AbstractDao dao) throws DaoException { Integer idDirection = (Integer) criteria.getParam(DAO_ID_DIRECTION); if (idDirection != null) { return updateDirection(criteria, dao); } else { return createDirection(criteria, da...
1
public Color getColor(int x, int y) { return jFenrir.getPixelColor(x, y); }
0
private void loadClip(String fnm) { try { // Acceder al archivo de audio como un stream AudioInputStream stream = AudioSystem.getAudioInputStream(this.getClass().getClassLoader().getResourceAsStream(fnm)); // Obtener el formato del audio a partir de los datos del stream AudioFormat format = stream.get...
7
public void kiihdyta(double vaakaNopeus, double pystyNopeus){ if (Math.abs(this.vaakaNopeus + vaakaNopeus) <= maxNopeus){ this.vaakaNopeus += vaakaNopeus; } if (Math.abs(this.pystyNopeus + pystyNopeus) <= maxNopeus){ this.pystyNopeus += pystyNopeus; } }
2
public void execute(DocumentMap dm) { init(dm); if (key != null) { valueType = documentMap.getDocumentType().getType(key); } while (true) { if ((limit != 0) && (candidates.size() == limit)) { return; } candidate = indexGloba...
8
public static Direction getDirection(int dx, int dy) { if (dx > 0) { return RIGHT; } else if (dx < 0) { return LEFT; } else { if (dy > 0) { return DOWN; } else if (dy < 0) { return UP; } } throw new IllegalArgumentException("Invalid arguments: dx=" + dx + ", dy=" + dy); }
4
@Override public boolean isCellEditable(int rowIndex, int columnIndex) { switch (columnIndex) { case 1: case 2: return true; case 0: case 3: case 4: return false; default: throw new IllegalArgumentException("columnIndex"); } }
5
private void cutNode(Entry entry) { /* Begin by clearing the node's mark, since we just cut it. */ entry.mIsMarked = false; /* Base case: If the node has no parent, we're done. */ if (entry.mParent == null) return; /* Rewire the node's siblings around it, if it has any siblings...
5
public void onUpdate() { super.onUpdate(); if (this.lightningState == 2) { this.worldObj.playSoundEffect(this.posX, this.posY, this.posZ, "ambient.weather.thunder", 10000.0F, 0.8F + this.rand.nextFloat() * 0.2F); this.worldObj.playSoundEffect(this.posX, this.posY, th...
9
private Tree variablePro(){ Symbol identifier = null; Tree expression = null; if((identifier = accept(Symbol.Id.IDENTIFIER_NAME))!=null){ if((accept(Symbol.Id.PUNCTUATORS,"="))!=null){ if((expression = expressionPro())!=null){ return new Variable(identifier, expression); } return null; }...
3
@Override int utrDistance(Variant seqChange, Transcript tr) { int cdsEnd = tr.getCdsEnd(); if (cdsEnd < 0) return -1; if (isStrandPlus()) return seqChange.getStart() - cdsEnd; return cdsEnd - seqChange.getEnd(); }
2
public void totalUsuario(DefaultTableModel tableModel){ ResultSet resultado = null; tableModel.setRowCount(0); tableModel.setColumnCount(0); String sql = "select * from USUARIO"; try { resultado = consultar(sql); if(resultado != null){ int ...
7
public int removeGold(int gold) { return this.gold -= gold >= 0 ? this.gold : (this.gold = 0); }
1
public void setRunning(boolean r) { if (r == false && clientSendThread != null) { clientSendThread.setRunning(false); } running = r; }
2
public static void main(String[] argv) { try { Ideone_Service_v1ServiceLocator locator = new Ideone_Service_v1ServiceLocator(); Ideone_Service_v1Port_PortType service = locator.getIdeone_Service_v1Port(); int stat; String code="",temp="",input=""; if(argv.length!=2) ...
7