text
stringlengths
14
410k
label
int32
0
9
@Override public void onFinish() { }
0
public void moveLeft() { if (ducked == false) { speedX = -MOVESPEED; } }
1
@Override public boolean write(DummyObjectList dummyObjects, TileMap tileMap) { try { FileOutputStream f = new FileOutputStream(path); // byte 1: // number of objects f.write((byte)dummyObjects.size()); // byte 2 -> 2+(byte 1)*12 (12 bytes per object) // objects data /...
9
private static int getMax(String s, int start) { char color = 'x'; int cur; for (cur=start; cur<s.length(); cur++) { char bead = s.charAt(cur); if (bead != 'w') { if (color == 'x') color = s.charAt(cur); else if (bead != color) break; } } ...
8
public int parseCryptInfo(RdpPacket_Localised data) throws RdesktopException { // logger.debug("Secure.parseCryptInfo"); int encryption_level = 0, random_length = 0, RSA_info_length = 0; int tag = 0, length = 0; int next_tag = 0, end = 0; int rc4_key_size = 0; rc4_key_size = data.getLittleEndian32(); //...
9
public static double getSimilarity(String fileName1, String fileName2)throws IOException { double score=0; HashMap<String, Double> weightmap1 = new HashMap<String, Double>(); HashMap<String, Double> weightmap2 = new HashMap<String, Double>(); ArrayList<String> lines=new ArrayList(); try{ InputStream ip...
7
@Override public void deiconifyFrame(JInternalFrame f) { //System.out.println("deiconifyFrame"); super.deiconifyFrame(f); updateDesktopSize(false); }
0
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Persistence.getInstance(); MainWindow frame = new MainWindow(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
1
protected List<Integer> getAllPrimes() { boolean[] sito = new boolean[N]; mapa = new int[N]; for (int i = 1; i < sito.length; i++) { sito[i] = true; mapa[i] = 1; } ArrayList<Integer> list = new ArrayList<Integer>(); for (int i = 0; i < sito.length; i++) { if (sito[i]) { int i1 = i + 1; l...
8
public RegExFind(String args[]) { // Get input from the console String startingPath = ConsoleTools.getNonEmptyInput("Enter starting path: "); String query = ConsoleTools.getNonEmptyInput("Enter Regular Expression: "); String[] fileExtensions = ConsoleTools.getSeriesOfInputs("Enter file extension to match: ")...
2
public void setOn(boolean paramBoolean) { if (this.OnImage != null) { if ((paramBoolean) && (!this.On)) { this.On = true; super.setImage(this.OnImage); return; } if ((!paramBoolean) && (this.On)) { this.On = false; super.setImage(this.Nor...
5
public static ArrayList<Platform> getPlatformSector(Point p) { if(platformMap.containsKey(p)) { return platformMap.get(p); } else { return new ArrayList<Platform>(); } }
1
private boolean jj_2_2(int xla) { jj_la = xla; jj_lastpos = jj_scanpos = token; try { return !jj_3_2(); } catch(LookaheadSuccess ls) { return true; } finally { jj_save(1, xla); } }
1
@Override public String process(String content) throws ProcessorException { pipeline = new SimpleAuthenticationPipeline(); context = new UnAuthorizeContext(); pipeline.setBasic(new LogoutEntryValve()); pipeline.addValve(new DecoderValve()); pipeline.addValve(new ValidationValve()); pipeline.addValve(new Un...
3
public Karel() { this.setTitle("Karel"); initComponents(); InitUI(); Timer Gemupdater = new Timer(49, new ActionListener() { @Override public void actionPerformed(ActionEvent evt) { StepCount.setText("" + world.getStepCount()); ...
1
public void update() { System.out.println("Updating resultpanel"); hashedFiles = controller.getFiles(); ArrayList<HashedFile> trackTemp = new ArrayList<>(); for(HashedFile hashedFile : hashedFiles){ if(hashedFile.amITracked() && myLocation == 1){ trackTemp.ad...
7
public ListItem binarySearchArray(String targetItem) { System.out.println("Binary Search for " + targetItem + "."); ListItem currentItem = null; boolean isFound = false; int counter = 0; int low = 0; int high = items.length - 1; while ((!isFound) && (low <= high)) { int mid = Math.round((high + low) /...
5
public Simulateable findCollidingElement(Simulateable me) { for (PhysicsElement e: elements) if ( e instanceof Simulateable) { Simulateable b = (Simulateable) e; if ((b!=me) && b.collide(me)) return b; } return null; }
4
void createControlGroup () { /* * Create the "Control" group. This is the group on the * right half of each example tab. It consists of the * "Style" group, the "Other" group and the "Size" group. */ controlGroup = new Group (tabFolderPage, SWT.NONE); controlGroup.setLayout (new GridLayout (2, tr...
9
private void initialiseRandom() { int N = (int)(double)network.params.get("N"); double p = (double)network.params.get("p"); IndividualNetworkAgent[] vertices = new IndividualNetworkAgent[N]; for (int i = 0; i < N; i++) { IndividualNetworkAgent v = new Individ...
4
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Movie movie = (Movie) o; if (director != null ? !director.equals(movie.director) : movie.director != null) return false; if (name != null ? !na...
9
public List<Horario> pesquisaHorariosProfessor(String matriculaProf) throws ProfessorInexistenteException { List<Horario> horarioDoProfessor = new ArrayList<Horario>(); boolean flag = false; for (Professor prof : this.professores) { if (prof.getMatricula().equals(matriculaProf)) { horarioDoProfessor = p...
3
@Override public void actionPerformed(ActionEvent e) { //System.out.println("HomeAction"); OutlinerCellRendererImpl textArea = null; boolean isIconFocused = true; Component c = (Component) e.getSource(); if (c instanceof OutlineButton) { textArea = ((OutlineButton) c).renderer; } else if (c instance...
7
public void setCap(String cap) { this.cap = cap; }
0
public Location randomAdjacentLocation(Location location) { List<Location> adjacent = adjacentLocations(location); return adjacent.get(0); }
0
private void free() { if (pane != null) { coords = block.getCoords(); for (Point p : coords) { if (pane.insertAt().x != -1) { pane.cell(maxFall.y + p.y, location.x + p.x).Clear(); } pane.cell(location.y + p.y, location.x + p.x).Clear(); } } }
3
public void addRoll(int pins) { rolls.add(newRoll(pins)); if(rolls.size() == 2){ if(isSpare() || isStrike()) this.MAX_ROLL++; } }
3
private void jButtonAddUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAddUsuarioActionPerformed // TODO add your handling code here: if(jTextFieldCod.getText() == null || jTextFieldCod.getText().equals("")){ jLabelErro.setErrorText(WORDS.getString("ERRO-CODI...
7
public void unloadHUD(String n) { HUD hud = null; //start from the top and work our way down to "layer" the huds for (int i = (huds.size() - 1); i >= 0; i--) { hud = huds.get(i); if (hud.getName().equals(n)) { hud.shouldRender = false; hud...
2
public void setContract(String contract) { this.contract = contract; }
0
public static void main(String[] args) { HashMap<String, String> test_map = new HashMap<String, String>(); test_map.put("1", "test1"); test_map.put("2", "test2"); test_map.put("3", "test3"); test_map.put("4", "test4"); Set mapset = test_map.entrySet(); ...
4
public void testAddPeriodConverterSecurity() { if (OLD_JDK) { return; } try { Policy.setPolicy(RESTRICT); System.setSecurityManager(new SecurityManager()); ConverterManager.getInstance().addPeriodConverter(StringConverter.INSTANCE); fai...
2
public boolean isInfinite() { return Double.isInfinite(x) || Double.isInfinite(y) || Double.isInfinite(z); }
2
@Override public int compare(String t1, String t2) { int result; switch (type) { case SERVER: Server s1 = Preferences.getInstance().getServer(t1); Server s2 = Preferences.getInstance().getServer(t2); // If both are enabled, sort by name if (s1.isEnabled() && s2.isEnabled() || (!s1.isEnabled()...
9
@Override public boolean okMessage(final Environmental myHost, final CMMsg msg) { if(!(affected instanceof MOB)) return true; final MOB mob=(MOB)affected; // when this spell is on a MOBs Affected list, // it should consistantly prevent the mob // from trying to do ANYTHING except sleep if(msg.amISour...
8
public long get(int desde, int hasta) { pasos++; if(flag) propagar(setValue); if(desde==cotaDesde&&hasta==cotaHasta) return value; if(izq!=null&&izq.cotaDesde<=desde&&izq.cotaHasta>=hasta) return izq.get(desde, hasta); else if(der!=null&&der.cotaDesde<=desde&&der.cotaHasta>=hasta) retu...
9
public Creep findCreep() { if (locked && lastCreep != null && tower.getContext().getCreeps().contains(lastCreep) && lastCreep.isValidTarget()) { float distanceMin = tower.getRange() * tower.getRange(); float dX = (lastCreep.getX() + Grid.SIZE / 2) - (tower.getGrid().getLocation()[0] + Gr...
9
public static void addByChance(LivingEntity entity, MobAbilityConfig ma) { if (ma == null || entity instanceof Creeper == false) return; if (ma.chargedRate <= 1.0 && ma.chargedRate != 0.0) { // If the random number is lower than the angry chance we make shit angry if (ma.chargedRate == 1.0F || Random...
6
public Matrix inverse() { if(!isInvertable()) throw new IllegalArgumentException("Cannot invert matrix"); Matrix inv = new Matrix(numRows, numColumns); if(numRows == 1) { inv.set(0, 0, 1 / elements[0][0]); return inv; } float det = getDeterminant(); for(int i = 0; i < numRows; i++) { for(i...
5
@XmlTransient public Collection<Paciente> getPacienteCollection() { return pacienteCollection; }
0
public void execute() { receiver.turnOff(); }
0
public ClassAnalyzer getInnerClassAnalyzer(String name) { /** require name != null; **/ int innerCount = inners.length; for (int i = 0; i < innerCount; i++) { if (inners[i].name.equals(name)) return inners[i]; } return null; }
2
@Override public void update(final Observable o, final Object arg) { if (!SwingUtilities.isEventDispatchThread()) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { update(o, arg); } }); ...
3
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Address other = (Address) obj; if (ipAddress == null) { if (other.ipAddress != null) return false; } else if (!ipAddress.equals(other.ip...
7
@Override public boolean accept( File file ) { if ( file.exists() ) { if (file.isDirectory() ) return true; if ( !file.isFile() ) return false; } if ( exts == null ) return true; String filename = file.getName(); for (int i=0; i < exts.length; i++) { if ( filename.endsWith(exts[i]) ) return true; ...
6
private LynkStaticIntelliHints(JTextField textField, List<?> items, int comboBoxNum) { super(textField, comboBoxNum); this.items = items; textField.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { super.mouseClicked(e); if(SwingUtilities.isLeftMouseButton(e) ...
4
@Override public byte[] getData() { if (ptr != 0) { return null; } else { if (isConstant()) { if (length > getMaxSizeOf32bitArray()) return null; byte[] out = new byte[(int) length]; for (int i = 0; i < length; i++) { ...
4
public static void main(String args[]) throws Exception{ /* 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. * Fo...
6
@Override public void execute() { seq(new EflSelectPcMonOperationSegment(PC_MON_DEPOSIT)); seqSample(() -> { int numMons = curGb.readMemory(curGb.pokemon.numPartyMonAddress); for (int i = 0; i < numMons; i++) { int curMon = curGb.readMemory(curGb.pokemon.numPartyMonAddress + i + 1); ...
4
private String doExportString( String text ) { Matcher localMatcher = LOCALHOST_REGEX.matcher( text ); if ( localMatcher.matches() ) { return localMatcher.group( 1 ) + host_ + localMatcher.group( 3 ); } else if ( exportFiles_ && FILE_REGEX.matcher( text ).matches() ) { ...
9
public static Stack<MrUrl> buildJobs() { Stack<MrUrl> jobStack = new Stack<MrUrl>(); Logger log = null; try { Properties PropertyHandler = new Properties(); PropertyHandler.load(new FileInputStream(propertiesMain)); String logPath = PropertyHandler.getProperty("logPath"); PropertyConfigurator.config...
9
private void formMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseClicked if ( this.card != null && !this.card.isMatched() && this.card.isPlayable() ) { // Set the clicked card as selected. game.setSelected(game.selectCard(this.card)); // Check if th...
7
public int Connect() { System.out.println(Adapter_to_config.getInstance().GetActiveConnect()); if(ourInstance.log_reader != null && ourInstance.log_reader.IsConnected() && !conected_to.equals(Adapter_to_config.getInstance().GetActiveConnect())) Disconnect(); if(ourInstance.log_...
7
public String toString() { return " at " + this.index + " [character " + this.character + " line " + this.line + "]"; }
0
private int pickFruit() { // generate a prefix sum int[] prefixsum = new int[FRUIT_NAMES.length]; prefixsum[0] = currentFruits[0]; for (int i = 1; i != FRUIT_NAMES.length; ++i) prefixsum[i] = prefixsum[i-1] + currentFruits[i]; int currentFruitCount = prefixsum[FR...
3
public void disconnect() { for (ConnectionProcessor pipe : pipes) { pipe.disconnect(); } }
1
private void batch() { for (int r=0; r<RUNS; r++) { TIME = System.nanoTime(); createFht(); insert(); fht.prune(); System.out.println(fht.toString()); get(); System.gc(); TIME = mem(TIME); } }
1
@Override public void update(GameContainer gc, int DELTA) throws SlickException { Input input= gc.getInput(); level.Update(DELTA, x, y); if(input.isKeyDown(Input.KEY_LEFT) && x < 0) x+=4; if(input.isKeyDown(Input.KEY_RIGHT) && x > -768) x-=4; if(input.isKeyDown(Input.KEY_DOWN) && y > - 512) y-=4; if(inp...
8
public static void spawnZombieGiant (Location loc, int amount) { int i = 0; while (i < amount) { Giant giant = (Giant) loc.getWorld().spawnEntity(loc, EntityType.GIANT); giant.setHealth(100); giant.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 2147483647, 3...
1
@SuppressWarnings("unchecked") private Map<OrderPreviewField, String> getMarketPreviewOrderPaths(Document doc) throws UtilityException { Map<OrderPreviewField, String> toReturn = new HashMap<OrderPreviewField, String>(); for (OrderPreviewField f : OrderPreviewField.values()) { String path = f.getPath(); i...
6
public void addLast(Item item) { if (item == null) throw new NullPointerException(); if (isEmpty()) addFirst(item); else { Node<Item> node = new Node<Item>(); node.item = item; node.prev = last; last.next = node; ...
2
private boolean checkTextFields() { if(firstnameField.getText().length() == 0 || lastnameField.getText().length() == 0 || emailField.getText().length() == 0 || addressField.getText().length() == 0 || cityField.getText().length() == 0 || stateField.getText().length() == 0 || zipField.getText().length() == ...
9
private static void initBilinear(Composite inComposite, int heightHint) { final Composite toolbar = new Composite(inComposite, SWT.BORDER); final Composite imageContainer = new Composite(inComposite, SWT.BORDER); GridData toolbarGridData = new GridData(GridData.FILL_HORIZONTAL); toolbarGridData.grabExcessHoriz...
1
@Override public boolean invoke(MOB mob, List<String> commands, Physical givenTarget, boolean auto, int asLevel) { final Room target=mob.location(); if(target==null) return false; if(target.fetchEffect(ID())!=null) { mob.tell(L("This place is already under a blessing of mercy.")); return false; } ...
7
public void kornErntenUndVerteilen() { int anzahlFelder = zaehleGebaeude( 1 ); int anzahlKornkammern = zaehleGebaeude( 3 ); int maxLagerMengeInKornkammer = new Kornkammer().getMaxLagermenge(); int ernteMitDuenger = 0; int benoetigteKornkammern = 0; int ernte = anzahlFelder * new Feld().getKornProRunde(); ...
4
public void fixContainer(Role container){ if(this.container == null){ this.container = container; } else { System.out.println("erreur de logique 1"); } }
1
public List<List<SetCard>> findMatches() { //don't even bother if there aren't enough cards if (cards.size() < 3) { return null; } /* * iterate through all of the cards, getting all possible permutations * of SetCards... */ for (int i = 0; i < cards.size(); i++) { SetCard card1 = cards.ge...
6
public void save() { input = "@Input:"; if(chckbxIntegersOnly.isSelected()) input += "true"; else input += "false"; }
1
public static boolean loadMapsFromConfig(){ maps.clear(); String mapNames = PKSQLd.getUnparsedData(";ALLMAPNAMES;"); if(mapNames == null || mapNames.length() == 0) return false; String[] split = mapNames.split(";"); if(split.length == 0) return false; for(String s : split){ if(!s.equals("")){ String ...
7
private static boolean rightOrder(String one, String two) { for(int i = 0; i < Math.min(one.length(), two.length()); i++) { char onechar = one.charAt(i); char twochar = two.charAt(i); if(onechar > twochar) return false; else if(twochar > onechar) return true; } return (one.length() >...
4
public static ArrayList<BookCopy> searchBookByAuthor(String author){ try { if(conn == null || conn.isClosed()){ conn = DatabaseConnection.getConnection(); } } catch (SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } ArrayList<BookCopy> books...
5
public int readBits(int numBits) { if (numBits < 1 || numBits > 32) { throw new IllegalArgumentException(); } int result = 0; // First, read remainder from current byte if (bitOffset > 0) { int bitsLeft = 8 - bitOffset; int toRead = numBits < bitsLeft ? numBits : bitsLeft; ...
8
private boolean hasSufficientSimilarity(float coverage, PDFEntryHolder entryHolder, boolean isMalformed) { float minCoverage = 0.99f; // text does have difference min coverage depending on their length if(entryHolder instanceof PDFTextHolder) { // SIMPLE mode if(isSimpleComparison) { // broken ...
6
private int[][] initSubMatrix(final int[][] origin, int iStart, int iEnd, int jStart, int jEnd) { int[][] subMatrix = new int[iEnd - iStart][jEnd - jStart]; for (int i = iStart; i < iEnd; ++i) for (int j = jStart; j < jEnd; ++j) subMatrix[i-iStart][j-jStart] = origin[i][j]; ...
2
private void attackUpdate(Vector3f orientation, float distance){ double time = ((double)Time.getTime())/((double)Time.SECOND); double timeDecimals = time - (double)((int)time); if(timeDecimals < 0.25) { canAttack = true; material.setTexture(animations.get(4)); } ...
7
@Override protected void processElement(final XMLStreamReader reader, final Stat item) throws XMLStreamException { switch (reader.getNamespaceURI()) { case NAMESPACE: switch (reader.getLocalName()) { case "Geometrie": Utils....
9
public int assignExistingCardToNewPerson(CsvBean bean) { if (isEmpty(bean.dateStart) || isEmpty(bean.cardNr)) return 0; if (isEmpty(bean.dateEnd)) bean.dateEnd = "21001231"; try { cn.setAutoCommit(false); String sql; if (checkPersonExist(bean.personNr)) { sql = "Delete from hPerson WHERE ...
8
private void compute_pcm_samples3(Obuffer buffer) { final float[] vp = actual_v; //int inc = v_inc; final float[] tmpOut = _tmpOut; int dvp =0; // fat chance of having this loop unroll for( int i=0; i<32; i++) { final float[] dp = d16[i]; float pcm_sample; pcm_sample = (float)(((vp[3 + ...
1
private boolean doAction(final String action, final SceneObject obj) { if(Players.getLocal().getAnimation() == -1 && !Players.getLocal().isMoving()) { if(obj.getLocation().distanceTo() > 5) { Walking.walk(obj.getLocation()); } else { if(!obj.isOnScreen()) { Camera.turnTo(obj); } else { if(...
7
private void manageStringMessage(int senderID, StringMessage msg) throws NetworkMessageException { msg.setSender(senderID); //Message for everybody if (msg.getAcceptor() == 0) { for (int i = 0; i < clients.size(); i++) { if (clients.get(i).getID() == msg.getSender()) { continue; } clients.get(...
5
public void keyTyped(KeyEvent e) { if (e.getKeyChar() == 'f') { showFps = !showFps; } else { stageManager.keyTyped(e); } }
1
public static final boolean serviceAvalible() throws RestartLater, FatalError { if (Config.getDebug()) { Output.println("Teste Außendienst möglich", 2); } String page; do { try { page = Utils.getString("quests/start", "quests/wait"); break; } catch (LocationChangedException e) { Contro...
8
public int getPhysicalWidthDpi() { return physicalWidthDpi; }
0
public void spawnMonster(List<Monster> monster){ int numberMonster = 0; for(int i = 0; i < monster.size(); i++){ if(monster.get(i).getSpawner() == true){ numberMonster++; } } if(numberMonster < 5){ cdTick(5); } else{ setCooldown(0); } if(getCooldown() == 40 && numberMonster < 5){ int ...
9
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; StringNode other = (StringNode) obj; if (strVal == null) { if (other.strV...
6
public static void close() { flush(); try { out.close(); } catch (IOException e) { e.printStackTrace(); } }
1
@Override public void keyTyped(KeyEvent e) { if (e.getKeyChar() == '\n') { LoginFrame.this.btnLogin.doClick(); } }
1
public TimeCal(long interval) { this.interval = interval; }
0
@Override public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, int rendererIndex, PlotRenderingInfo info) { PlotOrientation orientation = plot.getOrientation(); RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(plot.getDomainAxisL...
5
public void func_73075_a() { field_73100_i++; if (field_73097_j) { int i = field_73100_i - field_73093_n; int k = field_73092_a.getBlockId(field_73098_k, field_73095_l, field_73096_m); if (k == 0) { field_73097_j = false; ...
7
void checkMatches(MTest[] tests, boolean oneWord) { for (int i = 0; i < tests.length; i++) { checkMatch(tests[i], oneWord); } }
1
public Annotation(Library l, Hashtable h) { super(l, h); // type of Annotation subtype = (Name) getObject(SUBTYPE_KEY); // no borders for the followING types, not really in the // spec for some reason, Acrobat doesn't render them. canDrawBorder = !(SUBTYPE_LINE.equals(s...
9
public short[] lock() { short[] newBoard = board.clone(); byte[][] curData = getData(); for (int y = 0; y < HEIGHT; y++) { for (int x = 0; x < WIDTH; x++) { if (curData[y][x] == 1) { int boardX = x + offsetX; int boardY = y + offsetY; if (boardY < 0 && boardX < 5)...
9
private static <T extends JComponent> T getComponentFromList(Class<T> clazz, List<T> list, String property, Object value) throws IllegalArgumentException { T retVal = null; Method method = null; try { method = clazz.getMethod("get" + property); } catch (NoSuchMethodException ex) { try ...
7
public double angle(Coordinate that) { double res = Math.acos(this.dot(that)/this.magnitude()/that.magnitude()); return this.cross(that) < 0? res: -res; }
1
public void drawScaledString(Bitmap image, int xPos, int yPos, int xo, int yo, int w, int h, int col, double scale) { w *= scale; h *= scale; for(int y = 0; y < h; y++){ int yPix = y+yPos; if(yPix < 0 || yPix >= height)continue; for(int x = 0; x < w; x++){ int xPix = x+xPos; if(xPix < 0 || xPix >...
7
public String getPhoneNumbers() { return phoneNumberText.getText(); }
0
private boolean equipUnitIfPossible(UnitLabel unitLabel, AbstractGoods goods) { Unit unit = unitLabel.getUnit(); if (unit.hasAbility(Ability.CAN_BE_EQUIPPED)) { for (EquipmentType equipment : freeColClient.getGame().getSpecification() .getEquipmentTypeList()) { ...
6
public void manualPositionUpdate(int row, int column, Grid grid){ // Every cell between the previous cell and the new one is presumed to be searched. if (cell.getRow() < row) for (int i = cell.getRow(); i<row; i++) grid.getCellAt(i, cell.getColumn()).setSearched(); else for (int i = cell.getRow(); i>row; ...
6
public void tankDrive(double leftValue, double rightValue){ _drive.tankDrive(-leftValue, -rightValue); }
0