text
stringlengths
14
410k
label
int32
0
9
public double getMarkerLatitude() { return markerRect.getLatitude(); }
0
public static void commandMode(final EnvironmentInterface env) { final int maxBuf = 200; byte[] buf = new byte[maxBuf]; int length; try { System.out.print("\nTAallocation: query using predicates, assert using \"!\" prefixing predicates;\n !exit() to quit; !help() for help.\n\n> "); while ((length=System.i...
7
public MeasureKit(DataStructures inData, int numberOfPoints){ this.inData = inData; this.numberOfPoints = numberOfPoints; }
0
private void fillNumbers() { int dx[] = { 0, 1, 1, 1, 0, -1, -1, -1 }; int dy[] = { -1, -1, 0, 1, 1, 1, 0, -1 }; int width = board.length; int height = board[0].length; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { if (board[x][y] != MINE) { board[x][y] = 0; for (i...
9
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; UserBean other = (UserBean) obj; if (password == null) { if (other.password != null) return false; } else if (!password.equals(other.pas...
9
public void encode(char c, BitOutputStream bos) throws IOException { int nodeNumber = currentNumber; for (int i = 512; i >= currentNumber; --i) { // found leaf with symbol if (c == nodes[i].symbol && nodes[i].left == null) { nodeNumber = i; bre...
9
void nachRechts() { if (dx < 0) { dx = 0; try { texture = TextureLoader.getTexture("PNG", new FileInputStream(new File(uT.locationMid))); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block...
5
private void parse(Node groupNode) throws UnisensParseException{ NamedNodeMap attr = groupNode.getAttributes(); Node attrNode = attr.getNamedItem(GROUP_ID); id = (attrNode != null) ? attrNode.getNodeValue():"" ; attrNode = attr.getNamedItem(GROUP_COMMENT); comment = (attrNode != null) ? attrNode.getNodeVal...
5
public boolean place(int x, int y) { //if all squares are free, place ship and placed == true. if not, return false if (randomAlignment() == true) { x = randomWithRange(0,7); for (int i = x; i < x + 3; i++) { if (!Grid.isSquareEmpty(i, y)) { Grid.addTo...
5
@Override public Set<String> composeSample(Distribution base, int maxSize) { // if all samples fit into the maxSize just return them all. if (this.getSampleSizeSum() <= maxSize) { return this.getSampleReferences(); } TreeSet<String> result = new TreeSet<String>(); Distribution approximateDistribution = n...
8
public int largestRectangleArea(int[] height) { Stack<Integer> stack = new Stack<Integer>(); int maxArea = 0; for (int i = 0; i < height.length; i++) { if (stack.isEmpty() || height[stack.peek()] <= height[i]) { stack.push(i); } else { while (!stack.isEmpty() && height[stack.peek()] > height[i]) { ...
8
public List<Edge> incidentEdges(Vertex vertex) { ArrayList<Edge> edgeList = null; if (graphType == Type.UNDIRECTED) { for (EdgeListObject elo : vertex.getIncidenceList()) { if (edgeList == null) edgeList = new ArrayList<Edge>(); edgeList.add(elo.getEdge()); } } else { List<EdgeListObject> ou...
6
public mxPoint getParentOffset(Object parent) { mxPoint result = new mxPoint(); if (parent != null && parent != this.parent) { mxIGraphModel model = graph.getModel(); if (model.isAncestor(this.parent, parent)) { mxGeometry parentGeo = model.getGeometry(parent); while (parent != this.parent) ...
4
public void updateDirection(SnakePart s){ if(s.x >= wa || s.y >= ha || s.x < 0 || s.y < 0){ gameEnd(); return; } int dir = board[(int) s.x][(int) s.y]; if(dir==1){ s.xD = 0; s.yD = 1; } if(dir==2){ s.xD = -1; s.yD = 0; } if(dir==3){ s.xD = 0; s.yD = -1; } if(dir==4){ ...
9
public Usage(){ addForm(_defaultprop); StringBuffer defprop = new StringBuffer(); FileInputStream fin = null; InputStreamReader ir = null; BufferedReader br = null; try { fin = new FileInputStream(AppUtil.getAppPath() + AppUtil.DEFAULT_PROP_FILE); ir = new InputStreamReader(fin,"UTF-8"); br ...
8
@EventHandler(priority = EventPriority.LOWEST) public void onLoginServer(ServerConnectEvent e) { ProxiedPlayer p = e.getPlayer(); if (plugin.maintenanceEnabled && !p.hasPermission("bungeeutils.bypassmaintenance")) { p.disconnect(new ComponentBuilder("").append(plugin.messages.get(EnumMes...
4
public void removePlotter(final Plotter plotter) { plotters.remove(plotter); }
0
@Override public void populate(World world, Random random, Chunk chunk) { if (!isGraveyardSet(chunk) && random.nextInt(4) < 1) { Vector<GraveyardStructure> structures = new Vector<>(); for (Class<? extends GraveyardStructure> clazz : structureClasses) { try { ...
9
@Command(name = "language", usage = "[language]") @RequiresPermission private void languageCommand(CommandSender sender, CommandArgs args) { if (args.size() > 0) { String language = args.getString(0); Translation tranlation = Translation.get(this.plugin.getClass(), la...
2
private String testCount() { String tCount = ""; // report test totals if (this.numberOfTests == 1) { tCount = "\nRan 1 test.\n"; } else if (this.numberOfTests > 1) { tCount = "\nRan " + this.numberOfTests + " tests.\n"; } // report error totals if (this.errors == 0) { tCount = tCount + "All te...
8
private static ArrayList<String> toStringArrayList(String str) { ArrayList<String> array = new ArrayList<String>(); String[] Str = str.split(""); for(String s : Str) { if(s != "") { array.add(s); } } return array; }
2
public PropertyTree getNode(int result) { if(nodes.size()>result) { return nodes.get(result); } return null; }
1
public static void main(String[] args) { Logger logger = null; try { logger = new Logger("log.txt"); logger.log("Test 1"); logger.log("Test 2"); } catch (IOException e) { e.printStackTrace(); } finally { if (logger != null) { try { logger.close(); } catch (IOException e) { e.pri...
3
void run(){ Scanner sc = new Scanner(System.in); for(;;){ int n = sc.nextInt(); int m = sc.nextInt(); if((n|m)==0)break; Map<String, Integer> ref = new HashMap<String, Integer>(); int id = 0; int s = id; ref.put(sc.next(), id++); int p = id; ref.put(sc.next(), id++); int g = id; ref.put(sc.n...
9
protected void initialize() { _nextDistance(); super.initialize(); }
0
public static void main(String[] args) throws IOException { String host = args[0]; int port = Integer.parseInt(args[1]); String serviceName = args[2]; BufferedReader in = new BufferedReader(new FileReader(args[3])); // locate the registry and get ror. RMIRegistryClient registry = RMIRegistryClient.getRegis...
6
public void actionPerformed(ActionEvent evt) { String cmd = evt.getActionCommand().toLowerCase(); try { if(cmd != null) { if (cmd.equals("open interface")) { selectInterface(ActionHandler.openInterface()); } if (cmd.equals("show grid")) { Settings.displayGrid = displayGrid.isSelected(); ...
8
private static List<BeanMappingObject> parseMappingObject(InputStream in) { Document doc = XmlHelper.createDocument( in, Thread.currentThread().getContextClassLoader().getResourceAsStream( ...
6
@Override public Predictors<MultiClassLabel> process(Predictors<Collection<MultiClassLabel>> input) throws Exception { Predictors<MultiClassLabel> res = new Predictors<MultiClassLabel>(input.size()); for(int i = 0; i<input.size(); i++) { Collection<MultiClassLabel> sets = input.get(i); ...
6
public double[] getRandLetterNoise(double ordM, double invM) throws IOException { char letter; Random r = new Random(); letter = (char) (r.nextInt(5) + 'J'); BufferedImage letterImage = ImageIO.read(getClass().getResource("/images/" + letter + ".png")); double[] result = new doub...
6
public static boolean isImprimivel(Tipo tipo) { switch(tipo){ case INTEIRO: case REAL: case CARACTERE: case CADEIA: return true; default: return false; } }
4
public void map_move_step(int x, int y) { Gob pgob; int btn = 1; int modflags = 0; synchronized (glob.oc) { pgob = glob.oc.getgob(playergob); } if (pgob == null) return; Coord mc = tilify(pgob.position()); Coord offset = new Coord(x, y).mul(tileSize); mc = mc.add(offset); wdgmsg("click", JSBot...
1
@Override public NameData[] getNameData() { int length = crawledData.length; updateStatus(length, 0, 0, 0); if(length == 0) return null; for(int i = 0; i < length; i++) { cd = crawledData[i]; // Für jedes crawledData wird neu angefangen nach Künstlern zu suchen. foundNameIDs.clear()...
7
public void loop(){ int counter = 0; printOptions(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true){ int i = 5; try { i = Integer.valueOf(br.readLine()); if (i<0 || i>2){ System.out.println("Please enter a number between 0 and 2"); printOptions(); ...
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
public Tile(int x, int y, int typeInt) { tileX = x * 40; tileY = y * 40; type = typeInt; r = new Rectangle(); if (type == 5) { tileImage = StartingClass.tiledirt; } else if (type == 8) { tileImage = StartingClass.tilegrassTop; } else if (type == 4) { tileImage = StartingClass.tilegrassLeft; ...
5
public int compare(Object o1, Object o2) { final EdgeCrossing a = (EdgeCrossing)o1; final EdgeCrossing b = (EdgeCrossing)o2; if(a.getAngle() < b.getAngle()) { return -1; } if(a.getAngle() > b.getAngle()) { return 1; } // Angles are equal. ...
8
public static void analyseResults(File resultFile) { try { int correctHams = 0; int correctSpams = 0; int incorrectHams = 0; int incorrectSpams = 0; int lineCounter = 0; Scanner sc = new Scanner(resultFile); File analysisFile = new File("analysis3.txt"); BufferedWriter bw = new ...
6
public DataPoint(double one, int to, double two, int tt, double three, int tth, double four, int tf, double five, int tfi ) { p1 = one; p2 = two; p3 = three; p4 = four; p5 = five; t1 = to; t2 = tt; t3 = tth; t4 = tf; t5 = tfi; //Fill the array with values to feed to perceptrons fVals[0] = p1; fVals[1] = ...
1
public static void main(String[] args) throws Exception { String host = null; int port = -1; for (int i = 0; i < args.length; i++) { System.out.println("args[" + i + "] = " + args[i]); } if (args.length < 2) { System.out.println("USAGE: java client host port"); System.exit(-1); } try { /* get inp...
9
@Override public QueryResult execQuery(Query q) { Statement st = null; ArrayList<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>(); if(!q.isParsed()) { q.parse(); } try { st = con.createStatement(); ResultSet res = st.executeQuery(q.getParsedQuery()); while(res.nex...
8
private boolean noTeleporterOnWall(Grid grid) { List<Teleporter> teleports = getTeleportersOfGrid(grid); for (Teleporter teleport : teleports) { final Position tpPos = grid.getElementPosition(teleport); for (Element e : grid.getElementsOnPosition(tpPos)) if (e instanceof Wall) return false; ...
3
private void algo() { // Step 1 - // initialize the zero flow (if none is given) // mark Quelle init(); // Step 2 // save the current to be inspected Vertice into vi. // end loop, if there are no more. for (Long vi = popFromQueue(); vi != -1L; vi = popFromQueue()) { // filter all edges by O(vi) an...
8
@Override public void startElement(String uri, String localName, String name, Attributes atts) throws SAXException { super.startElement(uri, localName, name, atts); if (numLayers > 0 && startRecordingElementName.equalsIgnoreCase(localName) && "class".equalsIgnoreCase(atts.getLocalName(0)) && startRe...
4
@Override public int loginUser(UserRequest request) { int result = -1; User unvalidatedUser = new User(request.getUsername(), request.getPassword()); int index = users.indexOf(unvalidatedUser); if(index > -1) { IUser validUser = users.get(index); result = (validUser.getPassword().equals(unvalidatedUser....
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 fe...
6
public final void enqueue() { if (nextOnQueue == null) { this.nextOnQueue = notifyQueue.first; notifyQueue.first = this; } }
1
public BigInteger[][] getEncryptionKeys(BigInteger[] keyArray) { // String keyString BigInteger[] outputArray = new BigInteger[52]; // BigInteger[] keyArray = Helper.stringToBigIntegerArray(keyString); BigInteger key = Helper.bigIntegerArraySum(keyArray, 8); BigInteger[] shortKeyArray = Helper.ext...
7
public int getStatus() { return this.Status; }
0
public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // @Override // public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse response)throws Exception { String code = req.getPar...
7
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed Transferable clipboardContent = getToolkit().getSystemClipboard().getContents(this); if ((clipboardContent != null) && (clipboardContent.isDataFlavorSupported(DataFla...
3
public boolean load(String audiofile) { try { setFilename(audiofile); sample = AudioSystem.getAudioInputStream(getURL(filename)); clip.open(sample); return true; } catch (IOException e) { return false; } catch (UnsupportedAudioFileException e) { return false; } catch (LineUnavailableException...
3
@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 Atendimento)) { return false; } Atendimento other = (Atendimento) object; if ((this.codatendimento == null && o...
5
public void addSubCategory(SubCategory scat) { this.subcategories.add(scat); }
0
@Override public boolean equals(Object o) { if (null == o || !(o instanceof BytesKey)) { return false; } BytesKey k = (BytesKey) o; if (null == k.getData() && null == this.getData()) { return true; } if (null == k.getData() || null == this.getD...
9
public boolean isDownloadList() { MediaUrlDao mediaUrlDao = new MediaUrlDao(); mediaUrlModelList = mediaUrlDao.getUrlList(); if (mediaUrlModelList.size() > 0 ) { return true; } return false; }
1
public String weekday_name( int weekday ) { String result = ""; if ( weekday == 1 ) { result = "Sunday"; } else if ( weekday == 2 ) { result = "Monday"; } else if ( weekday == 3 ) { result = "Tuesday"; } else if ( weekday == 4 ) { result = "Wednesday"; } else if ( weekday == 5 ...
8
private String getSFieldEntries(){ String output = ""; Integer counter = 0; for (int i = 0; i < this.sObjects().length; i++) { if(!this.objects.equals("all") && !this.objectList().contains(sObjects()[i].getName().toLowerCase() )){ continue; } if(this.limit != -1 && counter++ > this.limit){ break;} ...
9
public void testInferenceProblemStoreReuse() { System.out.println("\n**** testInferenceProblemStoreReuse ****"); CycAccess cycAccess = null; try { try { if (connectionMode == LOCAL_CYC_CONNECTION) { cycAccess = new CycAccess(testHostName, testBasePort); } else if (connection...
6
protected void genGender(MOB mob, MOB E, int showNumber, int showFlag) throws IOException { if((showFlag>0)&&(showFlag!=showNumber)) return; mob.tell(L("@x1. Gender: '@x2'.",""+showNumber,""+Character.toUpperCase((char)E.baseCharStats().getStat(CharStats.STAT_GENDER)))); if((showFlag!=showNumber)&&(showFlag...
9
public void collideVertical() { // check if collided with ground if (getVelocityY() > 0) { onGround = true; } setVelocityY(0); }
1
public void setColor(int r, int g, int b){ double dR = mapIntColToDoubleCol(r), dG = mapIntColToDoubleCol(g), dB = mapIntColToDoubleCol(b); if((colorR != dR)||(colorG != dG)||(colorB != dB)){ //only print the statement, if the color changed colorR = dR; colorG = dG; colorB = dB; println(colorR+" "+co...
3
public AudioThread(int port) { try{ serverSocket = new ServerSocket(port); } catch (Exception e){ e.printStackTrace(); } }
1
private HTMLPanel createFeedbackPanel(List<String> history) { StringBuilder htmlBuilder = new StringBuilder(); htmlBuilder.append("<div id = 'feedbackHistoryPanel'>" + "<div class='panelTitle'>"+constants.Feedback()+"</div>"); for (String h : history) { htmlBuilder.append("<div class='Feedback...
1
public void scrub() { append(" Detergent.scrub()"); super.scrub(); // Call base-class version }
0
@Override public void mutate() { Population offspring = new Population(); for (int i = 0; i < population.getSize(); ++i){ double r; synchronized (rng){ r = rng.nextDouble(); } if (r < PROBABILITY){ HiffIndividual mutant ...
6
@SuppressWarnings("unchecked") private StringBuilder traverse(Object object, String path) throws IllegalAccessException, InvocationTargetException { StringBuilder ret = new StringBuilder(); if (isSkipObject(object)) { return ret; } Method[] methods = object.getClass().get...
9
protected int findLastUnion() { int split = -1; int depth = 0; int end = start + length; for (int i = end - 1; i != start; i--) { switch (expr[i]) { case '}': case ']': depth++; break; case '{': case '[': if (--depth == 0) { ...
9
@Test public void testToStringSockClosedSocketThread() { LOGGER.log(Level.INFO, "----- STARTING TEST testToStringSockClosedSocketThread -----"); try { server1.startThread(); } catch (IOException | ServerSocketCloseException | FeatureNotUsedException e) { exception = t...
8
private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked if(DescField51.getText() != null) { readsettings.write((String)jComboBox1.getSelectedItem(), DescField51.getText() ); JOptionPane.showMessageDialog(null, "Settings changed!", "Timetable...
1
public Timestamp getCreateDateGmt() { return this.createDateGmt; }
0
private boolean connected(Country a, Country b) { if (a == null || b == null) { return false; } if (a.getUnit().getArmy() != b.getUnit().getArmy()) { return false; } boolean[] visited = new boolean[42]; Queue<Country> searchQ = new ArrayDeque<Country>(); searchQ.add(a); while (!searchQ.isEmpty()...
8
public int getManaRegen() { return manaRegen; }
0
public static char nextLetter(char letter) { if (letter == 'Z') { return 'A'; } else if (letter == 'z') { return 'a'; } for (int i = 0; i < 51; i++) { if (getAlphabet(true).charAt(i) == letter) { return getAlphabet(true).charAt(i + 1); } } //keeps compiler happy return ' '; }
4
protected Option[] discoverOptionsViaReflection() { Class<? extends AbstractOptionHandler> c = this.getClass(); Field[] fields = c.getFields(); List<Option> optList = new LinkedList<Option>(); for (Field field : fields) { String fName = field.getName(); Class<?> f...
7
private static void printClass(ClassDoc cd) { String type; if (cd.isInterface()) { type = "interface"; } else if (cd.isEnum()) { type = "enum"; } else { type = "class"; } os.println("\\begin{texdocclass}{" + type + "}{" + HTMLToTex.convert(cd.name()) + "}"); os.println("\\label{texdoclet:"...
6
private void traverseMutualGraph(KB_Node child, KB_Node knownParent) { ArrayList<KB_Node> argPath = new ArrayList<KB_Node>(); ArrayList<ArrayList<KB_Node>> hold; ArgInfo.mutationCheck[] mutationCheck = ArgInfo.mutationCheck.values(); int findMutationParent = 0, findMutationChild = 1; ...
9
public void resetMap() throws SlickException { GameGrid.mapArray = new Tile[rows][columns]; for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { GameGrid.mapArray[i][j] = new Tile(i, j); if (i == 0 || i == rows - 1 || j == 0 || j == columns - 1) { GameGrid.mapArray[i][j].walkable = f...
6
@Override public void moveComponent(final Integer diffX, final Integer diffY) { if (diffX == null && diffY == null) return; super.moveComponent(diffX, diffY); for (final Edge edge : this.task.getInputEdges()) { edge.getEdgeComponent().updateComponent(null, this); ...
5
public boolean setNodeParam(String region, String agent, String plugin, String paramKey, String paramValue) { boolean isUpdated = false; int count = 0; try { while((!isUpdated) && (count != retryCount)) { if(count > 0) { ...
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 setDepartment(int department) { this.department = department; }
0
public int checkbannedips() { try { BufferedReader in = new BufferedReader(new FileReader("./data/bannedips.txt")); String data = null; while ((data = in.readLine()) != null) { if (connectedFrom.equalsIgnoreCase(data)) { return 5; } } } catch (IOException e) { System.out.pr...
3
@Override public void draw( HDR64Buffer dest, int x, int y, int clipLeft, int clipTop, int clipRight, int clipBottom ) { assert clipLeft >= 0; assert clipTop >= 0; assert clipRight <= dest.width; assert clipBottom <= dest.height; // TODO: more efficiently! int skipY = clipTop > y ? clipTop - y : 0...
7
private final void step6() { j = k; if (b[k] == 'e') { int a = m(); if (a > 1 || a == 1 && !cvc(k-1)) k--; } if (b[k] == 'l' && doublec(k) && m() > 1) k--; }
7
public Map<String, String> getPropertiesFromServer() { if (this.connector == null) { return Collections.emptyMap(); } Map<String, String> properties = Collections.emptyMap(); try { properties = this.connector.get(); if (this.backupMode && properti...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (!(obj instanceof AbstractPassengerCarriage)) return false; AbstractPassengerCarriage other = (AbstractPassengerCarriage) obj; if (baggageCurWeight != other.baggageCurWeight) retur...
8
@Override public void actionPerformed(ActionEvent e) { if(e.getSource() == view.getLoginView().getLoginButton()){ try{ String username = view.getLoginView().getUsername().getText(); String password = view.getLoginView().getPassword().getText(); DAOFactoryLogin daoFactoryLogin = (DAOFactoryLogin) ...
3
public List<LoginEntry> readLoginInfo(String playerName) { List<LoginEntry> retList = new ArrayList<LoginEntry>(); try { ResultSet rs = _sqLite.query("SELECT login.* FROM player, login " + "WHERE player.playername = '" + playerName + "' " + "AND player.id = login.id_player " ...
3
public static float speed() { if (Level.state == 0) { return 1; } else { return (float) (2 / Math.pow(2, Level.state)); } }
1
public Plant(Field field, Location location) { alive = true; this.field = field; setLocation(location); }
0
public boolean checkAccusation(Solution accusation) { if (accusation.equals(solution)) return true; else return false; }
1
public void setSecond(T newValue) { second = newValue; }
0
protected boolean executeInternal(RuleContext ruleContext) { Rule rule = ruleContext.getActiveRule(); if (null == rule) { throw new RuntimeException("RulesEngine.execute: Active Rule object has not been loaded on the RuleContext"); } // a_Load dependencies String ruleName = rule.getName...
6
private void XspeedTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_XspeedTFKeyTyped boolean OK = false; if((evt.getKeyChar()=='-')&&(XspeedTF.getText().equals("")))OK = true; if((evt.getKeyChar()=='.')&&(!XspeedTF.getText().equals("")&&!XspeedTF.getText().equals("-")))OK = true; ...
8
public void identifier() { //le nom du joueur nom = JOptionPane.showInputDialog(null, "entrer votre nom svp :", "Entrer le nom", JOptionPane.PLAIN_MESSAGE); if (nom == null || nom.equals("")) { nom = "Anonyme"; } //le type du jeu if (m3.isSelec...
5
public void remove() { AccountRemoveEvent Event = new AccountRemoveEvent(this.name); iConomy.getBukkitServer().getPluginManager().callEvent(Event); if (!Event.isCancelled()) { Connection conn = null; PreparedStatement ps = null; try { conn = iConomy.getiCoDatabase().getConne...
5
public String get(final String uuid, final String... extra) throws BadRequestException, DocumentNotFoundException, ServerErrorException { final String xslt = extra[0]; if (extra.length == 0 || xslt == null) return super.get(uuid, extra); final XMLDocument document; ...
7
private static void removeShit() { for (StringBuilder s : outStrings) { for (int i = 0; i < s.length(); i++) { boolean deleted = false; char c = s.charAt(i); if (c == '[') { int startNote = i; int endNote = i + 1...
6
@Override public void keyPressed(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_ESCAPE) { getStageManager().setStatge(StageManager.STAGE_MENUE, null); } }
1