text
stringlengths
14
410k
label
int32
0
9
public void addDefaultExcludes() { super.addDefaultExcludes(); int excludesLength = excludes == null ? 0 : excludes.length; String[] newExcludes; newExcludes = new String[excludesLength + 1]; if ( excludesLength > 0 ) { System.arraycopy( excludes, 0, newEx...
2
private void checkServerDN(X509Certificate paramX509Certificate) throws CertificateException { String str1 = paramX509Certificate.getSubjectX500Principal() .getName(); MyProxyLogon.logger.fine("MyProxy server DN: " + str1); int i = str1.indexOf("CN...
8
public String getTime() { if (running == true) endTime = System.currentTimeMillis(); long elapsed = endTime - startTime; String time = ""; // hours time += (elapsed / 3600000); time += ":"; // minutes int min = (int) ((elapsed / 60000) % 60); if (min / 10 == 0) time += "0"; time += m...
5
private boolean r_mark_suffix_with_optional_U_vowel() { int v_1; int v_2; int v_3; int v_4; int v_5; int v_6; int v_7; // (, line 159 // or, line 161 lab0: do { ...
9
private Edge lookupEdgeFromCorner(Corner c, Corner downslope) { for (Edge e : c.protrudes) { if (e.v0 == downslope || e.v1 == downslope) { return e; } } return null; }
3
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = ""; StringBuilder out = new StringBuilder(); int times = 1; d: do { line = br.readLine(); if (line == null || line.length() == 0) break d; int sets =...
8
protected void onInvite(String targetNick, String sourceNick, String sourceLogin, String sourceHostname, String channel) {}
0
public GrahamScan(Point2D[] pts) { // defensive copy int N = pts.length; Point2D[] points = new Point2D[N]; for (int i = 0; i < N; i++) points[i] = pts[i]; // preprocess so that points[0] has lowest y-coordinate; break ties by // x-coordinate // points[0] is an extreme point of the convex hull // (...
8
* @return the meeting with the requested ID, or null if it there is none. * @throws IllegalArgumentException if there is a meeting with that ID happening in the future */ public PastMeeting getPastMeeting(int id) throws IllegalArgumentException { Meeting m = getMeeting(id); if(m == null) { return (PastMe...
3
public static int findSecond(int[] times, int first) { int second = -1; int secondLowestTime = Integer.MAX_VALUE; for (int i = 0; i < times.length; i++) { if (i == first) // already checked continue; if (times[i] < secondLowestTime && times[i] > times[first]) { secondLowestTime = times[i]; seco...
4
@Override public String getApplicableMask(MOB studentM, Ability A) { if((studentM==null)||(A==null)) return ""; final String AID=A.ID(); final AbilityMapping personalMap = getPersonalMapping(studentM, AID); if(personalMap != null) return personalMap.extraMask() == null ? "" : personalMap.extraMask(); ...
7
private void Adicionar_ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Adicionar_ButtonActionPerformed try { if(Equipa1_RadioButton.isSelected()) { if(!AutoGolo_CheckBox.isSelected()) { modelo1.addElement(Jogador_ComboBox....
5
public static void loadModules() { try { File f = new File("mods.config"); if (!f.exists()) f.createNewFile(); Scanner scan = new Scanner(f); while (scan.hasNext()) { String s = scan.nextLine(); try { Object ob = Class.forName(s).newInstance(); modules.add((Module) ob); } catch (...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof Node<?>)) return false; Node<?> other = (Node<?>) obj; return this.getElem() == other.getElem() && this.getNext() == other.getNext(); }
6
private static void audioModWalkFolder(File base, File folder, SoundPool pool) throws IOException { if (folder.exists() || folder.mkdirs()) { for (File file : folder.listFiles()) { if (!file.getName().startsWith(".")) { ...
6
private ArrayList adjustContributionList(ArrayList contributionList) { IContributionItem item; // Fist remove a separator if it is the first element of the list if (contributionList.size() != 0) { item = (IContributionItem) contributionList.get(0); if (item.isSeparator())...
8
public List<Point> executeQuickHull(List<Point> inputPoints) { List<Point> convexHull = new ArrayList<>(); if (inputPoints.isEmpty()) { throw new IllegalArgumentException("Cannot compute convex hull of zero points."); } // search extreme values Point rightmostPoint =...
8
public TreeMethodExpression(TreeStore store, FunctionMapper functions, VariableMapper variables, TypeConverter converter, String expr, Class<?> returnType, Class<?>[] paramTypes) { super(); Tree tree = store.get(expr); this.builder = store.getBuilder(); this.bindings = tree.bind(functions, variables, converte...
8
public void setRepeat(int repeat) { this.repeat = repeat; }
0
/* */ public static void applyPlayerAction(String action) /* */ { /* 360 */ Player p = PlayerList.getInstance().getPlayer(Config.USERNAME); /* 361 */ p.setPlayerAction(""); /* */ /* 365 */ if (action.startsWith("openShop")) /* */ { /* 367 */ int shopId = Integer.parseInt(actio...
9
public String getType(File file) throws IOException { String nombre = file.getName(); if (nombre.contains(".html")) { return "text/html"; } if (nombre.endsWith(".css")) { return "text/css"; } if (nombre.endsWith(".txt")) { return "text/...
6
@Override public DatabaseTable createTable(String name, Class<?> layout) { DatabaseTable table = new SQLiteDatabaseTable(this, name); if (tableExists(name)) { return table; } if (!table.create(layout)) { return null; } return table; }
3
public void removeOnline() { String file = "C:\\Users\\aawor_000\\workspace\\TCPServer\\src\\Status\\Online.txt"; try { File inFile = new File(file); if (!inFile.isFile()) { System.out.println("Parameter is not an existing file"); return; } // Construct the new file that will later be renamed t...
7
public Updater(Plugin plugin, int id, File file, UpdateType type, boolean announce) { this.plugin = plugin; this.type = type; this.announce = announce; this.file = file; this.id = id; this.updateFolder = plugin.getServer().getUpdateFolder(); final File plug...
8
@Override public void virusAttack(int iterationNum) { if (updateInfectionStatus && iterationNum != this.timeOfUpdate) { this.infectionStatus = true; } else { if (random.getResult()) { this.updateInfectionStatus = true; this.timeOfUpdate = itera...
3
public void go() { frame = new Frame("Frame Test borderlayout title !"); bn = new Button("Bn"); bs = new Button("Bs"); bw = new Button("Bw"); be = new Button("Be"); bc = new Button("Bc"); frame.add(bn,BorderLayout.NORTH); frame.add(bs,BorderLayout.SOUTH); frame.add(be,BorderLayout.EAST); fram...
0
public String getSchemeSpecificPart() { StringBuffer schemespec = new StringBuffer(); if (m_userinfo != null || m_host != null || m_port != -1) { schemespec.append("//"); } if (m_userinfo != null) { schemespec.append(m_userinfo); schemespec.append('@'); } if (m_ho...
9
public static void clientRemove(final Socket socket,DataInputStream datais,String basepath) { boolean success=false; DataOutputStream dataOutputStream=null; OutputStream outputStream=null; try { outputStream=socket.getOutputStream(); dataOutputStream = new DataOutputStream(outputStream); // 读取到请求的url ...
9
public static final byte getVillageByItem(int itemid) { byte i = 0; switch (itemid) { case 4000241: i = 1; break; case 4000332: i = 2; break; case 4000131: i = 3; break; ...
5
public boolean siirto(int korMista, int levMista, int korMinnne, int levMinne) { if (logiikka.siirto(korMista, levMista, korMinnne, levMinne)) { if (musta != null && logiikka.vuoro().equals(musta.vari.name())) { tekoalySiirto(musta); } if (valkoinen != null &&...
5
@Override public void map(LongWritable key, Text value, OutputCollector<LongWritable, DoubleArrayWritable> output, Reporter reporter) throws IOException { StringTokenizer tokenizer = new StringTokenizer(value.toString(), ";"); DoubleWritable[] ratings = new DoubleWritable[Coefficient.MAX_RATINGS]; String[] jokeR...
6
public static String parseMissionInfoRewardData(Map parseFunctionParam, String field, String content, Boolean isSingle) { content = content.replaceAll("<br>", "\r\n");//将<br>替换为\r\n '11:6,2:31 StringBuilder tmpContent = new StringBuilder(); if (content.isEmpty() || content.equals("0")) { ...
9
public static void mapping() //all the mapping() does is look at the random number generated thats stored in x //then assigns the proper row letter to z. Then adds 1 to the integer stored in y //and prints out to console { if(x==0){ z = "A"; System.out.print(z); System.out.print(y+1);} if(x==1){ z=...
8
public void setupMenu() { menuBar = new JMenuBar(); menu = new JMenu("Menu"); menuBar.add(menu); fileLogin = new JMenuItem("Enter Nickname"); menu.add(fileLogin); fileLogin.addActionListener(new ActionListener() { @Override public void actionPer...
3
public void setClaveles(int claveles) { this.claveles = claveles; }
0
public Panel(String tit){ super.setLayout(null); this.titulo = tit; boton = new JButton("Agregar "+titulo); //Persona persona; correos = new Correos(); numeros = new Numeros(); //titulo = new JLabel(tit); //titulo.setBounds(40, 20, 200, 20); //add(titulo); Object[][] datos = {}; String...
2
public Field findFieldWithAnnotationAttributeAndValue(Class<? extends Annotation> annotationClass,String attributeName, String attributeValue) { for(Field field : getFields()) { if(field.isAnnotationPresent(annotationClass)) { Annotation annotation = field.getAnnotation(annotationClass); try { Method ...
9
protected boolean isPrimitiveWrapper(Object input) { return input instanceof Integer || input instanceof Boolean || input instanceof Character || input instanceof Byte || input instanceof Short || input instanceof Double || input instanceof Long || input instanceo...
7
static boolean f(int[] arr) { if(arr.length==1)return arr[0]==10; for(int i=0;i<arr.length-1;i++) { int[] s=new int[arr.length-1]; for(int k=0;k<i;k++)s[k]=arr[k]; for(int k=i+2;k<arr.length;k++)s[k-1]=arr[k]; for(int k=0;k<4;k++) if(k!=3||arr[i+1]!=0) { s[i]=operar(arr[i],arr[i+1],k); if(...
8
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } NamedElement other = (NamedElement) obj; if (doc == null) { if (other.doc != null) { re...
9
public ArrayList<Teacher> teachers(ResultSet rs) throws Exception { DBConnector db = new DBConnector(); ArrayList<Teacher> data = new ArrayList<>(); while (rs.next()) { data.add(new Teacher(db.getPerson(rs.getInt("personid")))); } return data; }
1
public Collection pdomFrontier(final Block block) { if (domEdgeModCount != edgeModCount) { computeDominators(); } return block.pdomFrontier(); }
1
public void run() { Log.i(TAG, "BEGIN mConnectedThread"); if (listener != null) listener.newDeviceConnected(this); if (D) Log.i(TAG, "Starting the TimeoutThread for "+mTimeoutThread.getTime()+" milliseconds"); mTimeoutThread.start(); byte[] buffer = new...
7
public void info(String name, int cost, int flow, int dist, boolean visited, List<String> adj, List<String> adjEnt) { txtInfoVertexName.setText(name); txtInfoCost.setText(String.valueOf(cost)); txtInfoFlow.setText(String.valueOf(flow)); txtInfoDist.setText(String.valueOf(dist)); ...
4
@Override public OptimusData readDouble(ArrayID aid, PID pid,OptimusShape pshape, OptimusShape starts, OptimusShape offs) throws IOException { int[] start = starts.getShape(); int[] off = offs.getShape(); Partition p = this.rmanger.getPartitionById(aid, pid); if( p == null) { System.out.println("Wron...
9
@Override protected boolean theLawIsEnabled() { if((holdingClan.length()==0) ||(!allowLaw) ||(totalControlPoints<0) ||(!CMProps.getBoolVar(CMProps.Bool.MUDSTARTED)) ||(CMSecurity.isDisabled(CMSecurity.DisFlag.ARREST))) return false; if(flagFound(null,holdingClan)) return true; if(CMSecurity.isDebu...
7
public BigInteger getIterationCount() { return iterationCount; }
0
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TracksHaveHashtagsEntityPK that = (TracksHaveHashtagsEntityPK) o; if (hashtagId != that.hashtagId) return false; if (trackId != that.trackId) r...
5
public String getSuffix() { return suffix.get(); }
0
public void addRejectedUser(long uid) { if (!this.aWaitingId.contains(uid)) return; this.aWaitingId.remove(uid); this.aRejectedId.add(uid); }
1
public Object getValue(String columnName,ObjectType type) throws DAOException{ Object obj = null; try{ switch(type){ case DOUBLE: obj = this.getResultSet().getDouble(columnName); break; case INTEGER: obj = this.getResultSet().getInt(columnName); break; case STRING: obj = this.g...
8
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MeterNeedle)) { return false; } MeterNeedle that = (MeterNeedle) obj; if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { ...
9
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
SymbolNotFoundError(String name) { this.name = name; }
0
@Override public void setCallObjectType(RemoteCallObjectType remoteCallObjectType) { this.remoteCallObjectType = remoteCallObjectType; }
0
public void setCheckoutDate(Date checkoutDate) { this.checkoutDate = checkoutDate; }
0
public void onSaveNode(MindMapNode node) { if (this.node != node) { return; } boolean editorContentEmpty = true; // // TODO: Save the style with the note. // StyleSheet styleSheet = noteViewerComponent.getDocument() // .getStyleShee...
7
public ParseArgs(String args[]) throws FileNotFoundException { String[] argsReal = getRealArag(args); if (argsReal.length < 1) { throw new IndexOutOfBoundsException( "\nError Params: \n\t[0]--start type(server|client|hive)\n\t"); } startType = argsReal[0]; if (!startTypeE.isContains(startType)) { ...
8
@Override public int hashCode() { int prime = 31; int prime1 = 43; int prime2 = 59; int tFieldId = fieldId; int tTitle; if (title == null) { tTitle = prime1; } else { tTitle = title.length(); } ...
8
public ArrayList<String> checkFileFolder() { for (final File fileEntry : folder.listFiles()) { if(fileEntry.getName().contains(".jpg") || fileEntry.getName().contains(".png")){ files.add(fileEntry.getName()); } } return files; }
3
public static boolean isReservedComment(String candidate) { int START_STATE = 0; int TERMINAL_STATE = 2; char next; if (candidate.length()!=2){ return false; } int state = START_STATE; for (int i = 0; i < candidate.length(); i++) ...
7
public Layer(boolean isB) { this.ditems = new ArrayList<>(); this.isBlueLayer = isB; this.active = false; this.hidden = false; this.deleted = false; }
0
public void act(){ if (id == 3 || id == 5){ //if its describing a mob, always refresh to change hp //if its selecting a tower, refresh to show cooldown refresh(); } }
2
public String getCurProductRelativeDate (ProductBean curProd) { Calendar submissiondate= curProd.getSubmissiondate(); int subyear = submissiondate.get(Calendar.YEAR); if(subyear > 2000) { subyear = submissiondate.get(Calendar.YEAR) - 2000; } int submonth = submissiondate.get(Calen...
8
static public String doubleToString(double d) { if (Double.isInfinite(d) || Double.isNaN(d)) { return "null"; } // Shave off trailing zeros and decimal point, if possible. String s = Double.toString(d); if (s.indexOf('.') > 0 && s.indexOf('e') < 0 && s.indexOf('E') < 0) { ...
7
@Override public void execute(CharSequence str) { HasSubSection selectedItem = editor.getSelectedItem(); if(selectedItem instanceof Section) { Section section = (Section) selectedItem; HasSubSection parent = section.getParent(); int index = 0; while(!parent.getSubSection(index).equals(section)) ++in...
5
public String system() { return "This method will be completed in a later lab"; }
0
public ReducerDataflowItem(String[] title, String[] values) { for(int i = 0; i < title.length; i++) { float v = Float.parseFloat(values[i]); if(title[i].equals("ShCompMB")) ShCompMB = v; else if(title[i].equals("ShRawMB")) ShRawMB = v; else if(title[i].equals("InRec")) InRec = v; else if(ti...
7
private void inv5ActionPerformed(java.awt.event.ActionEvent evt) { if(!game.getInBattle()) { outputText.setText(game.useItem(4) + "\n" + game.getCurrentRoom().getExitString()); if(game.itemRemoved()) inv5.setText...
2
protected List<RwsAttribute> parseAttributes(List<Element> elements) { if (elements == null || elements.size() == 0) { return null; } List<RwsAttribute> rwsAttributes = new Vector<RwsAttribute>(); for (Element ele : elements) { RwsAttribute rwsAttribute = new RwsA...
5
@EventHandler(priority = EventPriority.LOWEST) public void onFishingAttempt(PlayerFishEvent e) { final Player player = e.getPlayer(); if (Settings.world || WorldSettings.worlds.contains(e.getPlayer().getWorld() .getName())) { if (Settings.fishing && !PermissionHandler.has(e.getPlayer(), Pe...
5
public List<PhpposSalesEntity> getMovimientosPosFromFecha(Date desde, Date hasta){ DetachedCriteria criteria = DetachedCriteria.forClass(PhpposSalesEntity.class); criteria.add(Restrictions.between("saleTime", desde, hasta)); return ge...
0
void int_mat(int[][] matric){ for(int i=1;i<cnt;i++) { for(int j=1;j<cnt;j++) { matric[i][j] =1; } } }
2
public static boolean authorize(HttpRequest rx) { boolean ret; if(rx.method().equals("POST") && rx.cookieValue("CPA") != null) ret = rx.hasHeader("Authorization") && rx.header("Authorization").equals(Config.i().oauth_token); else ret = SessionsCache.contains(rx.cookieValue("CPA")); return ret; }
3
byte[] readCodewords() throws FormatException { FormatInformation formatInfo = readFormatInformation(); Version version = readVersion(); // Get the data mask for the format used in this QR Code. This will exclude // some bits from reading as we wind through the bit matrix. DataMask dataMask = Data...
9
void updatePoint(Point pr) { pr.ownerlist.clear(); double mindist = Math.sqrt(size*size); //ArrayList<Pair> ownerlist = new ArrayList<Pair>(); for (int j =0 ; j<king_outpostlist.size(); j++) { for (int f =0; f<king_outpostlist.get(j).size(); f++) { ...
9
protected boolean eval(IEvaluationContext context, Expr a, boolean strict) throws ExprException { if (a == null) return false; if (a instanceof ExprEvaluatable) { a = ((ExprEvaluatable) a).evaluate(context); } if (a instanceof ExprNumber) { ...
9
public boolean fieldConflicts(FieldIdentifier field, String newAlias) { String typeSig = (Main.options & Main.OPTION_STRONGOVERLOAD) != 0 ? field .getType() : ""; /* * Fields are similar to static methods: They are not overriden but * hidden. We must only take care, that the reference of every * getfi...
2
private final void genVideo() { File inputFile = this.getVideoFileSource(); if (inputFile == null) { if (this.isOutputEncoding()) this.encodeAll(2, "No video input"); return; } final Videncode self = this; String filename = "output"; double[] time = this.getVideoFileSourceEncodeDuration(); double l...
7
@Test public void insertMultipleElementsContains() { for (int i = 0; i < 5; i++) { l.insert(v); } l.insert(a); for (int i = 0; i < 5; i++) { l.insert(v); } assertTrue(l.contains(a)); }
2
private void jButton_ContinueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_ContinueActionPerformed try { if("CashPurseAccount".equals(type)){ JOptionPane.showMessageDialog(this, "Cash Purse Account label cannot not be edited", "Cash Purse label edit", JOp...
5
public void setCp(String cp) { this.cp = cp; }
0
public PlanArbeiten(JSONObject o, Object obj) throws FatalError { super("Arbeiten"); if (isInt(obj)) { hours = (Integer) obj; } else { try { hours = o.getInt("Stunden"); stop = o.getBoolean("Stopp"); } catch (JSONException en) { configError(); } } if (this.hours < 1) { Output....
4
private void makeMoves() { Direction d = null; int destination; List<Worm> list = new LinkedList(); for (int i = 0; i < size_x * size_y; ++i) { if (tiles[i] instanceof Worm) { list.add((Worm) tiles[i]); } } for (Worm worm : list) ...
5
private void getRelevantActionsfromPlan(Literal preCondition, List<Action> providers) { for (Action possibleAction : plan.getActions()) { for (Literal literalToCompare : possibleAction.getEffects()) { boolean equalNames = literalToCompare.getName().equals( preCondition.getName()); boolean equalVal...
8
@command( maximumArgsLength=2, minimumArgsLength=1, usage="<name>", description="Clears a value.", permissions="*" ) public void clear(CommandSender sender,String[] args){ for(Field f:this.getClass().getFields()){ if(f.getName().equalsIgnoreCase(args[0])){ if(f.isAnnotationPresent(config.class)){ ...
5
public double coutAttaque(Territoire t){ try { return t.coutAttaque(joueurEnCours.getPeuple()); } catch (Exception e) {} return 0.0; }
1
public static void process1(PeerFunc peerFunction){ String filename = null; boolean exit = false; long startTime, endTime; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Scanner scan = new Scanner(System.in); while(!exit){ System.out.println("\n1 Register a file\n2...
9
final boolean method2628(int i, byte i_0_, r var_r, int i_1_) { anInt4119++; r_Sub1 var_r_Sub1 = (r_Sub1) var_r; int i_2_ = 13 % ((i_0_ - -21) / 45); i_1_ += ((r_Sub1) var_r_Sub1).anInt10474 + 1; i += ((r_Sub1) var_r_Sub1).anInt10468 - -1; int i_3_ = i_1_ * ((Class330) this).anInt4113 + i; int i_4_ = ((r_Sub1) v...
6
@EventHandler public void PlayerHeal(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.getPlayerConfig().getDouble("Player.Heal.Dodge...
6
public PeakSet subSet(double mz, double interval) { if (size() == 0) { return new PeakSet(); } if (Double.compare(mz, first().getMz() - interval) < 0) { return new PeakSet(); } if (Double.compare(mz, last().getMz() + interval) > 0) { return n...
8
public void scroll(Direction up, int i) { switch(up) { case UP: if(yOffset >= -4600) yOffset -= i; break; case DOWN: if(yOffset < 0) yOffset += i; break; } }
4
public void MoveGhost(){ Random random = new Random(); int randNumber = random.nextInt(4) + 1; int x = 0; int y = 0; switch (randNumber) { case 1: x = 0; y = 1; break; case 2: x = 1; y = 0; break; case 3: x = 0; y = -1; break; case 4: x = -1; y = 0; break; } ...
6
public static void main(String[] args) { List<DummyUser> list = new ArrayList<DummyUser>(); String userName = "User"; for(int i = 0; i < 25; i++) { DummyUser user = new DummyUser(); user.setName(userName + i); list.add(user); } System.out.println(list.size()); Configuration configuration = n...
2
public void update() { input.update(); if (input != null) { if (input.up) {screen.changeOffset(0, -1); System.out.println("up");} if (input.down) {screen.changeOffset(0, 1); System.out.println("down");} if (input.left) {screen.changeOffset(-1, 0); System.out.println("left");} if (input.right) {...
5
public UsersFacade() { }
0
public void renderNewGame() { for (int k = 0; k < WIDTH; k++) { for (int i = 0; i < HEIGTH; i++) { bi.setRGB(k, i, Color.BLACK.getRGB()); } } ii = new ImageIcon(); ii.setImage(bi); gamePane.setIcon(ii); gamePane.validate(); }
2
private static BufferedImage renderExpression(Expression expr) { BufferedImage plus = render("+"); ArrayList<BufferedImage> terms = new ArrayList<BufferedImage>(); //total up the width of all parts of the expression, and find the height of the tallest one int width = 0, height = 0; for(int i = 0; i < expr....
8
public void show() { // Return true if successful. try { final FreeMindMain frame = getFrame(); if (htmlEditorWindow == null) { htmlEditorWindow = new HTMLDialog(this); } htmlEditorWindow.setBase(this); final SHTMLPanel htmlEdit...
9
public ValueType dereference() { if(code >= A.code && code <= J.code) return getByCode((byte)(code+0x8)); if(this == ValueType.SP) return ValueType.PEEK; throw new IllegalStateException("Can not dereference type "+this); }
3