text
stringlengths
14
410k
label
int32
0
9
public void mergeBreakedStack(VariableStack stack) { if (breakedStack != null) breakedStack.merge(stack); else breakedStack = stack; }
1
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { eventName = new javax.swing.JLabel(); eventStreet = new javax.swing.JLabel(); whereLabel = new javax.swing.JLabel(); eventDesc...
0
public void makePaths() throws IOException { PathLoader loader = new PathLoader(); path = new SVGPath(); path2 = new SVGPath(); path3 = new SVGPath(); path4 = new SVGPath(); path5 = new SVGPath(); path.setContent(loader.getPath(1)); path2.setContent(loader.getPath(2)); path3.setContent(loader.getPat...
0
public static void addUnitIntoReferential(Unite unite) { if (unite == null || unite.getGrandeur() == null || unite.getNom() == null || unite.getRatio() == null) { throw new IllegalArgumentException("Problème dans l'unitée passée en paramètre !"); } boolean premiereUnite = false; ...
9
public String getLieu() { return lieu; }
0
public static boolean saveLocal(File file) { try { PrintStream out = new PrintStream(file); out.println(userName); out.println(coins); out.println(playtime); out.println(new BigInteger(lck_lvl)); out.println(new BigInteger(lck_bg)); out.println(new BigInteger(lck_chr)); out.println(new BigInte...
1
public Abstraction(Implementor implementor) { this.implementor = implementor; }
0
public void insert(Comparable in){ if(smallest == null || in.compareTo(smallest) < 0) { smallest = in; } // Create new node with in as content RBNode insertedNode = createNode(in); if (root == null) { insertedNode.color = NodeColor.RED; ...
8
public Object nextValue() throws JSONException { char c = this.nextClean(); String string; switch (c) { case '"': case '\'': return this.nextString(c); case '{': this.back(); return new JSONObject(this); ...
7
private void setGlobalConnection() { for (int i = 0; i < this.connection.length; i++) { int upI = i + 1; this.scene[i] = this.setCurrentConnection(upI); } }
1
public int readUnsignedInt() { if(inf) { if(sc.hasNextInt()) return sc.nextInt(); else return -1; } else { ExceptionLog.println("Попытка записи в неоткрытый файл"); return -1; } }
2
private void loadUsers(){ User[] alstUsers = dbCon.loadUsers(channel); if(alstUsers != null){ Arrays.sort(alstUsers); jlstUsers.setListData(alstUsers); } }
1
public void load(Sheet sheet) { LinkedList<String> lines = new LinkedList<String>(); try { while (ready()) { lines.add(readLine()); } LinkedList<String> sorted = new LinkedList<String>(); for (String s : lines) { boolean isR...
7
public void goSpeed(){ if(hspeed!=0){ if(collideCheck(hspeed,0)!=0){ moveHorizontal(hspeed); } } if(vspeed!=0){ if(collideCheck(0,vspeed)!=0){ moveVertical(vspeed); } } }
4
public char getConsensusBase(int site, boolean useAmbiguities) { double[] freqs = getColumnBaseFreqs(site); char[] bases = {'A', 'C', 'T', 'G'}; for(int i=0; i<freqs.length; i++) { //Sort by frequency, but sort bases at the same time for(int j=i; j<freqs.length; j++) { if (freqs[i]<freqs[j]) { double ...
7
private String checkForAbbreviation(String bookToCompare) { System.out.println("CHECKING: " + bookToCompare); if (bookToCompare.contains(" of ")) { if (!bookToCompare.equals("Song of Solomon")) { String[] splitter= bookToCompare.split(" "); bookToCom...
9
@Override public boolean halt() { if(gBest >= solution - error && gBest <= solution + error){ return true; }else{ return false; } }
2
public void dumpExpression(TabbedPrintWriter writer) throws java.io.IOException { writer.print(getOperatorString()); if ((Options.outputStyle & Options.GNU_SPACING) != 0) writer.print(" "); subExpressions[0].dumpExpression(writer, 700); }
1
public static void test(Robot r) { if (r instanceof Null) System.out.println("[Null Robot]"); System.out.println("Robot name: " + r.name()); System.out.println("Robot model: " + r.model()); for (Operation operation : r.operations()) { System.out.println(operation.description()); operation.comman...
2
public void setSignatureValue(SignatureValueType value) { this.signatureValue = value; }
0
@Override public OccurrenceAllocation select(SolverState schedule, Occurrence forOccurrence) { if (schedule.constraintsCost() < smallestConflict) { smallestConflict = schedule.constraintsCost(); } // until we are lowering conflict value, store last iteration to ...
5
public static employeeTypes intToEmployeeType(int type) { for (employeeTypes tmpType : employeeTypes.values()) { if (tmpType.ordinal() == type) { return tmpType; } } return employeeTypes.CLERK; }
2
@Test(expected=IllegalStateException.class) public void testIllegalCallOfThreshold() { CircleAccumulator test = new CircleAccumulator(new boolean[][]{{true}}, 0, 1); test.threshold(1); }
0
public static void move(Point p, int i){ switch (i) { case 0: //up p.y++; break; case 1: //down p.y--; break; case 2: //right p.x++; break; case 3: //left p.x--; break; default: break; } }
4
public int minDepth(TreeNode root) { if (root == null) return 0; Queue<TreeNode> nodeq = new LinkedList<TreeNode>(); Queue<Integer> deepq = new LinkedList<Integer>(); nodeq.add(root); deepq.add(1); while (true) { TreeNode node = nodeq.poll(); int...
6
public void Color(InterferenceGraph graph) { // Retrieve random node with fewer than NUM_REGISTERS neighbors int x = ig.getVertexWithMaxDegree(NUM_REGISTERS); if (x == -1) { x = ig.getSmallestCost(); } // Remove the vertex and recover its neighbors regSet.add(x); ArrayList<Integer> neighbors = ig.r...
9
public void processEvent(Event event) { System.out.println("login client's processEvent"); if (event.getType() == Event.COMPLETION_EVENT) { System.out.println(_className + ": Receive a COMPLETION_EVENT, " + event.getHandle()); return; } System.out.pr...
8
private void incrementHour() { hour += 1; server.onHourIncrement(); if (hour > 23) { hour = 0; incrementDay(); } // TODO deal with redundancy, set time of day sends a regular server messages, but then we send a debug version.. if (this.hour == 0) { setTimeOfDay(TimeOfDay.MIDNIGHT, new Message("I...
9
@Override protected void clearDiscardPile(TurnContext state) { super.clearDiscardPile(state); System.out.print("The discard pile has been cleared. "); if (state.selection == null && state.g.canDraw() && state.currentPlayable.isEmpty()) { System.out.println("Since cards can be drawn, you must draw and you cann...
4
public boolean skipPast(String to) throws JSONException { boolean b; char c; int i; int j; int offset = 0; int length = to.length(); char[] circle = new char[length]; /* * First fill the circle buffer with as many characters as are in the ...
9
private Vector solve(Node node) { Vector solution = new Vector(); solution.addElement(node); while (node.parent != null) { solution.insertElementAt(node.parent, 0); node = node.parent; } return solution; }
1
public void load(String[] filenames) { String line, stroke, english; String[] fields; boolean simple= (filenames.length<=1); TST<String> forwardLookup = new TST<String>(); for (String filename : filenames) { if (validateFilename(filename)) { try { ...
9
public String toString() { return this.mode == 'd' ? this.writer.toString() : null; }
1
private void addLog(Cell cell, int flag) { DataFormatter formatter = new DataFormatter(); switch (cell.getCellType()) { case Cell.CELL_TYPE_NUMERIC: { if (flag == OK_PRINT) { //System.out.print(formatter.formatCellValue(cell) + "\t"); ...
7
private void blockCellThatPlayerWillNotBeWinnerInTheNextStep (Square square, Human human) { Mark mark = new Mark(human.getMark()); for (char i=FIRST_LEFT_COORD; i<FIRST_LEFT_COORD + STRINGS_MATRIX_COUNT; i++) { for (char j=FIRST_TOP_COORD; j<FIRST_TOP_COORD + STRINGS_MATRIX_COUNT; j++) { ...
5
public void listarDepartamentos() { DepartamentoDAO departamento = new DepartamentoDAO(); try { tblDepartamentos.setModel(DbUtils.resultSetToTableModel(departamento.PreencheTabelaDepartamentos())); } catch (SQLException ex) { } }
1
public static void renderQuad(Texture texture, Colour colour, float x, float y, float width, float height){ glEnable(GL_TEXTURE_2D); if(texture != null) texture.bind(); if(colour != null) colour.bind(); glBegin(GL_TRIANGLES); { glTexCoord2f(0, 0); glVertex2f(x, y); glTexCoord2f(1, 0); glVertex...
2
public void addAccount(){ boolean agregada = false; if(!activo.validateTipo(Usuario.LIMITADO)){ System.out.print("Ingrese el Nombre del Cliente: "); String nombre = scan.next(); int num; do{ do{ System.out.print("Ingrese num...
8
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
boolean tryMethod(Object o,String name,Object [] args) { try { Method met=getMethod(o.getClass(),name,args); if (met==null) return false; met.invoke(o,args); } catch (InvocationTargetException ex) { Throwable ex_t = ex.getTargetException(); if (ex_t instanceof JGameError) { eng.exitEngine(eng.dbg...
4
public Metrics(final Plugin plugin) throws IOException { if (plugin == null) { throw new IllegalArgumentException("Plugin cannot be null"); } this.plugin = plugin; // load the config configurationFile = getConfigFile(); configuration = YamlConfiguration.load...
2
private void stateAltDraw(int x,int y){ if(!sedna.getSelected() ||sedna.getSelection(x,y)){ if(statefillflag){ switch(sft){ case 0: mainBrain.setCellState(x,y,0);viewer.setAState(x,y,0); break; case 1: mainBrain.getCell(x, y).setOption(toolstring[1], false); break; cas...
9
private void processLine(RdpPacket_Localised data, LineOrder line, int present, boolean delta) { if ((present & 0x01) != 0) line.setMixmode(data.getLittleEndian16()); if ((present & 0x02) != 0) line.setStartX(setCoordinate(data, line.getStartX(), delta)); if ((present & 0x04) != 0) line.setStartY(setC...
9
@Override public String toString() { return value; }
0
public List<SingleCounter> extractKeyNouns (Documents docs, int n) { Counter c = new Counter(); for (Document d : docs.documents) { for (Sentence s : d.sentences) { Phrases p = s.phrases; for (int idx = 0; idx < p.size(); idx++) { for (String term : p.getNouns(idx)) { ...
4
private void updateStopMarkers() { currentGTFSStopsMarker = new HashSet<Stop>(); currentOSMStopsMarker = new HashSet<Stop>(); if (currentGTFSStops.size() == 0 || currentOSMStops.size() == 0){ return; }else{ for (Stop s:currentGTFSStops) if (currentOSMStops.contains(s) && currentGTFSStops.indexOf(s) >=...
8
public final void add( final int key, final T value){ if ( size == 0 ){ if (keys.length >0){ keys[0] = key; values[0] = value; } else{ keys = new int[]{key}; values = new Object[]{value}; } size = 1; return; } // Find index where to put it: final int index = closestIndex(key); i...
8
public String buscarClientePorTelefono(String telefono){ //##########################CARGA_BASE DE DATOS############# tablaDeClientes(); //##########################INGRESO_VACIO################### if(telefono.equals("")){ telefono = "No busque nada"; ret...
5
private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed try { /* * Validity check */ if (!valid()) { return; } DateFormatter df = new DateFormatter(new SimpleDateForma...
6
private void addDataS(int nGaussians) { if (atomCoordBohr[atomIndex] == null) { moCoeff++; return; } if (doDebug) dumpInfo(nGaussians, "S "); int moCoeff0 = moCoeff; // all gaussians of a set use the same MO coefficient // so we just reset each time, then move on setMinMax...
9
public LinkedList<Student> getAllStudent() { LinkedList<Student> ans = new LinkedList<Student>(); String select = "SELECT * FROM STUDENT"; try { ResultSet rs = stat.executeQuery(select); Student t; // ȡǰ Calendar now = Calendar.getInstance(); now.setTime(new java.util.Date()); final int year =...
2
private void logIfEnabled(String content) { if (!isChatLoggingEnabled) return; if (chatLogger == null) chatLogger = new FileLogger( getServerTab().getTabName(), getTabName() ); chatLogger.log(content); }
2
public void setLastArg(int argsToSkip_) { //Set the args to skip = to the args to skip plus previous arguments. int argsToSkip = argsToSkip_; //Form the final argument for (int i = argsToSkip; i < args.length; i++) { if (!args[i].equals("")) { if (i != argsToSkip) finalArgument += " " + arg...
3
final public void Class_body() throws ParseException { /*@bgen(jjtree) Class_body */ SimpleNode jjtn000 = new SimpleNode(JJTCLASS_BODY); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); jjtn000.jjtSetFirstToken(getToken(1)); try { Class_variable_declarations(); Class_fun...
8
@Override public List<Integer> getHops(Integer start, Integer target) { NodePair pair = NodePair.get(getNode(start), getNode(target)); if(!distances.containsKey(pair) || distances.get(pair).isNonterminating()) return null; List<Integer> hops = new ArrayList<Integer>(); Integer current = start;...
3
public void run(){ while(true){ try { sleep(60000); } catch (InterruptedException e) { e.printStackTrace(); } GregorianCalendar fecha = new GregorianCalendar(); fecha.get(Calendar.DAY_OF_WEEK); for (int i = 0; i < rutinas.length; i++) for (int j = 0; j < 7; j++) if (rutinas[i].getDi...
7
public void connect1(TreeLinkNode root) { if (root == null) return; Queue<TreeLinkNode> curLev = new LinkedList<TreeLinkNode>(); curLev.add(root); while (!curLev.isEmpty()) { Queue<TreeLinkNode> nextLev = new LinkedList<TreeLinkNode>(); while (!curLev.isEmpty()) { TreeLinkNode cur = curLev.poll(); ...
8
public static Vector2d valueOf(String arg) { Vector2d result = null; boolean goFlag = true; String tmp = ""; String strX = ""; String strY = ""; Scanner s1 = new Scanner(arg); if (goFlag) { tmp = s1.findInLine("\\s*\\(\\s*"); goFlag = (tmp != null); } if (goFlag) { strX = s1.findInLine(MdM...
8
public int hashCode() { return 13 * description.hashCode() + 17 * partNumber; }
0
public static List<String> keysForBounds(CSProperties csp, int boundCount) { List<String> l = new ArrayList<String>(); for (String key : csp.keySet()) { if (csp.getInfo(key).keySet().contains("bound")) { String bound = csp.getInfo(key).get("bound"); StringToke...
3
private int decodePacket(Packet packet) { // check the endianes of the computer. final boolean bigEndian = ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN; if (block.synthesis(packet) == 0) { // test for success! dspState.synthesis_blockin(block); } // **pcm is a multichannel float vector. In ster...
8
@Test public void runTestListAccess1() throws IOException { InfoflowResults res = analyzeAPKFile("ArraysAndLists_ListAccess1.apk"); Assert.assertEquals(0, res.size()); }
0
public void render(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setColor(Color.black); g2.setStroke(new BasicStroke(1F)); int width = 20; for (int i = 0; i < this.board.getWidth(); i++) { // Draw horizontal lines g2.drawLine(0, width ...
6
public int uniquePathsWithObstacles(int[][] obstacleGrid) { int rows = obstacleGrid.length; if (rows == 0) { return 0; } int cols = obstacleGrid[0].length; if (cols == 0) { return 0; } if (obstacleGrid[0][0] == 1) { return 0; ...
9
public void run() { while (true) { try { String message = messages.take(); Iterator<Socket> iter = sockets.iterator(); while (iter.hasNext()) { Socket socket = iter.next(); try { OutputStream out = socket.getOutputStream(); PrintWriter writer = new PrintWriter(out...
4
private int miniMax(Board board, char mark, int depth, int color, boolean max, int alpha, int beta) { char oppMark = getOppMark(mark); gameLogic = new BoardLogic(board); if(gameLogic.isOver() || depth == 7) return getGameScore(board, depth, mark) * color; else if(max) { Arra...
7
public String toString() { String theWholeDamnBoard = "";// temporary initialization. Hopefully I // remember to delete that one part of // it. // this is gonna be a reeeally long string. /* * The toString method's going to get called a lot. I'm thinking about a * few ways to...
5
@EventHandler public void GhastFireResistance(EntityDamageByEntityEvent event) { Entity e = event.getEntity(); Entity damager = event.getDamager(); String world = e.getWorld().getName(); boolean dodged = false; Random random = new Random(); double randomChance = plugin.getZombieConfig().getDouble("Ghast.Fi...
7
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 fe...
6
@Override public void serverMessageReceived(int code, String message) { if (code > 400 && code < 500) { message = message.split(" ", 2)[1]; appendError(message); final int ERR_NOMOTD = 422; AbstractTab tab = InputHandler.getActiveTab(); if ( code ...
5
public void setLocale(Object loc) throws JspTagException { if (loc == null || (loc instanceof String && ((String) loc).length() == 0)) { this.locale = null; } else if (loc instanceof Locale) { this.locale = (Locale) loc; } else { locale = Util....
4
public QueryResultTable executeQueryForResult() throws DataBaseException { // result object QueryResultTable queryResult = new QueryResultTable(); // 2D arraylist for result table ArrayList<ArrayList<String>> resultTable = new ArrayList<ArrayList<String>>(); // hashmap for header details LinkedHashMap<Stri...
7
public static void printQ(Queue queue) { while (queue.peek() != null) System.out.print(queue.remove() + " "); System.out.println(); }
1
public static List<Id> getUniqueIds(List<Id> ids) { Id[] idsArray = ids.toArray(new Id[ids.size()]); Arrays.sort(idsArray); List<Id> uniqueList = new ArrayList<Id>(); for (Id id : idsArray) { if (uniqueList.isEmpty() || (!id.equals(uniqueList.get(uniqueList.size() - 1)))) { uniqueList.ad...
3
public int getReplicaLocation(String lfn) { if (lfn == null) { return -1; } int resourceID = -1; int eventTag = DataGridTags.CTLG_GET_REPLICA; // set tag name // consult with the RC first int rcID = getReplicaCatalogueID(); if (rcID == -1) { ...
4
public CatalogHandler() throws SQLException { Pages = new HashMap<Integer, CatalogPage>(); Grizzly.GrabDatabase().SetQuery("SELECT * FROM server_store_pages"); ResultSet CatalogPages = Grizzly.GrabDatabase().GrabTable(); while(CatalogPages.next()) { Pages.put(new Integer(CatalogPages.getInt("id")...
2
public boolean equals(Object object) { if (!(object instanceof NBTBase)) { return false; } else { NBTBase nbtbase = (NBTBase) object; return this.getTypeId() != nbtbase.getTypeId() ? false : ((this.name != null || nbtbase.name == null) && (this.name == null || nbtbas...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; RunAutomaton other = (RunAutomaton) obj; if (initial != other.initial) return false; if (maxInterval != other.maxInterval) return false; ...
9
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 Object plugin(Object target) { if (reusePreparedStatements && target instanceof BatchExecutor) { target = replaceBatchExecutor((BatchExecutor) target); } if (reusePreparedStatements && target instanceof CachingExecutor) { try { Object ...
7
public final void setTotalHrsForYear(double totalHrsForYear) { if(totalHrsForYear < 0 || totalHrsForYear > 5000) { throw new IllegalArgumentException(); } this.totalHrsForYear = totalHrsForYear; }
2
public Move move(boolean[] foodpresent, int[] neighbors, int foodleft, int energyleft) throws Exception { Move m = null; // placeholder for return value // this player selects randomly int direction = rand.nextInt(6); switch (direction) { case 0: m = new Move(STAYPUT); break; case 1: m = new Move(WES...
9
public String getSeatNumber() { return this._seatNumber; }
0
private int getDirectionID(Direction d) { switch(d) { case NORTH: return 0; case SOUTH: return 1; case EAST: return 2; case WEST: return 3; case NORTHEAST: return 4; case NORTHWEST: return 5; case SOUTHEAST: return 6; case SOUTHWEST: return 7; } return 0; }
8
public static InetAddress parseIpAddress(String ip) throws IllegalArgumentException { StringTokenizer tok = new StringTokenizer(ip, "."); if (tok.countTokens() != 4) { throw new IllegalArgumentException("IP address must be in the format 'xxx.xxx.xxx.xxx'"); } byte[] data = new byte[4]; int i = 0; while...
6
@Override protected void render() throws Exception { glClearColor(0f, 0f, 0f, 1f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); if (this.currentScene != null) this.currentScene.render(); }
1
public static void main(String[] args) { Scanner scan = new Scanner(System.in); /* Creating object of AVLTree */ AVLTree avlt = new AVLTree(); System.out.println("AVLTree Tree Test\n"); char ch; /* Perform tree operations */ do ...
7
protected void act() { if(state == -1) { doBehavior(new WaitMoveBehavior()); } else if(state == 0) { // On cherche a savoir si on es bien sur une ligne. if(Robot.getInstance().getEyes().onNoise()) { stop("I am not along a line !!"); } else { Robot.getInstance().getMotion().getPilot().arcFor...
8
public void heapDecKey(Vortex vortex, int dayDistance, double dayTravelDistance) { if (vortex.getDayDistance() < dayDistance) { return; } if (vortex.getDayDistance() == dayDistance && vortex.getDayTravelDistance() < dayTravelDistance) { return; } int i = 1; for (i=1; i<=length; i++) { //right upper...
5
public void makeSegmentation(String type) { String request = ""; if(type.equals(SIMPLY_SEGM)) request = "Enter simply segments count"; else if(type.equals(ROUND_N_TIMES)) request = "Enter rounding count"; else if(type.equals(ROUND_TO_N_SEGM)) request =...
9
public FlatternerIterator(final T ancestor, final Selector<T, Iterable<T>> selector) { this._ancestor = ancestor; this._selector = selector; }
0
private int attaque(Soldat soldat){ int maxDegats = 0; /* Combat au CaC */ if (distance(soldat) == 1){ maxDegats = this.puissance; } /* Combat à distance */ else if (distance(soldat) <= portee) maxDegats = this.tir; /* L'ennemi est hors de ...
2
public double[] distributionForInstance(BayesNet bayesNet, Instance instance) throws Exception { Instances instances = bayesNet.m_Instances; int nNumClasses = instances.numClasses(); double[] fProbs = new double[nNumClasses]; for (int iClass = 0; iClass < nNumClasses; iClass++) { ...
9
public static String getConstructorDescriptor(final Constructor c) { Class[] parameters = c.getParameterTypes(); StringBuffer buf = new StringBuffer(); buf.append('('); for (int i = 0; i < parameters.length; ++i) { getDescriptor(buf, parameters[i]); } return b...
1
public void loadLevel(){ tileManager.clear(); ws.mechanismList.clear(); ws.circuitList.clear(); switch(ws.level){ case 0: // Load Map tileManager.loadMap(TileMaps.level0, 2, 2, TileMaps.TPlevel1); // Set Players ws.p1 = new Player(16, 16, true); ws.p2 = new Player(48, 48, false); ...
6
public static void main(String[] args) { ArrayList <Destination>WorkAddresses = new ArrayList(); ArrayList <Destination>HomeAddresses = new ArrayList(); Destination home = new Destination("80 Balcombe Road Mentone VIC 3194",false,true,false); Destination wo...
9
public Dealer(int staylvl) { super(staylvl); shuffledDeck = ShuffleDeck(shuffledDeck); //setHold(17);//This could bypass the inherited constructor from player and just sets the dealer to stay on 17. //Though this can also be ignored/removed if the dealer is always constructed with 17 from calling method. }
0
public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equals("type")) { tempMove.type = tempStr; } else if (qName.equals("class")) { tempMove.damageClass = tempStr; } else if (qName.equals("power")) { tempMove.power...
7
public void createPlayer(String player, String connection) throws SQLException { sql.initialise(); if(plugin.globalDefault){ sql.standardQuery("INSERT INTO BungeePlayers (PlayerName, DisplayName, Current, LastOnline, IPAddress) VALUES ('"+player+"','"+player+"','Global', CURDATE(), '"+connection+"')"); }else{ ...
2
public final TLParser.addExpr_return addExpr() throws RecognitionException { TLParser.addExpr_return retval = new TLParser.addExpr_return(); retval.start = input.LT(1); Object root_0 = null; Token set121=null; TLParser.mulExpr_return mulExpr120 = null; TLParser.mulExpr...
7