text
stringlengths
14
410k
label
int32
0
9
private long getCPtrAddRefServerInfo(ServerInfo element) { // Whenever adding a reference to the list, I remove it first (if already there.) // That way we never store more than one reference per actual contained object. // for(int intIndex = 0; intIndex < elementList.size(); intIndex++) { Object theObject = ele...
4
public String getSampleCode() { return this.sampleCode; }
0
public boolean xpathEnsure(String xpath) throws ParseException { try { //Quick exit for common case if (xpathSelectElement(xpath) != null) return false; //Split XPath into dirst step and bit relative to rootElement final XPath parseTree = XPath.get(xpath); int stepCount = 0; fo...
7
public static Double beersLaw(Double absorbtivity, Double constant, Double concentration) { boolean[] nulls = new boolean[3]; nulls[0] = (absorbtivity == null); nulls[1] = (constant == null); nulls[2] = (concentration == null); int nullCount = 0; for(int k = 0; k < nulls.length; k++) { if(nulls[k])...
6
public Serializable fromDOM(Document document) { ContextFreePumpingLemma pl = (ContextFreePumpingLemma)PumpingLemmaFactory.createPumpingLemma (TYPE, document.getElementsByTagName(LEMMA_NAME).item(0).getTextContent()); /* * Decode m, w, & i. */ pl.setM(Integer.p...
1
protected void update() { if(this.random.nextFloat() < 0.07F) { this.xxa = (this.random.nextFloat() - 0.5F) * this.runSpeed; this.yya = this.random.nextFloat() * this.runSpeed; } this.jumping = this.random.nextFloat() < 0.01F; if(this.random.nextFloat() < 0.04F) { this.yRotA = (this.random.nextFloat()...
5
public static String sanitizeWord(String word) { String result = word; for (Object obj : bannedWords) { String badWord = (String) obj; if (word.contains(badWord)) { result = ""; // RemoveInstanceOfWord and add all other parts for (String part : word.split(badWord)) { result += part + "@#$%&!"...
3
public String getId() { return id; }
0
public static void main(String[] args) { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; ComboPooledDataSource source = new ComboPooledDataSource(); try { conn = source.getConnection(); ps = conn.prepareStatement("SELECT * FROM users"); rs = ps.executeQuery(); ...
9
public boolean cancelProduction() { if (isProductionInterfaceOpen()) { if (isProductionComplete()) { if (Condition.wait(new Callable<Boolean>() { @Override public Boolean call() throws Exception { return !isProductionInterfaceOpen(); } })) { return true; } } if (ctx.wid...
5
public static StringBuffer fetchData(final String url, final TrayIcon processTrayIcon) { URL obj = null; try { obj = new URL(url); } catch (MalformedURLException e) { e.printStackTrace(); } URLConnection con = null; try { if (ApiProperties.get().getUrl().contains("https")) { setupConnection();...
5
public Object getChild(Object parent, int index) { Iterator iter = ((TreeElement) parent).getChilds().iterator(); for (int i = 0; i < index; i++) iter.next(); return iter.next(); }
1
private static void Attacking(Graphics2D gg, Base unit, int size, int resize) { //If the unit disabled MoveAndShoot, then it won't display it's attack range since it can't attack. if (unit.x != unit.oldx && unit.y != unit.oldy && !unit.MoveAndShoot) {return;} //TODO: Maybe change this into a list of points lik...
7
public BatchCreatorPanel() { this.setBounds(100, 100, 606, 396); this.listModel = new DefaultListModel<String>(); this.setLayout(new BorderLayout(0, 0)); final JPanel buttonBarPanel = new JPanel(); this.add(buttonBarPanel, BorderLayout.SOUTH); final JButton btnAddNewFolder = new JButton("Add new Folder"...
2
public boolean validMove(Move move) { //For place move if(move.IsPlaceMove) { if(!correctRowColSize(move)) return false; if(isJumpMove(move)) return false; if(placeMove(move))return true; else return false; } //For Jump Moves else { if(!correctRowColSize(move)) return false; if(!isJum...
7
public VoidParameter(String name_, String desc_) { name = name_; description = desc_; if (Configuration.head == null) Configuration.head = this; if (Configuration.tail != null) Configuration.tail.next = this; Configuration.tail = this; }
2
public static String GetRootApplicationPath() { if (s_root_application_path != null) { return s_root_application_path; } String os = System.getProperty("os.name").toLowerCase(); String path = ""; if (os.indexOf("win") >= 0) { path = "C:\\Users\\Public\\weathervane\\"; } else if (os.indexOf("mac...
7
private void btnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSearchActionPerformed String searchNum = txtSearchPartNo.getText(); if (searchNum != null && searchNum.length() > 0) { for (int i = 0; i < this.partNums.length; i++) { if (searchNum.eq...
5
final protected void dropChildren() { children=null; }
0
private boolean askForSave() { if (changed) { int answer = JOptionPane.showConfirmDialog(frmDictionaryEditor, Localization.getInstance().get("messageSaveBeforeQuit"), Localization.getInstance().get("messageSaveBeforeQuitTitle"), JOptionPane.YES_NO_CANCEL_OPTION); switch (answer) { case JOptionPane.YES_OP...
4
private void createCachedMap() { Graphics2D cachedTileImageGraphics = (Graphics2D) cachedTileImage.createGraphics(); // Start x, y from 0, and draw the total amount of visible tiles. // But add the current viewport's x,y tiles to it and draw that tile // instead. for (int x = 0, y = 0, xPos = -cameraOffsetFro...
2
public Ship(eShipType type) { this.type = type; switch (type) { case aircraftcarrier: size = 5; break; case battleship: size = 4; break; case destroyer: size = 3; break; ...
5
public boolean transaction(Transaction trans) { Connection conn = null; try { conn = ds.getConnection(); conn.setAutoCommit(false); trans.trans(conn); conn.commit(); return true; } catch (SQLException ex) { Logger.getLogger(DB.class.getName()).log(Level.SEVERE, null, ex); if (null != conn) { ...
5
@SuppressWarnings("unused") public void writeAVI() { /* * JMF Code no longer functioned for writing AVIs. Commented out and * code below was written to use a different AVI writing library. BJD: * 11-9-09 * * JpegImagesToMovie imageToMovie = new JpegImagesToMovie(); * List<String> frameNames = getF...
4
public Crossing getDestination(Person p) { Catcher c = (Catcher) p; Clue clue = process.getClue(); if( clue == null && c.peekNextPathStep() == null ) { System.out.println(c + " is going to random Crossing..."); c.setPath( pathFinder.getPath(c.getCurr(), process.getGraph(...
8
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Player other = (Player) obj; if (!Objects.equals(this.name, other.name)) { return false; ...
5
private void repetirPassKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_repetirPassKeyPressed if (evt.getKeyCode() == KeyEvent.VK_ESCAPE) { repetirPass.setText(""); repetirPass.requestFocus(); } if (evt.getKeyCode() == KeyEvent.VK_ENTER) { ManejoUsu...
7
public static void main(String[] args) { // TODO Auto-generated method stub try { LogUser frame = new LogUser(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } }
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
public void decelerate(Vector v2) { if(x == 0) { //do nothing } else if(x > 0) { if (x - v2.getX() > 0) { x = x - v2.getX(); } else { x = 0; } } else { if (x - v2.getX() < 0) { x = x - v2.getX(); } else { x = 0; } } if (y == 0) { //do nothing } else if(y > 0) ...
8
private void deleteObjects() { DictionnaireTable data = mcdComponent.getData(); String mess = Utilities .getLangueMessage("supprimer_objet_selection"); if (mcdComponent.sizeSelection() > 1) mess = "Voulez-vous vraiment supprimer les " + mcdComponent.sizeSelection() + " objets sélectionnés ?"; i...
3
private void createCellArray(String mapFile) { Scanner fileReader; ArrayList<String> lineList = new ArrayList<>(); try { fileReader = new Scanner(new File(mapFile)); while (true) { String line = null; try { ...
6
public boolean extractFile(int libraryFK, String destinationDir){ destinationDir = destinationDir.replace("\\", "/") + "/"; FileBean fileBean = getFileBean(libraryFK); if(fileBean == null) return false; boolean isSaved = saveFile(libraryFK, Resource.getString("path.temp.zip")); if(isSaved == false) re...
3
private int jjMoveStringLiteralDfa8_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(6, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(7, active0); return 8; } switch(curChar) { case 71: ...
9
public void setNeitherNor(boolean isNeitherNor) { this.isNeitherNor = isNeitherNor; }
0
public void addVertex(Land land) { laenderMap.put(land.getID(), land); }
0
public static void removeRow(int row) { int modelRow = LibraryPanel.table.convertRowIndexToModel(row); FileTraverse.list.remove(modelRow); Object[][] temp1 = new Object[7][modelRow]; Object[][] temp2 = new Object[7][(data[0].length-1) - modelRow]; Object[][] tempEnd = new Object[7][FileTraverse.list.size(...
8
public static void drawPixels(int i, int j, int k, int l, int i1) { if(k < topX) { i1 -= topX - k; k = topX; } if(j < topY) { i -= topY - j; j = topY; } if(k + i1 > bottomX) i1 = bottomX - k; if(j + i > bottomY) i = bottomY - j; int k1 = width - i1; int l1 = k + j * width; for(i...
6
final public SimpleNode Start() throws ParseException { /*@bgen(jjtree) Start */ SimpleNode jjtn000 = new SimpleNode(JJTSTART); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { expression(); jj_consume_token(22); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; {if (...
9
public void setBounds(float minx, float maxx, float miny, float maxy){ if(maxx < this.maxx) tempMaxx = maxx; else tempMaxx = maxx; if(minx > this.minx) tempMinx = minx; else tempMinx = minx; if(maxy < this.maxy) tempMaxy = maxy; else tempMaxy = maxy; if(miny > this.miny) tempMiny = miny; else tempMiny =...
4
public static void main(String[] args) throws Exception { Registry reg = LocateRegistry.getRegistry(); MasterServerClientInterface masterServer = (MasterServerClientInterface) reg .lookup("masterServer"); ReplicaLoc loc = masterServer.read("file2.txt")[0]; ReplicaServerClientInterface repServer = (ReplicaSe...
3
public static void logicCommandLoop(Module module) { { Stella_Object command = null; Stella_Object result = null; boolean eofP = false; boolean exitP = false; boolean exitcommandP = false; { Object old$Module$000 = Stella.$MODULE$.get(); Object old$Context$000 = Stella.$CONTEX...
7
public void step() { int len = length(); // remove steps that cancel out for (int i = 0; i < len; ++i) { switch (at(i)) { // We don't need this case, because the lower particle performs the same // check // case -1: // if (directInteraction && at(i - 1) == 1) { // set(i ...
8
protected boolean isArrayValue(final Value value) { Type t = ((BasicValue) value).getType(); return t != null && ("Lnull;".equals(t.getDescriptor()) || t.getSort() == Type.ARRAY); }
2
public void moveDown(){ switch (polygonPaint) { case 0: line.moveDwon(); repaint(); break; case 1: curv.moveDwon(); repaint(...
7
public int lastManStanding() //This function exists because of our 2+ player system. { if(CURRENT_PLAYER_AMOUNT == 1) { for(int i = 0; i < GameCore.PLAYER_AMOUNT;i++) { if(players[i].stillPlaying == true) { return i; } } } return -1; }
3
public boolean getBoolean(int index) throws JSONException { Object object = this.get(index); if (object.equals(Boolean.FALSE) || (object instanceof String && ((String) object) .equalsIgnoreCase("false"))) { return false; } else if (object.equal...
6
public int area() { return height * width; }
0
public static void main(String args[]) throws UserException { ORB orb = ORB.init((String[]) null, null); org.omg.CORBA.Object obj = orb.string_to_object(args[0]); Calculator stub = CalculatorHelper.narrow(obj); for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { ...
2
public MultipleChoice(boolean needsAnswer){ choices = new ArrayList<String>(); answers = new ArrayList<String>(); prompt = InputHandler.getString("Enter the prompt for your Multiple Choice question:"); int numChoices = InputHandler.getInt("Enter the number of choices: "); for (int i=1; i<=numChoices; i++){ ...
2
protected Behaviour getNextStep() { if (verbose) I.sayAbout(actor, "Getting next build step?") ; if (built.structure.needsUpgrade() && built.structure.goodCondition()) { final Action upgrades = new Action( actor, built, this, "actionUpgrade", Action.BUILD, "Upgrading "+built ...
7
public Boolean estContent(EnvironnementSegregation univert){ int etrange = 0; ArrayList<AgentHurbain> bonhomes = univert.voisins(pos_x, pos_y); for (AgentHurbain bonhomme : bonhomes) if(bonhomme != null && bonhomme.type!=type) etrange++; return !(((float)etrange/(float)bonhomes.size())*100 > 100-confort)...
3
private void compressStream(CompressionStream stream) { if (benchmark) startTime = System.currentTimeMillis() ; // Create the Huffman table. huffmanTable = new HuffmanTable() ; // Quantize the stream, compute deltas between consecutive elements if // possible, and histogram the data length distribution. stream....
8
public synchronized boolean isSeed() { return this.torrent.getPieceCount() > 0 && this.getAvailablePieces().cardinality() == this.torrent.getPieceCount(); }
1
public static void writeImage(BufferedImage image, String fileName) throws IOException { if (fileName == null) return; int offset = fileName.lastIndexOf( "." ); if (offset == -1) { String message = "file suffix was not specified"; throw new IOException( message ); } String type = fileName.substr...
3
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
public BoardCell pickLocation(HashSet<BoardCell> targets) { //If the list of targets locations includes a room, select that location unless the player was just in that room. //If the list does not include a room, or the room was just //visited, randomly choose from all locations (gives some chance that the playe...
9
@Override public void actionENTER() { if (Fenetre._state == StateFen.Level && _currentBird.getTakeOff() != 0 && !_currentBird.isDestructing()){ // Test s'il existe un oiseau et s'il existe demande a l'oiseau de lacher un oeuf if (Fenetre._list_birds.size() != 0 && _currentBird.getEggLeft() > 0) { Fenetre._...
5
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { if (qName.equals("eveapi")) { getResponse().setVersion(getInt(attrs, "version")); } else if (qName.equals("error")) { error = new ApiError(); error.setCode(getInt(attrs, "code")); g...
2
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
private void launchChat() throws RemoteException { // get the index of the last message sent to the server so that client // knows from where they can start printing messages this.lastDisplayedMsgIndex = stub.getLastMsgIndex(); String userInput = "", co...
4
public static boolean freeVariableP(PatternVariable variable, Proposition proposition) { { Keyword testValue000 = proposition.kind; if ((testValue000 == Logic.KWD_FORALL) || (testValue000 == Logic.KWD_EXISTS)) { if (((Vector)(KeyValueList.dynamicSlotValue(proposition.dynamicSlots, Logic.SYM...
6
public void propertyChange(PropertyChangeEvent evt) { Object source = evt.getSource(); if (source instanceof JFormattedTextField && evt.getPropertyName().equals("value") && (((JFormattedTextField) evt.getSource()).getValue() != null)) { Number newValue = null; Number value ...
8
@GET @Path("events") @Produces({MediaType.APPLICATION_JSON }) public List<Event> getEvents(){ System.out.println("Return the events list"); return JpaTest.eventService.getEvents(); }
0
private void setRij(int rij) throws IllegalArgumentException { if (rij <= 0) { throw new IllegalArgumentException("Rij mag niet onder 0 gaan"); } this.rij = rij; }
1
public static LuggageFacilityEnumeration fromValue(String v) { for (LuggageFacilityEnumeration c: LuggageFacilityEnumeration.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
2
private void handleMPClick(MouseEvent e) { xIndex = e.getX() / 100; yIndex = 0; while ((gameGrid[xIndex][yIndex + 1]).getState() == 0) { yIndex++; if (yIndex == Board.numRows - 1) { break; } } ...
7
public static void main(String[] args) { String rssFeed = "<rss version=\"0.92\">" + "<channel>" + " <title>BBC JIRA</title>" + " <link>https://jira.dev.example.com/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=assignee+%3D+currentUser%28%29+AND+status+%3D+Open</link>" + " <description>An...
8
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TailEvent<?> other = TailEvent.class.cast(obj); if (tailContents == null) { if (other.tailContents != null) return false; } else if (!ta...
7
public static void resize(int buffer, int newByteSize) { if (newByteSize < 0) throw new NegativeArraySizeException(); int buffPos = poses[buffer]; int buffLength = lengths[buffer]; lengths[buffer] = newByteSize; if (buffLength < newByteSize) { bytes = Arrays.copyOf(b...
8
public static void intersection(int x[], int y[]) { System.out.print("First Array :\t"); for (int element : x) { System.out.print(element + " "); } System.out.print("\nSecond Array :\t"); for (int element : y) { System.out.print(element + " "); } System.out.print("\n"); int len = 0; for (int i =...
9
protected Method getMethod(String name, boolean isStatic) { try { Method method = clazz.getDeclaredMethod(name, Map.class); if (!ConfigurationSerializable.class.isAssignableFrom(method.getReturnType())) { return null; } if (Modifier.isStatic(metho...
4
private static void validateProperties(Properties properties) { String portProperty = getProperty(properties, PORT_PROPERTY); try { Integer.parseInt(portProperty); } catch (NumberFormatException e) { exit("Port is not a number."); } String rootProperty = getProperty(properties, ROOT_PROPERTY); if (!(...
6
static private float[] subArray(final float[] array, final int offs, int len) { if (offs+len > array.length) { len = array.length-offs; } if (len < 0) len = 0; float[] subarray = new float[len]; for (int i=0; i<len; i++) { subarray[i] = array[offs+i]; } return subarray; }
3
protected void modeTwo(MouseEvent e, TicTacToeSubMenu sm, Main m) { int x1 = sm.getX1(); int y1 = sm.getY1(); int w1 = sm.getW1(); int h1 = sm.getH1(); if (e.getX() > x1 && e.getX() < x1 + w1) { if (e.getY() > y1 && e.getY() < y1 + h1) { m.currentMode...
8
public void visit_dmul(final Instruction inst) { stackHeight -= 4; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } stackHeight += 2; }
1
public void move() { if (direction==0) { x++; } else if (direction==90) { y--; } else if (direction==180) { x--; } else if (direction==270) { y++; } }
4
private void eventsInMind(CounterActionFactory CAF) { CloudComment cc = CAF.createCloudComment(""); SkinSwitch ss = CAF.createSkinSwitch(0); @SuppressWarnings("unchecked") HashMap<Time, String> events = (HashMap<Time, String>) Serializer.deserialize(this, "events.dat"); if (events == null) { ss.setSk...
8
public Deck() { deck = new ArrayList<Card>(); for (int i = 1; i <= NUMBER_OF_CARDS; i++) { if (i <= CARDS_FIRST_ITR) { deck.add(new Card(CardType.CLUBS, i)); } else if (i <= CARDS_SECOND_ITR) { deck.add(new Card(CardType.DIAMONDS, i - CARDS_FIRST_ITR)); } else if (i <= CARDS_THIRD_ITR) { deck.a...
4
public boolean insidePlayingField(float pf_width, float pf_height) { if(x < 0) { return false; } else if((x + brick.width) > pf_width) { return false; } if(y < Breakout.STATUS_FIELD_HEIGHT) { return false; } else if((y + brick.height) > pf_height) { return false; } return true; }
4
public static boolean is7BitASCII(String str) { int i; for(i=0;i<str.length();i++){ if(str.charAt(i)>=0x80) break; // note: change to codePointAt after we switch to java 1.5 } return (i==str.length()); }
2
public void connectDb() { startSQL(); try { Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection(url, user, password); st = con.createStatement(); } catch (Exception e) { e.printStackTrace(); ...
1
public boolean isHalted(){ return isHalted; }
0
public static void getNum() { long n = 2 * 3 * 5 * 7 * 11; while (true) { long sq = n * n; int count = 2; for (int i = 2; i < n; i++) { if (sq % i == 0) { count++; } } if (count > 1000) { ...
4
private void buildFinalResult() { int nrPlayers = profiles.size(); double[] wins = new double[nrPlayers]; double[] loses = new double[nrPlayers]; double[] ties = new double[nrPlayers]; for (int j = 0; j < nrPlayers; j++) { wins[j] = loses...
5
public void guiForOpeningAndCheckingLogFileForXML() { frmOpeningAndCheckingLogFileForXML.setSize(400, 300); frmOpeningAndCheckingLogFileForXML .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmOpeningAndCheckingLogFileForXML.setVisible(true); frmOpeningAndCheckingLogFileForXML .add(pnlOpeningAndChecki...
4
@Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Login)) { return false; } Login other = (Login) object; if ((this.userid == null && other.userid != null) || (t...
5
public static JPrimitiveType parse(JCodeModel codeModel, String typeName) { if (typeName.equals("void")) return codeModel.VOID; else if (typeName.equals("boolean")) return codeModel.BOOLEAN; else if (typeName.equals("byte")) return codeModel.BYTE; else...
9
public boolean deleteItem(int index) { int itemCount = getItemCount(); // unacceptable index - reject if (index < 0 || index >= itemCount) return false; // delete indexed entry childItems.remove(index); // successful delete return true; }
2
public void passEigenValues( double[] eigenValues, double[][] eigenVectors ) { int l = eigenValues.length; double power = 0.0; for ( int i = 0; i < l; ++ i ) power += Math.abs(eigenValues[i]); power /= 100.0; SortingEVFilter sevf = new SortingEVFilter(true, true); sevf.passEigenValues(eigenValues, eigenVectors)...
2
int get_bowl_score(int[] bowl) { int ret = 0; for (int i=0; i<bowl.length; i++) ret += bowl[i] * pref[i]; return ret; }
1
@Override public Iterator<EntityInfo> iterator() { return new Iterator<EntityInfo>() { Iterator<EntityInfo> use = inner.iterator(); @Override public boolean hasNext() { return use.hasNext(); } @Override public EntityInfo next() { EntityInfo nxt = use.next(); if (attributeFs.pathExi...
4
private int readHexDigit() throws PDFParseException { // read until we hit a non-whitespace character or the // end of the stream while (this.buf.remaining() > 0) { int c = this.buf.get(); // see if we found a useful character if (!PDFFile.isWhite...
9
public RepairIssue removeIssue(UUID hostUUID) { RepairIssue issue = null; if (unsolvedIssues_.containsKey(hostUUID)) { issue = unsolvedIssues_.remove(hostUUID); unsolvedPaths_.remove(issue.failedPeer.path); } return issue; }
1
public ResponseWrapper getResponseWrapper() { return responseWrapper; }
0
@Override public void execute(VirtualMachine vm) { super.execute(vm); ((DebuggerVirtualMachine) vm).removeSymbols(levelsOfStackToPop); }
0
public EditInfo getEditInfo(int n) { if (n == 0) { return new EditInfo(waveform == WF_DC ? "Voltage" : "Max Voltage", maxVoltage, -20, 20); } if (n == 1) { EditInfo ei = new EditInfo("Waveform", waveform, -1, -1); ei.choice = new Choice(); ...
9
public UnitType getBestDefenderType() { UnitType bestDefender = null; for (UnitType unitType : getSpecification().getUnitTypeList()) { if (unitType.getDefence() > 0 && (bestDefender == null || bestDefender.getDefence() < unitType.getDefence()) ...
6
public CheckResultMessage checkSum5(int i, int j) { int r1 = get(20, 2); int c1 = get(21, 2); int tr1 = get(36, 5); int tc1 = get(37, 5); BigDecimal sum = new BigDecimal(0); if (checkVersion(file).equals("2003")) { for (File f : Main1.files1) { try { in = new FileInputStream(f); hWorkbook =...
9
public void action(Sac[] tabSacs, RoyaumeDuFeu rdf, JFrame page, Dieu deus) { this.avancer(1); int k = 0; int nb = 0; int val; if ("Tyr".equals(deus.getNom())) { int det1 = de.getCouleur(); int det2 = de.getCouleur(); String[] choix1 = {tabSa...
5