text
stringlengths
14
410k
label
int32
0
9
public void findBlockID(){ //System.out.println("train ID: "+ trainId); //System.out.println("train distance: "+ trainDist[trainId-1][1]); double newDist; if(getLineColor() == 0) newDist = totalDistance - trainDistRed[trainId-1][1]; ...
7
public boolean InsertarDetallePunto(DetallePunto p){ if (p!=null) { cx.Insertar(p); return true; }else { return false; } }
1
private static int decode4to3(byte[] source, int srcOffset, byte[] destination, int destOffset, int options) { // Lots of error checking and exception throwing if (source == null) { throw new NullPointerException("Source array was null."); } // end if if (destina...
8
public boolean isDescendantOf(TreeContainerRow row) { TreeContainerRow parent = mParent; while (parent != null) { if (parent == row) { return true; } parent = parent.mParent; } return false; }
2
private void handlePHPRequest(HttpExchange exchange, String path) throws IOException { String hasil = ""; String phpHome = cliCommand; Headers responseHeaders = exchange.getResponseHeaders(); responseHeaders.set("Content-Type", "text/html"); exchange.sendResponseHeaders(200, ...
7
private Element CreateRows() { Element rows = doc.createElement("rows"); for (int rdx=0; rdx < dataGrid.Rows(); rdx++) { Element row = doc.createElement("row"); Element header = doc.createElement("row-header"); header.appendChild...
8
public static void handleEnableAsyncMetadataMethod(HTSMsg msg, HTSPServerConnection conn, HTSPMonitor monitor) throws IOException { Collection<String> requiredFields = Arrays.asList(new String[]{}); if (msg.keySet().containsAll(requiredFields)){ HTSMsg reply = new HTSMsg(); handleExtraFields(msg,reply); co...
4
public String getSourceLine() { return sourceLine; }
0
@Override public void mouseReleased(MouseEvent me) { if (echiquier.getPieceCase(this.pInit) != null) { if (me.getPoint().x < 800 && me.getPoint().y < 800) { if (this.echiquier.deplacerPiece(echiquier.getPieceCase(this.pInit), ((ChessFrame) this.fenetre).getCoord(me.getPoint()))) ...
5
@SuppressWarnings({ "unchecked", "rawtypes" }) public StartDialog(final PacketFactoryInterface pf, Status statusParam) { this.status = statusParam; setResizable(false); setModalityType(ModalityType.APPLICATION_MODAL); setTitle("Start Game"); setBounds(BORDER, BORDER, BORDER2,...
5
public boolean match(Sim_event ev) { if (ev == null) { return false; } boolean result = false; try { // find an event with a matching tag first if ( tag_ == ev.get_tag() ) { Object obj = ev.get_data(); ...
5
public Game.PlayerTurn[][] getGridArray() { boolean test = false; if (test || m_test) { System.out.println("FileManager :: getGridArray() BEGIN"); } if (test || m_test) { System.out.println("FileManager :: getGridArray() END"); } return m_gridArray; }
4
public void actionPerformed(ActionEvent event) { if(event.getActionCommand().equals(zoomIn.getActionCommand())){ parent.zoomIn(); } else if(event.getActionCommand().equals(zoomOut.getActionCommand())){ parent.zoomOut(); } }
2
@Test @Ignore // Callback ordering is not supported public void runTestOrdering1() throws IOException { InfoflowResults res = analyzeAPKFile("Callbacks_Ordering1.apk"); Assert.assertNotNull(res); Assert.assertEquals(0, res.size()); }
0
public boolean generate(World par1World, Random par2Random, int par3, int par4, int par5) { for (int var6 = 0; var6 < 20; ++var6) { int var7 = par3 + par2Random.nextInt(4) - par2Random.nextInt(4); int var8 = par4; int var9 = par5 + par2Random.nextInt(4) - par2Rand...
8
public void realEnvido(boolean envido, boolean envidoEnvido, Humano jugadorH, Contador contador, boolean mentir){ System.out.println("\n"+this.getNombre()+": Real Envido"); ArrayList<Boolean> respuesta = new ArrayList<Boolean>(); respuesta = jugadorH.cantoRealEnvido(envido, envidoEnvido, contador, this, mentir); ...
6
private static int getPresidence(char inf) throws NotInfix{ /* * Presidence table: * + 0 * - 1 * * 2 * / 3 * ^ 4 */ switch( inf ){ case '+' : return 0; case '-' : return 1; case '*' : return 2; case '/' : return 3; case '^' : return 4; default:...
5
private static void exportPricesCSV() { StringBuilder sb = new StringBuilder(); sb.append("id;price;Typ;Set;Itemname;Level;Stars;Useful;Armortype;"); sb.append("\n"); for (Shoes s : shoes) { String x = s.getPrice() + ""; x = x.replace(".", ","); sb.append(s.getId() + ";" + x + ";Shoes;" + s.getI...
6
public Iterator getChilds() { final Iterator fieldIter = fieldIdents.iterator(); final Iterator methodIter = methodIdents.iterator(); return new Iterator() { boolean fieldsNext = fieldIter.hasNext(); public boolean hasNext() { return fieldsNext ? true : methodIter.hasNext(); } public Object nex...
2
public static void reloadChannels() { if (ChannelsFile == null) { ChannelsFile = new File(PlayerChat.plugin.getDataFolder(), "channels.yml"); } Channels = YamlConfiguration.loadConfiguration(ChannelsFile); InputStream defConfigStream = PlayerChat.plugin.getResource("channels.yml"); if (defConfigStream != n...
2
@Override public boolean onLoop( Game game, GameState state, GameInput input, Graphics2D gr ) { long nanosElapsed = state.tick(); time += nanosElapsed; int updateCount = 0; while (time >= frameRate && updateCount < maxUpdates) { game.input( input ); input.clear(); if (!game.isPlaying()) { ...
6
public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringBuilder out = new StringBuilder(); String line = ""; while ((line = in.readLine()) != null) { double[] v = readDoubles(line); boolean allZero = true; for (int i = ...
4
@Override protected void randomizeData(Random rng, Battle battle, int position) { for (int i = 0; i < battle.objectCount(); i++) { BattleObject obj = battle.getObject(i); int objValue = obj.getValue(); // If object is an enemy, randomize it. if (obj.getType() == BattleObject.Type.ENEMY && obj.getSide() ...
6
public void pullDataFile(String fileName, Course[][] courses) { int courseNumber = 0, creditHours = 0; String department = "", courseTitle = ""; int semester = 0, course = 0; char grade = 'G'; file = new File(fileName); try { Scanner scan = new Scanner(file); while (scan.hasNext()) { ...
8
public static ArrayList<String> division(int dividend, int divisor) throws NumberFormatException, IOException{ ArrayList<String> pseudographics = new ArrayList<String>(); try{ ArrayList<Integer> digitsInDividend = new ArrayList<Integer>(); ArrayList<Integer> resultByDigits = new ArrayList<Integer>(); boolean ...
5
public VCNTreeItem getCurrentTreeItem() { if (editor == null) { return null; } return editor.getTreeItem(); }
1
Features getFeature(int mouseY) { int numFeatures = Features.count(); if (hexSideInPixels <= 0) { return Features.getFeature(0); } int spacing = 2 * hexSideInPixels + internalMarginInPixels; int i = (mouseY - topMargin + internalMarginInPixels / 2) / (spacing); ...
3
public void printAula( String nomAula){ ArrayList<String> atributs = cper.llegirAula(nomUnitat+"-"+nomAula); int t = Integer.parseInt(atributs.get(0)); String n = atributs.get (1); int c = Integer.parseInt (atributs.get(2)); int b = Integer.parseInt (atributs.get(3)); if ...
9
public void parse(String row) { String[] strings = StringUtils.splitPreserveAllTokens(row, this.inputDelimiter); if (initSize == -1) { // Not initialized this.initSize = strings.length; } if (initSize != strings.length) { throw new IllegalArgumentException("Wrong column size. Init Size [" + initSize + "]...
2
public int getVisibleSize() { if ( (visibleVersionsCount < 0) || dataVisibilityChanged) { int len = langVersions.size() ; int vLen = 0 ; // count all visible languages for ( int t = 0 ; t < len ; t++ ) { // System.out.println( "language " +get(t).getFullLanguageName() ) ;...
4
private boolean checkHealth0(Node node) { try { NioChannel channel = connectionManager.getChannel(node.getHostname(), node.getPort()); if (channel.isOpen()) { if (!node.isOptionsEnabled()) { return true; } // Put the channel in the recycled channel's list buffer.clear(); ...
7
public static void main(String[] args) { ArrayList<Item> shoppingCart = new ArrayList<Item>(); if (args.length != 1) { System.err.println ("Error: Incorrect number of command line arguments"); System.exit(-1); } try { FileReader freader = new FileReader(args[0]); BufferedReader rea...
9
@Override public void actionPerformed(ActionEvent event) { if(((JButton) event.getSource()).getText() == "Annuler") { this.grilleCombinaisonJeu.remiseAZeroCombinaisonAffichée(); } if(((JButton) event.getSource()).getText() == "Valider") { this.combinaisonValidee = true ; } }
2
public void refreshTagSelector() { // Find the tags that were selected before the refresh HashSet<String> previouslySelected = new HashSet<String>(); for (int index : tagSelector.getSelectedIndices()) { if (tagSelector.isSelectedIndex(index)) { previouslySelected.add(tagSelector.getModel().getElement...
4
private int stripMultipartHeaders(ByteBuffer b, int offset) { int i; for (i = offset; i < b.limit(); i++) { if (b.get(i) == '\r' && b.get(++i) == '\n' && b.get(++i) == '\r' && b.get(++i) == '\n') { break; } } return i + ...
5
private void fillParameters(ServletRequest request, ParameterGraph parameterGraph) { for (Parameter para : parameterGraph.getParmaeters()) { if (para instanceof SimpleParameter) { SimpleParameter simplePara = (SimpleParameter) para; String[] values = request.getParame...
6
public void updateLauncher(){ try { // URL updatePath = new URL(McLauncher.McLauncherPath); // ReadableByteChannel rbc = Channels.newChannel(updatePath.openStream()); // FileOutputStream fos = new FileOutputStream("McLauncher.jar"); // fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); // fos.close(); ...
3
public void tourDesMonstres(){ if (!fini()){ for (int i=0; i<monstres.recensement(); i++){ Monstre m = (Monstre) monstres.getSoldat(i); if (!m.estMort()){ // Chaque monstre joue... } } /* Rese...
3
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=utf-8"); String method = Util.nullToString(request.getParameter("method")); if("viewA...
8
Point(int x, int y) { this.x = x; this.y = y; }
0
protected final Statement prepareStatement(Connection conn, String sql) throws SQLException { final int index = sql.indexOf(';'); Statement stmt = (index >= 0) ? conn.prepareStatement(sql.substring(0, index)) : conn.createStatement(); try { if (stmt in...
7
public FlipHash(int cursorX, int cursorY, boolean[][] traversable, boolean[][] board) { this.cursorX = cursorX; this.cursorY = cursorY; this.board = new BitSet(); final int height = board.length; final int width = board[ 0 ].length; int tiles = 0; for (int y = 0; y < height; y++) { for (int...
3
public static byte[] convert(boolean[] pieces) { int length = pieces.length / 8; int mod = pieces.length % 8; if(mod != 0){ ++length; } byte[] retVal = new byte[length]; int boolIndex = 0; for (int byteIndex = 0; byteIndex < retVal.length; ++byteIndex) { for (int bitIndex = 7; bitIndex >= 0; --bi...
5
@Override public int compareTo(Hand otherHand) { List<Card> thisHand = getHandValues().get(this); List<Card> thatHand = getHandValues().get(otherHand); if (thisHand == null || thatHand == null) { return 0; } if (thisHand.size() > thatHand.size()) { return 1; } else if (thisHand.size() < that...
7
public boolean removeSection(String name) { String normName = normSection(name); if (this.commonName != null && this.commonName.equals(normName)) { throw new IllegalArgumentException("Can't remove common section"); } if (hasSection(normName)) { this.sections.remov...
3
public void mouseExited(MouseEvent e) { if(getState() == ENABLED) { textColor = "white"; } else { textColor = "gray"; } }
1
public static String reverseWords(String s) { StringBuilder result = new StringBuilder(); for (int i = s.length() - 1, end = 0; i >=0 ; i--) { char c = s.charAt(i); if (c != ' ') result.insert(end, c); else if (result.length() > 0 && result.charAt(result.length() - 1) != ' ') { result.appen...
6
public static String unicode(String src) { byte[] bytes = src.getBytes(Charsets.UTF_16);// 转为UTF-16字节数组 int length = bytes.length; if (length > 2) {// 由于转换出来的字节数组前两位属于UNICODE固定标记,因此要过滤掉 int i = 2; StringBuilder sb = new StringBuilder((length - i) * 3); boolean isOdd = false; for (; i < length; i++) { ...
3
public void movePieceOnBoard(String command, Position pieceStart, Position pieceEnd) { String player = whitePlayerTurn() ? "Black" : "White"; int x1 = pieceStart.getPositionX(); int y1 = pieceStart.getPositionY(); int x2 = pieceEnd.getPositionX(); int y2 = pieceEnd.getPositionY(); String startSpot = c...
9
public String calculateProbs(String url, double parent_score, double div_score, double anchor_score) { String[] data = new String[5]; data[0] = url; String parent, div, anchor; float relevant_yes, relevant_no, temp_parent[], temp_div[], temp_anchor[]; if(pare...
8
private void loadpos() { if (cap == null) { return; } String name = cap.text; if (storePosSet.contains(name)) { c = new Coord(Config.window_props.getProperty(name + "_pos", c.toString())); return; } }
2
public static void main(String args[]) throws Throwable { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); for(int i=0;i<lAdy.length;i++)lAdy[i]=new ArrayList<Integer>(); for (String ln;(ln=in.readLine())!=null;) { StringTokenizer st=new String...
9
public static void addThisYear(double meanUtil, double utilStdDev){ supplies.add(City.economy.getSupplyString()); demands.add(City.economy.getDemandString()); prices.add(City.economy.getPriceString()); String popString = new String(City.year + ","); int male = 0; //must divide by pop int[] homeClass = ne...
7
public static void f(MyIncrement mi) { mi.increment(); }
0
public void drawGameOver() { Graphics2D g = image.createGraphics(); int mX = 0; int mY = 0; if ( getMousePosition() != null ) { mX = (int)getMousePosition().getX(); mY = (int)getMousePosition().getY(); } g.setColor( Color.black ); ...
9
public ListNode reverseBetween(ListNode head, int m, int n) { ListNode dummy = new ListNode(0); ListNode p = dummy; dummy.next = head; int i = 1; while(p.next != null && i < m){ p = p.next; ++i; } ListNode back = p.next; ListNode pp = p; while(pp.next != null && i <= n){ pp = pp.next; ++i;...
4
public senseDir getSenseDirVal() { return senseDirVal; }
0
public void init() throws RemoteException { for (ICamera camera : serverProxy.getCameras()) { if (cCameraUser == null || (!camera.getOwnerName().equals( cCameraUser.getOwnerName()))) { CCamera cCamera = new CCamera((ACamera) camera, serverProxy, "http://espacezives.free.fr/pyramid.wrl"); ...
4
public PlanBoeseKrieg(JSONObject object) throws FatalError { super(object, "BoeseKrieg"); if (PlanBoeseKrieg.list == null) { PlanBoeseKrieg.list = new OpponentList(); } }
1
static byte WallSignFix(byte data, String kierunek) { if (kierunek.equals("right")) { if (data == 2) { return 5; } if (data == 4) { return 2; } if (data == 5) { return 3; } if (data == 3) { return 4; } } else { i...
9
private int getNumberOfAlive(int time){ if (vectors[0][0] == null){ return vectors[0].length; } int res = 0; for (Vector vector: vectors[time]){ if (vector.getBeing().isHuman()){ res++; } } return res; }
3
public void updateArchive(Archive archive) { dull = true; CacheIndice indice = cache.getIndice(0); try { if (archive == interfaces) { byte[] interfaceData = RSInterface.getData(); archive.updateFile(archive.indexOf("data"), interfaceData); byte[] data = archive.recompile(); indice.updateFile(3,...
3
public void shiftRight() { if(currentIndex < galleryImageIcons.size() - 1) { PopImage.view.setImageIcon(galleryImageIcons.get(++currentIndex)); } }
1
public Ambient(){}
0
protected LoginResult charcrANSIDone(final LoginSessionImpl loginObj, final Session session) { final MOB mob=loginObj.mob; session.setMob(loginObj.mob); if((session.getClientTelnetMode(Session.TELNET_MSP)) &&(!CMSecurity.isDisabled(CMSecurity.DisFlag.MSP))) mob.setAttribute(MOB.Attrib.SOUND,true); if((ses...
7
public static void check(List<TableEntity> tables) { for (TableEntity table : tables) { List<ColumnEntity> c = table.columns; for (RecordEntity record : table.records) { List<String> e = record.expecteds; List<String> a = record.actuals; if...
9
public static void main(String[] args){ int i = 999; int j = 999; int kaibun; for(i = 999; i > 0; i--) { kaibun = (1000 * i) +(100 * (i % 10)) + (10 * ((i / 10) % 10)) + (1 * ((i / 100) % 10)); for(j = 999; j > 0; j--) { if((kaibun % j == 0) && (kaibun / j) < 1000) ...
4
public void disconnect() { if (socket != null) { try { socket.close(); } catch (IOException e) { // ignore } socket = null; } if (input != null) { try { input.close(); } catch (IOException e) { // ignore } } if (output != null) { try { output.close(); } catch (IO...
6
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; NotifiedMethodInvocationReport that = (NotifiedMethodInvocationReport) o; if (invocation != null ? !invocation.equals(that.invocation) : that.invocation != null) ret...
9
public ArrayList<Object> ifGift(SalesReceiptPO receipt){ ArrayList<Object> returnPromotions=new ArrayList<Object>(); for(PromotionPO p:promotions){ if(p.getPromotionType()==PromotionSort.Gifts){ if(receipt.getFinalprice()>=p.getLeastPrice() &&checkDateValid(receipt.getSerialNumber(), p) &&checkCu...
5
@Override public List<Integer> save(List<TransMode> beans, GenericSaveQuery saveGeneric, Connection conn) throws DaoQueryException { try { return saveGeneric.sendQuery(SAVE_QUERY, conn, Params.fill(beans, (TransMode bean) -> { Object[] objects = new Object[1]; obj...
1
private xAuthPlayer loadPlayer(String playerName) { Connection conn = plugin.getDbCtrl().getConnection(); PreparedStatement ps = null; ResultSet rs = null; try { String sql = String.format("SELECT `id` FROM `%s` WHERE `playername` = ?", plugin.getDbCtrl().getTable(Table.ACCOUNT)); ps = conn.prepareS...
2
public Clock(BufMgr javamgr) { super(javamgr); }
0
@Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof ItemPropertyValue)) { return false; } ItemPropertyValue other = (ItemPropertyValue) object; if ((this.itemPrope...
5
public boolean insertSkillSet(UserSkillSet userSkillSet) { Connection connection = new DbConnection().getConnection(); PreparedStatement preparedStatement = null; boolean flag = false; List<SkillRating> skillRatings = userSkillSet.getSkills(); Iterator<SkillRating> iterator = skillRatings.iterator(); try { ...
6
WordDescription(XMLStreamReader reader){ WordType type = null; Pattern endsWithPattern = null; String value = null; String functionalGroupType = null; String endsWithGroupValueAtr = null; String endsWithGroupType = null; String endsWithGroupSubType = null; for (int i = 0, l = reader.getAttribute...
9
public void setX(int x) { this.x = x; }
0
public void set(float value) { increase = value > dValue; this.value = value; }
0
private static boolean isID(String word) { boolean flag = false; int i = 0; if (Word.isKey(word)) return flag; char temp = word.charAt(i); if (isLetter(temp) || temp == '_') { for (i = 1; i < word.length(); i++) { temp = word.charAt(i); if (isLetter(temp) || temp == '_' || isDigit(temp)) co...
8
public void setLibelle(String libelle) { this.libelle = libelle; }
0
public Automaton convertToAutomaton(Grammar grammar) { ArrayList list = new ArrayList(); Automaton automaton = new Automaton(); createStatesForConversion(grammar, automaton); Production[] productions = grammar.getProductions(); for (int k = 0; k < productions.length; k++) { list.add(getTransitionForProduct...
2
public static boolean zip(String zip){ if(zip.matches("(\\d){5}(-(\\d){4})?")) return true; return false; }
1
public static byte[] convertPNGToBlob(Image image) throws IOException { //Create the byte array int width = image.width; int height = image.height; byte[] data = new byte[width*height*4]; //Convert pixels to data. int ci = 0; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) { int...
6
public char readCharacter() //exclusively for token { if(console) { if (buffer == null || !buffer.hasMoreTokens()) try { buffer = new StringTokenizer(myInFile.readLine()); return buffer.nextToken().charAt(0); ...
9
public int GetOnBusTicks() { //get the tick time person got on the bus return onBusTicks; }
0
public void addFirst(E e) { if (e == null) throw new NullPointerException(); elements[head = (head - 1) & (elements.length - 1)] = e; if (head == tail) doubleCapacity(); }
2
public void setApodo(String apodo) { this.apodo = apodo; }
0
public static String toString(JSONObject jo) throws JSONException { StringBuilder sb = new StringBuilder(); sb.append(escape(jo.getString("name"))); sb.append("="); sb.append(escape(jo.getString("value"))); if (jo.has("expires")) { sb.append(";expires="); ...
4
private int start(int i) { int first = this.firstNonEmptyBucket(); if(i < first) { return -1; } else if(i == first) { return 0; } int result = 0; for(int j = first; j < i; j++) { if(buckets[j] != null) { result += buc...
4
public void attackPlayersWithin(int gfx, int maxDamage, int range) { for (Player p : server.playerHandler.players) { if(p != null) { client person = (client)p; if((person.playerName != null || person.playerName != "null")) { if(person.distanceToPoint(absX, absY) <= range && person.play...
8
private void jLabel5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseClicked if(this.jPanel4.isVisible()) this.jPanel4.setVisible(false); else this.jPanel4.setVisible(true); }//GEN-LAST:event_jLabel5MouseClicked
1
private int compareByte(byte b1, byte b2) { if ((b1 & 0xFF) > (b2 & 0xFF)) // 比较是否大于 return 1; else if ((b1 ^ b2) == 0)// 判断是否相等 return 0; else return -1; }
2
private void GetTasksForAsset(Asset SelectedAsset) { AssetTasks.clear(); taskList.repaint(); ResultSet tasksOnAssetListResultSet = null; Statement statement; try { statement = connection.createStatement(); Asset asset = (Asset) assetList...
4
public static Strategie getRandom() { Strategie s = new Strategie(); String a1 = parts[(new Random()).nextInt(parts.length)]; String a2 = null; do { a2 = parts[(new Random()).nextInt(parts.length)]; } while(a2.equals(a1)); String a3 = null; do { a3 = parts[(new Random()).nextInt(parts.length)]; ...
6
@Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof TObject)) { return false; } TObject other = (TObject) object; if ((this.id == null && other.id != null) || (thi...
5
private void prevQbtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_prevQbtnActionPerformed setResponse(); if(qIndex > 0) { ShowQuestion(qIndex - 1); qIndex--; } }//GEN-LAST:event_prevQbtnActionPerformed
1
public static String printPerfs(List<Counter> list) { if (list == null || list.size() == 0) return ""; StringBuilder builder = new StringBuilder(1024); int maxLength = 0; for (Counter base : list) { maxLength = Math.max(base.getName().length(), maxLength); } String lastCat = null; String lastGro...
7
public static LocInCell getLocInCell(Dir d1, Dir d2) { if (oneIs(Dir.Up, d1, d2) && oneIs(Dir.Left, d1, d2)) return LocInCell.UpperLeft; if (oneIs(Dir.Up, d1, d2) && oneIs(Dir.Right, d1, d2)) return LocInCell.UpperRight; if (oneIs(Dir.Down, d1, d2) && oneIs(Dir.Left, ...
8
public void setLines() { lines = new ArrayList<>(); panels = new ArrayList<>(); for (DrawableItem pi : this.l.getDrawable()) { if (pi instanceof PathItem && !((PathItem) pi).hidden) { lines.add((GeneralPath) ((GeneralPath) (pi.getShape())).clone()); } ...
3
public Enumeration enumerateRequests() { Vector newVector = new Vector(); if (m_subFlowPreview != null) { String text = "Show preview"; if (m_previewWindow != null) { text = "$"+text; } newVector.addElement(text); } for (int i = 0; i < m_subFlow.size(); i++) { BeanInstance...
7