text
stringlengths
14
410k
label
int32
0
9
public static void _init(){ try{ String RunId = GlobalProperties.items.getRunID(); String wd = GlobalProperties.items.getWorkingDirectory(); String logFolder = wd+"log", TempFolder = wd+"temp", ResultFolder = wd+"result"; String RunIDinResult = ResultFolder + "/" + RunId + "/"; String LogFile = l...
7
void readZrlePackedRLEPixels(int tw, int th, int[] palette) throws Exception { int ptr = 0; int end = ptr + tw * th; while (ptr < end) { int index = zrleInStream.readU8(); int len = 1; if ((index & 128) != 0) { int b; do { b = zrleInStream.readU8(); len += b; } while (b == 255);...
7
public boolean move(int newX, int newY) { boolean movementOK = false; /*update graphics if wanted*/ if (useGraphics) { picture.updateGraphics(); } for (direction d : direction.values()) { if ((currentCell.locX() + d.xOffset()) == newX && (currentCell.l...
6
public static void initCommandLineParameters(String[] args, LinkedList<Option> specified_options, String[] manditory_args) { Options options = new Options(); if (specified_options != null) for (Option option : specified_options) options.addOption(option); Option option = null; OptionBuilder.with...
9
void mainDiagonal(){ int[][] arrDouble = new int[9][9]; //заполняем массив элементами for (int i = 0; i < 9; i++){ for (int j = 0; j < 9; j++){ arrDouble[i][j] = (int) (0 + Math.random() * 10); //System.out.println("Индекс : " + i + " значение :" + ar...
4
public static boolean isCglibProxyClass(Class<?> clazz) { return (clazz != null && isCglibProxyClassName(clazz.getName())); }
2
public void adjustBeginLineColumn(int newLine, int newCol) { int start = tokenBegin; int len; if (bufpos >= tokenBegin) { len = bufpos - tokenBegin + inBuf + 1; } else { len = bufsize - tokenBegin + bufpos + 1 + inBuf; } int i = 0, j = 0, k = 0; int nextColDiff = ...
6
public String getNewLine() throws Exception { String line = cp.getTextField().getText(); String[] split = line.split(" "); int caretPos = cp.getTextField().getCaretPosition(); String currWord = getWord(line, caretPos, split); ArrayList<String> names = cp.getUserlist().getList()....
9
public void setVisible(boolean visible) { if(frame == null) buildGUI(); frame.setVisible(visible); }
1
public Double get_count_sallary(int IdP) { Double result = 0.0; Double wage = 0.0; Double coeff = 0.0; wage = t_должностиID_to_t_должностиСтавка( t_должностьId_from_t_людиID(IdP) ); coeff = get_coeffs_expertizes(IdP); if(wage<0.01) return 0.0...
1
private final boolean cons(int i) { switch (b[i]) { case 'a': case 'e': case 'i': case 'o': case 'u': return false; case 'y': return (i==0) ? true : !cons(i-1); default: return true; } }
7
@Override public Character[] convertFromString(Class<? extends Character[]> cls, String str) { if (str.length() == 0) { return EMPTY; } Character[] array = new Character[str.length()]; int arrayPos = 0; int p...
7
public void setMoveUp(boolean a){ moveUp = a; }
0
private static void verifyProperty4(RBTreeNode<?, ?> node) { if (nodeColor(node) == Color.RED) { assert nodeColor(node.left) == Color.BLACK; assert nodeColor(node.right) == Color.BLACK; assert nodeColor(node.parent) == Color.BLACK; } if (node == null) return; ...
4
private int compareConnectors(Territory a, Territory b, Continent c) { Territory[] tA = a.getEnemyConnectors(this); Territory[] tB = b.getEnemyConnectors(this); int count = tA.length; main: for (Territory t : tA) { for (Territory tt : tB) { if (t == tt || !c.hasTerritory(t)) { count--; ...
4
public void keyReleased(KeyEvent keyEvent) { Iterator<PComponent> it = components.iterator(); while (it.hasNext()) { PComponent comp = it.next(); if (shouldHandleKeys) { if (comp.shouldHandleKeys()) comp.keyReleased(keyEvent); } ...
7
public void handleAddInputButton() { if(inputView.getInputList().getSelectedIndex() != -1){ String symbol = (String)inputView.getInputList().getSelectedValue(); if (symbol.equals("Blank Symbol")) symbol = "|_|"; int cell = inputView.getSlider().getValue(); ...
3
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof PostID)) return false; PostID other = (PostID) obj; if (author == null) { if (other.author != null) return false; } else if (!author.e...
7
private void handleKeyPressed(KeyEvent e) { switch(e.getKeyCode()) { case KeyEvent.VK_LEFT: case KeyEvent.VK_KP_LEFT: handleToStackAction(); break; case KeyEvent.VK_RIGHT: case KeyEvent.VK_KP_RIGHT: //handleHardStackAction(); handleFromStackAction(); break; case KeyEvent.VK_DOWN: ...
9
public String convert(String s, int nRows) { if(nRows == 1) return s; String resultString = ""; int counter = 0; boolean reverse = false; String[] stringsArr = new String[nRows]; for(int i = 0; i < nRows; ++i){ stringsArr[i] = ""; } for(int i = 0; i < s.length(); ++i){ if(counter == -1){ c...
8
public void readFile(String imagePath , String imageDescPath) { BufferedImage image = null; try { URL url = AssertManager.class.getClassLoader().getResource( imagePath); image = ImageIO.read(url); } catch (IOException e) { e.printStackTrace(); System.out.println("读取图片出错"); return; } images...
5
public synchronized void runTask(Runnable task) { if (!isAlive) { throw new IllegalStateException(); } if (task != null) { taskQueue.add(task); notify(); } }
2
public void update() { if(requestLoad) { mc.setLoading(true,loadSpaces); if(!mc.isLoading()){requestLoad=false;} } else if(requestSave) { mc.setSaving(true); if(!mc.isSaving()){requestSave=false;} } else { updating=true; mc.update(); updating=false; } }
4
public static void main(String[] args) throws IOException { HashMap<Integer, BigInteger> hm = new HashMap<Integer, BigInteger>(); BigInteger big = new BigInteger("0"); BigInteger aux = new BigInteger("0"); for (int i = 0; i < 50000; i++) { big = new BigInteger(String.valueOf(i + 1)); big = big.pow(3); ...
5
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!super.equals(obj)) { return false; } if (!(obj instanceof XYLineAnnotation)) { return false; } XYLineAnnotation that = (XYLineAnnotation) o...
9
private Element createPersonalInfo() throws ProfilerException { Element personalInfo = doc.createElement("details"); if (request.getParameter("gender") != null && !request.getParameter("gender").isEmpty()) { personalInfo.appendChild(createSimpleElement(request.getParameter("gender"), "gende...
8
public void raiseSalary(double byPercent) { double raise = salary * byPercent / 100; salary += raise; }
0
public static void main(String[] args){ Scanner in = new Scanner(System.in); int max = 0; StringBuilder sb = new StringBuilder(); while(in.hasNext()){ String numbers = in.next(); sb.append(numbers); } String s = sb.toString(); for(int i=0;i<s.length()-4;i++){ int p = 1; for (int j=0;j<5;j++) p...
4
@Override public void paintComponent(Graphics g) { super.paintComponent(g); for (Section s : sections) { if (s.isOpened()) { if (s.isBomb()) { g.setColor(Color.RED); } else g.setColor(Color.GREEN); } els...
7
@Override protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { switch (setField_) { case SHORT_VALUE: Short short_value = (Short)value_; oprot.writeI16(short_value); return; case INT_VALUE: Integer int_va...
6
private double computeNodeConfidenceScore() { // this is a simple and unoptimized way of doing this // basically we construct a BlockChain type from Leaf-to-Root path // then compute the ConfidenceScore Node currentNode = this; BlockChain thisChain = new BlockChain(this.block); while (currentNode...
2
public static void main(String[] args) { SomeClassWithData some_object = new SomeClassWithData(); for (int i = 9; i > 0; --i) { some_object.add(i); } // get_data() has been removed. // Client has to use Iterator. SomeClassWithData.Iterator it1 = some_object.cr...
3
public void show(){ for(int i=1; i<=size; i++){ for(int j=1; j<=i; j++){ System.out.print(pascalsTriangle[i][j]); if(j!=i){ System.out.print(","); } } System.out.println(); } }
3
public static void createConfig() { // Audio setProperty("music", "" + SoundStore.get().getMusicVolume()); setProperty("sfx", "" + SoundStore.get().getSoundVolume()); // Video setProperty("fullscreen", "" + Camera.get().isFullscreen()); setProperty("vsync", "" + Camera.get().isVSyncEnabled()); // Ke...
2
public boolean isOk() { if(depth<=0.0){ return false; } if(time<=0.0){ return false; } if(gas.He>1.0||gas.N2>1.0||gas.O2>1.0||gas.He<0||gas.N2<0||gas.O2<0.01){ return false; } return true; }
8
public static Ai parse(char c, Board board, int x, int y) { Ai ai = new Ai(x, y, board); ai.setIdentity(c); ai.setInteractionKeys(); switch (c) { case TileKeys.fireGas: ai.setBrain(new GasBrain(ai, board)); ai.setColor(TileKeys.lightRed); ai.decisions = new GasElementDecisions(ai)...
9
public DefaultResponse deleteAssociation(String asId, String asIdType) { if (!UtilityMethods.isValidString(asId)) { throw new IllegalArgumentException("Id parameter is null"); } Map<String, String> lhtParameters = new HashMap<String, String>(); if (UtilityMethods.isValidStri...
2
protected void changeNeuronWeight(int neuronNumber, double[] vector, int iteration){ double[] weightList = networkModel.getNeuron(neuronNumber).getWeight(); int weightNumber = weightList.length; double weight; if(showComments){ String vectorText="["; for(i...
9
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Player)) { return false; } Player player = (Player) o; if (!name.equals(player.name)) { return false; } return number....
3
private String get_sub_ct(char[][] pt, int start_col,int end_col,int[][] key_square) { int row=pt.length; char[][] result_ct=new char[row][end_col-start_col]; StringBuilder sb=new StringBuilder(); for(int i=start_col;i<end_col;i++) { //find the correct position for each column for(int j=0;j<row;j++)...
6
private void checkOSStarted(VirtualMachine virtualMachine) throws Exception { String startTimeout = virtualMachine.getProperty( VirtualMachineConstants.START_TIMEOUT); boolean checkTimeout = startTimeout != null; int remainingTries = 0; if (checkTimeout) { remainingTries = Integer.parseInt(start...
7
public void setUpdatedAt(final Long updatedAt) { this.updatedAt = updatedAt; }
0
private static int[] merge(int[] array1, int[] array2) { int[] result = new int[array1.length + array2.length]; int index = 0; int index1 = 0; int index2 = 0; while(index1 < array1.length && index2 < array2.length) { if(array1[index1] < array2[index2]) { result[index] = array1[index1]; index1...
5
public void handleExternalPlugins() { if (vault != null) { loadVault(); isVaultEnabled = true; pluginsEnabled.add("Vault"); } if (worldedit != null) { isWorldEditEnabled = true; wep = (WorldEditPlugin) worldedit; portExecutor.setWorldEditPlugin(wep); pluginsEnabled.add("WorldEdit"); }...
8
public void setAnalyzerActive (GlobalContext context, boolean arg) { for (IStringAnalyser analyzer : stringAnalysers) { if (context == analyzer.getGlobalContext()) { analyzer.setActive(arg); } } }
2
public CouldNotSendConnectRequestException(CouldNotSendPacketException e) { super("Could not send connect request" + (e == null ? "." : "--" + e.getMessage())); wrappedException = e; }
1
@Override public Boolean[] segment(Utterance utterance, boolean training, boolean trace) { Boolean[] segmentation = utterance.getBoundariesCopy(); int baseIndex = 0; while (baseIndex < utterance.length) { ArrayList<Word> prefixes = lexicon.getPrefixWords(utterance, baseIndex); if (!prefixes.isEmpty()) { ...
5
public boolean isAnyRecordFormatSpecified() { return xmlRecordElements != null && !xmlRecordElements.isEmpty(); }
1
private void ochosMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ochosMouseClicked // TODO add your handling code here: try { if (conexion == true && enviando == 0) { enviando = 1; int opciones; if (esinicio != 0 && 8 <= esini...
9
protected void initialize() { if (GameApplet.thisApplet != null) { super.initialize(); this.initialOrientation = 180; this.newName = "Arachnae Prototype"; this.chassis = "Arachnae"; String[] arrayOfString = { "sensor.VidSensor", "assembly.Launcher" }; this.parts = arrayOfSt...
3
private static File findFile(String filename, LinkedList files) { File temp; int i = 1; temp = (File) files.get(0); while ((i < files.size()) && (!filename.equals(temp.getName()))) { temp = (File) files.get(i); i++; } if (temp.getName().equals(fi...
3
@Override public final String toString() { return "Bencoding Exception:\n"+(this.message == null ? "" : this.message); }
1
private void btn_okActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_okActionPerformed // Initialisation des variables. String message; boolean controle = false; // Controle sur formulaire if(text_name.getText().isEmpty() || text_adr_...
8
private void deleteCategory(Map<String, Object> jsonrpc2Params) throws Exception { Map<String, Object> params = getParams(jsonrpc2Params, Constants.Param.Name.TYPE, Constants.Param.Name.CATEGORY_ID); String type = (String) params.get(Constants.Param.Name.TYPE); ...
3
public PowerUp(int speed, int xvalue, int yvalue, int dirX, int dirY){ setV(speed); setX(xvalue); setY(yvalue); //setDirectionY(dirY); //setDirectionX(dirX); option = (int)(Math.round(Math.random()))+1; }
0
public Id3v2URLFrame(Property property, PropertyTree parent) { super(property, parent); }
0
public static void simpleSearch(ArrayList<StringSequence> database,String pattern) { for(int sequence = 0;sequence<database.size();sequence++) { ArrayList<Integer> foundInCurrent = new ArrayList<Integer>(); database.get(sequence).setPattern(pattern); String current=databas...
5
public void poistaTaydetRivit() { int taysiaRiveja = 0; for (int i = RuudunKorkeus - 1; i >= 0; --i) { boolean RiviTaysi = true; for (int j = 0; j < RuudunLeveys; ++j) { if (tetrominonMuoto(j, i) == Tetrominot.EiMuotoa) { RiviTaysi = false; ...
9
@Override public SourceValue newOperation(final AbstractInsnNode insn) { int size; switch (insn.getOpcode()) { case LCONST_0: case LCONST_1: case DCONST_0: case DCONST_1: size = 2; break; case LDC: Object cst = ((LdcInsnNode...
8
public void printAttributes() { System.out.println("###[BLUEPRINT]###"); System.out.println("# BID:" + BlueprintID + "\t BName:" + BlueprintName); System.out.println("# PID:" + ProductID + "\t PName:" + ProductName); System.out.println("# PTime:" + ProductionTime + "\t PSize:" + PortionS...
1
public void setPan(int pan) { if (clip.isControlSupported(FloatControl.Type.PAN)) { FloatControl panControl = (FloatControl) clip.getControl(FloatControl.Type.PAN); panControl.setValue(pan); } }
1
public void render(GameContainer gc, Graphics g) throws SlickException { g.setFont(titleFont); g.drawString(game.getTitle(), 100, 100); g.resetFont(); for (int i = 0; i < buttons.size(); i++) { int x = buttonsX; int y = buttonsY + i * buttonHeight; if (i == choice) { g.setColor(Color.darkGra...
2
public final boolean equals(Object par1Obj) { if (!(par1Obj instanceof IntHashMapEntry)) { return false; } else { IntHashMapEntry var2 = (IntHashMapEntry)par1Obj; Integer var3 = Integer.valueOf(this.getHash()); Integer var4 = In...
7
public void mousePressed(MouseEvent e){ Dimension size = fComponent.getSize(); if( e.getX() >= size.width-7 && e.getY() >= size.height-7 && getSelectionState()==2 ) { if(DEBUG)System.out.println("ImageView: grow!!! Size="+fWidth+"x"+fHeight); Point loc = fComponent.getLocationOnScreen(); fGrowBase = ne...
8
public void addRecordArray(Object[] aobj) throws JDBFException { if (aobj.length != fields.length) throw new JDBFException("Error adding record: Wrong number of values. Expected " + fields.length + ", got " + aobj.length + ".");...
7
public boolean getBoolean(String key, boolean def) { if(fconfig.contains(key)) { return fconfig.getBoolean(key); } else { fconfig.set(key, def); try { fconfig.save(path); } catch (IOException e) { e.printStackTrace(); } return def; } }
2
public static void main(String[] args) { new Thread(new Runnable() { @Override public void run() { Server.start(); } }).start(); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); ...
2
final public CycVariable sentenceDenotingVariable(boolean requireEOF) throws ParseException { CycVariable val = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case SIMPLE_VARIABLE: val = sentenceDenotingSimpleVariable(false); break; case META_VARIABLE: val = sentenceDenotingMetaVariable(f...
4
GraphPrimitive(int x, int y, int width, int height, int widthDest, int heightDest, String name) { super(x, y, width, height, widthDest, heightDest); this.name = name; }
0
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 String find(String word) { for (int i = 1; i < word.length(); i++) { if (word.charAt(i) == word.charAt(i - 1)) { return "Dislikes"; } } for (int i = 0; i < word.length() - 3; i++) { for (int j = i + 1; j < word.length() - 2; j++) { ...
8
private void setTopic(String topic) { if (topic == null || topic.trim().length() == 0) topic = HTML.italic("Diskusní téma není nastaveno."); else topic = HTML.bold(topic); topicPanel.setText(topic); }
2
public void playSound(InputStream inputStream) { InputStream is = inputStream; try { audioStream = AudioSystem.getAudioInputStream(is); } catch (Exception e){ e.printStackTrace(); } audioFormat = audioStream.getFormat(); DataLine.Info info = ne...
6
public static void call(final String data) throws Exception { BufferedReader br = null; FileReader fr = null; final File textFile = new File(data); String line = null; List elements = null; try { fr = new FileReader(textFile); br = new BufferedRea...
7
@Override public void update() { //assume game is over only if there are walls present and the game is being played boolean gameOver = walls.size() > 0 && Game.state == State.PLAY_LEVEL; for(Ball ball : balls){ ball.update(); if(!ball.isAlone()) gameOver = false; } if(gameOver && !isAnyWallGrowing(...
7
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Corretor other = (Corretor) obj; if (codigo == null) { if (other.codigo != null) return false; } else if (!codigo.equals(other.codigo)) ...
6
public void load(String filename) throws Exception { BufferedReader reader; String line = null; reader = new BufferedReader(new FileReader(new File(filename))); while ((line = reader.readLine()) != null) { if (line.length() > 0 && line.charAt(0) != '#') // i...
7
public int getCurconnected() { return curconnected; }
0
public static <GItem> List<GItem> reverseList(final List<GItem> items) throws NullPointerException { if (items == null) throw new NullPointerException("items = null"); return new AbstractList<GItem>() { @Override protected void removeRange(final int fromIndex, final int toIndex) { final int size = items....
6
protected boolean canChange(int value){ Controller c = gui.getController(); if (centerCause(c.getX1(), c.getX2(), c.getY1(), c.getY2(), c.getR1(), value)){ return true; } else{ showCenterWarning(); return false; } }
1
public ArrayList<OrderDetail> createVerifiedOrderDetails(int resTypeID, int requestedQty, Order o) { //Hvis der er nok på lager 1: ArrayList<OrderDetail> odl = new ArrayList<>(); String startDate = o.formatDateToString(o.getStartDate()); String endDate = o.formatDateToString(o.getEndDat...
7
@Override public void trainOnInstanceImpl(Instance inst) { //Init Perceptron if (this.reset) { this.reset = false; this.numberAttributes = inst.numAttributes(); this.numberClasses = inst.numClasses(); this.weightAttribute = new double[inst.numClasses(...
7
public void eventEnd() { Point check; LineSegment p1=null, p2=null; LineSegment tmp; int i=0; if(currentEvent.a.start.y == currentEvent.a.end.y){ return; } for ( i = 0; i < SweepStatus.size(); i++) { tmp = SweepStatus.get(...
9
private void displayMonth() { if(currentMonth< 1){ currentMonth++; } if(currentMonth > 3){ currentMonth--; } Month tempMonth = months[currentMonth]; displayMonth.setText(tempMonth.getName()); for (int i = 0; i < tempMonth.getStartDay(); i++) { dayPanel[i].deactivate(months[currentMonth-1].getTot...
5
protected boolean contains(TileObjectDisplayData displayData){ return characterData == displayData || itemData.contains(displayData) || edgeData.values().contains(displayData); }
2
protected static List<JavaInfo> findMacJavas() { List<String> javaExecs = Lists.newArrayList(); String javaVersion; javaVersion = getMacJavaPath("1.6"); if(javaVersion != null) javaExecs.add(javaVersion + "/bin/java"); javaVersion = getMacJavaPath("1...
7
public Grid nullIfPreviousState(){ String thisState = this.gridToString(); for(Grid g: previousGrids){ if(thisState.equals(g.gridToString())){ return null; } } return this; }
2
public static void main(String[] args) throws Exception { System.setProperty("webdriver.chrome.driver", "D:\\Download\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); driver.manage().window().maximize(); File bankNames = new File("E:\...
7
@Override public Object getValueAt(int indiceLigne, int indiceColonne) { switch(indiceColonne){ case 0 : return compteRendus.get(indiceLigne).getNomPraticien() ; case 1 : return compteRendus.get(indiceLigne).getPrenomPraticien() ; case 2 : return compteRendus.get(indiceLigne).getVillePraticien() ; ...
7
@Override public void parse() { if (peekTypeMatches("NEQ")) { matchTerminal("NEQ"); inverseOp = "breq"; op = "neq"; } else if (peekTypeMatches("EQ")) { matchTerminal("EQ"); inverseOp = "brneq"; op = "eq"; } else if (peekTypeMatches("LESSER")) { matchTermin...
5
public void blockBreak(List<String> materialList, Boolean mode){ if (materialList != null){ Material materialet; for (String material : materialList){ materialet = Material.getMaterial(material); if (materialet != null){ blockBreak.add(materialet); } } } if (mode != null){ blockBreakM...
4
public void remove (final Body b) { runnableManager.add(new Runnable() { public void run () { if (b != null) { if (b.getUserData() != null) { Objects.world.destroyBody(b); b.setUserData(null); } } else { System.out.println("Body seems to be null"); } } }); }
2
public void setFunAaaa(int funAaaa) { this.funAaaa = funAaaa; }
0
public long getId() { return id; }
0
static void fill(char[][] A, int i, int j, char toFill){ if(i<0 || i>=n || j<0 || j>=m || A[i][j]!='.') return; A[i][j]=toFill; fill(A, i-1, j, toFill=='W'?'B':'W'); fill(A, i, j+1, toFill=='W'?'B':'W'); fill(A, i+1, j, toFill=='W'?'B':'W'); fill(A, i, j-1, toFill=='W'?'B':'W'); }
9
@Id @Column(name = "person_id") public int getPersonId() { return personId; }
0
public static AudioPoint simplify(short[] in, double threshold, int begin, int end){ AudioPoint ret = new AudioPoint(-1, 0); final AudioPoint head = ret; //find a repeating pattern in the audio sample. int lastX=-1; int lastY=0; double sumOfAngles=0; Point beginPoint=new Point(-1,0); Point lastPoint=new...
7
private Rectangle union( Rectangle a, Rectangle b ){ if( a == null ){ return b; } if( b == null ){ return a; } return a.union( b ); }
2
private List<URL> getRequiredLibsFromHome() { List<URL> urls = new ArrayList<URL>(); try { // Make sure Groovy, Gant, Ivy and GPars are on the classpath if we are using "griffonHome". File[] files = new File(home, "lib").listFiles(new FilenameFilter() { public bo...
9
public static final void equals(Object obj, Object another, String message) { isTrue((obj == null && another == null) || (obj != null && obj.equals(another)), message); }
3