text
stringlengths
14
410k
label
int32
0
9
public void tableChanged(TableModelEvent e) { try { // get the index of the inserted row //tableModel.getRowSet().moveToCurrentRow(); int firstIndex = e.getFirstRow(); // create a new table model with the new data tableModel = new FilesTableModel(tableModel.getList(), ta...
1
public void mousePress(int x, int y){ for(ImageButton imgs : controlButtons){ imgs.mousePressed(x, y); } for(LoopNode node : graphedInputs){ if(node.mouseClicked(x, y)){ movingInputTime = true; this.node = node; System.out.println(node); } } }
3
private void initializeLogger() { this.log = Logger.getLogger(this.getClass().getName()); try { FileHandler fh = new FileHandler(this.getClass().getName() .replace("class ", "") + ".log"); fh.setFormatter(new SimpleFormatter()); this.log.addHandler(fh); } catch (SecurityException e1) { // TO...
3
void setNodeDegree(ArrayList<Edge> edges){ this.incidentEdges = new ArrayList <Integer>(); //Initialize the array for saving degree over time for (int i=0;i<this.numTimeSlices;i++){ this.degrees.add(0); } //For each time slice, count the number of edges containing the n...
7
int possibleMovesNum(Point[] grid, Pair pr) { int possible = 0; for (int i = 0; i < size; i++) { for (int j = 0; j < size; j++) { Point currentPoint = pointAtGridIndex(grid, i, j); if (currentPoint.value == 0) { continue; } for (Pair d : directionsForPair(pr)) { if (isValidBoardIndex(i + d.p, j ...
6
public static boolean download(String url, String toFile) { // dScreen = new DownloadScreen(); try { DownloadScreen.downLoadStarted(new File(toFile).getName() .toString()); url = url.replace(" ", "%20"); URL urll = new URL(url); System.out.println("Opening connection to " + url + "..."); ...
8
public String getRoomLetter() { if(potion + fragment + trap > 1) { return "M"; } else if(damagePotion == 1) { return "D"; } else if(potion == 1) { return "P"; } else if(trap == 1) { return "T"; ...
7
private static List<PositionEntity> getMovePositionsSilver(final ChessBoardEntity b, final ChessmenEntity c) { List<PositionEntity> result = null; if (c.isPromote()) { result = getMovePositionsGold(b, c); } else { result = new ArrayList<PositionEntity>(); PositionEntity p = null; p = new PositionEntit...
6
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://down...
6
public Teacher1 getTeacher1() { return teacher1; }
0
public boolean isInProgress() { return "progress".equals(status) || "start".equals(status); }
1
private void setFiles(String[] args) { // TODO if (args[0] != "-x") { if (args.length == 4) { cipher = args[1]; blockmode = args[2]; infile = args[3]; firstoutfile = args[4] + ".txt"; finaloutfile = args[4] + "_final.txt"; } else if (args.length == 4) { cipher = args[1]; blockmode ...
7
public void updateUniforms(Matrix4f worldMatrix, Matrix4f projectedMatrix, Material material) { if(material.getTexture() != null) material.getTexture().bind(); else RenderUtil.unbindTextures(); setUniform("transform", projectedMatrix); setUniform("baseColor", material.getColor()); setUniform("ambien...
1
protected void executeMoneyDrop(final MOB source, final MOB conciergeM, final Environmental possibleCoins, final CMMsg addToMsg) { if(possibleCoins instanceof Coins) { final int destIndex=destinations.indexOfFirst(source); if(destIndex>=0) { Quad<MOB,Room,Double,TrackingFlags> destT=destinations.get(d...
7
public String toString() { StringBuilder sb = new StringBuilder(); sb.append("[").append(bits()).append("]"); sb.append(" ").append(type()); if (checkHealth()) sb.append(" check health"); if (grown()) sb.append(" grown"); if (grown() && type() == TreeType.WILLOW) sb.append(" branches: ").append(branches());...
4
public void setError(String error) { this.error = error; try { int retryIndex = error.indexOf("retry after "); if (retryIndex > 0) { int beginIndex = retryIndex + 12; String substring = error.substring(beginIndex, beginIndex + 19); retryAfterDate = DateUtils.getGMTConverter().convert(Date.class, s...
2
protected double generateClassValue(Instances data) throws Exception { double result = Double.NaN; switch (m_ClassType) { case Attribute.NUMERIC: result = m_Random.nextFloat() * 0.25 + Math.abs(m_Random.nextInt()) % Math.max(2, m_NumNominal); break; ...
9
public Remote440 lookup(String objName, String className) throws Remote440Exception{ try { RemoteObjectReference objRef = null; Socket s = new Socket(registryIP, registryport); OutputStreamWriter out = new OutputStreamWriter(s.getOutputStream()); out.write(objName+"\n"); out.flush(); Obje...
6
public static ACTIONS reverseACTION(ACTIONS value){ if(value == ACTIONS.ACTION_DOWN){ return ACTIONS.ACTION_UP; } if(value == ACTIONS.ACTION_UP){ return ACTIONS.ACTION_DOWN; } if(value == ACTIONS.ACTION_RIGHT){ return ACTIONS.ACTION_LEFT; ...
4
public String getHtml(WikiContext context) throws ChildContainerException { try { if (context.getAction().equals("confirm")) { startTask(); sendRedirect(context, context.getPath()); return "Unreachable code"; } boolean showBuff...
7
private static Point[][] get64PlayersPositions() { int maxPlayers = 64; Point[][] pos = new Point[8][128]; for(int i = 0; i < maxPlayers;i++ ){ pos [0][i] = new Point(0,2*i); } for(int i = 0; i < maxPlayers/2;i++ ){ pos [1][i] = new Point(2 ,1+4*i); } for(int i = 0; i < maxPlayers/4;i++ ){ pos [...
7
public final int getExtendedHeaderSize() { return ((this.grouping_identity_byte == null ? 0 : 1) + (this.encryption_method == null ? 0 : 1) + (this.data_length_indicator == null ? 0 : 4)); }
3
public boolean isAccepted() { Iterator it = myConfigurations.iterator(); while (it.hasNext()) { PDAConfiguration configuration = (PDAConfiguration) it.next(); if (myAcceptance == FINAL_STATE) { State currentState = configuration.getCurrentState(); if (configuration.getUnprocessedInput() == "" &&...
7
void addConstructor(CtMember cons) { cons.next = consTail.next; consTail.next = cons; if (consTail == fieldTail) fieldTail = cons; consTail = cons; }
1
public QuickUnion(int n){ id = new int[n]; for(int i = 0; i < n; i++) id[i]=i; }
1
private PrintService getPrintService() { // This method exists since some implementations throw a runtime // exception if no printer was ever defined on the system. try { return mJob.getPrintService(); } catch (Exception exception) { return null; } }
1
public MessageReceiver(BufferedReader inputMessageReceiver, int fileTransferPort, int verbose) { this.inputMessageReceiver = inputMessageReceiver; this.fileReceiverThread = null; this.fileTransferPort = fileTransferPort; this.verbose = verbose; }
0
@Override public void draw(Graphics g) { // If alive, draw picture of ragnaros if (Alive) { g.drawImage(img1, pos_x, pos_y, width, height, null); } // If dead, draw explosion else { g.drawImage(img2, pos_x, pos_y, width, height, null); } }
1
private List<Posicao> capturasPossiveisPeaoPreto(Posicao posicao) { List<Posicao> capturasPossiveis = new ArrayList<>(); Peca peca; /* verifica se nao esta na primeira linha */ if (posicao.getLinha() - 1 >= 0) { /* verifica se nao esta na primeira coluna */ if (...
7
public Rabbit(boolean randomAge, Field field, Location location) { super(field, location); setAge(0); if(randomAge) { setAge(getRandom().nextInt(MAX_AGE)); } }
1
public default boolean checkLife() { if (this.getCurrentHp() > 0) { return true; } else { return false; } }
1
@Override public void slaOpdrachtOp(OpdrachtCatalogus opdrachtCatalogus, Opdracht opdracht) { try { String vraag = opdracht.getVraag(); String antwoord = opdracht.getAntwoord(); int maxAantalPogingen = opdracht.getMaxAantalPogingen(); String antwoordHint = opdracht.getAntwoordHint(); int maxAntwoor...
6
public String getTag() { return tag; }
0
public ArrayList<Intersection> getNeighbours(Intersection node) { ArrayList<Intersection> neighbours = new ArrayList<Intersection>(); for (Segment seg : node.getEdges()) { if (seg.getNodeID1().equals(node)) { if (seg.getNodeID2() != null) { neighbours.add(seg.getNodeID2()); } } else if (seg.getNo...
5
public void execute(Joueur jou){ Joueur proprio = this.getProprietaire(); if(jou.equals(proprio)){ return; } else if(proprio == null){ Scanner sc = new Scanner(System.in); if(this.getLoyerBase() <= jou.getCash()){ ...
7
private static AudioFormat audioFormatFromHeaderValue(int audioFormat) { switch (audioFormat) { case 0: return AudioFormat.UNSPECIFIED; case 1: return AudioFormat.OGG_VORBIS; case 2: return AudioFormat.FLAC; case 3: return AudioForm...
4
public int GetNumberOfPersonsCreated() { return personsCreated; }
0
private final boolean finishOldWork() throws FatalError { Output.printClockLn("Versuche alte Aufgaben zu beenden.", 2); boolean returnValue = false; switch (User.getStatus()) { case work: returnValue = PlanArbeiten.finish(); break; case service: returnValue = Aussendienst.finish(); break; cas...
4
public int pwm() { System.out.println(temperatureRange); System.out.println(delay_on[temperatureRange]); System.out.println(delay_off[temperatureRange]); if(temperatureRange == 0 || temperatureRange == 7){ range(); return 1; } try{ while(Interupt == 0) { InLo...
8
public boolean method577(int arg0) { if (objectTypes == null) { if (modelIds == null) { return true; } if (arg0 != 10) { return true; } boolean flag1 = true; for (int element : modelIds) { fla...
6
public void browserMoveObject(String objectName, String targetPath) { String objectPath; FileableCmisObject object; if (browseFolder.isRootFolder()) { objectPath = browseFolder.getPath() + objectName; } else { objectPath = browseFolder.getPath() + "/" + objectName...
4
public void act(List<Actor> newRabbits) { incrementAge(); incrementHunger(); if(isAlive()) { infectionChance(newRabbits); } if(isAlive()) { giveBirth(newRabbits); // Move towards a source of food if found. Location l...
5
@Override public void eUnset(int featureID) { switch (featureID) { case statePackage.STATE__PLAYERS: getPlayers().clear(); return; case statePackage.STATE__COUNTRY_STATE: getCountryState().clear(); return; case statePackage.STATE__TURN: setTurn((Player)null); return; case statePac...
7
@Override public void delete(Key key) { Node x = this.root; Node parent = x, temp; temp = x; while (x != null) { int cmp = key.compareTo(x.key); if (cmp < 0) x = x.left; else if (cmp > 0) x = x.right; ...
9
public void newGame(Difficulty difficulty) { // set difficulty and creates a new board this.height = difficulty.height(); this.width = difficulty.width(); this.nbMines = difficulty.nbMine(); this.nbFlags = 0; cells = new Cell[width][height]; for (int i = 0; i < width; i++) { for (int j = 0; j < heigh...
3
public int generateId() { int res = 0; File dir = new File(this.configDirectory); File[] configs = dir.listFiles(); if (configs == null) { return 0; } for (File file : configs) { if (file.getName().equals("config.server")) { FileInputStream fis = null; BufferedInputStream bis = null; B...
8
public void assinar() throws IOException, Exception{ int index = s.getCertificateList().getSelectionModel().getLeadSelectionIndex(); //System.out.println(s.getSigners().get(index)); ICPBrasilSigner signer = s.getSigners().get(index); // System.out.println(new File("xmls/1.xml").exists());...
2
protected static <S> void verifyIsOuterClass( Class<S> serviceClass, Class<? extends S> providerClass, Scope scope) throws ServiceInstantiationException { // If it's an inner class, it must be declared static Class<?> declaringClass=providerClass.getDeclaringClass(); if (declaringClass!=null) { Class<?>[]...
7
public MainWindow() { /** * Initialisation des elements graphiques */ // Definition de la frame frame = new JFrame("Automaton cellular"); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setPreferredSize(new Dimension(1100, 600)); frame.setMinimumSize(new Dimension(1100, 600)); ...
7
public void updateUsks(PrintStream out) throws IOException, InterruptedException { out.println("----------------------------------------"); out.println("Finding USKs..."); out.println("----------------------------------------"); Map<String, Integer> latest = new HashMap<String, Integer>...
8
public synchronized void disconnectClient (int ID) { //Closes the socket in addition to the input and output streams try { ((TcpThread) flexclients.get (ID)).Soutput.close (); ((TcpThread) flexclients.get (ID)).Sinput.close (); ((TcpThread) flexclients.get (ID)).socket.close (); } catch (Excepti...
1
public void testErodingPoolKeyedObjectPool() throws Exception { try { PoolUtils.erodingPool((KeyedObjectPool<Object, Object>)null); fail("PoolUtils.erodingPool(KeyedObjectPool) must not allow a null pool."); } catch(IllegalArgumentException iae) { // expected ...
7
private int jjMoveStringLiteralDfa6_0(long old0, long active0) { if (((active0 &= old0)) == 0L) return jjStartNfa_0(4, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(5, active0); return 6; } switch(curChar) { case 101: ...
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 feel. * For details see http://down...
6
private JLabel getJLabel0() { if (jLabel0 == null) { jLabel0 = new JLabel(); jLabel0.setText("UPDATE OPERATION"); } return jLabel0; }
1
public static boolean[] stepPattern(boolean[] pattern) throws SolvingInitialisiationException{ boolean[] newPattern = new boolean[pattern.length]; for (int i = 0; i < pattern.length; i++){ newPattern[i] = pattern[i]; } for (int i = 1; i < pattern.length; i++){ if (pattern[i] == false){ newPattern[i...
3
@Test public void RunHeursticsSimulator() throws Exception { populateArray(); System.out.format("\nPerfect Cache is %b, Perfect branch predictor is %b, width is %d\n\n",perfectCache,perfect_bpred,machWidth); for(int i=2; i<10; i++){ traceName = traceNames[i]; ...
7
private void setPlayers(List<Player> players) { if (players == null) throw new IllegalArgumentException("Players can't be null!"); this.players = players; }
1
public synchronized T lookup(String requestURI) { if (requestURI == null) { throw new IllegalArgumentException("Request URI may not be null"); } //Strip away the query part part if found int index = requestURI.indexOf("?"); if (index != -1) { requestURI = ...
9
public static Boolean dateIncrense(Date staticsDate){ Date d = new Date(); Date d1 = new Date(); Date d2 = new Date(); d1.setHours(0); d1.setMinutes(0); d1.setSeconds(0); d2.setHours(23); d2.setMinutes(59); d2.setSeconds(59); if(staticsDate.after(d1) && staticsDate.before(d2)){ return false...
2
public String getName() { return this.name; }
0
public Matrix solve(Matrix B) { if (B.getRowDimension() != m) { throw new IllegalArgumentException("Matrix row dimensions must agree."); } if (!this.isNonsingular()) { throw new RuntimeException("Matrix is singular."); } // Copy right hand side with pivoting int nx = B.getColumnDime...
9
private void generateProfileFromText() { if (arglist.size() != 1) { System.err.println("Need to specify text file path"); return; } File file = new File(arglist.get(0)); if (!file.exists()) { System.err.println("Need to specify existing text file path"...
8
@Override public boolean okMessage(Environmental affecting, CMMsg msg) { if(!super.okMessage(affecting,msg)) return false; final MOB source=msg.source(); if(!canFreelyBehaveNormal(affecting)) return true; final MOB observer=(MOB)affecting; if((source!=observer) &&(msg.amITarget(observer)) &&(msg.t...
9
private static void possible(ArrayList<String> list, City c, int turns, int times) { System.out.print("Called with " + turns + " number of turns, " + times + " iterations, and contents (" + list.size() + "): "); for (int i = 0; i < list.size(); i++) System.out.print(list.get(i) + " "); System.out.println(); ...
7
private void calcHeuristic(TrieNode node) { if (node.isLeaf()) { node.setHeuristic(node.getDepth()); } else { for (TrieNode child : node.getChildren().values()) { calcHeuristic(child); } node.setHeuristic(getMaxChildHeuristic(node)); } }
2
private static short[] findStartInstructions(InstructionSequence seq) { int len = seq.length(); short[] inststates = new short[len]; Set<Integer> excSet = new HashSet<>(); for (ExceptionHandler handler : seq.getExceptionTable().getHandlers()) { excSet.add(handler.from_instr); excSet.add(h...
9
@Override public void update(ChiVertex<Integer, Float> vertex, GraphChiContext context) { if (vertex.numOutEdges() == 0) return; RealVector latent_factor = ProblemSetup.latent_factors_inmem.getRowAsVector(vertex.getId()); try { double squaredError = 0; for(int e=0; e...
3
private void scanFile(String relativePath, File f, List<LessFileStatus> lstAddedLfs) { if (!f.isFile()) throw new BugError("Bad file: " + f); if (!f.getName().endsWith(".less") || ignoredList.contains(f)) return; String lfsKey = getPathAndBaseName(f); if (mapLessFileStatusByBaseName.containsKey(lfsKey)) ...
5
@Override public void OnTrigger(Connection User, RoomItem Item, int Request, boolean UserHasRights) { if(User.Data.TeleporterId != 0) return; // esta usando un teleport Room Room = Item.Environment.RoomManager.GetRoom(Item.RoomId); if (Room != null) { int[] xy = Ite...
8
public Object retrieve(Comparable obj, BTNode aNode) { Comparable answer = null; if(obj.compareTo(aNode.getData()) == 0) answer = (Comparable)aNode.getData(); else if(obj.compareTo(aNode.getData())>0 && !aNode.isLeaf()) answer = (Comparable)retrieve(obj, aNode.getRight()); ...
5
public Console() { this.open = false; this.cheatsAllowed = false; this.commands = new ArrayList<Command>(); //Add all the default engine commands this.addEngineCommands(); }
0
public static boolean downloadFile(String libName, File libPath, String libURL, List<String> checksums) { try { System.out.println(libURL); URL url = new URL(libURL); URLConnection connection = url.openConnection(); connection.setConnectTimeout(5000); ...
4
private void getDijkstra(int x_, int y_) { PixelCost pixel; while (queue.compareTo(dijkstra[x_ + w * y_]) < 0 && (pixel = (PixelCost)queue.pop()) != null) { int x = pixel.x; int y = pixel.y; double cost = pixel.cost; if (dijkstra[x + w * y] <= cost) continue; dijkstra[x + w * y] = cost; f...
9
public static void main(String[] args) { lerArquivo(); Treno t = new Treno(1000); System.out.println("Lido todos os presentes"); AlgoritmoGenetico ag = new AlgoritmoGenetico(presentes, 10); ag.inicializaCromosssomo(presentes); for (int i = 0; i < 100; ...
9
@Override public boolean equals(Object obj) { boolean result = false; if (this == obj) { result = true; } else if(obj != null) { DataProviderStatus status = null; if(obj instanceof String) { try { status = DataProviderStatus.parse((String) obj); } catch(Exception e) { status = n...
9
public void readUntil() { try { // String line; while (in.readUnsignedByte() == 0) {// gets 1 byte starter int control; int size; byte[] data = null; control = in.readUnsignedShort();// gets 2 byte control size = in.readUnsignedShort();// gets 2 byte size of data(may // increase ...
8
private Object readArgument(char c) { switch (c) { case 'i' : return readInteger(); case 'h' : return readBigInteger(); case 'f' : return readFloat(); case 'd' : return readDouble(); case 's' : return readString(); case 'c' : return readChar(); case 'T' : return Boolea...
8
public ClientSocketHandler(Socket s, ClientListManager t_list) { csocket = s; list = t_list; }
0
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final MavenVersion other = (MavenVersion) obj; if ((this.majorVersion == null) ? (other.majorVersion != null) :...
9
public static void main(String[] args) { //wap to find square of 128 without using arithmetic operator and inbuilt functions int y=128; int z= y<<7; System.out.println(z); }
0
public void sortColors(int[] A) { int left = 0; int right = A.length - 1; int current = 0; while (current <= right) { if (A[current] == 0) { swap(A, current, left); left++; current++; } else if (A[curren...
3
public void onEnable() { persist = new Persistence(this); persist.saveDefault(); saveDefaultConfig(); // whew all the handlers and managers...mostly name = getConfig().getString("name"); longname = getConfig().getString("longname"); pHandler = new PlayerListener(this); chat = new ChatManager(this); c...
4
* @param item The item to add to the queue. * @throws FullQueueException if the queue is full */ public void enqueue(E item) throws FullQueueException { if (this.isFull()) throw new FullQueueException(); array.add(null); int index = array.size() - 1; // Reheapify. while (index > 1 && comp.compare(get...
3
public static void DoTurn(PlanetWars pw) { //Retrieve environment characteristics //Are there characteristics you want to use instead, or are there more you'd like to use? Try it out! int neutralPlanets = pw.NeutralPlanets().size(); int totalPlanetSize = 0; for (Planet p : pw.NeutralPlanets()) { total...
4
public static void main(String[] args) { long startTime = System.currentTimeMillis(); if(args.length == 0){ System.out.println("Please provide the location of the trace files (Workload_trace_filename FTA_Path)!"); System.exit(1); } try { ...
3
public JPanel getCommandBtnMenu() { if (!isInitialized()) { IllegalStateException e = new IllegalStateException("Call init first!"); throw e; } return this.comBtn; }
1
public static void printDataItems(StringBuilder sb, List<? extends DataItem> items) { for (DataItem item : items) { printTypeRef(sb, item.getType()); sb.append(" "); sb.append(item.getName()); if (item.isOptional()) { sb.append("?"); } sb.append(", "); } if (!ite...
4
public Class<? extends Annotation> annotationOf(Field field) { FieldStoreItem item = store.get(FieldStoreItem.createKey(field)); if(item != null) { return item.getAnnotation(); } return null; }
2
@Override public void infoSeePlayerOther(int number, boolean goalie, double distance, double direction, double distChange, double dirChange, double bodyFacingDirection, double headFacingDirection) { //Switch statement for custom operation of the Attackers switch (t...
7
public static DatabaseEnvironment createTestEnvironment( String environment ) { String[] temp = null; String[] dbEnvironment = null; if ( "H2".equalsIgnoreCase( environment ) ) { temp = h2Parameters; } else if ( "ORACLE".equalsIgnoreCase( environment ) ) { ...
4
@Override public void Initialize() { super.Initialize(); instantiator = new int[sudokuSize][sudokuSize]; for (int i = 0; i < sudokuSize; i++) { for (int j = 0; j < sudokuSize; j++) { instantiator[i][j] = -1; } } }
2
@Override public ValueType returnedType(ValueType... types) throws Exception { // Check the number of argument if (types.length == 1) { // if array if (types[0] == ValueType.NONE) { return ValueType.NONE; } // If numerical if (types[0].isNumeric()) { return ValueType.DOUBLE; } // if ...
4
private void modelsFromGrid(Grid grid, double[][] heightMap) { for (int r = 0; r < grid.rows; r++) { for (int c = 0; c < grid.cols; c++) { Tile t = grid.getTile(r,c); for (BaseEntity en: t.occupants) { Group candidate = LevelManager.loadFromXML(EntityData.getUniqueModel(en.name), "partTextur...
7
public int getDv() { return dv; }
0
public static String lTrimKeepTabs(final String value) { if (value == null) { return null; } String trimmed = value; int offset = 0; final int maxLength = value.length(); while (offset < maxLength && value.charAt(offset) == ' ') { offset++; ...
4
@Override public void run() { while ( !socket.isClosed() ) { try { Socket connection = socket.accept(); try { requestHandler( connection ); } finally { try { if ( !connection.isClosed() ) connection.close(); } catch ( IOException e ) { ...
6
public void moveParticle(Random rand) { int[] copyProjectWorkUnitIndexes = new int[projectWorkUnitIndexes.length]; System.arraycopy( projectWorkUnitIndexes, 0, copyProjectWorkUnitIndexes, 0, projectWorkUnitIndexes.length ); List<Integer> mutationIndexes = new ArrayList<Integer>...
4
private static boolean isGeometricallyConnectedAtOnlyOneEnd(Spring spring1, Spring spring2) { Point2D spring1Point1 = spring1.getLine().getP1(); Point2D spring1Point2 = spring1.getLine().getP2(); Point2D spring2Point1 = spring2.getLine().getP1(); Point2D spring2Point2 = spring2.getLine()...
7
private void handleHeaderField(Field field) throws HaltProcessingException, ParseException { // If we don't have a field, no point continuing. if (field == null) { return; } Header header = Header.findHeader(field.getName()); // If we didn't resolve the header, then...
8