text
stringlengths
14
410k
label
int32
0
9
private static boolean isEmptyMap(Map<?, ?> map) { return null == map || map.isEmpty(); }
3
public static void main(String[] p_agrs) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrac...
4
public static int[][] lenghtLCS(int[] x, int[] y){ // TODO Auto-generated method stub int m = x.length; int n = y.length; int[][] c = new int[m + 1][n + 1];//保存LCS(Xi,Yj)的长度 for(int i=0; i<m; i++){ for(int j=0; j<n; j++){ if(x[i] == y[j]){ c[i + 1][j + 1] = c[i][j] + 1; }else{ if(c[i]...
6
public static void main(String[] args) { int no_of_students; int no_of_scores; Scanner scan = new Scanner(System.in); String[] firstInput = scan.nextLine().split(" "); no_of_students = Integer.parseInt(firstInput[0]); no_of_scores = Integer.parseInt(firstInput[1]); String[] names = new String[no_of_stu...
3
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 void runResultView(){ if(resultView == null){ resultView = new ResultView("Result"); } }
1
@Override public boolean allocateHostForVm(Vm vm) { double minMetric = -1; PowerHost ChoosenHost = null; //Log.formatLine("In ChooseHostForNewVm function..."); for (PowerHost host : this.<PowerHost> getHostList()) { ...
8
@Override public void serialize(Buffer buf) { buf.writeByte(teleporterType); buf.writeUShort(mapIds.length); for (int entry : mapIds) { buf.writeInt(entry); } buf.writeUShort(subAreaIds.length); for (short entry : subAreaIds) { buf.writeShort(e...
3
public String cambio(String palabra, int brin) { int al=0,r=0; String cambio = " ",cambio2="",cambio3="",cambio4=""; String acum = "", acum2 = "", acum3 = "", acum4 =""; for (int i = 0; i < palabra.length(); i++) { acum=""; acum += palabra.charAt(i); ...
8
private void findPrimes () { myPrimes = new ArrayList<Integer> (); // Create many threads Thread[] threads = new Thread[myNumThreads]; for (int i=0; i<myNumThreads; i++) { threads[i] = new Thread () { @Override public void run() { ...
7
public static boolean esPalindrom(String p1) { Stack s1 = new Stack(); String p2 = ""; // Emplanem l'Stack amb la caracters separats de la paraula p1 que ens // an entrat for (int i = 0; i < p1.length(); i++) { s1.push(p1.charAt(i)); } // Concatanem tot l'stack al reves while (!s1.empty()) { p2 ...
3
@Override public void changedMostRecentDocumentTouched(DocumentRepositoryEvent e) { OutlinerDocument doc = (OutlinerDocument) e.getDocument(); updateText(doc); if (doc != null) { calculateEnabledState(doc.getTree()); } }
1
public void scrollAndAnimateTo(int index) { if(loadingDone && (scrollerTimer == null || !scrollerTimer.isRunning())) { if (index < 0) index = 0; else if (index >= avatars.size()) index = avatars.size() - 1; DrawableAvatar drawable = ...
9
public ArrowMinimizeTool(AutomatonPane view, AutomatonDrawer drawer) { super(view, drawer); }
0
private boolean checkContent(VElement elem, T o, Method m) throws Exception { if (getAnnotation(m, Content.class) == null) { return false; } Class cls = m.getReturnType(); String value = null; if (!cls.isPrimitive() && !isWrapperType(cls) && cls != String.class) { // otherwise check if i...
9
@Override public void tick() { if (!paused) { if (isWon()) { if (gameOverListener != null) { gameOverListener.onGameOver(true); } } ticksSinceMove++; if (ticksSinceMove >= TICKS_PER_MOVE) { tetro...
4
public void run(){ try { while(true){ message = in.readLine(); out.println(type + message); } } catch (IOException e) { e.printStackTrace(); } }
2
private static String[][] parseStringArray(DynamicArray<String> matrix) { if (matrix.get(0).toLowerCase().equals("directed")) { matrix.delete(0); directed = true; } else { directed = false; } String[][] adjacencyMatrix = new String[matrix.getSize()][ma...
3
public void set_LabOrder(MsgParse mp) throws SQLException { String labOrderProvider = ""; try { // We need to get the provider ID from the initial Visit which was sent by bedboard PreparedStatement prepStmt = connection.prepareStatement( "select at...
2
private AbstractNode<V> optimize(MutableNode<V> n) { if (n.getChildren() == null) { // this is a leaf node return new LeafNode<V>(n.getPrefix(), n.getValue()); } if (n.getChildren().length == 1) { // this is a single-child node return new SingleChildNode<V>(n.getPrefix(), n.getValue...
7
public boolean[] getAction() { double[] inputs;// = new double[numberOfInputs]; byte[][] scene = levelScene; inputs = new double[numberOfInputs]; int which = 0; for (int i = -3; i < 4; i++) { for (int j = -3; j < 4; j++) { inputs[which++] = probe(i...
7
@EventHandler public void onQuit(PlayerQuitEvent e){ Player p = e.getPlayer(); if(Main.Main.players.contains(p)){ Main.Main.players.remove(p); Main.Main.playerTeam.remove(p); tm.removePlayer(p); for(Player broad : Main.Main.players){ broad.sendMessage(Main.Main.Prefix + "§c" + p + " §ahat das Spiel...
2
public static void main (String[] args) { //abre public main //declarações InputStream entrada = System.in; Scanner scanner = new Scanner (entrada); float a, b, valor, igual; String op; //fimDeclarações System.out.println("Siga as instruções a seguir para usar a calculad...
5
public final void modifyHunger(int toMod) { hunger+=toMod; if(hunger > 100) { hunger = 100; } else if(hunger < 0) { hunger = 0; //kinda screwed } }
2
@Test(expected=IOException.class) public void malformedUrl() throws IOException { TeleSignRequest tr; if(!timeouts && !isHttpsProtocolSet) tr = new TeleSignRequest(":junk/rest.telesign.com", "/v1/phoneid/standard/15551234567", "GET", "customer_id", ""); else if(timeouts && !isHttpsProtocolSet) tr = new Tel...
6
public Transition getExistingOutgoingTransition(Transition t) { Transition existing = null; State toState = t.getToState(); for(int i=0; i<outgoingTransitions.size() && existing == null; i++) { State from = outgoingTransitions.get(i).getFromState(); State to = outgoingTra...
4
public String getFileFilterExclude() { return this.fileFilterExclude; }
0
*/ public void addInstruction(final Instruction inst) { Assert.isTrue(!inst.isJsr() && !inst.isConditionalJump(), "Wrong addInstruction called with " + inst); this.next = null; addInst(inst); }
1
public void updateScores(Player winner) { Player[] players = new Player[Game.linkedGet().getNumPlayers()]; int[] playerScores = new int[players.length]; for (int i = 0; i < players.length; i++) { players[i] = Game.linkedGet().getPlayers().get(i); playerScores[i] = Game.d...
3
@Override public boolean equals(Object obj) { System.out.println("user equals"); if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; User other = (User) obj; if (id != other.id) return false; return true; }
4
public void testProperty() { LocalTime test = new LocalTime(10, 20, 30, 40); assertEquals(test.hourOfDay(), test.property(DateTimeFieldType.hourOfDay())); assertEquals(test.minuteOfHour(), test.property(DateTimeFieldType.minuteOfHour())); assertEquals(test.secondOfMinute(), test.property...
2
public Configuration build(String consumerKey, String consumerSecret, String accessToken, String accessSecret) { ConfigurationBuilder cb = new ConfigurationBuilder(); cb.setDebugEnabled(true) .setOAuthConsumerKey(consumerKey) .setOAuthConsumerSecret(consumerSecret) .setOAuthAccessToken(acces...
0
private boolean jj_3R_16() { Token xsp; xsp = jj_scanpos; if (jj_3_56()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3_57()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3_58()) { jj_scanpos = xsp; if (jj_3_59()) { jj_scanpos = xsp; if (jj_3_60()) { jj_scanpos = xsp; if ...
7
public void nextPermutation(int[] nums) { if (nums == null || nums.length == 0) { return; } int start = -1, end = -1; for (int i = nums.length - 2; i >= 0; i--) { if (nums[i] < nums[i + 1]) { start = i; break; } ...
8
private boolean boardEquals(Board board0, Board board1) { boolean result = true; for (int i = 0; i < board0.getFields().length; i++) { if (board0.getFields()[i] != board0.getFields()[i]) { result = false; } } for (int i = 0; i < board0.getFields().length; i++) { if (board0.coordinates[i] != board1....
4
public boolean exists(String w) { String word = w.toUpperCase(); for (int row = 0; row < board.length; row++) { for (int col = 0; col < board[0].length; col++) { if (word.charAt(0) == board[row][col]) if (check(word.substring(1), row, col)) return true; } } return false; }
4
public static int evalRPN(String[] tokens) { if(tokens==null||tokens.length==0){ return 0; } Stack<Integer> stack = new Stack<Integer>(); for(String token : tokens){ if(token.equals("+")){ stack.push(stack.pop() + stack.pop()); }else if(token.equals("-")){ int rOp...
7
public boolean jumpMayBeChanged() { return (catchBlock.jump != null || catchBlock.jumpMayBeChanged()); }
1
public static void write() throws Exception { if (patchNo == 0) { newFile = new File(ActionHandler.outputPatchSelectedFile.toString() + "/Patch.txt"); } else { newFile = new File(ActionHandler.outputPatchSelectedFile.toString() + "/Patch" + patchNo + ".txt"); } if (newFile.exists()) { Syst...
2
public void renderTiles(Screen screen, int xOffset, int yOffset, boolean isForeground) { if (xOffset < 0) xOffset = 0; if (xOffset > ((width << 4) - screen.width)) xOffset = ((width << 4) - screen.width); if (yOffset < 0) yOffset = 0; if (yOffset > ((h...
7
StarSystemEnum(String nameObject, double mass, float radius, SimpleVector initialPosition, SimpleVector velocity) { this.nameObject = nameObject; this.mass = mass; this.radius = radius; this.initialPosition = initialPosition; this.velocity ...
0
@Override public void processAI() { if (!move()) { goldAdded = true; setDead(true); GameConfig.player.spendLife(); } for (Effect effect : effects) if (modifier != null) modifier.inflict(effect, this); else effect.inflict(this); Iterator<Effect> it = effects.iterator(); while (it.hasNe...
5
public void map_place(int x, int y, int btn, int mod) { if (plob != null) { Gob pgob; synchronized (glob.oc) { pgob = glob.oc.getgob(playergob); } if (pgob == null) return; Coord mc = tilify(pgob.position()); Coord offset = new Coord(x, y).mul(tileSize); mc = mc.add(offset); wdgmsg("pl...
2
public void setCommandButtonFonttype(Fonttype fonttype) { if (fonttype == null) { this.buttonComFontType = UIFontInits.COMBUTTON.getType(); } else { this.buttonComFontType = fonttype; } somethingChanged(); }
1
static final void method226(int i, int i_0_, int i_1_, int i_2_, int i_3_) { for (int i_4_ = i_2_; Class348_Sub38.anInt7008 > i_4_; i_4_++) { Rectangle rectangle = Class180.aRectangleArray2371[i_4_]; if ((rectangle.width + rectangle.x ^ 0xffffffff) < (i ^ 0xffffffff) && (rectangle.x ^ 0xffffffff) > (i_...
5
@Override public Map<Noppa, Integer> poistaPienempiPari(Map<Noppa, Integer> kelpoisatnopat){ Map<Noppa, Integer> nopatlistalla = kelpoisatnopat; if(super.tyyppi==8) { Noppa poistettavanoppa = null; for(Noppa noppa : nopatlistalla.keySet()) { poistettavanoppa =...
4
public String getSessionQuery(int session, int subsession) { String query = new String(); //piece together the query string if (sessionExists(session, subsession)) { query = "&Session=" + ((session <= 20) ? "rd" : "jd") + session + "l" + subsession + "se"; } else { ...
2
private void improveCorners() { Point[] newP = new Point[corners.size()]; for (Corner c : corners) { if (c.border) { newP[c.index] = c.loc; } else { double x = 0; double y = 0; for (Center center : c.touches) { ...
4
public SMELTGui() { final JPanel center = new JPanel(); center.setLayout(new GridBagLayout()); final JPanel pinPanel = new JPanel(); pinPanel.setLayout(new BorderLayout()); pinPanel.setBorder(new TitledBorder("Bank pin")); frame = new JFrame("Tornado's AIO Smelter"); frame.setMinimumSize(new Dimensi...
2
public void saveInstrument(VInstrument toSave) { if (toSave.isBuilt()) { File target; JFileChooser fileChosser = new JFileChooser(); int option = fileChosser.showSaveDialog(VMainWindow.window); switch (option) { case JFileC...
4
public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { if (RECORD.equals(name)) { currentRecord = new QuickBaseRecord(); } else if (F.equals(name)) { currentField = new StringBuffer(); ...
6
void gameLoop(){ if(!running){ clientListen.running = false; return; } game.operateEntities(period); game.sendData(clientListen.streams, gameTime, clientListen.newPlayer); clientListen.newPlayer = -1; gameTime += period; }
1
private void saveAll() { try{ FileOutputStream saveFile = new FileOutputStream("save.sav"); ObjectOutputStream save = new ObjectOutputStream(saveFile); ArrayList<SaveVariables> lowerVar = new ArrayList<SaveVariables>(); ArrayList<SaveVariables> middleVar = new ArrayList<Sa...
5
@Override public void run() { int numberOfThreads = settings.getInt("threadCount"); threads = new TestCaseThread[numberOfThreads]; for(int i = 0; i <= numberOfThreads - 1; i++) { threads[i] = new TestCaseThread(i + 1, testCase.clone(), settings); ...
8
public void testApp() { assertTrue( true ); }
0
public void setCompanyId(long companyId) { this.companyId = companyId; }
0
protected Invocable getInvocable(String path, MapleClient c) { try { path = "scripts/" + path; engine = null; if (c != null) { engine = c.getScriptEngine(path); } if (engine == null) { File scriptFile = new File(path); if (!scriptFile.exists()) return null; engine = sem.getEngineBy...
5
public void render(int xp, int yp, Sprite sprite){ xp -= xOffset; yp -= yOffset; for(int y = 0; y < sprite.getHeight(); y++){ int ya = y + yp; //y absolute position is equal to y + yOffset int ys = y; for(int x = 0; x < sprite.getWidth(); x++){ int xa = x + xp; int xs = x; if(xa < -(sprite.g...
9
protected boolean canSinkFrom(Room fromHere, int direction) { if((fromHere==null)||(direction<0)||(direction>=Directions.NUM_DIRECTIONS())) return false; final Room toHere=fromHere.getRoomInDir(direction); if((toHere==null) ||(fromHere.getExitInDir(direction)==null) ||(!fromHere.getExitInDir(direction).i...
8
private boolean jj_3R_48() { if (jj_3R_60()) return true; if (jj_scan_token(COLONEQUAL)) return true; if (jj_3R_49()) return true; return false; }
3
@Override public void build(JSONObject json, FieldsMetadata metadata, IContext context) { // iterate on all images Iterator<?> iter = json.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<?,?> entry = (Map.Entry<?,?>)iter.next(); // set the FieldsMetaData metadata.addFieldAsImage(entry.getKey()...
6
public boolean currentlyTransmitting() { return active; }
0
public SpriteSheet getSheet(String name){ for(SpriteSheetTicket ticket : this.tickets){ if(ticket.getName().equals(name)){ return ticket.getSheet(); } } Debug.error("SpriteSheet not found '" + name + "'"); return null; }
2
public boolean isAutoscrollOnStatus() { if(frame == null) buildGUI(); return autoscrollStatus.isSelected(); }
1
public List<Candy> getCandy() { if (candy == null) { candy = new ArrayList<Candy>(); } return this.candy; }
1
public static void main(String[] args) { String[] words = {"one","two","three","four","five","six", "seven","eight","nine","ten","eleven","twelve", "thirteen","fourteen","fifteen","sixteen","seventeen", "eighteen", "nineteen", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty",...
8
public void setAlgorithm(String value) { this.algorithm = value; }
0
public Production[] getUnitProductions(Grammar grammar) { ArrayList list = new ArrayList(); ProductionChecker pc = new ProductionChecker(); Production[] productions = grammar.getProductions(); for (int k = 0; k < productions.length; k++) { if (ProductionChecker.isUnitProduction(productions[k])) { list.a...
2
@Override public void printState() { for (Field field : this) { if (field.getPosition() != 0 && field.getPosition() % sizeX == 0) { System.out.println(""); } if (field.getPosition() % sizeX == 0 && field instanceof FakeField) System.out.pri...
6
public boolean find(int key) { Tree234Node node = root; while (node != null) { if (key < node.key1) { node = node.child1; } else if (key == node.key1) { return true; } else if ((node.keys == 1) || (key < node.key2)) { node = node.child2; } else if (key == node.key...
9
public void setTileInstancePropertiesAt(int x, int y, Properties tip) { if (bounds.contains(x, y)) { Object key = new Point(x, y); tileInstanceProperties.put(key, tip); } }
1
public static boolean wawD(Instruction i1, Instruction i2) { // No dependency on branches or assembly directives if (i1.instructionType==3 || i1.instruction.equals("NOP")) return false; if (i2.instructionType==3 || i2.instruction.equals("NOP")) return false; // Ensure 1 writes after 2 writes if(!(i2.memor...
8
void countCustomers() { DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Date d = new Date(); String currentDate = df.format(d); String sql = "SELECT COUNT(*) FROM Sales WHERE SUBSTR(DateTime, 1, 10) = ?;"; String count = getPersist().read(String.class, sql, currentDate); ...
0
public void sort(double[] input) { int N = input.length; int h = 1; while (h < N / 3) { h = 3 * h + 1; // 1, 4, 13, 40, 121, 364, 1093, ... } while (h >= 1) { // h-sort the array. for (int i = h; i < N; i++) { // Insert a[i] among a[i-h], a[i-2*h], a[i-3*h]... . for (int j = i; j >= h && Helper.less...
5
public int Open(String Filename, int NewMode) { int retcode = DDC_SUCCESS; if ( fmode != RFM_UNKNOWN ) { retcode = Close(); } if ( retcode == DDC_SUCCESS ) { switch ( NewMode ) { case RFM_WRITE: try { file = new RandomAccessFile(Filena...
8
String defaultMethod() { return "default"; }
0
public static <T> boolean equalDeep(T[] a1, T[] a2) { if (a1 == null) return a2 == null; if (a2 == null) return false; if (a1.length != a2.length) return false; for (int i = 0; i < a1.length; ++i) if (!Calc.equal(a1[i], a2[i])) return false; return true; }
5
public List<Element> getAll() { return this.elements; }
0
private void interpretData(String msg) { Scanner scan = new Scanner(msg); String firstWord =scan.next(); switch (firstWord){ case nameKey: // Client is alerting server to the name of the character connecting. String name = scan.next(); // Msg of form: "N [na...
5
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } // if(obj instanceof Integer) { // if(image_id == (int) obj) { // System.out.println("TSCHAKKA"); // FIXME // return true; // } // } if (!(obj instanceof Image)) { return fa...
4
public void setAutostart(Boolean autostart) { this.autostart = autostart; }
0
public void commandLine() { while (true) { System.out.print(">"); command = userInput.nextLine().split(" "); //String junk = userInput.next(); if (command[0].equals("addplayer")) { comAddplayer(); } else if (command[0].equals("removeplayer")) { comRemoveplayer(); } else if (command[0].equals...
9
public DataStore setTeachers(ArrayList<Teacher> teachers) { //System.out.println("DataStore.setTeachers() : " + teachers); if (teachers != null) this.teachers = teachers; else this.teachers = new ArrayList<Teacher>(); return this; }
1
public int compareTo(Entry e) { int i = score - e.getScore(); if(i == 0) return name.compareTo(e.getName()); return i; }
1
public List<Statement> parse(Map<String, Integer> labels) { List<Statement> statements = new ArrayList<Statement>(); while (true) { // Ignore empty lines. while (match(TokenType.LINE)); if (match(TokenType.LABEL)) { ...
8
public void actionPerformed(ActionEvent ae) { if (mApply.equals(ae.getSource()) || mOK.equals(ae.getSource())) { for (int i = 0; i < mPanels.size(); i++) { E5OptionPanel panel = (E5OptionPanel) mPanels.elementAt(i); panel.savePreferences(mPreferences); } } if (mCancel.equals(ae.getSource()) ...
5
public Gopinich(int room) { super(new FireBall(), new MeteorStorm(), 65.0*room, 152.0*room, 103.00*room, 2.0*room, 50.0*room, 55.0*room, "Gopinich"); } // End DVC
0
public static void main(String[] args) { InputStreamReader stdin = new InputStreamReader(System.in); BufferedReader cache = new BufferedReader(stdin); System.out.println("Are you new? (yes|no)"); String choice = ""; try { choice = cache.readLine(); } catch (IO...
7
public void editMeal(long id, String newName, double newCalories, double newProtein) { SimpleMealDaoImpl dao = getSimpleMealDaoImpl(); Session session = null; Transaction tx = null; try { session = HbUtil.getSession(); //TRANSACTION START tx = session...
4
public void setElement(int itemId, double rating){ int beginIndex = 0, halfIndex = 0, endIndex = itemIds.length; if(itemIds.length > 0) { while(true){ halfIndex = (endIndex - beginIndex) / 2 + beginIndex; if(itemId < itemIds[halfIndex]){ if(endIndex - beginIndex <= 1){ break; } endIn...
6
public static void main(String[] args) { System.out.println("SERVERDb: main"); ServerDb serverDb; try { serverDb = new ServerDb(); args = new String[3]; args[0] = "jdbc:derby://localhost:1527/JHelpDB"; args[1] = "adm"; args[2] = "adm"; ...
4
@Override public AFUNIXSocket accept () throws IOException { if ( isClosed() ) throw new SocketException("Socket is closed"); AFUNIXSocket as = AFUNIXSocket.newInstance(); this.impl.accept(as.impl); as.addr = this.boundEndpoint; NativeUnixSocket.setConnected(as); ...
1
@Override public void keyPressed(KeyEvent e) { int key = e.getKeyCode(); System.out.println(KeyEvent.getKeyText(key)); if (key == KeyEvent.VK_LEFT) scrollX -= tileSize / 4; else if (key == KeyEvent.VK_RIGHT) scrollX += tileSize / 4; else if (key == KeyEvent.VK_UP) scrollY -= tileSize / 4; else ...
9
public boolean isBot(long userId) { long currTotal = totalEvents.incrementAndGet(); if (currTotal%10000 == 0) { System.out.println("Handled " + totalEvents + " requests and curent table entries " + allElements.size()); } UidBaseElement uide = allElements.get(userId)...
2
@Override protected void handleMessage(Object o) throws Throwable { if(state != null && state.isDisconnected()) { agentPrintMessage("Peer disconnected, ignoring message "+o.getClass().getCanonicalName()); return; } try { if(o instanceof UncheckedMnTreeMessage) { handleUncheckedMnTreeMessage(o); ...
9
private void btn_aceptarActionPerformed(java.awt.event.ActionEvent evt) { if (lab_modo.getText().equals("Alta")){ if (camposCompletos()){ if (validarFechas()){ ocultar_Msj(); insertar(); ...
9
public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new FileReader(args[0])); String s; while ((s = br.readLine()) != null) { String[] a = s.split(","); List<String> b = new LinkedList<String>(); List<String> c = new LinkedList<String>(); for (int ...
9
public char nextClean() throws JSONException { for (;;) { char c = this.next(); if (c == 0 || c > ' ') { return c; } } }
3
@Override public void aiStep() { this.inventory.tick(); this.oBob = this.bob; this.input.updateMovement(); super.aiStep(); float var1 = MathHelper.sqrt(this.xd * this.xd + this.zd * this.zd); float var2 = (float)Math.atan((double)(-this.yd * 0.2F)) * 15.0F; if(var1 > 0.1F) { var1 = 0.1F; } if(!t...
8
@Override public final void testAssumptionFailure(final Failure failure) { super.testAssumptionFailure(failure); selectListener(failure.getDescription()).testAssumptionFailure(failure); }
0