text
stringlengths
14
410k
label
int32
0
9
private void CollectRent(){ print("CollectRent"); synchronized (mRenterList) { Iterator<MyRenter> itr = mRenterList.iterator(); while (itr.hasNext()) { MyRenter renter = itr.next(); if (renter.mState == EnumRenterState.RentOverdue) { GiveEvictionNotice(renter); itr.remove(); } } } ...
6
public static double getLow(String property) throws SChemPException { double low = 0; HashMap<Object,Element> propertyTable = getTable(property); if(propertyTable == null) return 1; Object[] array = propertyTable.keySet().toArray(); Arrays.sort(array); if(array[0] instanceof Double) { Doub...
8
public void recallMethod(String clas, String method, Object[] arg){ try { Class cla=Class.forName(clas); Class[] type=new Class[] {Class.forName("java.lang.String"), String.class}; Constructor ct=cla.getConstructor(); Method meth=cla.getMethod(method,type); ...
5
public synchronized void registerConnection(Socket socket) { openConnections.add(socket); }
0
public String decrypt(byte[] encondeMessage) { int[] intText = byte2int(encondeMessage); int i, v0, v1, sum, n; i = 0; while (i < intText.length - 1) { n = numCycles; v0 = intText[i]; v1 = intText[i + 1]; sum = delta * numCycles; for (int ind = 0; ind < n; ind++) { v1 -= (((v0 << 4) ^ (v0 >>...
2
private void pause() { mIsPaused = true; LoopKeyListener pausedKeyListener = new LoopKeyListener(LoopKeyListener.PAUSED); removeKeyListener(mPlayer); addKeyListener(pausedKeyListener); setPausedMessage(); mBoard.setVisible(false); mSidePanel.setV...
5
public static void main(String[] args) { Socket cliente = null; try { cliente = new Socket("127.0.0.1", 2050); } catch(UnknownHostException uhe) { } catch(IOException ioe) { } ...
5
@Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return hash; }
1
public static void main(String [] args) { try { // open a star file, read it in String cs = readFile("resources/bmrb7170.txt"); // run it through the scanner ParseResult<Character, List<Token>> v5 = Tokenizer.SCANNER.parse(new CharStream(cs));//cs.substring(0, 1000))); printIt(v5); // have to r...
5
private void programmatiesVoorBepaaldeBioscoopTussenTweeDatums() throws SQLException { BioscoopDAO bioscoopDAO = new BioscoopDAO(connection); List<Bioscoop> bioscopen = bioscoopDAO.all(); System.out.printf("%-2s | ", "ID"); System.out.printf("%-20s | ", "Naam"); System.out.p...
4
public static void main( String[] args ) throws InterruptedException, IOException { int status = YueCheHelper.STATUS_DISPATCH; //初始化confighttpproxy ConfigHttpProxy.start(); while(true){ if (status == YueCheHelper.STATUS_DISPATCH) { //启动进入的状态 boolea...
9
public static void main(String[] args) throws CustomerizedException { if(args.length == 0){ log.error("Your parameters mustn't be empty,we need" + " one para to choose whitch DB you want to connect to (Total surpport 6 DBs)-Please using DB1,DB2... to change DB!"); }else if(args.length>1){ log.error("Only...
7
public int getDate() { return date; }
0
public String patch_addPadding(LinkedList<Patch> patches) { short paddingLength = this.Patch_Margin; String nullPadding = ""; for (short x = 1; x <= paddingLength; x++) { nullPadding += String.valueOf((char) x); } // Bump all the patches forward. for (Patch aPatch : patches) { aPatc...
8
private void sendOutput() { // try{ // Thread.sleep(WAIT_TIME); // } catch (InterruptedException e) { // // duh // } if(isClosed()) return; byte[] output; synchronized(kh) { synchronized(net) { byte[] message; /** * Make sure that there are enough connections. This prevents stations ...
3
public String getMove( String predNear ) { String move = ""; double chance = Math.random(); // if the predator is not in adjacent location if ( predNear.equals("CLEAR") ) { for( int i = 0; i < probRange.length; i++ ) { if( chance <= probRange[i] ) { move = possibleMoves[i]; break; } } ...
5
public String toString(){ String str = "function " + name.getNewName(false) + "("; if(paramlist != null) str += paramlist.toString(); str += "){"; Object[] ids = it.getAllIdentifier(); if(ids.length > 0){ str += "var "; for(Object id:ids){ str += ((String) id) + ","; } str = st...
3
public Brett(LaenderGraph laenderGraph) { try { bild = ImageIO.read(new File("res/karte.jpg")); } catch (IOException ex) { System.out.println("fehler beim laden des Bildes"); ex.printStackTrace(); } this.laenderGraph = laenderGraph; ...
1
public boolean start() { synchronized (optOutLock) { // Did we opt out? if (isOptOut()) { return false; } // Is metrics already running? if (task != null) { return true; } // Begin hitting the s...
7
@Override public void recalculate(){ if(this.SHAPE_TYPE == Drawable.TRI_ISO){ if(rotation == 0){ xPoints[0] = (int) (this.getOriginX()+(this.getWidth()/2)); yPoints[0] = (int) (this.getOriginY()); xPoints[1] = (int) (this.getOriginX()); yPoints[1] = (int) (this.getOriginY()+ this.getHeight()); ...
4
protected void setDescriptor(String descriptor) { this.descriptor = descriptor; if (descriptor.equals(MetarConstants.METAR_SHALLOW)) { isShallow = true; } else if (descriptor.equals(MetarConstants.METAR_PARTIAL)) { isPartial = true; } else if (descriptor.equals(MetarConstants.METAR_PATCHES)) { isPatch...
8
public void blankLine(){ BufferedReader reader = null; BufferedWriter writer = null; try { List<String> fileLines = new ArrayList<String>(); reader = new BufferedReader(new FileReader(f)); String line = null; while((line = reader.readLine()) != null){ fileLines.add(line); } writer...
8
public void testPropertyAddNoWrapSecond() { TimeOfDay test = new TimeOfDay(10, 20, 30, 40); TimeOfDay copy = test.secondOfMinute().addNoWrapToCopy(9); check(test, 10, 20, 30, 40); check(copy, 10, 20, 39, 40); copy = test.secondOfMinute().addNoWrapToCopy(29); chec...
2
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 Iterable<Key> kLargest(int k){ if (k < 0 || k > N) return null; /* TODO: Implement kLargest here... */ Queue<Key> kLargestKeys = new Queue<Key>(); MinHeap<Key> heap = new MinHeap<Key>(k); int index = 0; int keyCount = 0; while (keyCount < k && index < M) { i...
9
public static void updateWins(Game game){ System.out.println("updateing wins"); PreparedStatement update1 = null; PreparedStatement update2 = null; Player player1 = game.getPlayer1(); Player player2 = game.getPlayer2(); String selectStatement = //logic for prepared statement "UPDATE Playe...
8
public static CastleBuilding getTier(int tier, CastleType castle) { for (CastleBuilding u: values()) { if (u.tier == tier && u.type == castle) { return u; } } return null; }
3
public int verifyDummyAccount(String u, String p){ //FOR TESTING ONLY int val = -1; //if(u.equalsIgnoreCase("admin")&&p.equalsIgnoreCase("adminpass")){ if(u.equalsIgnoreCase("ALCDBA")&&p.equalsIgnoreCase("ALC")){ userType = 0; val=10000; } else if...
6
@Override public URL getSchemaURL(String schemaLocation) { if (schemaLocation == null) { throw new IllegalArgumentException("schemaLocation cannot be null"); } if (!schemaLocation.startsWith("/")) { schemaLocation = "/" + schemaLocation; } URL schema...
3
public Constraint[] updateAndRemoveKnownVariables(Map map) { // first check for previously known values for (int i=nvariables-1; i>=0; --i) { int s = variables[i].getState(); if (s>=0) // clear (remove variable) variables[i]=variables[--nvariables]; else if (s==BoardPosition.MARKED) { // marked (...
8
private static String escapeJSON(String text) { StringBuilder builder = new StringBuilder(); builder.append('"'); for (int index = 0; index < text.length(); index++) { char chr = text.charAt(index); switch (chr) { case '"': case '\\': ...
8
public void sendToCurrentStep(int currentStepNumber) { OSCMessage message1 = new OSCMessage("/ch/currentstep"); message1.addArgument(currentStepNumber); send(message1); }
0
public void clear() { data.clear(); data.add(initializeRow(0)); fireTableDataChanged(); }
0
public void run() { System.out.println("Здесь по идее будет происходить обработка данных боя"); ConnectServer.UserProcessor currentGamer, gamer; while(!closed){ for(Map.Entry<Integer, ConnectServer.UserProcessor> entry : battleUsers.entrySet()){ currentGamer = entry.g...
6
public synchronized DBConnection getDBConnection() { if (free.size() == 0) { //If there aren't an free connections if (!createMoreConnections()) { throw new RuntimeException("Not enough connections"); } } DBConnection dbc = free.remove(0); used.add...
2
final void createOffscreenImage(boolean discard_image) { d=getSize(); if(discard_image) { img=null; imgsize=null; } if(img == null || imgsize == null || imgsize.width != d.width || imgsize.height != d.height) { img=createIma...
8
public Block findNearByLockable( Block var1 ) { Block found = null; List<Block> possible = new ArrayList<Block>(); if ( var1 == null ) return null; possible.add( var1.getRelative( BlockFace.UP ) ); possible.add( var1.getRelative( BlockFace.NORTH ) ); possible.add( var1.getRelative( BlockFace.EA...
6
public static void p7_1 () throws FileNotFoundException { boolean track = false; while(!track) { try { String filename = "hello.txt"; PrintWriter write = new PrintWriter(filename); try { write.println("Hello World!"); ...
5
@Override public Tipo validarSemantica() throws Exception { Tipo izq,der; izq=izquierdo.validarSemantica(); der=derecho.validarSemantica(); if (izq instanceof TipoInt || der instanceof TipoFloat){ if (der instanceof TipoInt || der instanceof TipoFloat ){ r...
4
public void run() { Mensagem recebida = new Mensagem(); Mensagem aEnviar = new Mensagem(); while(true){ try { recebida = (Mensagem)input.readObject(); String mensageiro = recebida.getMensageiro().toString(); String msg = recebida.getInfo().toString(); // USER !! if (mensageiro.equals("USER...
9
public int manhattan() { if (!manhattened) { int manhattanDistanceSum = 0; for (int x = 0; x < N; x++) // x-dimension, traversing rows (i) for (int y = 0; y < N; y++) { // y-dimension, traversing cols // (j) int value = tiles[x][y]; // tiles array contains board // elements ...
4
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed JFileChooser chooser = new JFileChooser("/"); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int returnVal = chooser.showOpenDialog(this); if(returnVal == JFileCh...
1
public void createJavaSourceFile() { String famNumber = Character.toString(_architecture.charAt(_architecture.length()-1)); String namePrefix = "V" + famNumber; String fileName = namePrefix + "PartLibrary.java"; try { BufferedWriter buf = new BufferedWriter(new F...
9
public void setSignature(SignatureType value) { this.signature = value; }
0
private ArrayList<Integer> findSequence(int xPos, int yPos, ArrayList<Integer> currentPath) { currentPath.add(board[yPos][xPos]); ArrayList<Integer> pathRight = new ArrayList<Integer>(currentPath); ArrayList<Integer> pathDown = new ArrayList<Integer>(currentPath); if (xPos < maxX || yPos < maxY)...
9
@Override public void actionPerformed(ActionEvent e) { int result = fc.showOpenDialog((JComponent)e.getSource()); if ( result == JFileChooser.APPROVE_OPTION ) { selectedFile = fc.getSelectedFile(); loadImage(selectedFile); } }
1
public int[] getInts(int par1, int par2, int par3, int par4) { int[] var5 = IntCache.getIntCache(par3 * par4); for (int var6 = 0; var6 < par4; ++var6) { for (int var7 = 0; var7 < par3; ++var7) { this.initChunkSeed((long)(par1 + var7), (long)(par2 + va...
7
@BeforeTest public void isSkip() { Page.initconfigration(); if(!TestUtil.isExecutable("LoginTest",Page.excel)){ throw new SkipException("Skipping the test case as the Run mode is not Y"); } }
1
@Override public final void onKeyPress(char var1, int var2) { if (var2 == 14 && name.length() > 0) { name = name.substring(0, name.length() - 1); } String canUse = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ,.:-_\'*!\"#%/()=+?[]{}<>"; if (numbersOnly...
6
static boolean preserveWhitespace(Node node) { // looks only at this element and one level up, to prevent recursion & needless stack searches if (node != null && node instanceof Element) { Element element = (Element) node; return element.tag.preserveWhitespace() || ...
4
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
GarbageConnections() { lock = new ReentrantLock(); setName("GarbageConnections"); setDaemon(true); }
0
public OutlineLineNumber(OutlinerCellRendererImpl renderer) { this.renderer = renderer; setVerticalAlignment(SwingConstants.TOP); if (Preferences.getPreferenceBoolean(Preferences.SHOW_LINE_NUMBERS).cur || Preferences.getPreferenceBoolean(Preferences.SHOW_INDICATORS).cur) { setOpaque(true); } else { ...
2
@Override public Object getValueAt(int rowIndex, int columnIndex) { switch(columnIndex){ case 0: return ListMsg.get(rowIndex).getRead(); case 1: return ListMsg.get(rowIndex).getId_message(); case 2: return ListMsg.get(rowIndex).ge...
6
private boolean jj_3R_28() { if (jj_3R_77()) return true; return false; }
1
public Creature fight() { log.comment(creature1.toString()); log.comment(creature2.toString()); int currentLifePointsCreature1 = creature1.getTotalLifePoints(); int currentLifePointsCreature2 = creature2.getTotalLifePoints(); while (currentLifePointsCreature1 > 0 && currentLife...
4
public boolean containsCoord(int x, int y) { for (int i=0; i<size(); i++) { if (get(i).getX() == x && get(i).getY() == y) { return true; } } return false; }
3
public boolean matches(InventoryCrafting var1) { for(int var2 = 0; var2 <= 3 - this.recipeWidth; ++var2) { for(int var3 = 0; var3 <= 3 - this.recipeHeight; ++var3) { if(this.func_21137_a(var1, var2, var3, true)) { return true; } if(this.func_21137_a(var...
4
private void setCombinedName() { StringBuilder sb = new StringBuilder(); if (firstName != null) sb.append(firstName).append(' '); if (lastName != null) sb.append(lastName); setName(sb.toString().trim()); }
2
protected void reCompute() { short a = inputPins[0].get(); short b = inputPins[1].get(); short c = inputPins[2].get(); short d = inputPins[3].get(); short e = inputPins[4].get(); short f = inputPins[5].get(); short g = inputPins[6].get(); short h = inputPi...
8
private List<String> fileToLines(String filename) { List<String> lines = new LinkedList<String>(); String line = ""; try { BufferedReader in = new BufferedReader(new FileReader(filename)); while ((line = in.readLine()) != null) { ...
2
@Override public final void start() { master .createBuffers(bufferSize.width, bufferSize.height, bufferOptions); isRunning = true; if (mustBeAnWebApplet) { mainThread = new Thread("main") { @Override public void run() { if (VERBOSE) System.out.println("Starting main thread..."); ...
7
public static void main(String[] argv) { new Mine(10, 10); } } class CloseWindow extends WindowAdapter implements ActionListener { Window w; boolean quit=false; CloseWindow(Window w) { super(); this.w = w; } CloseWindow(Window w, boolean quit) { super(); this.w = w...
0
@Override public int run(String[] args) throws IOException, ClassNotFoundException, InterruptedException, InstantiationException, IllegalAccessException { DefaultOptionBuilder obuilder = new DefaultOptionBuilder(); ArgumentBuilder abuilder = new ArgumentBuilder(); GroupBuilder gbuilder = new Grou...
7
public <T extends Enum<T>> T lookupEnum(Class<T> type, String name) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } if (name == null) { throw new IllegalArgumentException("name must not be null"); } Map<String, Enum<?>>...
5
private static boolean isSqliImpl2( final String input, final String quote, final int flags ) throws Exception { final List valueList = new ArrayList(); String[] allTokenBuf = new String[ 1 ]; List processedValueList = tokenize( quote + input, valueList, allTokenBuf, flags, true ); //debugPrint( valueList ); String fo...
4
private void processAuctionEvent(AuctionEvent event) { if (event.getType().equals(AuctionEvent.AUCTION_STARTED)) { auctionList.add(event); } if (event.getType().equals(AuctionEvent.AUCTION_ENDED)) { // AVG- Duration if (avgAuctionDurationTimeEvent == null) { Timestamp currentTimestamp = new Timesta...
7
public ActiveNumber setDirection(int dir) { if (dir == DIR_DEC) { this.increase = false; return this; } if (dir == DIR_INC) { this.increase = true; return this; } this.isStatic = true; return this; }
2
public void refresh(){ buttonCreator.removeAll(); for(Themes theme : Themes.getAllThemes()){ if(theme != Themes.RANDOM && theme != Themes.RANDOM_COLORS && theme != Themes.SEASONS){ //these themes dealt with separately if(theme.isUnlocked()){ ...
8
protected StringBuffer getAgeDescription(int draconianAge) { StringBuffer returnVal = null; // ===== return a string that represents the age of the Dragon switch (draconianAge) { case HATCHLING: returnVal = new StringBuffer("a hatchling");break; case VERYYOUNG: returnVal = new StringBuffer("a very you...
9
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Order order = (Order) o; if (id != null ? !id.equals(order.id) : order.id != null) return false; if (positions != null ? !positions.equals(orde...
7
public void paint(Graphics g) { // check if started checkStarted(); if (started) { // only ever one level Level l = levels.get(0); // draw the backBuffer to the window if (l.cameraShouldMove()) { g.drawImage(backBuffer, (w / 2) - (int)getAverageX(), (h / 2) - (int)getAvera...
4
public final static Mutator getInstance(int mutatorType) { Mutator mutator = mutators.get(mutatorType); if (mutator != null) return mutator; switch (mutatorType) { case MUTATOR_IDENTITY: mutator = new IdentityMutator(); break; case MUTATOR_SUBSTITUTION: mutator = new SubstitutionMutator(); brea...
7
private boolean zzRefill() throws java.io.IOException { /* first: make room (if you can) */ if (zzStartRead > 0) { System.arraycopy(zzBuffer, zzStartRead, zzBuffer, 0, zzEndRead-zzStartRead); /* translate stored positions */ zzEndRead-= zzStartRe...
3
public Pattern(String pattern) { this.pattern = pattern; patternArray = pattern.split(DELIMITER); // Set wild card rank wildCardRank = NOWILDCARD; for (int i = 0; i < patternArray.length; i++) { if (patternArray[i].equals(WILDCARD)) { wildCardRank = i; break; } } }
2
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 print(String string) { try { System.out.println(string); if (wr != null) wr.write(string + "\n"); } catch (IOException ex) { // ignore } }
2
public boolean isCheatingAllowed() { return this.cheatsAllowed; }
0
private void method130(int j, int k, int l, int i1, int j1, int k1, int l1, int i2, int j2) { Class30_Sub1 class30_sub1 = null; for(Class30_Sub1 class30_sub1_1 = (Class30_Sub1)aClass19_1179.reverseGetFirst(); class30_sub1_1 != null; class30_sub1_1 = (Class30_Sub1)aClass19_1179.reverseGetNext()) { if(...
6
public NovacomDrivers() { pBar = null; label = null; String os = System.getProperty("os.name").toLowerCase(); if(os.contains("windows")) { if(System.getenv("ProgramFiles(x86)")==null) { driver = Driver.Windows_x86; } else { driver =...
5
public List<String> getmenuItemsProduct() { List<String> menuItemsProduct = new ArrayList<String>() { private static final long serialVersionUID = 3109256773218160486L; { try { //Connect to database conn = DriverManager.getConnec...
7
private boolean parseCharacters(Document doc) { NodeList nodes = doc.getElementsByTagName(XmlTag.CHARACTER_SECTION.toString()); NodeList characters = ((Element)nodes.item(0)).getElementsByTagName(XmlTag.CHARACTER.toString()); for(int char_num = 0; char_num < characters.getLength(); char_num++) { Element cha...
3
public void setSpills(Spill spill, MapperCounters counters) { long inputRecsInPreviousSpills = 0; long outputRecsInPreviousSpills = 0; List<SpillInfo> list = spill.getSpillInfoList(); SpillInfo info = null; for(int i = 0; i < list.size(); i++) { info = list.get(i); spills.add(new SpillPiece(info)); ...
4
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof UsuarioProduto)) { return false; } UsuarioProduto usuarioProduto = (UsuarioProduto) obj; if (this.produto != null && usuarioProduto.getProduto() != null && this.produto.equals(usuarioProduto.getP...
8
public void putBit(int oneBit) throws IOException { mByteBuf[mBytePos] |= (oneBit<<(7-mBitPos++)); if (mBitPos == 8){ byte lastByte = mByteBuf[mBytePos]; ++mBytePos;mBitPos = 0; if (mBytePos == mByteBuf.length){ mOs.write(mByteBuf); mBy...
4
private static void processDefinicniBodElement(final XMLStreamReader reader, final Connection con, final Object item, final String namespace) throws XMLStreamException { final String curNamespace = reader.getNamespaceURI(); if (namespace.equals(curNamespace)) { final...
9
private boolean runIntoAttackingSpace() { //Returns false if none had to be avoided to move Boolean status = false; for (int i = 0; i < allPlayers.size(); i++) { SeenPlayer player = allPlayers.get(i); if (player.distance < 5.0 && player.direction > -15 && player.direction...
7
private void resetAIMerger(String aiProjectPath) { mainProjectScreensCBL.clearChecked(); mainProjectAssetsCBL.clearChecked(); secondProjectScreensCBL.clearChecked(); secondProjectAssetsCBL.clearChecked(); mainProjectTF.setText(null); secondProjectTF.setText(null); mainProjectDisplayP.setVisi...
1
void onMouseHover(int entered) { switch(entered) { case GL_TRUE: for(MouseHoverEvent e : _mouseHoverIn) { e.run(); } break; case GL_FALSE: for(MouseHoverEvent e : _mouseHoverOut) { e.run(); } break; } }
4
public void spy(){ ThreadSpider[] spider = new ThreadSpider[this.thread]; for(int i=0;i<this.thread;i++){ try { // 實作替換 spider[i] = new ThreadSpider(this.startUrl, this.outputFilePath, this.cobweb, this.depth); spider[i].setDescription(this.description); spider[i].setResultFilePath(this.outputFil...
5
private static boolean modifyDrug(Drug bean, PreparedStatement stmt, String field) throws SQLException{ String sql = "UPDATE drugs SET "+field+"= ? WHERE drugname = ?"; stmt = conn.prepareStatement(sql); if(field.toLowerCase().equals("description")) stmt.setString(1, bean.getDescription()); if(field.to...
4
public static String getNonNullInput(String query) { String response = ConsoleTools.getInput(query); while (response == null) { response = ConsoleTools.getInput(query); } return response; }
1
public static void sort(int[] array) { printArray(array); int a = 0; for (int i = 0; i < array.length - 1; i++) { for (int j = 1; j < array.length - i; j++) { if(array[j - 1] > array[j]) { a = array[j - 1]; array[j - 1] = array[j]; array[j] = a; } } ...
3
public double getVolume(){ return volume; }
0
@Override public void choose(Player player) { int die = game.rollDie(); ArrayList<MarkListContainer> marks = player.getAt().getNextMarks(die, ConnectionType.normal); Iterator<MarkListContainer> iterator = marks.iterator(); while (iterator.hasNext()) { MarkListContainer mlc = iterator.next(); if (m...
3
protected void actionPerformed(GuiButton par1GuiButton) { if (par1GuiButton.id == 102) { mc.displayGuiScreen(field_74092_a); } else if (par1GuiButton.id == 104) { if (field_74089_d.equals("survival")) { field_74089_d = "crea...
7
private void reset() { isDragging = false; targetNode = null; componentType = OTHER; currentRenderer = null; prevRenderer = null; }
0
@Override public void onEnable() { instance = this; hooks.setupVaultEconomy(); hooks.setupVaultPermissions(); hooks.setupResidence(); getCommand("portables").setExecutor(new PortablesCommands(this)); //Classloader has SpoutPlugin, Admin wants to use Spout features, and SpoutPlugin has been enabled. Overkil...
2
public java.security.cert.X509Certificate[] getAcceptedIssuers() { java.security.cert.X509Certificate[] chain = null; try { TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509"); KeyStore tks = KeyStore.getInstance("JKS"); tks.load(this.getClas...
1
@Override protected void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; super.paintComponent(g2); g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); g2.drawImage(background, 0, 0, getWidth(), getHeight(), this); g...
3