text
stringlengths
14
410k
label
int32
0
9
void setFocusItem (CTableItem item, boolean redrawOldFocus) { if (item == focusItem) return; CTableItem oldFocusItem = focusItem; if (oldFocusItem != null) oldFocusItem.getAccessible(getAccessible(), 0).setFocus(ACC.CHILDID_SELF); focusItem = item; if (redrawOldFocus && oldFocusItem != null) { redrawItem (oldFoc...
5
public Segment(JSONObject json) throws JSONException { if (json.has(BOOKINGCLASS)) { this.setBookingclass(new Bookingclass(json.getJSONObject(BOOKINGCLASS))); } if (json.has(DURATION)) { this.setDuration(json.getString(DURATION)); } if (json.has(CARRIER)) { JSONObject carrierObject = json.getJSONObje...
8
private boolean modificaPregunta(HttpServletRequest request, HttpServletResponse response) { String enunciado = request.getParameter("enunciado"); String respuesta1 = request.getParameter("respuesta1"); String respuesta2 = request.getParameter("respuesta2"); String respuesta3 = request.g...
5
public void rollback () { // Remove incomplete message from the outbound pipe. Msg msg; if (outpipe!= null) { while ((msg = outpipe.unwrite ()) != null) { assert ((msg.flags () & Msg.more) > 0); //msg.close (); } } }
2
@Override public void replace(byte[] newFile, Object editor) { if (!isAGoodEditor(editor)) throw new RuntimeException("NOT CORRECT EDITOR " + name); if (comp == CompressionType.None) parentFile.replace(newFile, this); else if (comp == CompressionType.Lz) ...
4
public Object getFirstValue() { return getValue(0); }
0
private static SimpleType combineEnumeration(SimpleTypeUnion orig, List<SimpleType> transformedChildren) { if (transformedChildren.size() < 2) return null; SimpleType first = transformedChildren.get(0); if (!(first instanceof SimpleTypeRestriction)) return null; String builtinTypeName = ((Si...
8
public void restoreBorder() { int c; // count; // top edge c = 0; // count for (int cx = x; cx < x + w; cx++ ) { pixels[cx+(y*width)] = pixelsTop[c++]; } // bottom edge c = 0; for (int cx = x; cx < x + w; cx++ ) { pixels[cx+((y+h...
4
private void endShape(String to) { if (to.equals("slide")) slide.addEntity(polygon); else if (to.equals("quizslide")) quizSlide.addEntity(polygon); else if (to.equals("scrollpane")) scrollPane.addEntity(polygon); else if (to.equals("feedback")) quizSlide.addFeedback(polygon); }
4
public void run(String code) { final Tokenizer tokenizer = new Tokenizer(mapping); final List<Token> tokens = tokenizer.tokenize(code); final Map<Integer, Integer> loopIndex = buildLoopIndex(tokens); Stack<Integer> loopStack = new Stack<>(); int tokenIndex = 0; while (t...
8
@Test public void addNewShapeToBoard() { testee.getBoard().addNewShape(new Square()); List<CellGui> populateCells = new ArrayList<CellGui>(); List<CellGui> emptyCells = new ArrayList<CellGui>(); for (CellGui cell : testee.getCellGuis()) { if (cell.underlying().isPopulated...
4
@Test public void testUploadFile3() { File file = new File("e:/upyuntest/ssh_hd.zip"); FileInputStream fis = null; try { fis = new FileInputStream(file); client.uploadFile("/测试/ssh_hd.zip", fis, fis.available()); List<FileVo> list = client.listFile(); ...
4
public int compare(Destination d1, Destination d2) { if(d1.getDuration() == d2.getDuration()){ return 0; } else if(d2.getDuration() > d2.getDuration()) { return -1; } else if(d2.getDuration() < d2.getDuration()) { return 1; }else{ return 0; ...
3
public List<AlbumType> getAlbum() { if (album == null) { album = new ArrayList<AlbumType>(); } return this.album; }
1
public int numDefenders(int x, int y) { // num defenders takes in the coordinates of a piece and returns the // number of pieces on its team that are defending it. // numDefenders starts at -1 because the piece that will be moving to // that square doesnt count as a defende int a = 0; for (int i = 0; i <...
4
public Boolean rightFantasma(int n){ Query q2; switch(n){ case 0: q2 = new Query("rightBlinky"); return q2.hasSolution(); case 1: q2 = new Query("rightClyde"); return q2.hasSolution(); case 2: ...
4
public void updateEmployee(boolean equal) { Database db = dbconnect(); try { StringBuilder query = new StringBuilder (); query.append("UPDATE employee SET firstName = ?, lastName = ?, username = ?, "); if (!equal) { query.appe...
2
String findNearest(String previous, int index, int maxShapes) { if (previous == null || previous.length() <= index) { // Select or create new // Checks all exists Character c = this.findEmpty(maxShapes); //if no if (c != null) {...
9
public void run() { setupRobot(); while (true) { wheel.act(); radar.act(); gun.act(); targetSelector.act(); // paint range Util.paintCircle(this, getX(), getY(), 400, Color.gray); execute(); } }
1
public boolean replaceRecord(PatientRecord pr) { if (pr.type().equals("c")) { for (int i = 0; i < _controlPatients.size(); i++) { if (_controlPatients.get(i).pnumber() == pr.pnumber()) { if (_controlPatients.get(i).hasRecord(pr.timeline())) { ...
8
public Matrix4f mul(Matrix4f r) { Matrix4f res = new Matrix4f(); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { res.set(i, j, m[i][0] * r.get(0, j) + m[i][1] * r.get(1, j) + m[i][2] * r.get(2, j) + ...
2
private static void insertSemaphore(ControlFlowGraph graph, Set<BasicBlock> setTry, BasicBlock head, BasicBlock handler, int var, ...
9
public static void main(String[] args) { final String username = ""; final String password = ""; Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", "587"); ...
1
@Override public void unInvoke() { // undo the affects of this spell if(!(affected instanceof MOB)) return; final MOB mob=(MOB)affected; super.unInvoke(); if(canBeUninvoked()) { final Room centerR=mob.location(); if((centerR!=null)&&(!mob.amDead())) mob.location().show(mob,null,CMMsg.MSG_OK...
7
public PrioritizedTaskConsumer(PriorityBlockingQueue<Runnable> q) { this.q = q; }
0
private File getDirectory(String arg) { File dir = new File(arg); if (!dir.exists()) { System.err.println("Couldn't find dir " + arg); invalid = true; showHelp = true; } if (dir.isFile()) { System.err.println(arg + " is a file. It should be...
2
@Override public GameState[] allActions(GameState state, Card card, int time) { GameState[] states = new GameState[1]; states[0] = state; if(time == Time.DAY) { states = allPreacherDay(state, card).keySet().toArray(new GameState[0]); } else if(time == Time.DUSK) { PickTreasure temp = new PickTre...
3
public boolean verificarLetra(String letra) { int verificacion = 0; letrasUsadas = letrasUsadas + letra + " "; for(int i=1; i<palabraActual.length; i++){ if(palabraActual[i].equals(letra)){ palabraRespuesta.set(i-1,letra); palabraActual[i] = "_"; verificacion++; aciertos++; puntuacion += 10...
2
public ListNode swapPairs(ListNode head) { if(null == head || head.next == null) return head; this.h = new ListNode(0); this.h.next = head; ListNode source = h; while(source != null && source.next != null) { source = exchange(source); } return h.next; ...
4
public static int lengthOfLongestSubstring2(String s) { int len=s.length(); String[] str=new String[len]; for (int i = 0; i <len ; i++) { str[i]=s.substring(i,len); } int max=0; int temp=0; int half=(len+1)/2; String old_sub_str=null; ...
9
public void setGameState( SavedGameParser.SavedGameState gameState ) { generalPanel.reset(); if ( gameState != null ) { SavedGameParser.ShipState shipState = gameState.getPlayerShipState(); ShipBlueprint shipBlueprint = DataManager.get().getShip( shipState.getShipBlueprintId() ); if ( shipBlueprint == nul...
3
private static final void seleccionaMetodesAProvar() { int iterador_dopcio = 1; Method[] array_metodes_a_provar = driver_a_provar.getDeclaredMethods(); // Els fico a una LinkedList per poder treure els que no siguin publics metodes_a_provar = new LinkedList<Method>( Arrays.asList( array_metodes_a_provar ) );...
6
public ConfigFile(String fileName) { //set the config file filename this.fileName = fileName; //set data to empty string //data = ""; }
0
private static List<AgentController> createAgents(HashMap<String, ContainerController> containerList) { System.out.println("Launching agents..."); ContainerController c; String agentName; List<AgentController> agentList = new ArrayList<AgentController>(); c = containerList.get("container1"); agentName="Job...
8
public void update(Ship ship ,int delta) { if (state == States.MISSILE) { setX(getX() - delta * speed); anims[States.MISSILE.ordinal()].update(delta); check_collisions(ship); } else if (state == States.EXPLOSION) { if (anims[States.EXPLOSION.ordinal()].is_stopped()) { state = Sta...
3
protected static void setKit(PlayerInventory i) { File folder = Bukkit.getPluginManager().getPlugin("EventoThor").getDataFolder(); List<ItemStack> items = new ArrayList<ItemStack>(); File config = new File(folder, "config.yml"); ItemStack h = i.getHelmet(); ItemStack p = i.getChe...
6
public void analyzeLinks(List sourcesChildren, Vector simultaneousLinks, Namespace ns){ if (sourcesChildren.size() > 1){ Element source1 = (Element)sourcesChildren.get(0); String linkName1 = source1.getAttributeValue("linkName"); //Falls der Link eine transitionCondition besitzt if (source1.getChild("...
6
private void jButtonPesquisarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPesquisarActionPerformed Estoque estoque = new Estoque(); Material material = new Material(); DadoMaterial dadoMaterial = new DadoMaterial(); if (!jTextFieldTitulo.getText().isEmpty()) ...
9
public void paintStateCard(State state, boolean isActive, Rectangle bounds, Graphics g) { //draw rect, color depending on active state g.setColor(isActive? Color.GREEN : Color.LIGHT_GRAY); g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); g.setColor(isActive? new Color(0, 127, 0) : Color.BLACK); g....
5
private void initialise() { Properties prop = new Properties(); try { // load our properties file prop.load(new FileInputStream("config.properties")); // get the property values for pushover notifications if any _pushoverAppToken = prop.getProperty("PUSHOVER_APP_TOKEN"); _pushoverUserToken = pr...
8
public boolean hasNext() { if (empty) return false; // first check if current segment can be read for next Wig item if (wigItemIndex < wigItemList.size()) return true; // need to fetch next data block else if (leafItemIndex < leafHitList.size()) ret...
3
public void unbind() { //Make sure there was a previous texture before we try to unbind. if(prevTexture != -1 && isBound) { GL11.glBindTexture(GL11.GL_TEXTURE_2D, prevTexture); prevTexture = -1; isBound = false; } else if(prevTexture != -1 && !isBound) { System.err.print("RoyalFlush: Texture2D.unbin...
4
@Override public void getFromPane(Contestant c) throws InvalidFieldException { String oID = c.getID(); c.setID(tfContID.getText()); GameData g = GameData.getCurrentGame(); if (!g.checkID(c, Contestant.class)) { if (oID != null) c.setID(oID); throw new InvalidFieldException(Field.CONT_ID_DUP, "D...
2
public BEXElemCollector(final BEXNodeAdapter node, final String uri, final String name, final boolean self) throws NullPointerException { if (node == null) throw new NullPointerException("node = null"); if (uri == null) throw new NullPointerException("uri = null"); if (name == null) throw new NullPointerExcept...
6
private int minMove(Board prev, int depth, int alpha, int beta) { moves++; // fixme if(depth >= maxDepth) return prev.getScore(); // exceeded maximum depth int minScore = MAX_SCORE; Board b = new Board(prev); b.turn(); // min player's turn for(int j = 0; j < size; j++) { for(int i = 0...
9
private final short method669 (int i, long l, int i_200_, int i_201_, int i_202_, int i_203_, float f, int i_204_, float f_205_, Model class124, int i_206_) { try { if (i_203_ >= -49) anIntArray5519 = null; anInt5407++; int i_207_ = anIntArray5455[i_204_]; int i_208_ = anIntArray5455[i_204_ + ...
6
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final TabelProdBrand other = (TabelProdBrand) obj; if (!Objects.equals(this.brandId, other.brandId)) { ...
3
public boolean moovable(){ /* * judge to be a hit walls, plants and animals. */ if (getElapsedTime() % actionFrequency > 0){ return false; }else{ if ((getX() < 0 || MainPanel.WIDTH < getX() + getSize()) || (getY() < 0 || MainPanel.HEIGHT < getY() + getSize())){ hitWall(); return false; ...
5
public void dump_stack() { if (stack == null) { debug_message("# Stack dump requested, but stack is null"); return; } debug_message("============ Parse Stack Dump ============"); /* dump the stack */ for (int i=0; i<stack.size(); i++) { debug_message("Symbol: " + ((Symbol)stack...
2
public void processTemplateFile(File template) throws IOException { converter = Converter.getInstance(); if (!FileUtil.isReadableFile(template)) { System.err.println(String.format("%s: cannot be accessed", template.getName())); return; } String templateFileName ...
8
@Override public Event decode(RemoteEvent event) { InputStream is; try { is = new ByteArrayInputStream(event.getBody().getBytes()); ObjectInputStream i = new ObjectInputStream(is); return (Event) i.readObject(); } catch (IOException e) { e.pri...
2
@Override public void packetSent(PacketSentEvent e) { }
0
public double additionInfo() { double result = 0.0; double milkSize = 0.0; double milkGood = 0.0; double milkBad = 0.0; double lemonSize = 0.0; double lemonGood = 0.0; double lemonBad = 0.0; double noneSize = 0.0; double noneGood = 0.0; double noneBad = 0.0; for (Tea t : trainingSet) { if (t.ge...
7
public boolean containsValue(Object value) { if (value == null) return containsNullValue(); Entry[] tab = this.table; for (int i = 0; i < tab.length; i++) for (Entry e = tab[i]; e != null; e = e.next) if (value.equals(e.value)) return true; return false; }
4
public Game(int numberOfCards) { super("Memory game.Game"); setLayout(new BorderLayout()); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); setVisible(true); setSize(GAME_WIDTH, GAME_HEIGHT); currentPlayer = new Player(); loginDialog = new LoginDialog(this);...
8
public static boolean isSameLocalTime(Calendar cal1, Calendar cal2) { if (cal1 == null || cal2 == null) { throw new IllegalArgumentException("The date must not be null"); } return (cal1.get(Calendar.MILLISECOND) == cal2.get(Calendar.MILLISECOND) && cal1.get(Calendar.S...
9
public static void main(String[] args) { int[][] matrix = { {1,2,3,4,5,6,7,8}, {1,3,5,7,9,0,2,4}, {2,4,6,8,1,1,3,5}, {1,4,8,3,6,9,1,0} }; markLines(matrix); for (int[] rows: matrix) { for (int i: rows) { System...
2
private void tryAction(ControlAction ca) { switch (ca.action) { case SEND_ID: // send ID sendID(ca.getID()); break; case SEND_MESSAGE: // SEND MESSAGE sendChatMessage(ca.message); break; case START_SERVER:// start server startServer(); // TODO gui.setMeldung blubb was auch immer ...
5
public String toString(){ StringBuffer sb = new StringBuffer(); switch(errorType){ case ERROR_UNEXPECTED_CHAR: sb.append("Unexpected character (").append(unexpectedObject).append(") at position ").append(position).append("."); break; case ERROR_UNEXPECTED_TOKEN: sb.append("Unexpected token ").append...
3
public void runInstruction(String instruction){ Pattern writePattern = Pattern.compile("^write\\s([a-zA-Z]*)\\s([a-zA-Z]*)\\s(\\d+)", Pattern.CASE_INSENSITIVE); Pattern readPattern = Pattern.compile("^read\\s([a-zA-Z]*)\\s([a-zA-Z]*)$", Pattern.CASE_INSENSITIVE); Matcher matcher = writePattern.m...
2
protected String encodeSingleProperty(String propName, List<Object> propValues) throws InformationProblem { String fullPropStr = "`" + propName + "`" + ":"; if (propValues.size() > 1) { fullPropStr = fullPropStr + "["; } int propCount = 0; for (Object propVal : propValues) { if (propCount > ...
8
public void setHead(Items head) { this.head = head; }
0
private Boolean isAnXMLFile(final String filePath) { String[] splitted = filePath.split("\\."); if ((splitted.length > 1) && (splitted[1]).compareTo(XML_FILE_EXTENSION) == 0) { return true; } return false; }
2
public String toString() { try { return this.toJSON().toString(4); } catch (JSONException e) { return "Error"; } }
1
public XMLProcessor() { init(); reset(); }
0
private void nextQBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextQBtnActionPerformed //store response! setResponse(); //Show next question if (qIndex < quiz.questionList.size() - 1) { qIndex++; ShowQuestion(qIndex); } ...
1
private void loadHexFile() { JFileChooser chooser = new JFileChooser(); chooser.setFileFilter(new FileFilter() { @Override public String getDescription() { return lnf.getFileChooserHEXFilter(); } @Override public boolean accept(File f) { return f.isDirectory() || f.toString().endsWith(".hex")...
5
public void updatePanel(User user){ jlbMainInformation.setText("[" + user.getLevel() + "] " + (user.getNick() == null ? "???" : user.getNick())); jprgLevelProgress.setMaximum(user.getLevelUpExp()); jprgLevelProgress.setValue(user.getCurrentExp()); jlbRealMoney.setText("" + user.getrCoins()); jlbInGameMoney.se...
1
@Override public boolean offer(T t) { boolean result = false; if (firstItem == null) { firstItem = new PriorityItem(t); length++; result = true; } else { boolean searching = true; PriorityItem currentItem = firstItem; PriorityItem NewItem = new PriorityItem(t); if(NewItem.priority > firstIt...
5
void setData(){ id = 0; num = 0; BufferedReader br = null; try { //File file = new File((Catapult.class.getResource(dir+fileName[fid])).getFile()); URL data = (Catapult.class.getResource(dir + fileName[fid])); InputStream ins = data.openStream(); br = new BufferedReader(new InputStreamReader(ins));...
9
public void update() throws MaltChainedException { // Retrieve the address value final AddressValue arg1 = addressFunction1.getAddressValue(); final AddressValue arg2 = addressFunction2.getAddressValue(); if (arg1.getAddress() != null && arg1.getAddressClass() == org.maltparser.core.syntaxgraph.node.Dependency...
9
public static LinkedList<CONSTANTPoolElement> loadElements(DataInputStream mainInput, int count) throws IOException // Возвращает пул констант { LinkedList<CONSTANTPoolElement> pool = new LinkedList<CONSTANTPoolElement>(); pool.add(new CONSTANT_FICTIVE()); // Для сдвига нумерации с 0 до 1 ...
4
public void addChildToBack(Node child) { child.next = null; if (last == null) { first = last = child; // <netbeans> if (sourceEnd < child.sourceEnd) { if (sourceStart == sourceEnd && sourceStart == 0) { sourceStart = child.sourceSt...
7
public static void drawWrappedString(String string, float x, float y, float z, float scale, int wrapWidth) { texture.bind(); scale /= 1000; float currentXOffset = 0; float currentYOffset = 0; for(int i = 0; i < string.length(); i++) { char character = string.charAt(i); if(character == '\n') ...
4
public Main() throws Exception { super(); prop = new Properties(); try { configFile = this.getClass().getResourceAsStream("/config/config.properties"); prop.load(configFile); } catch (IOException e) { e.printStackTrace(); } if( prop.getProperty("uploadPath") =...
7
static LogWriter getLogWriter(String name) { LogWriter current = logWriters; while (current != null) { if (name.equalsIgnoreCase(current.name)) return current; current = current.next; } return null; }
2
public void playFox() throws InterruptedException{ try { in = new FileInputStream(fox); as = new AudioStream(in); ap.player.start(as); } catch(Exception e) { System.out.println("Got an IOException: " + e.getMessage()); e.printStackTrace(); }...
1
public static <T extends Comparable<? super T>> T max(T a, T b) { if (a == null) return b; if (b == null) return a; return a.compareTo(b) > 0 ? a : b; }
4
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } Vulnerability other = (Vulnerability) obj; if (n...
9
public E remove(Position<E> v) throws InvalidPositionException { BTPosition<E> vv = checkPosition(v); BTPosition<E> leftPos = vv.getLeft(); BTPosition<E> rightPos = vv.getRight(); if(leftPos != null && rightPos != null) { throw new InvalidPositionException("Cannot remove node with two children."); } ...
8
//@Command @RequiresPermission("libminecraft.test") private void test(CommandSender sender, CommandArgs args) { sender.sendMessage("Params:"); for (String param : args.getParams()) { sender.sendMessage(" - '" + param + "'"); } sender.sendMessage(" "); ...
2
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed try { setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); String serverID = "ALL"; if (serverID != null && serverMap.size() > 0 && jComboBox2.getSelectedIn...
5
private static Map<String, Double> parseSiteWeights(Map<String, SiteConfig> configs) { double sum = 0; ImmutableMap.Builder<String, Double> siteWeights = ImmutableMap.builder(); for (Map.Entry<String, SiteConfig> entry : configs.entrySet()) { sum += entry.getValue().getWeight(); siteWeights.put(...
2
public byte[] getEncoded() { try { byte[] versionBytes = new byte[]{(byte) majorVersion, (byte) releaseVersion}; BERTLVObject versionObject = new BERTLVObject(VERSION_LDS_TAG, versionBytes); byte[] tagListAsBytes = new byte[tagList.size()]; for (int i = 0; i < tagList.size(); i++) { int dgTag...
5
@CaseHandler(routine = AUTHENTICATED_USER, reqType = RequestType.GET) public String handleAuthenticated() { // If user is tried to authenticate if (this.userSession != null) { //ожидаем пока AccountService вернет данные if (this.userSession.isComplete()) { //п...
3
protected String getLabel(Instrument instrument) { String label = instrument.name(); label = label.substring(0, 2) + label.substring(3, 5); label = label + (tagCounter++); label = label.toLowerCase(); return label; }
0
public void update() { // // If there are bubbles awaiting display, see if you can move the existing // bubbles up to make room. final Bubble first = showing.getFirst() ; final boolean shouldMove = toShow.size() > 0, canMove = showing.size() == 0 || first.alpha <= 1, isSpace = sh...
8
@WebMethod(operationName = "ReadCustomer") public ArrayList<Customer> ReadCustomer(@WebParam(name = "cust_id") String cust_id) { Customer cust = new Customer(); ArrayList<Customer> custs = new ArrayList<Customer>(); ArrayList<QueryCriteria> qc = new ArrayList<QueryCriteria>(); ...
3
public void saveData(File file, QuestManager qm) throws IOException { if(!file.exists())file.mkdir(); File players = new File(file, "Players"); if(!players.exists())players.mkdir(); File quests = new File(file, "Quests"); if(!quests.exists())quests.mkdir(); for(Quest q:QuestManager.getInstance().getQuests(...
5
private void jButtonLogarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLogarActionPerformed try{ conn.executaSQL("select * from tb_perfil where login='"+ jTextFieldLogin.getText() +"'"); conn.rs.first(); if(conn.rs.getString("senha").equals(jPassw...
2
static final public void primaire() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case VRAI: case FAUX: case entier: case ident: valeur(); break; case 54: jj_consume_token(54); expression(); jj_consume_token(56); break; default: jj_...
6
public static void main(String[] args) { if (args.length == 0) { System.out .println("usage: java Sobel imagefile [iterations] [RLE]"); System.out.println(" imagefile is an image in TIFF format."); System.out .println(" interations is the number of blurring iterations" + " (default 0).");...
3
public static byte[] computeDigest(byte[] bytes) { byte[] src; if((bytes.length % 8) == 0) { src = new byte[bytes.length + 8]; System.arraycopy(bytes, 0, src, 0, bytes.length); } else { src = new byte[bytes.length + 8 - (bytes.length % 8) + 8]; System.arraycopy(bytes, 0, src, 0, bytes.length); } ...
4
public static String intListToString(int[] lst, String ...params) { String[] str_list = new String[lst.length]; for (int i=0; i<lst.length; i++) { str_list[i] = String.valueOf(lst[i]); } return listToString(str_list); }
1
static void validate(FilterCoder[] filters) throws UnsupportedOptionsException { for (int i = 0; i < filters.length - 1; ++i) if (!filters[i].nonLastOK()) throw new UnsupportedOptionsException( "Unsupported XZ filter chain"); if (!filters[...
6
public int getMouseY() { return mouseLocation.y; }
0
public void setChecked (boolean value) { checkWidget (); if ((parent.getStyle () & SWT.CHECK) == 0) return; if (checked == value) return; checked = value; if ((parent.getStyle () & SWT.VIRTUAL) != 0) cached = true; if (isInViewport ()) { if (parent.isListening (SWT.EraseItem) || parent.isListening (SWT.PaintIt...
6
@SuppressWarnings("deprecation") @Override public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if(label.equalsIgnoreCase("getblock")) { if(sender.isOp()) { if(args.length == 4) { World world = Bukkit.getServer().getWorld(args[0]); if(world == null) ...
5
@Override public String getHouseNumber() { return super.getHouseNumber(); }
0
public boolean equals(Object ob) { if (super.equals(ob)) { ChocolateForKid other = (ChocolateForKid) ob; if (figured != other.figured) return false; } return true; }
2