text
stringlengths
14
410k
label
int32
0
9
public Database(String databasePath) throws SQLException { try { Class.forName("org.hsqldb.jdbcDriver"); } catch (ClassNotFoundException e) { e.printStackTrace(); } connection = DriverManager.getConnection("jdbc:hsqldb:file:" + databasePath, "SA", ""); Statement delayStmt = connection.createStatemen...
1
public boolean isInVillage(Point2D p) { if (p.getX() > getSideLength() || p.getX() < 0 || p.getY() > getSideLength() || p.getY() < 0) return false; return true; }
4
protected void scanPCData(StringBuffer data) throws IOException { for (;;) { char ch = this.readChar(); if (ch == '<') { ch = this.readChar(); if (ch == '!') { this.checkCDATA(data); } else { ...
4
@Override public void mousePressed(MouseEvent arg0) { // TODO Auto-generated method stub Point point = snapMouseToBoard(arg0.getX(), arg0.getY()); if (availableMoves != null) { for (Move m : availableMoves) { if (m.getEndingTile().getX() == point.x && m.getEndingTile().getY() == point.y) { if (...
8
public void reset() { for (int i=0; i<BANDS; i++) { settings[i] = 0.0f; } }
1
public String consumeAttributeKey() { int start = pos; while (!isEmpty() && (matchesWord() || matchesAny('-', '_', ':'))) pos++; return queue.substring(start, pos); }
3
public void nPairsElimination() { ArrayList<ArrayList<Integer>> uniqueNPairs = getUniqueNPairs(); for(int i=0; i<9; i++) { for(int j=0; j<uniqueNPairs.size(); j++) { if(!cells[i].getPosNumbers().equals(uniqueNPairs.get(j))) { ...
3
private void fall(Level var1, int var2, int var3, int var4) { int var11 = var2; int var5 = var3; int var6 = var4; while(true) { int var8 = var5 - 1; int var10; LiquidType var12; if(!((var10 = var1.getTile(var11, var8, var6)) == 0?true:((var12 = Block.blocks[v...
8
public final EsperParser.assign_return assign() throws RecognitionException { EsperParser.assign_return retval = new EsperParser.assign_return(); retval.start = input.LT(1); Object root_0 = null; Token ASSIGN24=null; Token IDENTIFIER25=null; EsperParser.expr_return exp...
1
public int characterAt(int at) throws JSONException { int c = get(at); if ((c & 0x80) == 0) { return c; } int character; int c1 = get(at + 1); if ((c1 & 0x80) == 0) { character = ((c & 0x7F) << 7) | c1; if (character > 0x7F) { ...
8
@Override public void keyPressed(KeyEvent event) { switch (event.getKeyCode()) { case KeyEvent.VK_LEFT: setOpen(false, getTreeContainerRows(mSelectedRows, event.isAltDown())); break; case KeyEvent.VK_RIGHT: setOpen(true, getTreeContainerRows(mSelectedRows, event.isAltDown())); break; case Ke...
6
public static void applyDamage(Actor target, double amount, DamageType type) { switch (type) { case SLASHING: target.damage(amount - target.characterSheet.armor); break; case BASHING: break; case PIERCING: break...
4
public String getAttributeDefaultValue(String name, String aname) { Object attribute[] = getAttribute(name, aname); if (attribute == null) { return null; } else { return (String) attribute[1]; } }
1
public static void MSDsort(String[] a) { String[] aux = new String[a.length]; msdSort(a, aux, 0, a.length - 1, 0); }
0
protected void execute() { //Check if the climber is at the end checkSwitches(); double speed = 0; if (m_isRising){ //Use full speed on the upstroke //if (Timer.getFPGATimestamp()-m_startRise < 0.6*RISE_STROKE_LENGTH){ speed =...
6
public void playRound() { previousBoard = DeltaBoard.cloneBoard(board); // Checks if user's king is in check before moving if (isChecked(userColor, getXOfKing(userColor), getYOfKing(userColor), true)){ // Check whether the user's king is in check prior to user's turn System.out.print...
8
@Override public boolean isCellEditable(EventObject anEvent) { // Normally: from context menu -> Rename if (anEvent == null) return beforeEdition(); // Normally: from F2 press if (anEvent.getClass() == java.awt.event.ActionEvent.class) return beforeEdition(); if (anEvent.getClass() ...
4
public void breakCheck(int state){ if(state == ItemEvent.SELECTED) linePattern = true; else linePattern = false; if(selectedDrawings.size() != 0){ for(int i=0;i<selectedDrawings.size();i++){ selectedDrawings.elementAt(i).setBreak(linePattern); } } }
3
public void increaseShieldEnergy() { if(leftOverEnergy>0) { shieldEnergy++; leftOverEnergy--; for(int i=0; i < ship.shields.size(); i++) { ship.shields.get(i).setStrength(shieldEnergy*100); } } }
2
public void selectAttributesCVSplit(Instances split) throws Exception { double[][] attributeRanking = null; // if the train instances are null then set equal to this split. // If this is the case then this function is more than likely being // called from outside this class in order to obtain CV statis...
7
protected void refreshAllCubes() { if(this.cube != null) { for(int face = 0; face < this.cube.getNumFaces(); face++) { for(int row = 1; row <= this.cube.getDimension(); row++) { for(int column = 1; column <= this.cube.getDimension(); column++) { for(Window w:images){ if(face ...
9
public void evaluate(int size) { if (stop) return; if (size >= DANGEROUS_SIZE) { System.out.printf("\nInformation for Collection %s (id: %d)\n", className, id); System.out.printf(" * Collection is very long (%d)!\n", size); if (reads == 0) { System.out.printf(" * Collection was never read!\n"); ...
5
public void actionPerformed(ActionEvent e) { if(vulaux){vulaux=false;return;} if(presionado==0){ this.boton1=(JButton)e.getSource(); presionado=1; } else if(presionado==1){ this.boton2=(JButton)e.getSource(); this.swap(); } }
3
public void saveResizeToUndo(ArrayList<DrawableItem> selected) { ArrayList<UndoableItem> toAdd = new ArrayList<>(); for (DrawableItem selection : selected) { UndoableItem ud = new UndoableItem(selection, 3); Panel temp = (Panel) selection; int x = ((Panel) selection)....
1
public boolean areImagesSimilar(File image1, File image2) { if ( image1 == null || image2 == null || !image1.exists() || !image2.exists() || image1.getAbsolutePath().equals(image2.getAbsolutePath())) return false; // Descriptors have to be loaded before every use (...
7
public void eliminate(Position pos){ board[pos.getY()][pos.getX()] = null; }
0
private Boolean checkTables() throws Exception { if (!this.db.checkTable("chunky_objects")) { if (!db.createTable(QueryGen.createObjectTable())) return false; Logging.info("Created chunky_objects table."); } if (!this.db.checkTable("chunky_ownership")) { if (...
8
public ComplexMatrix subtract(ComplexMatrix b) { try { return this.add(b.reverseSign()); } catch (Exception e) { e.printStackTrace(); return null; } }
1
public boolean func_77648_a(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10) { if (par7 == 0) { par5--; } if (par7 == 1) { par5++; } ...
8
@Override @SuppressWarnings("unchecked") public void setValue(@Nullable ThreadMirror threadMirror, @Nullable ObjectValueMirror thisObjectValue, @NotNull Value<?> value) { if(isStatic() && thisObjectValue != null || !isStatic() && thisObjectValue == null) { throw new IllegalArgumentException(); } try { ...
9
* @return Returns the startsize for the given swimlane. */ public mxRectangle getStartSize(Object swimlane) { mxRectangle result = new mxRectangle(); mxCellState state = view.getState(swimlane); Map<String, Object> style = (state != null) ? state.getStyle() : getCellStyle(swimlane); if (style != null) ...
3
public String toCSVString(){ StringBuilder builder = new StringBuilder(); for (int i = 0; i < cells.size(); i++) { Cell cell = cells.get(i); builder.append(cell.getCellValue()); if(i != cells.size() - 1) { builder.append(","); } } ...
2
public void paintComponent(Graphics g) { super.paintComponent(g); Dimension ds = getSize(); d = Math.min(ds.width, ds.height) - 5; float strokeWidth = (float) d / 200.0f; stroke = new BasicStroke(strokeWidth); Graphics2D g2d = (Graphics2D) g; g2d.setStroke(stroke...
2
public void set(UsuarioBean oUsuarioBean) throws Exception { try { oMysql.conexion(enumTipoConexion); oMysql.initTrans(); if (oUsuarioBean.getId() == 0) { oUsuarioBean.setId(oMysql.insertOne("usuario")); } oMysql.updateOne(oUsuarioBean....
2
public void setRef(String ref) { this.ref = ref; }
0
@Test public void testEntrySet() { CaseInsensitiveStringMap map = new CaseInsensitiveStringMap(); //add some data map.put("foo", "bar"); map.put("bar", "42"); Set<Entry<String, String>> entrySet = map.entrySet(); for(Entry<String,String>e:entrySet) { assertTrue(e.getKey().equalsIgnoreCase("foo")||e.g...
3
private void scheduleTasks() { if (AutoSaveEnabled) { Bukkit.getScheduler().scheduleSyncRepeatingTask(this, saveRunnable, SaveInterval, SaveInterval); } if (AutoBroadcastEnabled) { Bukkit.getScheduler().scheduleSyncRepeatingTask(this, broadcastRunnable, broadcastIntverval, broadcastIntverval); }...
2
@Override public void preUpdate() { Event ev; boolean expDamage = false; while(eventExist()) { ev = popEvent(); if(ev.getName().equals("explosion")) { if(!expDamage) { hp-=5; expDamage = true; if(hp <= 0 && alive) { destroy(); pushEvent(ev.getSo...
7
public void addConnections(PlayerMP player, Packet00Login packet) { boolean alreadyExist = false; for (PlayerMP p : connectedPlayers) { if (player.getUsername().equalsIgnoreCase(p.getUsername())) { if (p.getIp() == null) { p.setIp(player.getIp()); } if (p.getPort() == -1) { p.setPort(play...
8
private int getPreferredHeight() { int maxHeight = 0; for (int i=0, count=getComponentCount(); i<count; i++) { Component component = getComponent(i); Rectangle r = component.getBounds(); int height = r.y + r.height; if (height > maxHeight) { maxHeight = height; } } maxHeight += ((FlowLayout) ...
2
private static void addNewAnnotations() throws Exception { List<Holder> holders= getList(); for(Holder h : holders) System.out.println(h.conting + " " + h.startPos+ " " + h.endPos+ " " + h.pcas.get(0)); BufferedReader reader =new BufferedReader(new FileReader(new File( ConfigReader.getCREOrthologsDir...
6
@SuppressWarnings("deprecation") public static void setHealth(Player player, String playerName, String healPlayerName, String amount) { ArrayList<Player> healPlayers = AdminEyeUtils .requestPlayers(healPlayerName); if (healPlayers == null && healPlayerName != null) { StefsAPI.MessageHandler.buildMessage...
7
public synchronized void write(Tag tag, Object obj){ if(obj == null || obj.toString().isEmpty()) return; if(this.disableTag.contains( tag )) return; String formatted = ""; if(this.showCaller) { StackTraceElement s = new Exception().getStackTrace()[1]; formatted = String.format( "%s.%s ", s.getClass...
4
ViewPanel(Session session) { this.session = session; final int ROWS = 1; final int COLUMNS = 1; String querry = "SELECT * FROM records"; ResultSet results = null; Statement stmt = null; this.setLayout(new GridLayout(ROWS, COLUMNS)); this.conn = session.getConnection(); // Attempt to c...
3
private void closeStream(Closeable stream) { if (stream == null) { return; } try { stream.close(); } catch (IOException ex) { System.out.println(ex); } }
2
@EventHandler public void IronGolemInvisibility(EntityDamageByEntityEvent event) { Entity e = event.getEntity(); Entity damager = event.getDamager(); String world = e.getWorld().getName(); boolean dodged = false; Random random = new Random(); double randomChance = plugin.getIronGolemConfig().getDouble("Iro...
6
public String getTrappingInformation() { Object value = library.getObject(entries, "Trapped"); if (value != null && value instanceof StringObject) { StringObject text = (StringObject) value; return cleanString(text.getDecryptedLiteralString(securityManager)); } el...
3
public void setCheckStart(int checkStart) { _checkStart = checkStart; }
0
@Override protected void execute(Path file) throws Exception { BufferedImage img = ImageIO.read(file.toFile()); if (img.getWidth() > img.getHeight()) { rotate(file, file, PI_BY_2); } String targetName = null; String name = getName(file); ...
8
public User getUser(String login, String password) throws Exception { // On cherche le login Iterator<User> it = users.iterator(); while (it.hasNext()) { User user = it.next(); if (user.getLogin().equals(login)) { // On a trouvé le login ...
3
public boolean opEquals(Operator o) { return (o instanceof LocalLoadOperator && ((LocalLoadOperator) o).local .getSlot() == local.getSlot()); }
1
public static HandshakeBuilder translateHandshakeHttp( ByteBuffer buf, Role role ) throws InvalidHandshakeException , IncompleteHandshakeException { HandshakeBuilder handshake; String line = readStringLine( buf ); if( line == null ) throw new IncompleteHandshakeException( buf.capacity() + 128 ); String[] f...
7
public Direction getInverse() { switch (this) { case left: return right; case up: return down; case right: return left; case down: return up; default: return up; } }
4
@Override public void callChangeOfferStatus(String username, String status, String servicename) { Service service = new Service(); Call call; try { call = (Call)service.createCall(); Object[] inParams = new Object[]{username, status, servicename}; call.setTargetEndpointAddress(new URL(SERVICES...
3
private void addNodeAndDaughtersToXML( ENode node, BufferedWriter writer, int level, HashMap<String, NewRDPParserFileLine> rdpMap ) throws Exception { String tabString = ""; for( int x=0; x <= level; x++ ) tabString += "\t"; String taxaName = "" + node.getLevel(); String rank = null; String commo...
7
public static void main (String[] args) { Scanner kb = new Scanner(System.in); System.out.println ("Inserisci Il Numero Di Tipi Di Francobolli: "); int franc_num = kb.nextInt(); kb.nextLine(); Francobollo [] franc_arr = new Francobollo[franc_num]; for (int i=0; i<franc_num; i++) { franc_ar...
7
public void displayError(String message){ Object[] buttons = {"Continue", "Quit"}; int userInput = JOptionPane.showOptionDialog(null, message, "Quantum Werewolves", JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, null, buttons, buttons[0]); swit...
5
public int reverse(int x) { boolean isNeg = false; if(x < 0) { isNeg = true; x = -1 * x; } int res = 0; while (x > 0){ res = 10 * res + x % 10; x /= 10; } if (res < 0){ // probably res > MAX_VALUE return ...
4
public static int countCommElmts(ArrayList<Integer> newScores1, ArrayList<Integer> newScores2) { int count = 0; for (int i = 0; i < newScores1.size(); i++) { if (newScores1.get(i) == newScores2.get(i)) count++; } return count; }
2
public void deleteSong(BESong aSong) throws Exception { try { ds.deleteSong(aSong); } catch (SQLException ex) { throw new Exception("Could not create the song " + aSong.getId()); } }
1
public void setBackLeftThrottle(int backLeftThrottle) { this.backLeftThrottle = backLeftThrottle; if ( ccDialog != null ) { ccDialog.getThrottle3().setText( Integer.toString(backLeftThrottle) ); } }
1
public static void main(String[] args) { float x,y,z; final float PI=3.14f; boolean a,b,c,d,e,f; a=((4-2)*(5+1)/2)>2-(4+3); System.out.print("\nEl resultado es: "+ a); b=(6+3)>8 && (6...
8
private boolean detect50Sync(CircularDataBuffer circBuf,WaveData waveData) { int pos=0,b0,b1; int f0=getSymbolFreq(circBuf,waveData,pos); b0=getFreqBin(); // Check this first tone isn't just noise the highest bin must make up 10% of the total if (getPercentageOfTotal()<10.0) return false; pos=(int)samplesPe...
7
public static Snake crossover(Snake parent1, Snake parent2) { Snake child = new Snake(); int takenFromOne = 0; for(int i = 0; i < 6; i++) { Gene g = parent1.getGenes()[i]; child.setGene(takenFromOne, g); takenFromOne++; } int takenFromTwo = 3; for(int i = 3; i < 6; i++) { if(takenFromTwo...
6
public static void main(String[] args) { System.out.println("Starting"); CycAccess access = null; try { access = new CycAccess("localhost", 3660); String query = "(#$isa ?X #$Dog)"; InferenceWorkerSynch worker = new DefaultInferenceWorkerSynch(query, CycAccess.inferencePSC, null, ...
3
public void test_08_alt_del() { initSnpEffPredictor("testCase"); String file = "./tests/alt_del.vcf"; VcfFileIterator vcf = new VcfFileIterator(file); vcf.setCreateChromos(true); // They are so long that they may produce 'Out of memory' errors for (VcfEntry vcfEntry : vcf) { System.out.println(vcfEntr...
2
public void makeMoves() { if (showStuff == true) { System.out.println(toString()); } isRunning = p1.canMove(theBoard, '$'); theBoard = p1.move(theBoard, '$'); maintenence(); incrementTurn(); // System.out.println(timeSinceJump); isRu...
3
@Override public void putAll(Map<? extends String, ? extends Object> map) throws ClassCastException { Set<? extends String> keys = map.keySet(); for (String key : keys) { if (key == null) throw new NullPointerException(); this.checkInstance(map.get(key)); } super.putAll(map); }
5
public void read(BufferedReader buff) { try { while(buff.ready()) { line = buff.readLine(); piecePlace = pattern[0].matcher(line); pieceMove = pattern[1].matcher(line); if(piecePlace.find()) { String chessPiece = piecePlace.group("ChessPiece"); String chessColor = piecePlace.g...
5
private final void initUI() { // initialize a layout manager: this.setLayout(new BorderLayout()); // create a menu bar: JMenuBar menubar = new JMenuBar(); // --------------------------------------------------------- // First dropdown menu: "File" // --------------------------------------...
7
public static void saveLocal(String tt,String text_temp, String linkUrl){ try { FileOutputStream out = null ; OutputStreamWriter out1 = null ; BufferedWriter bw=null; if("else".equals(DivideText.divide(text_temp))){ ...
5
@Override public String toString() { final StringBuilder sb = new StringBuilder("Product { "); sb.append("productCode=").append(productCode); sb.append(", prices=").append(prices); sb.append('}'); return sb.toString(); }
0
@Override public void renderMoving(Engine e, Graphics g, int i, int j) { for(Particle par:e.getWorld().getParticleArray()){ if(par == null) continue; g.drawImage(par.getImage(), par.getLocation().getX()-i+e.getWidth()/2, par.getLocation().getY()-j+e.getHeight()/2, null); } for(Entity en:e.ge...
7
public int getIdxNum() throws Exception{ Connection conn = null; PreparedStatement pstmt = null; ResultSet rs = null; int x = 0; try{ conn=getConnection(); String sql = "select max(idx) from food"; pstmt = conn.prepareStatement(sql); rs = pstmt.executeQuery(); if(rs.next()){ x = rs.getInt(1...
8
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { String pw = plugin.config.getString("Apply.Password"); String defaultgroup = plugin.config.getString("Apply.Defaultgroup"); String group = plugin.config.getString("Apply.Group"); if(sender instanceof Player) { ...
6
public void saveImage() { BufferedImage bi = new BufferedImage(this.getSize().width, this.getSize().height, BufferedImage.TYPE_INT_RGB); Graphics g = bi.createGraphics(); this.paint(g); g.dispose(); try { ImageIO.write(bi, "png", new File(System.getProperty("resources") + "/TempCol.png")); } catch(IOE...
1
public void excluir(int id){ dlo.excluir(id); for (int i = 0; i < categorias.size(); i++){ if (categorias.get(i).getId() == id){ categorias.remove(i); break; } } exibirMensagem("Categoria excluída com sucesso"); }
2
@Override public void loadRecipes(File dir) { if (!this.open) { BackpacksPlugin.getInstance().getLogger().warning("**** No longer accepting new registrations!"); } if (!dir.isDirectory()) { throw new IllegalArgumentException("Given file: " + dir.getName() + " is not ...
3
private void updateStopHistory() { ArrayList<StopAdapter> stops = GTFS.getCurrentStopWindow(); LinkedList<StopAdapter> closest = calcClosestStops(); if (closest != null) { if (mStopHistoryIndex == -1) { mStopHistory.set(0, closest); mStopHistoryIndex = 0; } else { boolean duplicate = false; ...
5
public boolean peekMap(String fname){ int max_length = 0; ArrayList <String> lines = new ArrayList <String> (); try { InputStream in = this.getClass().getClassLoader().getResourceAsStream(fname); if (in == null) { System.out.println("no hay nivel " + fname); return false; } BufferedReader read...
5
private void savePreferences() { try { preferencesFile.createNewFile(); preferences.storeToXML(new FileOutputStream(preferencesFile), null); print("Preferences saved successfully."); } catch (IOException e) { // TODO Auto-generated catch block print("ERROR: Failed to save preferences."); } }
1
public static MethodSlot lookupOptionHandler(StorageSlot slot) { { Symbol handlername = ((Symbol)(KeyValueList.dynamicSlotValue(slot.dynamicSlots, Stella.SYM_STELLA_SLOT_OPTION_HANDLER, null))); MethodSlot handler = null; if (handlername == null) { if (Stella.$DEFAULT_OPTION_HANDLER$ != null) {...
6
public Percolation(int N) // create N-by-N grid, with all sites blocked { if (N<=0) { throw new IllegalArgumentException(); } this.N = N; uf_inst = new WeightedQuickUnionUF (N*N+2); uf_real = new WeightedQuickUnionUF (N*N+1); grid = new boolean [N*N]; for (int i=0; i<N; i++) { for (int ...
3
@Override public SymptomDTO getSymptomById(Long id) throws SQLException { Session session = null; SymptomDTO symptom = null; try { session = HibernateUtil.getSessionFactory().openSession(); symptom = (SymptomDTO) session.load(SymptomDTO.class, id); } catch (Ex...
3
public static Description extractGoalDescription(Proposition goal, Keyword headortail) { { Vector arguments = goal.arguments; { Keyword testValue000 = goal.kind; if ((testValue000 == Logic.KWD_ISA) || ((testValue000 == Logic.KWD_PREDICATE) || ((testValue000 == Logic.KWD_FUNC...
9
@Override // update the cardHandler -> cardHandler.update() pls keep this method as clean as possible public void update( GameContainer container, StateBasedGame game, int delta ) throws SlickException { Score currentScore = new Score(); input = container.getInput(); //Update the CardHandler CH.update(c...
7
public void render(Graphics g) { unit.render(g); }
0
@Basic @Column(name = "FES_ID_POS") public Integer getFesIdPos() { return fesIdPos; }
0
public void decouvrir(Position pos, int dist){ for (int x=pos.getX() - dist; x <= pos.getX() + dist; x++){ for (int y=pos.getY() - dist; y <= pos.getY() + dist; y++){ if ((x >= 0) && (x < IConfig.LARGEUR_CARTE) && (y >= 0) && (y < IConfig.HAUTEUR_CARTE)){ map[...
6
public static void eightdrome(int a, int b) { if(b <10000000) { return; } for(int d=1; d<10; d++) { for(int d2=0; d2<10; d2++) { for(int d3=0; d3<10; d3++) { for(int d4=0; d4<10; d4++) { int test = 10000000*d +1000000*d2 + 100000*d3 + 10000*d4+1000*d4 +100*d3 + 10*d2 + d; if(isPrime(test) &&...
8
public boolean isMarker(Position position) { return (board[position.getY()][position.getX()] instanceof Marker); }
0
public void setImage(Image image) { button.setIcon(image == null ? null : new ImageIcon(image)); }
1
public boolean isValid(Event event) { int commandType = event.getCommandType(); int minExpectedArgCount = minExpectedArgByteCount(commandType); int maxExpectedArgCount = maxExpectedArgByteCount(commandType); if (minExpectedArgCount == maxExpectedArgCount) { if (...
6
public static void disposeImages() { // dispose loaded images { for (Image image : m_imageMap.values()) { image.dispose(); } m_imageMap.clear(); } // dispose decorated images for (int i = 0; i < m_decoratedImageMap.length; i++) { Map<Image, Map<Image, Image>> cornerDecoratedImageMap = m_decora...
5
final int[] method3042(int i, int i_16_) { if (i_16_ != 255) return null; anInt9409++; int[] is = ((Class348_Sub40) this).aClass191_7032.method1433(0, i); if (((Class191) ((Class348_Sub40) this).aClass191_7032).aBoolean2570) { int i_17_ = Class348_Sub40_Sub6.anInt9139 / anInt9405; int i_18_ = Class28...
5
private void createClassView( FileOutputStream fos, ModClass modClass ) throws Exception { String[] menus =modClass.getMenuPath().split( "/" ); if( ( menus.length == 0 ) || menus[ 0 ].isEmpty() ) { throw new Exception( "The class '" + modClass.getName() + "'menu Path with errors....
7
public IMessage crypter(IMessage clair, String key) { /* * Les caractres sont encods un un via oprations elementaires * Les caractres ne correspondant pas des lettres sont ajouts tel quels. */ long d=new Date().getTime(); this.remplirHashMap(this.adapterCle(key)); IMessage m=this.adapterMessage(clair...
5
public <T extends GraphItem> void addCapability( CapabilityName<? super T> name, T capability ) { if( getCapability( name ) != null ) { throw new IllegalStateException( "there is already a capability for " + name ); } setCapability( name, capability ); addChild( capability ); }
2
public JPanel getUserlistImageframeMenu() { if (!this.init_1) { IllegalStateException e = new IllegalStateException("Call init first!"); throw e; } return this.userlistImageframeMenu; }
1
public boolean verifyWeeks() { boolean[] w = selectedWeeks(); return w[0] || w[1] || w[2] || w[3] || w[4] || w[5] || w[6] || w[7]; }
7