text
stringlengths
14
410k
label
int32
0
9
@Override public double getTip() { double tip = 0.00; // always initialize local variables switch(serviceQuality) { case GOOD: tip = bill * goodRate; break; case FAIR: tip = bill * fairRate; break; c...
3
public void run() { try { //do we need the local or the stream from the net? if(stream.getStatus() && stream.connectToRelayCB) { options.add("http://127.0.0.1:"+stream.relayServerPortTF); } else { options.add(stream.address); } //collect the options options.add(0,mplayerPat...
7
synchronized public static void addOrUpdateRequestAmount(String ip, String timestamp){ Requests req; EntityManager manager = JPUtil.getInstance().getManager(); manager.getTransaction().begin(); try { req = manager.createNamedQuery("Requests.findByIp", Requests.class).setPa...
1
public void heapify(int indeksi){ int vasen = left(indeksi); int oikea = right(indeksi); int pienin; if(oikea <= heapsize){ if(keko[vasen] < keko[oikea]){ pienin = vasen; } else{ pienin = oikea; } ...
5
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { if (response instanceof HttpServletResponse && request instanceof HttpServletRequest) { HttpServletRequest httpRequest = (HttpServletRequest) request; HttpServletR...
8
public static int countOccurrencesOf(String str, String sub) { if (str == null || sub == null || str.length() == 0 || sub.length() == 0) { return 0; } int count = 0; int pos = 0; int idx; while ((idx = str.indexOf(sub, pos)) != -1) { ++count; pos = idx + sub.length(); } return count; }
5
@RequestMapping(value = "/upload", method = RequestMethod.POST) public String upload(ModelMap model, HttpServletRequest request, HttpServletResponse response) { try { List<FileItem> items = new ServletFileUpload(new DiskFileItemFactory()).parseRequest(request); String fileName = "teaDataFile.txt"; for (File...
3
public void leer() throws FileNotFoundException, IOException, ClassNotFoundException{ ObjectInputStream s=null; FileInputStream in = null; try { in = new FileInputStream(this.file); s = new ObjectInputStream(in); try{ while(true){ ...
4
public synchronized void release(Connection conn) throws DataException { try { // be sure that this connection was committed (so it is at a fresh, new transaction) conn.commit(); // first remove the connection from the used list usedConnections.remove(conn); // next add it back to th...
1
public static LinearFilter createF(int i, ColorChannel... channels) { if (i < 1 || i > 4) throw new IllegalArgumentException("N�o h� filtros para o valor de i=" + i); if (i == 1) return new LinearFilter(DoubleMatrix.createAverages(3, 3, 0, 1, 0, ...
5
private void isCompetitive(){ int wrongWay = 0; for(int i=1; i<this.nAnalyteConcns; i++){ if(this.responses[i-1]<this.responses[i])wrongWay++; if(wrongWay>=this.nAnalyteConcns/2){ if(this.responses[this.nAnalyteConcns]>=this.responses[0]){ thro...
4
public Queue<String> peonEliteXMLUnit (){ try { path = new File(".").getCanonicalPath(); FileInputStream file = new FileInputStream(new File(path + "/xml/papabicho.xml")); DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); ...
9
public CheckResultMessage check17(int day) { return checkReport.check17(day); }
0
static boolean isFieldInSuper(CtClass clazz, CtClass fclass, String fname) { if (!clazz.subclassOf(fclass)) return false; try { CtField f = clazz.getField(fname); return f.getDeclaringClass() == fclass; } catch (NotFoundException e) {} return ...
2
public byte[] recieveMessage() { byte[] responce = new byte[68]; for(int i=0;i<responce.length;i++) responce[i] = 0; try { this.from_peer.readFully(responce); } catch (IOException e) { // http://docs.oracle.com/javase/tutorial/essential/io/datastreams.html // We will do nothing with this! The EOF is...
2
@Override public boolean tick(Tickable ticking, int tickID) { if((unInvoked)&&(canBeUninvoked())) return false; if((canBeUninvoked()) &&(tickID==Tickable.TICKID_MOB) &&(tickDown!=Integer.MAX_VALUE)) { if(tickDown<0) return !unInvoked; if((--tickDown)<=0) { tickDown=-1; unInvoke(); ...
7
public static void setPath() { //Get username and OS String os=System.getProperty("os.name"); String user=System.getProperty("user.name"); //Set path depending on OS if (os.contains("Mac")) Main.path="/Users/"+user+"/Library/Application Support/Preproste Suplence/"; else...
3
private void btnLearnCompleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLearnCompleteActionPerformed ScienceTool.clearAll(); while (lstTypes.getSelectedIndex() < lstTypes.getModel().getSize() - 1) { System.out.println("learning " + txtFile.getText()); ...
5
public void invalidateBlockReceiveRegion(int par1, int par2, int par3, int par4, int par5, int par6) { for (int var7 = 0; var7 < this.blocksToReceive.size(); ++var7) { WorldBlockPositionType var8 = (WorldBlockPositionType)this.blocksToReceive.get(var7); if (var8.posX >= par1...
7
private LinkedElement<E> findElement(int index) { if (indexOK(index)) { LinkedElement<E> elem = first; int counter = 0; // Choose a way to find boolean wayAhead = (total / 2 > index); if (wayAhead) { // way forward while (counter < index) { elem = elem.getNext(); counter++; } } ...
4
private void printHelp() { System.out.println("\nExample of using command line parameters:\n"); System.out.println(" run server instance"); System.out.println(" java -jar Test7bioz.jar -s"); System.out.println(" run client instance"); System.out.println(" java -jar Test7bioz.jar -c"); Sy...
0
private Coordinate calculateLowestFreeCoordinateDOWN(Coordinate c, Player p) { Coordinate result = null; Node nodeHoveringOver = Node.getNode(Coordinate.getCoordinate(c.getX(), c.getY())); if(nodeHoveringOver.isActive() && nodeHoveringOver.getOwner().getOwner()==p){ //return null; } else{ result = c; ...
5
public Responder getHandler(Request request) { if (!isAURIMatch(request) && isADirectoryFileMatch(getDirectoryFileNames(), request)) return new FileResponder(directory, request.getURI()); if (isAURIMatch(request) && isAValidMethod(request)) return getRoutesMap(request).get(request.getURI()).get(request.getHTTPM...
6
public void setVenue(String venue) { this.venue = venue; }
0
public void setDeleted(boolean deleted) { this.deleted = deleted; }
0
@Override public void actionPerformed(ActionEvent arg0) { if(TrendFrame.gui_debug) System.out.println("Fetching data..."); // Split to a working thread, control progress bar new Thread(){ @Override public void run(){ JFileChooser jfc = new JFileChooser(); int selection = jfc.showOp...
8
public Object getValueAt(Object node, int column) { File file = getFile(node); try { switch (column) { case 0: return file.getName(); case 1: return file.isFile() ? new Integer((int) file.length()) : ZERO; case 2: return file.isFile() ? "File" : "Directory"; case 3: ...
7
private void startUp() { long sina_e_time = 0; long sina_s_time = System.currentTimeMillis(); // long qq_e_time = 0; // long qq_s_time = System.currentTimeMillis(); while (true) { if (sina_s_time>=(sina_e_time+10000)) { if (Container.getContainer().getProperty("sina.crawl") .equals("true")) { ...
4
public void testIsEqual_TOD() { TimeOfDay test1 = new TimeOfDay(10, 20, 30, 40); TimeOfDay test1a = new TimeOfDay(10, 20, 30, 40); assertEquals(true, test1.isEqual(test1a)); assertEquals(true, test1a.isEqual(test1)); assertEquals(true, test1.isEqual(test1)); assertEquals(...
1
private void handleClassPlacement(MouseEvent arg0, UMLButton selected_button) { last_connector_id = ""; last_clicked_class = null; ArrayList<JComponent> associated_components = new ArrayList<JComponent>(); JLabel lab = new JLabel(selected_button.getText() + ": "); ClassInstance c = new ClassInstance(...
4
public synchronized void adicionar() { try { new LocalView(this); } catch (Exception e) { } }
1
private PDFObject findInArray(PDFObject[] array, String key) throws IOException { int start = 0; int end = array.length / 2; while (end >= start && start >= 0 && end < array.length) { // find the key at the midpoint int pos = start + ((end - start) / 2); ...
6
public static AbstractInanimateEntity getInEnt(int uniqueID){ if (uniqueID <= inent.size() && inent.get(uniqueID) != null){ return inent.get(uniqueID); } else { System.out.println("Tried to access an ID not bound to an InEnt"); System.out.println(String.valueOf(uniqueID)); return inent.get(0); } ...
2
@Override public boolean invoke(MOB mob, List<String> commands, Physical givenTarget, boolean auto, int asLevel) { if(CMLib.flags().hasAControlledFollower(mob, this)) { mob.tell(L("You can only control one elemental.")); return false; } if(!super.invoke(mob,commands,givenTarget,auto,asLevel)) return ...
7
public PlayerListener(TotalPermissions p) { plugin = p; }
0
public boolean removeStore(Chest chest){ if(chest==null) return false; if(!isStore(chest)) return false; stores.remove(chest); saveStores(); return true; }
2
public void transferBetweenOwnAccounts(double amount, BasicAccount source, BasicAccount destination){ if(source instanceof CustomerTransferSource){ if(source.getAccountOwner() == this){ if(destination.getAccountOwner() == this){ if(!(source == destination)){ if(amount > 0){ Transaction withdr...
5
@Override public void actionPerformed(ActionEvent e) { revertOutlinerDocument((OutlinerDocument) Outliner.documents.getMostRecentDocumentTouched()); }
0
public boolean hasNext() { // is there more data to peruse if (currentNode == null) { return false; } if (currentNode.getData() != null) { return true; } else { return false; } }
2
public int nextSymbol() throws IOException { final BZip2BitInputStream bitInputStream = this.bitInputStream; // Move to next group selector if required if (((++this.groupPosition % BZip2Constants.HUFFMAN_GROUP_RUN_LENGTH) == 0)) { this.groupIndex++; if (this.groupIndex == this.selectors.length) { thro...
4
public void doStuff() { try { if (radioCreditSlip.isSelected()) { if (radioSpecificDate.isSelected()) { Date startDate = pickerSpecificDate.getDate(); cal.setTime(pickerSpecificDate.getDate()); cal.add(Calendar.DATE, 1); ...
9
public static boolean checkDungeonBounds(RoomReference reference, Room[][] map, Room room) { if (reference.getX() == 0 && room.hasWestDoor()) return false; if (reference.getX() == map.length - 1 && room.hasEastDoor()) return false; if (reference.getY() == 0 && room.hasSouthDoor()) return false; if (...
8
@Override public int readSampledBytes(int nBytes, byte[] samplesBuff) { Header header = null; try { header = stream.readFrame(); } catch (IOException e) { e.printStackTrace(); } if (header == null) { return 0; } ...
5
private void readMenuFile(String encoding, final boolean reload) { final FileConfiguration data = new YamlConfiguration(); try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charset.forName(encoding)))) { String line; StringBuilder sb = n...
6
public int getColumnCount(String sheetName){ // check if sheet exists if(!isSheetExist(sheetName)) return -1; sheet = workbook.getSheet(sheetName); row = sheet.getRow(0); if(row==null) return -1; return row.getLastCellNum(); }
2
public SoundPlayer(InputStream source) { this.source = source; }
0
@Basic @Column(name = "PRP_USUARIO") public String getPrpUsuario() { return prpUsuario; }
0
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final BloomFilter<E> other = (BloomFilter<E>) obj; if (this.expectedNumberOfFilterElements != other.exp...
8
@Override protected void createForm() { setSelectObject(); primitives.put(namePrimitives[1], new InformGraphPrimitive(x-430, y + 70, 500, 500, 120, 60, "Looker")); }
0
public String nextToken() throws JSONException { char c; char q; StringBuilder sb = new StringBuilder(); do { c = next(); } while (Character.isWhitespace(c)); if (c == '"' || c == '\'') { q = c; for (;;) { c = next(); ...
9
@Override public Object getValueAt(int rowIndex, int columnIndex) { Artist artist = artists.get(rowIndex); switch(columnIndex){ case -1 : return artist.getId(); // imam id iz baze, ali ga ne prikazujem case 0 : return artist.getFirstName(); case 1 : return art...
7
public static void main(String args[]) { BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String command; Class klasses[] = {Album.class, Artist.class, Track.class, Composer.class}; HibernateC...
8
public void mouseClicked(MouseEvent e) { //System.out.println(ta.getText()); String[] response = Compiler.instance.compileAssembler(ta.getText()); System.out.println("---------- maschin ----------"); String code = "v2.0 raw\r\n"; int counter = 0; for (String line : response) { counter++; code += line+...
3
public void accept(Visitor visitor) { if (visitor.visit(this)) { if (repo != null) { repo.accept(visitor); } if (chan != null) { chan.accept(visitor); } super.visitContainedObjects(visitor); visitor.endVisit(this); } }
3
public List<Cubie> getCubes(int index, Axis axis) { if (VERBAL) System.out.println("Retrieving cubes of axis " + axis.name() + " on face " + index); if (index < 1 || index > getSize()) { System.out.println("### ERROR : Cannot rotate RubiksCube face n°" + index + " on " + axis.name() + " axis => allowed ind...
8
public ChessMove[] getMoves(int n) { // get size of array int size = 0; if (n == 0 || Math.abs(n) > log.size()) { size = log.size(); } else { size = Math.abs(n); } ChessMove[] moves = new ChessMove[size]; if (n > 0 && Math.abs(n) < log.size()) { for (int i = 0; i < n; i++) { moves[i] = log.g...
8
public static boolean login(Usuarios usu){ String sql = " SELECT * FROM usuarios WHERE usuario = '"+usu.getUsuario()+"' AND contrasena = '"+usu.getContraseña()+"' "; if(!BD.getInstance().sqlSelect(sql)){ return false; } if(!BD.getInstance().sqlFetch()){ re...
2
public String processInput(String s) { String reply; // Do some input transformations first. s = EString.translate(s, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz"); s = EString.translate(s, "@#$%^&*()_-+=~`{[}]|:;<>\\\"", ...
7
public static void removeProductionsForVariable(String variable, Grammar grammar) { GrammarChecker gc = new GrammarChecker(); Production[] productions = GrammarChecker.getProductionsWithVariable( variable, grammar); for (int k = 0; k < productions.length; k++) { grammar.removeProduction(productions[k]);...
1
public static void getInitData() { //here be parser!!! tiles = new TileType[WIDTH][HEIGHT]; for (int i = 0; i < WIDTH; i++) for (int j = 0; j < HEIGHT; j++) tiles[i][j] = TileType.EMPTY; labels = new String[WIDTH][HEIGHT]; for (int i = 0; i < WIDTH; i++) for (int j = ...
9
private void followPlayer() { Player p = getWorld().getPlayer(); // Print.say(xtemp + " " + p.xtemp); if (getx() < p.getx()) { setLeft(false); setRight(true); } else { setRight(false); setLeft(true); } }
1
public void testRandomExceptionsThreads() throws Throwable { MockRAMDirectory dir = new MockRAMDirectory(); MockIndexWriter writer = new MockIndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED); ((ConcurrentMergeScheduler) writer.getMergeScheduler()).setSuppressExceptions()...
6
public int esMejorMano(Mano m) { /*primero comparamos la jugada*/ int comparacion = this.jugada.compareTo(m.jugada); /*si son iguales, pasamos a comprobar la carta de la jugada Ej: en pareja de ases, el As está almacenado en cartasJugada[0] en dobles parejas de As, Dieces el A...
6
public void compute(double[] data){ assert(data.length == input_nodes); //Set initial net values boolean first = true; for (Node[] layer: layers){ for (int j=0; j<layer.length; j++){ Node temp = layer[j]; //Input node if (first && j < data.length) temp.net = data[j]; //Bias node e...
9
public static void main(String[] argv) { if(argv.length < 1) { System.out.println("Usage: "); System.out.println("irssi-log-parser " + "<irssi log file> [<options> <output>]"); return; } logFile = argv[0]; Parser p = new Parser(logFile, false); long startTime = System.currentTimeMillis(); ...
8
public int getX(){ return x; }
0
public void signalNeedToDisplayFunction() { needToDisplayFunction = true; }
0
public static void checkArrParam(SessionRequestContent request, Criteria criteria, String reqName, String critName){ String[] arr = (String[]) request.getAllParameters(reqName); Collection<Integer> set = new HashSet(); if (arr != null && arr.length > 0) { for (String param : arr) { ...
6
void wrapLines(int cx) throws Exception { int lineLen = 0; { int len = 0; CharSequence sb = pageData.roLines.getInLine(cy, 0, cx); for (int i = 0; i < sb.length(); i++) { len += (sb.charAt(i) > 255) ? 2 : 1; } lineLen = Math.max(10, len); } ui.message("wrapLine at " + lineLen); i...
9
public double getTotalBalance() { double sum = 0; for (double a : accounts) sum += a; return sum; }
1
void reHeapElement( heap q, double[] v, int length, int i ) { int up, here; here = i; up = i / 2; if ((up > 0) && (v[p[here]] < v[p[up]])) { /// we push the new value up the heap while ((up > 0) && (v[p[here]] < v[p[up]])) { swap(q,up,here); here = up; up = here / 2; ...
4
@Override public List<AreaConhecimento> Buscar(AreaConhecimento obj) { String sql = "select a from AreaConhecimento a"; String filtros = ""; if(obj != null){ if(obj.getId() != null){ filtros += "a.id = " + obj.getId(); } i...
5
private ResultMessage handleResponse() throws IOException { DataInputStream input; byte[] buffer; MsgHeaderResponse_PI responseHeaderPI; ProtocolToken pt = null; RError_PI errMsg = null; ProtocolToken bodyToken = null; input = new DataInputStream(connection.g...
9
@Override public String runMacro(HTTPRequest httpReq, String parm, HTTPResponse httpResp) { final java.util.Map<String,String> parms=parseParms(parm); final String last=httpReq.getUrlParameter("LEVEL"); if(parms.containsKey("RESET")) { if(last!=null) httpReq.removeUrlParameter("LEVEL"); return ""; ...
9
private boolean validarDatos() { //unicamente valido el numero de cuenta boolean valido = false; Validaciones val = new Validaciones(); if (jTextField1.getText().equals("") || jTextField2.getText().equals("")){ mensajeError("Ingrese un valor para Desde.. Hasta."); ...
6
private HTMLPanel createGuessPanel(List<String> history) { StringBuilder htmlBuilder = new StringBuilder(); htmlBuilder.append("<div id = 'guessHistoryPanel'>" + "<div class='panelTitle'>"+constants.Guess()+"</div>"); for (String h : history) { htmlBuilder.append("<div class='GuessEntry'>"+h+"...
1
@Override public void doTask() { if (this.control) { if (Keyboard.getInstance().isKeyPressed(Keys.W) && !collisions.contains(Direction.TOP)) { y -= speed; } if (Keyboard.getInstance().isKeyPressed(Keys.S) && !collisions.contains(Direction.BOTTOM)) { y += speed; } if (Keyboard....
9
public Model getAnimatedModel(int frame1Id, int frame2Id, boolean active) { Model model; if (active) model = getModel(modelTypeActive, modelIdActive); else model = getModel(modelTypeDefault, modelIdDefault); if (model == null) return null; if (frame2Id == -1 && frame1Id == -1 && model.triangleColours...
9
public void visitLineNumber(final int line, final Label start) { if (lineNumber == null) { lineNumber = new ByteVector(); } ++lineNumberCount; lineNumber.putShort(start.position); lineNumber.putShort(line); }
1
private void method394(int i, int j, byte abyte0[], int k, int l, int i1, int j1) { int k1 = j + l * DrawingArea.width; int l1 = DrawingArea.width - k; int i2 = 0; int j2 = 0; if(l < DrawingArea.topY) { int k2 = DrawingArea.topY - l; i1 -= k2; l = DrawingArea.topY; j2 += k2 * k; k1 += k2 * Drawin...
6
private List<EntityVote> verifyAction(HashoutUserToDelegate hashoutUserToDelegate, long time) { Pair<EntityUser> users = EntityUser.load(new Pair<Id>(voterId, delegateId)); if (!users.getFirst().getType().equals(UserType.VOTER)) { throw new VoteUserException("Voter type " + users.getFirst().getType() + ":...
5
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setText("AST Explorer"); shell.setLayout(new FillLayout()); ASTExplorer astExplorer = new ASTExplorer(shell,SWT.NONE); final Point minimum = shell.computeSize(SWT.DEFAULT,SWT.DEFAULT,true)...
5
public void addData(ArrayList<String> cells) { if (cells.size() != attribute.size()) throw new IllegalArgumentException("Wrong size on row, was " + cells.size() + " expected " + attribute.size()); String[] row = cells.toArray(new String[0]); HashMap<String, String> newRow = new HashMap<String, String>(); ...
3
@Override public void consume(String str) { /* New message received from the message board --> pass it to the client*/ System.out.println(this.getClass().getSimpleName() +" Consume"); if (!wasClosed) { if (output == null) { try ...
4
@Override public boolean activate() { return (Bank.isOpen() && ( Constants.FALADOR_BANK_AREA.contains(Players.getLocal()) || Constants.EDGEVILLE_BANK_AREA.contains(Players.getLocal()) || Constants.AL_KHARID_BANK_AREA.contains(Players.getLocal()) || Constants.NEITIZNOT_BANK_AREA.contains(Players.getLoca...
5
@Override public void run() { while (!Thread.currentThread().isInterrupted()) { try { Thread.sleep(this.interval); } catch (InterruptedException e) { return; } notifyObservers(); } }
2
public static void main(String[] args) { // TODO code application logic here }
0
public List[] matches(List list, int centerList) { centerList -= center; try { List sub = list.subList(centerList, centerList + tokens.size()); if (sub.equals(tokens)) return results; } catch (IndexOutOfBoundsException e) { } return EMPTY_ARRAY; }
2
@SuppressWarnings("unchecked") public static void main(String args[]) { // if provided, first command line argument is class of evaluator // default is FractalEvaluator Repl<?, ?> repl; if (args.length == 0) { repl = new Repl<>(FractalEvaluator.class); repl.lo...
5
@Override public ResponseInfo sendToGroup(String groupId, MessageType messageType, String message) { //验证 if (StringUtils.isEmpty(groupId)) { throw new IllegalArgumentException("群发消息时,没有指定组的ID!"); } if (StringUtils.isEmpty(message)) { throw new IllegalArgument...
9
@Test public void testMultipleJobsWithMultipleClients() { System.out.println("multipleJobsWithMultipleClients"); final Random rnd = new Random(); final Counter counter = new Counter(); final Set<AssignmentListener> computingClients = new HashSet<AssignmentListener>(); final...
7
protected int getClosestTab(int x, int y) { int min = 0; int tc = Math.min(rects.length, tabPane.getTabCount()); int max = tc; int tabPlacement = tabPane.getTabPlacement(); boolean useX = (tabPlacement == TOP || tabPlacement == BOTTOM); int want = (useX) ? x : y; ...
8
@Override public void attributesVisibilityChanged(OutlinerDocumentEvent e) { calculateTextState(e.getOutlinerDocument()); }
0
void crawl(String[] args) throws IOException { Validate.isTrue(args.length == 1, "usage: supply url to fetch"); String url = args[0]; print("Fetching %s...", url); Document doc = Jsoup.connect(url).get(); // price-wrap post-right full Elements num_oferta = doc.select("d...
1
public Color getColor(int index) { if (index == lastExchangeA || index == lastExchangeB) { return Color.RED; } else if (index == lastCompareA || index == lastCompareB) { return Color.GREEN; } else if (index == lastPlace) { return Color.BLUE; } else { ...
5
public void cargarListaComprobantes(){ try{ r_con.Connection(); ResultSet rs=r_con.Consultar("select * from tipo_comprobante"); DefaultListModel modelo = new DefaultListModel(); while(rs.next()){ Strin...
6
public static void main(String[] args) { System.out.println("begin:" + (System.currentTimeMillis() / 1000)); final SynchronousQueue<String> sq = new SynchronousQueue<String>(); final Semaphore semaphore = new Semaphore(1); for (int i = 0; i < 10; i++) { new Thread(new Runnabl...
4
public int compareTo(Object obj) { if ((obj == null) || (!(obj instanceof UUID))) { throw new RuntimeException("Can't compare UUIDs to non-UUIDs: " + obj); } UUID val = (UUID)obj; // The ordering is intentionally set up so that the UUIDs // can simply be numerically compared as two numbers ...
6
public void buildComponent(StructureComponent par1StructureComponent, List par2List, Random par3Random) { int var4 = this.getComponentType(); switch (this.corridorDirection) { case 0: StructureMineshaftPieces.getNextComponent(par1StructureComponent, par2List, par...
9
public String getAffiliatId() { return affiliateId; }
0