text
stringlengths
14
410k
label
int32
0
9
@Override public void run() { super.run(); try{ recieveData: while(running){ if(!fromServer.ready()){ sleep(100); continue; } String line = fromServer.readLine(); if(line.isEmpty()){ continue recieveData; } parent.updateJustPinged(); String[] lines = line.split("\\s+")...
9
protected void printTopBeta(int k, String topBetaFile) { System.out.println("TopWord FilePath:" + topBetaFile); Arrays.fill(m_sstat, 0); for (_Doc d : m_trainSet) { for (int i = 0; i < number_of_topics; i++) m_sstat[i] += m_logSpace ? Math.exp(d.m_topics[i]) : d.m_topics[i]; } Utils.L1Normalizat...
8
public static TypeAdapterFactory newEnumTypeHierarchyFactory() { return new TypeAdapterFactory() { @SuppressWarnings({"rawtypes", "unchecked"}) public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> typeToken) { Class<? super T> rawType = typeToken.getRawType(); if (!Enum.class.isAssig...
4
private boolean flush(DatagramSessionImpl session) throws IOException { // Clear OP_WRITE SelectionKey key = session.getSelectionKey(); if (key == null) { scheduleFlush(session); return false; } if (!key.isValid()) { return false; } ...
9
public boolean isExecute() { return execute; }
0
public int smaLookback( int optInTimePeriod ) { if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 30; else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) return -1; return optInTimePeriod - 1; }
3
public static void muteAll(){ // Used for the loops int i; // Used so that the methods associated with a video player can be accessed. VideoPlayer currentVideoPlayer; // Used so that the methods associated with a Audio player can be accessed. AudioPlayer currentAudioPlayer; // Used so that the methods a...
6
public void addNote(Note note) { // Log.v(TAG, note.text); if (note == null) { notes = new ArrayList<Note>(); } if (alerts == null) { alerts = new ArrayList<Alerts>(); } if (!notes.contains(note)) { notes.add(note); } }
3
static int ternary(int i) { return i < 10 ? i * 100 : i * 10; }
1
public boolean instanceOf(Object obj, String className) throws InterpreterException { Class clazz; try { clazz = Class.forName(className); } catch (ClassNotFoundException ex) { throw new InterpreterException("Class " + ex.getMessage() + " not found"); } return obj != null && !clazz.isInstance(ob...
2
private void storeAttribute(Attr attribute) { // examine the attributes in namespace xmlns if (attribute.getNamespaceURI() != null && attribute.getNamespaceURI().equals(XMLConstants.XMLNS_ATTRIBUTE_NS_URI)) { // Default namespace xmlns="uri goes here" if (attribut...
3
public final JSONArray optJSONArray(int index) { Object o = opt(index); return o instanceof JSONArray ? (JSONArray)o : null; }
1
private GekozenAntwoord kiesOnderdeel(final Onderdeel optie) { final GekozenAntwoord gk = spel.kiesOnderdeel(optie); final DefaultComboBoxModel onderdelenComboBoxModel = new DefaultComboBoxModel(); for (Onderdeel comboOptie : onderdelen) onderdelenComboBoxModel.addElement(comboOptie); onderdelenComboBoxMod...
2
public void setPassword(String password) { this.password = password; }
0
public String getColumnName(int columnIndex) { String colName = new String(); if (columnIndex>=0&&columnIndex<=(title.size())) colName=(String)title.get(columnIndex); return colName; }
2
@Override public void readConstructorParams(DataInput in) throws IOException { super.readConstructorParams(in); String fontName = in.readUTF(); int style = in.readInt(); int size = in.readInt(); font = new Font(fontName, style, size); tesselationTolerance = in.readD...
8
@Override public void execute() { if (itemscroll == 0) seqEflButton(A); else if (itemscroll == 1) seqEflButton(A | DOWN); else if (itemscroll == 2) seqEflScrollFastAF(itemscroll); else seqEflScrollFastA(itemscroll); if (scroll == 0) seqEflButton(A, PRESSED); else seqEf...
4
public boolean setValue(int index, Expression value) { if (index < 0 || index > subExpressions.length || subExpressions[index] != empty) return false; value.setType(argType); setType(Type.tSuperType(Type.tArray(value.getType()))); subExpressions[index] = value; value.parent = this; value.makeInitiali...
3
public static boolean insertWork(Work work){ try{ Connection con = DBManager.getConnection(); if(con==null) return false; StringBuilder sql = new StringBuilder("insert into work_table ("); sql.append(" work_dlsite_id"); sql.append(",circle_id"); sql.append(",work_name"); sql.append(",price"); ...
7
@RequestMapping(method = RequestMethod.GET) protected ModelAndView handleHomePageRequest( HttpServletRequest request, HttpServletResponse response) { HttpSession currentSession = request.getSession(); User verifiedUserInSession = (User) currentSession.getAttribute( ...
5
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int T = sc.nextInt(); int M = sc.nextInt(); List<Submission> sub = new ArrayList<Submission>(); boolean[][] accepted = new boolean[T][N]; for (int i = 0; i < M; i++...
9
public static void main(String[] args) { Field field = new Field(); field.print(); int y = 0; for (String s: field.getWords()){ if (Request.validate(s)) { System.out.println(s); y++; } } System.out.println(y + "words...
2
private void populateEntity() { enemys = new ArrayList<Enemy>(); entities = new ArrayList<EntitySpecial>(); Slugger s; Crawler s2; Point[] points = new Point[] { new Point(860, 200), new Point(1525, 200), new Point(1680, 200), new Point(1800, 200) }; Point[] points2 = new Point[] { new Point(960, 200) }; ...
2
public void run() { System.out.println("Welcome to Server side"); ServerSocket servers = null; Socket fromclient = null; // create server socket try { servers = new ServerSocket(4444); } catch (IOException e) { System.out.println("Couldn't liste...
4
public static Question getNextQuestion() { if (questions == null || ++position >= questions.size()) { Runnable getQuestionRunnable = new Runnable() { public void run() { position = 0; questions = Database...
2
public Expr evaluate(IEvaluationContext context, Expr[] args) throws ExprException { assertArgCount(args, 3); Expr ea = evalArg(context, args[0]); if (!isNumber(ea)) return ExprError.VALUE; double alpha = asDouble(context, ea, true); if (alpha <= 0 || alph...
7
public void setName(String name) { this.name = name; }
0
public static void main(String [] args) { try { if (args.length < 1) { System.err.println("Usage : weka.gui.visualize.Plot2D " +"<dataset> [<dataset> <dataset>...]"); System.exit(1); } final javax.swing.JFrame jf = new javax.swing.JFrame("Weka Explorer: Visualize"); jf.setSize(500...
7
private void dfs(char[][] grid, int i, int j, int count) { if (i - 1 >= 0) { if (grid[i - 1][j] == '1') { grid[i - 1][j] = (char) ('0' + count); dfs(grid, i - 1, j, count); } } if (j - 1 >= 0) { if (grid[i][j - 1] == '1') { grid[i][j - 1] = (char) ('0' + count); dfs(grid, i, j - 1, count)...
8
private Point getRealPosition(IReadableMolecule anchorMolecule, RelativePosition position) { // Precondition assertTrue("Unknown molecule.", knowsMoleculePosition(anchorMolecule)); // Get the anchor's position. final Point POSITION_OF_ANCHOR = mutableWorld.getPositionOfMolecule(anchorMolecule); // Get ...
8
@Override public Intersection getIntersection(Ray ray) { Vector distance = Vector.minus(this.position, ray.origin); double b = Vector.dot(ray.direction, distance); double d = b * b - Vector.dot(distance, distance) + this.radius * this.radius; if (d < 0.0d) return null; // calculate both solutions dou...
5
public String getSampleInput() { return this.sampleInput; }
0
private String join(Collection s, String delimiter) { StringBuilder buffer = new StringBuilder(); Iterator iter = s.iterator(); while (iter.hasNext()) { buffer.append(iter.next()); if (iter.hasNext()) { buffer.append(delimiter); } } ...
2
public OutlineButton(OutlinerCellRendererImpl renderer) { this.renderer = renderer; setVerticalAlignment(SwingConstants.TOP); setOpaque(true); setVisible(false); }
0
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 static void main(String[] args) { if (args.length != 3) { System.err.println("Usage: AssociationsFinder <fileName> <min_support> <min_confidence>"); System.exit(1); } String fileName = args[0]; Double min_support = 0.0; Double min_confidence = 0.0; try { min_support = Double.parse...
7
public List<FTPFile> parse(List<String> serverLines, String parentPath) { List<FTPFile> files = new ArrayList<FTPFile>(serverLines.size()); for (String line : serverLines) { FTPFile file = null; try { log.debug("Trying to parse line: " + line); fi...
7
public void wallHit(int a){ if(a==1){ directionX = directionX*-1; } if(a==2){ directionY = directionY*-1; } }
2
public static Sprite get(String ref) { if(sprites.containsKey(ref)) { return sprites.get(ref); } if(ref != null) { sprites.put(ref, new Sprite(ref)); } return sprites.get(ref); }
2
private double search() { double l=mu-sigma*2; double r=mu+sigma*2; while (l+0.1<r){ double t1=(r-l)/3+l; double t2=2*(r-l)/3+l; if(f(t1) < f(t2)) l=t1; else r=t2; } return (l+r)/2; }
2
@Override public void setStat(String code, String val) { if(CMLib.coffeeMaker().getGenItemCodeNum(code)>=0) CMLib.coffeeMaker().setGenItemStat(this,code,val); else switch(getCodeNum(code)) { case 0: setPowerCapacity(CMath.s_parseLongExpression(val)); break; case 1: activate(CMath.s_bool(val));...
8
public Tile(Point location, Room containingRoom){ if (location == null || containingRoom == null){ throw new IllegalArgumentException("A tile must have a location and a containing room"); } edges = new HashMap<Direction, Edge>(); inventory = new Inventory(); //start empty, avoids null pointers character...
2
@Basic @Column(name = "tipo") public String getTipo() { return tipo; }
0
private void search(String fileName) { File file = new java.io.File(fileName + ".html.txt"); File fileHistory = new java.io.File(fileName + ".history.txt"); FileWriter fw = null; FileWriter fwHistory = null; try { fw = new FileWriter(file); fwHistory = new FileWriter(fileHistory); fw.write("...
7
@Override public boolean playerSignIn(String pUsername, String pPassword, String pIPAddress) { if((pUsername.charAt(0) > 'Z' && pUsername.charAt(0) < 'a') || pUsername.charAt(0) < 'A' || pUsername.charAt(0) > 'z') { aLog.info("Error Player Sign in : Username cannot start with " + pUsername.charAt(0)); retu...
9
public void visitJumpInsn(final int opcode, final Label label) { if (mv != null) { mv.visitJumpInsn(opcode, label); } execute(opcode, 0, null); if (opcode == Opcodes.GOTO) { this.locals = null; this.stack = null; } }
2
public void actionOpenFile() { JFileChooser fc = new JFileChooser(); fc.setFileSelectionMode(JFileChooser.FILES_ONLY); fc.setDialogTitle(UIStrings.UI_OPEN_MDFILE_LABEL); fc.addChoosableFileFilter(new FileNameExtensionFilter( "Markdown files (.md, .mmd, .markdown, .txt, .text)", ...
3
private static int readMenuChoice(BufferedReader reader, int max) { int result = 0; while (true) { String choice = null; try { choice = reader.readLine(); } catch (IOException e) { e.printStackTrace(); } try { ...
5
public static ArrayList<PracticeAchievement> getAllAchievements() { if (allAchievements.isEmpty()) loadAllAchievements(); return allAchievements; }
1
public static HGTypedValue project(HyperGraph hg, HGHandle type, Object value, String [] dimPath, boolean throwExceptionOnNotFound) { Object topvalue = value; for (int j = 0; j < dimPath.length; j++) { HGAtomType tinstance = (HGAtomType)hg.get(type); if (! ...
7
@Override public void setSector(String sector) { super.setSector(sector); }
0
private String[] getHeaderArray(String line) { char[] lineArray = line.toCharArray(); String tmp = ""; String[] split = new String[line.length() + 1/2]; //Cannot be greater int i = 0; // We here build all the strings to go into our array, if we meet a // ' ' we stop and store our accumulated string in the a...
5
public boolean equalsExpr(final Expr other) { return (other != null) && (other instanceof ArrayRefExpr) && ((ArrayRefExpr) other).array.equalsExpr(array) && ((ArrayRefExpr) other).index.equalsExpr(index); }
3
private void splitFrames(String hexBuff, String file) throws IOException{ //need to work on salvaging partial frames due to buffer misalignment //and syncwords in the data String[] frames; frames = hexBuff.split(syncWord); for(int frame_i = 0; frame_i < frames.length;...
8
public static void main(String[] args) throws ParseException, ClassNotFoundException { Connection connect = null; PreparedStatement preparedStatement = null; String t = "17:04:26.636"; System.out.println(t); DateFormat format = new SimpleDateFormat("HH:mm:ss.SSS"); ...
1
public void rebuild(){ topPanel.removeAll(); bottomPanel.removeAll(); topTabs = new ArrayList<TabButton>(); bottomTabs = new ArrayList<TabButton>(); for(DataTabButton tabData : tabsDatabase){ TabButton tab = new TabButton(tabData); if(tabData.orie...
3
@Override public void execute(VirtualMachine vm) { DebuggerVirtualMachine dvm = (DebuggerVirtualMachine) vm; dvm.setCurrentLine(lineNumber); }
0
public void save(PermissionBase holder) throws DataSaveFailedException { dataHolder.save(holder); }
0
@Override public void onChatComplete(Player player, String enteredText, Object... args) throws EssentialsCommandException { RankAction action = (RankAction)args[1]; @SuppressWarnings("unchecked") ArrayList<Player> targetPlayers = (ArrayList<Player>)args[0]; for(Player target: targetPlayers) { // make sur...
5
@Override public boolean serialize(JsonSerializer serializer, JsonFragmentBuilder builder, Object value) { boolean result; Method toJson=findMethod(value.getClass(), boolean.class, Arrays.asList("toJson"), JsonFragmentBuilder.class); if(toJson != null) { try { ...
7
private boolean jj_3R_59() { if (jj_3R_74()) return true; if (jj_scan_token(POINT)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_58()) { jj_scanpos = xsp; break; } } if (jj_3R_72()) return true; return false; }
5
@Override protected void respond(Channel channel) throws IOException { ProtocolData received = new ProtocolData(buffer); if (received.getMessage() == ProtocolMessage.CONNECTION_OK) { ps.printf("[Conexão: %s]\n", df.format(new Date())); connectionOK(channel, received); } else if (received.getMessage() ==...
8
public static String getParentPath(String path) { if (path != null) { int index = path.lastIndexOf(mxCellPath.PATH_SEPARATOR); if (index >= 0) { return path.substring(0, index); } else if (path.length() > 0) { return ""; } } return null; }
3
public MainWindow () { setTitle("Camp Planer " + versionString); setSize(800, 600); setMinimumSize(new Dimension(500, 300)); // import setup data try { System.out.println ("Trying to read setup file " + SETUP_FILE_NAME + "."); setupData = SetupData.read (SETUP_FILE_NAME...
1
public static int[] string2int( String[] splits ) throws NullPointerException, NumberFormatException { if( splits == null ) return null; int[] arr = new int[ splits.length ]; for( int i = 0; i < splits.length; i++ ) { if( splits[i] == null ) throw new NullPointerException( "Token at index " +...
4
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((attrs == null) ? 0 : attrs.hashCode()); result = prime * result + (endTag ? 1231 : 1237); result = prime * result + ((name == null) ? 0 : name.hashCode()); result = prime * result + (selfClosing ? 1231 : 123...
4
public static <T> SimilarityDatabase<T> create(final Similarity<? super T> distance, Iterable<? extends T> candidates) { BKTree.Builder<T> builder = BKTree.createBuilder(distance); for (T crnt : candidates) { builder.insert(crnt); } final BKTree root = builder.build(); ...
4
public void stopMonitor() { if (this.disableBillTypes(this.STOP_ENTER_POINT)) { for (int i=0; i<30; i++) { if (this.poll(true)) { if (this.deviceAnswerSTATE.equals("Unit Disabled")) { ...
5
@Override public void run() { ReceiverBot rb = BotManager.getInstance().receiverBot; if (!rb.isConnected() || (rb.checkStalePing() && BotManager.getInstance().monitorPings)) { try { System.out.println("INFO: Attempting to reconnect receiver"); rb.disconne...
8
public Tiedote validateAndConvert() throws ValidointiPoikkeus { // luodaan wrapper virheiden kuljettamista varten ValidointiVirheet virheet = new ValidointiVirheet(); // luodaan validoija Validator validoija = new Validator(); Tiedote tiedote = new Tiedote(); // otsikon validointi if (validoija.validat...
3
public static List<Integer> getAllPrimesLessThen(int limit) { Sequence<Integer> primes = new ArrayedPrimesSequence(); int c = 0; try { List<Integer> primesList = new ArrayList<Integer>(limit / 5); while (true) { c++; int prime = primes.next...
3
public void testWithFieldAdded2() { Period test = new Period(1, 2, 3, 4, 5, 6, 7, 8); try { test.withFieldAdded(null, 0); fail(); } catch (IllegalArgumentException ex) {} }
1
private List<T> merge(List<T> leftList, List<T> rightList) { // Create the list that will contain the result (i.e., merge) of the two lists. List<T> mergedList = new ArrayList<T>(); // As long as either the left or the right list has items remaining in it that have not been // merged, continue removing...
7
private void displayHeader() { // Calculate width and pad with '-': int width = fieldWidth * tests.size() + sizeWidth; int dashLength = width - headline.length() - 1; StringBuilder head = new StringBuilder(width); for(int i = 0; i < dashLength / 2; i++) head.append('-...
4
public synchronized static boolean isDone() { return done; }
0
public void userDataEvent(VisualizePanelEvent e) { if (m_propertyDialog != null) { m_propertyDialog.dispose(); m_propertyDialog = null; } try { if (m_focus != null) { double wdom = e.getInstances1().numInstances() + e.getInstances2().numInstances(); if (wdom == 0) { w...
7
private static void parseIngredientsForInitialDataRepository(Node IngredientNode, Vector<Ingredient> RestIngredients) { if (IngredientNode.getNodeType() == Node.ELEMENT_NODE) { Element IngredientsElement = (Element) IngredientNode; String ingredientName= IngredientsElement.getElementsByTagName("name").item(0).g...
4
private void setupForDragging(MouseEvent e) { source.addMouseMotionListener(this); potentialDrag = true; // Determine the component that will ultimately be moved if (destinationComponent != null) { destination = destinationComponent; } else if (destinationClass == ...
4
protected JComponent initTreePanel() { treeDrawer.setNodeDrawer(nodeDrawer); return super.initTreePanel(); }
0
static public void FixInconsitencies(){ Map<String, LastActivity> lastActivities = LastActivity.lastActivities; Player[] players = AFKPGC.plugin.getServer().getOnlinePlayers(); TreeSet<String> playersTree = new TreeSet<String>(); for(Player p:players) { String name = p.getName(); if(!lastActivities....
4
public static void main(String[] args) throws UnknownHostException, IOException, NumberFormatException, InterruptedException { // Connect to the server socket = new Socket("localhost", PORT); // Write and read from the server through sockets out = new PrintWriter(socket.getOutputStream(), true); in = new B...
3
@Override public void run() { try { connect(server, port); if (serverEventsListener != null) serverEventsListener.connected(); } catch (IOException | IrcException e) { if (serverEventsListener != null) serverEventsListener.connectio...
3
public static int areConnected(WayOsm w1, WayOsm w2){ if(w1 == null || w2 == null) return -1; if(w1.getNodes().get(w1.getNodes().size()-1).equals(w2.getNodes().get(0))) return 1; if(w1.getNodes().get(0).equals(w2.getNodes().get(w2.getNodes().size()-1))) return 2; if(w1.getNodes().get(0).equals(w2.getN...
6
public void mouseMoved(MouseEvent e) { performAutoScrollIfActive(e); if (mapViewer.isGotoStarted()) { if (mapViewer.getActiveUnit() == null) { mapViewer.stopGoto(); } Tile tile = mapViewer.convertToMapTile(e.getX(), e.getY()); if (tile != ...
6
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 setPassable(int x, int y, Direction dir, boolean v) { if(dir == Direction.RIGHT) { setPassable(x + 1, y , Direction.LEFT, v); return; } if(dir == Direction.DOWN ) { setPassable(x , y + 1, Direction.UP , v); return; } if(check(x, y)) { if(x == 0 && dir == Direction.LEFT) { return; } if(...
7
protected void getVertxBufferOutputStream(String fileName, Handler<AsyncResult<InputStream>> doneHandler) { vertx.fileSystem().open(fileName, null, false, false, false, result -> { if (result.failed()) { doneHandler.handle(new SimpleAsyncResult<>(result.cause())); return; } PipedOutputStream os = ne...
5
public void run() { while(!playerChanges.isEmpty()) { PlayerOnlineChange change = playerChanges.poll(); if (change == null) return; if (change.getOnline()) OnlineUsers.ds.addUser(change.getName(), change.getUUID()); else if (OnlineUsers.removeOfflineUsers) OnlineUsers.ds.removeUser(chan...
4
private void resetTarget() { System.out.println("\n--------- reset redex ----------"); //System.out.println(this); if (target == null) { // handle the information about module Equation[] eqs = (Equation[])(module.equations.toArray()); Hashtable op2eq = new Hashtable(); for (int i=0; i<eqs.len...
9
public void paintComponent(Graphics g) { if (myImage == null) return; Rectangle r = getVisibleRect(), r2 = new Rectangle(getPreferredSize()); int offsetx = r.width > r2.width ? (r.width - r2.width) / 2 : 0; int offsety = r.height > r2.height ? (r.height - r2.height) / 2 : 0; r = r.intersection(r2); g.dr...
3
@Override public void keyPressed(KeyEvent e) { if (!(e.getKeyCode() == KeyEvent.VK_C && e.isControlDown())) { e.consume(); } }
2
private void assignActionsToButtons() { bLoad.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { File f = FileUtil.showSavegameLoadDialog(controlPanel); if(f != null) { savegame = f; savegame...
4
public String ViewMySQLPackets(DatabaseAccess JavaDBAccess) { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; String MySQLPackets = ""; try { if ((conn = JavaDBAccess.setConn()) != null) { System.out.println("Connected to dat...
5
public void invertObjects() { for(int i = 0; i < inputRecordsPerDumpList.size(); i++) { long record = inputRecordsPerDumpList.get(i); UserObjectsPerDump objects = userObjsPerDumpList.get(i); for(UserObject obj : objects.getUesrObjects()) { if(obj.getCode().equals(function)) { if(!object...
4
public void setNext() { for (int x = 0; x < 4; x++) { System.arraycopy(grid[x], 0, next.grid[x], 0, 4); } }
1
public void undoLastMove() { if (!this.moveList.empty()) { Move lastMove = this.moveList.pop(); lastMove.undo(); this.setTurn(lastMove.player); // Change turn to player whose turn was just undone this.redoList.add(lastMove); if (this.activeField != null) { this.activeField.makeInactive(); this....
2
public PrimitiveUndoableReplace(Node parent, Node oldNode, Node newNode) { this.parent = parent; this.oldNode = oldNode; this.newNode = newNode; this.index = oldNode.currentIndex(); }
0
public boolean collision(int x, int y, int a, int b, int w, int h){ boolean up=(y-b)<h; boolean down=(y-b)>0; boolean left=(x-a)<w; boolean right=(x-a)>0; if(left&&right&&up&&down){ return true; } return false; }
4
public void visit_lshr(final Instruction inst) { stackHeight -= 3; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } stackHeight += 2; }
1
private void removeDisconnectedClientEntities(final long clientDisconnectedID) { for (Entity e : entityMap.values()) { if (e.getClientId() == clientDisconnectedID) e.setDeleteTimeleft(500); } }
2