text
stringlengths
14
410k
label
int32
0
9
public void run() { if (action == SAVE) { try { PrintStream out = new PrintStream(new GZIPOutputStream( new FileOutputStream(file)), false, Constantes.ASI_ENCODING); out.println("<?xml version=\"1.0\" encoding=\"" + Constantes.ASI_ENCODING...
8
public static synchronized Socket opensocket(int i) throws IOException { for (Signlink.socketreq = i; Signlink.socketreq != 0;) { try { Thread.sleep(50L); } catch (Exception exception) { } } if (Signlink.socket == null) { throw new IOException("could not open socket"); } else { return Signlin...
3
public BarServiceImpl(PersistenceService<BeerEntity> persistenceService) { this.persistenceService = persistenceService; }
0
@Override protected boolean puedoUsarEsteConstructor(Constructor<?> constructor) { Class<?>[] parameterTypes = constructor.getParameterTypes(); boolean hasSameParams = false; int i = 0; for (Class<?> paramClass : parameterTypes) { hasSameParams = hasSameParams || ( this.params[i].getClazz().equals(paramC...
6
public boolean searchMatrix(int[][] matrix, int target) { int rows = matrix.length; if (rows == 0) return false; int columns = matrix[0].length; if (columns == 0) return false; int row = -1; for (int i = ...
9
private void actualizarLabelIva(){ r_con.Connection(); ResultSet rs=r_con.Consultar("select * from tasas_iva where '"+fecha_factura.getText()+"' between tasa_desde and tasa_hasta"); try{ while(rs.next()){ if(rs.getString("tasa_tipo").equals("01")){ ...
5
private static void submit(String[] args) throws IOException, ClassNotFoundException, IllegalArgumentException, IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException { // TODO Auto-generated method stub //hadoop mapred submit jar /usr/foo.jar package.ClassName inputPath outputP...
8
private void updateRefreshTime(final String inBase64Key) { try { /** * Might this client no longer exist by the time this update is attempted? Sure, but that's okay. Aside from a * scary error message, no harm done. */ mLazyDBQueue.put(new Runnable() { public void run() { (new SQLStatemen...
4
public void setChildComparator(Comparator<Entry> childComparator) { if (childComparator == null) { throw new IllegalArgumentException("childComparator cannot be null"); } this.childComparator = childComparator; if (this.children != null) { //TODO...
4
private LowLevelTextObject getLowLevelTextObjectAt(LowLevelTextContainer parent, int x, int y, LowLevelTextType type) { if (parent == null) return null; //Iterate over all child text objects for (int i=0; i<parent.getTextObjectCount(); i++) { LowLevelTextObject obj = parent.getTextObject(i); //Is th...
7
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Token token = (Token) o; if (!begin.equals(token.begin)) return false; if (!end.equals(token.end)) return false; if (type != token.type...
7
public Student(final String number) { this.number = number; scores = new ArrayList<String>(); }
0
public double getPaybackMoney(){ return this.paybackMoney; }
0
public ItemStack transferStackInSlot(int par1) { ItemStack var2 = null; Slot var3 = (Slot)this.inventorySlots.get(par1); if (var3 != null && var3.getHasStack()) { ItemStack var4 = var3.getStack(); var2 = var4.copy(); if (par1 != 0) { ...
6
public static UndirectedGraph<Vertex> createGraph(int n, double p) { int rows = (int) Math.sqrt(n); int cols = (int) Math.ceil((double) n / rows); UndirectedGraph<Vertex> g = new UndirectedGraph<Vertex>(rows, cols); Random rands = new Random(); for(int i = 0; i < n; i++) { g.addVertex(new Vertex(i / cols, ...
7
@Override public void keyReleased(KeyEvent e) { if (e.getKeyChar() == 's') { plateau.resetVitesse(); } if (e.getKeyChar() == '2') { plateau.resetVitesse(); } }
2
private boolean findPictures(String address, boolean UserInput) { //open url, establish connection and read content try { URL url = new URL(address); URLConnection connection = url.openConnection(); String line; StringBuilder builder = new StringBuilder();...
5
public static Color getRiverColor (int wwTopLevel) { if (wwTopLevel == 2) return Color.decode("0xC0FFC0"); if (wwTopLevel == 3) return Color.decode("0x80FF80"); if (wwTopLevel == 4) return Color.decode("0xFFFF60"); if (wwTopLevel == 5) return Color.decode("0xFFA0A0"); if (wwTopLevel ==...
5
public static void optimizeSeparators(JPopupMenu menu) { boolean lastSeparator = true; for (int i = 0; i < menu.getComponentCount();) { if (menu.getComponent(i).isVisible() && menu.getComponent(i) instanceof JMenu) optimizeSeparators(((JMenu) menu.getComponent(i)).getPopupMenu()); boolean ...
7
public Deck() { this.cards = new ArrayList<Card>(); String[] familyNames = { CardFamily.kEspadasFamily, CardFamily.kBastosFamily, CardFamily.kCopasFamily, CardFamily.kOrosFa...
5
public void movePlayer(){ int direction = 0; if(left &&right){ direction=0; } else{ direction = mover.movePlayer(player, imageList, left, right, getBounds().width); } if (direction ==0 ){ playerMovePosX = false; playerMoveNegX = false; } if (direction <0){ playerMoveNegX ...
5
public void addToComponent(Canvas component) { if (freeColClient.getGame() == null || freeColClient.getGame().getMap() == null) { return; } // // Relocate GUI Objects // infoPanel.setLocation(component.getWidth() - infoPanel.getWidth(), c...
7
@Test public void testIterator2(){ Set<String> set = new HashSet<String>(); set.add("Mon "); set.add("Nom "); set.add("Est "); set.add("Gaylor "); for(Iterator<String> i = set.iterator(); i.hasNext();){ System.out.println(i.next()); } System.out.println("------------"); set.remove("Gaylor ")...
3
private void closeApplication() { int response = JOptionPane.showOptionDialog(myCP, "Exit AIMerger?", "Exit", JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, null, null, JOptionPane.YES_OPTION); switch (response) { default: // This should never happen throw new I...
3
public void destroy(String id) throws IllegalOrphanException, NonexistentEntityException, RollbackFailureException, Exception { EntityManager em = null; try { em = getEntityManager(); em.getTransaction().begin(); Perifericos perifericos; try { ...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; State other = (State) obj; if (name == null) { if (other.name != null) return false; } else if (!name.equals(other.name)) return fals...
6
public static String readFile(String fileName) { StringBuilder sb = new StringBuilder(); BufferedReader br = null; try { br = new BufferedReader(new FileReader(fileName)); String line; while (true) { line = br.readLine(); if (li...
4
private void searchUp(boolean doReplace, boolean showWarnings) { page.getHighlighter().removeAllHighlights(); Object[] entry = embeddedTextComponents.values().toArray(); int n = entry.length - 1; for (int i = n; i > 0; i--) { if (entry[i] instanceof JTextComponent) { if (findNext(doReplace, false, (JText...
9
public void SetNextbusStop(int nextBusStop) { //set the next bus stop to visit this.nextBusStop = nextBusStop; }
0
private void writeImport() { ImportGenerator imports = new ImportGenerator( filePath ); if ( hasSearch ) imports.addImport( "import java.util.List;" ); imports.addImport( "import " + table.getPackage() + ".domain." + table.getDomName() + ";" ); imports.addImport( "import " + ...
1
public BeanType build() { try { BeanType beanType = constructor.get(); setDelayedSetters(beanType); return beanType; } catch (Exception e) { // if (e instanceof InstantiationException || e instanceof IllegalAccessException) { // throw new Ru...
1
public Gui(ProBotGame game) { this.game = game; }
0
public boolean checkScore(int score){ if(list.length==0) return true; for(int i=0; i<list.length; i++) if(score>str2Int(list[i][0])) return true; return false; }
3
public Version getVersion(String userAgentString) { Pattern pattern = this.getVersionRegEx(); if (userAgentString != null && pattern != null) { Matcher matcher = pattern.matcher(userAgentString); if (matcher.find()) { String fullVersionString = matcher.group(1); String majorVersion = matcher.group(2);...
4
public void body() { // get the resource characteristics object to be used dynamics = (ResourceDynamics)super.resource_; // Gets the information on number of PEs and rating // of one PE assuming that the machines are homogeneous ratingPE = dynamics.getMIPSRatingOfOnePE(); ...
4
@Override public void run() { do { Collection<Car> carsCopy = new ArrayList<>(); carsCopy.addAll(allCars.values()); for (Car car : carsCopy) { if (!car.isSignificant()) { continue; } try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch blo...
8
private boolean tarkistaMusta(Sotilas sotilas, Kentta kentta, int xa, int ya, int xl, int yl) { if(ya == yl) { if(xl - xa == -1 && kentta.nappulaKoordinaatissa(xl, yl) == null) return true; if(avausSiirtoMusta(sotilas, kentta, xa, ya, xl, yl)) return true; } if( (ya - yl)...
8
public static void main(String[] args) { // Create a variable for the connection string. String connectionUrl = "jdbc:sqlserver://localhost:1433;" + "databaseName=AdventureWorks;integratedSecurity=true;"; // Declare the JDBC objects. Connection con = null; Statement stmt = null; ResultSet rs = null; ...
8
public String dodajOsobe() { oo.dodajOsobe(osoba); return "pokazOsobe"; //return null; }
0
private boolean checkVictoryConditions() { Specification spec = getSpecification(); if (singlePlayerGame && spec.getBoolean(GameOptions.VICTORY_DEFEAT_EUROPEANS) && !spec.getBoolean(GameOptions.VICTORY_DEFEAT_REF)) { int n = 0; for (Entry<Nation, NationSta...
7
public void setDiagnostico(String diagnostico) { this.diagnostico = diagnostico; }
0
public SystemdJournalTest () throws IOException { super(); File socketFile = new File("/run/systemd/journal/socket"); if ( !socketFile.exists() ) { return; } this.socketAddress = new AFUNIXSocketAddress(socketFile, 0, false, true); }
1
public boolean start() { // try to connect to the server try { keyPair = KeyPairFactory.generateKeyPair(); socket = new Socket(server, port); } // if it failed not much I can so catch (Exception ec) { display("Error connectiong to server:" + ec); return false; } String msg = "Connection accep...
5
private String getTypeAsString(String typeName, boolean isParam, String prefix, String suffix) { if (typeName.equals("boolean")) { if (isParam) { return "bool "; } else { return "bool"; } } else if (typeName.equals("String")) { if (isParam) { return "const std::st...
9
public static String getName(int bookId) { return bookNames[bookId-300]; }
0
private static void mergePhiVersions(SSAConstructorSparseEx ssa, DirectGraph graph) { // collect phi versions List<Set<VarVersionPair>> lst = new ArrayList<>(); for (Entry<VarVersionPair, FastSparseSet<Integer>> ent : ssa.getPhi().entrySet()) { Set<VarVersionPair> set = new HashSet<>(); set.add(...
8
@ Override public boolean writeToFile(final File file, T object, boolean replaceIfExists) { // Delete file if it exists if (file.exists () && replaceIfExists) { file.delete (); } else return false; FileOutputStream fOS = null; ObjectOutputStream oOS = null; try { // Write object to file using ...
7
public final void remove(Object gameComponent) { // Remove this object from our logical list if its a logical object if (gameComponent instanceof ILogical) { ILogical logicalObject = (ILogical) gameComponent; logicalQueue.remove(logicalObject); logicalObject.cleanUp(); } // Remove this object from the...
2
public static void main(String[] args) { try { AudioInputStream in = AudioSystem.getAudioInputStream(new File("Agogo.ogg")); if (in != null) { AudioFormat baseFormat = in.getFormat(); AudioFormat targetFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIG...
5
public Transition modifyTransition(Transition transition, TableModel model) { String input = (String) model.getValueAt(0, 0); String pop = (String) model.getValueAt(0, 1); String push = (String) model.getValueAt(0, 2); PDATransition t = (PDATransition) transition; try { return new PDATransition(t.getFromSt...
1
public boolean isStackEmpty(){ return operandStack.empty(); }
0
public static int[] path(int[] queue) { int esimene = queue[0]; int[] resultPath = new int[queue.length]; resultPath[0] = esimene; int i = 0; int j = 0; int u = 0; for (int k : queue) { if (k < esimene) { i++; } else if (k > esimene) { j++; } else { u++; } } int[] vaiksemad =...
9
@Override public void down() { System.out.println("Lighter Down!"); }
0
void syncFromTemplate(AbstractProject template, AbstractProject implementation) throws IOException { if( implementation == null || !(implementation instanceof BuildableItemWithBuildWrappers) || !(implementation instanceof Describable) || template == null || !(template instanceof BuildableItemWithB...
7
@Override public boolean okMessage(final Environmental myHost, final CMMsg msg) { if((beingSpoken(ID())) &&(affected instanceof MOB) &&(msg.amISource((MOB)affected)) &&(msg.sourceMessage()!=null) &&(msg.tool()==null) &&((msg.sourceMinor()==CMMsg.TYP_SPEAK) ||(msg.sourceMinor()==CMMsg.TYP_TELL) |...
8
void writeCrud() { write( TAB + "public int create( " ); write( table.getDomName() ); write( " value ) throws BoException {\n" ); writeMethodBodyCreateUpdate( "create" ); write( NEWLINE ); write( TAB + "public int update( " ); write( table.getDomName() ); ...
2
static final void handleMessage(String string, int type, int intArg, String string_2_, String subStr, String subStr2) { do { try { Class318_Sub1_Sub3_Sub5.handleMessage(string, string_2_, -1, subStr, null, type, intArg, subStr2); anInt6203++; friendListGamenames = null; } catch (Runt...
6
public static void main(String[] args) { try { ctx = new Renamer(); ctx.run(); } catch (Throwable e) { e.printStackTrace(); try { Thread.sleep(1000); } catch (InterruptedException e2) { } System.exit(1); } }
2
private void create(int[] init, Color bg, String fieldTitle) { setPreferredSize(new Dimension(GUIConstants.DEFAULT_FIELD_WIDTH, FIELDHEIGHT)); setBackground(bg); setBorder(BorderFactory.createTitledBorder(fieldTitle)); setLayout(new VerticalLayout(0, VerticalLayout.CENTER)); setT...
7
private List<Number> getKeysFromKeyHolder(KeyHolder keyHolder) { List<Map<String, Object>> generatedKeys = keyHolder.getKeyList(); int length = generatedKeys.size(); List<Number> keys = new ArrayList<Number>(); for (int i = 0; i < length; i++) { Iterator<Object> keyIterator = generatedKeys.get(i).values().i...
4
@RequestMapping(value = "/{imageId}", method = RequestMethod.GET) public String imagePage(@PathVariable String imageId, Model model, HttpServletRequest paramHttpServletRequest) { Image image = imageService.getImageMetadatabyId(imageId); if (image != null) { model.addAttribute("comment", image.getComment()); ...
1
public void movimientoMaquina(){ if(turno == FICHA_BLANCA){ if(jug1.getTipo()==Jugador.HUMANO){ //esperar click }else{ if(nivel1 == FACIL){ System.out.println("Entre a nivel facil"); int jug[] = buscarJugadaFacil(FIC...
9
@Override protected AbstractPage parseChild(Element element) throws ProblemsReadingDocumentException { try { String href = element.getAttributeValue("href"); AbstractPage c; String newURL = Paths.get(url.toURI()).resolveSibling(href.substring(1)).toUri().toString(); if (href.equals("/emancipa...
2
public List<String> similarities(String s, Iterable<String> words, int top) { if (s == null || words == null) { throw new IllegalArgumentException("Can not deal with null strings"); } if (top < 1) { throw new IllegalArgumentException("At least one suggestion should desired"); } PriorityQueue<CostSim...
9
public int broadcast(FrameQueue queue, boolean immediate, int... exceptSessionID) { int count = 0; LOOP: for (AuthFrameAdapter adapter : this.adapters) { for (int i : exceptSessionID) { if (adapter.getSessionID() == i) continue LOOP; } adapter.getOutgoing().addAll(queue); if (immediate) ada...
4
public void generateMoves(Piece[][] squares, ArrayList<Move> validMoves, ArrayList<Move> validCaptures) { // for each possible direction (NE, SE, SW, NW) int xPos; int yPos; for (int direction = 0; direction < xMoves.length; direction++) { xPos = xPosition + xMoves[direction]; yPos = yPosition + yMoves[d...
7
public static void main(String[] args) { if (args.length < 1) { usage(); return; } File dataFile = new File(args[0]); File directory = dataFile.getParentFile(); File trimmed = new File(directory, "data-trimmed.xml"); try { if (dataFile.isDirectory() == false) { FileInputStream fin = n...
6
public void draw(Rectangle2D box) { for(int row = 0; row < 3; row++) { for(int col = 0; col < 3; col++) { setTransform(row, col, box); SpriteList.get(frame).draw(transform); } } }
2
public static Map<Integer, Integer> getPrimeFactorisation(int number) { Map<Integer, Integer> primes = new HashMap<>(); if (number == 1) { primes.put(2, 0); } for (int prime = 2; number != 1; prime++) { int count = 0; while (number % prime == 0) { ...
4
static public String numberToString(Number n) throws JSONException { if (n == null) { throw new JSONException("Null pointer"); } testValidity(n); // Shave off trailing zeros and decimal point, if possible. String s = n.toString(); if (s.indexOf('.') > 0 ...
6
@Override public void update(Observable o, Object arg) { if (o instanceof ActivityDao || o instanceof TimeDao || o instanceof Dao) { loadCmbActivities(); } }
3
private void routeInput(InputPort inputPort) { Flit flit = inputPort.peekNextFlit(); if(flit != null) { int inputVC = flit.getVC(); int outputPort = -1; int outputVC = -1; // Work out the output port and vc number if(flit instanceof HeaderFlit) { int flitSrc = ((HeaderFlit)flit).getSrc(); ...
9
public static Object cast(String obj, Class clazz) { if (clazz.equals(String.class)) { return obj; } else if (clazz.equals(boolean.class)) { return Boolean.parseBoolean(obj.toString()); } else if (clazz.equals(Boolean.class)) { return (Boolean) Boolean.parseBoolean(obj.toString()); } else ...
5
private static String initialise(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage) { String eol = System.getProperty("line.separator", "\n"); StringBuffer expected = new StringBuffer(); int maxSize = 0; for (int i = 0; i < expe...
8
public Graph(Integer[][] matrix) { adjacencyList = new ArrayList<>(); int n = matrix.length; if (n != 0) { //create list for 0 vertex adjacencyList.add(new ArrayList<Integer>()); for (int i = 1; i < n; i++) { //create list for i-th vertex ...
4
public synchronized void keyReleased(KeyEvent e) { int keyCode = e.getKeyCode(); if (keyCode >= 0 && keyCode < KEY_COUNT) { currentKeys[keyCode] = false; } }
2
public static void dfs(boolean[][] nabomatrise, boolean[] visited, int node) { visited[node] = true; for (int i = 0; i < nabomatrise[node].length; i++) { if(nabomatrise[node][i] == true && !visited[i]) { dfs(nabomatrise, visited, i); } } }
3
public final void shutdown() { try { if(this.soundPlayer != null) { SoundPlayer var1 = this.soundPlayer; this.soundPlayer.running = false; } if(this.resourceThread != null) { ResourceDownloadThread var4 = this.resourceThread; this.resourceThread.running = true; } } catch (Exception var3...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; final EventLogRecord other = (EventLogRecord) obj; if (choice == null) { ...
9
public void draw() { for (int j = 0; j < height; j ++) { for (int i = 0; i < width; i ++) { Graphics.setColour(128, 128, 128); Graphics.rectangle(true, i * TILE_SIZE, j * TILE_SIZE, TILE_SIZE, TILE_SIZE); Graphics.setColour(64, 64, 64); Graphics.rectangle(false, i * TILE_SIZE, j * TILE_SIZE, TILE_S...
4
public static void m(){ System.out.println("ok"); }
0
final Object[] getNames(boolean getAll, Object[] extraEntries) { Object[] names = null; int count = 0; for (int id = 1; id <= maxId; ++id) { Object value = ensureId(id); if (getAll || (attributeArray[id - 1] & DONTENUM) == 0) { ...
9
@Override public void nextCard(){ CardImpl nextCard = null; int boxToCheck = this.curBox; boolean firstLoop = true; while (nextCard == null){ nextCard = this.model.getTopic().getRandomCard(boxToCheck); if (firstLoop){ boxToCheck = 0; firstLoop = false; } else { boxToCheck +=1; } if (...
3
public void fileNew(SimpleFrame frame) { frame.setAction(false); frame.setIsFileNameSetted(false); frame.setTitle("Text Editor"); JFileChooser chooser = new JFileChooser(); if(frame.getIsChanged()) { int selection = JOptionPane.showConfirmDialog(null,"Do you want save document?", "Warrning", JOptio...
5
public static synchronized void startProfiling() { subLCommandProfiling = true; if (subLCommandProfiler != null) { Logger.getLogger("org.opencyc.api.DefaultSubLWorker").log(Level.INFO, "SubL command profiling already started."); return; } Logger.getLogger("org.opencyc.api.DefaultSubLWor...
1
public void setArea(String area) { Area = area; }
0
public void increaseExp() { int e; if (level >= 1 && level <= 7) { e = Randomizer.nextInt(10) + 15; } else if (level >= 8 && level <= 15) { e = Randomizer.nextInt(13) + 15 / 2; } else if (level >= 16 && level <= 24) { e = Randomizer.nextInt(23) + 18 / 2; } else { e = Randomizer.nextInt(28) + 25...
6
private void controlarXeque() { /* se for a vez do branco, valida o cheque no rei preto */ if (jogo.getVez().equals(jogo.getBranco())) { /* verifica xeque */ if (validarXeque(jogo.getTabuleiro().getPosicaoReiPreto(), jogo .getTabuleiro().getPecasBrancas())) { ...
5
public void setCatched() { catched = true; }
0
protected void open(String fileName) { if (!Gpr.canRead(fileName)) throw new RuntimeException("Cannot read file '" + fileName + "'"); if (lineFileIterator != null) lineFileIterator.close(); lineFileIterator = new LineFileIterator(fileName); }
2
public void removeDocumentListener(DocumentListener l) { documentListeners.remove(l); }
0
@Override public boolean equals(Object obj) { boolean equals = false; if (obj instanceof AndroidDeviceClient) { AndroidDeviceClient deviceClient = (AndroidDeviceClient) obj; if (deviceClient.getModel().equals(model) && deviceClient.getSerialNumber().equals(serialNumber)) { equals = true; } } ...
3
public static void main(String[] args) { // Wissel de comment tekens om de andere klasse aan te roepen. //new OpdrachtVierTweeEen(); new OpdrachtVierTweeTwee(); }
0
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Occurrence other = (Occurrence) obj; if (word == null) { if (other.word != null) return false; } els...
6
@Override public LegalWarrant getLawResister(Area A, LegalBehavior behav, MOB mob) { final String[] lawResistInfo=basicCrimes().get("RESISTINGARREST"); if(lawResistInfo!=null) for(int i=0;i<warrants.size();i++) { final LegalWarrant W=warrants.elementAt(i); if((W.criminal()==mob) &&(W.crime().equals(l...
7
public int upgradeBonus(Object refers) { if (upgrades == null) return 0 ; int bonus = 0 ; for (int i = 0 ; i < upgrades.length ; i++) { final Upgrade u = upgrades[i] ; if (u == null || upgradeStates[i] != STATE_INTACT) continue ; if (u.refers == refers) bonus += u.bonus ; } return ...
5
public void removeAll() { for (int i = 0; i < data.length; i++) { data[i][0] = null; data[i][1] = null; data[i][2] = null; data[i][3] = null; } }
1
@Override public void mouseClicked(MouseEvent me) { if ( this.window.isLocked() ) return; Coords coords = this.getCoords(me.getPoint()); if ( coords == null ) return; Color color = com.github.abalone.elements.Board.getInstance().elementAt(coords); ...
7
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // TODO Auto-generated method stub Convertors ut = new Convertors(); String args[]=ut.SplitRequestPath(request); response.setContentType("text/html"); //We are expecting /Math/Math/mult/1/2 or...
9
public Vec3D getIntermediateWithXValue(Vec3D var1, double var2) { double var4 = var1.xCoord - this.xCoord; double var6 = var1.yCoord - this.yCoord; double var8 = var1.zCoord - this.zCoord; if(var4 * var4 < 1.0000000116860974E-7D) { return null; } else { double var10 = (va...
3