text
stringlengths
14
410k
label
int32
0
9
synchronized void sendPacket(Packet packet) throws IOException { if (open) { out.writeInt(packet.id); packetTypes.get(packet.id).write(packet, out); } }
1
@Test public void testIntegrative() throws FileNotFoundException { final JUnitCore core = new JUnitCore(); core.addListener(new TestLinkXmlRunListener()); core.addListener(new TestLinkLoggingRunListener(LoggerFactory.getLogger("MYTESTLINK"), URI.create("http://testlink.sourceforge.net/demo/"...
0
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String action = request.getParameter("act"); if(action != null) { try { RequestContext context = new RequestContext(request); if(context.isLogged(...
8
public void incFrequency() { docFrequency++; }
0
public static void printDescriptionsAsKifRule(Description head, Description tail, Proposition rule, boolean reversepolarityP) { { OutputStream stream = ((OutputStream)(Logic.$PRINTLOGICALFORMSTREAM$.get())); boolean forwardarrowP = ((BooleanWrapper)(KeyValueList.dynamicSlotValue(rule.dynamicSlots, Logic.SYM_L...
7
@Override public boolean equals(Object obj) { if(this == obj) { return true; } if(obj != null) { if(obj instanceof Coordinates) { Coordinates otherCoordinates = (Coordinates)obj; if(otherCoordinates.getX() ==...
5
private void showTeachingPlan() { content = null; head = null; Object fb = logic.showTPHead(); if (fb instanceof Feedback) { JOptionPane.showMessageDialog(null, ((Feedback) fb).getContent()); } else if (fb instanceof String[]) { head = (String[]) fb; fb = logic .showTPContent(((DeptVO) deptChoo...
9
@Override public String[] getHelp() { return new String[]{ "ttp help", "Displays help information" }; }
0
public AnnotationVisitor visitAnnotationDefault() { text.add(tab2 + "default="); TraceAnnotationVisitor tav = createTraceAnnotationVisitor(); text.add(tav.getText()); text.add("\n"); if (mv != null) { tav.av = mv.visitAnnotationDefault(); } return tav; }
1
public boolean getBoolean(String columnLabel) { Object obj = getObject(columnLabel); if (!(obj instanceof Boolean)) { throw new RuntimeException("[" + columnLabel + "] is not a boolean, but a "+ (null == obj ? "null" : obj.getClass().getName()) +"."); } return (boolean) obj; }
2
@Override public LauncherAction createActionFromDataElement(Element element) { if(element == null) return null; AppletDesc desc = new AppletDesc(); initNameAndId(desc, element); //Use Browser if(element.getAttribute("use-browser").equals("true")) { de...
9
public State getStateForVariable(String variable) { return (State) MAP.get(variable); }
0
public DisplayPane(LSystem lsystem) { super(new BorderLayout()); this.lsystem = lsystem; expander = new Expander(lsystem); // We can't edit the expansion, of course. expansionDisplay.setEditable(false); // The user has to be able to change the recursion depth. JSpinner spinner = new JSpinner(spinnerModel...
0
public void setMapData(File file) { if (!file.exists()) { throw new IllegalArgumentException("Map data file does not exist."); } this.mapData = file; }
1
private static long getLastCached(String playerName) { // Already found if (lastCached.containsKey(playerName)) return lastCached.get(playerName); // Search for lowercase matches for (final String loggedName : lastCached.keySet()) { if (loggedName.equalsIgnoreCase(playerName)) { pla...
4
public void buildTrackForTest() { if (!built) { // Create Record r = new Record(); r.setAuthor("fake-author"); r.setCategory(new Category("fake-cat", 12)); r.setCatNo("fake-cat-no"); r.setDate(new Date()); r.setDiscogsNum(12); r.setF...
2
@Override public boolean onCommand(CommandSender sender, org.bukkit.command.Command cmd, String[] args) { if(!Commands.isPlayer(sender)) return false; Player p = (Player) sender; if(args.length != 1) return false; if(PlayerChat.plugin.getConfig().getBoolean("CustomChannels.Enabled", true)) { channel.join...
3
private Image getImage(int i){ if (i == 1){ return newgame; } if (i == 2){ return loadgame; } if (i == 3){ return credits; } if (i == 4){ return options; } if (i == 5){ return quit; ...
5
public void update() { for (int particleIndex = 0; particleIndex < particleArray.length; particleIndex++) { if (particleArray[particleIndex] != null) { particleArray[particleIndex].update(); } } this.removeDeadParticles(); }
2
String run(String input){ String[] array = new Tokenizer().makeToken(input); double mChance = 0; double fChance = 0; for(int i = 0; i < array.length; i++){ if(mProb.keySet().contains(array[i])){ mChance = mChance + (Math.log(mProb.get(array[i])/(mProb.get(array[i]) + fProb.get(array[i])) / Math.log(2))); ...
5
private String whichBinary(String type) { for (int i = 0; i < Expression.binaryTypes.length; i++) { if (type.equals (Expression.binaryTypes[i])) { if(type.equals("plus")||type.equals("minus")||type.equals("times") ||type.equals("divided by")) { return "operator"; } else if(type.e...
8
private void scan() { for(String location : locations) { File pluginDir = new File(location); if (pluginDir.exists() && pluginDir.isDirectory()) { for (String n : pluginDir.list()) { if (n.endsWith(".jar")) { try { URL url = new File(location + File.separator + n) .toURI().toURL()...
7
@Override public void merge(I merger, I mergee) { Set<TKey<?, ?>> keys = mergee.getAvailableKeys(); for (TKey key : keys) { if (filterKeys.contains(key)) { List<?> qvs = mergee.getQualifiedValues(key); merger.deleteValues(key); for (Object ...
8
public String getTaxes(String s) { String taxValue = "17"; return taxValue; };
0
public int getMinimum() { int res = -1; int min = -1; for (int i = 0; i < result.length; i++) { if (result[i] != -1 && visited[i] != 1 && (result[i] < min || min == -1)) { min = result[i]; res = i; } } return res; }
5
public LocalDataManager(String dataHome) throws WrongArgumentException { File dfile = new File(dataHome); if( dfile == null || !dfile.exists()) { dfile.mkdir(); }else if(dfile.exists()&&!dfile.isDirectory()){ throw new WrongArgumentException("dataHome","Can not create Directory"+dataHome); } this.dat...
4
public double geometricMean_as_double() { double gmean = 0.0D; switch (type) { case 1: double[] dd = this.getArray_as_double(); gmean = Stat.geometricMean(dd); break; case 12: BigDecimal[] bd = this.getArray_as_BigDecimal(); gmean = Stat.geometricMean(bd); bd = null; break; case 14: th...
3
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("Starting"); String userName = request.getParameter("username"); String password1 = request.getParameter("password1"); String password2 = request.getParameter("password2"); ...
7
public void setDateTo(Date dateTo) { this.dateTo = dateTo; }
0
private void addAnimPanel() { String s = MDView.getInternationalText("Animation"); animPanel = new JPanel(new BorderLayout()); JPanel p = new JPanel(new BorderLayout(5, 5)); p.setBorder(new EmptyBorder(10, 10, 10, 10)); animPanel.add(p, BorderLayout.NORTH); JPanel child = new JPanel(new SpringLayout());...
7
@Override public void endElement(String uri, String localName, String qname) { if (qname.equals("parse")) { indent -= 2; scopes.pop(); } else if (qname.equals("uncommon_trap")) { currentTrap = null; } else if (qname.equals("late_inl...
8
public static AccessToken getAccessToken(String appid, String appsecret) { AccessToken accessToken = null; String requestUrl = access_token_url.replace("APPID", appid).replace( "APPSECRET", appsecret); JSONObject jsonObject = httpRequest(requestUrl, "GET", null); // ɹ if (null != jsonObject) { try { ...
2
public String remove(int key) { Node current, previous; current = head; previous = null; while (current != null && current.getKey() != key) { previous = current; current = current.getNext(); } String output = current.getContent(); if (previ...
3
public void setHP(int hp) { this.hp = hp; }
0
@Override public final String readLine() throws IOException { if (lineBuffer == null) { lineBuffer = new char[LINE_BUFFER_INCREMENT_SIZE]; } char[] buf = lineBuffer; int room = buf.length; int offset = 0; int c; loop: while (true) { c...
8
public int transform(CtClass tclazz, int pos, CodeIterator iterator, ConstPool cp) throws BadBytecode { int c = iterator.byteAt(pos); if (c == PUTFIELD || c == PUTSTATIC) { int index = iterator.u16bitAt(pos + 1); String typedesc = isField(tclazz.getCl...
6
public ArrayList<Integer> readData(String filename) throws FileNotFoundException { Scanner scanner = new Scanner(new BufferedInputStream(new FileInputStream(filename))); ArrayList<Integer> data = new ArrayList<Integer>(); while (scanner.hasNextLine()) { String line = scanner.nextLine(); if (line.trim().l...
2
public void initialize() throws Exception { m_RunNumber = getRunLower(); m_DatasetNumber = 0; m_PropertyNumber = 0; m_CurrentProperty = -1; m_CurrentInstances = null; m_Finished = false; if (m_UsePropertyIterator && (m_PropertyArray == null)) { throw new Exception("Null array for ...
7
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TMasterProduct other = (TMasterProduct) obj; if (!Objects.equals(this.pcodeSap, other.pcodeSap)) { ...
4
public void run(){ try{ sendChannelOpen(); Buffer buf=new Buffer(rmpsize); Packet packet=new Packet(buf); Session _session=getSession(); int i=0; while(isConnected() && thread!=null && io!=null && io.in!=null){ i=io.in.read(buf.buf...
7
@Override public void execute() throws BuildException { Migrator migrator = new Migrator(url, driver, user, password, scriptsLocation); log(migrator.printBeforeDiagnostics()); if (action != null) { if (action.equals(UPGRADE)) { log(UPGRADE + " action started"); migrator.migrateUp(); log(...
6
public Integer getRosterCount (Date d) { Integer rc = 0; for (Trip t: getAllTrips(d)) { rc += t.getRosterCount(); } return rc; }
1
public double describe(GameState state, Player player) { Map<Player, Integer> largestClusterSize = new HashMap<Player, Integer>(); Set<Country> countedCountries = new HashSet<Country>(); for (Country country : state.getCountries()) { if (countedCountries.contains(country)) continue; int clusterS...
9
private void makeHashTable(NonDuplicateArrayList<String> newTransaction, int[] hashTable, int iteration, int[] newHashTable, NonDuplicateArrayList<String> newnewTransaction){ int[] occurrenceCount = new int[newTransaction.size()]; // for (NonDuplicateArrayList<Integer> subset: ge...
7
public TargetPicker createTargetPicker(String targetPickerId, NamedNodeMap attributes, List<Element> childElements){ currentAttributesMap = attributes; TargetPickerId id = TargetPickerId.valueOf(targetPickerId); TargetPicker targetPicker; switch(id){ case ADJACENT: targetPicker = new TargetAdjacentEntitie...
8
public Component getListCellRendererComponent( JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String v = value.toString(); String dv = v; final ImageIcon archIcon = new ImageIcon(get...
4
public void run() { ServerThread sendToClients = new ServerThread(this); sendToClients.start(); while (true) { try { DatagramPacket recvPacket = new DatagramPacket(recvBuffer, recvBuffer.length); sock.receive(recvPacket); String data = new String(recvPacket.getData()); InetAddress ip = recv...
8
public int calculateFitness(Hypothesis h) { if (type == RANDOM) { //Just return a random fitness return (int)(Math.random() * 100); } else if (type == TARGET) { double sumPerc = 0; int hIndex = 0; for (int i = 0; i <...
9
private void checkMessage() { while (true) { jTextArea1.append(jTextField1.getText() + control.receiveMessage() + "\n"); } }
1
public Dimension getPreferredSize() { int height = 0; int width = 0; // // Use the size set by the application // if (isPreferredSizeSet()) return super.getPreferredSize(); // // Leave room for the component border // Border b...
5
public static void main(String[] args) { try { ////////////////////////////////////////// // Step 1: Initialize the GridSim package. It should be called // before creating any entities. We can't run this example without // initializing GridSim ...
9
int getPreferredWidth (int columnIndex) { int width = 0; GC gc = new GC (parent); gc.setFont (getFont (columnIndex, false)); width += gc.stringExtent (getText (columnIndex, false)).x + 2 * MARGIN_TEXT; if (columnIndex == 0) { if (parent.col0ImageWidth > 0) { width += parent.col0ImageWidth; width += CTable....
8
private void inputTextPaneKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_inputTextPaneKeyPressed // TODO add your handling code here: String s = (String) sendToCombo.getSelectedItem() ; if(!s.equals("To All")){ whisper = true; } else{ whisper ...
5
public Main_Frame() { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break;...
6
public static boolean isVariable(char ch) { return Character.isUpperCase(ch); }
0
protected void byteLoop(RasterAccessor src, RasterAccessor dst, int filterSize) { int dwidth = dst.getWidth(); int dheight = dst.getHeight(); int dnumBands = dst.getNumBands(); byte dstDataArrays[][] = dst.getByteDataArrays(); ...
9
@Override public String execute(SessionRequestContent request) throws ServletLogicException { String page = ConfigurationManager.getProperty("path.page.user"); String prevPage = (String) request.getSessionAttribute(JSP_PAGE); findUser(request); if(page == null ? prevPage == null : !p...
2
static void getMax(ArrayList<Integer> input, int k, int[] maxNum,ArrayList<Integer> output){ if(k==0){ int sum=0; for(int v:input){ sum*=10; sum+=v; }//calculate the number after several swaps if(sum>maxNum[0]){ maxNum[0]=sum; deepCopyList(input,output); }//update the results...
5
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = false) public void onJoin(PlayerJoinEvent e) { if(!isStaff(e.getPlayer())) { if(!e.getPlayer().hasPermission(Permissions.SPEAK)) { return; } } if(StaffChat.getStaffChat().getToggledStaffMembers().contains(e.g...
5
public char revert(char c) { if (c != '0' && c != '1') { throw new IllegalArgumentException("Argument must be '0' or '1'"); } return (c == '1') ? '0' : '1'; }
3
public void showWall() { allPosts = new ArrayList<TimedPosts>(); for (int i = 0; i < this.posts.size(); i++) { String newPost = this.name + ": " + this.posts.get(i).getPost(); Long time = posts.get(i).getTime(); allPosts.add(new TimedPosts(newPost, time)); } ...
5
public ArrayList<Curso> listar(String condicao) throws Exception { ArrayList<Curso> listaCurso = new ArrayList<Curso>(); String sql = "SELECT * FROM curso " + condicao; try { PreparedStatement stmt = ConnectionFactory.getConnection().prepareStatement(sql); ResultSet rs = stmt.executeQuery(); wh...
2
public WumpusWorld() { String option = Config.getOption(); if (option.equalsIgnoreCase("gui")) { showGUI(); } if (option.equalsIgnoreCase("sim")) { runSimulator(); } if (option.equalsIgnoreCase("simdb")) { ...
3
public synchronized void parse(InputStream is) throws MiniXMLException { automaton.reset(); try { oTokenParser = new MiniXMLTokenParser(is); } catch (IOException e) { throw new MiniXMLException(MiniXMLException._MXMLE_TP_E_IE); } MiniXMLToken oMiniXMLToken; boolean bEnd = false; handler.startDocumen...
9
private static void initAgents(Simulation controller) { agents = new Agent[numAgents]; int id = 0; for(int i = 0; i < numStrategies; i++) { int a = 0; while (a < agentsStrat[i]) { agents[id] = new Agent(controller, id, strategies[i]); id++; a++; } a = 0;...
5
@Override public List<Framedata> translateFrame(ByteBuffer buffer, int available) { List<Framedata> frames = new LinkedList<Framedata>(); int offset = 0; Framedata cur; if (incompleteframe != null) { while (true) { try { int available_next_byte_count = available;// The number of //...
6
public Boolean has4Walls() { boolean ok = true; for (Boolean wall : walls) { if (!wall) { ok = false; } } return ok; }
2
public void run() { decompiler.setOption("verbose", verboseCheck.getState() ? "1" : "0"); decompiler.setOption("pretty", prettyCheck.getState() ? "1" : "0"); errorArea.setText(""); // /#ifdef AWT10 // / saveButton.disable(); // /#else saveButton.setEnabled(false); // /#endif lastClassName = classFiel...
5
void addLightTrailPart(Position position) { if (!player.getGrid().validPosition(position)) throw new IllegalArgumentException("Invalid Position"); final LightTrailPart part = new LightTrailPart(player.getGrid(), this); player.getGrid().addElementToPosition(part, position); lightTrail.offer(part); }
1
private HGAtomRef.Mode getReferenceMode(Class<?> javaClass, PropertyDescriptor desc) { // // Retrieve or recursively create a new type for the nested // bean. // try { Field field = JavaTypeFactory.findDeclaredField(javaClass, desc.getName()); if (field == null) return null; AtomReference a...
7
@Override public void Play(PlayerResponse response) { // Send all Users the players and their positions relative to User for (PinochlePlayer player : mP.getPlayers()) { PinochleMessage message = new PinochleMessage(); message.setPlayers(mP.getUserNamesAndPositions(player)); player.setMessage(message); }...
2
private void writeExcel() { double[] test0 = new double [64]; double[] test1 = new double [64]; double[] test2 = new double [64]; double base = 0; double sequence = 0; int pos = 0; int posY = 6; //on aditionne tout les excel chromosomes.xls des enfants for(int k = 0; k < filelist.size(); k...
9
public static void jogo(String[][] matriz){ for(int a=0; a<=8;a++){ for(int b=0; b<=8;b++){ int valor = Integer.parseInt(String.valueOf(a)+String.valueOf(b)); if(matriz[a][b].equals("")){ Celula celula = new Celula(0, a, b); sud...
3
@Override public void onRepaint(Graphics g) { final Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); if(show) { g2d.setColor(Constants.BLACK_TRANS); g2d.fill(Constants.CHATBOX_AREA); g2d.setColor(Color.PINK); g2d.setFont(Con...
4
public JSONObject toJson(long uid) throws Exception { JSONObject apptJo = new JSONObject(); apptJo.put("id", this.getId()); apptJo.put("initiator", User.findById(this.initiatorId).toJson()); apptJo.put("name", this.name); apptJo.put("venueId", this.venueId); apptJo.put("startTime", this.startTime); apptJo...
2
public byte[] decodeBuffer(String encoded) throws IOException { StringBuffer buff = new StringBuffer(encoded.length()); for (int i = 0; i < encoded.length(); ++i) { char c = encoded.charAt(i); if (c == '-') { c = '+'; } else if (c == '.') { c = '/'; } else if (c == '_') { c = '='; } b...
4
public boolean isValid(Integer meeting, Integer timeslot) { ArrayList<Integer> connectedMeetings = this.getConnectedMeetings(meeting); for(Integer m: connectedMeetings) { if(this.Assignment.containsKey(m)){ Integer cmTimeslot = this.Assignment.get(m); if( cmTimeslot == timeslot) { return fals...
6
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException { if (isPlainFlavor(flavor)) { String data = getPlainData(); data = (data == null) ? "" : data; if (String.class.equals(flavor.getRepresentationClass())) { return data; } else if (Reader.class.equals(...
7
public Especificacion getEspecificacionesProd(producto prod){ Especificacion esp = new Especificacion(); Conexionbd.conexion bd = new Conexionbd.conexion(); bd.conectarBase(); try { ResultSet rs = bd.sentencia.executeQuery("SELECT * FROM ESPECIFICACIONESxPROD WHERE NOMBRE_PRO...
3
public static Method[] getUniqueDeclaredMethods(Class<?> leafClass) throws IllegalArgumentException { final List<Method> methods = new ArrayList<Method>(32); doWithMethods(leafClass, new MethodCallback() { public void doWith(Method method) { boolean knownSignature = false; Method methodBeingOverridden...
9
public void enableGPS() throws IllegalAccessError, SocketTimeoutException { try { clientSocket.Escribir("ONGPS\n"); serverAnswer = clientSocket.Leer(); } catch (IOException e) { throw new SocketTimeoutException(); } if(serverAnswer.contains("529 ERR")) { throw new IllegalAccessError(); } System....
2
public static Thsis searchThsis(Thsis t) throws IOException { String encodedThsisTitle = t.getTitle().trim().replace(" ", "+"); // 拼接URL String url = GCR_SEARCH_THSIS_URL + encodedThsisTitle; // 得到响应 Document htmldoc = connect(url); if(htmldoc == null){ return null; } // 得到论文信息 Elements thsisElemen...
3
public static void main(String[] args) { String fullFileName = "/Users/Johan/Documents/CellTowers/cells_exact_samples67-120_2036.json"; opencellid.Controller cont = new opencellid.Controller(); List<OpenCellIdCell> cells = cont.parseCells(fullFileName, 240, 0, 1000000); for(OpenCellIdCell cell : cells) { if(...
5
protected boolean addFirework(Firework f) { for(int i = 0; i < MAX_FIREWORKS; i++) { if((fireworks[i] == null) || !fireworks[i].isAlive()) { fireworks[i] = f; return true; } } return false; }
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
private void createPath(){ if( path == null ){ EndPointAttachement source = getSourceEndPoint().getAttachement(); EndPointAttachement target = getTargetEndPoint().getAttachement(); Point sl = source.getLanding(); Point sa = source.getApproach(); Point ta = target.getApproach(); Point tl = target...
1
@Override public boolean equals(Object o) { if (o == null) return false; if (!o.getClass().equals(this.getClass())) return false; return getUUID().equals(((Host) o).getUUID()); }
2
public static DefaultFormatterFactory creaFormatoControl(int tipo, int cantEnt, int cantFra, char caracter){ DefaultFormatterFactory factory = null; MaskFormatter numcase = null; String cadena = ""; int i; for(i=0;i<cantEn...
7
private void handleCancelList(Sim_event ev) { boolean success = false; int tag = -1; int src = 0; try { // [0]=reservID, [1]=list of Gridlet IDs, [2]=transID, [3]=senderID Object[] obj = ( Object[] ) ev.get_data(); // get the data inside ...
6
public static void cleanUp() { ModPack pack = ModPack.getSelectedPack(); File tempFolder = new File(OSUtils.getDynamicStorageLocation(), "ModPacks" + sep + pack.getDir() + sep); for(String file : tempFolder.list()) { if(!file.equals(pack.getLogoName()) && !file.equals(pack.getImageName()) && !file.equals("vers...
8
public ArrayList<String> find_baseNumOfPublications(){ HashMap<String, String[]> domainSet = DataLoad.loadDomain(); Collection<String> collection = domainSet.keySet(); Iterator<String> iter = collection.iterator(); while(iter.hasNext()){ person = iter.next(); temp = domainSet.get(person); if(temp.lengt...
2
@Override public void mouseClicked(MouseEvent e) { int col = table.getTableHeader().columnAtPoint(e.getPoint()); if (col == 0) { // Add new row Object[] data = {"Remove","",""}; model.addRow(data); model.fireTableDataChanged(); } }
1
public Integer getContestId() { return this.contestId; }
0
public String getStatus() { switch(this.status) { case 0: return "Running"; case 1: return "Wait"; case 2: return "Idle"; case 3: return "Terminated"; case 4: return "Aborted"; default: return "ERROR: No Status!"; } }
5
private boolean cvc( String str ) { int length=str.length(); if ( length < 3 ) return false; if ( (!vowel(str.charAt(length-1),str.charAt(length-2)) ) && (str.charAt(length-1) != 'w') && (str.charAt(length-1) != 'x') && (str.charAt(length-1) != 'y') && (vowel(str.charAt(length-2...
9
static final public void NewArrayExpr() throws ParseException { jj_consume_token(NEW); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ID: jj_consume_token(ID); break; case BOOLEAN: case CHAR: case VOID: case INT: PrimitiveType(); break; default: jj_la1[40] = j...
9
private static boolean contains(String name, List<Joueur> list) { for(Joueur j : list) { if(j.getNom().equals(name)) return true; } return false; }
2
private void invokeQueue() { if (active) return; synchronized (LOCK_QUEUE) { if (queue.isEmpty()) return; } active = true; new Thread() { @Override public void run() { report.toggleProcess(true); boolean queueEmpty; synchronized (LOCK_QUEUE) { queueEmpty = queue.isEmpty(); ...
3
public int getX() { return x; }
0
public final ArrayList<Entry<K, V>>[] getOnl() { return onl; }
0