text
stringlengths
14
410k
label
int32
0
9
public static void main(String[] args) { long start_time = System.currentTimeMillis(); CountingWords cw = new CountingWords(); LoadTexts texts = new LoadTexts(); Iterator<String> iter = texts.iterator(); Map<String, Integer> stat = cw.getStatistic(iter.next()); Set<String> res_list = cw.getWords(stat); ...
1
public static void main(String[] argv) throws Exception { KeyFactory factory = KeyFactoryImpl.getInstance(); KeyPair dsa = factory.generateDSA(512); KeyPair rsa = factory.generateRSA(1024); SecureRandom r = new SecureRandom(); String key = "374A2BD6D85F5FAA0B6FE06D2F4D8C240DAD83EA345EC1922553F40FEDCC3071DB...
9
public boolean puraTiedosto() throws FileNotFoundException, IOException, ClassNotFoundException { FileInputStream fis = new FileInputStream(lahde); BufferedInputStream bis = new BufferedInputStream(fis); byte[] luetutKoodiTavut = new byte[purkuBlokkiKoko]; //FileInputStream fis2 = new FileInputStream(lahde....
7
public static boolean testMagic(String pathName) throws IOException { // Open the file BufferedReader reader = new BufferedReader(new FileReader(pathName)); boolean isMagic = true; int lastSum = -1; // For each line in the file ... String line; while ((line = reader.readLine()) != null) { // ... sum ...
4
public static Name getName(String noteName) { noteName = noteName.toUpperCase(); if (!(noteName.matches(NOTE_NAME_PATTERN))) { throw new IllegalArgumentException("Invalid note name!"); } switch (noteName) { case "C": return Name.C; c...
8
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 DailyAirtimeSettings(java.awt.Frame parent, boolean modal, boolean sun, boolean mon, boolean tue, boolean wed, boolean thu, boolean fri, boolean sat) { super(parent, modal); this.setIconImage(new ImageIcon(getClass().getResource( "ShowClockWindowLogo.png")).getImage())...
9
private void createDummyTravelTrips() { TravelTrip temp = new TravelTrip(); temp.setCountry("Pakistan"); temp.setCity("Lahore"); temp.setFromDate("19/06/2012"); temp.setToDate("27/06/2012"); temp.setBusiness(false); //travelTripDao.register(temp); trav...
0
public ComparatorTreeNode(SingleTreeNode oldNode, SingleTreeNode newNode){ this.oldNode = oldNode; this.newNode = newNode; if (oldNode != null && newNode != null) comparatorNodeTableModel = new ComparatorNodeTableModel(oldNode.getNodeTableModel(), newNode.getNodeTableModel()); ...
5
public static void isBoardLegal(String board, int dimension) { if (Objects.isNull(board) || board.isEmpty() || board.length() % dimension != 0) { throw new IllegalStateException("There is something wrong with your board"); } }
3
public Tileset(){ try { tileset = ImageIO.read(new File("F:\\DerWorkspace\\Zombie\\src\\Tileset.png")); } catch (IOException e) { e.printStackTrace(); } tilesetLaden(tileset); }
1
public int setTypeCompte(String typeCompte) { if(typeCompte.equalsIgnoreCase("solde") || typeCompte.equalsIgnoreCase("abonnement")){ this.typeCompte = typeCompte.toLowerCase(); return 0; } else{ return -1; } }
2
public Boolean getSuccess() { return success; }
0
public static int getMaxStones(int currRow, int currCol, int[][] inputArr) { int max = 0; try { int v1 = inputArr[currRow-1][currCol - 1]; max = v1 > max ? v1 : max; } catch (Exception e) { } try { int v1 = inputArr[currRow-1][currCol]; max = v1 > max ? v1 : max; } catch (Exception e) { } tr...
6
public boolean isValidSwap(int x, int y, SwapDirection swapDirection) { if(x < 0 || y < 0) return false; if(this.isPositionAvailable(x, y)) /* No square for swap here. */ return false; int newX = x; int newY = y; new...
9
protected void updateClassPath(File dir) throws Exception { URL[] urls = new URL[this.urlList.length]; for (int i = 0; i < this.urlList.length; i++) { urls[i] = new File(dir, getJarName(this.urlList[i])).toURI().toURL(); } if (classLoader == null) { classLoader = new URLClassLoader(url...
6
public AbstractInsnNode[] find(String regex) { try { Matcher regexMatcher = Pattern.compile(processRegex(regex), Pattern.MULTILINE).matcher(representation); if (regexMatcher.find()) return makeResult(regexMatcher.start(), regexMatcher.end()); } catch (PatternSyntaxException ex) { ex.printStackTrac...
2
private void createAdvancedContent(String serie, String[] albums, int id) throws IOException { Logger.getLogger(ReportGenerator.class.getName()).entering(ReportGenerator.class.getName(), "createAdvancedContent", new Object[] {serie, albums, id}); BufferedWriter comicFile; comicFile = new Buffere...
5
public Object clone() { //MERLIN MERLIN MERLIN MERLIN MERLIN// TuringMachine a = new TuringMachine(this.tapes()); a.setEnvironmentFrame(this.getEnvironmentFrame()); HashMap<TMState, TMState> map = new HashMap<TMState, TMState>(); // Old states to new states. for (Object o: states){ // ...
4
public boolean isLawful(){ switch(this){ case LAWFUL_GOOD: case LAWFUL_NEUTRAL: case LAWFUL_EVIL: return true; default: return false; } }
3
public static boolean isBinarySearchTree(TreeNode rootNode) { if(rootNode == null) { return true; } TreeNode leftSubTree = rootNode.getLeft(); TreeNode rightSubTree = rootNode.getRight(); boolean leftResult = isBinarySearchTree(leftSubTree); boolean rightRe...
8
public int[] getHashBuckets(String key) { return Filter.getHashBuckets(key, hashCount, buckets()); }
2
private final void reliableExecution(PlanObject plan) throws FatalError, RestartLater { try { plan.run(); } catch (JSONException e) { Output.println(plan.getName() + " hat einen unbehandelbaren Fehler erzeugt.", 0); } }
1
public static Map imageTagsFromFile(String fileName) { Map imagesTags = new HashMap(); /* Set path to file */ String filepath = System.getProperty("user.dir"); filepath = filepath + "/src/statsemdistance/res/" + fileName; BufferedReader br = null; String line; S...
7
public static void main(String[] args) { /* program to print the pattern 1 12 123 1234 */ for (int i=3;i<=10;i++) { for (int j=1;j<=i;j++) System.out.print(j); System.out.println(""); } }
2
public void setVelocityY(float dy) { this.dy = dy; }
0
public static void main(String[] args) { HashMap map = new HashMap(); map.put("a","zhangsan"); map.put("b","lisi"); map.put("c","wangwu"); map.put("a","zhaoliu"); System.out.println(map); String value = (String)map.get("b"); System.out.println(value); System.out.println("------------"); ...
0
public static Connection getConexion(){ try{ Class.forName("com.mysql.jdbc.Driver"); if(conex==null){ conex = DriverManager.getConnection(url,usuario,clave); }else{ conex = null; } }catch(ClassNotFoundException | SQLException e)...
2
static void w(Lethal l) { l.kill(); }
0
public int getPoints() { return points; }
0
public static void findNumbersWithThreeDifferentDigits(int[] sourceNumbers) { int digit1, digit2, digit3; print("Все трехзначные числа, в десятичной записи которых нет одинаковых цифр: "); for (int sourceNumber : sourceNumbers) { digit1 = sourceNumber / 100; digit2 = sour...
8
private static Field getLabelField(final String name) { try { Field f = Label.class.getDeclaredField(name); f.setAccessible(true); return f; } catch (NoSuchFieldException e) { return null; } }
1
private Record searchingFile(final String data, final String mark) throws IOException { BufferedReader br = new BufferedReader(new FileReader(file)); try { String line; while ((line = br.readLine()) != null) { String recformat =""; StringTokenizer ...
6
public String getColumnName(int column) { String name = "??"; switch (column) { case 0: name = "Source"; break; case 1: name = "Destination"; break; case 2: name = "FileModel name"; ...
5
@Override public void paintComponent (Graphics g) { champion.getIcon().paintIcon (this, g, 1, 1); if ((isHovered) && BORDER_HIGHLIGHTED != null) g.drawImage (BORDER_HIGHLIGHTED, 0, 0, null); else if (BORDER != null) g.drawImage (BORDER, 0, 0, null); }
3
DrawFile createImage(Entity entity, FileFormatOption option) throws IOException { final double dpiFactor = diagram.getDpiFactor(option); if (entity.getType() == EntityType.NOTE) { return createImageForNote(entity.getDisplay2(), entity.getSpecificBackColor(), option, entity.getParent()); } if (entity.getType(...
7
public String bottomUp() { Cluster c = new Cluster(); double minDistance, daux = 0; int c1 = 0, c2 = 0, numIteracionesQueFaltan = this.instances.numInstances(); int iteraciones = numIteracionesQueFaltan; System.out.println("Iteracion 1 de " + iteraciones + "."); ClusterList updatingClusterList = this.beg...
4
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setAttribute("landen", landService.findAll()); List<String> fouten = new ArrayList<>(); if(!(request.getParameterMap().isEmpty())){ Land land = null; try{ long landNr = Long.p...
9
public static String GetTimeStamp() { String TimeStamp = ""; Calendar now = Calendar.getInstance(); TimeStamp = FormatInt(Integer.toString(now.MONTH + 1)) + FormatInt(Integer.toString(now.DAY_OF_MONTH + 1)) + FormatInt(Integer.toString(now.HOUR_OF_DAY + 1)) + FormatInt(Integer.toString(now.MINUTE + 1)...
0
@Override public boolean offer(RenderItem item) { if (maxSize > 0 && renderList.size() >= maxSize) { return false; } renderList.addLast(item); return true; }
2
public void addRow(Object... row) { if (row.length != columnNames.size()) { throw new IllegalArgumentException("row data != column count : " + row.length + "!=" + columnNames.size()); } String[] s = new String[columnNames.size() + 1]; s[0] = Integer.toString(rows.size()); ...
2
private void updateMinMax(float[] magnitudes) { if(minimums == null || maximums == null) initializeMinMax(magnitudes); else if(minimums.length != magnitudes.length || maximums.length != magnitudes.length) initializeMinMax(magnitudes); else for(int i = 0; i < magnitudes.length; ++i) { if(-1*magnitudes...
7
protected String nextLine() throws Exception { if (inHandle==null) { throw new Exception("Read Object Be Closed."); } if (!lastIsLine) { if (!inHandle.hasNextLine()) { throw new Exception("Read Error."); } if (!inHandle.nextLine().isEmpty()) { throw new Exception("This mast be empty."...
5
public final boolean getBoolean(int index) throws JSONException { Object o = get(index); if (o.equals(Boolean.FALSE) || (o instanceof String && ((String)o).equalsIgnoreCase("false"))) { return false; } else if (o.equals(Boolean.TRUE) || ...
6
@Override public void focusLost(FocusEvent e) { textArea = (OutlinerCellRendererImpl) e.getComponent(); textArea.hasFocus = false; }
0
@Override public void setYearsExperience(int yearsExperience) { super.setYearsExperience(yearsExperience); }
0
protected boolean tryMove() { boolean collided = false; for(BB bb : level.collidables) { if(bb.intersects(this.x + this.xa, this.y, width, height)) { if(this.xa > 0) { this.x = bb.getX() - width; } else if(this.xa < 0) { this.x = bb.getX() + bb.getWidth(); ...
7
public void setRenderer(int row, int column) { if(column == 0) setHorizontalAlignment(SwingConstants.CENTER); else if (column == 1) { if(dataFormat==ASM_FORMAT) setHorizontalAlignment(SwingConstants.LEFT); else setHorizontalAlignment(SwingConstants.RIGHT); } ...
8
static public int convert(int id) { switch (id) { case CRIT_MELEE: case CRIT_RANGE: case CRIT_SPELL: return CRIT; case HASTE_MELEE: case HASTE_SPELL: case HASTE_RANGE: return HASTE; default: ...
6
public void nextTurn() { if (wait == 0) { ++turn; } }
1
public boolean isCheckmated(Color color) { for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { Piece piece = getPiece(j, i); if (piece instanceof King && piece.getColor() == color) { return piece.getLegalMoves(new Coordinate(j, i), this).isEmpty() && this.findThreatenedSquares(color).c...
5
@Override public void actionPerformed(ActionEvent e) { String command = e.getActionCommand(); boolean enabled = false; if (command.equals(MAKE_PASS)) { if (this.makePassItem.isSelected()) { enabled = true; } this.menu.setEnabled(enabled); this.logic.setMakePass(enabled); } else if (command.equa...
9
public void setIcfgFactory(BiDirICFGFactory factory) { this.cfgFactory = factory; }
0
private void processFlameDrawing() { drawingFlames = true; try { long l = System.currentTimeMillis(); int i = 0; int j = 20; while (aBoolean831) { flameCycle++; getFlameOffsets(); getFlameOffsets(); ...
5
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 void logCurrentState(final Instruction instr) { if (log.isLoggable(Level.INFO)) { log.info("Current instruction: " + instr + " (line " + instr.getSourceLine() + ")"); log.info("PC: " + programCounter + "\tFP: " + framePointer + "\tHP:" ...
6
public static void main(String args[]) { //Display a welcome message. System.out.println("Welcome to the Person Tester Application"); System.out.println(); //Create the Scanner object. Scanner sc = new Scanner(System.in); //Continue until choice isn't equal to "Y" ...
5
private boolean deleteEntry() { try { rs.deleteRow(); return true; } catch (SQLException ex) { System.out.println(ex.getMessage()); } return false; }
1
private Matrix4f getParentMatrix() { if (parent != null && parent.hasChanged()) { parentMatrix = parent.getTransformation(); } return parentMatrix; }
2
public void displayResults(boolean showMismatches,PrintStream out) throws IOException { PrintfFormat fmt = new PrintfFormat("%s %3d %7.2f | %30s | %30s\n"); for (int i=0; i<pairs.length; i++) { if (pairs[i]!=null) { String label = pairs[i].isCorrect() ? "+" : "-"; ...
7
public Operator(char operator) { switch(operator) { case 41: // ')' stackPrecedence = -1; inputPrecedence = 0; break; case 40: // '(' stackPrecedence = 0; inputPrecedence = 7; break; case 43: // '+' ...
7
@Override public void relocate(){ if(isRunning()){ super.relocate(); } }
1
public static void printControlFrame(ControlFrame self, PrintableStringWriter stream) { if (Surrogate.subtypeOfP(Stella_Object.safePrimaryType(self), Logic.SGT_LOGIC_PARALLEL_CONTROL_FRAME)) { { ParallelControlFrame self000 = ((ParallelControlFrame)(self)); stream.print("|PLL-CF|" + ControlFrame.debu...
7
private void countryClickedSetupMode(Country c) { switch (setupMode) { case 4: if (c.getUnit() == null) { this.addUnit(1, currentArmy(), c); currentArmy().setFreeUnits(currentArmy().getFreeUnits() - 1); incrementTurn(); numTerritoriesClaimed++; if (numTerritoriesClaimed == 42) { enterSet...
8
public Pays(){ lesDeps = DAO.getLesDeps(); lesSpe = DAO.getLesSpe(); Collection<Medecin> lesMeds = DAO.getLesMeds(); for(Medecin unMed : lesMeds){ for(Departement unDep : lesDeps){ if(unDep.getNum().equals(unMed.getDep())){ unDep.a...
5
@Override public void run() { byte[] buff = new byte[1024 * 8]; BufferedInputStream bufferedInputStream = null; BufferedOutputStream bufferedOutputStream = null; System.err.println("request SERVER <- CLIENT: time:" + System.nanoTime()); try { ...
9
public boolean isFirstNameChar(int token) { return (isLetter(token) || token == '_' || token == ':'); }
2
public static List<String> getProtectedLines( String fileName ) { List<String> protectedLines = new ArrayList<String>(); File exportFile = new File( fileName ); BufferedReader br = null; try { br = new BufferedReader( new FileReader( exportFile ) ); String line...
5
static public Pkcs12 from(final InputStream input, final char[] password) { notNull(input, "Input"); notNull(password, "Password"); try { final KeyStore p12 = KeyStore.getInstance(KEY_STORE_TYPE, new BouncyCastleProvider()); p12.load(input, password); for (Str...
7
@FXML private void noteListClicked(MouseEvent event) { NoteEntity n = noteList.getSelectionModel().getSelectedItem(); if (n != null) { //System.out.println("'click:" + n.getTitle()); } }
1
public int searchAux(int[] A, int target, int low, int high) { //divide into two parts int mid = (low + high) / 2; if (A[mid] == target) { return mid; } if (low > high) { return -1; } //find target in each part if (A[low] <= A[mid...
8
private static boolean scanAdjNodes(int scanX, int scanY) { // Variables that store coordinates of surrounding nodes int xLower = scanX - 1; int yLower = scanY - 1; int xHigher = scanX + 1; int yHigher = scanY + 1 ; if (x == 0) xLower = x; else if (x == 26) xHigher = x; // Doesn't allow co...
8
@Override public void save(YamlPermissionBase holder) throws DataSaveFailedException { holder.save(); try { yamlConfiguration.save(file); } catch (IOException ex) { throw new DataSaveFailedException(ex); } }
1
private void guiSetupByState() { b.removeAll(); switch(state) { case 0: { b.add(clazzString); b.add(enterButton); } case 1: { b.add(constructors); b.add(enterButton); } case 2: { b.add(paraScroll); b.add(enterButton); } } pack(); }
3
public void testGetField_int() { LocalDateTime test = new LocalDateTime(COPTIC_PARIS); assertSame(COPTIC_UTC.year(), test.getField(0)); assertSame(COPTIC_UTC.monthOfYear(), test.getField(1)); assertSame(COPTIC_UTC.dayOfMonth(), test.getField(2)); assertSame(COPTIC_UTC.millisOfDay...
2
public static void printmenucategoryConsole(String inCategory) { Connection c = null; Statement stmt = null; try { Class.forName("org.sqlite.JDBC"); c = DriverManager.getConnection("jdbc:sqlite:Restuarant.db"); c.setAutoCommit(false); System.out.println("Opened database successfully"); stmt = c.cre...
3
@Test public void testAccumulate() { CircleAccumulator test = new CircleAccumulator(new boolean[][]{ {false, false, true , true , true , false, false}, // Circle with {false, true , false, false, false, true , false}, // Radius 3 and {true , false, false, false, false, false, true }, // Center (3...
0
public boolean canShiftRight(){ if(loc1.getColumn() == board.getWidth()-1 || loc2.getColumn() == board.getWidth()-1|| loc3.getColumn() == board.getWidth()-1 || loc4.getColumn() == board.getWidth()-1){ return false; } //gets all of the rightmost locations of the piece ArrayList<Location> rightLocs = getRi...
6
protected void createCells(int[][] squares) { cells = new Cell[NCELLS][NCELLS]; for (int row = 0; row < NCELLS; row++) { for (int col = 0; col < NCELLS; col++) { cells[row][col] = new Cell(squares[row][col] == 1); add(cells[row][col]); } } }
2
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed if(rec != null && !rec.isVisible()){ lPane.remove(rec); rec = null; } if (rec == null) { rec = new FrmRecebimento(this); Validacoes v = ...
4
public List<Block> getBlocks() { List<Block> blockList = new ArrayList<Block>(); World cuboidWorld = this.getWorld(); for (int x = this.x1; x <= this.x2; x++) { for (int y = this.y1; y <= this.y2; y++) { for (int z = this.z1; z <= this.z2; z++) { blockList.add(cuboidWorld.getBlockAt(x, y, z)); } ...
3
@Override protected void connected(Socket socket) { sock = socket; try { sock.setTcpNoDelay(true); try { sock.setTrafficClass(0x10); } catch(SocketException e) { System.out.println("Connection Error! >> " + e.getMessage()); } ...
7
public static final String toId(Enum<?> value) { return value.name().toLowerCase().replace('_', ' '); }
1
public void testValidEdge3() { try { TreeNode tree = new TreeNode("tree", 2); TreeNode subtree = new TreeNode("spare-subtree"); tree.setBranch(new TreeNode[]{ subtree, new TreeNode("subtree")}); setTree(tree); TreeNode realTree = ((Question1)answer); ...
7
private ArrayList<Element> listeDesNoeudsFils(Element e, String name) { ArrayList< Element> listeDesNoeudFils= new ArrayList<Element>(); NodeList listeDeNoeudsXML= e.getChildNodes(); Node noeudXML= null; for (int i=0;i<listeDeNoeudsXML.getLength();i++) { noeudXML= listeDeNoeudsXML.item(i); if (noeudXM...
3
public void setLeft(PExp node) { if(this._left_ != null) { this._left_.parent(null); } if(node != null) { if(node.parent() != null) { node.parent().removeChild(node); } node.parent(this); } ...
3
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; UserPO other = (UserPO)obj; if (this.password == null) { if (other.password != null) return false; } else if (!this.password.equals(othe...
9
public static String dcnEncode(String string){ char[] replacements = null; int i = 0; int index = 0; replacements = new char[]{0,5,36,96,124,126}; for(i=0;i<replacements.length;i++){ while((index = string.indexOf(replacements[i])) >=0 ){ string = str...
2
public T find(Object id) { return getEntityManager().find(entityClass, id); }
0
public void refreshPanel() { if (Sessie.getIngelogdeGebruiker().heeftPermissie( PermissieHelper.permissies.get("BEHEERALLEVAKKEN"))) { List<Vak> vakken = Dao.getInstance().getVakken(); vakLijst.clear(); for (Vak vak : vakken) { vakLijst.addElement(vak); } } else if (Sessie.getIngelogdeGebruiker(...
4
private void updateFields(Object selectedItem) { for (Team t : c.getTeams()) { if (t.getName().equals(selectedItem.toString())) { avgscore.setText(String.valueOf(t.getAverageScore())); lowscore.setText(String.valueOf(t.getLowscore())); highscore.setText(String.valueOf(t.getHighestScore())); } } ...
5
public static void addRecent(File file) { String extension = PathUtils.getExtension(file.getName()); if (Platform.isMacintosh() || Platform.isWindows()) { extension = extension.toLowerCase(); } for (String allowed : FileType.getOpenableExtensions()) { if (allowed.equals(extension)) { if (file.canRead(...
6
private boolean logging_enabled() { synchronized (logging_enabled) { return logging_enabled; } }
0
public void buttonP() { if(bChina.contains(Main.mse)) { Main.soundPlayer.menuKlick(); Main.startGame(GameData.createData("China", ""), true); } else if(bMiddleAge.contains(Main.mse)) { Main.soundPlayer.menuKlick(); Main.startGame(GameData.createData("MiddleAge", ""), true); } else if(bModer...
3
protected void readVvAdd(float[][] a, BitInputStream source, int offset, int length) throws VorbisFormatException, IOException { int i,j;//k;//entry; int chptr=0; int ch=a.length; if(ch==0) { return; } int lim=(offset+length)/ch; for(i=offset/ch;i<lim;){ ...
4
public List<Token> postProcess(List<Token> tokens) { if (tokens.size() == 0) { return tokens; } List<Token> newTokens = new ArrayList<Token>(); for (int i = 0; i < tokens.size(); i++) { Token token = tokens.get(i); String compoundInfo = this.compoundTable.get(token.getMorpheme().toString()); if ...
8
private void save_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save_buttonActionPerformed for (int i = 0; i < rubric_table.getColumnCount(); i++) { try { GradeAccess.enterGrade(studentID, courseID, actName, rubric_table.getModel().getValueAt(i, 0).toString(), Float...
3
public void roll(int pins) { frames[currentIndex].addRoll(pins); if (frames[currentIndex].isFull()) { if (currentIndex != 0) { frames[currentIndex - 1].setNextFrame(frames[currentIndex]); } currentIndex++; } }
2
public static void hookdr_f77(int n, double x[], double f[], double g[], double a[][], double udiag[], double p[], double xpls[], double fpls[], Uncmin_methods minclass, double sx[], double stepmx[], ...
7
private static void dfs(int i, int j, int cost, int time) { if (!inBoard(i, j) || cost >= costs[i][j]) { return; } costs[i][j] = cost; if (board[i][j] == '*') { return; } if (time == k) { return; } dfs(i - 1, j, boar...
8