text
stringlengths
14
410k
label
int32
0
9
@Override public int hashCode() { int hash = 0; hash += (empNoEmpleado != null ? empNoEmpleado.hashCode() : 0); return hash; }
1
public void printArray(PrintableStringWriter stream) { { two_D_floatArray self = this; { int nofRows = self.nofRows; int nofColumns = self.nofColumns; int limit = 9; stream.print("|i|["); { int row = Stella.NULL_INTEGER; int iter000 = 0; int upperBound000 ...
6
protected boolean isAQualifyingScriptHost(final PhysicalAgent host) { if(host==null) return false; for(final Enumeration<Behavior> e = host.behaviors();e.hasMoreElements();) { final Behavior B=e.nextElement(); if((B!=null) && B.isSavable() && (B instanceof ScriptingEngine)) return true; } for(fi...
8
private FileToPNG() { }
0
private void run() throws IOException { // Make connection and initialize streams String serverAddress = "localhost"; Socket socket = new Socket(serverAddress, 6969); in = new BufferedReader(new InputStreamReader( socket.getInputStream())); out = new PrintWriter(sock...
1
public static ArrayList<Long> loadIsbns(String filename) { ArrayList<Long> toBeAdded = new ArrayList<Long>(); try { Scanner fileIn = new Scanner(new File(filename)); int lineNum = 1; while (fileIn.hasNextLine()) { String line = fileIn.nextLine(); Scanner lineIn = new Scanner(line); lineIn.us...
4
@Test public void testWriteNoteEntity() throws IOException { System.out.println("writeNoteEntity"); final String testTitle = "Test-Titel"; final String testBody = "Test-Body { [ : \\ ÄÖÜ \" "; int numFilesBefore = service.list().size(); NoteEntity n = new NoteEntity(testTi...
1
public static KeyValueMap yieldJustificationSubstitution(Justification justification, KeyValueMap substitution, Proposition argument) { { Proposition top = justification.proposition; Proposition proposition = ((argument == null) ? top : argument); { Stella_Object arg = null; Vector vector000 = ...
6
public byte[] getStringBytes() { // readBytes int off = offset; while (payload[offset++] != 10) { ; } byte buf[] = new byte[offset - off - 1]; System.arraycopy(payload, off, buf, off - off, offset - 1 - off); return buf; }
1
@Override public double getClippedValue(double input, double clip) { double result = 0; double flag = 0; if (input >= a && input <= b) { flag = (input - a) / (b - a); if (result < clip) { result = flag; } else { result = cli...
9
@Override public String toString() { StringBuilder sb = new StringBuilder("map("); sb.append(widthMap); sb.append(", "); sb.append(heightMap); sb.append(")\n"); for(int j=0; j<this.heightMap; ++j) { for(int i=0; i<this.widthMap; ++i) { if(this.map[i][j]==-1) { sb.append(" "); } else { ...
3
public void testPropertyCompareToDay() { YearMonthDay test1 = new YearMonthDay(TEST_TIME1); YearMonthDay test2 = new YearMonthDay(TEST_TIME2); assertEquals(true, test1.dayOfMonth().compareTo(test2) < 0); assertEquals(true, test2.dayOfMonth().compareTo(test1) > 0); assertEquals(tr...
2
private Point getComputersSelection() throws Connect4Exception { Point coordinate; try { coordinate = this.findWinningLocation(game.getCurrentPlayer()); if (coordinate != null) { return coordinate; } coordinate =...
4
public boolean InsertarTrabajo(Trabajo p){ if (p!=null) { cx.Insertar(p); return true; }else { return false; } }
1
private int AttemptSave(LinkedList<PlayerReinforcement> toSave) { boolean attemptRecovery = false; try { getDatabase().save(toSave); } catch (Exception ex) { attemptRecovery = true; Citadel.warning("DB mass save failure: " + ex.toString...
4
public void openStream() throws UnsupportedAudioFileException, IOException { if (this.isMpeg) { this.mpegInputStream = AudioSystem.getAudioInputStream(this.inStream); AudioFormat baseFormat = this.mpegInputStream.getFormat(); AudioFormat decodedFormat = new AudioFormat(AudioForm...
1
@Override public void pop() { if (amount > 0) { head = head.nextReturn(); amount--; } }
1
public void encodeFile(File file) { try { Color[] colorArray = fileToColorArray(file); int colorCounter = 0; for (int yScroll = 0; yScroll < currentImg.getHeight(); yScroll += this.heightMod) { for (int xScroll = 0; xScroll < currentImg.getWidth(); xScroll +...
5
@Override public void actionPerformed(ActionEvent action) { // TODO Auto-generated method stub if(action.getSource() == btnSend){ String message = txtBox.getText(); String showMessageForMe = "me: " + message + "\n"; message = message.replace("<", "&lt;"); message = message.replace(">", "&gt;"); Str...
7
@Override public void run() { try { if (debug) Gpr.debug("Running thread"); String page = getData(); parse(page); if (debug) Gpr.debug("Thread finished"); } catch (Throwable t) { if (debug) t.printStackTrace();; // Do nothing if it fails } }
4
private void botonGuardarPersonaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardarPersonaActionPerformed borrando = false; LinkedHashMap<Integer, Persona> personas = deTablaAMapPersonas(); //ArrayList<Persona> personas = deTablaAArray(); FicherosDatos fd = ne...
1
public Terminal.Color[] getColor(int number) { final Terminal.Color colors[] = { Terminal.Color.DEFAULT, Terminal.Color.DEFAULT }; switch (number) { case 2: colors[0] = Terminal.Color.BLACK; colors[1] = Terminal.Color.WHITE; break; case 4: colors[0] = Terminal.Color.WHITE; colors[1] = Terminal....
8
public boolean updateAnnotation(Annotation annotation) { // bail on null annotations if (annotation == null) { return false; } // make sure the page annotations have been initialized. if (!isInited) { try { initPageAnnotations(); ...
7
public static void loadSchemeTypes() { System.out.println("Loading Scheme Card Types..."); schemeCardTypes = new ArrayList<SchemeCardType>(); File file = new File("legendary" + File.separator + "definitions" + File.separator + "scheme_types.txt"); if (file.exists()) { try { BufferedReader br...
8
public int getLivingPlayerCount() { return livingplayers.size(); }
0
public void setName(String name) { this.name = name; }
0
@Override public void render() { super.render(); ArrayList<Long> selected = Application.get().getLogic().getGame().getSelectedWeapons(); if(selected.size() > 0) { if(selected.size() > 1) { int i = 0; for(long a : Application.get().getLogic...
4
private void bracketing(PhraseStructure phraseStructure, int start, int end, PhraseStructureNode parent) throws MaltChainedException { int bracketsdepth = 0; int startpos = start-1; for (int i = start, n = end; i < n; i++) { if (input.charAt(i) == STARTING_BRACKET // Start BracketProgLangReader && (i...
9
public Type getSpecializedType(Type type) { /* * tArray(x), iface -> tArray(x) iff tArray implements iface tArray(x), * tArray(y) -> tArray(x.intersection(y)) tArray(x), other -> tError */ if (type.getTypeCode() == TC_RANGE) { type = ((RangeType) type).getBottom(); } if (type == tNull) return thi...
7
public void broadcastAction(String sender, String message) { String action = PacketCreator.action(sender, name, message); for (Client c : getClients()) { c.send(action); } }
1
private void boxOperationsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_boxOperationsActionPerformed OperationType operationType = this.getOperation(); if (OperationType.COMPLEMENT.equals(operationType) || OperationType.EXPONENTIATION.equals(operationType) ...
8
public TrayIconBasic() { if (!SystemTray.isSupported()) { // Go directory to the task; return; } //Image icon = Toolkit.getDefaultToolkit().getImage(""); Image icon = createIcon("/Images/fb.png", "NSYNC File Sharing"); if (icon == null) { ...
3
public static void main(String[] args) { System.out.println(1 + 2 * 3); // 7 System.out.println((1 + 2) * 3); // 9 System.out.println(1 + (2 * 3)); // 7 }
0
public int getNbLigne() { return nbLigne; }
0
public void setId( int id ) { if( sp != null ) { sp.setId( id ); // embedded blip/pict } else if( pic != null ) { pic.setId( id ); // embedded image } else if( graphicFrame != null ) { graphicFrame.setId( id ); // chart } else if( cxnSp != null ) { cxnSp.setId( id ); } el...
5
protected static String[] getOldCommitUrns( File target ) throws IOException { if( !target.exists() ) return EMPTY_STRING_ARRAY; File commitListFile = commitListFile( target ); if( !commitListFile.exists() ) return EMPTY_STRING_ARRAY; ArrayList<String> urns = new ArrayList<String>(); BufferedReader r = new Bu...
5
public static void enterProfile() throws FileNotFoundException { System.out.print("\nEnter username: "); String u = sc.nextLine(); boolean newProfileMade = false; while (!checkUsername(u)) { System.out.println("Username not found..."); System.out.print("Try again(T)? or Create profile(C)? "); String te...
8
private boolean escribirCuenta (int i,CCuenta cuenta){ if(i>=0 && i<= nregs){ try{ archivo.seek(i*tam); //situamos el puntero en la posición que me indica i archivo.writeUTF(cuenta.getConcepto()); archivo.writeFloat(cuenta.getDebe()); ...
3
@Override public boolean onMouseDown(int mX, int mY, int button) { if(super.onMouseDown(mX, mY, button)) { return true; } if(input.onMouseDown(mX, mY, button) || display.onMouseDown(mX, mY, button)) { return true; } return false; ...
3
private void loadSize(){ FileInputStream in; File settings = new File("settings.properties"); if(settings.exists()){ try { in = new FileInputStream("settings.properties"); Properties prop = new Properties(); try { prop.load(in); in.close(); if (prop.containsKey("windowwidth") &...
5
@Override public void actionPerformed(ActionEvent e) { if (e.getSource() == jtfUserName || e.getSource() == jpfPassword || e.getSource() == ensure) { if (jtfUserName.getText().equals("") || jpfPassword.getPassword().length == 0) { JOptionPane.showMessageDialog(null, "请输入用户名密码!", "提示", JOptionPa...
7
public static void addListenerToItems(JMenu menu, ActionListener listener) { for (int i = 0; i < menu.getItemCount(); i++) { JMenuItem jmi = menu.getItem(i); if (jmi != null) jmi.addActionListener(listener); } }
2
private Object makeNodeArray(Field f, EBlock b, int maxBlocks, int depth, AsnNodeCallBack directCb) { ArrayList<EBlock> subBlocks = b.getSubBlocks(EBlock.MAX_BLOCKS, f.type.blockSize, f.type.paddingByte); ArrayList list = new ArrayList(subBlocks.size()); if (f.isReference()) { // Heterogeneous...
9
public WorkManager(WorkType workType) { pipeManager = new PipeManager<WorkEntry<? extends Work>>(); pipeManager.init(workType); this.workType = workType; List<Pipe<WorkEntry<? extends Work>>> pipes = pipeManager.getAvailablePipes(workType); m_threadPool = Executors.newFixedThr...
9
public static void main(String[] args){ int sum=0; for(int i=0;i<1e6;i++){ if(isDoublePalindrome(i)){ sum+=i; } } System.out.println(sum); }
2
public void loadSettings() { GameApplication.engineLogger.info("Loading game settings..."); GameDataFile data = new GameDataFile(settingsFile, true); if (data.isReady) { Map<String, String> content = data.getData(); isParticlesActivated = Boolean.valueOf(content.get("pa...
9
public List<MenuElement> getChildren() { if (this.children == null) { return new ArrayList<MenuElement>(); } return this.children; }
1
private void buttonSaveFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonSaveFileActionPerformed // Checks wether a file is selected or not if (!textFieldFilePath.getText().isEmpty()) { // Checks wether a task has been selected // -1 is the equivalent...
4
public static String decode(String[] dictionary, String message) { int count = 0; int index=0; StringBuilder result = new StringBuilder(); for(int i = 0; i < dictionary.length; i++){ Pattern p = Pattern.compile(dictionary[i]); Matcher m = p.matcher( message ); count = 0; while (m.find()) { count...
8
@Override public int compareTo(ValueIndexPair o) { return sum < o.sum ? -1 : (sum > o.sum ? 1 : 0); }
2
@Override public String getDesc() { return "Heal"; }
0
public void putAll(Map<? extends K, ? extends V> m) { synchronized (lock) { HashMap<K, V> _map = new HashMap<K, V>(map); _map.putAll(m); map = _map; } }
2
private static final boolean useItem(final MapleClient c, final int id) { if (InventoryConstants.isUse(id)) { // TO prevent caching of everything, waste of mem final MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance(); final byte consumeval = ii.isConsumeOnPickup...
6
private void botonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonActionPerformed // TODO add your handling code here: try { if (nombre.getText().length() != 0 && nombre.getText().length() < 31 && celular.getText().length() == 10 || nombre.getText().length() != 0 && n...
8
public void loadIndex(File f[]) { index = new Vector<Price>(); Parameter param = Parameter.getInstance(); String datefmt = param.getParam("index date format"); if (datefmt == null) { System.err.println("ERROR: Please specify date format"); System.exit(1); } String separator = param.getParam("in...
7
private Connection createConnection() throws Exception { //Logger.global.info("Creating a new database connection in the pool."); Class.forName(DRIVER_NAME).newInstance(); Connection conn = DriverManager.getConnection(DATABASE_URL, DATABASE_USERNAME, DATABASE_PASSWORD); conn.setAutoCommit(false); re...
0
public void convert(Montant valDep) { double val = valDep.getValeur(); Unite unit = valDep.getUnite(); Conversion conv = unit.getConv(); /* the methods will change depending on the type of conversion * first step of the conversion : ...
6
public Grid(HashMap<Character, Vehicle> vehicles, int gridSize, ArrayList<Grid> previousGrids) { this.vehicles = vehicles; this.gridSize = gridSize; this.previousGrids = previousGrids; }
0
protected boolean setPlayer2Score(int score) { boolean test = false; if (test || m_test) { System.out.println("Game :: setPlayer2Score() BEGIN"); } if (score < 0) { throw new IllegalArgumentException( "Game::AddPlayer2Score - Invalid integer(" + score + ") to a...
5
public void setBlockCheck(int x, int y, int z, byte b) { if (x < 0 || x >= 16) return; if (z < 0 || z >= 16) return; if (y < 0 || y >= MAP_HEIGHT) return; blocks[z + x * 16 + y * 256] = b; }
6
public static void main(String[] args) { first : { System.out.print("Hello, "); here : System.out.println("World!"); } }
0
@Override public double[] computeValue(char refBase, FastaWindow window, AlignmentColumn col) { int startPos = Math.max(window.indexOfLeftEdge(), col.getCurrentPosition()-WINDOW_SIZE); int endPos = Math.min(window.indexOfRightEdge(), col.getCurrentPosition()+WINDOW_SIZE); counts[0] = 0.0; counts[1] = 0.0; ...
6
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Competence other = (Competence) obj; if (!Objects.equals(this.m_nomComp, other.m_nomComp)) { ...
4
private void btnBackupNowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBackupNowActionPerformed String backupPath = Controller.getProperty(ApplicationProperties.BACKUP_PATH); if (backupPath == null || "".equals(backupPath)) { final int selected = sharedFileChooser.showDirectoryChooser(...
3
public void ApplyVulnerablePHPFile(DatabaseAccess JavaDBAccess, int VULNERABILITY_INJECTION_RESULTS_ID) { PreparedStatement ps = null; String diffFile = ""; String PHPFileText; //The text of the PHP file where we want to inject the vulnerabilities Connection conn = null; String ...
8
public synchronized void init() { if (inited) { return; } // shading dictionary if (shading == null) { shading = library.getDictionary(entries, "Shading"); } shadingType = library.getInt(shading, "ShadingType"); bBox = library.getRectang...
9
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; User other = (User) obj; if (password == null) { if (other.password != null) return false; } else if (!password.equals(other.password)) ...
9
private double search() { double l=mu-sigma*2; double r=mu+sigma*2; while (l+0.1<r){ double t1=(r-l)/3+l; double t2=2*(r-l)/3+l; if(f(t1) < f(t2)) l=t1; else r=t2; } return (l+r)/2; }
2
public static void updateRed() { for (int i = 0; i < rOrgs.size(); i++) { Organism g1 = rOrgs.get(i); g1.move(); for (int j = i + 1; j < rOrgs.size(); j++) { Organism g2 = rOrgs.get(j); if (g1.getDist(g2) < 40) { g1.closeTo(g2); } } } }
3
public void testWithFieldAdded3() { Period test = new Period(0, 0, 0, 0, 5, 6, 7, 8, PeriodType.time()); try { test.withFieldAdded(DurationFieldType.years(), 6); fail(); } catch (IllegalArgumentException ex) {} }
1
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
@Test public void testRestoreAndEquals() { Map<String, Object> phoneDescription = new HashMap<String, Object>(); phoneDescription.put("name", "3Gs"); phoneDescription.put("brandName", "Apple"); phoneDescription.put("screenSize", 5); phoneDescription.put("screenType", ScreenType.RESISTIV); phoneDescription....
8
@Override public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals(GO)) { go(false); } else if (e.getActionCommand().equals(GOTO_LINE_AND_COLUMN)) { go(true); } else if (e.getActionCommand().equals(CANCEL)) { cancel(); } }
3
public static BigDecimal getBigDecimal(final String title, final BigDecimal defaultValue) { BigDecimal opt = null; do { try { final String val = ConsoleMenu.getString(title + " (default:" + defaultValue + ")", null); if (val.length() == 0) { ...
4
public void draw(Graphics g){ int x = getX(); int y = getY(); int w = getW(); int h = getH(); int xPoints[] = {x, x + w/2, x+w, x + w/2}; int yPoints[] = {y, y + h, y, y - h}; int xPoints1[] = {x+4, x+4 + w/2, x+4+w, x+4 + w/2}; int yPoints1[] = {y+4, y+4 + h, y+4, y+4 - h}; if(w < 0){...
4
public void openBraceNoIndent() { if ((Options.outputStyle & Options.BRACE_AT_EOL) != 0) { print(currentLine.length() > 0 ? " {" : "{"); println(); } else { if (currentLine.length() > 0) println(); println("{"); } }
3
public void updateTotalMatches() { totalMatches.setText(new StringBuffer().append(TOTAL_MATCHES).append(model.size()).toString()); }
0
public void guiForMainHomePage() { frmMainHomePage.setSize(500, 400); frmMainHomePage.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmMainHomePage.setVisible(true); frmMainHomePage.add(pnlMainHomePage); frmMainHomePage.setLocationRelativeTo(null); frmMainHomePage.setTitle("XML Tool"); pnlMainHomePage...
4
public void loadObjectives() { String input ="savedata/"+idString+".objectives"; try { BufferedReader in = new BufferedReader(new FileReader(input)); String test=in.readLine(); for(int i=0; i<objectiveComplete.length; i++) { objectiveComplete[i]=Boolean.parseBoolean(in.readLine()); } } ...
2
public Tuote haeTuote(int id) throws DAOPoikkeus { Tuote tuote = new Tuote(); // avataan yhteys Connection yhteys = avaaYhteys(); try { // Haetaan tietokannasta ostoskoriin jokin tietty tuote String tuoteQuery = "select nimi, numero, hinta, tuoteID from Tuote where tuoteID=?"; PreparedStat...
2
public void storeForm(int userId, Form form) throws SerialError, ErrorStoringFormException { try { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oout = new ObjectOutputStream(baos); oout.writeObject(form); oout.close(); S...
4
public Integer interpret(Context ctx) { return left.interpret(ctx) - right.interpret(ctx); }
0
protected URL buildURL(String code, String[] variables) throws APIException, MalformedURLException { StringBuilder path = new StringBuilder(67); path.append("/?uid="); path.append(this.uid); path.append("&ssid="); path.append(this.ssid); path.append("&code="); path.append(code); path.append("&variable="...
6
private PDFObject readArray( ByteBuffer buf, int objNum, int objGen, PDFDecrypter decrypter) throws IOException { // we've already read the [. Now read objects until ] ArrayList<PDFObject> ary = new ArrayList<PDFObject>(); PDFObject obj; while((obj= readObject(buf, objNum, objGen, ...
3
public void setObservaciones(String observaciones) { this.observaciones = observaciones; }
0
public void setSuperflippedState() { String[] face = {"F", "R", "B", "L", "U", "D"}; Color [] color = new Color[6]; setSolvedState(); for(int i=0;i<6;i++) { color[i] = rubiks.getColor(face[i]+":1:1"); } for(int i=0;i<6;i++) { //Loop for each face rubiks.setColor(face[i]+":1:2", ...
2
public vector2d goToAim(vector2d aim) { vector2d value = new vector2d(0, 0); if (this.type != 0) {// zrobic opcje dla wszystkich return value; } double d; if (aim.getX() < 0 && aim.getY() < 0) { if (aims == null || indexAims == -1) { retur...
8
public HttpConnection(HttpListener listener, InetAddress remoteAddr, InputStream in, OutputStream out, Object connection) { if(log.isDebugEnabled())log.debug("new HttpConnection: "+connection); _l...
8
protected double meanOrMode(Instances instances, int[] instList, int attIndex) { double result, found; int[] counts; int numInst = instList.length; if (instances.attribute(attIndex).isNumeric()) { result = found = 0; for (int j = 0; j < numInst; j++) { Instance currInst = i...
7
public void insertResult(int index, FindReplaceResult result) { results.add(index, result); }
0
public XmlReader() { // (1)得到 DOM 解析器的工厂实例 DocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance(); try { // (2)从 DOM 工厂获得 DOM 解析器 DocumentBuilder domBuilder = domfac.newDocumentBuilder(); // (3)把要解析的 XML 文档转化为输入流,以便 DOM 解析器解析它 InputStream is = new FileInputStream(new File("doctest.xml"))...
8
private Integer pickBookingInList(List<Booking> list) { String input = null; while (true) { System.out.println("Select an item in the following list :"); Integer i = 1; for (Booking b : list) { System.out.println(" " + (i++) + " " ...
5
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Email other = (Email) obj; if (this.Id != other.Id) { return false; } if (!Ob...
4
public boolean checkGoal(State state) { for (int k = 0; k < state.getData().size(); k++) { for(int m = 0; m < state.getData().get(k).size(); m++) { if (state.getData().get(k).get(m).equals("$") || state.getData().get(k).get(m).equals(".")) { return false; } } } endTime = System.nanoTime(); ...
5
protected boolean isRegisterKeyword(String token) { if (token.endsWith(",") && token.length() != 0) { Object o = registersKeywords.get(token.substring(0, token.length()-1).toLowerCase()); return o == null ? false : true; } else { Object o = registersKeywords.get(token.toLowerCase()); return o == nu...
4
public void setCommandButtonFontsize(int fontsize) { if (fontsize <= 0) { this.buttonComFontSize = UIFontInits.COMBUTTON.getSize(); } else { this.buttonComFontSize = fontsize; } somethingChanged(); }
1
public boolean contains(String key) { return get(key) != null; }
0
@Override public List<Integer> save(List<Description> beans, GenericSaveQuery saveGeneric, Connection conn) throws DaoQueryException { try { return saveGeneric.sendQuery(SAVE_QUERY, conn, Params.fill(beans, (Description bean) -> { Object[] objects = new Object[1]; ...
1
public String getResponseString(String url) { String lineText; StringBuilder sb = new StringBuilder(); InputStreamReader isr = null; int failCount = 0; do { try { getMethod.setURI(new URI(url)); HttpResponse response = httpClient.execute(getMethod); int status = response.getStatusLine().getStat...
7
public Move chooseMove(State s) { // remember who we are so we can correctly evaluate states me = s.whoseTurn(); int myBoundary = -10000; // The rest of this function looks a lot like evalMove, except // that it doesn't just track the minimaxvalue, but also the // best move itself. // get a list of possi...
4