text
stringlengths
14
410k
label
int32
0
9
private boolean fieldAvailable(int x, int y) { boolean answer = false; if(x >= 0 && x < b.length && y>= 0 && y < b.length) { if(b[x][y] >= 0) answer = true; } return answer; }
5
public static boolean argumentBoundP(Stella_Object argument) { { Surrogate testValue000 = Stella_Object.safePrimaryType(argument); if (Surrogate.subtypeOfP(testValue000, Logic.SGT_LOGIC_PATTERN_VARIABLE)) { { PatternVariable argument000 = ((PatternVariable)(argument)); return (PatternVaria...
9
public static Class<?> parseClass(final String classText) throws NullPointerException, IllegalArgumentException { try { if (classText.endsWith("[]")) return Array.newInstance(Natives.parseClass(classText.substring(0, classText.length() - 2)), 0).getClass(); Class<?> result = Natives._parseClass_.get(classText);...
6
public void actionPerformed(ActionEvent event) { File[] filesToChange = new File[m_model.getSize()]; for(int i = 0; i < filesToChange.length; i++) { filesToChange[i] = m_model.getElementAt(i); } if (filesToChange.length == 0) { fireError("There are no files to change."); } for(File file : filesT...
8
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { //first goal is to be able to receive and process //a well formatted XML moveTwo piggybacked on a POST //this gives me a raw stream to payload of Post requ...
3
public int getIconHeight() { return height; }
0
public void start() { //uncomment to preprocess //preprocessMap(); //do the preprocessing for map 4 // start game steps long lastStep = System.currentTimeMillis(); while (stepCount < totalSteps) { // increase the step count stepCount++; // gamelogic steps this.executeGameLogic(); while ( ...
6
public String getOpenEncoding() { return (String) openEncodingComboBox.getSelectedItem(); }
0
public int getVisibleCards(int splitCard, boolean splitHigher){ int count = 0; for (int i=0; i < cards.length; i++){ if (exposed[i] && (splitHigher ? cards[i] > splitCard : cards[i] < splitCard)) count++; } return count; }
4
public void Update() { if(m_oldPos != null) { m_oldPos.Set(m_pos); m_oldRot.Set(m_rot); m_oldScale.Set(m_scale); } else { m_oldPos = new Vector3f(0,0,0).Set(m_pos).Add(1.0f); m_oldRot = new Quaternion(0,0,0,0).Set(m_rot).Mul(0.5f); m_oldScale = new Vector3f(0,0,0).Set(m_scale).Add(1.0f); ...
1
public void printStatistics() { assert(!chance_node); int count = 0; double total = 0, min = Double.POSITIVE_INFINITY, max = Double.NEGATIVE_INFINITY; for (Node n: children.values()) { // expectedValue will be NaN if (n.visit_count == 0) continue; double u = n.expectedValue(); ...
7
public boolean isOfType(Type type) { return (type.typecode == TC_INTEGER && (((IntegerType) type).possTypes & possTypes) != 0); }
1
public void onKeyReleased(int key) { if(key == Input.KEY_A) this.addFacing(new Vector2f(1.0F, 0)); else if(key == Input.KEY_D) this.addFacing(new Vector2f(-1.0F, 0)); else if(key == Input.KEY_W) this.addFacing(new Vector2f(0, 1.0F)); else if(key == Input.KEY_S) this.addFacing(new Vector2f(0, -1.0F)...
4
public final int getW() { return w; }
0
public void load(String filename) throws IOException { props = new Properties(); URL url = ClassLoader.getSystemResource(filename); if (url == null) { throw new IOException("Could not find properties file: " + filename); } props.load(url.openStream()); // Create AIS sources String sourcesStr = props...
3
private void addAbilties(ArrayList<AbilityType> add) { for (int c = 0; c < add.size(); c++) { abilityTypes.add(add.get(c)); hotkeys[c] = add.get(c); } }
1
@Override public void endElement(String uri, String localName, String qName) throws SAXException { if (qName.equalsIgnoreCase(XMLTag.BANK)) { tempList.add(deposit); } else if (qName.equalsIgnoreCase(XMLTag.NAME)) { deposit.setName(temp); } else if (qName.equalsIgnoreC...
9
@Override public void run() { logger.info("Publisher thread started."); while (true) { // Assume that outside PublisherThread messageSource's size can only // be increased. No remove actions outside PublisherThread. if (messageSource.size() > 0) { // The first element is valid since messageSource only...
4
public ResultSet preencherTabelaAtividadeAtrasadas(String codDepartamento) throws SQLException { Connection conexao = null; PreparedStatement comando = null; ResultSet resultado = null; try { conexao = BancoDadosUtil.getConnection(); comando = conexao.prepareS...
6
public float getV() { if(animation != null) { return animation.getV(); } return tex.getV(); }
1
public static void main(String args[]) throws Throwable { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder();int caso=1; for (StringTokenizer st;(st=new StringTokenizer(in.readLine()))!=null;caso++) { int C=parseInt(st.nextToken()),S=parseInt(st.nex...
9
public static void main(String[] args) { final ItWillFail itWillFail = new ItWillFail(); ExecutorService executorService = Executors.newCachedThreadPool(new ThreadFactory() { @Override public Thread newThread(Runnable r) { Thread thread = new Thread(r); thread.setUncaughtExceptionHandler(new Unc...
4
@Override void setUp(int width){ int edge = (int)(0.33 * width); //Lower left for(int i = 0; i < edge; i++){ getSquare(edge, i).setObstacle(true); } for(int i = edge; i > 0; i--){ getSquare(i, edge).setObstacle(true); } for(int i = edge; i < edge + edge - 1; i++){ getSquare(1, i).setObstacle(tru...
5
@Override public void mouseEntered(MouseEvent event) { if (drawType == 0 && !started) { if (event.getSource() instanceof GridSquare && event.getModifiers() == MouseEvent.BUTTON1_MASK) { GridSquare panel = (GridSquare) event.getSource(); (this.obstacles[panel.y])[panel.x] = true; } if (event.getSourc...
8
private static boolean checkArgs(String[] args) { int howManyArgs = args.length; // If we have odd size for args that means that is not correctly // initialized. if(howManyArgs > 0 && (howManyArgs & 0x01) > 0){ printCorrectUsage(); return false; } try { for(int i = 0; i < howManyArgs; i+=2){...
6
public void reloadAll() { for (Integer key : keys1) { firePropertyChange(ELEMENT_ADDED_IN_SET1, null, key); } for (Integer key : keys2) { firePropertyChange(ELEMENT_ADDED_IN_SET2, null, key); } for (Integer leftKey : keys1) { Element element = elements.get(leftKey); for (Integer rightKey : elem...
5
@Override public String getDef() {return "" + def;}
0
private void loadDataXM(RandomAccessFile fp) throws IOException { byte[] b = new byte[20]; // WHY THE HELL AM I DOING THIS name = Util.readStringNoNul(fp, b, 20); System.out.printf("name: \"%s\"\n", name); fp.read(); // skip 0x1A byte // THIS CAN'T BE HAPPENING fp.read(b, 0, 20); // skip tracker na...
9
private static String encrypt(String strToEncrypt, int ikey){ byte[] key = null; if(ikey == 0){ key = thekey; if(thekey == null){ return "ERROR: NO KEY"; } }else if(ikey == 1){ key = the2ndkey; if(the2ndkey == null){ return "ERROR: NO KEY2"; } }else if(ikey == 2){ key = the3rdkey; ...
9
private void reply_if_isSYN(Packet packet) { TransportLayer tl = packet.getTransport(); if (tl instanceof TCP) { TCP transport = (TCP) tl; if (transport.isSYN() && !transport.isACK()) { this.buffer.remove(packet); Packet synack_packet = new Packet("TCP"); synack_packet.setIP_source(t...
3
public static Rule_SEMICOLON parse(ParserContext context) { context.push("SEMICOLON"); boolean parsed = true; int s0 = context.index; ArrayList<Rule> e0 = new ArrayList<Rule>(); Rule rule; parsed = false; if (!parsed) { { ArrayList<Rule> e1 = new ArrayList<Rule>(); ...
7
public void dispose() { this.spriteBatch.dispose(); for (Texture t : slides) { t.dispose(); } this.buttonTexture.dispose(); }
1
public static String numberToString(Number number) throws JSONException { if (number == null) { throw new JSONException("Null pointer"); } testValidity(number); // Shave off trailing zeros and decimal point, if possible. String string = number.toString(); ...
6
public static boolean deleteRecursive(File path) throws FileNotFoundException{ if (path.exists()) { boolean ret = true; if (path.isDirectory()){ for (File f : path.listFiles()){ ret = ret && deleteRecursive(f); } } ...
5
public int getAnswerIndex() { if(answer == null || options == null || isSurvey || style != CHOICE_QUESTION){ return -1; } for(int i=0; i<options.length; i++){ if(answer.equals(options[i])){ return i; } } return -1; }
6
protected Object find(int x, boolean isInserting){ if (isInserting) //for insertion uses of this method this.numOfElements++; for (int i=0; i < this.elements.size(); i++){ //scans the junction for the leaf's location if (this.elements.elementAt(i).getElement() >= x) return this.pointers.elementAt(i); } ...
3
public Connection getConnection() { try { if(connection==null||connection.isClosed()) connection = DriverManager.getConnection("jdbc:hsqldb:hsql://localhost/magazyn"); }catch(SQLException ex) { ex.printStackTrace(); } return connection; }
3
public ListNode addTwoNumbers(ListNode l1, ListNode l2) { ListNode l3 = null, next = null, current = null; while(l1 != null || l2 != null) { next = new ListNode(getVal(l1) + getVal(l2)); if(current != null) current.next = next; current = next; ...
9
@SuppressWarnings("unchecked") public void updateRenter(HashMap<String, Object> renter) { if(renter.containsKey("PICTURE")) this.picture = (String)renter.get("PICTURE"); if(renter.containsKey("NAME")) this.name = (String)renter.get("NAME"); if(renter.containsKey("CONTACT")) this.contact = (String)renter.get("CON...
4
@Override public Map<UUID, String> call() throws Exception { Map<UUID, String> uuidStringMap = new HashMap<UUID, String>(); for (UUID uuid : uuids) { HttpURLConnection connection = (HttpURLConnection) new URL(PROFILE_URL + uuid.toString().replace("-", "")).openConnection(); J...
4
private void startRealServer() throws Exception { // TODO: TpServer应该由Ioc创建, // 现在为了定义API就直接创建新实例了。 _itpServer = new TpServer(TP_SERVER_PORT); // 票池服务器应该启动disruptor event bus。 _itpServer.start(); }
0
public static void main(String [] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); int n = Integer.parseInt(in.readLine()); StringBuilder s = new StringBuilder("Slytherin:\n"); Strin...
5
static boolean fits(int[][] boxes, int bigLoc, int smallLoc) { boolean fits = false; for (int a = 0; a < 3; a++) for (int b = 0; b < 3; b++) if (a != b) for (int c = 0; c < 3; c++) if (a != c && b != c) if (boxes[bigLoc][0] > boxes[smallLoc][a] && boxes[bigLoc][1] > boxes[smallLoc][b] &&...
9
public boolean updateByKey(String tableName, List<String> args) throws DataBaseTableException { Table table = tableHashMap.get(tableName); if (table == null) { throw new DataBaseTableException("no such table"); } return table.update(args); }
1
public void run() { DNSOutgoing out = null; try { // send probes for JmDNS itself if (this.jmDNSImpl.getState() == taskState) { if (out == null) { out = new DNSOutgoing(DNSConstants.FLAGS_QR_RESPONSE | DN...
9
public PropertyContainerXMLParser() { super(); init(); }
0
private void accept(SelectionKey key,Boolean isClusters) throws IOException { // For an accept to be pending the channel must be a server socket channel. ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel(); // Accept the connection and make it non-blocking SocketChannel socketChannel ...
2
@Override public void run() { System.out.println("Server MessageDispatchThread is running!"); while(true){ try { Thread.sleep(1); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } if(ServerThread.outgoing.size() > 100) { System.err.println("WAR...
9
public RecentLaunchesPanel(ParameterSelectionPanel parameterSelectionPanel) { this.parameterSelectionPanel = parameterSelectionPanel; recentFlights = new ArrayList<FlightSummary>(); RecentLaunchScrollPane = new JScrollPane(); RecentLaunchJList = new javax.swing.JList(); listTitle...
3
public static void main(String[] args) { while(true){ System.out.println("Enter the file path of a file you want to encrypt or decrypt: "); filePath = input.nextLine(); System.out.println("Now, enter the key for encrypting or decrypting the file."); key = input.nextLine(); System.out.println("Processin...
9
protected long execute_timers () { // Fast track. if (timers.isEmpty ()) return 0L; // Get the current time. long current = Clock.now_ms (); ArrayList <Long> removes = new ArrayList <Long> (); // Execute the timers that are already due. long ...
4
public void add(ListItem items) { if (this.head == null) { this.head = items; this.tail = items; } else { this.tail.setNext(items); this.tail = items; } this.length = this.length + 1; }
1
private static boolean addFolderContentToZip(File folder, ZipArchiveOutputStream zipOutput, String folderFromRoot){ FileInputStream fileInput; try{ for(File currFile : folder.listFiles()){ ZipArchiveEntry entry = null; if(currFile.isDirectory()){ //as defined by ZipArchiveEntry: //Assumes the e...
5
public long getLong(int bits) throws IOException { if(bits>64) { throw new IllegalArgumentException("Argument \"bits\" must be <= 64"); } long res=0; if(endian==LITTLE_ENDIAN) { for(int i=0; i<bits; i++) { if(getBit()) { res|=(1L<<i); } ...
6
public static Poly3Transform corrPointsToPoly3Transform( double[] fromPoints, int fromPointsOff, double[] toPoints, int toPointsOff, ...
9
public File getInputFile() { return inputFile; }
0
public void visitConstantExpr(final ConstantExpr expr) { if (expr.value() instanceof String) { final StringBuffer sb = new StringBuffer(); final String s = (String) expr.value(); for (int i = 0; i < s.length(); i++) { final char c = s.charAt(i); if (Character.isWhitespace(c) || ((0x20 <= c) && (c <...
8
public LinkedList<Ant> getConflictAnts() { LinkedList<Ant> result = new LinkedList<Ant>(); for (Field field : this.getAttackBorder()) { Ant ant = field.getAnt(); if (ant != null && (ant.getOwner() == 0 ^ this.getOwner() == 0)) { result.add(ant); } } for (Field field : this.getAttackBorder2()) { ...
6
public void putAll( Map<? extends Long, ? extends Short> map ) { Iterator<? extends Entry<? extends Long,? extends Short>> it = map.entrySet().iterator(); for ( int i = map.size(); i-- > 0; ) { Entry<? extends Long,? extends Short> e = it.next(); this.put( e.getKey(),...
8
public static void main(String[] args){ BigInteger top = new BigInteger("3"); BigInteger bot = new BigInteger("2"); int count = 0; for(int i=1;i<1000;i++){ top = top.add(bot); BigInteger temp = top; top = bot; bot = temp; top = top.add(bot); if(top.toString().length() > bot.toString()...
2
public boolean purge() { Connection conn = null; PreparedStatement ps = null; try { conn = iConomy.getiCoDatabase().getConnection(); ps = conn.prepareStatement("DELETE FROM " + Constants.SQLTable + " WHERE balance = ?"); ps.setDouble(1, Constants.Holdings); ps.executeUpdate(); ...
5
private void updateOffsets(int moveQuad) /* * xOffset and yOffset are pixel offsets for drawing the top-left corner of * the floor image (and all of its contents) relative to the top-left corner * (0,0) of the JPanel. * * The offsets change in the _opposite_ direction to the player's apparent * movement. ...
5
@Override public boolean buyTicket(Ticket ticket, User user) { //проверяем, что каждый SingleTicket можно купить for (SingleTicket sTicket : ticket.getRoute()) { if (!isSTicketAvailabale(sTicket)) return false; } //добавляем общий билет Map<Strin...
6
public String generate(){ Map<String,String> jsonMap = new HashMap<String,String>(); try{ for (Entry<String,String> e: schemaMap.entrySet()){ String fullCall = e.getValue(); String methodName = fullCall.substring(0, fullCall.indexOf("(")); String paramString = fullCall.substring(fullCall.ind...
2
private BombermanGame() { initializeDisplay(); generateLevel(); // create the players Player player1 = new Player("Player 1", 0, SCREEN_Y - BOX_SIZE, "player1"); Player player2 = new Player("Player 2", SCREEN_X - BOX_SIZE, SCREEN_Y - BOX_SIZE, "player2"); players.add(p...
4
public void listenSocket() { try { socket = new Socket( "localhost", 80 ); out = new PrintWriter( socket.getOutputStream(), true ); in = new BufferedReader( new InputStreamReader( socket.getInputStream() ) ); String line = in.readLine(); System.out.println( "Text received :" + line ); if( line.co...
3
private void decreaseScore() { state.setScore(Integer.parseInt(state.getScore()) - 100); if (Integer.parseInt(state.getScore()) <= 0) { //если очки кончились - завершаем игру state.setEndOfTheGame(true); } }
1
public void selectGroup(Drawing model, Rectangle rubberBandRectangle, boolean toggle) { Iterator<Figure> i = model.iterator(); while ( i.hasNext() ) { Figure figure = i.next(); Rectangle r2 = figure.displayBox(); if (rubberBandRectangle.contains(r2.x, r2.y) && ...
4
@Override public void keyReleased(KeyEvent arg0) { // TODO Auto-generated method stub }
0
public void body() { // wait for a little while for about 3 seconds. // This to give a time for GridResource entities to register their // services to GIS (GridInformationService) entity. super.gridSimHold(3.0); LinkedList resList = super.getGridResourceList(); // in...
9
public Collision find(Entity firstEntity, Entity secondEntity) { for (Collision collision : collisions) { if(collision.is(firstEntity, secondEntity)){ return collision; } } return defaultCollision; }
2
@Override public String getColumnName(int columnIndex) { switch (columnIndex) { case 3: return "Target"; case 4: return "New value"; case 5: return "Old value"; } return null; }
3
@Override public Class<?> getColumnClass(int columnIndex) { switch (columnIndex) { case 0: return Integer.class; case 1: return Order.class; case 2: return Date.class; case 3: return D...
8
public Character checkWhoIsNear() { for (Character character : characters.values()) { if (character.getLocation() == player.getLocation()) { return character; } for (Room neighbour : player.getLocation().getNeighbours()) { if (character.getLoca...
4
public ShellLink setName(String s) { if (s == null) header.getLinkFlags().clearHasName(); else header.getLinkFlags().setHasName(); name = s; return this; }
1
public void initializeModel(Documents docSet) { // TODO Auto-generated method stub // 文档个数 M = docSet.docs.size(); System.out.println("文档个数" + M); // term个数 V = docSet.termToIndexMap.size(); System.out.println("term 个数" + V); // 文档-主题矩阵,其中行(hang)为文档,列为主题 nmk = new int[M][K]; // doc-topic参数矩阵 theta...
4
private void normalizeContrast() { int[] histogram = new int[256]; for (int i = 0; i < data.length; i++) { histogram[data[i]]++; } int[] remap = new int[256]; int sum = 0; int j = 0; for (int i = 0; i < histogram.length; i++) { sum += histogram[i]; int target = sum * 255 / picsize; for (int k ...
4
private static void doVariantsTest() { try { System.out.print("Testing variants command "); String folderName = TEST_DATA+File.separator+BLESSED_DAMOZEL; File folder = new File( folderName ); String mvdName = createTestMVD( folder ); File mvdFile = new File( mvdName ); MVD mvd = MVDFile.internali...
3
public String getInnerClassString(ClassInfo info, int scopeType) { InnerClassInfo[] outers = info.getOuterClasses(); if (outers == null) return null; for (int i = 0; i < outers.length; i++) { if (outers[i].name == null || outers[i].outer == null) return null; Scope scope = getScope(ClassInfo.forName(...
8
private void appendProfile(StringBuilder profile) { for (int i = 0; i < DBLabels.labels.length; i++) { int textSize = DBLabels.labels[i].length(); } }
1
private ObjectLayer extractObjectLayer(Node layernode, String layername, float opacity, boolean visible, Properties layerProperties, int layerwidth, int layerheight, RGBColor color) throws XPathExpressionException, JTMXParseException { NodeList objectnodes = (NodeList) xpath.evaluate( "./object", ...
8
@Override public boolean equals (Object o){ if (this == o){ return true; } if (o == null || getClass() != o.getClass()){ return false; } UserItemsID that = (UserItemsID) o; if (userDetail != null ? !userDetail.equals(that.user...
7
private void recursiveAddingClousereElementsFromState(List<String> elements, String state, String epsilonSymbol) throws Exception{ List<Transition> results = content.getTransitionsByStateAndSymbol(state, epsilonSymbol); for(Transition result : results){ if(!elements.contains(result.getResult...
2
private void setAquarium(Scanner scanner) { lengthDesert = Input.getPositiveNumber(scanner, "Enter length of desert:"); heightDesert = Input.getPositiveNumber(scanner, "Enter height of desert:"); }
0
public void renderPiston(TileEntityPiston par1TileEntityPiston, double par2, double par4, double par6, float par8) { Block var9 = Block.blocksList[par1TileEntityPiston.getStoredBlockID()]; if (var9 != null && par1TileEntityPiston.getProgress(par8) < 1.0F) { Tessellator var10 = T...
7
public JSONObject putOnce(String key, Object value) throws JSONException { if (key != null && value != null) { if (this.opt(key) != null) { throw new JSONException("Duplicate key \"" + key + "\""); } this.put(key, value); } return this; }
3
boolean kollisionsabfrage(float x, float y, float height, float width) { //Auf X-Achse innerhalb der MovableEntity if (!(this.x > x+width || x>this.x+this.width) ) { //Auf Y-Achse innerhalb der MovableEntity if (!(y+height<this.y || y>this.y+this.height)) { return true; } } return false...
4
public static void sendPrivateMessageToPlayer( BSPlayer from, String receiver, String message ) { BSPlayer rec = getSimilarPlayer( receiver ); if ( from.isMuted() && ChatConfig.mutePrivateMessages ) { from.sendMessage( Messages.MUTED ); return; } if ( rec == null ...
4
public boolean simulateInput(String input) { /** clear the configurations to begin new simulation. */ myConfigurations.clear(); Configuration[] initialConfigs = getInitialConfigurations(input); for (int k = 0; k < initialConfigs.length; k++) { FSAConfiguration initialConfiguration = (FSAConfiguration) initia...
4
@Override public SetMultimap<Position, Position> getAllAvailableCaptures( Player activePlayer, Board board) { SetMultimap<Position, Position> allCaptures = HashMultimap.create(); for (int i = 1; i < board.getSize(); i++) { for (int j = 1; j < board.getSize(); j++) { ...
8
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Message other = (Message) obj; if (data == null) { if (other.data != null) return false; } else if (!data.equals(other.data)) return ...
8
public void run() { // Declarations char[] CharacterValue = new char[1]; // char array is required to turn char into a string String LineOfText = ""; // string is required to look for the language code int IntegerCharacter; // the integer value read from the pipe try { Done = false; while (!Don...
7
private void evaluateSingleKeyword(String s) { // back if ("back".equalsIgnoreCase(s)) { if (EventQueue.isDispatchThread()) { page.getNavigator().getAction(Navigator.BACK).actionPerformed(null); } else { EventQueue.invokeLater(new Runnable() { public void run() { page.getNavigator().get...
9
private void removeLosses() { if (lossPerTick > 0.0) if (charge >= lossPerTick) charge -= lossPerTick; else charge = 0.0; }
2
@Override public void setRacialStat(final int abilityCode, final int racialMax) { if((!CharStats.CODES.isBASE(abilityCode))||(getStat(abilityCode)==VALUE_ALLSTATS_DEFAULT)) setPermanentStat(abilityCode,racialMax); else { final int baseMax=CMProps.getIntVar(CMProps.Int.BASEMAXSTAT); int currMax=getStat(...
8
private String getValueAnnotationClient(String parse) { String anno = ""; int startIndex1 = parse.indexOf("@remoteClient"); int lastIndex1 = parse.trim().indexOf("function"); anno = parse.substring(startIndex1, lastIndex1); if(anno.contains("public")) { a...
4
public static String getType(int id, int type) { switch(type) { case 0: return "parent"; case 1: return ""; case 2: return "item group"; case 3: return "pixels: " + RSInterface.getInterface(id).width + "x" + RSInterface.getInterface(id).height; case 4: return "text: " + RSInterface....
9
public void printSubGraph(HashMap<String, Node> subGraph){ Stack<ArrayList<String>> qf = new Stack<ArrayList<String>>(); System.out.println(subGraph.size()); for (String name: subGraph.keySet()){ char student; if (subGraph.get(name).data.school != null){ ...
7
public String getTextAround() { int begin = position - 10; if (begin < 0) begin = 0; int end = position + 10; if (end > maxlen) end = maxlen; return input.substring(begin, end); }
2
public final void setVerbose(boolean verbose) { _verbose = verbose; }
0